[FFmpeg-devel] [PATCH v4 2/2] avfilter: Add tonemap vaapi filter
Carl Eugen Hoyos
ceffmpeg at gmail.com
Wed Oct 23 09:26:49 EEST 2019
Am 23.10.2019 um 06:48 schrieb Xiang, Haihao <haihao.xiang at intel.com>:
>>> On 11/09/2019 06:39, Zachary Zhou wrote:
>>> It supports ICL platform.
>>> H2H (HDR to HDR): P010 -> A2R10G10B10
>>> H2S (HDR to SDR): P010 -> ARGB
>>
>> The input format doesn't have any alpha so the output shouldn't either. Not
>> sure what the first case wants, but the second should be AV_PIX_FMT_0RGB (or
>> some swizzle thereof).
> Usually the default alpha is taken as 1.0 when alpha is not specified, so how
> about setting alpha to 1.0 too when doing P010-> A2R10G10B10/ARGB in this
> filter? On the other hand, we need to send the output of tonemapping to HDR/SDR
> display and the HW supports A2R10G10B10/ARGB instead of 0R10G10B10/0RGB.
The HDR->SDR output should be 0RGB (or one of its friends), not ARGB.
Carl Eugen
More information about the ffmpeg-devel
mailing list