Re: [FFmpeg-devel] [PATCH] libswscale/swscale_unscaled.c: UHD Resolution Performance Increase for Color Space Convertions / NVENC Related

2016-10-03 Thread Michael Niedermayer
On Mon, Oct 03, 2016 at 12:35:51PM +0300, Ali KIZIL wrote: > Hello, > > This patch is done for performance increase on UHD or above resolution > color space convertions. > Some SDI sources provide yuv422p10 for 10bit source and uyvy422 for 8 bit > source. > To encode these sources with NVENC 10

Re: [FFmpeg-devel] [PATCH] libswscale/swscale_unscaled.c: UHD Resolution Performance Increase for Color Space Convertions / NVENC Related

2016-10-03 Thread Ali KIZIL
2016-10-03 14:39 GMT+03:00 Carl Eugen Hoyos : > 2016-10-03 13:11 GMT+02:00 Ali KIZIL : > > 2016-10-03 14:09 GMT+03:00 Carl Eugen Hoyos : > > > >> 2016-10-03 12:48 GMT+02:00 Ali KIZIL : > >> > >> > Yes, Alpha channel

Re: [FFmpeg-devel] [PATCH] libswscale/swscale_unscaled.c: UHD Resolution Performance Increase for Color Space Convertions / NVENC Related

2016-10-03 Thread Carl Eugen Hoyos
2016-10-03 13:11 GMT+02:00 Ali KIZIL : > 2016-10-03 14:09 GMT+03:00 Carl Eugen Hoyos : > >> 2016-10-03 12:48 GMT+02:00 Ali KIZIL : >> >> > Yes, Alpha channel is not managed. >> > >> > So it should be; >> > >> >> +/*

Re: [FFmpeg-devel] [PATCH] libswscale/swscale_unscaled.c: UHD Resolution Performance Increase for Color Space Convertions / NVENC Related

2016-10-03 Thread Ali KIZIL
2016-10-03 14:09 GMT+03:00 Carl Eugen Hoyos : > 2016-10-03 12:48 GMT+02:00 Ali KIZIL : > > > Yes, Alpha channel is not managed. > > > > So it should be; > > > >> +/* yuv422p10_to_yuv420p */ > >> +if ((srcFormat == AV_PIX_FMT_YUV422P10) && > >> +

Re: [FFmpeg-devel] [PATCH] libswscale/swscale_unscaled.c: UHD Resolution Performance Increase for Color Space Convertions / NVENC Related

2016-10-03 Thread Carl Eugen Hoyos
2016-10-03 12:48 GMT+02:00 Ali KIZIL : > Yes, Alpha channel is not managed. > > So it should be; > >> +/* yuv422p10_to_yuv420p */ >> +if ((srcFormat == AV_PIX_FMT_YUV422P10) && >> +(dstFormat == AV_PIX_FMT_YUV420P)) >> +c->swscale =

Re: [FFmpeg-devel] [PATCH] libswscale/swscale_unscaled.c: UHD Resolution Performance Increase for Color Space Convertions / NVENC Related

2016-10-03 Thread Ali KIZIL
2016-10-03 13:28 GMT+03:00 Hendrik Leppkes : > On Mon, Oct 3, 2016 at 11:35 AM, Ali KIZIL wrote: > > Hello, > > > > This patch is done for performance increase on UHD or above resolution > > color space convertions. > > Some SDI sources provide yuv422p10

Re: [FFmpeg-devel] [PATCH] libswscale/swscale_unscaled.c: UHD Resolution Performance Increase for Color Space Convertions / NVENC Related

2016-10-03 Thread Ali KIZIL
2016-10-03 13:06 GMT+03:00 Carl Eugen Hoyos : > 2016-10-03 11:35 GMT+02:00 Ali KIZIL : > > > +/* yuv422p10_to_yuv420p */ > > +if ((srcFormat == AV_PIX_FMT_YUV422P10 || srcFormat == > AV_PIX_FMT_YUVA422P10) && > > +(dstFormat ==

Re: [FFmpeg-devel] [PATCH] libswscale/swscale_unscaled.c: UHD Resolution Performance Increase for Color Space Convertions / NVENC Related

2016-10-03 Thread Ali KIZIL
2016-10-03 13:28 GMT+03:00 Hendrik Leppkes : > On Mon, Oct 3, 2016 at 11:35 AM, Ali KIZIL wrote: > > Hello, > > > > This patch is done for performance increase on UHD or above resolution > > color space convertions. > > Some SDI sources provide yuv422p10

Re: [FFmpeg-devel] [PATCH] libswscale/swscale_unscaled.c: UHD Resolution Performance Increase for Color Space Convertions / NVENC Related

2016-10-03 Thread Hendrik Leppkes
On Mon, Oct 3, 2016 at 11:35 AM, Ali KIZIL wrote: > Hello, > > This patch is done for performance increase on UHD or above resolution > color space convertions. > Some SDI sources provide yuv422p10 for 10bit source and uyvy422 for 8 bit > source. > To encode these sources with

Re: [FFmpeg-devel] [PATCH] libswscale/swscale_unscaled.c: UHD Resolution Performance Increase for Color Space Convertions / NVENC Related

2016-10-03 Thread Carl Eugen Hoyos
2016-10-03 11:35 GMT+02:00 Ali KIZIL : > +/* yuv422p10_to_yuv420p */ > +if ((srcFormat == AV_PIX_FMT_YUV422P10 || srcFormat == > AV_PIX_FMT_YUVA422P10) && > +(dstFormat == AV_PIX_FMT_YUV420P) || srcFormat == > AV_PIX_FMT_YUVA420P) > +c->swscale =

[FFmpeg-devel] [PATCH] libswscale/swscale_unscaled.c: UHD Resolution Performance Increase for Color Space Convertions / NVENC Related

2016-10-03 Thread Ali KIZIL
Hello, This patch is done for performance increase on UHD or above resolution color space convertions. Some SDI sources provide yuv422p10 for 10bit source and uyvy422 for 8 bit source. To encode these sources with NVENC 10 bits, there is a need to convert these color spaces to P010. Before patch