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
4efc9b81
Commit
4efc9b81
authored
Oct 24, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tansform: separate transform callback for each picture plane
parent
8d88c980
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
modules/video_filter/transform.c
modules/video_filter/transform.c
+9
-6
No files found.
modules/video_filter/transform.c
View file @
4efc9b81
...
...
@@ -234,7 +234,7 @@ static const size_t n_transforms =
struct
filter_sys_t
{
const
vlc_chroma_description_t
*
chroma
;
void
(
*
plane
)(
plane_t
*
,
const
plane_t
*
);
void
(
*
plane
[
PICTURE_PLANE_MAX
]
)(
plane_t
*
,
const
plane_t
*
);
convert_t
convert
;
};
...
...
@@ -250,7 +250,7 @@ static picture_t *Filter(filter_t *filter, picture_t *src)
const
vlc_chroma_description_t
*
chroma
=
sys
->
chroma
;
for
(
unsigned
i
=
0
;
i
<
chroma
->
plane_count
;
i
++
)
sys
->
plane
(
&
dst
->
p
[
i
],
&
src
->
p
[
i
]);
(
sys
->
plane
[
i
])
(
&
dst
->
p
[
i
],
&
src
->
p
[
i
]);
picture_CopyProperties
(
dst
,
src
);
picture_Release
(
src
);
...
...
@@ -307,13 +307,13 @@ static int Open(vlc_object_t *object)
switch
(
chroma
->
pixel_size
)
{
case
1
:
sys
->
plane
=
dsc
->
plane8
;
sys
->
plane
[
0
]
=
dsc
->
plane8
;
break
;
case
2
:
sys
->
plane
=
dsc
->
plane16
;
sys
->
plane
[
0
]
=
dsc
->
plane16
;
break
;
case
4
:
sys
->
plane
=
dsc
->
plane32
;
sys
->
plane
[
0
]
=
dsc
->
plane32
;
break
;
default:
msg_Err
(
filter
,
"Unsupported pixel size %u (chroma %4.4s)"
,
...
...
@@ -321,7 +321,10 @@ static int Open(vlc_object_t *object)
goto
error
;
}
for
(
unsigned
i
=
1
;
i
<
PICTURE_PLANE_MAX
;
i
++
)
sys
->
plane
[
i
]
=
sys
->
plane
[
0
];
sys
->
convert
=
dsc
->
convert
;
if
(
dsc_is_rotated
(
dsc
))
{
for
(
unsigned
i
=
0
;
i
<
chroma
->
plane_count
;
i
++
)
{
if
(
chroma
->
p
[
i
].
w
.
num
*
chroma
->
p
[
i
].
h
.
den
...
...
@@ -357,7 +360,7 @@ static int Open(vlc_object_t *object)
/* fallthrough */
case
VLC_CODEC_YUYV
:
case
VLC_CODEC_YVYU
:
sys
->
plane
=
dsc
->
yuyv
;
/* 32-bits, not 16-bits! */
sys
->
plane
[
0
]
=
dsc
->
yuyv
;
/* 32-bits, not 16-bits! */
break
;
case
VLC_CODEC_NV12
:
case
VLC_CODEC_NV21
:
...
...
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