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
0023f983
Commit
0023f983
authored
Oct 15, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Oct 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11_surface: better debugging of surface issues
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
57dbe627
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
modules/video_chroma/Makefile.am
modules/video_chroma/Makefile.am
+1
-0
modules/video_chroma/d3d11_surface.c
modules/video_chroma/d3d11_surface.c
+2
-1
No files found.
modules/video_chroma/Makefile.am
View file @
0023f983
...
...
@@ -109,6 +109,7 @@ endif
# D3D11VA
libd3d11_surface_plugin_la_SOURCES
=
video_chroma/d3d11_surface.c
\
video_chroma/dxgi_fmt.c video_chroma/dxgi_fmt.h
\
video_chroma/copy.c video_chroma/copy.h
if
HAVE_AVCODEC_D3D11VA
...
...
modules/video_chroma/d3d11_surface.c
View file @
0023f983
...
...
@@ -33,6 +33,7 @@
#include <vlc_filter.h>
#include "copy.h"
#include "dxgi_fmt.h"
static
int
OpenConverter
(
vlc_object_t
*
);
static
void
CloseConverter
(
vlc_object_t
*
);
...
...
@@ -90,7 +91,7 @@ static int assert_staging(filter_t *p_filter, picture_sys_t *p_sys)
hr
=
ID3D11Device_CreateTexture2D
(
p_device
,
&
texDesc
,
NULL
,
&
sys
->
staging
);
ID3D11Device_Release
(
p_device
);
if
(
FAILED
(
hr
))
{
msg_Err
(
p_filter
,
"Failed to create a
staging texture to extract surface pixels (hr=0x%0lx)"
,
hr
);
msg_Err
(
p_filter
,
"Failed to create a
%s staging texture to extract surface pixels (hr=0x%0lx)"
,
DxgiFormatToStr
(
texDesc
.
Format
)
,
hr
);
return
VLC_EGENERIC
;
}
ok:
...
...
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