-ihdrbox_param_t * get_SIZ_from_jpipstream( Byte_t *jpipstream, msgqueue_param_t *msgqueue, Byte8_t csn)
-{
- ihdrbox_param_t *ihdrbox;
- Byte_t *j2kstream;
- Byte8_t j2klen;
- SIZmarker_param_t SIZ;
-
- j2kstream = recons_j2kmainhead( msgqueue, jpipstream, csn, &j2klen);
- if( !get_mainheader_from_j2kstream( j2kstream, &SIZ, NULL)){
- opj_free( j2kstream);
- return NULL;
- }
-
- ihdrbox = (ihdrbox_param_t *)opj_malloc( sizeof(ihdrbox_param_t));
-
- ihdrbox->width = SIZ.Xsiz;
- ihdrbox->height = SIZ.Ysiz;
- ihdrbox->nc = SIZ.Csiz;
- ihdrbox->bpc = SIZ.Ssiz[0];
-
- opj_free( j2kstream);
-
- return ihdrbox;