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
|
|
|
*/
|
|
|
|
|
2012-11-30 01:36:10 +01:00
|
|
|
#ifndef VP9_COMMON_VP9_RECONINTER_H_
|
|
|
|
#define VP9_COMMON_VP9_RECONINTER_H_
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2012-11-28 19:41:40 +01:00
|
|
|
#include "vp9/common/vp9_onyxc_int.h"
|
2012-07-18 22:43:01 +02:00
|
|
|
|
2012-10-31 00:25:53 +01:00
|
|
|
extern void vp9_build_1st_inter16x16_predictors_mby(MACROBLOCKD *xd,
|
2012-08-09 02:12:12 +02:00
|
|
|
unsigned char *dst_y,
|
2012-08-16 20:04:34 +02:00
|
|
|
int dst_ystride,
|
|
|
|
int clamp_mvs);
|
2012-11-01 00:09:17 +01:00
|
|
|
|
2012-10-31 00:25:53 +01:00
|
|
|
extern void vp9_build_1st_inter16x16_predictors_mbuv(MACROBLOCKD *xd,
|
2012-08-09 02:12:12 +02:00
|
|
|
unsigned char *dst_u,
|
|
|
|
unsigned char *dst_v,
|
|
|
|
int dst_uvstride);
|
2012-11-01 00:09:17 +01:00
|
|
|
|
2012-10-31 00:25:53 +01:00
|
|
|
extern void vp9_build_1st_inter16x16_predictors_mb(MACROBLOCKD *xd,
|
2012-08-09 02:12:12 +02:00
|
|
|
unsigned char *dst_y,
|
|
|
|
unsigned char *dst_u,
|
|
|
|
unsigned char *dst_v,
|
|
|
|
int dst_ystride,
|
|
|
|
int dst_uvstride);
|
|
|
|
|
2012-10-31 00:25:53 +01:00
|
|
|
extern void vp9_build_2nd_inter16x16_predictors_mby(MACROBLOCKD *xd,
|
2012-08-10 01:07:41 +02:00
|
|
|
unsigned char *dst_y,
|
|
|
|
int dst_ystride);
|
2012-11-01 00:09:17 +01:00
|
|
|
|
2012-10-31 00:25:53 +01:00
|
|
|
extern void vp9_build_2nd_inter16x16_predictors_mbuv(MACROBLOCKD *xd,
|
2012-08-10 01:07:41 +02:00
|
|
|
unsigned char *dst_u,
|
|
|
|
unsigned char *dst_v,
|
|
|
|
int dst_uvstride);
|
2012-11-01 00:09:17 +01:00
|
|
|
|
2012-10-31 00:25:53 +01:00
|
|
|
extern void vp9_build_2nd_inter16x16_predictors_mb(MACROBLOCKD *xd,
|
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
|
|
|
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-21 02:45:36 +02:00
|
|
|
#if CONFIG_SUPERBLOCKS
|
2012-10-31 00:25:53 +01:00
|
|
|
extern void vp9_build_inter32x32_predictors_sb(MACROBLOCKD *x,
|
2012-08-21 02:45:36 +02:00
|
|
|
unsigned char *dst_y,
|
|
|
|
unsigned char *dst_u,
|
|
|
|
unsigned char *dst_v,
|
|
|
|
int dst_ystride,
|
|
|
|
int dst_uvstride);
|
|
|
|
#endif
|
|
|
|
|
2012-10-31 00:25:53 +01:00
|
|
|
extern void vp9_build_inter_predictors_mb(MACROBLOCKD *xd);
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2012-10-31 00:25:53 +01:00
|
|
|
extern void vp9_build_inter_predictors_b(BLOCKD *d, int pitch,
|
2012-10-31 22:40:53 +01:00
|
|
|
vp9_subpix_fn_t sppf);
|
2012-11-01 00:09:17 +01:00
|
|
|
|
2012-10-31 00:25:53 +01:00
|
|
|
extern void vp9_build_2nd_inter_predictors_b(BLOCKD *d, int pitch,
|
2012-10-31 22:40:53 +01:00
|
|
|
vp9_subpix_fn_t sppf);
|
2011-08-24 20:42:26 +02:00
|
|
|
|
2012-10-31 00:25:53 +01:00
|
|
|
extern void vp9_build_inter_predictors4b(MACROBLOCKD *xd, BLOCKD *d,
|
2012-10-17 20:40:00 +02:00
|
|
|
int pitch);
|
2012-11-01 00:09:17 +01:00
|
|
|
|
2012-10-31 00:25:53 +01:00
|
|
|
extern void vp9_build_2nd_inter_predictors4b(MACROBLOCKD *xd,
|
2012-10-17 20:40:00 +02:00
|
|
|
BLOCKD *d, int pitch);
|
|
|
|
|
2012-10-31 00:25:53 +01:00
|
|
|
extern void vp9_build_inter4x4_predictors_mbuv(MACROBLOCKD *xd);
|
2012-11-01 00:09:17 +01:00
|
|
|
|
2012-10-31 00:25:53 +01:00
|
|
|
extern void vp9_setup_interp_filters(MACROBLOCKD *xd,
|
2012-08-15 12:00:53 +02:00
|
|
|
INTERPOLATIONFILTERTYPE filter,
|
2012-10-31 01:53:32 +01:00
|
|
|
VP9_COMMON *cm);
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2012-11-01 00:09:17 +01:00
|
|
|
#endif // __INC_RECONINTER_H
|