2010-05-18 17:58:33 +02:00
|
|
|
/*
|
2010-09-09 14:16:39 +02:00
|
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
2010-05-18 17:58:33 +02:00
|
|
|
*
|
2010-06-18 18:39:21 +02:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
2010-06-04 22:19:40 +02:00
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
2010-06-18 18:39:21 +02:00
|
|
|
* in the file PATENTS. All contributing project authors may
|
2010-06-04 22:19:40 +02:00
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2010-05-18 17:58:33 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __INC_RECONINTER_H
|
|
|
|
#define __INC_RECONINTER_H
|
|
|
|
|
2012-07-18 22:43:01 +02:00
|
|
|
#if CONFIG_RUNTIME_CPU_DETECT
|
|
|
|
#include "onyxc_int.h"
|
|
|
|
#endif
|
|
|
|
|
2012-08-09 02:12:12 +02:00
|
|
|
extern void vp8_build_1st_inter16x16_predictors_mby(MACROBLOCKD *x,
|
|
|
|
unsigned char *dst_y,
|
|
|
|
int dst_ystride);
|
|
|
|
extern void vp8_build_1st_inter16x16_predictors_mbuv(MACROBLOCKD *x,
|
|
|
|
unsigned char *dst_u,
|
|
|
|
unsigned char *dst_v,
|
|
|
|
int dst_uvstride);
|
|
|
|
extern void vp8_build_1st_inter16x16_predictors_mb(MACROBLOCKD *x,
|
|
|
|
unsigned char *dst_y,
|
|
|
|
unsigned char *dst_u,
|
|
|
|
unsigned char *dst_v,
|
|
|
|
int dst_ystride,
|
|
|
|
int dst_uvstride);
|
|
|
|
|
Dual 16x16 inter prediction.
This patch introduces the concept of dual inter16x16 prediction. A
16x16 inter-predicted macroblock can use 2 references instead of 1,
where both references use the same mvmode (new, near/est, zero). In the
case of newmv, this means that two MVs are coded instead of one. The
frame can be encoded in 3 ways: all MBs single-prediction, all MBs dual
prediction, or per-MB single/dual prediction selection ("hybrid"), in
which case a single bit is coded per-MB to indicate whether the MB uses
single or dual inter prediction.
In the future, we can (maybe?) get further gains by mixing this with
Adrian's 32x32 work, per-segment dual prediction settings, or adding
support for dual splitmv/8x8mv inter prediction.
Gain (on derf-set, CQ mode) is ~2.8% (SSIM) or ~3.6% (glb PSNR). Most
gain is at medium/high bitrates, but there's minor gains at low bitrates
also. Output was confirmed to match between encoder and decoder.
Note for optimization people: this patch introduces a 2nd version of
16x16/8x8 sixtap/bilin functions, which does an avg instead of a
store. They may want to look and make sure this is implemented to
their satisfaction so we can optimize it best in the future.
Change-ID: I59dc84b07cbb3ccf073ac0f756d03d294cb19281
2011-12-06 20:53:02 +01:00
|
|
|
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);
|
2011-04-28 16:53:59 +02:00
|
|
|
|
2012-08-09 02:12:12 +02:00
|
|
|
extern void vp8_build_inter_predictors_mb(MACROBLOCKD *x);
|
2010-05-18 17:58:33 +02:00
|
|
|
|
|
|
|
extern void vp8_build_inter_predictors_b(BLOCKD *d, int pitch, vp8_subpix_fn_t sppf);
|
2012-04-18 22:51:58 +02:00
|
|
|
extern void vp8_build_2nd_inter_predictors_b(BLOCKD *d, int pitch, vp8_subpix_fn_t sppf);
|
2011-08-24 20:42:26 +02:00
|
|
|
|
|
|
|
extern void vp8_build_inter4x4_predictors_mbuv(MACROBLOCKD *x);
|
2012-07-18 22:43:01 +02:00
|
|
|
extern void vp8_setup_interp_filters(MACROBLOCKD *x, INTERPOLATIONFILTERTYPE filter, VP8_COMMON *cm);
|
2010-05-18 17:58:33 +02:00
|
|
|
|
|
|
|
#endif
|