media/libvpx/vp9/encoder/vp9_encodemb.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libvpx/vp9/encoder/vp9_encodemb.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,54 @@
     1.4 +/*
     1.5 + *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
     1.6 + *
     1.7 + *  Use of this source code is governed by a BSD-style license
     1.8 + *  that can be found in the LICENSE file in the root of the source
     1.9 + *  tree. An additional intellectual property rights grant can be found
    1.10 + *  in the file PATENTS.  All contributing project authors may
    1.11 + *  be found in the AUTHORS file in the root of the source tree.
    1.12 + */
    1.13 +
    1.14 +#ifndef VP9_ENCODER_VP9_ENCODEMB_H_
    1.15 +#define VP9_ENCODER_VP9_ENCODEMB_H_
    1.16 +
    1.17 +#include "./vpx_config.h"
    1.18 +#include "vp9/encoder/vp9_block.h"
    1.19 +#include "vp9/encoder/vp9_onyx_int.h"
    1.20 +#include "vp9/common/vp9_onyxc_int.h"
    1.21 +
    1.22 +typedef struct {
    1.23 +  MB_PREDICTION_MODE mode;
    1.24 +  MV_REFERENCE_FRAME ref_frame;
    1.25 +  MV_REFERENCE_FRAME second_ref_frame;
    1.26 +} MODE_DEFINITION;
    1.27 +
    1.28 +typedef struct {
    1.29 +  MV_REFERENCE_FRAME ref_frame;
    1.30 +  MV_REFERENCE_FRAME second_ref_frame;
    1.31 +} REF_DEFINITION;
    1.32 +
    1.33 +struct optimize_ctx {
    1.34 +  ENTROPY_CONTEXT ta[MAX_MB_PLANE][16];
    1.35 +  ENTROPY_CONTEXT tl[MAX_MB_PLANE][16];
    1.36 +};
    1.37 +
    1.38 +struct encode_b_args {
    1.39 +  MACROBLOCK *x;
    1.40 +  struct optimize_ctx *ctx;
    1.41 +};
    1.42 +
    1.43 +void vp9_encode_sb(MACROBLOCK *x, BLOCK_SIZE bsize);
    1.44 +void vp9_encode_sby(MACROBLOCK *x, BLOCK_SIZE bsize);
    1.45 +
    1.46 +void vp9_xform_quant(int plane, int block, BLOCK_SIZE plane_bsize,
    1.47 +                     TX_SIZE tx_size, void *arg);
    1.48 +
    1.49 +void vp9_subtract_sby(MACROBLOCK *x, BLOCK_SIZE bsize);
    1.50 +void vp9_subtract_sbuv(MACROBLOCK *x, BLOCK_SIZE bsize);
    1.51 +void vp9_subtract_sb(MACROBLOCK *x, BLOCK_SIZE bsize);
    1.52 +
    1.53 +void vp9_encode_intra_block_y(MACROBLOCK *x, BLOCK_SIZE bsize);
    1.54 +void vp9_encode_intra_block_uv(MACROBLOCK *x, BLOCK_SIZE bsize);
    1.55 +
    1.56 +
    1.57 +#endif  // VP9_ENCODER_VP9_ENCODEMB_H_

mercurial