Le 2014-09-17 19:22, Luca Barbato a écrit :
On 17/09/14 17:51, Rémi Denis-Courmont wrote:
Decoding acceleration may work even if the codec level is higher than the stated limit of the VDPAU driver. Or the problem may be considered
acceptable by the user. This flag allows skipping the codec level
capability checks and proceed with decoding.

Applications should obviously not set this flag by default, but only if the user explicitly requested this behavior (and presumably knows how
to turn it back off if it fails).

I like the idea a lot

+ * VDPAU should be used for decoding even if the codec level used is unknown + * or higher than the maximum supported level reported by the VDPAU driver.
+ */
+#define AV_VDPAU_FLAG_IGNORE_LEVEL (1 << 0)

Make it HWACCEL instead of VDPAU, it seems generic enough, with the
small change you pointed already seems good to me.

The hardware (NVDEC, AMD UVD, etc) is the same regardless of which interface is used to talk to it (VDPAU, DxVA, ...), and thus the concept should be portable. I can rename it if you want and then move it avcodec.h.

*But* there are currently no generic ways to set hardware acceleration flags to an AVCodecContext...

--
Rémi Denis-Courmont
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to