| 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_nmv_probs(struct VP9Common *cm, int usehp); | 24 void vp9_adapt_nmv_probs(struct VP9Common *cm, int usehp); |
| 25 int vp9_use_nmv_hp(const MV *ref); | 25 int vp9_use_nmv_hp(const MV *ref); |
| 26 | 26 |
| 27 #define VP9_NMV_UPDATE_PROB 255 | 27 #define VP9_NMV_UPDATE_PROB 255 |
| 28 |
| 29 #if CONFIG_NEW_MVREF |
| 30 #define VP9_MVREF_UPDATE_PROB 252 |
| 31 #define VP9_DEFAULT_MV_REF_PROB 192 |
| 32 #define VP9_MV_REF_UPDATE_COST (14 << 8) |
| 33 #endif |
| 34 |
| 28 //#define MV_GROUP_UPDATE | 35 //#define MV_GROUP_UPDATE |
| 29 | 36 |
| 30 #define LOW_PRECISION_MV_UPDATE /* Use 7 bit forward update */ | 37 #define LOW_PRECISION_MV_UPDATE /* Use 7 bit forward update */ |
| 31 | 38 |
| 32 /* Symbols for coding which components are zero jointly */ | 39 /* Symbols for coding which components are zero jointly */ |
| 33 #define MV_JOINTS 4 | 40 #define MV_JOINTS 4 |
| 34 typedef enum { | 41 typedef enum { |
| 35 MV_JOINT_ZERO = 0, /* Zero vector */ | 42 MV_JOINT_ZERO = 0, /* Zero vector */ |
| 36 MV_JOINT_HNZVZ = 1, /* Vert zero, hor nonzero */ | 43 MV_JOINT_HNZVZ = 1, /* Vert zero, hor nonzero */ |
| 37 MV_JOINT_HZVNZ = 2, /* Hor zero, vert nonzero */ | 44 MV_JOINT_HZVNZ = 2, /* Hor zero, vert nonzero */ |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 unsigned int (*branch_ct_joint)[2], | 126 unsigned int (*branch_ct_joint)[2], |
| 120 unsigned int (*branch_ct_sign)[2], | 127 unsigned int (*branch_ct_sign)[2], |
| 121 unsigned int (*branch_ct_classes)[MV_CLASSES - 1][2], | 128 unsigned int (*branch_ct_classes)[MV_CLASSES - 1][2], |
| 122 unsigned int (*branch_ct_class0)[CLASS0_SIZE - 1][2], | 129 unsigned int (*branch_ct_class0)[CLASS0_SIZE - 1][2], |
| 123 unsigned int (*branch_ct_bits)[MV_OFFSET_BITS][2], | 130 unsigned int (*branch_ct_bits)[MV_OFFSET_BITS][2], |
| 124 unsigned int (*branch_ct_class0_fp)[CLASS0_SIZE][4 - 1][2], | 131 unsigned int (*branch_ct_class0_fp)[CLASS0_SIZE][4 - 1][2], |
| 125 unsigned int (*branch_ct_fp)[4 - 1][2], | 132 unsigned int (*branch_ct_fp)[4 - 1][2], |
| 126 unsigned int (*branch_ct_class0_hp)[2], | 133 unsigned int (*branch_ct_class0_hp)[2], |
| 127 unsigned int (*branch_ct_hp)[2]); | 134 unsigned int (*branch_ct_hp)[2]); |
| 128 void vp9_counts_process(nmv_context_counts *NMVcount, int usehp); | 135 void vp9_counts_process(nmv_context_counts *NMVcount, int usehp); |
| 129 #endif | 136 |
| 137 #endif // VP9_COMMON_VP9_ENTROPYMV_H_ |
| OLD | NEW |