comparison mpegvideo.h @ 6446:42fc209231cb libavcodec

move run length table constants to rl.h
author aurel
date Tue, 04 Mar 2008 23:58:12 +0000
parents 2b553c57ec51
children fe34160a1d1e
comparison
equal deleted inserted replaced
6445:2b553c57ec51 6446:42fc209231cb
30 30
31 #include "dsputil.h" 31 #include "dsputil.h"
32 #include "bitstream.h" 32 #include "bitstream.h"
33 #include "ratecontrol.h" 33 #include "ratecontrol.h"
34 #include "parser.h" 34 #include "parser.h"
35 #include "rl.h"
35 36
36 #define FRAME_SKIPPED 100 ///< return value for header parsers if frame is not coded 37 #define FRAME_SKIPPED 100 ///< return value for header parsers if frame is not coded
37 38
38 enum OutputFormat { 39 enum OutputFormat {
39 FMT_MPEG1, 40 FMT_MPEG1,
58 #define MAX_PICTURE_COUNT 32 59 #define MAX_PICTURE_COUNT 32
59 60
60 #define ME_MAP_SIZE 64 61 #define ME_MAP_SIZE 64
61 #define ME_MAP_SHIFT 3 62 #define ME_MAP_SHIFT 3
62 #define ME_MAP_MV_BITS 11 63 #define ME_MAP_MV_BITS 11
63
64 /* run length table */
65 #define MAX_RUN 64
66 #define MAX_LEVEL 64
67 64
68 #define I_TYPE FF_I_TYPE ///< Intra 65 #define I_TYPE FF_I_TYPE ///< Intra
69 #define P_TYPE FF_P_TYPE ///< Predicted 66 #define P_TYPE FF_P_TYPE ///< Predicted
70 #define B_TYPE FF_B_TYPE ///< Bi-dir predicted 67 #define B_TYPE FF_B_TYPE ///< Bi-dir predicted
71 #define S_TYPE FF_S_TYPE ///< S(GMC)-VOP MPEG4 68 #define S_TYPE FF_S_TYPE ///< S(GMC)-VOP MPEG4
773 void ff_mpeg1_encode_init(MpegEncContext *s); 770 void ff_mpeg1_encode_init(MpegEncContext *s);
774 void ff_mpeg1_encode_slice_header(MpegEncContext *s); 771 void ff_mpeg1_encode_slice_header(MpegEncContext *s);
775 void ff_mpeg1_clean_buffers(MpegEncContext *s); 772 void ff_mpeg1_clean_buffers(MpegEncContext *s);
776 int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size); 773 int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size);
777 774
778 #include "rl.h"
779
780 extern const uint8_t ff_mpeg4_y_dc_scale_table[32]; 775 extern const uint8_t ff_mpeg4_y_dc_scale_table[32];
781 extern const uint8_t ff_mpeg4_c_dc_scale_table[32]; 776 extern const uint8_t ff_mpeg4_c_dc_scale_table[32];
782 extern const uint8_t ff_aic_dc_scale_table[32]; 777 extern const uint8_t ff_aic_dc_scale_table[32];
783 extern const int16_t ff_mpeg4_default_intra_matrix[64]; 778 extern const int16_t ff_mpeg4_default_intra_matrix[64];
784 extern const int16_t ff_mpeg4_default_non_intra_matrix[64]; 779 extern const int16_t ff_mpeg4_default_non_intra_matrix[64];