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
d6817151
Commit
d6817151
authored
Jun 15, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau: add function to convert VLC format to VDPAU type/format pair
parent
98df4355
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
modules/hw/vdpau/vlc_vdpau.h
modules/hw/vdpau/vlc_vdpau.h
+34
-0
No files found.
modules/hw/vdpau/vlc_vdpau.h
View file @
d6817151
...
@@ -203,4 +203,38 @@ vdp_t *vdp_hold_x11(vdp_t *vdp, VdpDevice *device);
...
@@ -203,4 +203,38 @@ vdp_t *vdp_hold_x11(vdp_t *vdp, VdpDevice *device);
*/
*/
void
vdp_release_x11
(
vdp_t
*
);
void
vdp_release_x11
(
vdp_t
*
);
/* VLC specifics */
# include <stdbool.h>
# include <vlc_common.h>
# include <vlc_fourcc.h>
/** Converts VLC YUV format to VDPAU chroma type and YCbCr format */
static
inline
bool
vlc_fourcc_to_vdp_ycc
(
vlc_fourcc_t
fourcc
,
VdpChromaType
*
restrict
type
,
VdpYCbCrFormat
*
restrict
format
)
{
switch
(
fourcc
)
{
case
VLC_CODEC_I420
:
case
VLC_CODEC_YV12
:
*
type
=
VDP_CHROMA_TYPE_420
;
*
format
=
VDP_YCBCR_FORMAT_YV12
;
break
;
case
VLC_CODEC_NV12
:
*
type
=
VDP_CHROMA_TYPE_420
;
*
format
=
VDP_YCBCR_FORMAT_NV12
;
break
;
case
VLC_CODEC_YUYV
:
*
type
=
VDP_CHROMA_TYPE_422
;
*
format
=
VDP_YCBCR_FORMAT_YUYV
;
break
;
case
VLC_CODEC_UYVY
:
*
type
=
VDP_CHROMA_TYPE_422
;
*
format
=
VDP_YCBCR_FORMAT_UYVY
;
break
;
default:
return
false
;
}
return
true
;
}
#endif
#endif
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