comparison libvpxenc.c @ 12140:3d186eff2224 libavcodec

Set libvpx encoding profile to libavcodec's profile. Patch by James Zern, jzern google
author cehoyos
date Sun, 11 Jul 2010 17:46:44 +0000
parents 24a6c651c3f3
children d102b12f69dc
comparison
equal deleted inserted replaced
12139:e59926e2c50c 12140:3d186eff2224
275 ctx->twopass_stats.sz = decode_size; 275 ctx->twopass_stats.sz = decode_size;
276 enccfg.rc_twopass_stats_in = ctx->twopass_stats; 276 enccfg.rc_twopass_stats_in = ctx->twopass_stats;
277 } 277 }
278 278
279 ctx->deadline = VPX_DL_GOOD_QUALITY; 279 ctx->deadline = VPX_DL_GOOD_QUALITY;
280 /* 0-3: For non-zero values the encoder increasingly optimizes for reduced
281 complexity playback on low powered devices at the expense of encode
282 quality. */
283 if (avctx->profile != FF_PROFILE_UNKNOWN)
284 enccfg.g_profile = avctx->profile;
280 285
281 dump_enc_cfg(avctx, &enccfg); 286 dump_enc_cfg(avctx, &enccfg);
282 /* Construct Encoder Context */ 287 /* Construct Encoder Context */
283 res = vpx_codec_enc_init(&ctx->encoder, iface, &enccfg, 0); 288 res = vpx_codec_enc_init(&ctx->encoder, iface, &enccfg, 0);
284 if (res != VPX_CODEC_OK) { 289 if (res != VPX_CODEC_OK) {