> -----Original Message-----
> From: ffmpeg-devel [mailto:[email protected]] On Behalf Of Carl
> Eugen Hoyos
> Sent: Friday, April 13, 2018 12:48 AM
> To: FFmpeg development discussions and patches <[email protected]>
> Subject: Re: [FFmpeg-devel] [PATCH] lavc/amfenc: DXVA2 textures support
> implementation by AMF encoder
>
> 2018-04-12 23:42 GMT+02:00, Alexander Kravchenko <[email protected]>:
> >
> > This patch contains DXVA2 textures support implementation by AMF
> > encoder (in addition of D3D11 textures)
>
> > + if (frames_ctx->device_ctx->hwctx) { #if CONFIG_D3D11VA
> > + if (frames_ctx->device_ctx->type ==
> > AV_HWDEVICE_TYPE_D3D11VA) {
>
> if (CONFIG_D3D11VA && frames_ctx->device_ctx->type ==...
>
> same below.
>
Hi Carl, thanks for your feedback
Could you explain the reason replacing
if (frames_ctx->device_ctx->type ==
to
if (CONFIG_D3D11VA && frames_ctx->device_ctx->type ==
in code like:
#if CONFIG_DXVA2
#include "libavutil/hwcontext_dxva2.h"
#endif
//...
#if CONFIG_D3D11VA
if (frames_ctx->device_ctx->type ==...
//code required include libavutil/hwcontext_dxva2.h"
#endif
Thanks,
Alexander
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel