comparison libdiracenc.c @ 7839:e6348a5656e0 libavcodec

Add support for creating Simple Profile (I-frame only, no arithmetic coding) Dirac bytestreams. patch by Anuradha Suraparaju, anuradha rd.bbc.co uk
author diego
date Tue, 09 Sep 2008 14:47:47 +0000
parents e674db16f1c6
children 00fca5d6f0d9
comparison
equal deleted inserted replaced
7838:88f4153caa21 7839:e6348a5656e0
173 p_dirac_params->enc_ctx.decode_flag = 1; 173 p_dirac_params->enc_ctx.decode_flag = 1;
174 p_dirac_params->enc_ctx.instr_flag = 1; 174 p_dirac_params->enc_ctx.instr_flag = 1;
175 } 175 }
176 176
177 /* Intra-only sequence */ 177 /* Intra-only sequence */
178 if (avccontext->gop_size == 0 ) 178 if (avccontext->gop_size == 0 ) {
179 p_dirac_params->enc_ctx.enc_params.num_L1 = 0; 179 p_dirac_params->enc_ctx.enc_params.num_L1 = 0;
180 else 180 if (avccontext->coder_type == FF_CODER_TYPE_VLC)
181 p_dirac_params->enc_ctx.enc_params.using_ac = 0;
182 } else
181 avccontext->has_b_frames = 1; 183 avccontext->has_b_frames = 1;
182 184
183 if (avccontext->flags & CODEC_FLAG_QSCALE) { 185 if (avccontext->flags & CODEC_FLAG_QSCALE) {
184 if (avccontext->global_quality != 0) { 186 if (avccontext->global_quality != 0) {
185 p_dirac_params->enc_ctx.enc_params.qf = 187 p_dirac_params->enc_ctx.enc_params.qf =