www.pudn.com > J2KLib.rar > pi.h


#ifndef __PI_H
#define __PI_H

#include "j2k.h"
#include "tcd.h"

typedef struct {
    int pdx, pdy;
    int pw, ph;
} pi_resolution_t;

typedef struct {
    int dx, dy;
    int numresolutions;
    pi_resolution_t *resolutions;
} pi_comp_t;

typedef struct {
    int compno, resno, precno, layno;
    int first;
    j2k_poc_t poc;
    int numcomps;
    pi_comp_t *comps;
    int tx0, ty0, tx1, ty1;
    int x, y, dx, dy;
} pi_iterator_t;

pi_iterator_t *pi_create(j2k_image_t *img, j2k_cp_t *cp, int tileno);
int pi_next(pi_iterator_t *pi);
void pi_destroy(pi_iterator_t *pi); 

#endif