mkvtoolnix/p_vorbis.h

63 lines
1.4 KiB
C++

/*
mkvmerge -- utility for splicing together matroska files
from component media subtypes
p_vorbis.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 Vorbis packetizer
\author Moritz Bunkus <moritz@bunkus.org>
*/
#include "config.h"
#ifdef HAVE_OGGVORBIS
#ifndef __P_VORBIS_H
#define __P_VORBIS_H
#include "os.h"
#include <ogg/ogg.h>
#include <vorbis/codec.h>
#include "common.h"
#include "pr_generic.h"
#include "pr_generic.h"
class vorbis_packetizer_c: public generic_packetizer_c {
private:
int64_t last_bs, samples;
int packetno;
vorbis_info vi;
vorbis_comment vc;
ogg_packet headers[3];
public:
vorbis_packetizer_c(generic_reader_c *nreader,
unsigned char *d_header, int l_header,
unsigned char *d_comments, int l_comments,
unsigned char *d_codecsetup, int l_codecsetup,
track_info_t *nti) throw (error_c);
virtual ~vorbis_packetizer_c();
virtual int process(unsigned char *data, int size, int64_t timecode = -1,
int64_t length = -1, int64_t bref = -1,
int64_t fref = -1);
virtual void set_headers();
virtual void dump_debug_info();
};
#endif // __P_VORBIS_H
#endif // HAVE_OGGVORBIS