comparison mpegvideo.h @ 842:e460775adb38 libavcodec

cleanup (breaks compatibility, requested by fabrice) remove CODEC_FLAG_NOT_TRUNCATED & add CODEC_FLAG_TRUNCATED add CODEC_CAP_TRUNCATED add alpha plane to AVPicture remove CODEC_ID_MSMPEG4 remove various unused stuff support "truncated" mpeg4 streams
author michaelni
date Fri, 08 Nov 2002 18:35:39 +0000
parents ace3ccd18dd2
children eacc2dd8fd9d
comparison
equal deleted inserted replaced
841:4033915880d9 842:e460775adb38
106 #ifdef ARCH_POWERPC 106 #ifdef ARCH_POWERPC
107 /* Used by dct_quantise_alitvec to find last-non-zero */ 107 /* Used by dct_quantise_alitvec to find last-non-zero */
108 UINT8 __align8 inverse[64]; 108 UINT8 __align8 inverse[64];
109 #endif 109 #endif
110 } ScanTable; 110 } ScanTable;
111
112 typedef struct ParseContext{
113 UINT8 *buffer;
114 int index;
115 int last_index;
116 int buffer_size;
117 int state;
118 int frame_start_found;
119 } ParseContext;
111 120
112 typedef struct MpegEncContext { 121 typedef struct MpegEncContext {
113 struct AVCodecContext *avctx; 122 struct AVCodecContext *avctx;
114 /* the following parameters must be initialized before encoding */ 123 /* the following parameters must be initialized before encoding */
115 int width, height; /* picture size. must be a multiple of 16 */ 124 int width, height; /* picture size. must be a multiple of 16 */
349 int resync_mb_y; /* y position of last resync marker */ 358 int resync_mb_y; /* y position of last resync marker */
350 GetBitContext last_resync_gb; /* used to serach for the next resync marker */ 359 GetBitContext last_resync_gb; /* used to serach for the next resync marker */
351 int mb_num_left; /* number of MBs left in this video packet (for partitioned Slices only)*/ 360 int mb_num_left; /* number of MBs left in this video packet (for partitioned Slices only)*/
352 int next_p_frame_damaged; /* set if the next p frame is damaged, to avoid showing trashed b frames */ 361 int next_p_frame_damaged; /* set if the next p frame is damaged, to avoid showing trashed b frames */
353 int error_resilience; 362 int error_resilience;
363
364 ParseContext parse_context;
354 365
355 /* H.263 specific */ 366 /* H.263 specific */
356 int gob_number; 367 int gob_number;
357 int gob_index; 368 int gob_index;
358 369