Re: [PATCH 0/3] HDR10 static metadata

From: Stanimir Varbanov
Date: Mon Nov 09 2020 - 18:44:59 EST




On 11/9/20 9:53 PM, Nicolas Dufresne wrote:
> Le lundi 09 novembre 2020 à 19:31 +0200, Stanimir Varbanov a écrit :
>> Hello,
>>
>> This patchset adds two HDR10 HEVC v4l2 controls for Content Light Level
>> and Mastering display colour volume plus implenmentation in Venus encoder
>> driver.
>>
>> Comments are welcome!
>
> It is not a formal review, but I did walked through the new API and
> everything looks fine to me. One question though, are you aware that
> the H.264/AVC equivalent is identical ? What is you plan for that ?

Thanks for the question, I haven't thought for avc, yet.

I guess we have few options:

1. introduce hdr10-ctrls.h, common control IDs
2. duplicate structures and control IDs in hevc/h264-ctrls.h
3. common structures and separate control IDs for avc and hevc
4. another option?

I'd prefer option 1. We could extend later option 1 with hdr10+.

>
>>
>> regards,
>> Stan
>>
>> Stanimir Varbanov (3):
>>   v4l: Add HDR10 HEVC static metadata controls
>>   docs: media: Document CLL and Mastering display
>>   venus: venc: Add support for CLL and Mastering display controls
>>
>>  .../media/v4l/ext-ctrls-codec.rst | 61 +++++++++++++++++++
>>  drivers/media/platform/qcom/venus/core.h | 3 +
>>  drivers/media/platform/qcom/venus/hfi_cmds.c | 8 +++
>>  .../media/platform/qcom/venus/hfi_helper.h | 20 ++++++
>>  drivers/media/platform/qcom/venus/venc.c | 29 +++++++++
>>  .../media/platform/qcom/venus/venc_ctrls.c | 16 ++++-
>>  drivers/media/v4l2-core/v4l2-ctrls.c | 61 +++++++++++++++++++
>>  include/media/hevc-ctrls.h | 41 +++++++++++++
>>  include/media/v4l2-ctrls.h | 2 +
>>  9 files changed, 240 insertions(+), 1 deletion(-)
>>
>

--
regards,
Stan