/*******************************************************************
                            GOP interface
 *******************************************************************/

#ifndef GOP_H
#define GOP_H

#include "mpeg_io.h"
#include "picture_header.h"
#include "timecode.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
	size_t offset;
	int frame;
} GOP;

typedef GOP (* find_gop)(void *, int);

typedef struct {
	void *   arg1;
	find_gop func;
} FIND_GOP;

#ifndef GOP_C
extern int next_gop(MPEG_IO *p);
extern GOP mpeg_io_find_gop(void *p, int frame);
#endif

#ifdef __cplusplus
}
#endif

#endif
