Mercurial > libavcodec.hg
comparison mpegvideo.h @ 3776:1843a85123b7 libavcodec
fix some signedness warnings
author | mru |
---|---|
date | Wed, 27 Sep 2006 19:47:39 +0000 |
parents | 8e1ed8300165 |
children | 8e79b099d354 |
comparison
equal
deleted
inserted
replaced
3775:8e1ed8300165 | 3776:1843a85123b7 |
---|---|
342 Picture *last_picture_ptr; ///< pointer to the previous picture. | 342 Picture *last_picture_ptr; ///< pointer to the previous picture. |
343 Picture *next_picture_ptr; ///< pointer to the next picture (for bidir pred) | 343 Picture *next_picture_ptr; ///< pointer to the next picture (for bidir pred) |
344 Picture *current_picture_ptr; ///< pointer to the current picture | 344 Picture *current_picture_ptr; ///< pointer to the current picture |
345 uint8_t *visualization_buffer[3]; //< temporary buffer vor MV visualization | 345 uint8_t *visualization_buffer[3]; //< temporary buffer vor MV visualization |
346 int last_dc[3]; ///< last DC values for MPEG1 | 346 int last_dc[3]; ///< last DC values for MPEG1 |
347 int16_t *dc_val_base; | 347 uint16_t *dc_val_base; |
348 int16_t *dc_val[3]; ///< used for mpeg4 DC prediction, all 3 arrays must be continuous | 348 uint16_t *dc_val[3]; ///< used for mpeg4 DC prediction, all 3 arrays must be continuous |
349 int16_t dc_cache[4*5]; | 349 int16_t dc_cache[4*5]; |
350 int y_dc_scale, c_dc_scale; | 350 int y_dc_scale, c_dc_scale; |
351 const uint8_t *y_dc_scale_table; ///< qscale -> y_dc_scale table | 351 const uint8_t *y_dc_scale_table; ///< qscale -> y_dc_scale table |
352 const uint8_t *c_dc_scale_table; ///< qscale -> c_dc_scale table | 352 const uint8_t *c_dc_scale_table; ///< qscale -> c_dc_scale table |
353 const uint8_t *chroma_qscale_table; ///< qscale -> chroma_qscale (h263) | 353 const uint8_t *chroma_qscale_table; ///< qscale -> chroma_qscale (h263) |
770 #define END_NOT_FOUND -100 | 770 #define END_NOT_FOUND -100 |
771 int ff_combine_frame(ParseContext *pc, int next, uint8_t **buf, int *buf_size); | 771 int ff_combine_frame(ParseContext *pc, int next, uint8_t **buf, int *buf_size); |
772 void ff_parse_close(AVCodecParserContext *s); | 772 void ff_parse_close(AVCodecParserContext *s); |
773 void ff_mpeg_flush(AVCodecContext *avctx); | 773 void ff_mpeg_flush(AVCodecContext *avctx); |
774 void ff_print_debug_info(MpegEncContext *s, AVFrame *pict); | 774 void ff_print_debug_info(MpegEncContext *s, AVFrame *pict); |
775 void ff_write_quant_matrix(PutBitContext *pb, int16_t *matrix); | 775 void ff_write_quant_matrix(PutBitContext *pb, uint16_t *matrix); |
776 int ff_find_unused_picture(MpegEncContext *s, int shared); | 776 int ff_find_unused_picture(MpegEncContext *s, int shared); |
777 void ff_denoise_dct(MpegEncContext *s, DCTELEM *block); | 777 void ff_denoise_dct(MpegEncContext *s, DCTELEM *block); |
778 void ff_update_duplicate_context(MpegEncContext *dst, MpegEncContext *src); | 778 void ff_update_duplicate_context(MpegEncContext *dst, MpegEncContext *src); |
779 const uint8_t *ff_find_start_code(const uint8_t *p, const uint8_t *end, uint32_t *state); | 779 const uint8_t *ff_find_start_code(const uint8_t *p, const uint8_t *end, uint32_t *state); |
780 | 780 |
826 int ref_mv_scale, int size, int h); | 826 int ref_mv_scale, int size, int h); |
827 int inline ff_get_mb_score(MpegEncContext * s, int mx, int my, int src_index, | 827 int inline ff_get_mb_score(MpegEncContext * s, int mx, int my, int src_index, |
828 int ref_index, int size, int h, int add_rate); | 828 int ref_index, int size, int h, int add_rate); |
829 | 829 |
830 /* mpeg12.c */ | 830 /* mpeg12.c */ |
831 extern const int16_t ff_mpeg1_default_intra_matrix[64]; | 831 extern const uint16_t ff_mpeg1_default_intra_matrix[64]; |
832 extern const int16_t ff_mpeg1_default_non_intra_matrix[64]; | 832 extern const uint16_t ff_mpeg1_default_non_intra_matrix[64]; |
833 extern const uint8_t ff_mpeg1_dc_scale_table[128]; | 833 extern const uint8_t ff_mpeg1_dc_scale_table[128]; |
834 | 834 |
835 void mpeg1_encode_picture_header(MpegEncContext *s, int picture_number); | 835 void mpeg1_encode_picture_header(MpegEncContext *s, int picture_number); |
836 void mpeg1_encode_mb(MpegEncContext *s, | 836 void mpeg1_encode_mb(MpegEncContext *s, |
837 DCTELEM block[6][64], | 837 DCTELEM block[6][64], |