| /* |
| * Copyright (c) 2021, Alliance for Open Media. All rights reserved |
| * |
| * This source code is subject to the terms of the BSD 3-Clause Clear License |
| * and the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear |
| * License was not distributed with this source code in the LICENSE file, you |
| * can obtain it at aomedia.org/license/software-license/bsd-3-c-c/. If the |
| * Alliance for Open Media Patent License 1.0 was not distributed with this |
| * source code in the PATENTS file, you can obtain it at |
| * aomedia.org/license/patent-license/. |
| */ |
| |
| #include "aom_mem/aom_mem.h" |
| |
| #include "av1/common/av1_common_int.h" |
| #include "av1/common/reconinter.h" |
| #include "av1/common/scan.h" |
| #include "av1/common/seg_common.h" |
| #include "av1/common/txb_common.h" |
| |
| #if !CONFIG_AIMC |
| static const aom_cdf_prob |
| default_kf_y_mode_cdf[KF_MODE_CONTEXTS][KF_MODE_CONTEXTS][CDF_SIZE( |
| INTRA_MODES)] = { |
| { { AOM_CDF13(15588, 17027, 19338, 20218, 20682, 21110, 21825, 23244, |
| 24189, 28165, 29093, 30466) }, |
| { AOM_CDF13(12016, 18066, 19516, 20303, 20719, 21444, 21888, 23032, |
| 24434, 28658, 30172, 31409) }, |
| { AOM_CDF13(10052, 10771, 22296, 22788, 23055, 23239, 24133, 25620, |
| 26160, 29336, 29929, 31567) }, |
| { AOM_CDF13(14091, 15406, 16442, 18808, 19136, 19546, 19998, 22096, |
| 24746, 29585, 30958, 32462) }, |
| { AOM_CDF13(12122, 13265, 15603, 16501, 18609, 20033, 22391, 25583, |
| 26437, 30261, 31073, 32475) } }, |
| { { AOM_CDF13(10023, 19585, 20848, 21440, 21832, 22760, 23089, 24023, |
| 25381, 29014, 30482, 31436) }, |
| { AOM_CDF13(5983, 24099, 24560, 24886, 25066, 25795, 25913, 26423, |
| 27610, 29905, 31276, 31794) }, |
| { AOM_CDF13(7444, 12781, 20177, 20728, 21077, 21607, 22170, 23405, |
| 24469, 27915, 29090, 30492) }, |
| { AOM_CDF13(8537, 14689, 15432, 17087, 17408, 18172, 18408, 19825, |
| 24649, 29153, 31096, 32210) }, |
| { AOM_CDF13(7543, 14231, 15496, 16195, 17905, 20717, 21984, 24516, |
| 26001, 29675, 30981, 31994) } }, |
| { { AOM_CDF13(12613, 13591, 21383, 22004, 22312, 22577, 23401, 25055, |
| 25729, 29538, 30305, 32077) }, |
| { AOM_CDF13(9687, 13470, 18506, 19230, 19604, 20147, 20695, 22062, |
| 23219, 27743, 29211, 30907) }, |
| { AOM_CDF13(6183, 6505, 26024, 26252, 26366, 26434, 27082, 28354, 28555, |
| 30467, 30794, 32086) }, |
| { AOM_CDF13(10718, 11734, 14954, 17224, 17565, 17924, 18561, 21523, |
| 23878, 28975, 30287, 32252) }, |
| { AOM_CDF13(9194, 9858, 16501, 17263, 18424, 19171, 21563, 25961, 26561, |
| 30072, 30737, 32463) } }, |
| { { AOM_CDF13(12602, 14399, 15488, 18381, 18778, 19315, 19724, 21419, |
| 25060, 29696, 30917, 32409) }, |
| { AOM_CDF13(8203, 13821, 14524, 17105, 17439, 18131, 18404, 19468, |
| 25225, 29485, 31158, 32342) }, |
| { AOM_CDF13(8451, 9731, 15004, 17643, 18012, 18425, 19070, 21538, 24605, |
| 29118, 30078, 32018) }, |
| { AOM_CDF13(7714, 9048, 9516, 16667, 16817, 16994, 17153, 18767, 26743, |
| 30389, 31536, 32528) }, |
| { AOM_CDF13(8843, 10280, 11496, 15317, 16652, 17943, 19108, 22718, |
| 25769, 29953, 30983, 32485) } }, |
| { { AOM_CDF13(12578, 13671, 15979, 16834, 19075, 20913, 22989, 25449, |
| 26219, 30214, 31150, 32477) }, |
| { AOM_CDF13(9563, 13626, 15080, 15892, 17756, 20863, 22207, 24236, |
| 25380, 29653, 31143, 32277) }, |
| { AOM_CDF13(8356, 8901, 17616, 18256, 19350, 20106, 22598, 25947, 26466, |
| 29900, 30523, 32261) }, |
| { AOM_CDF13(10835, 11815, 13124, 16042, 17018, 18039, 18947, 22753, |
| 24615, 29489, 30883, 32482) }, |
| { AOM_CDF13(7618, 8288, 9859, 10509, 15386, 18657, 22903, 28776, 29180, |
| 31355, 31802, 32593) } } |
| }; |
| #endif |
| |
| static const aom_cdf_prob default_mrl_index_cdf[CDF_SIZE(MRL_LINE_NUMBER)] = { |
| AOM_CDF4(24756, 29049, 31092) |
| }; |
| |
| #if CONFIG_NEW_CONTEXT_MODELING |
| static const aom_cdf_prob |
| default_fsc_mode_cdf[FSC_MODE_CONTEXTS][FSC_BSIZE_CONTEXTS] |
| [CDF_SIZE(FSC_MODES)] = { { { AOM_CDF2(29802) }, |
| { AOM_CDF2(32035) }, |
| { AOM_CDF2(32042) }, |
| { AOM_CDF2(32512) }, |
| { AOM_CDF2(32318) } }, |
| { { AOM_CDF2(23479) }, |
| { AOM_CDF2(28073) }, |
| { AOM_CDF2(23684) }, |
| { AOM_CDF2(28230) }, |
| { AOM_CDF2(14490) } }, |
| { { AOM_CDF2(16299) }, |
| { AOM_CDF2(21637) }, |
| { AOM_CDF2(7423) }, |
| { AOM_CDF2(20394) }, |
| { AOM_CDF2(1486) } }, |
| { { AOM_CDF2(29369) }, |
| { AOM_CDF2(31058) }, |
| { AOM_CDF2(32027) }, |
| { AOM_CDF2(32272) }, |
| { AOM_CDF2(32317) } } }; |
| #else |
| static const aom_cdf_prob |
| default_fsc_mode_cdf[FSC_MODE_CONTEXTS][FSC_BSIZE_CONTEXTS] |
| [CDF_SIZE(FSC_MODES)] = { { { AOM_CDF2(29656) }, |
| { AOM_CDF2(31950) }, |
| { AOM_CDF2(32056) }, |
| { AOM_CDF2(32483) }, |
| { AOM_CDF2(32320) } }, |
| { { AOM_CDF2(24381) }, |
| { AOM_CDF2(28062) }, |
| { AOM_CDF2(21473) }, |
| { AOM_CDF2(28418) }, |
| { AOM_CDF2(14016) } }, |
| { { AOM_CDF2(19188) }, |
| { AOM_CDF2(22942) }, |
| { AOM_CDF2(8388) }, |
| { AOM_CDF2(20964) }, |
| { AOM_CDF2(1235) } }, |
| { { AOM_CDF2(29238) }, |
| { AOM_CDF2(30676) }, |
| { AOM_CDF2(31947) }, |
| { AOM_CDF2(32203) }, |
| { AOM_CDF2(32283) } } }; |
| #endif // CONFIG_NEW_CONTEXT_MODELING |
| |
| #if CONFIG_IMPROVED_CFL |
| static const aom_cdf_prob default_cfl_index_cdf[CDF_SIZE(CFL_TYPE_COUNT)] = { |
| AOM_CDF2(16384) |
| }; |
| #endif |
| #if CONFIG_AIMC |
| static const aom_cdf_prob default_y_mode_set_cdf[CDF_SIZE(INTRA_MODE_SETS)] = { |
| AOM_CDF4(18000, 24000, 29000) |
| }; |
| static const aom_cdf_prob |
| default_y_first_mode_cdf[Y_MODE_CONTEXTS][CDF_SIZE(FIRST_MODE_COUNT)] = { |
| { AOM_CDF13(13000, 18000, 20000, 22000, 24000, 25000, 26000, 27000, 28000, |
| 29000, 30000, 31000) }, |
| { AOM_CDF13(10000, 15000, 17000, 19000, 20000, 25000, 26000, 27000, 28000, |
| 29000, 30000, 31000) }, |
| { AOM_CDF13(7000, 12000, 14000, 16000, 17000, 22000, 26000, 27000, 28000, |
| 29000, 30000, 31000) } |
| }; |
| static const aom_cdf_prob |
| default_y_second_mode_cdf[Y_MODE_CONTEXTS][CDF_SIZE(SECOND_MODE_COUNT)] = { |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, |
| 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, |
| 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, |
| 20480, 22528, 24576, 26624, 28672, 30720) } |
| }; |
| static const aom_cdf_prob |
| default_uv_mode_cdf[CFL_ALLOWED_TYPES][UV_MODE_CONTEXTS][CDF_SIZE( |
| UV_INTRA_MODES)] = { |
| { { AOM_CDF13(22631, 24152, 25378, 25661, 25986, 26520, 27055, 27923, |
| 28244, 30059, 30941, 31961) }, |
| { AOM_CDF13(9513, 15881, 22973, 23546, 24118, 25664, 26739, 27824, |
| 28359, 29505, 29800, 31796) } }, |
| { { AOM_CDF14(12000, 14000, 16000, 18000, 19000, 20000, 21000, 21300, |
| 21800, 22300, 22800, 23300, 23800) }, |
| { AOM_CDF14(11000, 13000, 15000, 17000, 18000, 19000, 20000, 20300, |
| 20800, 21300, 21800, 22300, 22800) } } |
| }; |
| #else |
| static const aom_cdf_prob default_angle_delta_cdf |
| [PARTITION_STRUCTURE_NUM][DIRECTIONAL_MODES] |
| [CDF_SIZE(2 * MAX_ANGLE_DELTA + 1)] = { |
| { { AOM_CDF7(2180, 5032, 7567, 22776, 26989, 30217) }, |
| { AOM_CDF7(2301, 5608, 8801, 23487, 26974, 30330) }, |
| { AOM_CDF7(3780, 11018, 13699, 19354, 23083, 31286) }, |
| { AOM_CDF7(4581, 11226, 15147, 17138, 21834, 28397) }, |
| { AOM_CDF7(1737, 10927, 14509, 19588, 22745, 28823) }, |
| { AOM_CDF7(2664, 10176, 12485, 17650, 21600, 30495) }, |
| { AOM_CDF7(2240, 11096, 15453, 20341, 22561, 28917) }, |
| { AOM_CDF7(3605, 10428, 12459, 17676, 21244, 30655) } }, |
| { { AOM_CDF7(2180, 5032, 7567, 22776, 26989, 30217) }, |
| { AOM_CDF7(2301, 5608, 8801, 23487, 26974, 30330) }, |
| { AOM_CDF7(3780, 11018, 13699, 19354, 23083, 31286) }, |
| { AOM_CDF7(4581, 11226, 15147, 17138, 21834, 28397) }, |
| { AOM_CDF7(1737, 10927, 14509, 19588, 22745, 28823) }, |
| { AOM_CDF7(2664, 10176, 12485, 17650, 21600, 30495) }, |
| { AOM_CDF7(2240, 11096, 15453, 20341, 22561, 28917) }, |
| { AOM_CDF7(3605, 10428, 12459, 17676, 21244, 30655) } } |
| }; |
| |
| static const aom_cdf_prob default_if_y_mode_cdf[BLOCK_SIZE_GROUPS][CDF_SIZE( |
| INTRA_MODES)] = { { AOM_CDF13(22801, 23489, 24293, 24756, 25601, 26123, |
| 26606, 27418, 27945, 29228, 29685, 30349) }, |
| { AOM_CDF13(18673, 19845, 22631, 23318, 23950, 24649, |
| 25527, 27364, 28152, 29701, 29984, 30852) }, |
| { AOM_CDF13(19770, 20979, 23396, 23939, 24241, 24654, |
| 25136, 27073, 27830, 29360, 29730, 30659) }, |
| { AOM_CDF13(20155, 21301, 22838, 23178, 23261, 23533, |
| 23703, 24804, 25352, 26575, 27016, 28049) } }; |
| |
| static const aom_cdf_prob |
| default_uv_mode_cdf[CFL_ALLOWED_TYPES][INTRA_MODES][CDF_SIZE( |
| UV_INTRA_MODES)] = { |
| { { AOM_CDF13(22631, 24152, 25378, 25661, 25986, 26520, 27055, 27923, |
| 28244, 30059, 30941, 31961) }, |
| { AOM_CDF13(9513, 26881, 26973, 27046, 27118, 27664, 27739, 27824, |
| 28359, 29505, 29800, 31796) }, |
| { AOM_CDF13(9845, 9915, 28663, 28704, 28757, 28780, 29198, 29822, 29854, |
| 30764, 31777, 32029) }, |
| { AOM_CDF13(13639, 13897, 14171, 25331, 25606, 25727, 25953, 27148, |
| 28577, 30612, 31355, 32493) }, |
| { AOM_CDF13(9764, 9835, 9930, 9954, 25386, 27053, 27958, 28148, 28243, |
| 31101, 31744, 32363) }, |
| { AOM_CDF13(11825, 13589, 13677, 13720, 15048, 29213, 29301, 29458, |
| 29711, 31161, 31441, 32550) }, |
| { AOM_CDF13(14175, 14399, 16608, 16821, 17718, 17775, 28551, 30200, |
| 30245, 31837, 32342, 32667) }, |
| { AOM_CDF13(12885, 13038, 14978, 15590, 15673, 15748, 16176, 29128, |
| 29267, 30643, 31961, 32461) }, |
| { AOM_CDF13(12026, 13661, 13874, 15305, 15490, 15726, 15995, 16273, |
| 28443, 30388, 30767, 32416) }, |
| { AOM_CDF13(19052, 19840, 20579, 20916, 21150, 21467, 21885, 22719, |
| 23174, 28861, 30379, 32175) }, |
| { AOM_CDF13(18627, 19649, 20974, 21219, 21492, 21816, 22199, 23119, |
| 23527, 27053, 31397, 32148) }, |
| { AOM_CDF13(17026, 19004, 19997, 20339, 20586, 21103, 21349, 21907, |
| 22482, 25896, 26541, 31819) }, |
| { AOM_CDF13(12124, 13759, 14959, 14992, 15007, 15051, 15078, 15166, |
| 15255, 15753, 16039, 16606) } }, |
| { { AOM_CDF14(10407, 11208, 12900, 13181, 13823, 14175, 14899, 15656, |
| 15986, 20086, 20995, 22455, 24212) }, |
| { AOM_CDF14(4532, 19780, 20057, 20215, 20428, 21071, 21199, 21451, |
| 22099, 24228, 24693, 27032, 29472) }, |
| { AOM_CDF14(5273, 5379, 20177, 20270, 20385, 20439, 20949, 21695, 21774, |
| 23138, 24256, 24703, 26679) }, |
| { AOM_CDF14(6740, 7167, 7662, 14152, 14536, 14785, 15034, 16741, 18371, |
| 21520, 22206, 23389, 24182) }, |
| { AOM_CDF14(4987, 5368, 5928, 6068, 19114, 20315, 21857, 22253, 22411, |
| 24911, 25380, 26027, 26376) }, |
| { AOM_CDF14(5370, 6889, 7247, 7393, 9498, 21114, 21402, 21753, 21981, |
| 24780, 25386, 26517, 27176) }, |
| { AOM_CDF14(4816, 4961, 7204, 7326, 8765, 8930, 20169, 20682, 20803, |
| 23188, 23763, 24455, 24940) }, |
| { AOM_CDF14(6608, 6740, 8529, 9049, 9257, 9356, 9735, 18827, 19059, |
| 22336, 23204, 23964, 24793) }, |
| { AOM_CDF14(5998, 7419, 7781, 8933, 9255, 9549, 9753, 10417, 18898, |
| 22494, 23139, 24764, 25989) }, |
| { AOM_CDF14(10660, 11298, 12550, 12957, 13322, 13624, 14040, 15004, |
| 15534, 20714, 21789, 23443, 24861) }, |
| { AOM_CDF14(10522, 11530, 12552, 12963, 13378, 13779, 14245, 15235, |
| 15902, 20102, 22696, 23774, 25838) }, |
| { AOM_CDF14(10099, 10691, 12639, 13049, 13386, 13665, 14125, 15163, |
| 15636, 19676, 20474, 23519, 25208) }, |
| { AOM_CDF14(3144, 5087, 7382, 7504, 7593, 7690, 7801, 8064, 8232, 9248, |
| 9875, 10521, 29048) } } |
| }; |
| #endif // CONFIG_AIMC |
| #if CONFIG_EXT_RECUR_PARTITIONS |
| static const aom_cdf_prob |
| default_partition_cdf[PARTITION_STRUCTURE_NUM][PARTITION_CONTEXTS][CDF_SIZE( |
| EXT_PARTITION_TYPES)] = { { |
| // 8x8 |
| { AOM_CDF3(25405, 29765) }, |
| { AOM_CDF3(20718, 26547) }, |
| { AOM_CDF3(18495, 29033) }, |
| { AOM_CDF3(14030, 27418) }, |
| // 16x16 |
| { AOM_CDF5(15705, 24698, 30151, 31348) }, |
| { AOM_CDF5(10123, 17513, 28757, 29814) }, |
| { AOM_CDF5(8267, 23946, 29392, 31642) }, |
| { AOM_CDF5(6944, 18062, 28486, 29807) }, |
| // 32x32 |
| { AOM_CDF5(11358, 23987, 28485, 30307) }, |
| { AOM_CDF5(7088, 16986, 26979, 28409) }, |
| { AOM_CDF5(4685, 24314, 29065, 31522) }, |
| { AOM_CDF5(5350, 16601, 27139, 28898) }, |
| // 64x64 |
| { AOM_CDF5(8574, 24292, 30323, 31196) }, |
| { AOM_CDF5(6190, 14189, 27009, 27534) }, |
| { AOM_CDF5(2445, 26650, 31079, 32195) }, |
| { AOM_CDF5(2445, 26650, 31079, 32195) }, |
| // 128x128 |
| { AOM_CDF3(22143, 27468) }, |
| { AOM_CDF3(6754, 12691) }, |
| { AOM_CDF3(2715, 30175) }, |
| { AOM_CDF3(2286, 20850) }, |
| }, |
| { |
| // 8x8 |
| { AOM_CDF3(25405, 29765) }, |
| { AOM_CDF3(20718, 26547) }, |
| { AOM_CDF3(18495, 29033) }, |
| { AOM_CDF3(14030, 27418) }, |
| // 16x16 |
| { AOM_CDF5(15705, 24698, 30151, 31348) }, |
| { AOM_CDF5(10123, 17513, 28757, 29814) }, |
| { AOM_CDF5(8267, 23946, 29392, 31642) }, |
| { AOM_CDF5(6944, 18062, 28486, 29807) }, |
| // 32x32 |
| { AOM_CDF5(11358, 23987, 28485, 30307) }, |
| { AOM_CDF5(7088, 16986, 26979, 28409) }, |
| { AOM_CDF5(4685, 24314, 29065, 31522) }, |
| { AOM_CDF5(5350, 16601, 27139, 28898) }, |
| // 64x64 |
| { AOM_CDF5(8574, 24292, 30323, 31196) }, |
| { AOM_CDF5(6190, 14189, 27009, 27534) }, |
| { AOM_CDF5(2445, 26650, 31079, 32195) }, |
| { AOM_CDF5(2445, 26650, 31079, 32195) }, |
| // 128x128 |
| { AOM_CDF3(22143, 27468) }, |
| { AOM_CDF3(6754, 12691) }, |
| { AOM_CDF3(2715, 30175) }, |
| { AOM_CDF3(2286, 20850) }, |
| } }; |
| static const aom_cdf_prob |
| default_partition_noext_cdf[PARTITION_STRUCTURE_NUM][PARTITION_CONTEXTS] |
| [CDF_SIZE(PARTITION_TYPES)] = { |
| { |
| // 8x8 |
| { AOM_CDF3(25405, 29765) }, |
| { AOM_CDF3(20718, 26547) }, |
| { AOM_CDF3(18495, 29033) }, |
| { AOM_CDF3(14030, 27418) }, |
| // 16x16 |
| { AOM_CDF3(17068, 26841) }, |
| { AOM_CDF3(11534, 19955) }, |
| { AOM_CDF3(9216, 26696) }, |
| { AOM_CDF3(7987, 20777) }, |
| // 32x32 |
| { AOM_CDF3(13065, 27593) }, |
| { AOM_CDF3(8608, 20630) }, |
| { AOM_CDF3(5281, 27411) }, |
| { AOM_CDF3(6459, 20044) }, |
| // 64x64 |
| { AOM_CDF3(9265, 26250) }, |
| { AOM_CDF3(7509, 17214) }, |
| { AOM_CDF3(2577, 28098) }, |
| { AOM_CDF3(2577, 28098) }, |
| // 128x128 |
| { AOM_CDF3(22143, 27468) }, |
| { AOM_CDF3(6754, 12691) }, |
| { AOM_CDF3(2715, 30175) }, |
| { AOM_CDF3(2286, 20850) }, |
| }, |
| { |
| // 8x8 |
| { AOM_CDF3(25405, 29765) }, |
| { AOM_CDF3(20718, 26547) }, |
| { AOM_CDF3(18495, 29033) }, |
| { AOM_CDF3(14030, 27418) }, |
| // 16x16 |
| { AOM_CDF3(17068, 26841) }, |
| { AOM_CDF3(11534, 19955) }, |
| { AOM_CDF3(9216, 26696) }, |
| { AOM_CDF3(7987, 20777) }, |
| // 32x32 |
| { AOM_CDF3(13065, 27593) }, |
| { AOM_CDF3(8608, 20630) }, |
| { AOM_CDF3(5281, 27411) }, |
| { AOM_CDF3(6459, 20044) }, |
| // 64x64 |
| { AOM_CDF3(9265, 26250) }, |
| { AOM_CDF3(7509, 17214) }, |
| { AOM_CDF3(2577, 28098) }, |
| { AOM_CDF3(2577, 28098) }, |
| // 128x128 |
| { AOM_CDF3(22143, 27468) }, |
| { AOM_CDF3(6754, 12691) }, |
| { AOM_CDF3(2715, 30175) }, |
| { AOM_CDF3(2286, 20850) }, |
| } |
| }; |
| |
| static const aom_cdf_prob default_limited_partition_cdf |
| [PARTITION_STRUCTURE_NUM][NUM_LIMITED_PARTITION_PARENTS][PARTITION_CONTEXTS] |
| [CDF_SIZE(LIMITED_EXT_PARTITION_TYPES)] = { |
| // Luma/Shared |
| { // HORZ_3 |
| { |
| // 8x8 |
| { AOM_CDF2(25550) }, |
| { AOM_CDF2(21449) }, |
| { AOM_CDF2(22555) }, |
| { AOM_CDF2(21203) }, |
| // 16x16 |
| { AOM_CDF4(16588, 25114, 28722) }, |
| { AOM_CDF4(9278, 24469, 27548) }, |
| { AOM_CDF4(11426, 20208, 26964) }, |
| { AOM_CDF4(7824, 19743, 25593) }, |
| // 32x32 |
| { AOM_CDF4(13817, 23073, 27376) }, |
| { AOM_CDF4(7015, 22595, 26496) }, |
| { AOM_CDF4(9045, 20272, 27145) }, |
| { AOM_CDF4(5801, 19459, 26140) }, |
| // 64x64 |
| { AOM_CDF4(22701, 28594, 30572) }, |
| { AOM_CDF4(7745, 23851, 27711) }, |
| { AOM_CDF4(9203, 21547, 28271) }, |
| { AOM_CDF4(5150, 21852, 28083) }, |
| // 128x128 |
| { AOM_CDF2(27175) }, // Unused |
| { AOM_CDF2(11141) }, // Unused |
| { AOM_CDF2(15312) }, // Unused |
| { AOM_CDF2(7362) }, // Unused |
| }, |
| // VERT_3 |
| { |
| // 8x8 |
| { AOM_CDF2(24114) }, |
| { AOM_CDF2(20966) }, |
| { AOM_CDF2(18259) }, |
| { AOM_CDF2(17964) }, |
| // 16x16 |
| { AOM_CDF4(16315, 25657, 28992) }, |
| { AOM_CDF4(11233, 20561, 25595) }, |
| { AOM_CDF4(8724, 25612, 29666) }, |
| { AOM_CDF4(7346, 20698, 26070) }, |
| // 32x32 |
| { AOM_CDF4(13603, 23502, 27591) }, |
| { AOM_CDF4(8550, 19528, 24964) }, |
| { AOM_CDF4(7448, 23466, 28742) }, |
| { AOM_CDF4(6276, 18508, 25664) }, |
| // 64x64 |
| { AOM_CDF4(22750, 28494, 30521) }, |
| { AOM_CDF4(8951, 21439, 26505) }, |
| { AOM_CDF4(8126, 23701, 29348) }, |
| { AOM_CDF4(4980, 22191, 28252) }, |
| // 128x128 |
| { AOM_CDF2(27774) }, |
| { AOM_CDF2(16584) }, |
| { AOM_CDF2(15476) }, |
| { AOM_CDF2(11625) }, |
| } }, |
| // Chroma |
| { // HORZ_3 |
| { |
| // 8x8 |
| { AOM_CDF2(25550) }, |
| { AOM_CDF2(21449) }, |
| { AOM_CDF2(22555) }, |
| { AOM_CDF2(21203) }, |
| // 16x16 |
| { AOM_CDF4(16588, 25114, 28722) }, |
| { AOM_CDF4(9278, 24469, 27548) }, |
| { AOM_CDF4(11426, 20208, 26964) }, |
| { AOM_CDF4(7824, 19743, 25593) }, |
| // 32x32 |
| { AOM_CDF4(13817, 23073, 27376) }, |
| { AOM_CDF4(7015, 22595, 26496) }, |
| { AOM_CDF4(9045, 20272, 27145) }, |
| { AOM_CDF4(5801, 19459, 26140) }, |
| // 64x64 |
| { AOM_CDF4(22701, 28594, 30572) }, |
| { AOM_CDF4(7745, 23851, 27711) }, |
| { AOM_CDF4(9203, 21547, 28271) }, |
| { AOM_CDF4(5150, 21852, 28083) }, |
| // 128x128 |
| { AOM_CDF2(27175) }, // Unused |
| { AOM_CDF2(11141) }, // Unused |
| { AOM_CDF2(15312) }, // Unused |
| { AOM_CDF2(7362) }, // Unused |
| }, |
| // VERT_3 |
| { |
| // 8x8 |
| { AOM_CDF2(24114) }, |
| { AOM_CDF2(20966) }, |
| { AOM_CDF2(18259) }, |
| { AOM_CDF2(17964) }, |
| // 16x16 |
| { AOM_CDF4(16315, 25657, 28992) }, |
| { AOM_CDF4(11233, 20561, 25595) }, |
| { AOM_CDF4(8724, 25612, 29666) }, |
| { AOM_CDF4(7346, 20698, 26070) }, |
| // 32x32 |
| { AOM_CDF4(13603, 23502, 27591) }, |
| { AOM_CDF4(8550, 19528, 24964) }, |
| { AOM_CDF4(7448, 23466, 28742) }, |
| { AOM_CDF4(6276, 18508, 25664) }, |
| // 64x64 |
| { AOM_CDF4(22750, 28494, 30521) }, |
| { AOM_CDF4(8951, 21439, 26505) }, |
| { AOM_CDF4(8126, 23701, 29348) }, |
| { AOM_CDF4(4980, 22191, 28252) }, |
| // 128x128 |
| { AOM_CDF2(27774) }, |
| { AOM_CDF2(16584) }, |
| { AOM_CDF2(15476) }, |
| { AOM_CDF2(11625) }, |
| } } |
| }; |
| static const aom_cdf_prob default_limited_partition_noext_cdf |
| [PARTITION_STRUCTURE_NUM][NUM_LIMITED_PARTITION_PARENTS][PARTITION_CONTEXTS] |
| [CDF_SIZE(LIMITED_PARTITION_TYPES)] = { |
| // Luma/Shared |
| { // HORZ_3 |
| { |
| // 8x8 |
| { AOM_CDF2(25550) }, |
| { AOM_CDF2(21449) }, |
| { AOM_CDF2(22555) }, |
| { AOM_CDF2(21203) }, |
| // 16x16 |
| { AOM_CDF2(16588) }, |
| { AOM_CDF2(9278) }, |
| { AOM_CDF2(11426) }, |
| { AOM_CDF2(7824) }, |
| // 32x32 |
| { AOM_CDF2(13817) }, |
| { AOM_CDF2(7015) }, |
| { AOM_CDF2(9045) }, |
| { AOM_CDF2(5801) }, |
| // 64x64 |
| { AOM_CDF2(22701) }, |
| { AOM_CDF2(7745) }, |
| { AOM_CDF2(9203) }, |
| { AOM_CDF2(5150) }, |
| // 128x128 |
| { AOM_CDF2(27175) }, // Unused |
| { AOM_CDF2(11141) }, // Unused |
| { AOM_CDF2(15312) }, // Unused |
| { AOM_CDF2(7362) }, // Unused |
| }, |
| // VERT_3 |
| { |
| // 8x8 |
| { AOM_CDF2(24114) }, |
| { AOM_CDF2(20966) }, |
| { AOM_CDF2(18259) }, |
| { AOM_CDF2(17964) }, |
| // 16x16 |
| { AOM_CDF2(16315) }, |
| { AOM_CDF2(11233) }, |
| { AOM_CDF2(8724) }, |
| { AOM_CDF2(7346) }, |
| // 32x32 |
| { AOM_CDF2(13603) }, |
| { AOM_CDF2(8550) }, |
| { AOM_CDF2(7448) }, |
| { AOM_CDF2(6276) }, |
| // 64x64 |
| { AOM_CDF2(22750) }, |
| { AOM_CDF2(8951) }, |
| { AOM_CDF2(8126) }, |
| { AOM_CDF2(4980) }, |
| // 128x128 |
| { AOM_CDF2(27774) }, |
| { AOM_CDF2(16584) }, |
| { AOM_CDF2(15476) }, |
| { AOM_CDF2(11625) }, |
| } }, |
| // Chroma |
| { // HORZ_3 |
| { |
| // 8x8 |
| { AOM_CDF2(25550) }, |
| { AOM_CDF2(21449) }, |
| { AOM_CDF2(22555) }, |
| { AOM_CDF2(21203) }, |
| // 16x16 |
| { AOM_CDF2(16588) }, |
| { AOM_CDF2(9278) }, |
| { AOM_CDF2(11426) }, |
| { AOM_CDF2(7824) }, |
| // 32x32 |
| { AOM_CDF2(13817) }, |
| { AOM_CDF2(7015) }, |
| { AOM_CDF2(9045) }, |
| { AOM_CDF2(5801) }, |
| // 64x64 |
| { AOM_CDF2(22701) }, |
| { AOM_CDF2(7745) }, |
| { AOM_CDF2(9203) }, |
| { AOM_CDF2(5150) }, |
| // 128x128 |
| { AOM_CDF2(27175) }, // Unused |
| { AOM_CDF2(11141) }, // Unused |
| { AOM_CDF2(15312) }, // Unused |
| { AOM_CDF2(7362) }, // Unused |
| }, |
| // VERT_3 |
| { |
| // 8x8 |
| { AOM_CDF2(24114) }, |
| { AOM_CDF2(20966) }, |
| { AOM_CDF2(18259) }, |
| { AOM_CDF2(17964) }, |
| // 16x16 |
| { AOM_CDF2(16315) }, |
| { AOM_CDF2(11233) }, |
| { AOM_CDF2(8724) }, |
| { AOM_CDF2(7346) }, |
| // 32x32 |
| { AOM_CDF2(13603) }, |
| { AOM_CDF2(8550) }, |
| { AOM_CDF2(7448) }, |
| { AOM_CDF2(6276) }, |
| // 64x64 |
| { AOM_CDF2(22750) }, |
| { AOM_CDF2(8951) }, |
| { AOM_CDF2(8126) }, |
| { AOM_CDF2(4980) }, |
| // 128x128 |
| { AOM_CDF2(27774) }, |
| { AOM_CDF2(16584) }, |
| { AOM_CDF2(15476) }, |
| { AOM_CDF2(11625) }, |
| } } |
| }; |
| #else |
| static const aom_cdf_prob |
| default_partition_cdf[PARTITION_STRUCTURE_NUM][PARTITION_CONTEXTS][CDF_SIZE( |
| EXT_PARTITION_TYPES)] = { |
| { |
| { AOM_CDF4(19132, 25510, 30392) }, |
| { AOM_CDF4(13928, 19855, 28540) }, |
| { AOM_CDF4(12522, 23679, 28629) }, |
| { AOM_CDF4(9896, 18783, 25853) }, |
| { AOM_CDF10(15597, 20929, 24571, 26706, 27664, 28821, 29601, 30571, |
| 31902) }, |
| { AOM_CDF10(7925, 11043, 16785, 22470, 23971, 25043, 26651, 28701, |
| 29834) }, |
| { AOM_CDF10(5414, 13269, 15111, 20488, 22360, 24500, 25537, 26336, |
| 32117) }, |
| { AOM_CDF10(2662, 6362, 8614, 20860, 23053, 24778, 26436, 27829, |
| 31171) }, |
| { AOM_CDF10(18462, 20920, 23124, 27647, 28227, 29049, 29519, 30178, |
| 31544) }, |
| { AOM_CDF10(7689, 9060, 12056, 24992, 25660, 26182, 26951, 28041, |
| 29052) }, |
| { AOM_CDF10(6015, 9009, 10062, 24544, 25409, 26545, 27071, 27526, |
| 32047) }, |
| { AOM_CDF10(1394, 2208, 2796, 28614, 29061, 29466, 29840, 30185, |
| 31899) }, |
| { AOM_CDF10(20137, 21547, 23078, 29566, 29837, 30261, 30524, 30892, |
| 31724) }, |
| { AOM_CDF10(6732, 7490, 9497, 27944, 28250, 28515, 28969, 29630, |
| 30104) }, |
| { AOM_CDF10(5945, 7663, 8348, 28683, 29117, 29749, 30064, 30298, |
| 32238) }, |
| { AOM_CDF10(870, 1212, 1487, 31198, 31394, 31574, 31743, 31881, |
| 32332) }, |
| { AOM_CDF8(27899, 28219, 28529, 32484, 32539, 32619, 32639) }, |
| { AOM_CDF8(6607, 6990, 8268, 32060, 32219, 32338, 32371) }, |
| { AOM_CDF8(5429, 6676, 7122, 32027, 32227, 32531, 32582) }, |
| { AOM_CDF8(711, 966, 1172, 32448, 32538, 32617, 32664) }, |
| }, |
| { |
| { AOM_CDF4(19132, 25510, 30392) }, |
| { AOM_CDF4(13928, 19855, 28540) }, |
| { AOM_CDF4(12522, 23679, 28629) }, |
| { AOM_CDF4(9896, 18783, 25853) }, |
| { AOM_CDF10(15597, 20929, 24571, 26706, 27664, 28821, 29601, 30571, |
| 31902) }, |
| { AOM_CDF10(7925, 11043, 16785, 22470, 23971, 25043, 26651, 28701, |
| 29834) }, |
| { AOM_CDF10(5414, 13269, 15111, 20488, 22360, 24500, 25537, 26336, |
| 32117) }, |
| { AOM_CDF10(2662, 6362, 8614, 20860, 23053, 24778, 26436, 27829, |
| 31171) }, |
| { AOM_CDF10(18462, 20920, 23124, 27647, 28227, 29049, 29519, 30178, |
| 31544) }, |
| { AOM_CDF10(7689, 9060, 12056, 24992, 25660, 26182, 26951, 28041, |
| 29052) }, |
| { AOM_CDF10(6015, 9009, 10062, 24544, 25409, 26545, 27071, 27526, |
| 32047) }, |
| { AOM_CDF10(1394, 2208, 2796, 28614, 29061, 29466, 29840, 30185, |
| 31899) }, |
| { AOM_CDF10(20137, 21547, 23078, 29566, 29837, 30261, 30524, 30892, |
| 31724) }, |
| { AOM_CDF10(6732, 7490, 9497, 27944, 28250, 28515, 28969, 29630, |
| 30104) }, |
| { AOM_CDF10(5945, 7663, 8348, 28683, 29117, 29749, 30064, 30298, |
| 32238) }, |
| { AOM_CDF10(870, 1212, 1487, 31198, 31394, 31574, 31743, 31881, |
| 32332) }, |
| { AOM_CDF8(27899, 28219, 28529, 32484, 32539, 32619, 32639) }, |
| { AOM_CDF8(6607, 6990, 8268, 32060, 32219, 32338, 32371) }, |
| { AOM_CDF8(5429, 6676, 7122, 32027, 32227, 32531, 32582) }, |
| { AOM_CDF8(711, 966, 1172, 32448, 32538, 32617, 32664) }, |
| } |
| }; |
| #endif // CONFIG_EXT_RECUR_PARTITIONS |
| |
| #if CONFIG_EXT_RECUR_PARTITIONS |
| static const aom_cdf_prob |
| default_partition_rec_cdf[PARTITION_CONTEXTS_REC] |
| [CDF_SIZE(PARTITION_TYPES_REC)] = { |
| // 8x4, 4x8 |
| { AOM_CDF2(30612) }, |
| { AOM_CDF2(26074) }, |
| { AOM_CDF2(28683) }, |
| { AOM_CDF2(21191) }, |
| // 16x8, 8x16 |
| { AOM_CDF4(21708, 29163, 30522) }, |
| { AOM_CDF4(13852, 27221, 30664) }, |
| { AOM_CDF4(19187, 27661, 29952) }, |
| { AOM_CDF4(9933, 21239, 25921) }, |
| // 32x16, 16x32 |
| { AOM_CDF4(14474, 25684, 29998) }, |
| { AOM_CDF4(5925, 22613, 30845) }, |
| { AOM_CDF4(12840, 23573, 29664) }, |
| { AOM_CDF4(6088, 16570, 29275) }, |
| // 64x32, 32x64 |
| { AOM_CDF4(11157, 25388, 30679) }, |
| { AOM_CDF4(3692, 24449, 31809) }, |
| { AOM_CDF4(13455, 23113, 30099) }, |
| { AOM_CDF4(13455, 23113, 30099) }, |
| // 128x64, 64x128 |
| { AOM_CDF2(9487) }, |
| { AOM_CDF2(2668) }, |
| { AOM_CDF2(8532) }, |
| { AOM_CDF2(8532) }, |
| }; |
| static const aom_cdf_prob |
| default_partition_noext_rec_cdf[PARTITION_CONTEXTS_REC] |
| [CDF_SIZE(PARTITION_TYPES)] = { |
| // 8x4, 4x8 |
| { AOM_CDF2(30612) }, |
| { AOM_CDF2(26074) }, |
| { AOM_CDF2(28683) }, |
| { AOM_CDF2(21191) }, |
| // 16x8, 8x16 |
| { AOM_CDF3(21708, 29163) }, |
| { AOM_CDF3(13852, 27221) }, |
| { AOM_CDF3(19187, 27661) }, |
| { AOM_CDF3(9933, 21239) }, |
| // 32x16, 16x32 |
| { AOM_CDF3(14474, 25684) }, |
| { AOM_CDF3(5925, 22613) }, |
| { AOM_CDF3(12840, 23573) }, |
| { AOM_CDF3(6088, 16570) }, |
| // 64x32, 32x64 |
| { AOM_CDF3(11157, 25388) }, |
| { AOM_CDF3(3692, 24449) }, |
| { AOM_CDF3(13455, 23113) }, |
| { AOM_CDF3(13455, 23113) }, |
| // 128x64, 64x128 |
| { AOM_CDF2(9487) }, |
| { AOM_CDF2(2668) }, |
| { AOM_CDF2(8532) }, |
| { AOM_CDF2(8532) }, |
| }; |
| // TODO(chiyotsai@google.com): Retune the cdf here |
| static const aom_cdf_prob |
| default_partition_middle_rec_cdf[PARTITION_CONTEXTS_REC] |
| [CDF_SIZE(PARTITION_TYPES_MIDDLE_REC)] = { |
| // 8x4, 4x8 |
| { AOM_CDF2(30462) }, // Not used |
| { AOM_CDF2(25506) }, // Not used |
| { AOM_CDF2(27632) }, // Not used |
| { AOM_CDF2(19443) }, // Not used |
| // 16x8, 8x16 |
| { AOM_CDF3(20645, 30994) }, |
| { AOM_CDF3(13282, 26216) }, |
| { AOM_CDF3(17766, 31839) }, |
| { AOM_CDF3(13067, 27065) }, |
| // 32x16, 16x32 |
| { AOM_CDF3(14234, 25470) }, |
| { AOM_CDF3(7421, 19783) }, |
| { AOM_CDF3(8692, 21169) }, |
| { AOM_CDF3(5458, 18812) }, |
| // 64x32, 32x64 |
| { AOM_CDF3(14706, 25018) }, |
| { AOM_CDF3(6131, 19651) }, |
| { AOM_CDF3(6588, 20073) }, |
| { AOM_CDF3(8175, 21020) }, |
| // 128x64, 64x128 |
| { AOM_CDF3(15208, 24398) }, // Not used |
| { AOM_CDF3(6597, 18232) }, // Not used |
| { AOM_CDF3(9068, 21038) }, // Not used |
| { AOM_CDF3(10923, 21845) }, // Not used |
| }; |
| static const aom_cdf_prob |
| default_partition_middle_noext_rec_cdf[PARTITION_CONTEXTS_REC][CDF_SIZE( |
| LIMITED_PARTITION_TYPES)] = { |
| // 8x4, 4x8 |
| { AOM_CDF2(30462) }, // Not used |
| { AOM_CDF2(25506) }, // Not used |
| { AOM_CDF2(27632) }, // Not used |
| { AOM_CDF2(19443) }, // Not used |
| // 16x8, 8x16 |
| { AOM_CDF2(20645) }, |
| { AOM_CDF2(13282) }, |
| { AOM_CDF2(17766) }, |
| { AOM_CDF2(13067) }, |
| // 32x16, 16x32 |
| { AOM_CDF2(14234) }, |
| { AOM_CDF2(7421) }, |
| { AOM_CDF2(8692) }, |
| { AOM_CDF2(5458) }, |
| // 64x32, 32x64 |
| { AOM_CDF2(14706) }, |
| { AOM_CDF2(6131) }, |
| { AOM_CDF2(6588) }, |
| { AOM_CDF2(8175) }, |
| // 128x64, 64x128 |
| { AOM_CDF2(15208) }, // Not used |
| { AOM_CDF2(6597) }, // Not used |
| { AOM_CDF2(9068) }, // Not used |
| { AOM_CDF2(10923) }, // Not used |
| }; |
| #endif // CONFIG_EXT_RECUR_PARTITIONS |
| |
| static const aom_cdf_prob default_intra_ext_tx_cdf |
| [EXT_TX_SETS_INTRA][EXT_TX_SIZES][INTRA_MODES][CDF_SIZE(TX_TYPES)] = { |
| { |
| { |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| }, |
| { |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| }, |
| { |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| }, |
| { |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| }, |
| }, |
| #if CONFIG_ATC_NEWTXSETS |
| { |
| { |
| { AOM_CDF7(3368, 14670, 18533, 22660, 26441, 30407) }, |
| { AOM_CDF7(2892, 10846, 12929, 15022, 20279, 24848) }, |
| { AOM_CDF7(2970, 10092, 12111, 14056, 19042, 24231) }, |
| { AOM_CDF7(4675, 15520, 19289, 22860, 26126, 29323) }, |
| { AOM_CDF7(5741, 17285, 20299, 23101, 26811, 30150) }, |
| { AOM_CDF7(4046, 12361, 15094, 17963, 22334, 29679) }, |
| { AOM_CDF7(2645, 14187, 17494, 20824, 23478, 28652) }, |
| { AOM_CDF7(4491, 11957, 14256, 17747, 23116, 26692) }, |
| { AOM_CDF7(4572, 12171, 15386, 17502, 22970, 26387) }, |
| { AOM_CDF7(4818, 18277, 21330, 24328, 27157, 29767) }, |
| { AOM_CDF7(3133, 13519, 18447, 21542, 25893, 28907) }, |
| { AOM_CDF7(3034, 13651, 16494, 21145, 24306, 28845) }, |
| { AOM_CDF7(2897, 8281, 10381, 17034, 22446, 27394) }, |
| }, |
| { |
| { AOM_CDF7(6913, 15909, 21003, 26934, 28464, 30480) }, |
| { AOM_CDF7(11567, 17963, 21143, 23834, 27212, 29744) }, |
| { AOM_CDF7(12143, 17474, 19848, 23648, 26868, 29636) }, |
| { AOM_CDF7(9814, 19582, 23675, 27984, 29550, 31079) }, |
| { AOM_CDF7(12675, 25454, 27677, 29916, 30466, 31574) }, |
| { AOM_CDF7(12920, 24484, 26753, 29154, 30052, 31578) }, |
| { AOM_CDF7(6977, 19974, 23611, 28014, 29128, 30383) }, |
| { AOM_CDF7(12055, 19503, 22014, 26902, 29041, 31594) }, |
| { AOM_CDF7(12331, 20997, 24825, 27187, 29128, 30275) }, |
| { AOM_CDF7(17925, 28050, 29454, 30862, 31560, 32031) }, |
| { AOM_CDF7(10669, 19564, 24634, 26808, 28587, 30808) }, |
| { AOM_CDF7(10600, 18770, 21109, 26488, 28800, 30563) }, |
| { AOM_CDF7(2685, 11088, 14733, 18441, 24856, 29321) }, |
| }, |
| { |
| { AOM_CDF7(5370, 17001, 22323, 28306, 29331, 30830) }, |
| { AOM_CDF7(10530, 17424, 22261, 25690, 27734, 30576) }, |
| { AOM_CDF7(13202, 19027, 21686, 25915, 27548, 30274) }, |
| { AOM_CDF7(8603, 20698, 24945, 29372, 30199, 31482) }, |
| { AOM_CDF7(12880, 26916, 28764, 30860, 31155, 31986) }, |
| { AOM_CDF7(11519, 24604, 27187, 29897, 30656, 32093) }, |
| { AOM_CDF7(5960, 21787, 25173, 29317, 30018, 30862) }, |
| { AOM_CDF7(11501, 20325, 23107, 28189, 29337, 30192) }, |
| { AOM_CDF7(11751, 21168, 25372, 27966, 29637, 31954) }, |
| { AOM_CDF7(16014, 26363, 28654, 30958, 31336, 31926) }, |
| { AOM_CDF7(7719, 17330, 23701, 26018, 28012, 30480) }, |
| { AOM_CDF7(12072, 20163, 22020, 27254, 29100, 30709) }, |
| { AOM_CDF7(2891, 9281, 12547, 15931, 21415, 28198) }, |
| }, |
| { |
| { AOM_CDF7(4681, 9362, 14043, 18725, 23406, 28087) }, |
| { AOM_CDF7(4681, 9362, 14043, 18725, 23406, 28087) }, |
| { AOM_CDF7(4681, 9362, 14043, 18725, 23406, 28087) }, |
| { AOM_CDF7(4681, 9362, 14043, 18725, 23406, 28087) }, |
| { AOM_CDF7(4681, 9362, 14043, 18725, 23406, 28087) }, |
| { AOM_CDF7(4681, 9362, 14043, 18725, 23406, 28087) }, |
| { AOM_CDF7(4681, 9362, 14043, 18725, 23406, 28087) }, |
| { AOM_CDF7(4681, 9362, 14043, 18725, 23406, 28087) }, |
| { AOM_CDF7(4681, 9362, 14043, 18725, 23406, 28087) }, |
| { AOM_CDF7(4681, 9362, 14043, 18725, 23406, 28087) }, |
| { AOM_CDF7(4681, 9362, 14043, 18725, 23406, 28087) }, |
| { AOM_CDF7(4681, 9362, 14043, 18725, 23406, 28087) }, |
| { AOM_CDF7(4681, 9362, 14043, 18725, 23406, 28087) }, |
| }, |
| }, |
| #if CONFIG_ATC_REDUCED_TXSET |
| { |
| { |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| }, |
| { |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| }, |
| { |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| }, |
| { |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| }, |
| }, |
| #endif // CONFIG_ATC_REDUCED_TXSET |
| #else |
| { |
| { |
| { AOM_CDF6(4509, 4513, 6614, 19602, 25868) }, |
| { AOM_CDF6(3468, 12197, 12201, 23861, 30204) }, |
| { AOM_CDF6(3646, 3650, 13878, 24533, 26487) }, |
| { AOM_CDF6(7085, 7089, 7093, 20681, 27505) }, |
| { AOM_CDF6(5570, 5574, 8308, 23283, 28103) }, |
| { AOM_CDF6(4356, 11335, 11339, 23057, 29542) }, |
| { AOM_CDF6(2879, 2883, 6158, 22498, 26497) }, |
| { AOM_CDF6(5209, 5213, 12622, 22324, 24687) }, |
| { AOM_CDF6(5269, 12434, 12438, 22397, 30363) }, |
| { AOM_CDF6(5881, 5885, 7306, 24465, 28459) }, |
| { AOM_CDF6(3542, 7258, 7262, 20288, 28401) }, |
| { AOM_CDF6(3607, 3611, 7034, 20801, 24682) }, |
| { AOM_CDF6(62, 8199, 15894, 25339, 29047) }, |
| }, |
| { |
| { AOM_CDF6(8623, 8627, 9129, 18764, 25376) }, |
| { AOM_CDF6(12683, 16999, 17003, 24621, 29882) }, |
| { AOM_CDF6(13870, 13874, 18837, 25255, 27384) }, |
| { AOM_CDF6(12247, 12251, 12255, 23344, 28397) }, |
| { AOM_CDF6(13737, 13741, 13853, 28045, 30364) }, |
| { AOM_CDF6(13810, 14873, 14877, 27749, 30578) }, |
| { AOM_CDF6(7354, 7358, 7955, 23184, 27214) }, |
| { AOM_CDF6(14264, 14268, 15603, 23880, 26233) }, |
| { AOM_CDF6(14596, 15887, 15891, 25209, 30547) }, |
| { AOM_CDF6(18175, 18179, 18270, 29482, 30973) }, |
| { AOM_CDF6(11704, 12594, 12598, 22900, 29864) }, |
| { AOM_CDF6(12666, 12670, 13282, 22710, 25664) }, |
| { AOM_CDF6(96, 6354, 11996, 22538, 27391) }, |
| }, |
| { |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| }, |
| { |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| { AOM_CDF6(5461, 10923, 16384, 21845, 27307) }, |
| }, |
| }, |
| { |
| { |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| }, |
| { |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| }, |
| { |
| { AOM_CDF4(6783, 18746, 25487) }, |
| { AOM_CDF4(13628, 22207, 29412) }, |
| { AOM_CDF4(17335, 24883, 27035) }, |
| { AOM_CDF4(11981, 24479, 29767) }, |
| { AOM_CDF4(13825, 29833, 31203) }, |
| { AOM_CDF4(12205, 27984, 30538) }, |
| { AOM_CDF4(5581, 24810, 28085) }, |
| { AOM_CDF4(14440, 23929, 25772) }, |
| { AOM_CDF4(15153, 25126, 31098) }, |
| { AOM_CDF4(15765, 27807, 30109) }, |
| { AOM_CDF4(9553, 21100, 30289) }, |
| { AOM_CDF4(14728, 24571, 26382) }, |
| { AOM_CDF4(3189, 19597, 25737) }, |
| }, |
| { |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, |
| }, |
| } |
| #endif // CONFIG_ATC_NEWTXSETS |
| }; |
| |
| static const aom_cdf_prob |
| default_inter_ext_tx_cdf[EXT_TX_SETS_INTER][EXT_TX_SIZES][CDF_SIZE( |
| TX_TYPES)] = { |
| { |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| { 0 }, |
| }, |
| { |
| { AOM_CDF16(4458, 5560, 7695, 9709, 13330, 14789, 17537, 20266, 21504, |
| 22848, 23934, 25474, 27727, 28915, 30631) }, |
| { AOM_CDF16(1645, 2573, 4778, 5711, 7807, 8622, 10522, 15357, 17674, |
| 20408, 22517, 25010, 27116, 28856, 30749) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, |
| 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, 18432, |
| 20480, 22528, 24576, 26624, 28672, 30720) }, |
| }, |
| { |
| { AOM_CDF12(2731, 5461, 8192, 10923, 13653, 16384, 19115, 21845, |
| 24576, 27307, 30037) }, |
| { AOM_CDF12(2731, 5461, 8192, 10923, 13653, 16384, 19115, 21845, |
| 24576, 27307, 30037) }, |
| { AOM_CDF12(770, 2421, 5225, 12907, 15819, 18927, 21561, 24089, 26595, |
| 28526, 30529) }, |
| { AOM_CDF12(2731, 5461, 8192, 10923, 13653, 16384, 19115, 21845, |
| 24576, 27307, 30037) }, |
| }, |
| { |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(4167) }, |
| { AOM_CDF2(1998) }, |
| { AOM_CDF2(748) }, |
| }, |
| }; |
| |
| #if CONFIG_CROSS_CHROMA_TX |
| static const aom_cdf_prob |
| default_cctx_type_cdf[EXT_TX_SIZES][CCTX_CONTEXTS][CDF_SIZE(CCTX_TYPES)] = { |
| { { AOM_CDF7(19143, 19642, 20876, 21362, 23684, 30645) }, |
| { AOM_CDF7(15852, 17519, 22430, 24276, 26473, 30362) }, |
| { AOM_CDF7(9981, 10351, 11021, 11340, 16893, 28901) } }, |
| { { AOM_CDF7(13312, 14068, 15345, 16249, 20082, 29648) }, |
| { AOM_CDF7(11802, 14635, 17918, 20493, 23927, 29206) }, |
| { AOM_CDF7(8348, 8915, 9727, 10347, 16584, 27923) } }, |
| { { AOM_CDF7(10604, 11887, 13486, 14485, 19798, 28529) }, |
| { AOM_CDF7(10790, 13346, 16867, 18854, 23398, 29133) }, |
| { AOM_CDF7(6538, 7104, 7997, 8723, 15658, 26864) } }, |
| { { AOM_CDF7(13226, 13959, 14918, 15707, 21009, 29328) }, |
| { AOM_CDF7(10336, 13195, 15614, 17813, 21992, 29469) }, |
| { AOM_CDF7(7769, 8772, 9617, 10150, 16729, 28132) } } |
| }; |
| #endif // CONFIG_CROSS_CHROMA_TX |
| |
| static const aom_cdf_prob default_cfl_sign_cdf[CDF_SIZE(CFL_JOINT_SIGNS)] = { |
| AOM_CDF8(1418, 2123, 13340, 18405, 26972, 28343, 32294) |
| }; |
| |
| static const aom_cdf_prob |
| default_cfl_alpha_cdf[CFL_ALPHA_CONTEXTS][CDF_SIZE(CFL_ALPHABET_SIZE)] = { |
| { AOM_CDF16(7637, 20719, 31401, 32481, 32657, 32688, 32692, 32696, 32700, |
| 32704, 32708, 32712, 32716, 32720, 32724) }, |
| { AOM_CDF16(14365, 23603, 28135, 31168, 32167, 32395, 32487, 32573, 32620, |
| 32647, 32668, 32672, 32676, 32680, 32684) }, |
| { AOM_CDF16(11532, 22380, 28445, 31360, 32349, 32523, 32584, 32649, 32673, |
| 32677, 32681, 32685, 32689, 32693, 32697) }, |
| { AOM_CDF16(26990, 31402, 32282, 32571, 32692, 32696, 32700, 32704, 32708, |
| 32712, 32716, 32720, 32724, 32728, 32732) }, |
| { AOM_CDF16(17248, 26058, 28904, 30608, 31305, 31877, 32126, 32321, 32394, |
| 32464, 32516, 32560, 32576, 32593, 32622) }, |
| { AOM_CDF16(14738, 21678, 25779, 27901, 29024, 30302, 30980, 31843, 32144, |
| 32413, 32520, 32594, 32622, 32656, 32660) } |
| }; |
| |
| static const aom_cdf_prob |
| default_switchable_interp_cdf[SWITCHABLE_FILTER_CONTEXTS][CDF_SIZE( |
| SWITCHABLE_FILTERS)] = { |
| { AOM_CDF3(31935, 32720) }, { AOM_CDF3(5568, 32719) }, |
| { AOM_CDF3(422, 2938) }, { AOM_CDF3(28244, 32608) }, |
| { AOM_CDF3(31206, 31953) }, { AOM_CDF3(4862, 32121) }, |
| { AOM_CDF3(770, 1152) }, { AOM_CDF3(20889, 25637) }, |
| { AOM_CDF3(31910, 32724) }, { AOM_CDF3(4120, 32712) }, |
| { AOM_CDF3(305, 2247) }, { AOM_CDF3(27403, 32636) }, |
| { AOM_CDF3(31022, 32009) }, { AOM_CDF3(2963, 32093) }, |
| { AOM_CDF3(601, 943) }, { AOM_CDF3(14969, 21398) } |
| }; |
| |
| #if CONFIG_WARPMV |
| static const aom_cdf_prob |
| default_inter_warp_mode_cdf[WARPMV_MODE_CONTEXT][CDF_SIZE(2)] = { |
| { AOM_CDF2(24626) }, { AOM_CDF2(24626) }, { AOM_CDF2(24626) }, |
| { AOM_CDF2(24626) }, { AOM_CDF2(24626) }, { AOM_CDF2(24626) }, |
| { AOM_CDF2(24626) }, { AOM_CDF2(24626) }, { AOM_CDF2(24626) }, |
| { AOM_CDF2(24626) } |
| }; |
| #endif // CONFIG_WARPMV |
| |
| #if IMPROVED_AMVD |
| #if CONFIG_C076_INTER_MOD_CTX |
| static const aom_cdf_prob |
| default_inter_single_mode_cdf[INTER_SINGLE_MODE_CONTEXTS][CDF_SIZE( |
| INTER_SINGLE_MODES)] = { |
| { AOM_CDF4(10620, 10967, 29191) }, { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(23175, 23272, 28777) }, { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(13576, 13699, 25666) }, { AOM_CDF4(15412, 15847, 24931) }, |
| { AOM_CDF4(26748, 26844, 29519) }, { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(19677, 19785, 26067) }, { AOM_CDF4(13820, 14145, 24314) }, |
| }; |
| #else |
| static const aom_cdf_prob |
| default_inter_single_mode_cdf[INTER_SINGLE_MODE_CONTEXTS][CDF_SIZE( |
| INTER_SINGLE_MODES)] = { |
| { AOM_CDF4(17346, 18771, 29200) }, { AOM_CDF4(10923, 21845, 29200) }, |
| { AOM_CDF4(8838, 9132, 29200) }, { AOM_CDF4(10923, 21845, 29200) }, |
| { AOM_CDF4(17910, 18959, 29200) }, { AOM_CDF4(16927, 17852, 29200) }, |
| { AOM_CDF4(11632, 11810, 29200) }, { AOM_CDF4(12506, 12827, 29200) }, |
| { AOM_CDF4(15831, 17676, 29200) }, { AOM_CDF4(15236, 17070, 29200) }, |
| { AOM_CDF4(13715, 13809, 29200) }, { AOM_CDF4(13869, 14031, 29200) }, |
| { AOM_CDF4(25678, 26470, 29200) }, { AOM_CDF4(23151, 23634, 29200) }, |
| { AOM_CDF4(21431, 21612, 29200) }, { AOM_CDF4(19838, 20021, 29200) }, |
| { AOM_CDF4(19562, 20206, 29200) }, { AOM_CDF4(10923, 21845, 29200) }, |
| { AOM_CDF4(14966, 15103, 29200) }, { AOM_CDF4(10923, 21845, 29200) }, |
| { AOM_CDF4(27072, 28206, 31200) }, { AOM_CDF4(10923, 21845, 29200) }, |
| { AOM_CDF4(24626, 24936, 30200) }, { AOM_CDF4(10923, 21845, 29200) } |
| }; |
| #endif // CONFIG_C076_INTER_MOD_CTX |
| #else |
| #if CONFIG_C076_INTER_MOD_CTX |
| static const aom_cdf_prob |
| default_inter_single_mode_cdf[INTER_SINGLE_MODE_CONTEXTS][CDF_SIZE( |
| INTER_SINGLE_MODES)] = { |
| { AOM_CDF3(17346, 18771) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(8838, 9132) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(17910, 18959) }, { AOM_CDF3(16927, 17852) }, |
| { AOM_CDF3(11632, 11810) }, { AOM_CDF3(12506, 12827) }, |
| { AOM_CDF3(15831, 17676) }, { AOM_CDF3(15236, 17070) }, |
| { AOM_CDF3(13715, 13809) }, { AOM_CDF3(13869, 14031) } |
| }; |
| #else |
| static const aom_cdf_prob |
| default_inter_single_mode_cdf[INTER_SINGLE_MODE_CONTEXTS][CDF_SIZE( |
| INTER_SINGLE_MODES)] = { |
| { AOM_CDF3(17346, 18771) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(8838, 9132) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(17910, 18959) }, { AOM_CDF3(16927, 17852) }, |
| { AOM_CDF3(11632, 11810) }, { AOM_CDF3(12506, 12827) }, |
| { AOM_CDF3(15831, 17676) }, { AOM_CDF3(15236, 17070) }, |
| { AOM_CDF3(13715, 13809) }, { AOM_CDF3(13869, 14031) }, |
| { AOM_CDF3(25678, 26470) }, { AOM_CDF3(23151, 23634) }, |
| { AOM_CDF3(21431, 21612) }, { AOM_CDF3(19838, 20021) }, |
| { AOM_CDF3(19562, 20206) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(14966, 15103) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(27072, 28206) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(24626, 24936) }, { AOM_CDF3(10923, 21845) } |
| }; |
| #endif // CONFIG_C076_INTER_MOD_CTX |
| #endif // IMPROVED_AMVD |
| #if CONFIG_C076_INTER_MOD_CTX |
| #if CONFIG_REF_MV_BANK |
| static const aom_cdf_prob |
| default_drl0_cdf_refmvbank[DRL_MODE_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(19182) }, { AOM_CDF2(16384) }, { AOM_CDF2(26594) }, |
| { AOM_CDF2(23343) }, { AOM_CDF2(25555) }, { AOM_CDF2(16773) } |
| }; |
| #endif // CONFIG_REF_MV_BANK |
| static const aom_cdf_prob default_drl0_cdf[DRL_MODE_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) } |
| }; |
| |
| #if CONFIG_REF_MV_BANK |
| static const aom_cdf_prob |
| default_drl1_cdf_refmvbank[DRL_MODE_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(16790) }, { AOM_CDF2(16384) }, { AOM_CDF2(16961) }, |
| { AOM_CDF2(16293) }, { AOM_CDF2(20567) }, { AOM_CDF2(20683) } |
| }; |
| #endif // CONFIG_REF_MV_BANK |
| static const aom_cdf_prob default_drl1_cdf[DRL_MODE_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(17623) }, { AOM_CDF2(16384) }, { AOM_CDF2(17786) }, |
| { AOM_CDF2(17011) }, { AOM_CDF2(21239) }, { AOM_CDF2(22252) } |
| }; |
| |
| #if CONFIG_REF_MV_BANK |
| static const aom_cdf_prob |
| default_drl2_cdf_refmvbank[DRL_MODE_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(18781) }, { AOM_CDF2(16384) }, { AOM_CDF2(19074) }, |
| { AOM_CDF2(19083) }, { AOM_CDF2(20824) }, { AOM_CDF2(21487) } |
| }; |
| #endif // CONFIG_REF_MV_BANK |
| static const aom_cdf_prob default_drl2_cdf[DRL_MODE_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(18963) }, { AOM_CDF2(16384) }, { AOM_CDF2(19383) }, |
| { AOM_CDF2(19188) }, { AOM_CDF2(20787) }, { AOM_CDF2(21665) } |
| }; |
| #else |
| #if CONFIG_REF_MV_BANK |
| static const aom_cdf_prob |
| default_drl0_cdf_refmvbank[DRL_MODE_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(18923) }, { AOM_CDF2(12861) }, { AOM_CDF2(15472) }, |
| { AOM_CDF2(13796) }, { AOM_CDF2(21474) }, { AOM_CDF2(24491) }, |
| { AOM_CDF2(23482) }, { AOM_CDF2(23176) }, { AOM_CDF2(15143) }, |
| { AOM_CDF2(16155) }, { AOM_CDF2(20465) }, { AOM_CDF2(20185) } |
| }; |
| #endif // CONFIG_REF_MV_BANK |
| static const aom_cdf_prob default_drl0_cdf[DRL_MODE_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(26658) }, { AOM_CDF2(22485) }, { AOM_CDF2(19400) }, |
| { AOM_CDF2(17600) }, { AOM_CDF2(23001) }, { AOM_CDF2(25649) }, |
| { AOM_CDF2(25420) }, { AOM_CDF2(25271) }, { AOM_CDF2(15742) }, |
| { AOM_CDF2(16468) }, { AOM_CDF2(21428) }, { AOM_CDF2(21326) } |
| }; |
| |
| #if CONFIG_REF_MV_BANK |
| static const aom_cdf_prob |
| default_drl1_cdf_refmvbank[DRL_MODE_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(6862) }, { AOM_CDF2(7013) }, { AOM_CDF2(11644) }, |
| { AOM_CDF2(11423) }, { AOM_CDF2(11683) }, { AOM_CDF2(12322) }, |
| { AOM_CDF2(11637) }, { AOM_CDF2(10987) }, { AOM_CDF2(16528) }, |
| { AOM_CDF2(21970) }, { AOM_CDF2(15118) }, { AOM_CDF2(17207) } |
| }; |
| #endif // CONFIG_REF_MV_BANK |
| static const aom_cdf_prob default_drl1_cdf[DRL_MODE_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(19705) }, { AOM_CDF2(15838) }, { AOM_CDF2(18496) }, |
| { AOM_CDF2(18312) }, { AOM_CDF2(15248) }, { AOM_CDF2(16292) }, |
| { AOM_CDF2(15982) }, { AOM_CDF2(16247) }, { AOM_CDF2(17936) }, |
| { AOM_CDF2(22903) }, { AOM_CDF2(16244) }, { AOM_CDF2(19319) } |
| }; |
| |
| #if CONFIG_REF_MV_BANK |
| static const aom_cdf_prob |
| default_drl2_cdf_refmvbank[DRL_MODE_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(14694) }, { AOM_CDF2(13186) }, { AOM_CDF2(14211) }, |
| { AOM_CDF2(12899) }, { AOM_CDF2(12637) }, { AOM_CDF2(12295) }, |
| { AOM_CDF2(14358) }, { AOM_CDF2(13386) }, { AOM_CDF2(12462) }, |
| { AOM_CDF2(13917) }, { AOM_CDF2(14188) }, { AOM_CDF2(13904) } |
| }; |
| #endif // CONFIG_REF_MV_BANK |
| static const aom_cdf_prob default_drl2_cdf[DRL_MODE_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(12992) }, { AOM_CDF2(7518) }, { AOM_CDF2(18309) }, |
| { AOM_CDF2(17119) }, { AOM_CDF2(15195) }, { AOM_CDF2(15214) }, |
| { AOM_CDF2(16777) }, { AOM_CDF2(16998) }, { AOM_CDF2(14311) }, |
| { AOM_CDF2(16618) }, { AOM_CDF2(14980) }, { AOM_CDF2(15963) } |
| }; |
| #endif // CONFIG_C076_INTER_MOD_CTX |
| #if CONFIG_IMPROVED_JMVD |
| static const aom_cdf_prob |
| default_jmvd_scale_mode_cdf[CDF_SIZE(JOINT_NEWMV_SCALE_FACTOR_CNT)] = { |
| AOM_CDF5(22000, 25000, 28000, 30000), |
| }; |
| static const aom_cdf_prob |
| default_jmvd_amvd_scale_mode_cdf[CDF_SIZE(JOINT_AMVD_SCALE_FACTOR_CNT)] = { |
| AOM_CDF3(22000, 27000), |
| }; |
| #endif // CONFIG_IMPROVED_JMVD |
| |
| #if CONFIG_SKIP_MODE_DRL_WITH_REF_IDX |
| static const aom_cdf_prob default_skip_drl_cdf[3][CDF_SIZE(2)] = { |
| { AOM_CDF2(24394) }, |
| { AOM_CDF2(22637) }, |
| { AOM_CDF2(21474) }, |
| }; |
| #endif // CONFIG_SKIP_MODE_DRL_WITH_REF_IDX |
| |
| #if CONFIG_C076_INTER_MOD_CTX |
| #if CONFIG_OPTFLOW_REFINEMENT |
| static const aom_cdf_prob |
| default_use_optflow_cdf[INTER_COMPOUND_MODE_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(20258) }, { AOM_CDF2(16384) }, { AOM_CDF2(15212) }, |
| { AOM_CDF2(17153) }, { AOM_CDF2(13469) }, { AOM_CDF2(15388) } |
| }; |
| static const aom_cdf_prob |
| default_inter_compound_mode_cdf[INTER_COMPOUND_MODE_CONTEXTS][CDF_SIZE( |
| INTER_COMPOUND_REF_TYPES)] = { |
| #else |
| static const aom_cdf_prob |
| default_inter_compound_mode_cdf[INTER_COMPOUND_MODE_CONTEXTS][CDF_SIZE( |
| INTER_COMPOUND_MODES)] = { |
| #endif // CONFIG_OPTFLOW_REFINEMENT |
| #if IMPROVED_AMVD && CONFIG_JOINT_MVD |
| { AOM_CDF7(5669, 13946, 20791, 22484, 30450, 31644) }, |
| { AOM_CDF7(4681, 9362, 14043, 18725, 23406, 28087) }, |
| { AOM_CDF7(16180, 21006, 25627, 26678, 28477, 30443) }, |
| { AOM_CDF7(7854, 15239, 22214, 22438, 26028, 28838) }, |
| { AOM_CDF7(20767, 23511, 26065, 27191, 27788, 29855) }, |
| { AOM_CDF7(11099, 16124, 20537, 20678, 22039, 25779) } |
| #elif CONFIG_JOINT_MVD |
| { AOM_CDF6(8510, 13103, 16330, 17536, 24536) }, |
| { AOM_CDF6(12805, 16117, 19655, 20891, 26891) }, |
| { AOM_CDF6(13700, 16333, 19425, 20305, 26305) }, |
| { AOM_CDF6(13047, 16124, 19840, 20223, 26223) }, |
| { AOM_CDF6(20632, 22637, 24394, 25608, 29608) }, |
| { AOM_CDF6(13703, 16315, 19653, 20122, 26122) }, |
| #else |
| { AOM_CDF5(10510, 17103, 22330, 24536) }, |
| { AOM_CDF5(14805, 20117, 24655, 25891) }, |
| { AOM_CDF5(15700, 20333, 24425, 25305) }, |
| { AOM_CDF5(15047, 20124, 24840, 25223) }, |
| { AOM_CDF5(22632, 25637, 28394, 29608) }, |
| { AOM_CDF5(15703, 20315, 24653, 25122) }, |
| #endif // IMPROVED_AMVD && CONFIG_JOINT_MVD |
| }; |
| #else |
| #if CONFIG_OPTFLOW_REFINEMENT |
| static const aom_cdf_prob |
| default_use_optflow_cdf[INTER_COMPOUND_MODE_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| }; |
| #endif // CONFIG_OPTFLOW_REFINEMENT |
| #if CONFIG_JOINT_MVD |
| #if CONFIG_OPTFLOW_REFINEMENT |
| static const aom_cdf_prob |
| default_inter_compound_mode_cdf[INTER_COMPOUND_MODE_CONTEXTS][CDF_SIZE( |
| INTER_COMPOUND_REF_TYPES)] = { |
| #else |
| static const aom_cdf_prob |
| default_inter_compound_mode_cdf[INTER_COMPOUND_MODE_CONTEXTS][CDF_SIZE( |
| INTER_COMPOUND_MODES)] = { |
| #endif |
| #if IMPROVED_AMVD |
| { AOM_CDF7(8510, 13103, 16330, 17536, 23536, 29536) }, |
| { AOM_CDF7(12805, 16117, 19655, 20891, 24891, 29891) }, |
| { AOM_CDF7(13700, 16333, 19425, 20305, 25305, 29305) }, |
| { AOM_CDF7(13047, 16124, 19840, 20223, 25223, 29223) }, |
| { AOM_CDF7(20632, 22637, 24394, 25608, 28608, 31608) }, |
| { AOM_CDF7(13703, 16315, 19653, 20122, 25122, 30122) }, |
| { AOM_CDF7(20458, 22512, 24304, 25008, 29008, 31008) }, |
| { AOM_CDF7(19368, 22274, 23890, 24364, 28364, 31364) } |
| #else |
| { AOM_CDF6(8510, 13103, 16330, 17536, 24536) }, |
| { AOM_CDF6(12805, 16117, 19655, 20891, 26891) }, |
| { AOM_CDF6(13700, 16333, 19425, 20305, 26305) }, |
| { AOM_CDF6(13047, 16124, 19840, 20223, 26223) }, |
| { AOM_CDF6(20632, 22637, 24394, 25608, 29608) }, |
| { AOM_CDF6(13703, 16315, 19653, 20122, 26122) }, |
| { AOM_CDF6(20458, 22512, 24304, 25008, 30008) }, |
| { AOM_CDF6(19368, 22274, 23890, 24364, 29364) } |
| #endif // IMPROVED_AMVD |
| }; |
| #else |
| #if CONFIG_OPTFLOW_REFINEMENT |
| static const aom_cdf_prob |
| default_inter_compound_mode_cdf[INTER_COMPOUND_MODE_CONTEXTS] |
| [CDF_SIZE(INTER_COMPOUND_REF_TYPES)] = { |
| #else |
| static const aom_cdf_prob |
| default_inter_compound_mode_cdf[INTER_COMPOUND_MODE_CONTEXTS] |
| [CDF_SIZE(INTER_COMPOUND_MODES)] = { |
| #endif |
| { AOM_CDF5(10510, 17103, 22330, 24536) }, |
| { AOM_CDF5(14805, 20117, 24655, 25891) }, |
| { AOM_CDF5(15700, 20333, 24425, 25305) }, |
| { AOM_CDF5(15047, 20124, 24840, 25223) }, |
| { AOM_CDF5(22632, 25637, 28394, 29608) }, |
| { AOM_CDF5(15703, 20315, 24653, 25122) }, |
| { AOM_CDF5(22458, 25512, 28304, 29008) }, |
| { AOM_CDF5(21368, 24274, 26890, 27364) } |
| }; |
| #endif // CONFIG_JOINT_MVD |
| #endif // CONFIG_C076_INTER_MOD_CTX |
| |
| static const aom_cdf_prob default_interintra_cdf[BLOCK_SIZE_GROUPS][CDF_SIZE( |
| 2)] = { { AOM_CDF2(16384) }, |
| { AOM_CDF2(26887) }, |
| { AOM_CDF2(27597) }, |
| { AOM_CDF2(30237) } }; |
| |
| static const aom_cdf_prob |
| default_interintra_mode_cdf[BLOCK_SIZE_GROUPS][CDF_SIZE( |
| INTERINTRA_MODES)] = { { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(1875, 11082, 27332) }, |
| { AOM_CDF4(2473, 9996, 26388) }, |
| { AOM_CDF4(4238, 11537, 25926) } }; |
| |
| static const aom_cdf_prob |
| default_wedge_interintra_cdf[BLOCK_SIZES_ALL][CDF_SIZE(2)] = { |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(20036) }, { AOM_CDF2(24957) }, { AOM_CDF2(26704) }, |
| { AOM_CDF2(27530) }, { AOM_CDF2(29564) }, { AOM_CDF2(29444) }, |
| { AOM_CDF2(26872) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) } |
| }; |
| |
| static const aom_cdf_prob default_compound_type_cdf[BLOCK_SIZES_ALL][CDF_SIZE( |
| MASKED_COMPOUND_TYPES)] = { |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(23431) }, { AOM_CDF2(13171) }, { AOM_CDF2(11470) }, |
| { AOM_CDF2(9770) }, { AOM_CDF2(9100) }, { AOM_CDF2(8233) }, |
| { AOM_CDF2(6172) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(11820) }, { AOM_CDF2(7701) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) } |
| }; |
| |
| #if CONFIG_WEDGE_MOD_EXT |
| /*wedge_angle_dir is first decoded. Depending on the wedge angle_dir, the |
| * wedge_angle is decoded. Depending on the wedge_angle, the wedge_dist is |
| * decoded.*/ |
| static const aom_cdf_prob |
| default_wedge_angle_dir_cdf[BLOCK_SIZES_ALL][CDF_SIZE(2)] = { |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| }; |
| static const aom_cdf_prob |
| default_wedge_angle_0_cdf[BLOCK_SIZES_ALL][CDF_SIZE(H_WEDGE_ANGLES)] = { |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| }; |
| static const aom_cdf_prob |
| default_wedge_angle_1_cdf[BLOCK_SIZES_ALL][CDF_SIZE(H_WEDGE_ANGLES)] = { |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| { AOM_CDF10(3277, 6554, 9830, 13107, 16384, 19661, 22938, 26214, 29491) }, |
| }; |
| static const aom_cdf_prob |
| default_wedge_dist_cdf[BLOCK_SIZES_ALL][CDF_SIZE(NUM_WEDGE_DIST)] = { |
| { AOM_CDF4(8192, 16384, 24576) }, { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, { AOM_CDF4(8192, 16384, 24576) }, |
| { AOM_CDF4(8192, 16384, 24576) }, { AOM_CDF4(8192, 16384, 24576) } |
| }; |
| static const aom_cdf_prob |
| default_wedge_dist_cdf2[BLOCK_SIZES_ALL][CDF_SIZE(NUM_WEDGE_DIST - 1)] = { |
| { AOM_CDF3(10923, 21845) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(10923, 21845) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(10923, 21845) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(10923, 21845) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(10923, 21845) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(10923, 21845) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(10923, 21845) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(10923, 21845) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(10923, 21845) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(10923, 21845) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(10923, 21845) }, { AOM_CDF3(10923, 21845) } |
| }; |
| #else |
| static const aom_cdf_prob default_wedge_idx_cdf[BLOCK_SIZES_ALL][CDF_SIZE( |
| 16)] = { { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, |
| 18432, 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, |
| 18432, 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, |
| 18432, 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(2438, 4440, 6599, 8663, 11005, 12874, 15751, 18094, |
| 20359, 22362, 24127, 25702, 27752, 29450, 31171) }, |
| { AOM_CDF16(806, 3266, 6005, 6738, 7218, 7367, 7771, 14588, 16323, |
| 17367, 18452, 19422, 22839, 26127, 29629) }, |
| { AOM_CDF16(2779, 3738, 4683, 7213, 7775, 8017, 8655, 14357, 17939, |
| 21332, 24520, 27470, 29456, 30529, 31656) }, |
| { AOM_CDF16(1684, 3625, 5675, 7108, 9302, 11274, 14429, 17144, |
| 19163, 20961, 22884, 24471, 26719, 28714, 30877) }, |
| { AOM_CDF16(1142, 3491, 6277, 7314, 8089, 8355, 9023, 13624, 15369, |
| 16730, 18114, 19313, 22521, 26012, 29550) }, |
| { AOM_CDF16(2742, 4195, 5727, 8035, 8980, 9336, 10146, 14124, |
| 17270, 20533, 23434, 25972, 27944, 29570, 31416) }, |
| { AOM_CDF16(1727, 3948, 6101, 7796, 9841, 12344, 15766, 18944, |
| 20638, 22038, 23963, 25311, 26988, 28766, 31012) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, |
| 18432, 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, |
| 18432, 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, |
| 18432, 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, |
| 18432, 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, |
| 18432, 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, |
| 18432, 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, |
| 18432, 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, |
| 18432, 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(154, 987, 1925, 2051, 2088, 2111, 2151, 23033, 23703, |
| 24284, 24985, 25684, 27259, 28883, 30911) }, |
| { AOM_CDF16(1135, 1322, 1493, 2635, 2696, 2737, 2770, 21016, 22935, |
| 25057, 27251, 29173, 30089, 30960, 31933) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, |
| 18432, 20480, 22528, 24576, 26624, 28672, 30720) }, |
| { AOM_CDF16(2048, 4096, 6144, 8192, 10240, 12288, 14336, 16384, |
| 18432, 20480, 22528, 24576, 26624, 28672, 30720) } }; |
| #endif // CONFIG_WEDGE_MOD_EXT |
| |
| #if CONFIG_EXTENDED_WARP_PREDICTION |
| static const aom_cdf_prob default_obmc_cdf[BLOCK_SIZES_ALL][CDF_SIZE(2)] = { |
| { AOM_CDF2(21846) }, { AOM_CDF2(21846) }, { AOM_CDF2(21846) }, |
| { AOM_CDF2(15659) }, { AOM_CDF2(12741) }, { AOM_CDF2(12631) }, |
| { AOM_CDF2(25377) }, { AOM_CDF2(14285) }, { AOM_CDF2(20066) }, |
| { AOM_CDF2(29912) }, { AOM_CDF2(25066) }, { AOM_CDF2(27617) }, |
| { AOM_CDF2(31583) }, { AOM_CDF2(31269) }, { AOM_CDF2(32311) }, |
| { AOM_CDF2(32717) }, { AOM_CDF2(21846) }, { AOM_CDF2(21846) }, |
| { AOM_CDF2(30177) }, { AOM_CDF2(28425) }, { AOM_CDF2(30147) }, |
| { AOM_CDF2(31307) } |
| }; |
| |
| static const aom_cdf_prob default_warped_causal_cdf[BLOCK_SIZES_ALL][CDF_SIZE( |
| 2)] = { { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(21827) }, { AOM_CDF2(20801) }, { AOM_CDF2(22822) }, |
| { AOM_CDF2(28283) }, { AOM_CDF2(17490) }, { AOM_CDF2(22156) }, |
| { AOM_CDF2(29137) }, { AOM_CDF2(26381) }, { AOM_CDF2(25945) }, |
| { AOM_CDF2(29190) }, { AOM_CDF2(30434) }, { AOM_CDF2(30786) }, |
| { AOM_CDF2(31582) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(30177) }, { AOM_CDF2(30093) }, { AOM_CDF2(31776) }, |
| { AOM_CDF2(31514) } }; |
| #if CONFIG_WARPMV |
| static const aom_cdf_prob |
| default_warped_causal_warpmv_cdf[BLOCK_SIZES_ALL][CDF_SIZE(2)] = { |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(21827) }, { AOM_CDF2(20801) }, { AOM_CDF2(22822) }, |
| { AOM_CDF2(28283) }, { AOM_CDF2(17490) }, { AOM_CDF2(22156) }, |
| { AOM_CDF2(29137) }, { AOM_CDF2(26381) }, { AOM_CDF2(25945) }, |
| { AOM_CDF2(29190) }, { AOM_CDF2(30434) }, { AOM_CDF2(30786) }, |
| { AOM_CDF2(31582) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(30177) }, { AOM_CDF2(30093) }, { AOM_CDF2(31776) }, |
| { AOM_CDF2(31514) } |
| }; |
| #endif // CONFIG_WARPMV |
| |
| static const aom_cdf_prob default_warp_delta_cdf[BLOCK_SIZES_ALL][CDF_SIZE( |
| 2)] = { { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(4015) }, { AOM_CDF2(5407) }, { AOM_CDF2(4988) }, |
| { AOM_CDF2(9806) }, { AOM_CDF2(7405) }, { AOM_CDF2(7949) }, |
| { AOM_CDF2(14870) }, { AOM_CDF2(18438) }, { AOM_CDF2(16459) }, |
| { AOM_CDF2(19468) }, { AOM_CDF2(24415) }, { AOM_CDF2(22864) }, |
| { AOM_CDF2(23527) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(19610) }, { AOM_CDF2(16215) }, { AOM_CDF2(25420) }, |
| { AOM_CDF2(25105) } }; |
| |
| #if CONFIG_WARP_REF_LIST |
| static const aom_cdf_prob default_warp_ref_idx0_cdf[WARP_REF_CONTEXTS][CDF_SIZE( |
| 2)] = { { AOM_CDF2(15906) } }; |
| static const aom_cdf_prob default_warp_ref_idx1_cdf[WARP_REF_CONTEXTS][CDF_SIZE( |
| 2)] = { { AOM_CDF2(15903) } }; |
| static const aom_cdf_prob default_warp_ref_idx2_cdf[WARP_REF_CONTEXTS][CDF_SIZE( |
| 2)] = { { AOM_CDF2(18242) } }; |
| #endif // CONFIG_WARP_REF_LIST |
| static const aom_cdf_prob |
| default_warp_delta_param_cdf[2][CDF_SIZE(WARP_DELTA_NUM_SYMBOLS)] = { |
| { AOM_CDF15(2185, 4369, 6554, 8738, 10923, 13107, 15292, 17476, 19661, |
| 21845, 24030, 26214, 28399, 30583) }, |
| { AOM_CDF15(2185, 4369, 6554, 8738, 10923, 13107, 15292, 17476, 19661, |
| 21845, 24030, 26214, 28399, 30583) } |
| }; |
| |
| static const aom_cdf_prob |
| default_warp_extend_cdf[WARP_EXTEND_CTXS1][WARP_EXTEND_CTXS2] |
| [CDF_SIZE(2)] = { { { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) } }, |
| { { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) } }, |
| { { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) } }, |
| { { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) } }, |
| { { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) } } }; |
| #else |
| static const aom_cdf_prob default_motion_mode_cdf[BLOCK_SIZES_ALL][CDF_SIZE( |
| MOTION_MODES)] = { { AOM_CDF3(10923, 21845) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(10923, 21845) }, { AOM_CDF3(7651, 24760) }, |
| { AOM_CDF3(4738, 24765) }, { AOM_CDF3(5391, 25528) }, |
| { AOM_CDF3(19419, 26810) }, { AOM_CDF3(5123, 23606) }, |
| { AOM_CDF3(11606, 24308) }, { AOM_CDF3(26260, 29116) }, |
| { AOM_CDF3(20360, 28062) }, { AOM_CDF3(21679, 26830) }, |
| { AOM_CDF3(29516, 30701) }, { AOM_CDF3(28898, 30397) }, |
| { AOM_CDF3(30878, 31335) }, { AOM_CDF3(32507, 32558) }, |
| { AOM_CDF3(10923, 21845) }, { AOM_CDF3(10923, 21845) }, |
| { AOM_CDF3(28799, 31390) }, { AOM_CDF3(26431, 30774) }, |
| { AOM_CDF3(28973, 31594) }, { AOM_CDF3(29742, 31203) } }; |
| |
| static const aom_cdf_prob default_obmc_cdf[BLOCK_SIZES_ALL][CDF_SIZE(2)] = { |
| { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(10437) }, { AOM_CDF2(9371) }, { AOM_CDF2(9301) }, |
| { AOM_CDF2(17432) }, { AOM_CDF2(14423) }, { AOM_CDF2(15142) }, |
| { AOM_CDF2(25817) }, { AOM_CDF2(22823) }, { AOM_CDF2(22083) }, |
| { AOM_CDF2(30128) }, { AOM_CDF2(31014) }, { AOM_CDF2(31560) }, |
| { AOM_CDF2(32638) }, { AOM_CDF2(16384) }, { AOM_CDF2(16384) }, |
| { AOM_CDF2(23664) }, { AOM_CDF2(20901) }, { AOM_CDF2(24008) }, |
| { AOM_CDF2(26879) } |
| }; |
| #endif // CONFIG_EXTENDED_WARP_PREDICTION |
| |
| #if CONFIG_BAWP |
| static const aom_cdf_prob default_bawp_cdf[CDF_SIZE(2)] = { AOM_CDF2(23664) }; |
| #endif // CONFIG_BAWP |
| |
| #if CONFIG_CONTEXT_DERIVATION |
| #if CONFIG_NEW_CONTEXT_MODELING |
| static const aom_cdf_prob default_intra_inter_cdf |
| [INTRA_INTER_SKIP_TXFM_CONTEXTS][INTRA_INTER_CONTEXTS][CDF_SIZE(2)] = { |
| { { AOM_CDF2(2981) }, |
| { AOM_CDF2(16980) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(29992) } }, |
| { { AOM_CDF2(4) }, { AOM_CDF2(4) }, { AOM_CDF2(16384) }, { AOM_CDF2(4) } } |
| }; |
| #else |
| static const aom_cdf_prob |
| default_intra_inter_cdf[INTRA_INTER_SKIP_TXFM_CONTEXTS] |
| [INTRA_INTER_CONTEXTS][CDF_SIZE(2)] = { |
| { { AOM_CDF2(806) }, |
| { AOM_CDF2(16662) }, |
| { AOM_CDF2(20186) }, |
| { AOM_CDF2(26538) } }, |
| { { AOM_CDF2(806) }, |
| { AOM_CDF2(16662) }, |
| { AOM_CDF2(20186) }, |
| { AOM_CDF2(26538) } }, |
| }; |
| #endif // CONFIG_NEW_CONTEXT_MODELING |
| #else |
| static const aom_cdf_prob default_intra_inter_cdf[INTRA_INTER_CONTEXTS] |
| [CDF_SIZE(2)] = { |
| { AOM_CDF2(806) }, |
| { AOM_CDF2(16662) }, |
| { AOM_CDF2(20186) }, |
| { AOM_CDF2(26538) } |
| }; |
| #endif // CONFIG_CONTEXT_DERIVATION |
| |
| #if CONFIG_TIP |
| static const aom_cdf_prob default_tip_cdf[TIP_CONTEXTS][CDF_SIZE(2)] = { |
| { AOM_CDF2(23040) }, { AOM_CDF2(15360) }, { AOM_CDF2(10240) } |
| }; |
| #endif // CONFIG_TIP |
| |
| #if CONFIG_NEW_CONTEXT_MODELING |
| static const aom_cdf_prob default_comp_inter_cdf[COMP_INTER_CONTEXTS][CDF_SIZE( |
| 2)] = { { AOM_CDF2(28501) }, |
| { AOM_CDF2(26110) }, |
| { AOM_CDF2(16161) }, |
| { AOM_CDF2(13261) }, |
| { AOM_CDF2(4456) } }; |
| #else |
| static const aom_cdf_prob default_comp_inter_cdf[COMP_INTER_CONTEXTS][CDF_SIZE( |
| 2)] = { { AOM_CDF2(26828) }, |
| { AOM_CDF2(24035) }, |
| { AOM_CDF2(12031) }, |
| { AOM_CDF2(10640) }, |
| { AOM_CDF2(2901) } }; |
| #endif // CONFIG_NEW_CONTEXT_MODELING |
| |
| #if CONFIG_NEW_CONTEXT_MODELING |
| static const aom_cdf_prob |
| default_single_ref_cdf[REF_CONTEXTS][INTER_REFS_PER_FRAME - 1] |
| [CDF_SIZE(2)] = { { { AOM_CDF2(25719) }, |
| { AOM_CDF2(27480) }, |
| { AOM_CDF2(29046) }, |
| { AOM_CDF2(28671) }, |
| { AOM_CDF2(28017) }, |
| { AOM_CDF2(28196) } }, |
| { { AOM_CDF2(14843) }, |
| { AOM_CDF2(16287) }, |
| { AOM_CDF2(19737) }, |
| { AOM_CDF2(17261) }, |
| { AOM_CDF2(16079) }, |
| { AOM_CDF2(10556) } }, |
| { { AOM_CDF2(3646) }, |
| { AOM_CDF2(4988) }, |
| { AOM_CDF2(6556) }, |
| { AOM_CDF2(4514) }, |
| { AOM_CDF2(4734) }, |
| { AOM_CDF2(1722) } } }; |
| |
| static const aom_cdf_prob |
| #if CONFIG_ALLOW_SAME_REF_COMPOUND |
| default_comp_ref0_cdf[REF_CONTEXTS][INTER_REFS_PER_FRAME - 1] |
| #else |
| default_comp_ref0_cdf[REF_CONTEXTS][INTER_REFS_PER_FRAME - 2] |
| #endif // CONFIG_ALLOW_SAME_REF_COMPOUND |
| [CDF_SIZE(2)] = { { { AOM_CDF2(10451) }, |
| { AOM_CDF2(18507) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| #if CONFIG_ALLOW_SAME_REF_COMPOUND |
| { AOM_CDF2(23235) }, |
| #endif // CONFIG_ALLOW_SAME_REF_COMPOUND |
| { AOM_CDF2(16384) } }, |
| { { AOM_CDF2(1381) }, |
| { AOM_CDF2(5629) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| #if CONFIG_ALLOW_SAME_REF_COMPOUND |
| { AOM_CDF2(29626) }, |
| #endif // CONFIG_ALLOW_SAME_REF_COMPOUND |
| { AOM_CDF2(16384) } }, |
| { { AOM_CDF2(1328) }, |
| { AOM_CDF2(4223) }, |
| { AOM_CDF2(16384) }, |
| { AOM_CDF2(16384) }, |
| #if CONFIG_ALLOW_SAME_REF_COMPOUND |
| { AOM_CDF2(11282) }, |
| #endif // CONFIG_ALLOW_SAME_REF_COMPOUND |
| { AOM_CDF2(16384) } } }; |
| |
| static const aom_cdf_prob default_comp_ref1_cdf[REF_CONTEXTS][COMPREF_BIT_TYPES] |
| #if CONFIG_ALLOW_SAME_REF_COMPOUND |
| [INTER_REFS_PER_FRAME - 1] |
| #else |
| [INTER_REFS_PER_FRAME - 2] |
| #endif // CONFIG_ALLOW_SAME_REF_COMPOUND |
| [CDF_SIZE(2)] = { |
| { { { AOM_CDF2(27841) }, |
| #if CONFIG_ALLOW_SAME_REF_COMPOUND |
| { AOM_CDF2(901) }, |
| #endif // CONFIG_ALLOW_SAME_REF_COMPOUND |
| { AOM_CDF2(29341) }, |
| { AOM_CDF2(30001) }, |
| { AOM_CDF2(29029) }, |
| { AOM_CDF2(27250) } }, |
| { { AOM_CDF2(20857) }, |
| #if CONFIG_ALLOW_SAME_REF_COMPOUND |
| { AOM_CDF2(1294) }, |
| #endif // CONFIG_ALLOW_SAME_REF_COMPOUND |
| { AOM_CDF2(25943) }, |
| |