| 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_mv_probs(struct VP9Common *cm, int usehp); |
| 25 int vp9_use_nmv_hp(const MV *ref); | 25 int vp9_use_mv_hp(const MV *ref); |
| 26 | 26 |
| 27 #define VP9_NMV_UPDATE_PROB 252 | 27 #define VP9_NMV_UPDATE_PROB 252 |
| 28 | 28 |
| 29 //#define MV_GROUP_UPDATE | 29 //#define MV_GROUP_UPDATE |
| 30 | 30 |
| 31 #define LOW_PRECISION_MV_UPDATE /* Use 7 bit forward update */ | 31 #define LOW_PRECISION_MV_UPDATE /* Use 7 bit forward update */ |
| 32 | 32 |
| 33 /* Symbols for coding which components are zero jointly */ | 33 /* Symbols for coding which components are zero jointly */ |
| 34 #define MV_JOINTS 4 | 34 #define MV_JOINTS 4 |
| 35 typedef enum { | 35 typedef enum { |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 unsigned int (*branch_ct_classes)[MV_CLASSES - 1][2], | 133 unsigned int (*branch_ct_classes)[MV_CLASSES - 1][2], |
| 134 unsigned int (*branch_ct_class0)[CLASS0_SIZE - 1][2], | 134 unsigned int (*branch_ct_class0)[CLASS0_SIZE - 1][2], |
| 135 unsigned int (*branch_ct_bits)[MV_OFFSET_BITS][2], | 135 unsigned int (*branch_ct_bits)[MV_OFFSET_BITS][2], |
| 136 unsigned int (*branch_ct_class0_fp)[CLASS0_SIZE][4 - 1][2], | 136 unsigned int (*branch_ct_class0_fp)[CLASS0_SIZE][4 - 1][2], |
| 137 unsigned int (*branch_ct_fp)[4 - 1][2], | 137 unsigned int (*branch_ct_fp)[4 - 1][2], |
| 138 unsigned int (*branch_ct_class0_hp)[2], | 138 unsigned int (*branch_ct_class0_hp)[2], |
| 139 unsigned int (*branch_ct_hp)[2]); | 139 unsigned int (*branch_ct_hp)[2]); |
| 140 void vp9_counts_process(nmv_context_counts *NMVcount, int usehp); | 140 void vp9_counts_process(nmv_context_counts *NMVcount, int usehp); |
| 141 | 141 |
| 142 #endif // VP9_COMMON_VP9_ENTROPYMV_H_ | 142 #endif // VP9_COMMON_VP9_ENTROPYMV_H_ |
| OLD | NEW |