media/libvpx/vp9/encoder/vp9_rdopt.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libvpx/vp9/encoder/vp9_rdopt.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,61 @@
     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 +
    1.15 +#ifndef VP9_ENCODER_VP9_RDOPT_H_
    1.16 +#define VP9_ENCODER_VP9_RDOPT_H_
    1.17 +
    1.18 +#define RDDIV_BITS          7
    1.19 +
    1.20 +#define RDCOST(RM, DM, R, D) \
    1.21 +  (((128 + ((int64_t)R) * (RM)) >> 8) + (D << DM))
    1.22 +#define QIDX_SKIP_THRESH     115
    1.23 +
    1.24 +struct TileInfo;
    1.25 +
    1.26 +int vp9_compute_rd_mult(VP9_COMP *cpi, int qindex);
    1.27 +
    1.28 +void vp9_initialize_rd_consts(VP9_COMP *cpi);
    1.29 +
    1.30 +void vp9_initialize_me_consts(VP9_COMP *cpi, int qindex);
    1.31 +
    1.32 +void vp9_rd_pick_intra_mode_sb(VP9_COMP *cpi, MACROBLOCK *x,
    1.33 +                               int *r, int64_t *d, BLOCK_SIZE bsize,
    1.34 +                               PICK_MODE_CONTEXT *ctx, int64_t best_rd);
    1.35 +
    1.36 +int64_t vp9_rd_pick_inter_mode_sb(VP9_COMP *cpi, MACROBLOCK *x,
    1.37 +                                  const struct TileInfo *const tile,
    1.38 +                                  int mi_row, int mi_col,
    1.39 +                                  int *returnrate,
    1.40 +                                  int64_t *returndistortion,
    1.41 +                                  BLOCK_SIZE bsize,
    1.42 +                                  PICK_MODE_CONTEXT *ctx,
    1.43 +                                  int64_t best_rd_so_far);
    1.44 +
    1.45 +int64_t vp9_rd_pick_inter_mode_sub8x8(VP9_COMP *cpi, MACROBLOCK *x,
    1.46 +                                      const struct TileInfo *const tile,
    1.47 +                                      int mi_row, int mi_col,
    1.48 +                                      int *returnrate,
    1.49 +                                      int64_t *returndistortion,
    1.50 +                                      BLOCK_SIZE bsize,
    1.51 +                                      PICK_MODE_CONTEXT *ctx,
    1.52 +                                      int64_t best_rd_so_far);
    1.53 +
    1.54 +void vp9_init_me_luts();
    1.55 +
    1.56 +void vp9_set_mbmode_and_mvs(MACROBLOCK *x,
    1.57 +                            MB_PREDICTION_MODE mb, int_mv *mv);
    1.58 +
    1.59 +void vp9_get_entropy_contexts(TX_SIZE tx_size,
    1.60 +    ENTROPY_CONTEXT t_above[16], ENTROPY_CONTEXT t_left[16],
    1.61 +    const ENTROPY_CONTEXT *above, const ENTROPY_CONTEXT *left,
    1.62 +    int num_4x4_w, int num_4x4_h);
    1.63 +
    1.64 +#endif  // VP9_ENCODER_VP9_RDOPT_H_

mercurial