summaryrefslogtreecommitdiff
path: root/libavcodec/d3d11va.c
diff options
context:
space:
mode:
authorSteve Lhomme <robux4@gmail.com>2015-09-16 13:27:42 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-09-17 10:33:21 +0200
commite3d4784eb31b3ea4a97f2d4c698a75fab9bf3d86 (patch)
tree55fc7a458eefd08ec3248463e868bc7ee030eec0 /libavcodec/d3d11va.c
parent781a25e9c419dd66063597cc5d70e8919de60561 (diff)
d3d11va: WindowsPhone requires a mutex around ID3D11VideoContext
Diffstat (limited to 'libavcodec/d3d11va.c')
-rw-r--r--libavcodec/d3d11va.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/libavcodec/d3d11va.c b/libavcodec/d3d11va.c
new file mode 100644
index 0000000000..d24730a348
--- /dev/null
+++ b/libavcodec/d3d11va.c
@@ -0,0 +1,33 @@
+/*
+ * Direct3D11 HW acceleration
+ *
+ * copyright (c) 2015 Steve Lhomme
+ *
+ * This file is part of Libav.
+ *
+ * Libav is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * Libav is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with Libav; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "config.h"
+#include "libavutil/mem.h"
+
+#include "d3d11va.h"
+
+AVD3D11VAContext *av_d3d11va_alloc_context(void)
+{
+ AVD3D11VAContext* res = av_mallocz(sizeof(AVD3D11VAContext));
+ res->context_mutex = INVALID_HANDLE_VALUE;
+ return res;
+}