rename FLAC__Encoder to FLAC__StreamEncoder, OOPize encoder and decoder interfaces

This commit is contained in:
Josh Coalson
2001-06-13 17:59:57 +00:00
parent 244ce1114c
commit 0a15c14c6e
21 changed files with 1646 additions and 1185 deletions

View File

@@ -16,13 +16,14 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
noinst_HEADERS = bitbuffer.h \
noinst_HEADERS = \
all.h \
bitbuffer.h \
bitmath.h \
cpu.h \
crc.h \
encoder_framing.h \
fixed.h \
lpc.h \
md5.h \
memory.h
memory.h \
stream_encoder_framing.h

View File

@@ -24,10 +24,10 @@
#include "bitmath.h"
#include "cpu.h"
#include "crc.h"
#include "encoder_framing.h"
#include "fixed.h"
#include "lpc.h"
#include "md5.h"
#include "memory.h"
#include "stream_encoder_framing.h"
#endif

View File

@@ -17,8 +17,8 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef FLAC__PRIVATE__ENCODER_FRAMING_H
#define FLAC__PRIVATE__ENCODER_FRAMING_H
#ifndef FLAC__PRIVATE__STREAM_ENCODER_FRAMING_H
#define FLAC__PRIVATE__STREAM_ENCODER_FRAMING_H
#include "FLAC/format.h"
#include "bitbuffer.h"

View File

@@ -16,4 +16,7 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
noinst_HEADERS = stream_decoder.h
noinst_HEADERS = \
file_decoder.h \
stream_decoder.h \
stream_encoder.h

View File

@@ -22,7 +22,18 @@
#include "FLAC/stream_decoder.h"
/* only useful to the file_decoder */
unsigned FLAC__stream_decoder_input_bytes_unconsumed(FLAC__StreamDecoder *decoder);
typedef struct FLAC__StreamDecoderProtected {
FLAC__StreamDecoderState state;
unsigned channels;
FLAC__ChannelAssignment channel_assignment;
unsigned bits_per_sample;
unsigned sample_rate; /* in Hz */
unsigned blocksize; /* in samples (per channel) */
} FLAC__StreamDecoderProtected;
/*
* return the number of input bytes consumed
*/
unsigned FLAC__stream_decoder_input_bytes_unconsumed(const FLAC__StreamDecoder *decoder);
#endif