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
49e1ba40
Commit
49e1ba40
authored
May 27, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
May 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
direct3d11: check the right flag combination
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
3d5a30c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/video_output/msw/direct3d11.c
modules/video_output/msw/direct3d11.c
+4
-4
No files found.
modules/video_output/msw/direct3d11.c
View file @
49e1ba40
...
...
@@ -870,7 +870,7 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
if
(
SUCCEEDED
(
ID3D11Device_CheckFormatSupport
(
sys
->
d3ddevice
,
d3d_formats
[
i
].
formatTexture
,
&
i_formatSupport
))
&&
(
i_formatSupport
&
i_quadSupportFlags
))
(
i_formatSupport
&
i_quadSupportFlags
)
==
i_quadSupportFlags
)
{
msg_Dbg
(
vd
,
"Using pixel format %s"
,
d3d_formats
[
i
].
name
);
sys
->
vlcFormat
=
d3d_formats
[
i
].
fourcc
;
...
...
@@ -890,7 +890,7 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
if
(
SUCCEEDED
(
ID3D11Device_CheckFormatSupport
(
sys
->
d3ddevice
,
d3d_formats
[
i
].
formatTexture
,
&
i_formatSupport
))
&&
(
i_formatSupport
&
i_quadSupportFlags
))
(
i_formatSupport
&
i_quadSupportFlags
)
==
i_quadSupportFlags
)
{
msg_Dbg
(
vd
,
"Using pixel format %s"
,
d3d_formats
[
i
].
name
);
sys
->
vlcFormat
=
d3d_formats
[
i
].
fourcc
;
...
...
@@ -912,14 +912,14 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
if
(
SUCCEEDED
(
ID3D11Device_CheckFormatSupport
(
sys
->
d3ddevice
,
DXGI_FORMAT_R8G8B8A8_UNORM
,
&
i_formatSupport
))
&&
(
i_formatSupport
&
i_quadSupportFlags
))
{
(
i_formatSupport
&
i_quadSupportFlags
)
==
i_quadSupportFlags
)
{
sys
->
d3dregion_format
=
DXGI_FORMAT_R8G8B8A8_UNORM
;
sys
->
pSubpictureChromas
[
0
]
=
VLC_CODEC_RGBA
;
sys
->
pSubpictureChromas
[
1
]
=
0
;
}
else
if
(
SUCCEEDED
(
ID3D11Device_CheckFormatSupport
(
sys
->
d3ddevice
,
DXGI_FORMAT_B8G8R8A8_UNORM
,
&
i_formatSupport
))
&&
(
i_formatSupport
&
i_quadSupportFlags
))
{
(
i_formatSupport
&
i_quadSupportFlags
)
==
i_quadSupportFlags
)
{
sys
->
d3dregion_format
=
DXGI_FORMAT_B8G8R8A8_UNORM
;
sys
->
pSubpictureChromas
[
0
]
=
VLC_CODEC_BGRA
;
sys
->
pSubpictureChromas
[
1
]
=
0
;
...
...
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