comparison avcodec.h @ 2769:1394b45a7bf4 libavcodec

support changing in bitstream global headers into extradata style and back
author michael
date Mon, 27 Jun 2005 00:04:03 +0000
parents d2b3f948599d
children 930e56f92c57
comparison
equal deleted inserted replaced
2768:d2b3f948599d 2769:1394b45a7bf4
339 #define CODEC_FLAG_SVCD_SCAN_OFFSET 0x40000000 ///< will reserve space for SVCD scan offset user data 339 #define CODEC_FLAG_SVCD_SCAN_OFFSET 0x40000000 ///< will reserve space for SVCD scan offset user data
340 #define CODEC_FLAG_CLOSED_GOP 0x80000000 340 #define CODEC_FLAG_CLOSED_GOP 0x80000000
341 #define CODEC_FLAG2_FAST 0x00000001 ///< allow non spec compliant speedup tricks 341 #define CODEC_FLAG2_FAST 0x00000001 ///< allow non spec compliant speedup tricks
342 #define CODEC_FLAG2_STRICT_GOP 0x00000002 ///< strictly enforce GOP size 342 #define CODEC_FLAG2_STRICT_GOP 0x00000002 ///< strictly enforce GOP size
343 #define CODEC_FLAG2_NO_OUTPUT 0x00000004 ///< skip bitstream encoding 343 #define CODEC_FLAG2_NO_OUTPUT 0x00000004 ///< skip bitstream encoding
344 #define CODEC_FLAG2_LOCAL_HEADER 0x00000008 ///< place global headers at every keyframe instead of in extradata
344 345
345 /* Unsupported options : 346 /* Unsupported options :
346 * Syntax Arithmetic coding (SAC) 347 * Syntax Arithmetic coding (SAC)
347 * Reference Picture Selection 348 * Reference Picture Selection
348 * Independant Segment Decoding */ 349 * Independant Segment Decoding */
2320 int (*parser_parse)(AVCodecParserContext *s, 2321 int (*parser_parse)(AVCodecParserContext *s,
2321 AVCodecContext *avctx, 2322 AVCodecContext *avctx,
2322 uint8_t **poutbuf, int *poutbuf_size, 2323 uint8_t **poutbuf, int *poutbuf_size,
2323 const uint8_t *buf, int buf_size); 2324 const uint8_t *buf, int buf_size);
2324 void (*parser_close)(AVCodecParserContext *s); 2325 void (*parser_close)(AVCodecParserContext *s);
2326 int (*split)(AVCodecContext *avctx, const uint8_t *buf, int buf_size);
2325 struct AVCodecParser *next; 2327 struct AVCodecParser *next;
2326 } AVCodecParser; 2328 } AVCodecParser;
2327 2329
2328 extern AVCodecParser *av_first_parser; 2330 extern AVCodecParser *av_first_parser;
2329 2331
2332 int av_parser_parse(AVCodecParserContext *s, 2334 int av_parser_parse(AVCodecParserContext *s,
2333 AVCodecContext *avctx, 2335 AVCodecContext *avctx,
2334 uint8_t **poutbuf, int *poutbuf_size, 2336 uint8_t **poutbuf, int *poutbuf_size,
2335 const uint8_t *buf, int buf_size, 2337 const uint8_t *buf, int buf_size,
2336 int64_t pts, int64_t dts); 2338 int64_t pts, int64_t dts);
2339 int av_parser_change(AVCodecParserContext *s,
2340 AVCodecContext *avctx,
2341 uint8_t **poutbuf, int *poutbuf_size,
2342 const uint8_t *buf, int buf_size, int keyframe);
2337 void av_parser_close(AVCodecParserContext *s); 2343 void av_parser_close(AVCodecParserContext *s);
2338 2344
2339 extern AVCodecParser mpegvideo_parser; 2345 extern AVCodecParser mpegvideo_parser;
2340 extern AVCodecParser mpeg4video_parser; 2346 extern AVCodecParser mpeg4video_parser;
2341 extern AVCodecParser h261_parser; 2347 extern AVCodecParser h261_parser;