Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
e570f001
Commit
e570f001
authored
Jun 06, 2001
by
Josh Coalson
Browse files
standardize flac__ names
parent
04ad5d3d
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/flac/decode.c
View file @
e570f001
...
...
@@ -59,7 +59,7 @@ static void metadata_callback(const FLAC__FileDecoder *decoder, const FLAC__Stre
static
void
error_callback
(
const
FLAC__FileDecoder
*
decoder
,
FLAC__StreamDecoderErrorStatus
status
,
void
*
client_data
);
static
void
print_stats
(
const
stream_info_struct
*
stream_info
);
int
decode_wav
(
const
char
*
infile
,
const
char
*
outfile
,
bool
analysis_mode
,
analysis_options
aopts
,
bool
verbose
,
uint64
skip
)
int
flac__
decode_wav
(
const
char
*
infile
,
const
char
*
outfile
,
bool
analysis_mode
,
analysis_options
aopts
,
bool
verbose
,
uint64
skip
)
{
bool
md5_failure
=
false
;
stream_info_struct
stream_info
;
...
...
@@ -170,7 +170,7 @@ wav_abort_:
return
1
;
}
int
decode_raw
(
const
char
*
infile
,
const
char
*
outfile
,
bool
analysis_mode
,
analysis_options
aopts
,
bool
verbose
,
uint64
skip
,
bool
is_big_endian
,
bool
is_unsigned_samples
)
int
flac__
decode_raw
(
const
char
*
infile
,
const
char
*
outfile
,
bool
analysis_mode
,
analysis_options
aopts
,
bool
verbose
,
uint64
skip
,
bool
is_big_endian
,
bool
is_unsigned_samples
)
{
bool
md5_failure
=
false
;
stream_info_struct
stream_info
;
...
...
src/flac/decode.h
View file @
e570f001
...
...
@@ -22,7 +22,7 @@
#include
"analyze.h"
/* outfile == 0 => test only */
int
decode_wav
(
const
char
*
infile
,
const
char
*
outfile
,
bool
analysis_mode
,
analysis_options
aopts
,
bool
verbose
,
uint64
skip
);
int
decode_raw
(
const
char
*
infile
,
const
char
*
outfile
,
bool
analysis_mode
,
analysis_options
aopts
,
bool
verbose
,
uint64
skip
,
bool
is_big_endian
,
bool
is_unsigned_samples
);
int
flac__
decode_wav
(
const
char
*
infile
,
const
char
*
outfile
,
bool
analysis_mode
,
analysis_options
aopts
,
bool
verbose
,
uint64
skip
);
int
flac__
decode_raw
(
const
char
*
infile
,
const
char
*
outfile
,
bool
analysis_mode
,
analysis_options
aopts
,
bool
verbose
,
uint64
skip
,
bool
is_big_endian
,
bool
is_unsigned_samples
);
#endif
src/flac/encode.c
View file @
e570f001
...
...
@@ -107,7 +107,7 @@ static bool read_little_endian_uint32(FILE *f, uint32 *val, bool eof_ok);
static
bool
write_big_endian_uint16
(
FILE
*
f
,
uint16
val
);
static
bool
write_big_endian_uint64
(
FILE
*
f
,
uint64
val
);
int
encode_wav
(
FILE
*
infile
,
const
char
*
infilename
,
const
char
*
outfilename
,
bool
verbose
,
uint64
skip
,
bool
verify
,
bool
lax
,
bool
do_mid_side
,
bool
loose_mid_side
,
bool
do_exhaustive_model_search
,
bool
do_qlp_coeff_prec_search
,
unsigned
min_residual_partition_order
,
unsigned
max_residual_partition_order
,
unsigned
rice_parameter_search_dist
,
unsigned
max_lpc_order
,
unsigned
blocksize
,
unsigned
qlp_coeff_precision
,
unsigned
padding
,
char
*
requested_seek_points
,
int
num_requested_seek_points
)
int
flac__
encode_wav
(
FILE
*
infile
,
const
char
*
infilename
,
const
char
*
outfilename
,
bool
verbose
,
uint64
skip
,
bool
verify
,
bool
lax
,
bool
do_mid_side
,
bool
loose_mid_side
,
bool
do_exhaustive_model_search
,
bool
do_qlp_coeff_prec_search
,
unsigned
min_residual_partition_order
,
unsigned
max_residual_partition_order
,
unsigned
rice_parameter_search_dist
,
unsigned
max_lpc_order
,
unsigned
blocksize
,
unsigned
qlp_coeff_precision
,
unsigned
padding
,
char
*
requested_seek_points
,
int
num_requested_seek_points
)
{
encoder_wrapper_struct
encoder_wrapper
;
bool
is_unsigned_samples
=
false
;
...
...
@@ -362,7 +362,7 @@ wav_abort_:
return
1
;
}
int
encode_raw
(
FILE
*
infile
,
const
char
*
infilename
,
const
char
*
outfilename
,
bool
verbose
,
uint64
skip
,
bool
verify
,
bool
lax
,
bool
do_mid_side
,
bool
loose_mid_side
,
bool
do_exhaustive_model_search
,
bool
do_qlp_coeff_prec_search
,
unsigned
min_residual_partition_order
,
unsigned
max_residual_partition_order
,
unsigned
rice_parameter_search_dist
,
unsigned
max_lpc_order
,
unsigned
blocksize
,
unsigned
qlp_coeff_precision
,
unsigned
padding
,
char
*
requested_seek_points
,
int
num_requested_seek_points
,
bool
is_big_endian
,
bool
is_unsigned_samples
,
unsigned
channels
,
unsigned
bps
,
unsigned
sample_rate
)
int
flac__
encode_raw
(
FILE
*
infile
,
const
char
*
infilename
,
const
char
*
outfilename
,
bool
verbose
,
uint64
skip
,
bool
verify
,
bool
lax
,
bool
do_mid_side
,
bool
loose_mid_side
,
bool
do_exhaustive_model_search
,
bool
do_qlp_coeff_prec_search
,
unsigned
min_residual_partition_order
,
unsigned
max_residual_partition_order
,
unsigned
rice_parameter_search_dist
,
unsigned
max_lpc_order
,
unsigned
blocksize
,
unsigned
qlp_coeff_precision
,
unsigned
padding
,
char
*
requested_seek_points
,
int
num_requested_seek_points
,
bool
is_big_endian
,
bool
is_unsigned_samples
,
unsigned
channels
,
unsigned
bps
,
unsigned
sample_rate
)
{
encoder_wrapper_struct
encoder_wrapper
;
size_t
bytes_read
;
...
...
src/flac/encode.h
View file @
e570f001
...
...
@@ -21,7 +21,7 @@
#include
"FLAC/ordinals.h"
int
encode_wav
(
FILE
*
infile
,
const
char
*
infilename
,
const
char
*
outfilename
,
bool
verbose
,
uint64
skip
,
bool
verify
,
bool
lax
,
bool
do_mid_side
,
bool
loose_mid_side
,
bool
do_exhaustive_model_search
,
bool
do_qlp_coeff_prec_search
,
unsigned
min_residual_partition_order
,
unsigned
max_residual_partition_order
,
unsigned
rice_parameter_search_dist
,
unsigned
max_lpc_order
,
unsigned
blocksize
,
unsigned
qlp_coeff_precision
,
unsigned
padding
,
char
*
requested_seek_points
,
int
num_requested_seek_points
);
int
encode_raw
(
FILE
*
infile
,
const
char
*
infilename
,
const
char
*
outfilename
,
bool
verbose
,
uint64
skip
,
bool
verify
,
bool
lax
,
bool
do_mid_side
,
bool
loose_mid_side
,
bool
do_exhaustive_model_search
,
bool
do_qlp_coeff_prec_search
,
unsigned
min_residual_partition_order
,
unsigned
max_residual_partition_order
,
unsigned
rice_parameter_search_dist
,
unsigned
max_lpc_order
,
unsigned
blocksize
,
unsigned
qlp_coeff_precision
,
unsigned
padding
,
char
*
requested_seek_points
,
int
num_requested_seek_points
,
bool
is_big_endian
,
bool
is_unsigned_samples
,
unsigned
channels
,
unsigned
bps
,
unsigned
sample_rate
);
int
flac__
encode_wav
(
FILE
*
infile
,
const
char
*
infilename
,
const
char
*
outfilename
,
bool
verbose
,
uint64
skip
,
bool
verify
,
bool
lax
,
bool
do_mid_side
,
bool
loose_mid_side
,
bool
do_exhaustive_model_search
,
bool
do_qlp_coeff_prec_search
,
unsigned
min_residual_partition_order
,
unsigned
max_residual_partition_order
,
unsigned
rice_parameter_search_dist
,
unsigned
max_lpc_order
,
unsigned
blocksize
,
unsigned
qlp_coeff_precision
,
unsigned
padding
,
char
*
requested_seek_points
,
int
num_requested_seek_points
);
int
flac__
encode_raw
(
FILE
*
infile
,
const
char
*
infilename
,
const
char
*
outfilename
,
bool
verbose
,
uint64
skip
,
bool
verify
,
bool
lax
,
bool
do_mid_side
,
bool
loose_mid_side
,
bool
do_exhaustive_model_search
,
bool
do_qlp_coeff_prec_search
,
unsigned
min_residual_partition_order
,
unsigned
max_residual_partition_order
,
unsigned
rice_parameter_search_dist
,
unsigned
max_lpc_order
,
unsigned
blocksize
,
unsigned
qlp_coeff_precision
,
unsigned
padding
,
char
*
requested_seek_points
,
int
num_requested_seek_points
,
bool
is_big_endian
,
bool
is_unsigned_samples
,
unsigned
channels
,
unsigned
bps
,
unsigned
sample_rate
);
#endif
src/flac/main.c
View file @
e570f001
...
...
@@ -558,9 +558,9 @@ int encode_file(const char *infilename, const char *forced_outfilename)
forced_outfilename
=
outfilename
;
if
(
format_is_wave
)
return
encode_wav
(
encode_infile
,
infilename
,
forced_outfilename
,
verbose
,
skip
,
verify
,
lax
,
do_mid_side
,
loose_mid_side
,
do_exhaustive_model_search
,
do_qlp_coeff_prec_search
,
min_residual_partition_order
,
max_residual_partition_order
,
rice_parameter_search_dist
,
max_lpc_order
,
(
unsigned
)
blocksize
,
qlp_coeff_precision
,
padding
,
requested_seek_points
,
num_requested_seek_points
);
return
flac__
encode_wav
(
encode_infile
,
infilename
,
forced_outfilename
,
verbose
,
skip
,
verify
,
lax
,
do_mid_side
,
loose_mid_side
,
do_exhaustive_model_search
,
do_qlp_coeff_prec_search
,
min_residual_partition_order
,
max_residual_partition_order
,
rice_parameter_search_dist
,
max_lpc_order
,
(
unsigned
)
blocksize
,
qlp_coeff_precision
,
padding
,
requested_seek_points
,
num_requested_seek_points
);
else
return
encode_raw
(
encode_infile
,
infilename
,
forced_outfilename
,
verbose
,
skip
,
verify
,
lax
,
do_mid_side
,
loose_mid_side
,
do_exhaustive_model_search
,
do_qlp_coeff_prec_search
,
min_residual_partition_order
,
max_residual_partition_order
,
rice_parameter_search_dist
,
max_lpc_order
,
(
unsigned
)
blocksize
,
qlp_coeff_precision
,
padding
,
requested_seek_points
,
num_requested_seek_points
,
format_is_big_endian
,
format_is_unsigned_samples
,
format_channels
,
format_bps
,
format_sample_rate
);
return
flac__
encode_raw
(
encode_infile
,
infilename
,
forced_outfilename
,
verbose
,
skip
,
verify
,
lax
,
do_mid_side
,
loose_mid_side
,
do_exhaustive_model_search
,
do_qlp_coeff_prec_search
,
min_residual_partition_order
,
max_residual_partition_order
,
rice_parameter_search_dist
,
max_lpc_order
,
(
unsigned
)
blocksize
,
qlp_coeff_precision
,
padding
,
requested_seek_points
,
num_requested_seek_points
,
format_is_big_endian
,
format_is_unsigned_samples
,
format_channels
,
format_bps
,
format_sample_rate
);
}
int
decode_file
(
const
char
*
infilename
,
const
char
*
forced_outfilename
)
...
...
@@ -599,7 +599,7 @@ int decode_file(const char *infilename, const char *forced_outfilename)
forced_outfilename
=
outfilename
;
if
(
format_is_wave
)
return
decode_wav
(
infilename
,
test_only
?
0
:
forced_outfilename
,
analyze
,
aopts
,
verbose
,
skip
);
return
flac__
decode_wav
(
infilename
,
test_only
?
0
:
forced_outfilename
,
analyze
,
aopts
,
verbose
,
skip
);
else
return
decode_raw
(
infilename
,
test_only
?
0
:
forced_outfilename
,
analyze
,
aopts
,
verbose
,
skip
,
format_is_big_endian
,
format_is_unsigned_samples
);
return
flac__
decode_raw
(
infilename
,
test_only
?
0
:
forced_outfilename
,
analyze
,
aopts
,
verbose
,
skip
,
format_is_big_endian
,
format_is_unsigned_samples
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment