mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
rename FLAC__Encoder to FLAC__StreamEncoder, OOPize encoder and decoder interfaces
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user