5259744145
Allows for swtiching/setting interpolation filters at the MB level. A frame level flag indicates whether to use a specifc filter for the entire frame or to signal the interpolation filter for each MB. When switchable filters are used, the encoder chooses between 8-tap and 8-tap sharp filters. The code currently has options to explore other variations as well, which will be cleaned up subsequently. One issue with the framework is that encoding is slow. I tried to do some tricks to speed things up but it is still slow. Decoding speed should not be affected since the number of filter taps remain unchanged. With the current version, we are up 0.5% on derf on average but some videos city/mobile improve by close to 4 and 2% respectively. If we did a full-search by turning the SEARCH_BEST_FILTER flag on, the results are somewhat better. The framework can be combined with filtered prediction, and I seek feedback regarding that. Rebased. Change-Id: I8f632cb2c111e76284140a2bd480945d6d42b77a
43 lines
1.9 KiB
C
43 lines
1.9 KiB
C
/*
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
|
|
#ifndef __INC_RECONINTER_H
|
|
#define __INC_RECONINTER_H
|
|
|
|
#if CONFIG_RUNTIME_CPU_DETECT
|
|
#include "onyxc_int.h"
|
|
#endif
|
|
|
|
extern void vp8_build_inter_predictors_mb(MACROBLOCKD *x);
|
|
extern void vp8_build_inter16x16_predictors_mb(MACROBLOCKD *x,
|
|
unsigned char *dst_y,
|
|
unsigned char *dst_u,
|
|
unsigned char *dst_v,
|
|
int dst_ystride,
|
|
int dst_uvstride);
|
|
extern void vp8_build_2nd_inter16x16_predictors_mb(MACROBLOCKD *x,
|
|
unsigned char *dst_y,
|
|
unsigned char *dst_u,
|
|
unsigned char *dst_v,
|
|
int dst_ystride,
|
|
int dst_uvstride);
|
|
|
|
|
|
extern void vp8_build_inter16x16_predictors_mby(MACROBLOCKD *x);
|
|
extern void vp8_build_inter_predictors_b(BLOCKD *d, int pitch, vp8_subpix_fn_t sppf);
|
|
extern void vp8_build_2nd_inter_predictors_b(BLOCKD *d, int pitch, vp8_subpix_fn_t sppf);
|
|
|
|
extern void vp8_build_inter16x16_predictors_mbuv(MACROBLOCKD *x);
|
|
extern void vp8_build_inter4x4_predictors_mbuv(MACROBLOCKD *x);
|
|
extern void vp8_setup_interp_filters(MACROBLOCKD *x, INTERPOLATIONFILTERTYPE filter, VP8_COMMON *cm);
|
|
|
|
#endif
|