From: John Koleszar Date: Wed, 23 Mar 2011 04:27:52 +0000 (-0400) Subject: Merge remote branch 'internal/upstream' into HEAD X-Git-Tag: v1.3.0~1217^2~380^2~345 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51bcf621c174a5970a0f455572e3e3cf28cab5dd;p=libvpx Merge remote branch 'internal/upstream' into HEAD Conflicts: vp8/decoder/decodemv.c vp8/decoder/onyxd_if.c vp8/encoder/ratectrl.c vp8/encoder/rdopt.c Change-Id: Ia1c1c5e589f4200822d12378c7749ba62bd17ae2 --- 51bcf621c174a5970a0f455572e3e3cf28cab5dd diff --cc vp8/decoder/decodemv.c index d67cb54fa,e5830e88b..286659536 --- a/vp8/decoder/decodemv.c +++ b/vp8/decoder/decodemv.c @@@ -245,7 -238,8 +238,7 @@@ static const unsigned char mbsplit_fill - void vp8_mb_mode_mv_init(VP8D_COMP *pbi) - + static void mb_mode_mv_init(VP8D_COMP *pbi) { vp8_reader *const bc = & pbi->bc; MV_CONTEXT *const mvc = pbi->common.fc.mvc; diff --cc vp8/decoder/onyxd_if.c index 0fc49ac79,ef2e00d61..4225798f4 --- a/vp8/decoder/onyxd_if.c +++ b/vp8/decoder/onyxd_if.c @@@ -462,14 -395,6 +398,8 @@@ int vp8dx_receive_compressed_data(VP8D_ vp8_yv12_extend_frame_borders_ptr(cm->frame_to_show); } - #if 0 - /* DEBUG code */ - /*vp8_recon_write_yuv_frame("recon.yuv", cm->frame_to_show);*/ + vp8_recon_write_yuv_frame("recon.yuv", cm->frame_to_show); + - if (cm->current_video_frame <= 5) - write_dx_frame_to_file(cm->frame_to_show, cm->current_video_frame); - #endif vp8_clear_system_state(); diff --cc vp8/encoder/ratectrl.c index a2f0e7a26,e2c6327ef..9c3dcdb27 --- a/vp8/encoder/ratectrl.c +++ b/vp8/encoder/ratectrl.c @@@ -90,54 -89,10 +90,54 @@@ const int vp8_bits_per_mb[2][QINDEX_RAN 11445, 11220, 11003, 10795, 10594, 10401, 10215, 10035, } }; +#else +const int vp8_bits_per_mb[2][QINDEX_RANGE] = +{ + // (Updated DEC 2010) Baseline estimate of Bits Per MB at each Q: + // 4500000/Qintra + { + 4500000,3600000,3000000,2571428,2250000,2000000,1800000,1636363, + 1500000,1384615,1285714,1200000,1125000,1058823,1000000, 947368, + 900000, 818181, 750000, 692307, 642857, 600000, 562500, 529411, + 500000, 473684, 450000, 428571, 409090, 391304, 375000, 352941, + 333333, 315789, 300000, 285714, 272727, 260869, 250000, 236842, + 225000, 214285, 204545, 195652, 187500, 180000, 171428, 163636, + 156521, 150000, 144000, 138461, 133333, 128571, 123287, 118421, + 113924, 109756, 105882, 102272, 98901, 95744, 92783, 90000, + 87378, 84905, 82568, 80357, 77586, 75000, 72580, 70312, + 68181, 66176, 64285, 62500, 60810, 59210, 57692, 56250, + 54545, 52941, 51428, 50000, 48648, 47368, 45918, 44554, + 43269, 42056, 40909, 39647, 38461, 37344, 36290, 35294, + 34351, 33333, 32374, 31468, 30612, 29801, 28938, 28125, + 27355, 26627, 25862, 25139, 24456, 23809, 23195, 22613, + 21951, 21327, 20737, 20179, 19650, 19067, 18518, 18000, + 17441, 16917, 16423, 15957, 15410, 14900, 14376, 13846, + }, + //2850000/Qinter + { + 2850000,2280000,1900000,1628571,1425000,1266666,1140000,1036363, + 950000, 876923, 814285, 760000, 712500, 670588, 633333, 600000, + 570000, 518181, 475000, 438461, 407142, 380000, 356250, 335294, + 316666, 300000, 285000, 271428, 259090, 247826, 237500, 223529, + 211111, 200000, 190000, 180952, 172727, 165217, 158333, 150000, + 142500, 135714, 129545, 123913, 118750, 114000, 108571, 103636, + 99130, 95000, 91200, 87692, 84444, 81428, 78082, 75000, + 72151, 69512, 67058, 64772, 62637, 60638, 58762, 57000, + 55339, 53773, 52293, 50892, 49137, 47500, 45967, 44531, + 43181, 41911, 40714, 39583, 38513, 37500, 36538, 35625, + 34545, 33529, 32571, 31666, 30810, 30000, 29081, 28217, + 27403, 26635, 25909, 25110, 24358, 23651, 22983, 22352, + 21755, 21111, 20503, 19930, 19387, 18874, 18327, 17812, + 17325, 16863, 16379, 15921, 15489, 15079, 14690, 14321, + 13902, 13507, 13133, 12780, 12445, 12076, 11728, 11400, + 11046, 10714, 10401, 10106, 9760, 9437, 9105, 8769, + } + }; + #endif - const int vp8_kf_boost_qadjustment[QINDEX_RANGE] = + static const int kf_boost_qadjustment[QINDEX_RANGE] = -{ - 128, 129, 130, 131, 132, 133, 134, 135, + { + 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, diff --cc vp8/encoder/rdopt.c index 83562b4ec,a125cc481..6d9e33a69 --- a/vp8/encoder/rdopt.c +++ b/vp8/encoder/rdopt.c @@@ -1061,17 -1000,6 +1061,10 @@@ static unsigned int vp8_encode_inter_mb return distortion; } +#if CONFIG_EXTEND_QRANGE + d += ENCODEMB_INVOKE(rtcd, berr)(mb_y2->coeff, x_y2->dqcoeff)<<2; +#else +#endif - unsigned char vp8_mbsplit_offset2[4][16] = { - { 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, - { 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, - { 0, 2, 8, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, - { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15} - }; - static const unsigned int segmentation_to_sseshift[4] = {3, 3, 2, 0};