Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
ac648bb8
Commit
ac648bb8
authored
Dec 08, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxva2: Simplify some ifdefs
parent
7d81698b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
dxva2_internal.h
libavcodec/dxva2_internal.h
+3
-9
No files found.
libavcodec/dxva2_internal.h
View file @
ac648bb8
...
@@ -32,11 +32,6 @@
...
@@ -32,11 +32,6 @@
#if CONFIG_DXVA2
#if CONFIG_DXVA2
#include "dxva2.h"
#include "dxva2.h"
#endif
#if CONFIG_D3D11VA
#include "d3d11va.h"
#endif
#if HAVE_DXVA_H
/* When targeting WINAPI_FAMILY_PHONE_APP or WINAPI_FAMILY_APP, dxva.h
/* When targeting WINAPI_FAMILY_PHONE_APP or WINAPI_FAMILY_APP, dxva.h
* defines nothing. Force the struct definitions to be visible. */
* defines nothing. Force the struct definitions to be visible. */
#undef WINAPI_FAMILY
#undef WINAPI_FAMILY
...
@@ -45,6 +40,9 @@
...
@@ -45,6 +40,9 @@
#define _CRT_BUILD_DESKTOP_APP 0
#define _CRT_BUILD_DESKTOP_APP 0
#include <dxva.h>
#include <dxva.h>
#endif
#endif
#if CONFIG_D3D11VA
#include "d3d11va.h"
#endif
#include "avcodec.h"
#include "avcodec.h"
...
@@ -59,12 +57,8 @@ typedef union {
...
@@ -59,12 +57,8 @@ typedef union {
#endif
#endif
}
AVDXVAContext
;
}
AVDXVAContext
;
#if CONFIG_D3D11VA
#define D3D11VA_CONTEXT(ctx) (&ctx->d3d11va)
#define D3D11VA_CONTEXT(ctx) (&ctx->d3d11va)
#endif
#if CONFIG_DXVA2
#define DXVA2_CONTEXT(ctx) (&ctx->dxva2)
#define DXVA2_CONTEXT(ctx) (&ctx->dxva2)
#endif
#if CONFIG_D3D11VA && CONFIG_DXVA2
#if CONFIG_D3D11VA && CONFIG_DXVA2
#define DXVA_CONTEXT_WORKAROUND(avctx, ctx) (avctx->pix_fmt == AV_PIX_FMT_D3D11VA_VLD ? ctx->d3d11va.workaround : ctx->dxva2.workaround)
#define DXVA_CONTEXT_WORKAROUND(avctx, ctx) (avctx->pix_fmt == AV_PIX_FMT_D3D11VA_VLD ? ctx->d3d11va.workaround : ctx->dxva2.workaround)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment