# HG changeset patch # User diego # Date 1220971667 0 # Node ID e6348a5656e09ab26b643e08d064f149b8efeb7c # Parent 88f4153caa2164e1bdfd022aadb23c96d624859f Add support for creating Simple Profile (I-frame only, no arithmetic coding) Dirac bytestreams. patch by Anuradha Suraparaju, anuradha rd.bbc.co uk diff -r 88f4153caa21 -r e6348a5656e0 libdiracenc.c --- a/libdiracenc.c Tue Sep 09 14:42:50 2008 +0000 +++ b/libdiracenc.c Tue Sep 09 14:47:47 2008 +0000 @@ -175,9 +175,11 @@ } /* Intra-only sequence */ - if (avccontext->gop_size == 0 ) + if (avccontext->gop_size == 0 ) { p_dirac_params->enc_ctx.enc_params.num_L1 = 0; - else + if (avccontext->coder_type == FF_CODER_TYPE_VLC) + p_dirac_params->enc_ctx.enc_params.using_ac = 0; + } else avccontext->has_b_frames = 1; if (avccontext->flags & CODEC_FLAG_QSCALE) { diff -r 88f4153caa21 -r e6348a5656e0 libschroedingerenc.c --- a/libschroedingerenc.c Tue Sep 09 14:42:50 2008 +0000 +++ b/libschroedingerenc.c Tue Sep 09 14:47:47 2008 +0000 @@ -149,6 +149,11 @@ schro_encoder_setting_set_double (p_schro_params->encoder, "gop_structure", SCHRO_ENCODER_GOP_INTRA_ONLY); + + if (avccontext->coder_type == FF_CODER_TYPE_VLC) { + schro_encoder_setting_set_double (p_schro_params->encoder, + "enable_noarith", 1); + } } else { schro_encoder_setting_set_double (p_schro_params->encoder,