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
ffcf411c
Commit
ffcf411c
authored
Apr 28, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Apr 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DXVA2: we don't need to keep the D3DPRESENT_PARAMETERS
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
32ed30c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
modules/codec/avcodec/dxva2.c
modules/codec/avcodec/dxva2.c
+14
-15
No files found.
modules/codec/avcodec/dxva2.c
View file @
ffcf411c
...
@@ -328,7 +328,6 @@ struct vlc_va_sys_t
...
@@ -328,7 +328,6 @@ struct vlc_va_sys_t
HINSTANCE
hdxva2_dll
;
HINSTANCE
hdxva2_dll
;
/* Direct3D */
/* Direct3D */
D3DPRESENT_PARAMETERS
d3dpp
;
LPDIRECT3D9
d3dobj
;
LPDIRECT3D9
d3dobj
;
D3DADAPTER_IDENTIFIER9
d3dai
;
D3DADAPTER_IDENTIFIER9
d3dai
;
LPDIRECT3DDEVICE9
d3ddev
;
LPDIRECT3DDEVICE9
d3ddev
;
...
@@ -676,19 +675,19 @@ static int D3dCreateDevice(vlc_va_t *va)
...
@@ -676,19 +675,19 @@ static int D3dCreateDevice(vlc_va_t *va)
}
}
/* */
/* */
D3DPRESENT_PARAMETERS
*
d3dpp
=
&
sys
->
d3dpp
;
D3DPRESENT_PARAMETERS
d3dpp
;
ZeroMemory
(
d3dpp
,
sizeof
(
*
d3dpp
));
ZeroMemory
(
&
d3dpp
,
sizeof
(
d3dpp
));
d3dpp
->
Flags
=
D3DPRESENTFLAG_VIDEO
;
d3dpp
.
Flags
=
D3DPRESENTFLAG_VIDEO
;
d3dpp
->
Windowed
=
TRUE
;
d3dpp
.
Windowed
=
TRUE
;
d3dpp
->
hDeviceWindow
=
NULL
;
d3dpp
.
hDeviceWindow
=
NULL
;
d3dpp
->
SwapEffect
=
D3DSWAPEFFECT_DISCARD
;
d3dpp
.
SwapEffect
=
D3DSWAPEFFECT_DISCARD
;
d3dpp
->
MultiSampleType
=
D3DMULTISAMPLE_NONE
;
d3dpp
.
MultiSampleType
=
D3DMULTISAMPLE_NONE
;
d3dpp
->
PresentationInterval
=
D3DPRESENT_INTERVAL_DEFAULT
;
d3dpp
.
PresentationInterval
=
D3DPRESENT_INTERVAL_DEFAULT
;
d3dpp
->
BackBufferCount
=
0
;
/* FIXME what to put here */
d3dpp
.
BackBufferCount
=
0
;
/* FIXME what to put here */
d3dpp
->
BackBufferFormat
=
D3DFMT_X8R8G8B8
;
/* FIXME what to put here */
d3dpp
.
BackBufferFormat
=
D3DFMT_X8R8G8B8
;
/* FIXME what to put here */
d3dpp
->
BackBufferWidth
=
0
;
d3dpp
.
BackBufferWidth
=
0
;
d3dpp
->
BackBufferHeight
=
0
;
d3dpp
.
BackBufferHeight
=
0
;
d3dpp
->
EnableAutoDepthStencil
=
FALSE
;
d3dpp
.
EnableAutoDepthStencil
=
FALSE
;
/* Direct3D needs a HWND to create a device, even without using ::Present
/* Direct3D needs a HWND to create a device, even without using ::Present
this HWND is used to alert Direct3D when there's a change of focus window.
this HWND is used to alert Direct3D when there's a change of focus window.
...
@@ -698,7 +697,7 @@ static int D3dCreateDevice(vlc_va_t *va)
...
@@ -698,7 +697,7 @@ static int D3dCreateDevice(vlc_va_t *va)
D3DDEVTYPE_HAL
,
GetDesktopWindow
(),
D3DDEVTYPE_HAL
,
GetDesktopWindow
(),
D3DCREATE_SOFTWARE_VERTEXPROCESSING
|
D3DCREATE_SOFTWARE_VERTEXPROCESSING
|
D3DCREATE_MULTITHREADED
,
D3DCREATE_MULTITHREADED
,
d3dpp
,
&
d3ddev
)))
{
&
d3dpp
,
&
d3ddev
)))
{
msg_Err
(
va
,
"IDirect3D9_CreateDevice failed"
);
msg_Err
(
va
,
"IDirect3D9_CreateDevice failed"
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
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