Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
51595991
Commit
51595991
authored
Jul 24, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxva2: use AVFrame.opaque to store internal per-picture state directly
parent
2392db7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
modules/codec/avcodec/dxva2.c
modules/codec/avcodec/dxva2.c
+4
-8
No files found.
modules/codec/avcodec/dxva2.c
View file @
51595991
...
...
@@ -468,19 +468,15 @@ static int Get(vlc_va_t *external, AVFrame *ff)
if
(
i
==
0
||
i
==
3
)
ff
->
data
[
i
]
=
(
void
*
)
surface
->
d3d
;
/* Yummie */
}
ff
->
opaque
=
surface
;
return
VLC_SUCCESS
;
}
static
void
Release
(
vlc_va_t
*
external
,
AVFrame
*
ff
)
{
vlc_va_dxva2_t
*
va
=
vlc_va_dxva2_Get
(
external
);
LPDIRECT3DSURFACE9
d3d
=
(
LPDIRECT3DSURFACE9
)(
uintptr_t
)
ff
->
data
[
3
];
for
(
unsigned
i
=
0
;
i
<
va
->
surface_count
;
i
++
)
{
vlc_va_surface_t
*
surface
=
&
va
->
surface
[
i
];
vlc_va_surface_t
*
surface
=
ff
->
opaque
;
if
(
surface
->
d3d
==
d3d
)
surface
->
refcount
--
;
}
surface
->
refcount
--
;
(
void
)
external
;
}
static
void
Close
(
vlc_va_t
*
external
)
{
...
...
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