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
d9acc0bc
Commit
d9acc0bc
authored
Jul 07, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chroma_yuv_neon: add conversions to YVYU and VYUY (come for free)
parent
29d7063d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
modules/arm_neon/chroma_yuv.c
modules/arm_neon/chroma_yuv.c
+18
-6
No files found.
modules/arm_neon/chroma_yuv.c
View file @
d9acc0bc
...
...
@@ -54,14 +54,14 @@ static void I420_YUYV (filter_t *filter, picture_t *src, picture_t *dst)
}
VIDEO_FILTER_WRAPPER
(
I420_YUYV
)
static
void
YV12_YUYV
(
filter_t
*
filter
,
picture_t
*
src
,
picture_t
*
dst
)
static
void
I420_YVYU
(
filter_t
*
filter
,
picture_t
*
src
,
picture_t
*
dst
)
{
DEFINE_PACK
(
out
,
dst
);
DEFINE_PLANES_SWAP
(
in
,
src
);
i420_yuyv_neon
(
&
out
,
&
in
,
filter
->
fmt_in
.
video
.
i_width
,
filter
->
fmt_in
.
video
.
i_height
);
}
VIDEO_FILTER_WRAPPER
(
YV12_YUYV
)
VIDEO_FILTER_WRAPPER
(
I420_YVYU
)
static
void
I420_UYVY
(
filter_t
*
filter
,
picture_t
*
src
,
picture_t
*
dst
)
{
...
...
@@ -72,14 +72,14 @@ static void I420_UYVY (filter_t *filter, picture_t *src, picture_t *dst)
}
VIDEO_FILTER_WRAPPER
(
I420_UYVY
)
static
void
YV12_UYV
Y
(
filter_t
*
filter
,
picture_t
*
src
,
picture_t
*
dst
)
static
void
I420_VYU
Y
(
filter_t
*
filter
,
picture_t
*
src
,
picture_t
*
dst
)
{
DEFINE_PACK
(
out
,
dst
);
DEFINE_PLANES_SWAP
(
in
,
src
);
i420_uyvy_neon
(
&
out
,
&
in
,
filter
->
fmt_in
.
video
.
i_width
,
filter
->
fmt_in
.
video
.
i_height
);
}
VIDEO_FILTER_WRAPPER
(
YV12_UYV
Y
)
VIDEO_FILTER_WRAPPER
(
I420_VYU
Y
)
static
int
Open
(
vlc_object_t
*
obj
)
{
...
...
@@ -103,6 +103,12 @@ static int Open (vlc_object_t *obj)
case
VLC_CODEC_UYVY
:
filter
->
pf_video_filter
=
I420_UYVY_Filter
;
break
;
case
VLC_CODEC_YVYU
:
filter
->
pf_video_filter
=
I420_YVYU_Filter
;
break
;
case
VLC_CODEC_VYUY
:
filter
->
pf_video_filter
=
I420_VYUY_Filter
;
break
;
default:
return
VLC_EGENERIC
;
}
...
...
@@ -112,10 +118,16 @@ static int Open (vlc_object_t *obj)
switch
(
filter
->
fmt_out
.
video
.
i_chroma
)
{
case
VLC_CODEC_YUYV
:
filter
->
pf_video_filter
=
YV12_YUYV
_Filter
;
filter
->
pf_video_filter
=
I420_YVYU
_Filter
;
break
;
case
VLC_CODEC_UYVY
:
filter
->
pf_video_filter
=
YV12_UYVY_Filter
;
filter
->
pf_video_filter
=
I420_VYUY_Filter
;
break
;
case
VLC_CODEC_YVYU
:
filter
->
pf_video_filter
=
I420_YUYV_Filter
;
break
;
case
VLC_CODEC_VYUY
:
filter
->
pf_video_filter
=
I420_UYVY_Filter
;
break
;
default:
return
VLC_EGENERIC
;
...
...
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