2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * 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.
11 #ifndef VP9_ENCODER_VP9_RDOPT_H_
12 #define VP9_ENCODER_VP9_RDOPT_H_
14 #include "vp9/common/vp9_blockd.h"
16 #include "vp9/encoder/vp9_block.h"
17 #include "vp9/encoder/vp9_context_tree.h"
27 void vp9_rd_pick_intra_mode_sb(struct VP9_COMP *cpi, struct macroblock *x,
28 int *r, int64_t *d, BLOCK_SIZE bsize,
29 PICK_MODE_CONTEXT *ctx, int64_t best_rd);
31 int64_t vp9_rd_pick_inter_mode_sb(struct VP9_COMP *cpi, struct macroblock *x,
32 const struct TileInfo *const tile,
33 int mi_row, int mi_col,
35 int64_t *returndistortion,
37 PICK_MODE_CONTEXT *ctx,
38 int64_t best_rd_so_far);
40 int64_t vp9_rd_pick_inter_mode_sb_seg_skip(struct VP9_COMP *cpi,
43 int64_t *returndistortion,
45 PICK_MODE_CONTEXT *ctx,
46 int64_t best_rd_so_far);
48 int64_t vp9_rd_pick_inter_mode_sub8x8(struct VP9_COMP *cpi,
50 const struct TileInfo *const tile,
51 int mi_row, int mi_col,
53 int64_t *returndistortion,
55 PICK_MODE_CONTEXT *ctx,
56 int64_t best_rd_so_far);
62 #endif // VP9_ENCODER_VP9_RDOPT_H_