projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
945dda4
)
vpxenc: add VP8E_SET_STATIC_THRESHOLD mapping
author
James Zern
<git@videolan.org>
Tue, 12 Apr 2011 02:40:47 +0000
(
04:40
+0200)
committer
Reinhard Tartler
<siretart@tauware.de>
Sat, 28 May 2011 10:15:59 +0000
(12:15 +0200)
via the equivalent AVCodecContext::mb_threshold
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libvpxenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/libvpxenc.c
b/libavcodec/libvpxenc.c
index
79009b1
..
02f8135
100644
(file)
--- 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,