From 2c833bd40e1db873d32e4f9c2fe265de43c5c211 Mon Sep 17 00:00:00 2001 From: He Junyan Date: Mon, 1 Apr 2024 23:54:04 +0800 Subject: [PATCH] va: h264enc: Make the level table aligned Part-of: --- .../gst-plugins-bad/sys/va/gstvah264enc.c | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c b/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c index 5a531ce747..0233d6dd01 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c @@ -309,27 +309,27 @@ struct _GstVaH264LevelLimits /* Table A-1 - Level limits */ /* *INDENT-OFF* */ static const GstVaH264LevelLimits _va_h264_level_limits[] = { - /* level idc MaxMBPS MaxFS MaxDpbMbs MaxBR MaxCPB MinCr */ + /* level idc MaxMBPS MaxFS MaxDpbMbs MaxBR MaxCPB MinCr */ { "1", GST_H264_LEVEL_L1, 1485, 99, 396, 64, 175, 2 }, - { "1b", GST_H264_LEVEL_L1B, 1485, 99, 396, 128, 350, 2 }, - { "1.1", GST_H264_LEVEL_L1_1, 3000, 396, 900, 192, 500, 2 }, - { "1.2", GST_H264_LEVEL_L1_2, 6000, 396, 2376, 384, 1000, 2 }, - { "1.3", GST_H264_LEVEL_L1_3, 11880, 396, 2376, 768, 2000, 2 }, + { "1b", GST_H264_LEVEL_L1B, 1485, 99, 396, 128, 350, 2 }, + { "1.1", GST_H264_LEVEL_L1_1, 3000, 396, 900, 192, 500, 2 }, + { "1.2", GST_H264_LEVEL_L1_2, 6000, 396, 2376, 384, 1000, 2 }, + { "1.3", GST_H264_LEVEL_L1_3, 11880, 396, 2376, 768, 2000, 2 }, { "2", GST_H264_LEVEL_L2, 11880, 396, 2376, 2000, 2000, 2 }, - { "2.1", GST_H264_LEVEL_L2_1, 19800, 792, 4752, 4000, 4000, 2 }, - { "2.2", GST_H264_LEVEL_L2_2, 20250, 1620, 8100, 4000, 4000, 2 }, + { "2.1", GST_H264_LEVEL_L2_1, 19800, 792, 4752, 4000, 4000, 2 }, + { "2.2", GST_H264_LEVEL_L2_2, 20250, 1620, 8100, 4000, 4000, 2 }, { "3", GST_H264_LEVEL_L3, 40500, 1620, 8100, 10000, 10000, 2 }, - { "3.1", GST_H264_LEVEL_L3_1, 108000, 3600, 18000, 14000, 14000, 4 }, - { "3.2", GST_H264_LEVEL_L3_2, 216000, 5120, 20480, 20000, 20000, 4 }, + { "3.1", GST_H264_LEVEL_L3_1, 108000, 3600, 18000, 14000, 14000, 4 }, + { "3.2", GST_H264_LEVEL_L3_2, 216000, 5120, 20480, 20000, 20000, 4 }, { "4", GST_H264_LEVEL_L4, 245760, 8192, 32768, 20000, 25000, 4 }, - { "4.1", GST_H264_LEVEL_L4_1, 245760, 8192, 32768, 50000, 62500, 2 }, - { "4.2", GST_H264_LEVEL_L4_2, 522240, 8704, 34816, 50000, 62500, 2 }, + { "4.1", GST_H264_LEVEL_L4_1, 245760, 8192, 32768, 50000, 62500, 2 }, + { "4.2", GST_H264_LEVEL_L4_2, 522240, 8704, 34816, 50000, 62500, 2 }, { "5", GST_H264_LEVEL_L5, 589824, 22080, 110400, 135000, 135000, 2 }, - { "5.1", GST_H264_LEVEL_L5_1, 983040, 36864, 184320, 240000, 240000, 2 }, - { "5.2", GST_H264_LEVEL_L5_2, 2073600, 36864, 184320, 240000, 240000, 2 }, + { "5.1", GST_H264_LEVEL_L5_1, 983040, 36864, 184320, 240000, 240000, 2 }, + { "5.2", GST_H264_LEVEL_L5_2, 2073600, 36864, 184320, 240000, 240000, 2 }, { "6", GST_H264_LEVEL_L6, 4177920, 139264, 696320, 240000, 240000, 2 }, - { "6.1", GST_H264_LEVEL_L6_1, 8355840, 139264, 696320, 480000, 480000, 2 }, - { "6.2", GST_H264_LEVEL_L6_2, 16711680, 139264, 696320, 800000, 800000, 2 }, + { "6.1", GST_H264_LEVEL_L6_1, 8355840, 139264, 696320, 480000, 480000, 2 }, + { "6.2", GST_H264_LEVEL_L6_2, 16711680, 139264, 696320, 800000, 800000, 2 }, }; /* *INDENT-ON* */