[FFmpeg-cvslog] vpxenc: add VP8E_SET_STATIC_THRESHOLD mapping
James Zern
git at videolan.org
Sun May 29 03:46:43 CEST 2011
ffmpeg | branch: master | James Zern <git at videolan.org> | Tue Apr 12 04:40:47 2011 +0200| [88aa21593932fbf5597996041ab669848c542ee5] | committer: Reinhard Tartler
vpxenc: add VP8E_SET_STATIC_THRESHOLD mapping
via the equivalent AVCodecContext::mb_threshold
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=88aa21593932fbf5597996041ab669848c542ee5
---
libavcodec/libvpxenc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 79009b1..02f8135 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -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,
More information about the ffmpeg-cvslog
mailing list