michael@0: /* michael@0: * Copyright (c) 2010 The WebM project authors. All Rights Reserved. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license michael@0: * that can be found in the LICENSE file in the root of the source michael@0: * tree. An additional intellectual property rights grant can be found michael@0: * in the file PATENTS. All contributing project authors may michael@0: * be found in the AUTHORS file in the root of the source tree. michael@0: */ michael@0: michael@0: #ifndef VP9_ENCODER_VP9_ENCODEMB_H_ michael@0: #define VP9_ENCODER_VP9_ENCODEMB_H_ michael@0: michael@0: #include "./vpx_config.h" michael@0: #include "vp9/encoder/vp9_block.h" michael@0: #include "vp9/encoder/vp9_onyx_int.h" michael@0: #include "vp9/common/vp9_onyxc_int.h" michael@0: michael@0: typedef struct { michael@0: MB_PREDICTION_MODE mode; michael@0: MV_REFERENCE_FRAME ref_frame; michael@0: MV_REFERENCE_FRAME second_ref_frame; michael@0: } MODE_DEFINITION; michael@0: michael@0: typedef struct { michael@0: MV_REFERENCE_FRAME ref_frame; michael@0: MV_REFERENCE_FRAME second_ref_frame; michael@0: } REF_DEFINITION; michael@0: michael@0: struct optimize_ctx { michael@0: ENTROPY_CONTEXT ta[MAX_MB_PLANE][16]; michael@0: ENTROPY_CONTEXT tl[MAX_MB_PLANE][16]; michael@0: }; michael@0: michael@0: struct encode_b_args { michael@0: MACROBLOCK *x; michael@0: struct optimize_ctx *ctx; michael@0: }; michael@0: michael@0: void vp9_encode_sb(MACROBLOCK *x, BLOCK_SIZE bsize); michael@0: void vp9_encode_sby(MACROBLOCK *x, BLOCK_SIZE bsize); michael@0: michael@0: void vp9_xform_quant(int plane, int block, BLOCK_SIZE plane_bsize, michael@0: TX_SIZE tx_size, void *arg); michael@0: michael@0: void vp9_subtract_sby(MACROBLOCK *x, BLOCK_SIZE bsize); michael@0: void vp9_subtract_sbuv(MACROBLOCK *x, BLOCK_SIZE bsize); michael@0: void vp9_subtract_sb(MACROBLOCK *x, BLOCK_SIZE bsize); michael@0: michael@0: void vp9_encode_intra_block_y(MACROBLOCK *x, BLOCK_SIZE bsize); michael@0: void vp9_encode_intra_block_uv(MACROBLOCK *x, BLOCK_SIZE bsize); michael@0: michael@0: michael@0: #endif // VP9_ENCODER_VP9_ENCODEMB_H_