Re: [FFmpeg-devel] Request for assistance with adding new pixel format (NV12_8L128) in FFmpeg

2023-02-08 Thread Le Bao Tin Ha
Hello, you can found the explanation here:

https://docs.kernel.org/userspace-api/media/v4l/pixfmt-yuv-planar.html

"V4L2_PIX_FMT_NV12M_8L128 is similar to V4L2_PIX_FMT_NV12M but stores pixels in 
2D 8x128 tiles, and stores tiles linearly in memory. The image height must be 
aligned to a multiple of 128. The layouts of the luma and chroma planes are 
identical.

V4L2_PIX_FMT_NV12_8L128 is similar to V4L2_PIX_FMT_NV12M_8L128 but stores two 
planes in one memory."


- Original Message -
From: "Kieran Kunhya" 
To: "FFmpeg development discussions and patches" 
Sent: Monday, February 6, 2023 7:15:22 PM
Subject: Re: [FFmpeg-devel] Request for assistance with adding new pixel format 
(NV12_8L128) in FFmpeg

On Mon, 6 Feb 2023 at 15:43, Le Bao Tin Ha 
wrote:

> I hope this email finds you well. I am currently working on the Toradex
> Apalis iMX8QM board and I am trying to perform a hardware decode using the
> Amphion driver with ffmpeg h264_v4l2m2m codec. The decoder outputs a pixel
> format (NV12_8L128, a linear 8x128 NV12 based tiles) that is not supported
> yet by FFmpeg.
>

Hello,

Are you able to provide more information about this nonstandard pixel
format?

Kieran
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-devel] Request for assistance with adding new pixel format (NV12_8L128) in FFmpeg

2023-02-06 Thread Le Bao Tin Ha
Dear FFmpeg Community,

I hope this email finds you well. I am currently working on the Toradex Apalis 
iMX8QM board and I am trying to perform a hardware decode using the Amphion 
driver with ffmpeg h264_v4l2m2m codec. The decoder outputs a pixel format 
(NV12_8L128, a linear 8x128 NV12 based tiles) that is not supported yet by 
FFmpeg.

I attempted to add this new pixel format to FFmpeg by adding only the DEFINES 
which are similar to the classical NV12 (or NV12M), but it doesn't seem to be 
working as expected. I was wondering if you could help me with this issue. 
Could you provide me with some guidance on how to proceed and make sure that it 
works correctly? Or could you provide me an other alternative to simplify this?

Any help would be greatly appreciated. Thank you for your time.

Best regards,
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".