2003-03-06 23:39:40 +00:00
|
|
|
/*
|
|
|
|
mkvmerge -- utility for splicing together matroska files
|
|
|
|
from component media subtypes
|
|
|
|
|
|
|
|
p_textsubs.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-05-25 15:35:39 +00:00
|
|
|
\version \$Id: p_textsubs.h,v 1.10 2003/05/25 15:35:39 mosu Exp $
|
2003-03-06 23:39:40 +00:00
|
|
|
\brief class definition for the simple text subtitle packetizer
|
2003-05-18 20:57:08 +00:00
|
|
|
\author Moritz Bunkus <moritz@bunkus.org>
|
2003-03-06 23:39:40 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __P_TEXTSUBS_H
|
|
|
|
#define __P_TEXTSUBS_H
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
#include "pr_generic.h"
|
2003-04-18 10:28:14 +00:00
|
|
|
#include "pr_generic.h"
|
2003-03-06 23:39:40 +00:00
|
|
|
|
2003-04-18 10:28:14 +00:00
|
|
|
class textsubs_packetizer_c: public generic_packetizer_c {
|
2003-03-06 23:39:40 +00:00
|
|
|
private:
|
2003-05-05 18:47:57 +00:00
|
|
|
int packetno, cc_utf8;
|
2003-03-06 23:39:40 +00:00
|
|
|
|
|
|
|
public:
|
2003-05-05 21:55:02 +00:00
|
|
|
textsubs_packetizer_c(generic_reader_c *nreader, track_info_t *nti)
|
|
|
|
throw (error_c);
|
2003-03-06 23:39:40 +00:00
|
|
|
virtual ~textsubs_packetizer_c();
|
2003-05-20 06:30:25 +00:00
|
|
|
|
2003-04-18 13:21:11 +00:00
|
|
|
virtual int process(unsigned char *_subs, int size, int64_t start = -1,
|
|
|
|
int64_t length = -1, int64_t bref = -1,
|
|
|
|
int64_t fref = -1);
|
2003-05-02 21:49:42 +00:00
|
|
|
virtual void set_headers();
|
2003-05-25 15:35:39 +00:00
|
|
|
|
|
|
|
virtual void dump_debug_info();
|
2003-03-06 23:39:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // __P_TEXTSUBS_H
|