Re: Problem with coda h264 decoder and different color formats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Philipp,

thanks for your answer.

Can you confirm this works with 4.19.100 with exactly the same coda
firmware that shows the broken behavior on 5.10.50?

Yes, exactly the same coda firmware (3.1.1) with 4.19.100 and 5.10.50:> [ 10.461672] coda 2040000.vpu: Firmware version: 3.1.1


I think the culprit is commit 497e6b8559a6 ("media: coda: add sequence
initialization work"), which moves some initialization earlier before
userspace selects the final capture format.
During __coda_decoder_seq_init() (which prints the "start decoding:
1920x960" line above), the ctx->frame_mem_ctrl is set for the default
NV12/tiled output format. This is never corrected when streaming
actually starts.

Could you check if this patch [1] helps?

[1] https://lore.kernel.org/linux-media/20210719145708.10643-1-p.zabel@xxxxxxxxxxxxxx/T/#u


Yes, this patch solves the problem. I can now successfully play videos with all supported decoder color formats (NV12, I420, YV12 and YUY2). This also works in Qt app.

I can't thank you enough for your fast response. Thank you so much.

Best regards,
Andrej



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux