mkvtoolnix/r_generic.h
Moritz Bunkus 8cf534dcd0 well stuff
2003-02-16 11:44:19 +00:00

41 lines
977 B
C++

/*
mkvmerge -- utility for splicing together matroska files
from component media subtypes
r_generic.h
class definitions for the generic reader
Written by Moritz Bunkus <moritz@bunkus.org>
Distributed under the GPL
see the file COPYING for details
or visit http://www.gnu.org/copyleft/gpl.html
*/
#ifndef __R_GENERIC_H__
#define __R_GENERIC_H__
#include <stdio.h>
typedef struct {
char *data;
int length;
u_int64_t timestamp;
int is_key;
} packet_t;
typedef class generic_reader_c {
// protected:
// vorbis_comment *chapter_info;
public:
generic_reader_c() {};
virtual ~generic_reader_c() {};
virtual int read() = 0;
virtual packet_t *get_packet() = 0;
virtual int display_priority() = 0;
virtual void display_progress() = 0;
// virtual void set_chapter_info(vorbis_comment *info);
} generic_reader_c;
#endif /* __R_GENERIC_H__ */