| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |