Commit Graph

1069 Commits

Author SHA1 Message Date
Josh Coalson
b472e26067 oops, move message to correct place 2001-05-01 21:13:05 +00:00
Josh Coalson
5c5c068414 fix some error messages 2001-05-01 21:07:06 +00:00
Josh Coalson
9fa1ad50a5 mods to allow main.c to pass in the opened file 2001-05-01 20:49:18 +00:00
Josh Coalson
f489bf6dd1 remove some unused code 2001-05-01 20:48:54 +00:00
Josh Coalson
af96ccfb71 add support for guessing input file type by looking at the first 4 bytes 2001-05-01 19:17:12 +00:00
Josh Coalson
8e92f2148d *** empty log message *** 2001-05-01 18:50:45 +00:00
Josh Coalson
034dfab81b fix bugs in encoder_set_partitioned_rice_() 2001-04-27 19:10:23 +00:00
Josh Coalson
f932bc73cb fix bug in inlined version of ...read_unary...() 2001-04-27 03:38:31 +00:00
Josh Coalson
72222cae21 minor optimization 2001-04-26 05:58:28 +00:00
Josh Coalson
682b88ccce oops, put handling for --a-rtext option in 2001-04-26 05:57:41 +00:00
Josh Coalson
2d6645ce03 remove statement that can't be reached 2001-04-26 05:22:25 +00:00
Josh Coalson
d4eef96f4e improve error message if file not found 2001-04-26 05:02:17 +00:00
Josh Coalson
60f77d7ecf -r now takes min,max and is called min/max_residual_partition order, new -R option is rice_parameter_search_dist 2001-04-25 02:16:36 +00:00
Josh Coalson
decfad344c const-ize some args 2001-04-25 01:14:20 +00:00
Josh Coalson
a5ef17781f add some more read optimizations 2001-04-25 01:08:39 +00:00
Josh Coalson
608b7f2fe0 parenthesize macro arguments 2001-04-25 01:08:18 +00:00
Josh Coalson
bb6712e9e4 FLAC__ize all the #defines 2001-04-24 22:54:07 +00:00
Josh Coalson
f4035ba7f5 remove the code that printed out the seek points before encoding 2001-04-24 22:42:46 +00:00
Josh Coalson
2d647904b8 add verbiage to bug submit 2001-04-24 22:24:22 +00:00
Josh Coalson
64f4fbcaf7 start some read optimizations 2001-04-24 02:36:08 +00:00
Josh Coalson
9661108c68 #ifdef mallocs of optimization buffers 2001-04-24 01:30:10 +00:00
Josh Coalson
aef013c0fa rearrange some of the latest optimizations 2001-04-24 01:25:42 +00:00
Josh Coalson
677622ac0c fix some compile bugs related to RESERVOIR_TEST 2001-04-18 23:02:08 +00:00
Josh Coalson
afcd877c84 ifdef out the precompute-partition-sums and partition-escape-search stuff 2001-04-18 22:59:25 +00:00
Josh Coalson
f76a3618a5 break out the partition sum precomputation to its own function 2001-04-18 02:28:11 +00:00
Josh Coalson
6994dd82c4 minor speed optimization 2001-04-18 02:21:21 +00:00
Josh Coalson
d4e0ddbdca speed up rice partitioning by precomputing the partition sums 2001-04-18 02:20:52 +00:00
Josh Coalson
36da89ca8c parameterize the number of samples per write 2001-04-17 18:01:22 +00:00
Josh Coalson
671fadb23a fix bug with samples_decoded 2001-04-17 17:32:01 +00:00
Josh Coalson
4de0541eeb fix -b usage printout 2001-04-16 23:09:47 +00:00
Josh Coalson
ababc226be fix syntax error 2001-04-16 22:58:42 +00:00
Josh Coalson
d50cd496c2 80-columnize the usage printout 2001-04-16 22:57:49 +00:00
Josh Coalson
2989634451 remove debug printout 2001-04-16 22:44:27 +00:00
Josh Coalson
eae4dde233 document GCC compiler bug that produces false warning 2001-04-16 05:33:22 +00:00
Josh Coalson
5c3d00c456 fix usage 2001-04-14 00:28:17 +00:00
Josh Coalson
61eb682a8e fix bug with the default -S setting 2001-04-14 00:24:54 +00:00
Josh Coalson
7531b0088f fix bug where sample number is incorrectly calculated for the last block 2001-04-14 00:24:32 +00:00
Josh Coalson
3585ece4da fix bug to deal with case when user requests to skip more samples that the stream contains 2001-04-13 23:39:07 +00:00
Josh Coalson
5a068063f4 fix more bugs with seek table stuff 2001-04-13 23:24:45 +00:00
Josh Coalson
1d937c0dbc fix bug where seek point was hit during metadata write_callback time 2001-04-13 23:03:02 +00:00
Josh Coalson
760f7fd48e minor bug fix 2001-04-13 23:00:59 +00:00
Josh Coalson
67db5da6a1 fix bug with incorrect seek point separator 2001-04-13 22:59:58 +00:00
Josh Coalson
211736a7a6 mark seek points when hit by write callback; write seek points back during metadata_callback() 2001-04-13 22:55:05 +00:00
Josh Coalson
9e1e2ab695 change to ignore PLACEHODLERs when checking seek points 2001-04-13 22:47:21 +00:00
Josh Coalson
6a071f7550 add marking of the seek point when hit in the write callback 2001-04-13 22:30:00 +00:00
Josh Coalson
49eb5dbe21 add total samples to seek point printout 2001-04-13 22:01:29 +00:00
Josh Coalson
6e590293a0 add printing of seek points in verbose mode 2001-04-13 21:59:42 +00:00
Josh Coalson
d77a1cf5e2 add support for specifying seek points 2001-04-13 21:55:17 +00:00
Josh Coalson
bbe8b46a9a minor fixes 2001-04-13 21:54:53 +00:00
Josh Coalson
0a72e18b22 add support for writing SEEKTABLE block 2001-04-13 19:17:16 +00:00
Josh Coalson
a57921613b fix function signature to make .h file 2001-04-13 19:16:52 +00:00
Josh Coalson
0fbe7ce062 write implementation of FLAC__seek_table_is_valid() 2001-04-13 19:01:56 +00:00
Josh Coalson
5906c2d9f5 add seek_table.c 2001-04-13 18:57:20 +00:00
Josh Coalson
a8b4fc51df initial import 2001-04-13 18:53:17 +00:00
Josh Coalson
3372cc0275 fix compiler warning 2001-04-13 18:44:46 +00:00
Josh Coalson
6ff59c56f6 fix compile error 2001-04-13 18:43:53 +00:00
Josh Coalson
ce025f577d update seek routine to use info from seek table 2001-04-13 18:42:12 +00:00
Josh Coalson
167658a907 add seekpoint placeholder 2001-04-13 18:22:25 +00:00
Josh Coalson
cff71c88ac skip seekpoint placeholders 2001-04-13 18:20:23 +00:00
Josh Coalson
2051dd49a5 add support for raw encoding within a Rice partition 2001-04-12 22:22:34 +00:00
Josh Coalson
c5d08e03bc add missing SEEKPOINT globals 2001-04-10 19:13:50 +00:00
Josh Coalson
c076ba51bf add support for decoding SEEKTABLE block 2001-04-05 21:32:54 +00:00
Josh Coalson
5114dbd52f add SEEKTABLE support 2001-04-05 21:31:59 +00:00
Josh Coalson
243a067a58 tweak the seeking a little more 2001-04-05 20:11:25 +00:00
Josh Coalson
fe2bbaeca0 suppress linking of libc 2001-04-01 05:55:46 +00:00
Josh Coalson
d79b9b1082 minor change 2001-04-01 05:55:21 +00:00
Josh Coalson
59f4a995dd add crutch for VC++ 2001-04-01 05:55:01 +00:00
Josh Coalson
ec1af65f67 #include string.h 2001-04-01 05:34:16 +00:00
Josh Coalson
159ac6259e make some improvements to the seek algo 2001-03-31 00:29:46 +00:00
Josh Coalson
9d06106721 add support for 8-bps files 2001-03-30 23:27:44 +00:00
Josh Coalson
673976d977 add bitmath.c 2001-03-30 00:45:52 +00:00
Josh Coalson
eef5670adc change to use 64-bit functions when needed to avoid overflow 2001-03-30 00:45:22 +00:00
Josh Coalson
4b2a27db4c change to use new bitmath routines 2001-03-30 00:44:58 +00:00
Josh Coalson
33abe8c9d3 initial import 2001-03-30 00:44:16 +00:00
Josh Coalson
7844424d41 add 64-bit versions of some functions 2001-03-30 00:43:46 +00:00
Josh Coalson
f24a98c426 add new .h files 2001-03-30 00:43:15 +00:00
Josh Coalson
ef44878c77 fix another bug related to wasted bits 2001-03-29 22:54:33 +00:00
Josh Coalson
470785c319 pass aopts to analyze_init/finish() 2001-03-29 22:19:24 +00:00
Josh Coalson
3e7fc0521f add more verbose status reporting; pass aopts to analyze_init/finish() 2001-03-29 22:19:09 +00:00
Josh Coalson
21558fcbc5 add more verbose status reporting 2001-03-29 22:18:36 +00:00
Josh Coalson
2cf7d007a2 fix bug where subframe bps estimate was not taking into account wasted bits 2001-03-29 22:17:52 +00:00
Josh Coalson
bd646e12c1 minor change 2001-03-29 22:17:25 +00:00
Josh Coalson
7817ef5bd1 delete bad assert() 2001-03-29 21:29:46 +00:00
Josh Coalson
ac4c1583a0 comment fix 2001-03-28 23:10:22 +00:00
Josh Coalson
1995f0a0a5 remove buggy bug comment/printout 2001-03-28 22:19:18 +00:00
Josh Coalson
82b7324d70 rewrite wasted_bits and subframe_bps stuff to be more concise 2001-03-28 22:17:05 +00:00
Josh Coalson
2129e63cb1 add wasted_bits to subframe analysis printout 2001-03-28 22:15:50 +00:00
Josh Coalson
ae6e8b5157 add some asserts 2001-03-28 22:14:43 +00:00
Josh Coalson
d041849e77 add wasted-bits-per-sample stream 2001-03-27 23:58:23 +00:00
Josh Coalson
859bc548ce add support for new "wasted bits" field 2001-03-27 22:22:27 +00:00
Josh Coalson
751d94fbf5 make error_callback printout more verbose 2001-03-27 01:19:55 +00:00
Josh Coalson
ee5cfb5010 add unary methods, read CRC-16 support, get rid of gotos 2001-03-27 01:17:07 +00:00
Josh Coalson
d30d894ad0 add unary methods, read CRC-16 support 2001-03-27 01:16:42 +00:00
Josh Coalson
215af57417 update for new format changes: frame crc-16, wasted bits field, longer sync code, longer blocksize code 2001-03-27 01:15:58 +00:00
Josh Coalson
6351ef6c1e add CRC-16 code, more methods 2001-03-27 01:14:25 +00:00
Josh Coalson
1e1509fb35 fix bug where ...allocate_output_() might allocate the wrong number of channels if the decoder hit a bad frame header 2001-03-23 20:20:43 +00:00
Josh Coalson
e850ded476 add more detail to the seeking error output 2001-03-23 00:00:56 +00:00
Josh Coalson
674653ffac fix bug where pos could move to before the beginning of the file 2001-03-22 23:56:07 +00:00
Josh Coalson
d309468471 fix version string 2001-03-21 23:14:27 +00:00
Josh Coalson
6376169cf7 cleanup whitespace 2001-03-21 22:59:07 +00:00
Josh Coalson
3b5f471837 drop the escape-code stuff 2001-03-21 22:53:43 +00:00
Josh Coalson
8de897c9f9 add prototype for escape-code function 2001-03-21 22:53:02 +00:00
Josh Coalson
9a909db838 revert back to folded Rice method 2001-03-21 22:35:25 +00:00
Josh Coalson
9ec2a52011 final version of symmetric-rice/escape-code experiment before reverting 2001-03-21 22:34:44 +00:00
Josh Coalson
57a6a343bd temporary commit 2001-03-21 00:57:58 +00:00
Josh Coalson
bd82959b1d oops, fix syntax error 2001-03-20 22:56:43 +00:00
Josh Coalson
352e0f6bfd revert back to default of folded-Rice coding, leave experimental stuff in 2001-03-20 22:55:50 +00:00
Josh Coalson
6a20d03691 generate gnuplot files for subframe residuals 2001-03-20 22:55:06 +00:00
Josh Coalson
73a9935105 fix a couple of playback bugs 2001-03-20 22:04:12 +00:00
Josh Coalson
67a13156c0 fix so that file decoder catches when stream decoder says EOF 2001-03-20 22:02:54 +00:00
Josh Coalson
b9433f9bcf move folded rice stuff sideways, re-add symmetric rice in prep for escape codes 2001-03-17 01:07:00 +00:00
Josh Coalson
4f569c6386 add symmetric rice coding back in 2001-03-17 00:13:09 +00:00
Josh Coalson
b006493de7 comment fix 2001-03-16 23:24:53 +00:00
Josh Coalson
3d783d674e initial import 2001-03-16 22:01:06 +00:00
Josh Coalson
a0afc787fa add analyze.c 2001-03-16 22:00:41 +00:00
Josh Coalson
de72274e0b add analysis options, move analysis printout to analyze.c 2001-03-16 22:00:11 +00:00
Josh Coalson
20f315dada add analysis options 2001-03-16 21:59:40 +00:00
Josh Coalson
c5db6a04c0 remove dependency on libFLAC 2001-03-16 00:46:41 +00:00
Josh Coalson
0afcdb23a8 add verbose option to analysis mode to dump residuals 2001-03-15 23:19:44 +00:00
Josh Coalson
190892325c remove bps limit on mid-side coding 2001-03-05 20:02:13 +00:00
Josh Coalson
acac64281a remove bps limit on mid-side, remove some debugging output 2001-03-05 20:01:51 +00:00
Josh Coalson
665b7ad5b4 rename ENCODING to STREAMINFO 2001-03-05 18:36:59 +00:00
Josh Coalson
3de7ba1bed buncha fixes 2001-03-01 21:48:20 +00:00
Josh Coalson
6213a31f7b rough implementation (haven't even compile it yet) 2001-03-01 21:47:12 +00:00
Josh Coalson
456db820b6 *** empty log message *** 2001-03-01 19:14:05 +00:00
Josh Coalson
b2109495f4 fix decode buffer size 2001-03-01 19:00:10 +00:00
Josh Coalson
22c8ad8291 remove floating "#if 0" 2001-03-01 18:48:38 +00:00
Josh Coalson
4a1038407f initial import 2001-03-01 01:11:36 +00:00
Josh Coalson
f1b114e9cc *** empty log message *** 2001-03-01 00:47:15 +00:00
Josh Coalson
f40667b224 remove old version of the lpcoeff quantizer, other debug detritus 2001-02-28 23:57:09 +00:00
Josh Coalson
c625f9033c rework LPC coefficient quantizer 2001-02-28 23:56:03 +00:00
Josh Coalson
994b5179e3 fix 24-bit support 2001-02-28 23:47:19 +00:00
Josh Coalson
d2b9453e39 better error message if encoder can't initialize 2001-02-28 23:46:25 +00:00
Josh Coalson
f4ce50b9b9 fix bug where LP was tried even if autoc[0]==0.0 2001-02-28 23:45:15 +00:00
Josh Coalson
fe9ba6f44f fix bug where overflow of total_error caused it to go negative 2001-02-28 23:44:27 +00:00
Josh Coalson
f6237c8c3b add support for new 24-bit streams 2001-02-28 23:43:29 +00:00
Josh Coalson
b04de17f6e add support for 24-bit input 2001-02-27 00:01:55 +00:00
Josh Coalson
52a7ae78be add -P to options printout when verbose 2001-02-26 21:11:43 +00:00
Josh Coalson
4795fcab52 remove some debug output 2001-02-26 20:30:31 +00:00
Josh Coalson
0552fdf9cb fix bug where max_qlp_coeff_precision went too high with 8 bits-per-sample and -p 2001-02-26 20:29:56 +00:00
Josh Coalson
37ff390395 *** empty log message *** 2001-02-23 23:36:37 +00:00
Josh Coalson
e6e921bce8 un-static the read buf 2001-02-23 23:34:15 +00:00
Josh Coalson
1e06734935 add byte offset to printout 2001-02-23 23:32:22 +00:00
Josh Coalson
52c44e9a5d shorten APPLICATION id to 32 bits 2001-02-23 23:11:34 +00:00
Josh Coalson
c91eca76c7 remove -lm from library dependencies 2001-02-23 23:10:57 +00:00
Josh Coalson
b8973c2b8a add basic list functionality 2001-02-23 23:09:32 +00:00
Josh Coalson
3fc307bfcc header list functionality 2001-02-23 22:03:52 +00:00
Josh Coalson
4d3b90f3c3 initial import 2001-02-23 21:38:26 +00:00
Josh Coalson
5bcb38dd56 add metaflac 2001-02-23 21:28:29 +00:00
Josh Coalson
5200d52515 add padding argument 2001-02-23 21:08:04 +00:00
Josh Coalson
18cfcc88dd add -P padding option 2001-02-23 21:07:43 +00:00
Josh Coalson
2013572070 rename ENCODING to STREAMINFO; add PADDING and APPLICATION blocks 2001-02-23 21:05:53 +00:00
Josh Coalson
c692d3800a rename ENCODING to STREAMINFO; add PADDING block support 2001-02-23 21:05:05 +00:00
Josh Coalson
40b1f179d1 rewind back to better FLAC__BITBUFFER_DEFAULT_CAPACITY 2001-02-23 21:04:00 +00:00
Josh Coalson
72983924fb rename ENCODING to STREAMINFO 2001-02-23 21:03:21 +00:00
Josh Coalson
090bbb8b2c fix bug #131976 2001-02-22 22:56:19 +00:00
Josh Coalson
58c84a2edd fix fclose bug 2001-02-12 09:04:49 +00:00
Josh Coalson
5feaafff5c set large default size for bug 131976 workaround 2001-02-12 09:03:07 +00:00
Josh Coalson
f5994a73dd add more tests and with more variety 2001-02-08 22:03:18 +00:00
Josh Coalson
26560dd2b0 change Coder to Codec everywhere 2001-02-08 00:38:41 +00:00
Josh Coalson
e665f2d7ae update comment on -p 2001-02-08 00:29:58 +00:00
Josh Coalson
46f2ae8abc fix bug where rice parameter was going to 0 2001-02-08 00:27:21 +00:00
Josh Coalson
9f77a19607 add more debug info, clip bps computation to 0.0 2001-02-08 00:26:45 +00:00
Josh Coalson
c4b7c84676 delete unused global 2001-02-08 00:25:23 +00:00
Josh Coalson
763bee172b *** empty log message *** 2001-02-08 00:24:17 +00:00
Josh Coalson
4ba983ca56 fix seek bug in raw encoding 2001-02-02 20:00:26 +00:00
Josh Coalson
52dfccec25 minor fixes 2001-02-02 00:54:22 +00:00
Josh Coalson
760f535d9a add code for a FIFOed reservoir 2001-02-02 00:52:47 +00:00
Josh Coalson
efc42137fa fix to work with new write_callback signature 2001-01-28 09:41:45 +00:00
Josh Coalson
f4b8032bc6 add warmup samples to analysis printout 2001-01-28 09:28:46 +00:00
Josh Coalson
b5e60e5b9f change force_mid_side to loose_mid_side 2001-01-28 09:27:27 +00:00
Josh Coalson
8d32d3eed5 add -a to usage 2001-01-26 22:31:27 +00:00
Josh Coalson
2353aee8a1 delete unused code 2001-01-26 21:28:31 +00:00
Josh Coalson
94e02cd4a0 speed up mid-side coding 2001-01-25 10:41:06 +00:00
Josh Coalson
9c072fa4ba fix bug with asserts 2001-01-24 23:35:48 +00:00
Josh Coalson
e6898a37f8 drop major/minor version numbers, use just version string 2001-01-24 19:01:07 +00:00
Josh Coalson
9c936d2d36 add -M (force_mid_side) option 2001-01-24 01:01:04 +00:00
Josh Coalson
69f1ee02bf add force_mid_side_stereo option 2001-01-24 00:54:43 +00:00
Josh Coalson
967b467c45 add new analyze mode 2001-01-24 00:42:41 +00:00
Josh Coalson
75d0a0beb8 add string lookup tables for enums 2001-01-24 00:42:16 +00:00
Josh Coalson
6dcea51cd1 revamp in anticipation of new analysis mode 2001-01-23 23:07:36 +00:00
Josh Coalson
b10d83cd9d fix bug: --skip and pipes 2001-01-23 01:19:17 +00:00
Josh Coalson
cbbbb5f176 add total sample estimation 2001-01-23 00:41:48 +00:00
Josh Coalson
8c8a55efbc fix some pipe bugs 2001-01-23 00:40:05 +00:00
Josh Coalson
e77287e36d speed up the rice estimation 2001-01-20 01:27:55 +00:00
Josh Coalson
824f4708ce use FLAC__VERSION_STRING for version 2001-01-19 23:28:38 +00:00
Josh Coalson
8596d93bb9 use VERSION macro for version instead of hardcoding it 2001-01-19 23:26:29 +00:00
Josh Coalson
e55f390900 fix compiler warning 2001-01-19 23:13:44 +00:00
Josh Coalson
9f429bae5a initial version 2001-01-19 22:39:39 +00:00
Josh Coalson
e60acb9fa0 renamed Makefile to Makefile.lite 2001-01-19 22:30:43 +00:00
Josh Coalson
2a52e57fdc add ESTIMATE_RICE_BITS for speed 2001-01-19 20:11:59 +00:00
Josh Coalson
70118f62c0 update copyright for 2001 2001-01-16 20:17:53 +00:00
Josh Coalson
4297cc736c add md5.c 2001-01-16 07:07:26 +00:00
Josh Coalson
49f0257194 minor compile error fix 2001-01-16 07:07:09 +00:00
Josh Coalson
c08be9ac3b update version to 0.5 2001-01-16 00:12:58 +00:00
Josh Coalson
c00438cc58 fix a typo bug 2001-01-16 00:08:14 +00:00
Josh Coalson
9c18548a50 disallow --skip in test mode 2001-01-13 00:23:44 +00:00
Josh Coalson
8a0ab31fab turn off MD5 checking in the plugin 2001-01-13 00:14:24 +00:00
Josh Coalson
2d886aeea3 add -t line to usage printout 2001-01-13 00:12:27 +00:00
Josh Coalson
e7e63f8c1a minor tweaks to verbos output 2001-01-13 00:10:55 +00:00
Josh Coalson
bd3c422882 add md5.o 2001-01-12 23:58:30 +00:00
Josh Coalson
fa37f1c012 add MD5 support 2001-01-12 23:55:11 +00:00
Josh Coalson
4397b27181 add support for MD5 checking and a test mode 2001-01-12 23:52:39 +00:00
Josh Coalson
f8a4877eb6 add MD5 implementation 2001-01-12 23:50:46 +00:00
Josh Coalson
197537585d change to support new sign-folded rice coding 2001-01-06 01:24:53 +00:00
Josh Coalson
7efa1051c4 change to sign-folded rice coding, add golomb coder 2001-01-06 01:24:22 +00:00
Josh Coalson
da68d764d8 fix to chop off bytes after end of data chunk 2001-01-05 23:26:59 +00:00
Josh Coalson
841e27e159 add reserved space detection to metadata decoding 2001-01-03 00:26:42 +00:00
Josh Coalson
0ef47deb15 rename stream_decoder_allocate_output_ 2001-01-02 23:17:01 +00:00
Josh Coalson
44cd3e6c18 tweak compiler options 2000-12-25 19:32:34 +00:00
Josh Coalson
c0ef10b0f2 fix some typos in error messages 2000-12-22 22:40:24 +00:00
Josh Coalson
bbbef82a92 add new verify option (-V) 2000-12-22 22:39:08 +00:00
Josh Coalson
6c2553681e changed version to 0.4 2000-12-22 22:37:35 +00:00
Josh Coalson
cbf595f158 add string arrays for enums 2000-12-22 22:35:33 +00:00
Josh Coalson
7e17035e54 change version to 0.4 2000-12-22 22:34:02 +00:00
Josh Coalson
cf2c8a64aa Changed version number to 0.3 2000-12-17 19:08:24 +00:00
Josh Coalson
d44feb11d9 Fixed bug in constant-detection. 2000-12-17 19:07:46 +00:00
Josh Coalson
288c9dea5c Version number changed to 0.3 2000-12-17 19:05:51 +00:00
Josh Coalson
bb7f6b99d0 Initial revision 2000-12-10 04:09:52 +00:00