Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: source/libvpx/vp9/encoder/vp9_mcomp.h

Issue 11555023: libvpx: Add VP9 decoder. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 *
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.
9 */
10
11
12 #ifndef VP9_ENCODER_VP9_MCOMP_H_
13 #define VP9_ENCODER_VP9_MCOMP_H_
14
15 #include "vp9/encoder/vp9_block.h"
16 #include "vp9/encoder/vp9_variance.h"
17
18 #ifdef ENTROPY_STATS
19 extern void init_mv_ref_counts();
20 extern void accum_mv_refs(MB_PREDICTION_MODE, const int near_mv_ref_cts[4]);
21 #endif
22
23
24 #define MAX_MVSEARCH_STEPS 8 // The maximum n umber of steps in a step search given the largest allowed initial step
25 #define MAX_FULL_PEL_VAL ((1 << (MAX_MVSEARCH_STEPS)) - 1) // Max full pel mv specified in 1 pel units
26 #define MAX_FIRST_STEP (1 << (MAX_MVSEARCH_STEPS-1)) // Maximum size of the first step in full pel units
27
28 extern void vp9_clamp_mv_min_max(MACROBLOCK *x, int_mv *ref_mv);
29 extern int vp9_mv_bit_cost(int_mv *mv, int_mv *ref, int *mvjcost,
30 int *mvcost[2], int Weight, int ishp);
31 extern void vp9_init_dsmotion_compensation(MACROBLOCK *x, int stride);
32 extern void vp9_init3smotion_compensation(MACROBLOCK *x, int stride);
33 // Runs sequence of diamond searches in smaller steps for RD
34 struct VP9_COMP;
35 int vp9_full_pixel_diamond(struct VP9_COMP *cpi, MACROBLOCK *x, BLOCK *b,
36 BLOCKD *d, int_mv *mvp_full, int step_param,
37 int sadpb, int further_steps, int do_refine,
38 vp9_variance_fn_ptr_t *fn_ptr,
39 int_mv *ref_mv, int_mv *dst_mv);
40
41 extern int vp9_hex_search
42 (
43 MACROBLOCK *x,
44 BLOCK *b,
45 BLOCKD *d,
46 int_mv *ref_mv,
47 int_mv *best_mv,
48 int search_param,
49 int error_per_bit,
50 const vp9_variance_fn_ptr_t *vf,
51 int *mvjsadcost, int *mvsadcost[2],
52 int *mvjcost, int *mvcost[2],
53 int_mv *center_mv
54 );
55
56 typedef int (fractional_mv_step_fp) (MACROBLOCK *x, BLOCK *b, BLOCKD *d, int_mv
57 *bestmv, int_mv *ref_mv, int error_per_bit, const vp9_variance_fn_ptr_t *vfp,
58 int *mvjcost, int *mvcost[2], int *distortion, unsigned int *sse);
59 extern fractional_mv_step_fp vp9_find_best_sub_pixel_step_iteratively;
60 extern fractional_mv_step_fp vp9_find_best_sub_pixel_step;
61 extern fractional_mv_step_fp vp9_find_best_half_pixel_step;
62
63 typedef int (*vp9_full_search_fn_t)(MACROBLOCK *x, BLOCK *b, BLOCKD *d,
64 int_mv *ref_mv, int sad_per_bit,
65 int distance, vp9_variance_fn_ptr_t *fn_ptr,
66 int *mvjcost, int *mvcost[2],
67 int_mv *center_mv);
68
69 typedef int (*vp9_refining_search_fn_t)(MACROBLOCK *x, BLOCK *b, BLOCKD *d,
70 int_mv *ref_mv, int sad_per_bit,
71 int distance,
72 vp9_variance_fn_ptr_t *fn_ptr,
73 int *mvjcost, int *mvcost[2],
74 int_mv *center_mv);
75
76 typedef int (*vp9_diamond_search_fn_t)(MACROBLOCK *x, BLOCK *b, BLOCKD *d,
77 int_mv *ref_mv, int_mv *best_mv,
78 int search_param, int sad_per_bit,
79 int *num00,
80 vp9_variance_fn_ptr_t *fn_ptr,
81 int *mvjcost, int *mvcost[2],
82 int_mv *center_mv);
83
84
85 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698