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
f381dc1d
Commit
f381dc1d
authored
May 06, 2013
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support decoding of Lagarith frame type FRAME_SOLID_COLOR.
Fixes bug 459.
parent
9276467b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
lagarith.c
libavcodec/lagarith.c
+22
-0
No files found.
libavcodec/lagarith.c
View file @
f381dc1d
...
@@ -556,6 +556,28 @@ static int lag_decode_frame(AVCodecContext *avctx,
...
@@ -556,6 +556,28 @@ static int lag_decode_frame(AVCodecContext *avctx,
}
}
}
}
break
;
break
;
case
FRAME_SOLID_COLOR
:
if
(
avctx
->
bits_per_coded_sample
==
24
)
{
avctx
->
pix_fmt
=
AV_PIX_FMT_RGB24
;
}
else
{
avctx
->
pix_fmt
=
AV_PIX_FMT_RGB32
;
offset_gu
|=
0xFFU
<<
24
;
}
if
((
ret
=
ff_thread_get_buffer
(
avctx
,
&
frame
,
0
))
<
0
)
return
ret
;
dst
=
p
->
data
[
0
];
for
(
j
=
0
;
j
<
avctx
->
height
;
j
++
)
{
for
(
i
=
0
;
i
<
avctx
->
width
;
i
++
)
if
(
avctx
->
bits_per_coded_sample
==
24
)
{
AV_WB24
(
dst
+
i
*
3
,
offset_gu
);
}
else
{
AV_WN32
(
dst
+
i
*
4
,
offset_gu
);
}
dst
+=
p
->
linesize
[
0
];
}
break
;
case
FRAME_ARITH_RGBA
:
case
FRAME_ARITH_RGBA
:
avctx
->
pix_fmt
=
AV_PIX_FMT_RGB32
;
avctx
->
pix_fmt
=
AV_PIX_FMT_RGB32
;
planes
=
4
;
planes
=
4
;
...
...
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