2003-03-06 23:39:40 +00:00
|
|
|
/*
|
|
|
|
mkvmerge -- utility for splicing together matroska files
|
|
|
|
from component media subtypes
|
|
|
|
|
|
|
|
subtitles.h
|
|
|
|
|
|
|
|
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
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\file
|
2003-06-15 14:03:28 +00:00
|
|
|
\version $Id$
|
2003-03-06 23:39:40 +00:00
|
|
|
\brief class definition for the subtitle helper
|
2003-05-18 20:57:08 +00:00
|
|
|
\author Moritz Bunkus <moritz@bunkus.org>
|
2003-03-06 23:39:40 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SUBTITLES_H
|
|
|
|
#define __SUBTITLES_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "p_textsubs.h"
|
|
|
|
|
|
|
|
typedef struct sub_t {
|
2003-05-02 20:11:34 +00:00
|
|
|
int64_t start, end;
|
|
|
|
char *subs;
|
|
|
|
sub_t *next;
|
2003-03-06 23:39:40 +00:00
|
|
|
} sub_t;
|
|
|
|
|
|
|
|
class subtitles_c {
|
|
|
|
private:
|
|
|
|
sub_t *first, *last;
|
|
|
|
public:
|
|
|
|
subtitles_c();
|
|
|
|
~subtitles_c();
|
2003-05-20 06:30:25 +00:00
|
|
|
|
2003-05-02 20:11:34 +00:00
|
|
|
void add(int64_t, int64_t, char *);
|
|
|
|
int check();
|
|
|
|
void process(textsubs_packetizer_c *);
|
2003-03-06 23:39:40 +00:00
|
|
|
sub_t *get_next();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __SUBTITLES_H
|