diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-06-01 21:19:00 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-06-01 21:19:00 +0000 |
commit | c26ae41db21d6a7d5092b3cb51ce2e4866b076ae (patch) | |
tree | 8bc945d47b0053aa8255f4a3226c48cc1c194057 /libavcodec/mpegvideo.h | |
parent | 435b0720a89b5aa1dd9e92f13336d5a35964a6e6 (diff) | |
download | ffmpeg-c26ae41db21d6a7d5092b3cb51ce2e4866b076ae.tar.gz |
adding a few const
Originally committed as revision 4337 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r-- | libavcodec/mpegvideo.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index df67a469cd..e0c5e8f23e 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -340,8 +340,8 @@ typedef struct MpegEncContext { int16_t *dc_val[3]; ///< used for mpeg4 DC prediction, all 3 arrays must be continuous int16_t dc_cache[4*5]; int y_dc_scale, c_dc_scale; - uint8_t *y_dc_scale_table; ///< qscale -> y_dc_scale table - uint8_t *c_dc_scale_table; ///< qscale -> c_dc_scale table + const uint8_t *y_dc_scale_table; ///< qscale -> y_dc_scale table + const uint8_t *c_dc_scale_table; ///< qscale -> c_dc_scale table const uint8_t *chroma_qscale_table; ///< qscale -> chroma_qscale (h263) uint8_t *coded_block_base; uint8_t *coded_block; ///< used for coded block pattern prediction (msmpeg4v3, wmv1) @@ -819,7 +819,7 @@ int inline ff_get_mb_score(MpegEncContext * s, int mx, int my, int src_index, /* mpeg12.c */ extern const int16_t ff_mpeg1_default_intra_matrix[64]; extern const int16_t ff_mpeg1_default_non_intra_matrix[64]; -extern uint8_t ff_mpeg1_dc_scale_table[128]; +extern const uint8_t ff_mpeg1_dc_scale_table[128]; void mpeg1_encode_picture_header(MpegEncContext *s, int picture_number); void mpeg1_encode_mb(MpegEncContext *s, @@ -859,9 +859,9 @@ static inline int get_rl_index(const RLTable *rl, int last, int run, int level) return index + level - 1; } -extern uint8_t ff_mpeg4_y_dc_scale_table[32]; -extern uint8_t ff_mpeg4_c_dc_scale_table[32]; -extern uint8_t ff_aic_dc_scale_table[32]; +extern const uint8_t ff_mpeg4_y_dc_scale_table[32]; +extern const uint8_t ff_mpeg4_c_dc_scale_table[32]; +extern const uint8_t ff_aic_dc_scale_table[32]; extern const int16_t ff_mpeg4_default_intra_matrix[64]; extern const int16_t ff_mpeg4_default_non_intra_matrix[64]; extern const uint8_t ff_h263_chroma_qscale_table[32]; |