/*
 * (c) 2005 Research Group Dr. Fuhrmann, University of Karlsruhe, Germany
 * All rights reserved.
 *
 * Author:
 *         Stefan Denk <denk@ira.uka.de>
 *
 * $Id: parsefile.h,v 1.9 2005/12/27 11:42:06 kutzner Exp $
 *
 */

#ifndef _PARSEFILE_H_
#define _PARSEFILE_H_

// libc

#include <stdint.h>
#include <stdio.h>

#define BUFFER_SIZE 4096

int parsefile (char *videofile, char *videodatafile);

///\bug doc me
typedef struct
{
  uint32_t hash;		// lokal + uebertragen
  uint32_t picno;		// lokal
  uint32_t length;		// uebertragen
  uint32_t offset;		// lokal
} vid;

///\bug doc me
typedef struct
{
  unsigned int pos;
  unsigned int len;
  unsigned long offset;
  FILE *fp;
  unsigned char buffer[BUFFER_SIZE];
} fget_buf_t;

#endif // _PARSEFILE_H_
