Libavcodec: opt to enable interlaced DCT (H.264)

This commit is contained in:
Martin Pulec
2017-01-23 19:00:08 +01:00
parent b63e19c164
commit 00bb07667f

View File

@@ -1182,10 +1182,19 @@ static void configure_x264_x265(AVCodecContext *codec_ctx, struct setparam_param
//codec_ctx->rc_qsquish = 0;
//codec_ctx->scenechange_threshold = 100;
// this options increases variance in frame sizes quite a lot
//if (param->interlaced) {
// codec_ctx->flags |= AV_CODEC_FLAG_INTERLACED_DCT;
//}
/**
* @addtogroup cmdline_params
* @{
* * lavc-h264-interlaced-dct
* Use interlaced DCT for H.264
* @}
*/
if (get_commandline_param("lavc-h264-interlaced-dct")) {
// this options increases variance in frame sizes quite a lot
if (param->interlaced) {
codec_ctx->flags |= AV_CODEC_FLAG_INTERLACED_DCT;
}
}
}
static void configure_qsv(AVCodecContext *codec_ctx, struct setparam_param * /* param */)