]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dxva2.h
qsvdec: do not sync PIX_FMT_QSV surfaces
[ffmpeg] / libavcodec / dxva2.h
index 5db5d0bc9f1da180340c361efd491794f3c0648e..d940b47fe58792d717ed791d53edd39f968dbd40 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef AVCODEC_DXVA_H
-#define AVCODEC_DXVA_H
+#ifndef AVCODEC_DXVA2_H
+#define AVCODEC_DXVA2_H
 
-#include <stdint.h>
+/**
+ * @file
+ * @ingroup lavc_codec_hwaccel_dxva2
+ * Public libavcodec DXVA2 header.
+ */
+
+#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0602
+#undef _WIN32_WINNT
+#define _WIN32_WINNT 0x0602
+#endif
 
+#include <stdint.h>
+#include <d3d9.h>
 #include <dxva2api.h>
 
+/**
+ * @defgroup lavc_codec_hwaccel_dxva2 DXVA2
+ * @ingroup lavc_codec_hwaccel
+ *
+ * @{
+ */
+
+#define FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG 1 ///< Work around for DXVA2 and old UVD/UVD+ ATI video cards
+#define FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO    2 ///< Work around for DXVA2 and old Intel GPUs with ClearVideo interface
+
 /**
  * This structure is used to provides the necessary configurations and data
  * to the DXVA2 Libav HWAccel implementation.
@@ -65,4 +86,8 @@ struct dxva_context {
     unsigned report_id;
 };
 
-#endif /* AVCODEC_DXVA_H */
+/**
+ * @}
+ */
+
+#endif /* AVCODEC_DXVA2_H */