VP8 wrapper: Turn on some mild amount of deblocking in post-processing.

Review URL: http://webrtc-codereview.appspot.com/268015

git-svn-id: http://webrtc.googlecode.com/svn/trunk@982 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
marpan@webrtc.org 2011-11-19 01:08:09 +00:00
parent ce9d89d892
commit 3caa327af0

View File

@ -804,17 +804,16 @@ VP8Decoder::InitDecode(const VideoCodec* inst,
#endif
#endif
flags |= VPX_CODEC_USE_POSTPROC;
if (vpx_codec_dec_init(_decoder, vpx_codec_vp8_dx(), NULL, flags))
{
return WEBRTC_VIDEO_CODEC_MEMORY;
}
// TODO(mikhal): evaluate post-proc settings
// config post-processing settings for decoder
ppcfg.post_proc_flag = VP8_DEBLOCK;
ppcfg.post_proc_flag = VP8_DEMACROBLOCK | VP8_DEBLOCK;
// Strength of deblocking filter. Valid range:[0,16]
ppcfg.deblocking_level = 5;
// ppcfg.NoiseLevel = 1; //Noise intensity. Valid range: [0,7]
ppcfg.deblocking_level = 3;
vpx_codec_control(_decoder, VP8_SET_POSTPROC, &ppcfg);
// Save VideoCodec instance for later; mainly for duplicating the decoder.