mirror of https://git.ffmpeg.org/ffmpeg.git
j2k: cosmetics from jpeg2000
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6e16321d66
commit
874a06bd1f
|
@ -34,8 +34,7 @@
|
|||
|
||||
/* tag tree routines */
|
||||
|
||||
/** allocate the memory for tag tree */
|
||||
|
||||
/* allocate the memory for tag tree */
|
||||
static int tag_tree_size(int w, int h)
|
||||
{
|
||||
int res = 0;
|
||||
|
@ -144,9 +143,11 @@ static int getsgnctxno(int flag, uint8_t *xorbit)
|
|||
return ctxlbltab[hcontrib][vcontrib];
|
||||
}
|
||||
|
||||
void ff_j2k_set_significant(Jpeg2000T1Context *t1, int x, int y, int negative)
|
||||
void ff_j2k_set_significant(Jpeg2000T1Context *t1, int x, int y,
|
||||
int negative)
|
||||
{
|
||||
x++; y++;
|
||||
x++;
|
||||
y++;
|
||||
t1->flags[y][x] |= JPEG2000_T1_SIG;
|
||||
if (negative) {
|
||||
t1->flags[y][x + 1] |= JPEG2000_T1_SIG_W | JPEG2000_T1_SGN_W;
|
||||
|
|
Loading…
Reference in New Issue