typedef struct {
    Xil_unsigned8 *dptr;    /* current pointer into the bitstream    */
    Xil_unsigned8 *start;    /* pointer to start of the bitstream     */
    int fd;    /* file descriptor of bitstream file     */
    int len;    /* length (bytes) of bitstream memory    */
    int currentFrame;    /* current frame number                  */
    Xil_unsigned8 *mstart;    /* pointer to start of first image       */
    int   mlen;    /* length of bitstrean from first image  */
} MFILE;

void openfile( MFILE*, char*);
void attach_file( MFILE*, char *);
/* void detach_file( MFILE* ); */
void init_memfile( MFILE* );


