j2k: cosmetics from jpeg2000

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-05-26 19:00:56 +02:00
parent 6e16321d66
commit 874a06bd1f
2 changed files with 54 additions and 53 deletions

View File

@ -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;