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
8298b541
Commit
8298b541
authored
Jan 10, 2014
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix libopenjpeg colour range adjust for 8<bpp<16.
Fixes ticket #3284. Reviewed-by: Michael Bradshaw
parent
8b7cce44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libopenjpegdec.c
libavcodec/libopenjpegdec.c
+2
-2
No files found.
libavcodec/libopenjpegdec.c
View file @
8298b541
...
...
@@ -173,7 +173,7 @@ static inline void libopenjpeg_copy_to_packed16(AVFrame *picture, opj_image_t *i
int
index
,
x
,
y
,
c
;
int
adjust
[
4
];
for
(
x
=
0
;
x
<
image
->
numcomps
;
x
++
)
adjust
[
x
]
=
FFMAX
(
FFMIN
(
16
-
image
->
comps
[
x
].
prec
,
8
),
0
);
adjust
[
x
]
=
FFMAX
(
FFMIN
(
av_pix_fmt_desc_get
(
picture
->
format
)
->
comp
[
x
].
depth_minus1
+
1
-
image
->
comps
[
x
].
prec
,
8
),
0
);
for
(
y
=
0
;
y
<
picture
->
height
;
y
++
)
{
index
=
y
*
picture
->
width
;
...
...
@@ -210,7 +210,7 @@ static inline void libopenjpeg_copyto16(AVFrame *picture, opj_image_t *image) {
int
index
,
x
,
y
;
int
adjust
[
4
];
for
(
x
=
0
;
x
<
image
->
numcomps
;
x
++
)
adjust
[
x
]
=
FFMAX
(
FFMIN
(
16
-
image
->
comps
[
x
].
prec
,
8
),
0
);
adjust
[
x
]
=
FFMAX
(
FFMIN
(
av_pix_fmt_desc_get
(
picture
->
format
)
->
comp
[
x
].
depth_minus1
+
1
-
image
->
comps
[
x
].
prec
,
8
),
0
);
for
(
index
=
0
;
index
<
image
->
numcomps
;
index
++
)
{
comp_data
=
image
->
comps
[
index
].
data
;
...
...
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