[FFmpeg-devel] [PATCH] NV12 Tile format conversion

Sunny Shukla sunny.shukla at einfochips.com
Fri Dec 16 14:03:29 EET 2016


Ok, let me know what can be done to make sure we have conversion of NV12 tiled format to NV12 in ffmpeg.



From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> on behalf of Hendrik Leppkes <h.leppkes at gmail.com>
Sent: Friday, December 16, 2016 4:27 PM
To: FFmpeg development discussions and patches
Subject: Re: [FFmpeg-devel] [PATCH] NV12 Tile format conversion

On Fri, Dec 16, 2016 at 10:41 AM, Sunny Shukla
<sunny.shukla at einfochips.com> wrote:
> Hi,
>
> NV12 Tile format conversion to NV12 and yuv420p support is added. NV12 Tile format conversion support is only added for input format not as output format.
>
> The algorithm used is referenced from  https://github.com/ssshukla26/NV12Tile-To-NV12-Conversion. It is checked with 480p,720p, 1080p and other resolutions. Videos both in landscape and portrait mode are been able to be converted from nv12 tiled to nv12 format using this algorithm. The input  file must be a yuv file in NV12Tile format, one can download such video with 480p resolution from this https://drive.google.com/open?id=0B5dp19Ic3reULWJIS0JTRFVZbjg link. See instructions file under examples folder for more details in the github link.



ssshukla26/NV12Tile-To-NV12-Conversion
github.com
NV12Tile-To-NV12-Conversion - NV12Tile to NV12 Conversion
>
> For memory layout please refer  https://www.linuxtv.org/downloads/v4l-dvb-apis-old/re36.html
>
> The need to incorporate this format conversion is to make sure that when certain hardware decoders outputs
> the data in nv12 tiled format can also be directly displayed in nv12 or yuv420p format using ffmpeg command line
> and APIs.
>
> P.S. : This patch is applied on commit id "d4c1cc2b876af1e8f1a8ca258bf092b3baa31245" of ffmpeg release 3.2 (latest release).
>
> PFA : 0001-Input-format-NV12-Tile-support-added.patch
>

The patch has some serious issues, but before we go into those more
generally I don't think we should start representing tiled formats as
pixfmts as they are just drastically different to any normal pixfmt
and violate the most basic assumptions otherwise true for every other
pixfmt (ie. basic linear row/col based layout, and more).
It seems to me that if you want to use ffmpeg to convert from tiled to
non-tiled, a decoder might be more appropriate then hacking such a
conversion into swscale as a pixfmt.

- Hendrik
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

************************************************************************************************************************************************************* eInfochips Business Disclaimer: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. *************************************************************************************************************************************************************


More information about the ffmpeg-devel mailing list