Mercurial > libavcodec.hg
comparison h263.c @ 9431:932543edc1d2 libavcodec
Rename pbBufPtr() to put_bits_ptr().
The new name is more readable and consistent with the FFmpeg naming
style.
author | stefano |
---|---|
date | Mon, 13 Apr 2009 16:59:38 +0000 |
parents | 0bd35457454e |
children | a15a08c1ce8b |
comparison
equal
deleted
inserted
replaced
9430:e806d2145e72 | 9431:932543edc1d2 |
---|---|
243 coded_frame_rate_base= (1000+best_clock_code)*best_divisor; | 243 coded_frame_rate_base= (1000+best_clock_code)*best_divisor; |
244 | 244 |
245 align_put_bits(&s->pb); | 245 align_put_bits(&s->pb); |
246 | 246 |
247 /* Update the pointer to last GOB */ | 247 /* Update the pointer to last GOB */ |
248 s->ptr_lastgob = pbBufPtr(&s->pb); | 248 s->ptr_lastgob = put_bits_ptr(&s->pb); |
249 put_bits(&s->pb, 22, 0x20); /* PSC */ | 249 put_bits(&s->pb, 22, 0x20); /* PSC */ |
250 temp_ref= s->picture_number * (int64_t)coded_frame_rate * s->avctx->time_base.num / //FIXME use timestamp | 250 temp_ref= s->picture_number * (int64_t)coded_frame_rate * s->avctx->time_base.num / //FIXME use timestamp |
251 (coded_frame_rate_base * (int64_t)s->avctx->time_base.den); | 251 (coded_frame_rate_base * (int64_t)s->avctx->time_base.den); |
252 put_sbits(&s->pb, 8, temp_ref); /* TemporalReference */ | 252 put_sbits(&s->pb, 8, temp_ref); /* TemporalReference */ |
253 | 253 |
3051 | 3051 |
3052 #if CONFIG_ENCODERS | 3052 #if CONFIG_ENCODERS |
3053 | 3053 |
3054 void ff_mpeg4_init_partitions(MpegEncContext *s) | 3054 void ff_mpeg4_init_partitions(MpegEncContext *s) |
3055 { | 3055 { |
3056 uint8_t *start= pbBufPtr(&s->pb); | 3056 uint8_t *start= put_bits_ptr(&s->pb); |
3057 uint8_t *end= s->pb.buf_end; | 3057 uint8_t *end= s->pb.buf_end; |
3058 int size= end - start; | 3058 int size= end - start; |
3059 int pb_size = (((intptr_t)start + size/3)&(~3)) - (intptr_t)start; | 3059 int pb_size = (((intptr_t)start + size/3)&(~3)) - (intptr_t)start; |
3060 int tex_size= (size - 2*pb_size)&(~3); | 3060 int tex_size= (size - 2*pb_size)&(~3); |
3061 | 3061 |