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

Side by Side Diff: source/libvpx/vp9/common/vp9_entropymv.h

Issue 23600008: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 3 months 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
« no previous file with comments | « source/libvpx/vp9/common/vp9_entropymode.c ('k') | source/libvpx/vp9/common/vp9_entropymv.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 11
12 #ifndef VP9_COMMON_VP9_ENTROPYMV_H_ 12 #ifndef VP9_COMMON_VP9_ENTROPYMV_H_
13 #define VP9_COMMON_VP9_ENTROPYMV_H_ 13 #define VP9_COMMON_VP9_ENTROPYMV_H_
14 14
15 #include "vp9/common/vp9_treecoder.h" 15 #include "vp9/common/vp9_treecoder.h"
16 #include "vpx_config.h" 16 #include "vpx_config.h"
17 #include "vp9/common/vp9_blockd.h" 17 #include "vp9/common/vp9_blockd.h"
18 18
19 struct VP9Common; 19 struct VP9Common;
20 20
21 void vp9_entropy_mv_init(); 21 void vp9_entropy_mv_init();
22 void vp9_init_mv_probs(struct VP9Common *cm); 22 void vp9_init_mv_probs(struct VP9Common *cm);
23 23
24 void vp9_adapt_mv_probs(struct VP9Common *cm, int usehp); 24 void vp9_adapt_mv_probs(struct VP9Common *cm, int usehp);
25 int vp9_use_mv_hp(const MV *ref); 25 int vp9_use_mv_hp(const MV *ref);
26 26
27 #define VP9_NMV_UPDATE_PROB 252 27 #define NMV_UPDATE_PROB 252
28 28
29 /* Symbols for coding which components are zero jointly */ 29 /* Symbols for coding which components are zero jointly */
30 #define MV_JOINTS 4 30 #define MV_JOINTS 4
31 typedef enum { 31 typedef enum {
32 MV_JOINT_ZERO = 0, /* Zero vector */ 32 MV_JOINT_ZERO = 0, /* Zero vector */
33 MV_JOINT_HNZVZ = 1, /* Vert zero, hor nonzero */ 33 MV_JOINT_HNZVZ = 1, /* Vert zero, hor nonzero */
34 MV_JOINT_HZVNZ = 2, /* Hor zero, vert nonzero */ 34 MV_JOINT_HZVNZ = 2, /* Hor zero, vert nonzero */
35 MV_JOINT_HNZVNZ = 3, /* Both components nonzero */ 35 MV_JOINT_HNZVNZ = 3, /* Both components nonzero */
36 } MV_JOINT_TYPE; 36 } MV_JOINT_TYPE;
37 37
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 typedef struct { 122 typedef struct {
123 unsigned int joints[MV_JOINTS]; 123 unsigned int joints[MV_JOINTS];
124 nmv_component_counts comps[2]; 124 nmv_component_counts comps[2];
125 } nmv_context_counts; 125 } nmv_context_counts;
126 126
127 void vp9_inc_mv(const MV *mv, nmv_context_counts *mvctx); 127 void vp9_inc_mv(const MV *mv, nmv_context_counts *mvctx);
128 128
129 void vp9_counts_process(nmv_context_counts *NMVcount, int usehp); 129 void vp9_counts_process(nmv_context_counts *NMVcount, int usehp);
130 130
131 #endif // VP9_COMMON_VP9_ENTROPYMV_H_ 131 #endif // VP9_COMMON_VP9_ENTROPYMV_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_entropymode.c ('k') | source/libvpx/vp9/common/vp9_entropymv.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698