static void read_sgi_header(ByteIOContext *f, SGIInfo *info)
{
    info->magic = (unsigned short) get_be16(f);
    info->rle = get_byte(f);
    info->bytes_per_channel = get_byte(f);
    info->dimension = (unsigned short)get_be16(f);
    info->xsize = (unsigned short) get_be16(f);
    info->ysize = (unsigned short) get_be16(f);
    info->zsize = (unsigned short) get_be16(f);
#ifdef DEBUG
    printf("sgi header fields:\n");
    printf("  magic: %d\n", info->magic);
    printf("    rle: %d\n", info->rle);
    printf("    bpc: %d\n", info->bytes_per_channel);
    printf("    dim: %d\n", info->dimension);
    printf("  xsize: %d\n", info->xsize);
    printf("  ysize: %d\n", info->ysize);
    printf("  zsize: %d\n", info->zsize);
#endif
    return;
}
static void read_sgi_header(ByteIOContext *f, SGIInfo *info)
{
    info->magic = (unsigned short) get_be16(f);
    info->rle = get_byte(f);
    info->bytes_per_channel = get_byte(f);
    info->dimension = (unsigned short)get_be16(f);
    info->xsize = (unsigned short) get_be16(f);
    info->ysize = (unsigned short) get_be16(f);
    info->zsize = (unsigned short) get_be16(f);
#ifdef DEBUG
    printf("sgi header fields:\n");
    printf("  magic: %d\n", info->magic);
    printf("    rle: %d\n", info->rle);
    printf("    bpc: %d\n", info->bytes_per_channel);
    printf("    dim: %d\n", info->dimension);
    printf("  xsize: %d\n", info->xsize);
    printf("  ysize: %d\n", info->ysize);
    printf("  zsize: %d\n", info->zsize);
#endif
    return;
}
static void FUNC_0(ByteIOContext *VAR_0, SGIInfo *VAR_1)
{
    VAR_1->magic = (unsigned short) get_be16(VAR_0);
    VAR_1->rle = get_byte(VAR_0);
    VAR_1->bytes_per_channel = get_byte(VAR_0);
    VAR_1->dimension = (unsigned short)get_be16(VAR_0);
    VAR_1->xsize = (unsigned short) get_be16(VAR_0);
    VAR_1->ysize = (unsigned short) get_be16(VAR_0);
    VAR_1->zsize = (unsigned short) get_be16(VAR_0);
#ifdef DEBUG
    printf("sgi header fields:\n");
    printf("  magic: %d\n", VAR_1->magic);
    printf("    rle: %d\n", VAR_1->rle);
    printf("    bpc: %d\n", VAR_1->bytes_per_channel);
    printf("    dim: %d\n", VAR_1->dimension);
    printf("  xsize: %d\n", VAR_1->xsize);
    printf("  ysize: %d\n", VAR_1->ysize);
    printf("  zsize: %d\n", VAR_1->zsize);
#endif
    return;
}
static void FUNC_0(ByteIOContext *VAR_0, SGIInfo *VAR_1)
{ VAR_1->magic = (unsigned short) get_be16(VAR_0); VAR_1->rle = get_byte(VAR_0); VAR_1->bytes_per_channel = get_byte(VAR_0); VAR_1->dimension = (unsigned short)get_be16(VAR_0); VAR_1->xsize = (unsigned short) get_be16(VAR_0); VAR_1->ysize = (unsigned short) get_be16(VAR_0); VAR_1->zsize = (unsigned short) get_be16(VAR_0); #ifdef DEBUG
printf("sgi header fields:\n"); printf("  magic: %d\n", VAR_1->magic); printf("    rle: %d\n", VAR_1->rle); printf("    bpc: %d\n", VAR_1->bytes_per_channel); printf("    dim: %d\n", VAR_1->dimension); printf("  xsize: %d\n", VAR_1->xsize); printf("  ysize: %d\n", VAR_1->ysize); printf("  zsize: %d\n", VAR_1->zsize); #endif
return; }