Commit 1de94f91 authored by diego's avatar diego

Add support for creating Simple Profile (I-frame only, no arithmetic coding)

Dirac bytestreams.  patch by Anuradha Suraparaju, anuradha rd.bbc.co uk


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15286 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0f2e247e
...@@ -175,9 +175,11 @@ static int libdirac_encode_init(AVCodecContext *avccontext) ...@@ -175,9 +175,11 @@ static int libdirac_encode_init(AVCodecContext *avccontext)
} }
/* Intra-only sequence */ /* Intra-only sequence */
if (avccontext->gop_size == 0 ) if (avccontext->gop_size == 0 ) {
p_dirac_params->enc_ctx.enc_params.num_L1 = 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; avccontext->has_b_frames = 1;
if (avccontext->flags & CODEC_FLAG_QSCALE) { if (avccontext->flags & CODEC_FLAG_QSCALE) {
......
...@@ -149,6 +149,11 @@ static int libschroedinger_encode_init(AVCodecContext *avccontext) ...@@ -149,6 +149,11 @@ static int libschroedinger_encode_init(AVCodecContext *avccontext)
schro_encoder_setting_set_double (p_schro_params->encoder, schro_encoder_setting_set_double (p_schro_params->encoder,
"gop_structure", "gop_structure",
SCHRO_ENCODER_GOP_INTRA_ONLY); 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 { else {
schro_encoder_setting_set_double (p_schro_params->encoder, schro_encoder_setting_set_double (p_schro_params->encoder,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment