mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 20:01:53 +00:00
51 lines
1.2 KiB
C++
51 lines
1.2 KiB
C++
/*
|
|
mkvmerge -- utility for splicing together matroska files
|
|
from component media subtypes
|
|
|
|
p_pcm.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: p_pcm.h,v 1.18 2003/05/25 15:35:39 mosu Exp $
|
|
\brief class definition for the PCM output module
|
|
\author Moritz Bunkus <moritz@bunkus.org>
|
|
*/
|
|
|
|
#ifndef __P_PCM_H
|
|
#define __P_PCM_H
|
|
|
|
#include "common.h"
|
|
#include "pr_generic.h"
|
|
|
|
class pcm_packetizer_c: public generic_packetizer_c {
|
|
private:
|
|
int packetno, bps, channels, bits_per_sample, tempbuf_size;
|
|
int64_t bytes_output, remaining_sync;
|
|
unsigned long samples_per_sec;
|
|
unsigned char *tempbuf;
|
|
|
|
public:
|
|
pcm_packetizer_c(generic_reader_c *nreader, unsigned long nsamples_per_sec,
|
|
int nchannels, int nbits_per_sample, track_info_t *nti)
|
|
throw (error_c);
|
|
virtual ~pcm_packetizer_c();
|
|
|
|
virtual int process(unsigned char *buf, 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();
|
|
};
|
|
|
|
const int pcm_interleave = 16;
|
|
|
|
#endif // __P_PCM_H
|