Mercurial > libavcodec.hg
comparison mpegvideo.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 | 925bcd748f4b |
children | 14d01ccc0081 |
comparison
equal
deleted
inserted
replaced
1529:cb523a2ca00f | 1530:3b31998fe22f |
---|---|
171 if(j>end) end=j; | 171 if(j>end) end=j; |
172 st->raster_end[i]= end; | 172 st->raster_end[i]= end; |
173 } | 173 } |
174 } | 174 } |
175 | 175 |
176 #ifdef CONFIG_ENCODERS | |
176 void ff_write_quant_matrix(PutBitContext *pb, int16_t *matrix){ | 177 void ff_write_quant_matrix(PutBitContext *pb, int16_t *matrix){ |
177 int i; | 178 int i; |
178 | 179 |
179 if(matrix){ | 180 if(matrix){ |
180 put_bits(pb, 1, 1); | 181 put_bits(pb, 1, 1); |
182 put_bits(pb, 8, matrix[ ff_zigzag_direct[i] ]); | 183 put_bits(pb, 8, matrix[ ff_zigzag_direct[i] ]); |
183 } | 184 } |
184 }else | 185 }else |
185 put_bits(pb, 1, 0); | 186 put_bits(pb, 1, 0); |
186 } | 187 } |
188 #endif //CONFIG_ENCODERS | |
187 | 189 |
188 /* init common dct for both encoder and decoder */ | 190 /* init common dct for both encoder and decoder */ |
189 int DCT_common_init(MpegEncContext *s) | 191 int DCT_common_init(MpegEncContext *s) |
190 { | 192 { |
191 s->dct_unquantize_h263 = dct_unquantize_h263_c; | 193 s->dct_unquantize_h263 = dct_unquantize_h263_c; |