Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
d40efc28
Commit
d40efc28
authored
Jun 17, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Jun 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
directx-va: do not load the DLL if not needed
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
a86871ff
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
modules/codec/avcodec/d3d11va.c
modules/codec/avcodec/d3d11va.c
+1
-1
modules/codec/avcodec/directx_va.c
modules/codec/avcodec/directx_va.c
+9
-7
modules/codec/avcodec/directx_va.h
modules/codec/avcodec/directx_va.h
+1
-1
modules/codec/avcodec/dxva2.c
modules/codec/avcodec/dxva2.c
+1
-1
No files found.
modules/codec/avcodec/d3d11va.c
View file @
d40efc28
...
...
@@ -348,7 +348,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
}
}
err
=
directx_va_Open
(
va
,
&
sys
->
dx_sys
,
ctx
,
fmt
);
err
=
directx_va_Open
(
va
,
&
sys
->
dx_sys
,
ctx
,
fmt
,
dx_sys
->
d3ddev
==
NULL
||
va
->
sys
->
d3dctx
==
NULL
);
if
(
err
!=
VLC_SUCCESS
)
goto
error
;
...
...
modules/codec/avcodec/directx_va.c
View file @
d40efc28
...
...
@@ -422,13 +422,14 @@ void directx_va_Close(vlc_va_t *va, directx_sys_t *dx_sys)
}
int
directx_va_Open
(
vlc_va_t
*
va
,
directx_sys_t
*
dx_sys
,
AVCodecContext
*
ctx
,
const
es_format_t
*
fmt
)
AVCodecContext
*
ctx
,
const
es_format_t
*
fmt
,
bool
b_dll
)
{
// TODO va->sys = sys;
dx_sys
->
codec_id
=
ctx
->
codec_id
;
vlc_mutex_init
(
&
dx_sys
->
surface_lock
);
if
(
b_dll
)
{
/* Load dll*/
dx_sys
->
hdecoder_dll
=
LoadLibrary
(
dx_sys
->
psz_decoder_dll
);
if
(
!
dx_sys
->
hdecoder_dll
)
{
...
...
@@ -436,6 +437,7 @@ int directx_va_Open(vlc_va_t *va, directx_sys_t *dx_sys,
goto
error
;
}
msg_Dbg
(
va
,
"DLLs loaded"
);
}
/* */
if
(
dx_sys
->
pf_create_device
(
va
))
{
...
...
modules/codec/avcodec/directx_va.h
View file @
d40efc28
...
...
@@ -134,7 +134,7 @@ typedef struct
}
directx_sys_t
;
int
directx_va_Open
(
vlc_va_t
*
,
directx_sys_t
*
,
AVCodecContext
*
ctx
,
const
es_format_t
*
fmt
);
int
directx_va_Open
(
vlc_va_t
*
,
directx_sys_t
*
,
AVCodecContext
*
ctx
,
const
es_format_t
*
fmt
,
bool
b_dll
);
void
directx_va_Close
(
vlc_va_t
*
,
directx_sys_t
*
);
int
directx_va_Setup
(
vlc_va_t
*
,
directx_sys_t
*
,
AVCodecContext
*
avctx
,
vlc_fourcc_t
*
chroma
);
int
directx_va_Get
(
vlc_va_t
*
,
directx_sys_t
*
,
picture_t
*
pic
,
uint8_t
**
data
);
...
...
modules/codec/avcodec/dxva2.c
View file @
d40efc28
...
...
@@ -357,7 +357,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
if
(
p_sys
!=
NULL
)
IDirect3DSurface9_GetDevice
(
p_sys
->
surface
,
(
IDirect3DDevice9
**
)
&
dx_sys
->
d3ddev
);
err
=
directx_va_Open
(
va
,
&
sys
->
dx_sys
,
ctx
,
fmt
);
err
=
directx_va_Open
(
va
,
&
sys
->
dx_sys
,
ctx
,
fmt
,
dx_sys
->
d3ddev
==
NULL
);
if
(
err
!=
VLC_SUCCESS
)
goto
error
;
...
...
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