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
319424d2
Commit
319424d2
authored
Oct 04, 2014
by
Rémi Denis-Courmont
Committed by
Anton Khirnov
Oct 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau: add helper for VDPAU to libav error codes conversion
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
2a5ac99e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
vdpau.c
libavcodec/vdpau.c
+24
-0
No files found.
libavcodec/vdpau.c
View file @
319424d2
...
...
@@ -38,6 +38,30 @@
* @{
*/
static
int
vdpau_error
(
VdpStatus
status
)
{
switch
(
status
)
{
case
VDP_STATUS_OK
:
return
0
;
case
VDP_STATUS_NO_IMPLEMENTATION
:
return
AVERROR
(
ENOSYS
);
case
VDP_STATUS_DISPLAY_PREEMPTED
:
return
AVERROR
(
EIO
);
case
VDP_STATUS_INVALID_HANDLE
:
return
AVERROR
(
EBADF
);
case
VDP_STATUS_INVALID_POINTER
:
return
AVERROR
(
EFAULT
);
case
VDP_STATUS_RESOURCES
:
return
AVERROR
(
ENOBUFS
);
case
VDP_STATUS_HANDLE_DEVICE_MISMATCH
:
return
AVERROR
(
EXDEV
);
case
VDP_STATUS_ERROR
:
return
AVERROR
(
EIO
);
default:
return
AVERROR
(
EINVAL
);
}
}
int
ff_vdpau_common_start_frame
(
struct
vdpau_picture_context
*
pic_ctx
,
av_unused
const
uint8_t
*
buffer
,
av_unused
uint32_t
size
)
...
...
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