mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 20:01:53 +00:00
48 lines
821 B
C++
48 lines
821 B
C++
/*
|
|
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
|
|
\version $Id$
|
|
\brief class definition for the subtitle helper
|
|
\author Moritz Bunkus <moritz@bunkus.org>
|
|
*/
|
|
|
|
#ifndef __SUBTITLES_H
|
|
#define __SUBTITLES_H
|
|
|
|
#include "os.h"
|
|
|
|
#include "p_textsubs.h"
|
|
|
|
typedef struct sub_t {
|
|
int64_t start, end;
|
|
char *subs;
|
|
sub_t *next;
|
|
} sub_t;
|
|
|
|
class subtitles_c {
|
|
private:
|
|
sub_t *first, *last;
|
|
public:
|
|
subtitles_c();
|
|
~subtitles_c();
|
|
|
|
void add(int64_t, int64_t, char *);
|
|
int check();
|
|
void process(textsubs_packetizer_c *);
|
|
sub_t *get_next();
|
|
};
|
|
|
|
#endif // __SUBTITLES_H
|