From 5b88d29dc0f5e040da0dd41595398be73ac4dbeb Mon Sep 17 00:00:00 2001 From: zhongcong Date: Tue, 16 Apr 2013 19:30:21 +0800 Subject: [PATCH] codecparser: h264: modify default Quantizer matrices --- gst-libs/gst/codecparsers/gsth264parser.c | 37 +++++++++++++++++++---------- 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/gst-libs/gst/codecparsers/gsth264parser.c b/gst-libs/gst/codecparsers/gsth264parser.c index 0da1006..4a071a7 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.c +++ b/gst-libs/gst/codecparsers/gsth264parser.c @@ -95,29 +95,42 @@ GST_DEBUG_CATEGORY (h264_parser_debug); /**** Default scaling_lists according to Table 7-2 *****/ static const guint8 default_4x4_intra[16] = { - 6, 13, 13, 20, 20, 20, 28, 28, 28, 28, 32, 32, - 32, 37, 37, 42 + 6, 13, 20, 28, + 13, 20, 28, 32, + 20, 28, 32, 37, + 28, 32, 37, 42 }; static const guint8 default_4x4_inter[16] = { - 10, 14, 14, 20, 20, 20, 24, 24, 24, 24, 27, 27, - 27, 30, 30, 34 + 10, 14, 20, 24, + 14, 20, 24, 27, + 20, 24, 27, 30, + 24, 27, 30, 34 }; static const guint8 default_8x8_intra[64] = { - 6, 10, 10, 13, 11, 13, 16, 16, 16, 16, 18, 18, - 18, 18, 18, 23, 23, 23, 23, 23, 23, 25, 25, 25, 25, 25, 25, 25, 27, 27, 27, - 27, 27, 27, 27, 27, 29, 29, 29, 29, 29, 29, 29, 31, 31, 31, 31, 31, 31, 33, - 33, 33, 33, 33, 36, 36, 36, 36, 38, 38, 38, 40, 40, 42 + 6, 10, 13, 16, 18, 23, 25, 27, + 10, 11, 16, 18, 23, 25, 27, 29, + 13, 16, 18, 23, 25, 27, 29, 31, + 16, 18, 23, 25, 27, 29, 31, 33, + 18, 23, 25, 27, 29, 31, 33, 36, + 23, 25, 27, 29, 31, 33, 36, 38, + 25, 27, 29, 31, 33, 36, 38, 40, + 27, 29, 31, 33, 36, 38, 40, 42 }; static const guint8 default_8x8_inter[64] = { - 9, 13, 13, 15, 13, 15, 17, 17, 17, 17, 19, 19, - 19, 19, 19, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 24, 24, 24, - 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 27, 27, 27, 27, 27, 27, 28, - 28, 28, 28, 28, 30, 30, 30, 30, 32, 32, 32, 33, 33, 35 + 9, 13, 15, 17, 19, 21, 22, 24, + 13, 13, 17, 19, 21, 22, 24, 25, + 15, 17, 19, 21, 22, 24, 25, 27, + 17, 19, 21, 22, 24, 25, 27, 28, + 19, 21, 22, 24, 25, 27, 28, 30, + 21, 22, 24, 25, 27, 28, 30, 32, + 22, 24, 25, 27, 28, 30, 32, 33, + 24, 25, 27, 28, 30, 32, 33, 35 }; + static const guint8 zigzag_8x8[64] = { 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, -- 1.7.9.5