[FFmpeg-devel] [PATCH] libvpx: deadline & profile support

James Zern jzern
Mon Jul 12 22:23:04 CEST 2010


On Sun, Jul 11, 2010 at 08:58, Michael Niedermayer <michaelni at gmx.at> wrote:
>> + ? ?switch (FFABS(avctx->level) / 100) {
>> + ? ?case 1:
>> + ? ? ? ?ctx->deadline = VPX_DL_BEST_QUALITY;
>> + ? ? ? ?break;
>> + ? ?case 2:
>> + ? ?default:
>> + ? ? ? ?ctx->deadline = VPX_DL_GOOD_QUALITY;
>> + ? ? ? ?break;
>> + ? ?case 3:
>> + ? ? ? ?ctx->deadline = VPX_DL_REALTIME;
>> + ? ? ? ?break;
>> + ? ?}
>> + ? ?av_log(avctx, AV_LOG_DEBUG, "Using deadline: %lu\n", ctx->deadline);
>
> avctx->level and ctx->deadline seem to differ in semantics, so iam not
> in favor of this

That's fair, I didn't see a great mapping for these though. Would they
warrant new parameters? Maybe a flags2 for error resilience?



More information about the ffmpeg-devel mailing list