Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
55c94f48
Commit
55c94f48
authored
Jul 08, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/drawutils: fix planar rgb
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
d2dd1e07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
drawutils.c
libavfilter/drawutils.c
+6
-1
filter-pixfmts-pad
tests/ref/fate/filter-pixfmts-pad
+2
-2
No files found.
libavfilter/drawutils.c
View file @
55c94f48
...
...
@@ -197,10 +197,15 @@ void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, const uint8_t rgba[4
if
(
rgba
!=
color
->
rgba
)
memcpy
(
color
->
rgba
,
rgba
,
sizeof
(
color
->
rgba
));
if
((
draw
->
desc
->
flags
&
AV_PIX_FMT_FLAG_RGB
)
&&
draw
->
nb_planes
==
1
&&
if
((
draw
->
desc
->
flags
&
AV_PIX_FMT_FLAG_RGB
)
&&
ff_fill_rgba_map
(
rgba_map
,
draw
->
format
)
>=
0
)
{
if
(
draw
->
nb_planes
==
1
)
{
for
(
i
=
0
;
i
<
4
;
i
++
)
color
->
comp
[
0
].
u8
[
rgba_map
[
i
]]
=
rgba
[
i
];
}
else
{
for
(
i
=
0
;
i
<
4
;
i
++
)
color
->
comp
[
rgba_map
[
i
]].
u8
[
0
]
=
rgba
[
i
];
}
}
else
if
(
draw
->
nb_planes
==
3
||
draw
->
nb_planes
==
4
)
{
/* assume YUV */
color
->
comp
[
0
].
u8
[
0
]
=
RGB_TO_Y_CCIR
(
rgba
[
0
],
rgba
[
1
],
rgba
[
2
]);
...
...
tests/ref/fate/filter-pixfmts-pad
View file @
55c94f48
...
...
@@ -5,8 +5,8 @@ argb e5fbb7bb282a80897b8f730627f68876
bgr0 c55368036cccbb0af471d6bd82abe02a
bgr24 67f9fd70dc6d9896b7122976b33932b4
bgra c8dd017b5a3b55e8b9d0ac1cdcf327bd
gbrap
23e8ef832c4aef52c6183f429ac86b32
gbrp
74f83deee9866bbdce3f91fa2aeddaa
a
gbrap
8551b62534034c8aaebaa7d9fdefdfe9
gbrp
4f3b389ed3f8a3945560a36f862b452
a
gray ca280f6888a9b66688b5f8ea68fe454a
rgb0 b1977b45634c4db58a183a07feb2acff
rgb24 e73de9dc0fdd78f4853c168603cc7aba
...
...
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