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
e75ef2b7
Commit
e75ef2b7
authored
Sep 25, 2011
by
Jean First
Committed by
Justin Ruggles
Apr 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tiffdec: support predictor type 2 with RGB48 pixel format
parent
345a96c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
tiff.c
libavcodec/tiff.c
+18
-4
No files found.
libavcodec/tiff.c
View file @
e75ef2b7
...
@@ -635,10 +635,24 @@ static int decode_frame(AVCodecContext *avctx,
...
@@ -635,10 +635,24 @@ static int decode_frame(AVCodecContext *avctx,
dst
=
p
->
data
[
0
];
dst
=
p
->
data
[
0
];
soff
=
s
->
bpp
>>
3
;
soff
=
s
->
bpp
>>
3
;
ssize
=
s
->
width
*
soff
;
ssize
=
s
->
width
*
soff
;
for
(
i
=
0
;
i
<
s
->
height
;
i
++
)
{
if
(
s
->
avctx
->
pix_fmt
==
PIX_FMT_RGB48LE
)
{
for
(
j
=
soff
;
j
<
ssize
;
j
++
)
for
(
i
=
0
;
i
<
s
->
height
;
i
++
)
{
dst
[
j
]
+=
dst
[
j
-
soff
];
for
(
j
=
soff
;
j
<
ssize
;
j
+=
2
)
dst
+=
stride
;
AV_WL16
(
dst
+
j
,
AV_RL16
(
dst
+
j
)
+
AV_RL16
(
dst
+
j
-
soff
));
dst
+=
stride
;
}
}
else
if
(
s
->
avctx
->
pix_fmt
==
PIX_FMT_RGB48BE
)
{
for
(
i
=
0
;
i
<
s
->
height
;
i
++
)
{
for
(
j
=
soff
;
j
<
ssize
;
j
+=
2
)
AV_WB16
(
dst
+
j
,
AV_RB16
(
dst
+
j
)
+
AV_RB16
(
dst
+
j
-
soff
));
dst
+=
stride
;
}
}
else
{
for
(
i
=
0
;
i
<
s
->
height
;
i
++
)
{
for
(
j
=
soff
;
j
<
ssize
;
j
++
)
dst
[
j
]
+=
dst
[
j
-
soff
];
dst
+=
stride
;
}
}
}
}
}
...
...
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