Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
319424d2
Commit
319424d2
authored
10 years ago
by
Rémi Denis-Courmont
Committed by
Anton Khirnov
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
vdpau: add helper for VDPAU to libav error codes conversion
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
2a5ac99e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/vdpau.c
+24
-0
24 additions, 0 deletions
libavcodec/vdpau.c
with
24 additions
and
0 deletions
libavcodec/vdpau.c
+
24
−
0
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment