Removing vp9_invtrans.{c, h} files.
Moving single function from vp9_invtrans.c to vp9_encodemb.c. Change-Id: I26bf6bb90de342a3036c0dbfba78a7dd75a61fe7
This commit is contained in:
@@ -1,20 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "vp9/common/vp9_invtrans.h"
|
|
||||||
#include "./vp9_rtcd.h"
|
|
||||||
|
|
||||||
void vp9_inverse_transform_b_4x4_add(MACROBLOCKD *xd, int eob, int16_t *dqcoeff,
|
|
||||||
uint8_t *dest, int stride) {
|
|
||||||
if (eob <= 1)
|
|
||||||
xd->inv_txm4x4_1_add(dqcoeff, dest, stride);
|
|
||||||
else
|
|
||||||
xd->inv_txm4x4_add(dqcoeff, dest, stride);
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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 VP9_COMMON_VP9_INVTRANS_H_
|
|
||||||
#define VP9_COMMON_VP9_INVTRANS_H_
|
|
||||||
|
|
||||||
#include "./vpx_config.h"
|
|
||||||
#include "vpx/vpx_integer.h"
|
|
||||||
#include "vp9/common/vp9_blockd.h"
|
|
||||||
|
|
||||||
void vp9_inverse_transform_b_4x4_add(MACROBLOCKD *xd, int eob, int16_t *dqcoeff,
|
|
||||||
uint8_t *dest, int stride);
|
|
||||||
#endif // VP9_COMMON_VP9_INVTRANS_H_
|
|
||||||
@@ -20,7 +20,6 @@
|
|||||||
#include "vp9/common/vp9_reconintra.h"
|
#include "vp9/common/vp9_reconintra.h"
|
||||||
#include "vp9/common/vp9_reconinter.h"
|
#include "vp9/common/vp9_reconinter.h"
|
||||||
#include "vp9/common/vp9_entropy.h"
|
#include "vp9/common/vp9_entropy.h"
|
||||||
#include "vp9/common/vp9_invtrans.h"
|
|
||||||
#include "vp9/common/vp9_alloccommon.h"
|
#include "vp9/common/vp9_alloccommon.h"
|
||||||
#include "vp9/common/vp9_entropymode.h"
|
#include "vp9/common/vp9_entropymode.h"
|
||||||
#include "vp9/common/vp9_quant_common.h"
|
#include "vp9/common/vp9_quant_common.h"
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
#include "vp9/encoder/vp9_segmentation.h"
|
#include "vp9/encoder/vp9_segmentation.h"
|
||||||
#include "vp9/encoder/vp9_encodeintra.h"
|
#include "vp9/encoder/vp9_encodeintra.h"
|
||||||
#include "vp9/common/vp9_reconinter.h"
|
#include "vp9/common/vp9_reconinter.h"
|
||||||
#include "vp9/common/vp9_invtrans.h"
|
|
||||||
#include "vp9/encoder/vp9_rdopt.h"
|
#include "vp9/encoder/vp9_rdopt.h"
|
||||||
#include "vp9/common/vp9_findnearmv.h"
|
#include "vp9/common/vp9_findnearmv.h"
|
||||||
#include "vp9/common/vp9_reconintra.h"
|
#include "vp9/common/vp9_reconintra.h"
|
||||||
|
|||||||
@@ -13,7 +13,6 @@
|
|||||||
#include "vp9/encoder/vp9_quantize.h"
|
#include "vp9/encoder/vp9_quantize.h"
|
||||||
#include "vp9/common/vp9_reconintra.h"
|
#include "vp9/common/vp9_reconintra.h"
|
||||||
#include "vp9/encoder/vp9_encodemb.h"
|
#include "vp9/encoder/vp9_encodemb.h"
|
||||||
#include "vp9/common/vp9_invtrans.h"
|
|
||||||
#include "vp9/encoder/vp9_encodeintra.h"
|
#include "vp9/encoder/vp9_encodeintra.h"
|
||||||
|
|
||||||
int vp9_encode_intra(VP9_COMP *cpi, MACROBLOCK *x, int use_16x16_pred) {
|
int vp9_encode_intra(VP9_COMP *cpi, MACROBLOCK *x, int use_16x16_pred) {
|
||||||
|
|||||||
@@ -13,7 +13,6 @@
|
|||||||
#include "vp9/common/vp9_reconinter.h"
|
#include "vp9/common/vp9_reconinter.h"
|
||||||
#include "vp9/encoder/vp9_quantize.h"
|
#include "vp9/encoder/vp9_quantize.h"
|
||||||
#include "vp9/encoder/vp9_tokenize.h"
|
#include "vp9/encoder/vp9_tokenize.h"
|
||||||
#include "vp9/common/vp9_invtrans.h"
|
|
||||||
#include "vp9/common/vp9_reconintra.h"
|
#include "vp9/common/vp9_reconintra.h"
|
||||||
#include "vpx_mem/vpx_mem.h"
|
#include "vpx_mem/vpx_mem.h"
|
||||||
#include "vp9/encoder/vp9_rdopt.h"
|
#include "vp9/encoder/vp9_rdopt.h"
|
||||||
@@ -39,6 +38,15 @@ void vp9_subtract_block(int rows, int cols,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void inverse_transform_b_4x4_add(MACROBLOCKD *xd, int eob,
|
||||||
|
int16_t *dqcoeff, uint8_t *dest,
|
||||||
|
int stride) {
|
||||||
|
if (eob <= 1)
|
||||||
|
xd->inv_txm4x4_1_add(dqcoeff, dest, stride);
|
||||||
|
else
|
||||||
|
xd->inv_txm4x4_add(dqcoeff, dest, stride);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void subtract_plane(MACROBLOCK *x, BLOCK_SIZE_TYPE bsize, int plane) {
|
static void subtract_plane(MACROBLOCK *x, BLOCK_SIZE_TYPE bsize, int plane) {
|
||||||
struct macroblock_plane *const p = &x->plane[plane];
|
struct macroblock_plane *const p = &x->plane[plane];
|
||||||
@@ -527,7 +535,7 @@ static void encode_block(int plane, int block, BLOCK_SIZE_TYPE bsize,
|
|||||||
// this is like vp9_short_idct4x4 but has a special case around eob<=1
|
// this is like vp9_short_idct4x4 but has a special case around eob<=1
|
||||||
// which is significant (not just an optimization) for the lossless
|
// which is significant (not just an optimization) for the lossless
|
||||||
// case.
|
// case.
|
||||||
vp9_inverse_transform_b_4x4_add(xd, pd->eobs[block], dqcoeff,
|
inverse_transform_b_4x4_add(xd, pd->eobs[block], dqcoeff,
|
||||||
dst, pd->dst.stride);
|
dst, pd->dst.stride);
|
||||||
else
|
else
|
||||||
vp9_short_iht4x4_add(dqcoeff, dst, pd->dst.stride, tx_type);
|
vp9_short_iht4x4_add(dqcoeff, dst, pd->dst.stride, tx_type);
|
||||||
@@ -667,7 +675,7 @@ static void encode_block_intra(int plane, int block, BLOCK_SIZE_TYPE bsize,
|
|||||||
// this is like vp9_short_idct4x4 but has a special case around eob<=1
|
// this is like vp9_short_idct4x4 but has a special case around eob<=1
|
||||||
// which is significant (not just an optimization) for the lossless
|
// which is significant (not just an optimization) for the lossless
|
||||||
// case.
|
// case.
|
||||||
vp9_inverse_transform_b_4x4_add(xd, pd->eobs[block], dqcoeff,
|
inverse_transform_b_4x4_add(xd, pd->eobs[block], dqcoeff,
|
||||||
dst, pd->dst.stride);
|
dst, pd->dst.stride);
|
||||||
else
|
else
|
||||||
vp9_short_iht4x4_add(dqcoeff, dst, pd->dst.stride, tx_type);
|
vp9_short_iht4x4_add(dqcoeff, dst, pd->dst.stride, tx_type);
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ VP9_COMMON_SRCS-yes += common/vp9_enums.h
|
|||||||
VP9_COMMON_SRCS-yes += common/vp9_extend.h
|
VP9_COMMON_SRCS-yes += common/vp9_extend.h
|
||||||
VP9_COMMON_SRCS-yes += common/vp9_findnearmv.h
|
VP9_COMMON_SRCS-yes += common/vp9_findnearmv.h
|
||||||
VP9_COMMON_SRCS-yes += common/vp9_idct.h
|
VP9_COMMON_SRCS-yes += common/vp9_idct.h
|
||||||
VP9_COMMON_SRCS-yes += common/vp9_invtrans.h
|
|
||||||
VP9_COMMON_SRCS-yes += common/vp9_loopfilter.h
|
VP9_COMMON_SRCS-yes += common/vp9_loopfilter.h
|
||||||
VP9_COMMON_SRCS-yes += common/vp9_modecont.h
|
VP9_COMMON_SRCS-yes += common/vp9_modecont.h
|
||||||
VP9_COMMON_SRCS-yes += common/vp9_mv.h
|
VP9_COMMON_SRCS-yes += common/vp9_mv.h
|
||||||
@@ -59,7 +58,6 @@ VP9_COMMON_SRCS-yes += common/vp9_textblit.h
|
|||||||
VP9_COMMON_SRCS-yes += common/vp9_tile_common.h
|
VP9_COMMON_SRCS-yes += common/vp9_tile_common.h
|
||||||
VP9_COMMON_SRCS-yes += common/vp9_tile_common.c
|
VP9_COMMON_SRCS-yes += common/vp9_tile_common.c
|
||||||
VP9_COMMON_SRCS-yes += common/vp9_treecoder.h
|
VP9_COMMON_SRCS-yes += common/vp9_treecoder.h
|
||||||
VP9_COMMON_SRCS-yes += common/vp9_invtrans.c
|
|
||||||
VP9_COMMON_SRCS-yes += common/vp9_loopfilter.c
|
VP9_COMMON_SRCS-yes += common/vp9_loopfilter.c
|
||||||
VP9_COMMON_SRCS-yes += common/vp9_loopfilter_filters.c
|
VP9_COMMON_SRCS-yes += common/vp9_loopfilter_filters.c
|
||||||
VP9_COMMON_SRCS-yes += common/vp9_mbpitch.c
|
VP9_COMMON_SRCS-yes += common/vp9_mbpitch.c
|
||||||
|
|||||||
Reference in New Issue
Block a user