[FFmpeg-devel] [PATCH 3/3] Map 444 pix fmts to new VdpYCbCr types defined in VDPAU.

Michael Niedermayer michael at niedermayer.cc
Fri Apr 26 21:47:31 EEST 2019


On Fri, Apr 26, 2019 at 09:43:38AM +0530, ManojGuptaBonda wrote:
> New VdpYCbCr Formats VDP_YCBCR_FORMAT_Y_U_V_444 and,
> VDP_YCBCR_FORMAT_Y_UV_444 have been added in VDPAU to be used in
> get/putbits for YUV 4:4:4 surfaces. Earlier mapping of
> AV_PIX_FMT_YUV444P to VDP_YCBCR_FORMAT_YV12 is not valid.
> 
> Hence this Change maps AV_PIX_FMT_YUV444P to VDP_YCBCR_FORMAT_Y_U_V_444
> to access the YUV 4:4:4 surface via read-back API's of VDPAU.
> ---
>  libavutil/hwcontext_vdpau.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

breaks build

CC	libavutil/hwcontext_vdpau.o
libavutil/hwcontext_vdpau.c:76:7: error: ‘VDP_YCBCR_FORMAT_Y_U_V_444’ undeclared here (not in a function)
     { VDP_YCBCR_FORMAT_Y_U_V_444, AV_PIX_FMT_YUV444P },
       ^
libavutil/hwcontext_vdpau.c: In function ‘vdpau_transfer_data_from’:
libavutil/hwcontext_vdpau.c:352:62: warning: comparison between pointer and integer [enabled by default]
     if ((vdpau_format == VDP_YCBCR_FORMAT_YV12) || (vdpau_format == VDP_YCBCR_FORMAT_Y_U_V_444))
                                                              ^
libavutil/hwcontext_vdpau.c: In function ‘vdpau_transfer_data_to’:
libavutil/hwcontext_vdpau.c:403:62: warning: comparison between pointer and integer [enabled by default]
     if ((vdpau_format == VDP_YCBCR_FORMAT_YV12) || (vdpau_format == VDP_YCBCR_FORMAT_Y_U_V_444))
                                                              ^
make: *** [libavutil/hwcontext_vdpau.o] Error 1
make: Target `all' not remade because of errors.

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190426/37fabff8/attachment.sig>


More information about the ffmpeg-devel mailing list