[FFmpeg-devel] [PATCH] hwupload_cuda : Add 10/16 bit format support

Michael Niedermayer michael at niedermayer.cc
Wed Jul 19 18:46:30 EEST 2017


On Tue, Jul 18, 2017 at 10:34:20AM +0000, Yogender Gupta wrote:
> Added 10/16bit formats to hwupload_cuda.
> 
> Thanks,
> Yogender
> 
> -----------------------------------------------------------------------------------
> This email message is for the sole use of the intended recipient(s) and may contain
> confidential information.  Any unauthorized review, use, disclosure or distribution
> is prohibited.  If you are not the intended recipient, please contact the sender by
> reply email and destroy all copies of the original message.
> -----------------------------------------------------------------------------------

>  vf_hwupload_cuda.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 49188f1bd1da5d94a1236c4da55a2609e7906f36  0001-hwupload_cuda-Add-10-16-bit-format-support.patch
> From 0c780f59188edcef25a43aa6e6f375b51b87c22b Mon Sep 17 00:00:00 2001
> From: Yogender Gupta <ygupta at nvidia.com>
> Date: Tue, 18 Jul 2017 16:01:02 +0530
> Subject: [PATCH] hwupload_cuda : Add 10/16 bit format support
> 
> ---
>  libavfilter/vf_hwupload_cuda.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavfilter/vf_hwupload_cuda.c b/libavfilter/vf_hwupload_cuda.c
> index ef98233..fe872d8 100644
> --- a/libavfilter/vf_hwupload_cuda.c
> +++ b/libavfilter/vf_hwupload_cuda.c
> @@ -58,7 +58,7 @@ static int cudaupload_query_formats(AVFilterContext *ctx)
>  
>      static const enum AVPixelFormat input_pix_fmts[] = {
>          AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P,
> -        AV_PIX_FMT_NONE,
> +        AV_PIX_FMT_P010, AV_PIX_FMT_P016, AV_PIX_FMT_YUV444P16, AV_PIX_FMT_NONE,

I suggest to keep AV_PIX_FMT_NONE, on the last line alone
that way patches adding formats at the end dont need to change it

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

"You are 36 times more likely to die in a bathtub than at the hands of a
terrorist. Also, you are 2.5 times more likely to become a president and
2 times more likely to become an astronaut, than to die in a terrorist
attack." -- Thoughty2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170719/4e18b3a5/attachment.sig>


More information about the ffmpeg-devel mailing list