Mercurial > libavcodec.hg
comparison rv10.c @ 3177:8d1b2cc2a75b libavcodec
(f)printf --> av_log conversion
taken from a patch by Steve L'Homme
author | diego |
---|---|
date | Wed, 08 Mar 2006 11:43:10 +0000 |
parents | 0b546eab515d |
children | 333e016c2c8a |
comparison
equal
deleted
inserted
replaced
3176:babf844e1308 | 3177:8d1b2cc2a75b |
---|---|
319 //printf("h:%X ver:%d\n",h,s->rv10_version); | 319 //printf("h:%X ver:%d\n",h,s->rv10_version); |
320 if(!marker) av_log(s->avctx, AV_LOG_ERROR, "marker missing\n"); | 320 if(!marker) av_log(s->avctx, AV_LOG_ERROR, "marker missing\n"); |
321 pb_frame = get_bits(&s->gb, 1); | 321 pb_frame = get_bits(&s->gb, 1); |
322 | 322 |
323 #ifdef DEBUG | 323 #ifdef DEBUG |
324 printf("pict_type=%d pb_frame=%d\n", s->pict_type, pb_frame); | 324 av_log(s->avctx, AV_LOG_DEBUG, "pict_type=%d pb_frame=%d\n", s->pict_type, pb_frame); |
325 #endif | 325 #endif |
326 | 326 |
327 if (pb_frame){ | 327 if (pb_frame){ |
328 av_log(s->avctx, AV_LOG_ERROR, "pb frame not supported\n"); | 328 av_log(s->avctx, AV_LOG_ERROR, "pb frame not supported\n"); |
329 return -1; | 329 return -1; |
340 /* specific MPEG like DC coding not used */ | 340 /* specific MPEG like DC coding not used */ |
341 s->last_dc[0] = get_bits(&s->gb, 8); | 341 s->last_dc[0] = get_bits(&s->gb, 8); |
342 s->last_dc[1] = get_bits(&s->gb, 8); | 342 s->last_dc[1] = get_bits(&s->gb, 8); |
343 s->last_dc[2] = get_bits(&s->gb, 8); | 343 s->last_dc[2] = get_bits(&s->gb, 8); |
344 #ifdef DEBUG | 344 #ifdef DEBUG |
345 printf("DC:%d %d %d\n", | 345 av_log(s->avctx, AV_LOG_DEBUG, "DC:%d %d %d\n", |
346 s->last_dc[0], | 346 s->last_dc[0], |
347 s->last_dc[1], | 347 s->last_dc[1], |
348 s->last_dc[2]); | 348 s->last_dc[2]); |
349 #endif | 349 #endif |
350 } | 350 } |
629 return -1; | 629 return -1; |
630 ff_er_frame_start(s); | 630 ff_er_frame_start(s); |
631 } | 631 } |
632 | 632 |
633 #ifdef DEBUG | 633 #ifdef DEBUG |
634 printf("qscale=%d\n", s->qscale); | 634 av_log(avctx, AV_LOG_DEBUG, "qscale=%d\n", s->qscale); |
635 #endif | 635 #endif |
636 | 636 |
637 /* default quantization values */ | 637 /* default quantization values */ |
638 if(s->codec_id== CODEC_ID_RV10){ | 638 if(s->codec_id== CODEC_ID_RV10){ |
639 if(s->mb_y==0) s->first_slice_line=1; | 639 if(s->mb_y==0) s->first_slice_line=1; |
670 | 670 |
671 for(s->mb_num_left= mb_count; s->mb_num_left>0; s->mb_num_left--) { | 671 for(s->mb_num_left= mb_count; s->mb_num_left>0; s->mb_num_left--) { |
672 int ret; | 672 int ret; |
673 ff_update_block_index(s); | 673 ff_update_block_index(s); |
674 #ifdef DEBUG | 674 #ifdef DEBUG |
675 printf("**mb x=%d y=%d\n", s->mb_x, s->mb_y); | 675 av_log(avctx, AV_LOG_DEBUG, "**mb x=%d y=%d\n", s->mb_x, s->mb_y); |
676 #endif | 676 #endif |
677 | 677 |
678 s->mv_dir = MV_DIR_FORWARD; | 678 s->mv_dir = MV_DIR_FORWARD; |
679 s->mv_type = MV_TYPE_16X16; | 679 s->mv_type = MV_TYPE_16X16; |
680 ret=ff_h263_decode_mb(s, s->block); | 680 ret=ff_h263_decode_mb(s, s->block); |
711 MpegEncContext *s = avctx->priv_data; | 711 MpegEncContext *s = avctx->priv_data; |
712 int i; | 712 int i; |
713 AVFrame *pict = data; | 713 AVFrame *pict = data; |
714 | 714 |
715 #ifdef DEBUG | 715 #ifdef DEBUG |
716 printf("*****frame %d size=%d\n", avctx->frame_number, buf_size); | 716 av_log(avctx, AV_LOG_DEBUG, "*****frame %d size=%d\n", avctx->frame_number, buf_size); |
717 #endif | 717 #endif |
718 | 718 |
719 /* no supplementary picture */ | 719 /* no supplementary picture */ |
720 if (buf_size == 0) { | 720 if (buf_size == 0) { |
721 return 0; | 721 return 0; |