Mercurial > libavcodec.hg
comparison mpegvideo.h @ 2753:ba8ecddf5598 libavcodec
adding a few const
author | michael |
---|---|
date | Wed, 01 Jun 2005 21:19:00 +0000 |
parents | ef44d24680d1 |
children | 2b37bcabe608 |
comparison
equal
deleted
inserted
replaced
2752:23665209e823 | 2753:ba8ecddf5598 |
---|---|
338 int last_dc[3]; ///< last DC values for MPEG1 | 338 int last_dc[3]; ///< last DC values for MPEG1 |
339 int16_t *dc_val_base; | 339 int16_t *dc_val_base; |
340 int16_t *dc_val[3]; ///< used for mpeg4 DC prediction, all 3 arrays must be continuous | 340 int16_t *dc_val[3]; ///< used for mpeg4 DC prediction, all 3 arrays must be continuous |
341 int16_t dc_cache[4*5]; | 341 int16_t dc_cache[4*5]; |
342 int y_dc_scale, c_dc_scale; | 342 int y_dc_scale, c_dc_scale; |
343 uint8_t *y_dc_scale_table; ///< qscale -> y_dc_scale table | 343 const uint8_t *y_dc_scale_table; ///< qscale -> y_dc_scale table |
344 uint8_t *c_dc_scale_table; ///< qscale -> c_dc_scale table | 344 const uint8_t *c_dc_scale_table; ///< qscale -> c_dc_scale table |
345 const uint8_t *chroma_qscale_table; ///< qscale -> chroma_qscale (h263) | 345 const uint8_t *chroma_qscale_table; ///< qscale -> chroma_qscale (h263) |
346 uint8_t *coded_block_base; | 346 uint8_t *coded_block_base; |
347 uint8_t *coded_block; ///< used for coded block pattern prediction (msmpeg4v3, wmv1) | 347 uint8_t *coded_block; ///< used for coded block pattern prediction (msmpeg4v3, wmv1) |
348 int16_t (*ac_val_base)[16]; | 348 int16_t (*ac_val_base)[16]; |
349 int16_t (*ac_val[3])[16]; ///< used for for mpeg4 AC prediction, all 3 arrays must be continuous | 349 int16_t (*ac_val[3])[16]; ///< used for for mpeg4 AC prediction, all 3 arrays must be continuous |
817 int ref_index, int size, int h, int add_rate); | 817 int ref_index, int size, int h, int add_rate); |
818 | 818 |
819 /* mpeg12.c */ | 819 /* mpeg12.c */ |
820 extern const int16_t ff_mpeg1_default_intra_matrix[64]; | 820 extern const int16_t ff_mpeg1_default_intra_matrix[64]; |
821 extern const int16_t ff_mpeg1_default_non_intra_matrix[64]; | 821 extern const int16_t ff_mpeg1_default_non_intra_matrix[64]; |
822 extern uint8_t ff_mpeg1_dc_scale_table[128]; | 822 extern const uint8_t ff_mpeg1_dc_scale_table[128]; |
823 | 823 |
824 void mpeg1_encode_picture_header(MpegEncContext *s, int picture_number); | 824 void mpeg1_encode_picture_header(MpegEncContext *s, int picture_number); |
825 void mpeg1_encode_mb(MpegEncContext *s, | 825 void mpeg1_encode_mb(MpegEncContext *s, |
826 DCTELEM block[6][64], | 826 DCTELEM block[6][64], |
827 int motion_x, int motion_y); | 827 int motion_x, int motion_y); |
857 if (level > rl->max_level[last][run]) | 857 if (level > rl->max_level[last][run]) |
858 return rl->n; | 858 return rl->n; |
859 return index + level - 1; | 859 return index + level - 1; |
860 } | 860 } |
861 | 861 |
862 extern uint8_t ff_mpeg4_y_dc_scale_table[32]; | 862 extern const uint8_t ff_mpeg4_y_dc_scale_table[32]; |
863 extern uint8_t ff_mpeg4_c_dc_scale_table[32]; | 863 extern const uint8_t ff_mpeg4_c_dc_scale_table[32]; |
864 extern uint8_t ff_aic_dc_scale_table[32]; | 864 extern const uint8_t ff_aic_dc_scale_table[32]; |
865 extern const int16_t ff_mpeg4_default_intra_matrix[64]; | 865 extern const int16_t ff_mpeg4_default_intra_matrix[64]; |
866 extern const int16_t ff_mpeg4_default_non_intra_matrix[64]; | 866 extern const int16_t ff_mpeg4_default_non_intra_matrix[64]; |
867 extern const uint8_t ff_h263_chroma_qscale_table[32]; | 867 extern const uint8_t ff_h263_chroma_qscale_table[32]; |
868 extern const uint8_t ff_h263_loop_filter_strength[32]; | 868 extern const uint8_t ff_h263_loop_filter_strength[32]; |
869 | 869 |