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
e66faf71
Commit
e66faf71
authored
May 26, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
j2k: merge ff_j2k_init_tier1_luts()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b67fe48f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
14 deletions
+3
-14
j2k.c
libavcodec/j2k.c
+0
-11
j2k.h
libavcodec/j2k.h
+1
-1
j2kdec.c
libavcodec/j2kdec.c
+1
-1
j2kenc.c
libavcodec/j2kenc.c
+1
-1
No files found.
libavcodec/j2k.c
View file @
e66faf71
...
...
@@ -161,17 +161,6 @@ static int getsgnctxno(int flag, uint8_t *xorbit)
return
ctxlbltab
[
hcontrib
][
vcontrib
];
}
void
ff_j2k_init_tier1_luts
(
void
)
{
int
i
,
j
;
for
(
i
=
0
;
i
<
256
;
i
++
)
for
(
j
=
0
;
j
<
4
;
j
++
)
ff_jpeg2000_sigctxno_lut
[
i
][
j
]
=
getsigctxno
(
i
,
j
);
for
(
i
=
0
;
i
<
16
;
i
++
)
for
(
j
=
0
;
j
<
16
;
j
++
)
ff_jpeg2000_sgnctxno_lut
[
i
][
j
]
=
getsgnctxno
(
i
+
(
j
<<
8
),
&
ff_jpeg2000_xorbit_lut
[
i
][
j
]);
}
void
ff_j2k_set_significant
(
Jpeg2000T1Context
*
t1
,
int
x
,
int
y
,
int
negative
)
{
x
++
;
y
++
;
...
...
libavcodec/j2k.h
View file @
e66faf71
...
...
@@ -207,7 +207,7 @@ static inline int ff_jpeg2000_ceildiv(int a, int b)
Jpeg2000TgtNode
*
ff_j2k_tag_tree_init
(
int
w
,
int
h
);
/* TIER-1 routines */
void
ff_j
2k
_init_tier1_luts
(
void
);
void
ff_j
peg2000
_init_tier1_luts
(
void
);
void
ff_j2k_set_significant
(
Jpeg2000T1Context
*
t1
,
int
x
,
int
y
,
int
negative
);
...
...
libavcodec/j2kdec.c
View file @
e66faf71
...
...
@@ -1088,7 +1088,7 @@ static av_cold int j2kdec_init(AVCodecContext *avctx)
s
->
avctx
=
avctx
;
ff_j
2k
_init_tier1_luts
();
ff_j
peg2000
_init_tier1_luts
();
return
0
;
}
...
...
libavcodec/j2kenc.c
View file @
e66faf71
...
...
@@ -1003,7 +1003,7 @@ static av_cold int j2kenc_init(AVCodecContext *avctx)
s
->
chroma_shift
,
s
->
chroma_shift
+
1
);
}
ff_j
2k
_init_tier1_luts
();
ff_j
peg2000
_init_tier1_luts
();
init_luts
();
...
...
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