vp9_encodemb.h 1.99 KB
Newer Older
John Koleszar's avatar
John Koleszar committed
1
/*
2
 *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
John Koleszar's avatar
John Koleszar committed
3
 *
4
 *  Use of this source code is governed by a BSD-style license
5
6
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
7
 *  in the file PATENTS.  All contributing project authors may
8
 *  be found in the AUTHORS file in the root of the source tree.
John Koleszar's avatar
John Koleszar committed
9
10
11
 */


12
13
#ifndef VP9_ENCODER_VP9_ENCODEMB_H_
#define VP9_ENCODER_VP9_ENCODEMB_H_
John Koleszar's avatar
John Koleszar committed
14
15

#include "vpx_ports/config.h"
16
#include "vp9/encoder/vp9_block.h"
John Koleszar's avatar
John Koleszar committed
17

John Koleszar's avatar
John Koleszar committed
18
19
20
21
typedef struct {
  MB_PREDICTION_MODE mode;
  MV_REFERENCE_FRAME ref_frame;
  MV_REFERENCE_FRAME second_ref_frame;
22
#if CONFIG_PRED_FILTER
John Koleszar's avatar
John Koleszar committed
23
  int pred_filter_flag;
24
25
26
27
#endif
} MODE_DEFINITION;


28
#include "vp9/encoder/vp9_onyx_int.h"
29
struct VP9_ENCODER_RTCD;
30
void vp9_encode_inter16x16(MACROBLOCK *x);
John Koleszar's avatar
John Koleszar committed
31

32
33
void vp9_transform_mbuv_4x4(MACROBLOCK *x);
void vp9_transform_mby_4x4(MACROBLOCK *x);
34

35
36
37
void vp9_optimize_mby_4x4(MACROBLOCK *x);
void vp9_optimize_mbuv_4x4(MACROBLOCK *x);
void vp9_encode_inter16x16y(MACROBLOCK *x);
38

39
40
41
42
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);
43
44
void vp9_optimize_mby_8x8(MACROBLOCK *x);
void vp9_optimize_mbuv_8x8(MACROBLOCK *x);
45

46
47
void vp9_transform_mb_16x16(MACROBLOCK *mb);
void vp9_transform_mby_16x16(MACROBLOCK *x);
48
void vp9_optimize_mby_16x16(MACROBLOCK *x);
Daniel Kang's avatar
Daniel Kang committed
49

50
void vp9_fidct_mb(MACROBLOCK *x);
51

52
void vp9_subtract_4b_c(BLOCK *be, BLOCKD *bd, int pitch);
53

Ronald S. Bultje's avatar
Ronald S. Bultje committed
54
#if CONFIG_SUPERBLOCKS
55
void vp9_subtract_mbuv_s_c(short *diff, const unsigned char *usrc,
Ronald S. Bultje's avatar
Ronald S. Bultje committed
56
57
58
                           const unsigned char *vsrc, int src_stride,
                           const unsigned char *upred,
                           const unsigned char *vpred, int dst_stride);
59
void vp9_subtract_mby_s_c(short *diff, const unsigned char *src,
Ronald S. Bultje's avatar
Ronald S. Bultje committed
60
61
62
63
                          int src_stride, const unsigned char *pred,
                          int dst_stride);
#endif

John Koleszar's avatar
John Koleszar committed
64
#endif