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 DEQUANTIZE_H
|
|
|
|
#define DEQUANTIZE_H
|
2011-02-10 20:41:38 +01:00
|
|
|
#include "vp8/common/blockd.h"
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2012-10-30 20:09:49 +01:00
|
|
|
#if CONFIG_LOSSLESS
|
|
|
|
extern void vp8_dequant_idct_add_lossless_c(short *input, short *dq,
|
|
|
|
unsigned char *pred,
|
|
|
|
unsigned char *output,
|
|
|
|
int pitch, int stride);
|
|
|
|
extern void vp8_dequant_dc_idct_add_lossless_c(short *input, short *dq,
|
|
|
|
unsigned char *pred,
|
|
|
|
unsigned char *output,
|
|
|
|
int pitch, int stride, int dc);
|
|
|
|
extern void vp8_dequant_dc_idct_add_y_block_lossless_c(short *q, short *dq,
|
|
|
|
unsigned char *pre,
|
|
|
|
unsigned char *dst,
|
|
|
|
int stride, char *eobs,
|
|
|
|
short *dc);
|
|
|
|
extern void vp8_dequant_idct_add_y_block_lossless_c(short *q, short *dq,
|
|
|
|
unsigned char *pre,
|
|
|
|
unsigned char *dst,
|
|
|
|
int stride, char *eobs);
|
|
|
|
extern void vp8_dequant_idct_add_uv_block_lossless_c(short *q, short *dq,
|
|
|
|
unsigned char *pre,
|
|
|
|
unsigned char *dst_u,
|
|
|
|
unsigned char *dst_v,
|
|
|
|
int stride, char *eobs);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef void (*vp8_dequant_idct_add_fn_t)(short *input, short *dq,
|
|
|
|
unsigned char *pred, unsigned char *output, int pitch, int stride);
|
|
|
|
typedef void(*vp8_dequant_dc_idct_add_fn_t)(short *input, short *dq,
|
|
|
|
unsigned char *pred, unsigned char *output, int pitch, int stride, int dc);
|
|
|
|
|
|
|
|
typedef void(*vp8_dequant_dc_idct_add_y_block_fn_t)(short *q, short *dq,
|
|
|
|
unsigned char *pre, unsigned char *dst, int stride, char *eobs, short *dc);
|
|
|
|
typedef void(*vp8_dequant_idct_add_y_block_fn_t)(short *q, short *dq,
|
|
|
|
unsigned char *pre, unsigned char *dst, int stride, char *eobs);
|
|
|
|
typedef void(*vp8_dequant_idct_add_uv_block_fn_t)(short *q, short *dq,
|
|
|
|
unsigned char *pre, unsigned char *dst_u, unsigned char *dst_v, int stride,
|
|
|
|
char *eobs);
|
|
|
|
|
|
|
|
void vp8_ht_dequant_idct_add_c(TX_TYPE tx_type, short *input, short *dq,
|
2012-06-25 21:26:09 +02:00
|
|
|
unsigned char *pred, unsigned char *dest,
|
|
|
|
int pitch, int stride);
|
|
|
|
|
2012-08-18 00:37:51 +02:00
|
|
|
void vp8_ht_dequant_idct_add_8x8_c(TX_TYPE tx_type, short *input, short *dq,
|
|
|
|
unsigned char *pred, unsigned char *dest,
|
|
|
|
int pitch, int stride);
|
|
|
|
|
2012-08-29 20:25:38 +02:00
|
|
|
void vp8_ht_dequant_idct_add_16x16_c(TX_TYPE tx_type, short *input, short *dq,
|
|
|
|
unsigned char *pred, unsigned char *dest,
|
|
|
|
int pitch, int stride);
|
|
|
|
|
2012-08-21 02:45:36 +02:00
|
|
|
#if CONFIG_SUPERBLOCKS
|
|
|
|
void vp8_dequant_dc_idct_add_y_block_8x8_inplace_c(short *q, short *dq,
|
|
|
|
unsigned char *dst,
|
|
|
|
int stride, char *eobs,
|
|
|
|
short *dc, MACROBLOCKD *xd);
|
|
|
|
void vp8_dequant_idct_add_uv_block_8x8_inplace_c(short *q, short *dq,
|
|
|
|
unsigned char *dstu,
|
|
|
|
unsigned char *dstv,
|
|
|
|
int stride, char *eobs,
|
|
|
|
MACROBLOCKD *xd);
|
|
|
|
#endif
|
2012-08-18 00:37:51 +02:00
|
|
|
|
2010-05-18 17:58:33 +02:00
|
|
|
#endif
|