[trunk]rename t1_enc_refpass_step and t1_enc_repass with opj_ prefix and update types used in theses functions

This commit is contained in:
Mickael Savinaud 2012-09-27 13:56:48 +00:00
parent a00f61bd5d
commit cf212e55ac
1 changed files with 33 additions and 33 deletions

View File

@ -93,26 +93,24 @@ static void opj_t1_dec_sigpass( opj_t1_t *t1,
/** /**
Encode refinement pass Encode refinement pass
*/ */
static void t1_enc_refpass_step( static void opj_t1_enc_refpass_step(opj_t1_t *t1,
opj_t1_t *t1, flag_t *flagsp,
flag_t *flagsp, OPJ_INT32 *datap,
int *datap, OPJ_INT32 bpno,
int bpno, OPJ_INT32 one,
int one, OPJ_INT32 *nmsedec,
int *nmsedec, OPJ_BYTE type,
char type, OPJ_UINT32 vsc);
int vsc);
/** /**
Encode refinement pass Encode refinement pass
*/ */
static void t1_enc_refpass( static void opj_t1_enc_refpass( opj_t1_t *t1,
opj_t1_t *t1, OPJ_INT32 bpno,
int bpno, OPJ_INT32 *nmsedec,
int *nmsedec, OPJ_BYTE type,
char type, OPJ_UINT32 cblksty);
int cblksty);
/** /**
Decode refinement pass Decode refinement pass
@ -374,17 +372,17 @@ void opj_t1_enc_sigpass(opj_t1_t *t1,
} }
static void t1_enc_refpass_step( void opj_t1_enc_refpass_step( opj_t1_t *t1,
opj_t1_t *t1, flag_t *flagsp,
flag_t *flagsp, OPJ_INT32 *datap,
int *datap, OPJ_INT32 bpno,
int bpno, OPJ_INT32 one,
int one, OPJ_INT32 *nmsedec,
int *nmsedec, OPJ_BYTE type,
char type, OPJ_UINT32 vsc)
int vsc)
{ {
int v, flag; OPJ_INT32 v;
OPJ_UINT32 flag;
opj_mqc_t *mqc = t1->mqc; /* MQC component */ opj_mqc_t *mqc = t1->mqc; /* MQC component */
@ -403,21 +401,23 @@ static void t1_enc_refpass_step(
} }
static void t1_enc_refpass( void opj_t1_enc_refpass(
opj_t1_t *t1, opj_t1_t *t1,
int bpno, OPJ_INT32 bpno,
int *nmsedec, OPJ_INT32 *nmsedec,
char type, OPJ_BYTE type,
int cblksty) OPJ_UINT32 cblksty)
{ {
int i, j, k, one, vsc; OPJ_UINT32 i, j, k, vsc;
OPJ_INT32 one;
*nmsedec = 0; *nmsedec = 0;
one = 1 << (bpno + T1_NMSEDEC_FRACBITS); one = 1 << (bpno + T1_NMSEDEC_FRACBITS);
for (k = 0; k < t1->h; k += 4) { for (k = 0; k < t1->h; k += 4) {
for (i = 0; i < t1->w; ++i) { for (i = 0; i < t1->w; ++i) {
for (j = k; j < k + 4 && j < t1->h; ++j) { for (j = k; j < k + 4 && j < t1->h; ++j) {
vsc = ((cblksty & J2K_CCP_CBLKSTY_VSC) && (j == k + 3 || j == t1->h - 1)) ? 1 : 0; vsc = ((cblksty & J2K_CCP_CBLKSTY_VSC) && (j == k + 3 || j == t1->h - 1)) ? 1 : 0;
t1_enc_refpass_step( opj_t1_enc_refpass_step(
t1, t1,
&t1->flags[((j+1) * t1->flags_stride) + i + 1], &t1->flags[((j+1) * t1->flags_stride) + i + 1],
&t1->data[(j * t1->w) + i], &t1->data[(j * t1->w) + i],
@ -1202,7 +1202,7 @@ void opj_t1_encode_cblk(opj_t1_t *t1,
opj_t1_enc_sigpass(t1, bpno, orient, &nmsedec, type, cblksty); opj_t1_enc_sigpass(t1, bpno, orient, &nmsedec, type, cblksty);
break; break;
case 1: case 1:
t1_enc_refpass(t1, bpno, &nmsedec, type, cblksty); opj_t1_enc_refpass(t1, bpno, &nmsedec, type, cblksty);
break; break;
case 2: case 2:
t1_enc_clnpass(t1, bpno, orient, &nmsedec, cblksty); t1_enc_clnpass(t1, bpno, orient, &nmsedec, cblksty);