Skip to content
Snippets Groups Projects
Commit a299a261 authored by James Zern's avatar James Zern Committed by Michael Niedermayer
Browse files

vpxenc: add VP8E_SET_STATIC_THRESHOLD mapping


via the equivalent AVCodecContext::mb_threshold

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 4727ec3c
No related branches found
No related tags found
No related merge requests found
......@@ -311,6 +311,7 @@ static av_cold int vp8_init(AVCodecContext *avctx)
codecctl_int(avctx, VP8E_SET_CPUUSED, cpuused);
codecctl_int(avctx, VP8E_SET_NOISE_SENSITIVITY, avctx->noise_reduction);
codecctl_int(avctx, VP8E_SET_TOKEN_PARTITIONS, av_log2(avctx->slices));
codecctl_int(avctx, VP8E_SET_STATIC_THRESHOLD, avctx->mb_threshold);
//provide dummy value to initialize wrapper, values will be updated each _encode()
vpx_img_wrap(&ctx->rawimg, VPX_IMG_FMT_I420, avctx->width, avctx->height, 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment