Re: [PATCH] v4l: Add source event change for bit-depth

From: Stanimir Varbanov
Date: Tue Apr 23 2019 - 10:54:06 EST


Hi Sakari,

Thanks for the comments!

On 4/23/19 9:43 AM, Sakari Ailus wrote:
> Hi Stan,
>
> On Mon, Apr 15, 2019 at 06:27:23PM +0300, Stanimir Varbanov wrote:
>> This event indicate that the source bit-depth is changed during
>> run-time. The client must get the new format and re-allocate buffers
>> for it. This can usually happens with video decoder (encoders) when
>> the bit-stream depth is changed from 8 to 10bits or vice versa.
>
> Thanks for the patch.
>
> How about adding an event for pixelformat change, instead of bit depth? The
> application presumably knows the formats it can work with, and can adapt to
> that as well as a change to the bit depth.

Well, I'd like to hear more opinions but in principle I'd agree with you.

<cut>

--
regards,
Stan