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
ca9f13bb
Commit
ca9f13bb
authored
Mar 11, 2018
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hwcontext_vaapi: Pass correct read/write flags when exporting surfaces
parent
c6bbb8cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
hwcontext_vaapi.c
libavutil/hwcontext_vaapi.c
+8
-3
No files found.
libavutil/hwcontext_vaapi.c
View file @
ca9f13bb
...
...
@@ -1095,15 +1095,20 @@ static int vaapi_map_to_drm_esh(AVHWFramesContext *hwfc, AVFrame *dst,
VAStatus
vas
;
VADRMPRIMESurfaceDescriptor
va_desc
;
AVDRMFrameDescriptor
*
drm_desc
=
NULL
;
uint32_t
export_flags
;
int
err
,
i
,
j
;
surface_id
=
(
VASurfaceID
)(
uintptr_t
)
src
->
data
[
3
];
export_flags
=
VA_EXPORT_SURFACE_SEPARATE_LAYERS
;
if
(
flags
&
AV_HWFRAME_MAP_READ
)
export_flags
|=
VA_EXPORT_SURFACE_READ_ONLY
;
if
(
flags
&
AV_HWFRAME_MAP_WRITE
)
export_flags
|=
VA_EXPORT_SURFACE_WRITE_ONLY
;
vas
=
vaExportSurfaceHandle
(
hwctx
->
display
,
surface_id
,
VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2
,
VA_EXPORT_SURFACE_READ_ONLY
|
VA_EXPORT_SURFACE_SEPARATE_LAYERS
,
&
va_desc
);
export_flags
,
&
va_desc
);
if
(
vas
!=
VA_STATUS_SUCCESS
)
{
if
(
vas
==
VA_STATUS_ERROR_UNIMPLEMENTED
)
return
AVERROR
(
ENOSYS
);
...
...
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