From 1e5c854cc97c24cca3b69a1d02bad4ba15f11c97 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Thu, 14 Jun 2001 19:10:14 +0000 Subject: [PATCH] initial import --- src/libFLAC/include/protected/all.h | 27 ++++++++++++++++ src/libFLAC/include/protected/file_decoder.h | 30 +++++++++++++++++ src/libFLAC/include/protected/stream_encoder.h | 45 ++++++++++++++++++++++++++ 3 files changed, 102 insertions(+) create mode 100644 src/libFLAC/include/protected/all.h create mode 100644 src/libFLAC/include/protected/file_decoder.h create mode 100644 src/libFLAC/include/protected/stream_encoder.h diff --git a/src/libFLAC/include/protected/all.h b/src/libFLAC/include/protected/all.h new file mode 100644 index 0000000..52733dd --- /dev/null +++ b/src/libFLAC/include/protected/all.h @@ -0,0 +1,27 @@ +/* libFLAC - Free Lossless Audio Codec library + * Copyright (C) 2001 Josh Coalson + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef FLAC__PROTECTED__ALL_H +#define FLAC__PROTECTED__ALL_H + +#include "file_decoder.h" +#include "stream_decoder.h" +#include "stream_encoder.h" + +#endif diff --git a/src/libFLAC/include/protected/file_decoder.h b/src/libFLAC/include/protected/file_decoder.h new file mode 100644 index 0000000..7f34b2c --- /dev/null +++ b/src/libFLAC/include/protected/file_decoder.h @@ -0,0 +1,30 @@ +/* libFLAC - Free Lossless Audio Codec library + * Copyright (C) 2000,2001 Josh Coalson + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef FLAC__PROTECTED__FILE_DECODER_H +#define FLAC__PROTECTED__FILE_DECODER_H + +#include "FLAC/file_decoder.h" + +typedef struct FLAC__FileDecoderProtected { + bool check_md5; /* if true, generate MD5 signature of decoded data and compare against signature in the Encoding metadata block */ + FLAC__FileDecoderState state; +} FLAC__FileDecoderProtected; + +#endif diff --git a/src/libFLAC/include/protected/stream_encoder.h b/src/libFLAC/include/protected/stream_encoder.h new file mode 100644 index 0000000..2951ce3 --- /dev/null +++ b/src/libFLAC/include/protected/stream_encoder.h @@ -0,0 +1,45 @@ +/* libFLAC - Free Lossless Audio Codec library + * Copyright (C) 2001 Josh Coalson + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef FLAC__PROTECTED__STREAM_ENCODER_H +#define FLAC__PROTECTED__STREAM_ENCODER_H + +#include "FLAC/stream_encoder.h" + +typedef struct FLAC__StreamEncoderProtected { + FLAC__StreamEncoderState state; + bool streamable_subset; + bool do_mid_side_stereo; + bool loose_mid_side_stereo; + unsigned channels; + unsigned bits_per_sample; + unsigned sample_rate; + unsigned blocksize; + unsigned max_lpc_order; + unsigned qlp_coeff_precision; + bool do_qlp_coeff_prec_search; + bool do_exhaustive_model_search; + unsigned min_residual_partition_order; + unsigned max_residual_partition_order; + unsigned rice_parameter_search_dist; + uint64 total_samples_estimate; + const FLAC__StreamMetaData_SeekTable *seek_table; +} FLAC__StreamEncoderProtected; + +#endif -- 2.7.4