Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
5f10d7cc
Commit
5f10d7cc
authored
Jul 16, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau: add I422 and NV16
This is untested due to lack of adequate hardware.
parent
9ea409d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
modules/hw/vdpau/chroma.c
modules/hw/vdpau/chroma.c
+3
-1
modules/hw/vdpau/vlc_vdpau.h
modules/hw/vdpau/vlc_vdpau.h
+8
-0
No files found.
modules/hw/vdpau/chroma.c
View file @
5f10d7cc
...
@@ -330,7 +330,8 @@ static picture_t *VideoExport(filter_t *filter, picture_t *src, picture_t *dst)
...
@@ -330,7 +330,8 @@ static picture_t *VideoExport(filter_t *filter, picture_t *src, picture_t *dst)
planes
[
i
]
=
dst
->
p
[
i
].
p_pixels
;
planes
[
i
]
=
dst
->
p
[
i
].
p_pixels
;
pitches
[
i
]
=
dst
->
p
[
i
].
i_pitch
;
pitches
[
i
]
=
dst
->
p
[
i
].
i_pitch
;
}
}
if
(
dst
->
format
.
i_chroma
==
VLC_CODEC_I420
)
if
(
dst
->
format
.
i_chroma
==
VLC_CODEC_I420
||
dst
->
format
.
i_chroma
==
VLC_CODEC_I422
)
{
{
planes
[
1
]
=
dst
->
p
[
2
].
p_pixels
;
planes
[
1
]
=
dst
->
p
[
2
].
p_pixels
;
planes
[
2
]
=
dst
->
p
[
1
].
p_pixels
;
planes
[
2
]
=
dst
->
p
[
1
].
p_pixels
;
...
@@ -601,6 +602,7 @@ static int OutputOpen(vlc_object_t *obj)
...
@@ -601,6 +602,7 @@ static int OutputOpen(vlc_object_t *obj)
if
(
filter
->
fmt_in
.
video
.
i_chroma
==
VLC_CODEC_VDPAU_VIDEO_422
)
if
(
filter
->
fmt_in
.
video
.
i_chroma
==
VLC_CODEC_VDPAU_VIDEO_422
)
{
{
sys
->
chroma
=
VDP_CHROMA_TYPE_422
;
sys
->
chroma
=
VDP_CHROMA_TYPE_422
;
/* TODO: check if the drivery supports NV12 or UYVY */
sys
->
format
=
VDP_YCBCR_FORMAT_UYVY
;
sys
->
format
=
VDP_YCBCR_FORMAT_UYVY
;
sys
->
import
=
VideoPassthrough
;
sys
->
import
=
VideoPassthrough
;
}
}
...
...
modules/hw/vdpau/vlc_vdpau.h
View file @
5f10d7cc
...
@@ -225,6 +225,14 @@ bool vlc_fourcc_to_vdp_ycc(vlc_fourcc_t fourcc,
...
@@ -225,6 +225,14 @@ bool vlc_fourcc_to_vdp_ycc(vlc_fourcc_t fourcc,
*
type
=
VDP_CHROMA_TYPE_420
;
*
type
=
VDP_CHROMA_TYPE_420
;
*
format
=
VDP_YCBCR_FORMAT_NV12
;
*
format
=
VDP_YCBCR_FORMAT_NV12
;
break
;
break
;
case
VLC_CODEC_I422
:
*
type
=
VDP_CHROMA_TYPE_422
;
*
format
=
VDP_YCBCR_FORMAT_YV12
;
break
;
case
VLC_CODEC_NV16
:
*
type
=
VDP_CHROMA_TYPE_422
;
*
format
=
VDP_YCBCR_FORMAT_NV12
;
break
;
case
VLC_CODEC_YUYV
:
case
VLC_CODEC_YUYV
:
*
type
=
VDP_CHROMA_TYPE_422
;
*
type
=
VDP_CHROMA_TYPE_422
;
*
format
=
VDP_YCBCR_FORMAT_YUYV
;
*
format
=
VDP_YCBCR_FORMAT_YUYV
;
...
...
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