| 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 "./vpx_config.h" | 15 #include "./vpx_config.h" |
| 16 #include "vp9/common/vp9_blockd.h" | 16 #include "vp9/common/vp9_blockd.h" |
| 17 | 17 |
| 18 #ifdef __cplusplus | 18 #ifdef __cplusplus |
| 19 extern "C" { | 19 extern "C" { |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 struct VP9Common; | 22 struct VP9Common; |
| 23 | 23 |
| 24 void vp9_init_mv_probs(struct VP9Common *cm); | 24 void vp9_init_mv_probs(struct VP9Common *cm); |
| 25 | 25 |
| 26 void vp9_adapt_mv_probs(struct VP9Common *cm, int usehp); | 26 void vp9_adapt_mv_probs(struct VP9Common *cm, int usehp); |
| 27 int vp9_use_mv_hp(const MV *ref); | 27 int vp9_use_mv_hp(const MV *ref); |
| 28 | 28 |
| 29 #define NMV_UPDATE_PROB 252 | 29 #define MV_UPDATE_PROB 252 |
| 30 | 30 |
| 31 /* Symbols for coding which components are zero jointly */ | 31 /* Symbols for coding which components are zero jointly */ |
| 32 #define MV_JOINTS 4 | 32 #define MV_JOINTS 4 |
| 33 typedef enum { | 33 typedef enum { |
| 34 MV_JOINT_ZERO = 0, /* Zero vector */ | 34 MV_JOINT_ZERO = 0, /* Zero vector */ |
| 35 MV_JOINT_HNZVZ = 1, /* Vert zero, hor nonzero */ | 35 MV_JOINT_HNZVZ = 1, /* Vert zero, hor nonzero */ |
| 36 MV_JOINT_HZVNZ = 2, /* Hor zero, vert nonzero */ | 36 MV_JOINT_HZVNZ = 2, /* Hor zero, vert nonzero */ |
| 37 MV_JOINT_HNZVNZ = 3, /* Both components nonzero */ | 37 MV_JOINT_HNZVNZ = 3, /* Both components nonzero */ |
| 38 } MV_JOINT_TYPE; | 38 } MV_JOINT_TYPE; |
| 39 | 39 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 nmv_component_counts comps[2]; | 123 nmv_component_counts comps[2]; |
| 124 } nmv_context_counts; | 124 } nmv_context_counts; |
| 125 | 125 |
| 126 void vp9_inc_mv(const MV *mv, nmv_context_counts *mvctx); | 126 void vp9_inc_mv(const MV *mv, nmv_context_counts *mvctx); |
| 127 | 127 |
| 128 #ifdef __cplusplus | 128 #ifdef __cplusplus |
| 129 } // extern "C" | 129 } // extern "C" |
| 130 #endif | 130 #endif |
| 131 | 131 |
| 132 #endif // VP9_COMMON_VP9_ENTROPYMV_H_ | 132 #endif // VP9_COMMON_VP9_ENTROPYMV_H_ |
| OLD | NEW |