Mercurial > libavcodec.hg
comparison mpegvideo.h @ 1938:e2501e6e7ff7 libavcodec
unify table indexing (motion_val,dc_val,ac_val,coded_block changed)
minor +-1 bugfix
author | michael |
---|---|
date | Fri, 16 Apr 2004 01:01:45 +0000 |
parents | 5ac49e7a1b8f |
children | a3f44c9168aa |
comparison
equal
deleted
inserted
replaced
1937:4d91a9342d95 | 1938:e2501e6e7ff7 |
---|---|
319 Picture *last_picture_ptr; ///< pointer to the previous picture. | 319 Picture *last_picture_ptr; ///< pointer to the previous picture. |
320 Picture *next_picture_ptr; ///< pointer to the next picture (for bidir pred) | 320 Picture *next_picture_ptr; ///< pointer to the next picture (for bidir pred) |
321 Picture *current_picture_ptr; ///< pointer to the current picture | 321 Picture *current_picture_ptr; ///< pointer to the current picture |
322 uint8_t *visualization_buffer[3]; //< temporary buffer vor MV visualization | 322 uint8_t *visualization_buffer[3]; //< temporary buffer vor MV visualization |
323 int last_dc[3]; ///< last DC values for MPEG1 | 323 int last_dc[3]; ///< last DC values for MPEG1 |
324 int16_t *dc_val_base; | |
324 int16_t *dc_val[3]; ///< used for mpeg4 DC prediction, all 3 arrays must be continuous | 325 int16_t *dc_val[3]; ///< used for mpeg4 DC prediction, all 3 arrays must be continuous |
325 int16_t dc_cache[4*5]; | 326 int16_t dc_cache[4*5]; |
326 int y_dc_scale, c_dc_scale; | 327 int y_dc_scale, c_dc_scale; |
327 uint8_t *y_dc_scale_table; ///< qscale -> y_dc_scale table | 328 uint8_t *y_dc_scale_table; ///< qscale -> y_dc_scale table |
328 uint8_t *c_dc_scale_table; ///< qscale -> c_dc_scale table | 329 uint8_t *c_dc_scale_table; ///< qscale -> c_dc_scale table |
329 const uint8_t *chroma_qscale_table; ///< qscale -> chroma_qscale (h263) | 330 const uint8_t *chroma_qscale_table; ///< qscale -> chroma_qscale (h263) |
331 uint8_t *coded_block_base; | |
330 uint8_t *coded_block; ///< used for coded block pattern prediction (msmpeg4v3, wmv1) | 332 uint8_t *coded_block; ///< used for coded block pattern prediction (msmpeg4v3, wmv1) |
333 int16_t (*ac_val_base)[16]; | |
331 int16_t (*ac_val[3])[16]; ///< used for for mpeg4 AC prediction, all 3 arrays must be continuous | 334 int16_t (*ac_val[3])[16]; ///< used for for mpeg4 AC prediction, all 3 arrays must be continuous |
332 int ac_pred; | 335 int ac_pred; |
333 uint8_t *prev_pict_types; ///< previous picture types in bitstream order, used for mb skip | 336 uint8_t *prev_pict_types; ///< previous picture types in bitstream order, used for mb skip |
334 #define PREV_PICT_TYPES_BUFFER_SIZE 256 | 337 #define PREV_PICT_TYPES_BUFFER_SIZE 256 |
335 int mb_skiped; ///< MUST BE SET only during DECODING | 338 int mb_skiped; ///< MUST BE SET only during DECODING |
855 DCTELEM block[6][64], | 858 DCTELEM block[6][64], |
856 int motion_x, int motion_y); | 859 int motion_x, int motion_y); |
857 void h263_encode_picture_header(MpegEncContext *s, int picture_number); | 860 void h263_encode_picture_header(MpegEncContext *s, int picture_number); |
858 void ff_flv_encode_picture_header(MpegEncContext *s, int picture_number); | 861 void ff_flv_encode_picture_header(MpegEncContext *s, int picture_number); |
859 void h263_encode_gob_header(MpegEncContext * s, int mb_line); | 862 void h263_encode_gob_header(MpegEncContext * s, int mb_line); |
860 int16_t *h263_pred_motion(MpegEncContext * s, int block, | 863 int16_t *h263_pred_motion(MpegEncContext * s, int block, int dir, |
861 int *px, int *py); | 864 int *px, int *py); |
862 void mpeg4_pred_ac(MpegEncContext * s, DCTELEM *block, int n, | 865 void mpeg4_pred_ac(MpegEncContext * s, DCTELEM *block, int n, |
863 int dir); | 866 int dir); |
864 void ff_set_mpeg4_time(MpegEncContext * s, int picture_number); | 867 void ff_set_mpeg4_time(MpegEncContext * s, int picture_number); |
865 void mpeg4_encode_picture_header(MpegEncContext *s, int picture_number); | 868 void mpeg4_encode_picture_header(MpegEncContext *s, int picture_number); |