comparison mpegvideo.c @ 1992:938e47c809b0 libavcodec

intra_dc_precission>0 encoding support
author michael
date Fri, 30 Apr 2004 13:44:29 +0000
parents fa09319b80af
children 8d3540dddd1b
comparison
equal deleted inserted replaced
1991:fa09319b80af 1992:938e47c809b0
888 s->strict_std_compliance= avctx->strict_std_compliance; 888 s->strict_std_compliance= avctx->strict_std_compliance;
889 s->data_partitioning= avctx->flags & CODEC_FLAG_PART; 889 s->data_partitioning= avctx->flags & CODEC_FLAG_PART;
890 s->quarter_sample= (avctx->flags & CODEC_FLAG_QPEL)!=0; 890 s->quarter_sample= (avctx->flags & CODEC_FLAG_QPEL)!=0;
891 s->mpeg_quant= avctx->mpeg_quant; 891 s->mpeg_quant= avctx->mpeg_quant;
892 s->rtp_mode= !!avctx->rtp_payload_size; 892 s->rtp_mode= !!avctx->rtp_payload_size;
893 s->intra_dc_precision= avctx->intra_dc_precision;
893 894
894 if (s->gop_size <= 1) { 895 if (s->gop_size <= 1) {
895 s->intra_only = 1; 896 s->intra_only = 1;
896 s->gop_size = 12; 897 s->gop_size = 12;
897 } else { 898 } else {
4007 s->skip_count=0; 4008 s->skip_count=0;
4008 4009
4009 for(i=0; i<3; i++){ 4010 for(i=0; i<3; i++){
4010 /* init last dc values */ 4011 /* init last dc values */
4011 /* note: quant matrix value (8) is implied here */ 4012 /* note: quant matrix value (8) is implied here */
4012 s->last_dc[i] = 128; 4013 s->last_dc[i] = 128 << s->intra_dc_precision;
4013 4014
4014 s->current_picture_ptr->error[i] = 0; 4015 s->current_picture_ptr->error[i] = 0;
4015 } 4016 }
4016 s->mb_skip_run = 0; 4017 s->mb_skip_run = 0;
4017 memset(s->last_mv, 0, sizeof(s->last_mv)); 4018 memset(s->last_mv, 0, sizeof(s->last_mv));