media_module: add debug level limit for hdr info

Change-Id: I6c9f1bc8f66366b1859230886978409880c9b621
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
This commit is contained in:
Hui Zhang
2018-10-08 16:51:10 +08:00
committed by Dongjin Kim
parent 5f4c8b5445
commit 63b5b63e7f

View File

@@ -6178,8 +6178,9 @@ static int parse_sei(struct hevc_state_s *hevc,
hevc->luminance[1]);*/
break;
case SEI_ContentLightLevel:
hevc_print(hevc, 0,
"sei type: max content light level %d, size %d\n",
if (get_dbg_flag(hevc) & H265_DEBUG_PRINT_SEI)
hevc_print(hevc, 0,
"sei type: max content light level %d, size %d\n",
payload_type, payload_size);
/* content_light_level */
p_sei = p;
@@ -6191,8 +6192,9 @@ static int parse_sei(struct hevc_state_s *hevc,
p_sei += 2;
hevc->sei_present_flag |=
SEI_CONTENT_LIGHT_LEVEL_MASK;
hevc_print(hevc, 0,
"\tmax cll = %04x, max_pa_cll = %04x\n",
if (get_dbg_flag(hevc) & H265_DEBUG_PRINT_SEI)
hevc_print(hevc, 0,
"\tmax cll = %04x, max_pa_cll = %04x\n",
hevc->content_light_level[0],
hevc->content_light_level[1]);
break;