Mercurial > libavcodec.hg
comparison mpeg12.c @ 1530:3b31998fe22f libavcodec
disable encoders where appropriate (patch courtesy of BERO
<bero -at- geocities.co.jp>)
author | melanson |
---|---|
date | Tue, 14 Oct 2003 04:15:53 +0000 |
parents | d53b1fa09b60 |
children | 5d06823e2ee9 |
comparison
equal
deleted
inserted
replaced
1529:cb523a2ca00f | 1530:3b31998fe22f |
---|---|
46 #define MB_PAT_VLC_BITS 9 | 46 #define MB_PAT_VLC_BITS 9 |
47 #define MB_PTYPE_VLC_BITS 6 | 47 #define MB_PTYPE_VLC_BITS 6 |
48 #define MB_BTYPE_VLC_BITS 6 | 48 #define MB_BTYPE_VLC_BITS 6 |
49 #define TEX_VLC_BITS 9 | 49 #define TEX_VLC_BITS 9 |
50 | 50 |
51 #ifdef CONFIG_ENCODERS | |
51 static void mpeg1_encode_block(MpegEncContext *s, | 52 static void mpeg1_encode_block(MpegEncContext *s, |
52 DCTELEM *block, | 53 DCTELEM *block, |
53 int component); | 54 int component); |
54 static void mpeg1_encode_motion(MpegEncContext *s, int val, int f_or_b_code); // RAL: f_code parameter added | 55 static void mpeg1_encode_motion(MpegEncContext *s, int val, int f_or_b_code); // RAL: f_code parameter added |
56 #endif //CONFIG_ENCODERS | |
55 static void mpeg1_skip_picture(MpegEncContext *s, int pict_num); | 57 static void mpeg1_skip_picture(MpegEncContext *s, int pict_num); |
56 static inline int mpeg1_decode_block_inter(MpegEncContext *s, | 58 static inline int mpeg1_decode_block_inter(MpegEncContext *s, |
57 DCTELEM *block, | 59 DCTELEM *block, |
58 int n); | 60 int n); |
59 static inline int mpeg1_decode_block_intra(MpegEncContext *s, | 61 static inline int mpeg1_decode_block_intra(MpegEncContext *s, |
83 static uint32_t mpeg1_lum_dc_uni[512]; | 85 static uint32_t mpeg1_lum_dc_uni[512]; |
84 static uint32_t mpeg1_chr_dc_uni[512]; | 86 static uint32_t mpeg1_chr_dc_uni[512]; |
85 | 87 |
86 static uint8_t mpeg1_index_run[2][64]; | 88 static uint8_t mpeg1_index_run[2][64]; |
87 static int8_t mpeg1_max_level[2][64]; | 89 static int8_t mpeg1_max_level[2][64]; |
88 #endif | 90 #endif //CONFIG_ENCODERS |
89 | 91 |
90 static void init_2d_vlc_rl(RLTable *rl) | 92 static void init_2d_vlc_rl(RLTable *rl) |
91 { | 93 { |
92 int i; | 94 int i; |
93 | 95 |
359 | 361 |
360 /* zero motion x & y */ | 362 /* zero motion x & y */ |
361 put_bits(&s->pb, 1, 1); | 363 put_bits(&s->pb, 1, 1); |
362 put_bits(&s->pb, 1, 1); | 364 put_bits(&s->pb, 1, 1); |
363 } | 365 } |
364 #endif | 366 #endif //CONFIG_ENCODERS |
365 | 367 |
366 static void common_init(MpegEncContext *s) | 368 static void common_init(MpegEncContext *s) |
367 { | 369 { |
368 s->y_dc_scale_table= | 370 s->y_dc_scale_table= |
369 s->c_dc_scale_table= ff_mpeg1_dc_scale_table; | 371 s->c_dc_scale_table= ff_mpeg1_dc_scale_table; |