Mercurial > libavcodec.hg
comparison h263.c @ 1390:39d07c0263de libavcodec
patch for flv deblocking by (Garrick Meeker <gmeeker at theoryllc dot com>)
author | michaelni |
---|---|
date | Tue, 29 Jul 2003 09:58:47 +0000 |
parents | da0b3a50d209 |
children | ba99a78bcb37 |
comparison
equal
deleted
inserted
replaced
1389:da0b3a50d209 | 1390:39d07c0263de |
---|---|
49 #define TEX_VLC_BITS 9 | 49 #define TEX_VLC_BITS 9 |
50 | 50 |
51 #ifdef CONFIG_ENCODERS | 51 #ifdef CONFIG_ENCODERS |
52 static void h263_encode_block(MpegEncContext * s, DCTELEM * block, | 52 static void h263_encode_block(MpegEncContext * s, DCTELEM * block, |
53 int n); | 53 int n); |
54 static void h263_flv_encode_block(MpegEncContext * s, DCTELEM * block, | |
55 int n); | |
56 static void h263_encode_motion(MpegEncContext * s, int val, int fcode); | 54 static void h263_encode_motion(MpegEncContext * s, int val, int fcode); |
57 static void h263p_encode_umotion(MpegEncContext * s, int val); | 55 static void h263p_encode_umotion(MpegEncContext * s, int val); |
58 static inline void mpeg4_encode_block(MpegEncContext * s, DCTELEM * block, | 56 static inline void mpeg4_encode_block(MpegEncContext * s, DCTELEM * block, |
59 int n, int dc, uint8_t *scan_table, | 57 int n, int dc, uint8_t *scan_table, |
60 PutBitContext *dc_pb, PutBitContext *ac_pb); | 58 PutBitContext *dc_pb, PutBitContext *ac_pb); |
183 } else if (format == 1) { | 181 } else if (format == 1) { |
184 put_bits(&s->pb, 16, s->width); | 182 put_bits(&s->pb, 16, s->width); |
185 put_bits(&s->pb, 16, s->height); | 183 put_bits(&s->pb, 16, s->height); |
186 } | 184 } |
187 put_bits(&s->pb, 2, s->pict_type == P_TYPE); /* PictureType */ | 185 put_bits(&s->pb, 2, s->pict_type == P_TYPE); /* PictureType */ |
188 put_bits(&s->pb, 1, 0); /* DeblockingFlag: off */ | 186 put_bits(&s->pb, 1, 1); /* DeblockingFlag: on */ |
189 put_bits(&s->pb, 5, s->qscale); /* Quantizer */ | 187 put_bits(&s->pb, 5, s->qscale); /* Quantizer */ |
190 put_bits(&s->pb, 1, 0); /* ExtraInformation */ | 188 put_bits(&s->pb, 1, 0); /* ExtraInformation */ |
191 | 189 |
192 if(s->h263_aic){ | 190 if(s->h263_aic){ |
193 s->y_dc_scale_table= | 191 s->y_dc_scale_table= |