Adds a multiframe postprocessing module to enhance the quality of certain frames that are coded at lower quality than preceding frames. The module can be invoked from the commandline by use of the --mfqe option, and will be most beneficial for enhancing the quality of frames decoded using scalable patterns. Uses the vp8_variance_var16x16 and vp8_variance_sad16x16 function pointers to compute SAD and Variance of blocks.
Showing the changes to examples (1 of 7 files). Show all
Unified · Split
| @@ -58,7 +58,7 @@ if(frame_cnt%30 == 1) { · 57 unmodified lines | |||
| 58 | if(vpx_codec_control(&codec, VP8_SET_POSTPROC, &pp)) | 58 | if(vpx_codec_control(&codec, VP8_SET_POSTPROC, &pp)) |
| 59 | die_codec(&codec, "Failed to turn off postproc"); | 59 | die_codec(&codec, "Failed to turn off postproc"); |
| 60 | } else if(frame_cnt%30 == 16) { | 60 | } else if(frame_cnt%30 == 16) { |
| 61 | vp8_postproc_cfg_t pp = {VP8_DEBLOCK | VP8_DEMACROBLOCK, 4, 0}; | 61 | vp8_postproc_cfg_t pp = {VP8_DEBLOCK | VP8_DEMACROBLOCK | VP8_MFQE, 4, 0}; |
| 62 | 62 | ||
| 63 | if(vpx_codec_control(&codec, VP8_SET_POSTPROC, &pp)) | 63 | if(vpx_codec_control(&codec, VP8_SET_POSTPROC, &pp)) |
| 64 | die_codec(&codec, "Failed to turn on postproc"); | 64 | die_codec(&codec, "Failed to turn on postproc"); |