Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
9bb196b5
Commit
9bb196b5
authored
May 26, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_filter/swscale/filter.c: Added support for YUVA.
parent
eb57119f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
modules/video_filter/swscale/filter.c
modules/video_filter/swscale/filter.c
+11
-2
No files found.
modules/video_filter/swscale/filter.c
View file @
9bb196b5
...
...
@@ -261,6 +261,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
uint8_t
*
dst
[
3
];
int
dst_stride
[
3
];
picture_t
*
p_pic_dst
;
int
i_plane
;
int
i_nb_planes
=
p_pic
->
i_planes
;
/* Check if format properties changed */
if
(
CheckInit
(
p_filter
)
!=
VLC_SUCCESS
)
return
0
;
...
...
@@ -273,12 +274,19 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
return
NULL
;
}
for
(
i_plane
=
0
;
i_plane
<
p_pic
->
i_planes
;
i_plane
++
)
if
(
p_filter
->
fmt_out
.
video
.
i_chroma
==
VLC_FOURCC
(
'Y'
,
'U'
,
'V'
,
'A'
)
)
{
i_nb_planes
=
3
;
memset
(
p_pic_dst
->
p
[
3
].
p_pixels
,
0xff
,
p_filter
->
fmt_out
.
video
.
i_height
*
p_pic_dst
->
p
[
3
].
i_pitch
);
}
for
(
i_plane
=
0
;
i_plane
<
__MIN
(
3
,
p_pic
->
i_planes
);
i_plane
++
)
{
src
[
i_plane
]
=
p_pic
->
p
[
i_plane
].
p_pixels
;
src_stride
[
i_plane
]
=
p_pic
->
p
[
i_plane
].
i_pitch
;
}
for
(
i_plane
=
0
;
i_plane
<
p_pic_dst
->
i_planes
;
i_plane
++
)
for
(
i_plane
=
0
;
i_plane
<
__MIN
(
3
,
i_nb_planes
)
;
i_plane
++
)
{
dst
[
i_plane
]
=
p_pic_dst
->
p
[
i_plane
].
p_pixels
;
dst_stride
[
i_plane
]
=
p_pic_dst
->
p
[
i_plane
].
i_pitch
;
...
...
@@ -313,6 +321,7 @@ static struct
{
VLC_FOURCC
(
'I'
,
'4'
,
'2'
,
'0'
),
IMGFMT_I420
},
{
VLC_FOURCC
(
'I'
,
'Y'
,
'U'
,
'V'
),
IMGFMT_IYUV
},
{
VLC_FOURCC
(
'I'
,
'4'
,
'4'
,
'4'
),
IMGFMT_444P
},
{
VLC_FOURCC
(
'Y'
,
'U'
,
'V'
,
'A'
),
IMGFMT_444P
},
{
VLC_FOURCC
(
'I'
,
'4'
,
'2'
,
'2'
),
IMGFMT_422P
},
{
VLC_FOURCC
(
'I'
,
'4'
,
'1'
,
'1'
),
IMGFMT_411P
},
#if 0
...
...
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