Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
f01f7a78
Commit
f01f7a78
authored
Aug 24, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwcontext_dxva2: use the special UC copy for downloading frames
parent
d7bc52bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
hwcontext_dxva2.c
libavutil/hwcontext_dxva2.c
+7
-2
No files found.
libavutil/hwcontext_dxva2.c
View file @
f01f7a78
...
...
@@ -277,7 +277,12 @@ static int dxva2_transfer_data(AVHWFramesContext *ctx, AVFrame *dst,
(
uint8_t
*
)
LockedRect
.
pBits
,
surf_linesize
);
if
(
download
)
{
av_image_copy
(
dst
->
data
,
dst
->
linesize
,
surf_data
,
surf_linesize
,
ptrdiff_t
src_linesize1
[
4
],
dst_linesize1
[
4
];
for
(
i
=
0
;
i
<
4
;
i
++
)
{
dst_linesize1
[
i
]
=
dst
->
linesize
[
i
];
src_linesize1
[
i
]
=
surf_linesize
[
i
];
}
av_image_copy_uc_from
(
dst
->
data
,
dst_linesize1
,
surf_data
,
src_linesize1
,
ctx
->
sw_format
,
src
->
width
,
src
->
height
);
}
else
{
av_image_copy
(
surf_data
,
surf_linesize
,
src
->
data
,
src
->
linesize
,
...
...
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