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
74a78bfe
Commit
74a78bfe
authored
Feb 24, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exr: simplify filling channel_buffer[]
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
645f96f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
exr.c
libavcodec/exr.c
+8
-13
No files found.
libavcodec/exr.c
View file @
74a78bfe
...
...
@@ -295,22 +295,17 @@ static int decode_block(AVCodecContext *avctx, void *tdata,
}
}
if
(
s
->
compr
!=
EXR_RAW
&&
data_size
<
uncompressed_size
)
{
if
(
data_size
<
uncompressed_size
)
{
predictor
(
td
->
tmp
,
uncompressed_size
);
reorder_pixels
(
td
->
tmp
,
td
->
uncompressed_data
,
uncompressed_size
);
src
=
td
->
uncompressed_data
;
}
channel_buffer
[
0
]
=
td
->
uncompressed_data
+
xdelta
*
s
->
channel_offsets
[
0
];
channel_buffer
[
1
]
=
td
->
uncompressed_data
+
xdelta
*
s
->
channel_offsets
[
1
];
channel_buffer
[
2
]
=
td
->
uncompressed_data
+
xdelta
*
s
->
channel_offsets
[
2
];
if
(
s
->
channel_offsets
[
3
]
>=
0
)
channel_buffer
[
3
]
=
td
->
uncompressed_data
+
xdelta
*
s
->
channel_offsets
[
3
];
}
else
{
channel_buffer
[
0
]
=
src
+
xdelta
*
s
->
channel_offsets
[
0
];
channel_buffer
[
1
]
=
src
+
xdelta
*
s
->
channel_offsets
[
1
];
channel_buffer
[
2
]
=
src
+
xdelta
*
s
->
channel_offsets
[
2
];
if
(
s
->
channel_offsets
[
3
]
>=
0
)
channel_buffer
[
3
]
=
src
+
xdelta
*
s
->
channel_offsets
[
3
];
}
ptr
=
p
->
data
[
0
]
+
line
*
p
->
linesize
[
0
];
for
(
i
=
0
;
i
<
s
->
scan_lines_per_block
&&
line
+
i
<=
s
->
ymax
;
i
++
,
ptr
+=
p
->
linesize
[
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