2010-05-18 19:58:33 +04:00
|
|
|
/*
|
2010-09-09 16:16:39 +04:00
|
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
2010-05-18 19:58:33 +04:00
|
|
|
*
|
2010-06-18 20:39:21 +04:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
2010-06-05 00:19:40 +04: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 20:39:21 +04:00
|
|
|
* in the file PATENTS. All contributing project authors may
|
2010-06-05 00:19:40 +04:00
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2010-05-18 19:58:33 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2012-11-30 04:36:10 +04:00
|
|
|
#ifndef VP9_ENCODER_VP9_ENCODEMB_H_
|
|
|
|
#define VP9_ENCODER_VP9_ENCODEMB_H_
|
2010-05-18 19:58:33 +04:00
|
|
|
|
|
|
|
#include "vpx_ports/config.h"
|
2012-11-28 22:41:40 +04:00
|
|
|
#include "vp9/encoder/vp9_block.h"
|
2010-05-18 19:58:33 +04:00
|
|
|
|
2012-07-14 02:21:29 +04:00
|
|
|
typedef struct {
|
|
|
|
MB_PREDICTION_MODE mode;
|
|
|
|
MV_REFERENCE_FRAME ref_frame;
|
|
|
|
MV_REFERENCE_FRAME second_ref_frame;
|
2012-06-26 03:23:58 +04:00
|
|
|
#if CONFIG_PRED_FILTER
|
2012-07-14 02:21:29 +04:00
|
|
|
int pred_filter_flag;
|
2012-06-26 03:23:58 +04:00
|
|
|
#endif
|
|
|
|
} MODE_DEFINITION;
|
|
|
|
|
|
|
|
|
2012-11-28 22:41:40 +04:00
|
|
|
#include "vp9/encoder/vp9_onyx_int.h"
|
2012-11-01 01:40:53 +04:00
|
|
|
struct VP9_ENCODER_RTCD;
|
2012-11-25 07:33:58 +04:00
|
|
|
void vp9_encode_inter16x16(MACROBLOCK *x);
|
2010-05-18 19:58:33 +04:00
|
|
|
|
2012-10-30 23:58:42 +04:00
|
|
|
void vp9_transform_mbuv_4x4(MACROBLOCK *x);
|
|
|
|
void vp9_transform_mby_4x4(MACROBLOCK *x);
|
2011-08-24 22:42:26 +04:00
|
|
|
|
2012-11-25 07:33:58 +04:00
|
|
|
void vp9_optimize_mby_4x4(MACROBLOCK *x);
|
|
|
|
void vp9_optimize_mbuv_4x4(MACROBLOCK *x);
|
|
|
|
void vp9_encode_inter16x16y(MACROBLOCK *x);
|
2011-02-15 01:18:18 +03:00
|
|
|
|
2012-10-30 23:58:42 +04:00
|
|
|
void vp9_transform_mb_8x8(MACROBLOCK *mb);
|
|
|
|
void vp9_transform_mby_8x8(MACROBLOCK *x);
|
|
|
|
void vp9_transform_mbuv_8x8(MACROBLOCK *x);
|
|
|
|
void vp9_build_dcblock_8x8(MACROBLOCK *b);
|
2012-11-25 07:33:58 +04:00
|
|
|
void vp9_optimize_mby_8x8(MACROBLOCK *x);
|
|
|
|
void vp9_optimize_mbuv_8x8(MACROBLOCK *x);
|
2011-02-15 01:18:18 +03:00
|
|
|
|
2012-10-30 23:58:42 +04:00
|
|
|
void vp9_transform_mb_16x16(MACROBLOCK *mb);
|
|
|
|
void vp9_transform_mby_16x16(MACROBLOCK *x);
|
2012-11-25 07:33:58 +04:00
|
|
|
void vp9_optimize_mby_16x16(MACROBLOCK *x);
|
2012-08-03 04:03:14 +04:00
|
|
|
|
2012-11-25 07:33:58 +04:00
|
|
|
void vp9_fidct_mb(MACROBLOCK *x);
|
2012-11-08 23:03:00 +04:00
|
|
|
|
2012-10-30 23:58:42 +04:00
|
|
|
void vp9_subtract_4b_c(BLOCK *be, BLOCKD *bd, int pitch);
|
2011-02-15 01:18:18 +03:00
|
|
|
|
2012-08-21 04:45:36 +04:00
|
|
|
#if CONFIG_SUPERBLOCKS
|
2012-10-30 23:58:42 +04:00
|
|
|
void vp9_subtract_mbuv_s_c(short *diff, const unsigned char *usrc,
|
2012-08-21 04:45:36 +04:00
|
|
|
const unsigned char *vsrc, int src_stride,
|
|
|
|
const unsigned char *upred,
|
|
|
|
const unsigned char *vpred, int dst_stride);
|
2012-10-30 23:58:42 +04:00
|
|
|
void vp9_subtract_mby_s_c(short *diff, const unsigned char *src,
|
2012-08-21 04:45:36 +04:00
|
|
|
int src_stride, const unsigned char *pred,
|
|
|
|
int dst_stride);
|
|
|
|
#endif
|
|
|
|
|
2010-05-18 19:58:33 +04:00
|
|
|
#endif
|