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
e045b625
Commit
e045b625
authored
Mar 23, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Mar 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
direct3d11: code cleaning and typos
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
60257a8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/video_output/msw/direct3d11.c
modules/video_output/msw/direct3d11.c
+6
-6
No files found.
modules/video_output/msw/direct3d11.c
View file @
e045b625
...
...
@@ -825,17 +825,17 @@ static int Direct3D11CreateResources(vout_display_t *vd, video_format_t *fmt)
D3D11_SHADER_RESOURCE_VIEW_DESC
resviewDesc
;
memset
(
&
resviewDesc
,
0
,
sizeof
(
resviewDesc
));
resviewDesc
.
Format
=
DXGI_FORMAT_R8G8B8A8_UNORM
;
resviewDesc
.
ViewDimension
=
D3D11_SRV_DIMENSION_TEXTURE2D
;
resviewDesc
.
Texture2D
.
MipLevels
=
texDesc
.
MipLevels
;
if
(
sys
->
vlcFormat
==
VLC_CODEC_NV12
)
resviewDesc
.
Format
=
DXGI_FORMAT_R8_UNORM
;
else
resviewDesc
.
Format
=
DXGI_FORMAT_R8G8B8A8_UNORM
;
resviewDesc
.
ViewDimension
=
D3D11_SRV_DIMENSION_TEXTURE2D
;
resviewDesc
.
Texture2D
.
MipLevels
=
texDesc
.
MipLevels
;
hr
=
ID3D11Device_CreateShaderResourceView
(
sys
->
d3ddevice
,
(
ID3D11Resource
*
)
sys
->
d3dtexture
,
&
resviewDesc
,
&
sys
->
d3dresViewY
);
if
(
FAILED
(
hr
))
{
if
(
sys
->
d3dtexture
)
ID3D11Texture2D_Release
(
sys
->
d3dtexture
);
msg_Err
(
vd
,
"Could not Create the Y D3d11 Texture ResoureView. (hr=0x%lX)"
,
hr
);
msg_Err
(
vd
,
"Could not Create the Y D3d11 Texture Resour
c
eView. (hr=0x%lX)"
,
hr
);
return
VLC_EGENERIC
;
}
...
...
@@ -844,7 +844,7 @@ static int Direct3D11CreateResources(vout_display_t *vd, video_format_t *fmt)
hr
=
ID3D11Device_CreateShaderResourceView
(
sys
->
d3ddevice
,
(
ID3D11Resource
*
)
sys
->
d3dtexture
,
&
resviewDesc
,
&
sys
->
d3dresViewUV
);
if
(
FAILED
(
hr
))
{
if
(
sys
->
d3dtexture
)
ID3D11Texture2D_Release
(
sys
->
d3dtexture
);
msg_Err
(
vd
,
"Could not Create the U
D3d11 Texture Resour
eView. (hr=0x%lX)"
,
hr
);
msg_Err
(
vd
,
"Could not Create the U
V D3d11 Texture Resourc
eView. (hr=0x%lX)"
,
hr
);
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