Bert Vermeulen
4ab01c3564
input/csv: Fix size_t printing.
2014-10-04 10:39:11 +02:00
Bert Vermeulen
18078d0532
input/csv: Code cleanup.
...
This cleans up a warning generated by clang's static analyzer.
2014-10-02 13:59:44 +02:00
Bert Vermeulen
74e1f6f53c
input/chronovu_la8: Code cleanup.
...
This cleans up a warning generated by clang's static analyzer.
2014-10-02 13:55:37 +02:00
Bert Vermeulen
577a9fe423
input/binary: Code cleanup.
...
This cleans up a warning generated by clang's static analyzer.
2014-10-02 13:55:21 +02:00
Bert Vermeulen
6409821143
input: Avoid NULL dereference.
...
This cleans up a warning generated by clang's static analyzer.
2014-10-02 13:51:19 +02:00
Bert Vermeulen
60107497fe
input: Use SR_ERR_NA instead of SR_OK_CONTINUE.
2014-09-30 01:49:58 +02:00
Bert Vermeulen
d5cc282ff8
input: sr_input_free() is now a void function.
...
Its backend, input_module.cleanup(), is now also a void function.
2014-09-30 01:49:58 +02:00
Bert Vermeulen
7066fd4660
input: Add sr_input_end().
...
This signifies to the module instance no more input will come. This
will cause the module to process any data it may have buffered. The
SR_DF_END packet will also typically be sent at this time.
2014-09-30 01:49:58 +02:00
Bert Vermeulen
89da5b3b54
input: Free instance-private storage at instance free.
2014-09-30 01:49:58 +02:00
Bert Vermeulen
d018181331
input: Add sdi_ready flag to struct sr_input.
...
When an input module instance has received enough input to fully
populate the struct sr_dev_inst, sdi_ready is set to TRUE and its
receive() method returns immediately. Any remaining received data
is buffered until the next time the function is called.
2014-09-30 01:49:58 +02:00
Soeren Apel
f220936473
Removal of sdi->index, step 3: sr_dev_inst_new() calls for input mods
2014-09-30 01:42:58 +02:00
Bert Vermeulen
04c2f202f2
input/chronovu_la8: Fix broken I/O loop.
2014-09-22 00:47:22 +02:00
Bert Vermeulen
25f20faf0d
input: Add debug output.
2014-09-10 22:55:50 +02:00
Bert Vermeulen
88189019ac
input/binary: Fix broken I/O loop.
2014-09-10 22:53:28 +02:00
Bert Vermeulen
e8779db70c
input/wav: Now really correctly check supported sample size.
2014-09-02 22:09:17 +02:00
Bert Vermeulen
73145219c0
input/wav: Correctly check supported sample size.
2014-09-02 21:26:15 +02:00
Marcus Comstedt
28d9df7292
input/wav: Fix broken handling of float32 samples on big endian
...
Also, make sure that floats are 32 bit even in the case of an
extensible header.
2014-09-02 19:14:25 +02:00
Bert Vermeulen
6e8d95a50c
input/csv: Use uint64 for samplerate option.
2014-08-30 20:16:45 +02:00
Bert Vermeulen
edd28877cc
input/chronovu_la8: Use uint64 for samplerate option.
2014-08-30 20:15:30 +02:00
Bert Vermeulen
10288172be
input/binary: Use uint64 for samplerate option.
2014-08-30 20:13:13 +02:00
Bert Vermeulen
4f979115a4
input: sr_input_scan_*() now return a status code.
...
SR_OK: a match was found.
SR_ERR: no match.
SR_ERR_DATA: a match was found but the module cannot handle the input.
SR_OK_CONTINUE: some module didn't have enough data to be sure.
2014-08-28 00:22:13 +02:00
Bert Vermeulen
cbd9e6e987
input/wav: Support for WAVE_FORMAT_EXTENSIBLE.
...
This is needed for supporting > 16-bit PCM samples.
2014-08-27 15:55:52 +02:00
Bert Vermeulen
962d43440a
input/wav: use our own endian macros.
...
These should work better on non-aligned memory locations.
2014-08-26 22:48:12 +02:00
Bert Vermeulen
06ad20bebf
input: Avoid warnings on all-zero static struct entries.
2014-08-26 12:38:41 +02:00
Bert Vermeulen
b84cba4dbf
input: Convert binary module.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
02e24c0ce0
input: Convert chronovu-la8 module.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
5e83cd741f
input/vcd: Minor code cleanup.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
33e4303baa
input: Only feed scanned header to streams, not scanned files.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
115fbe9410
input: Only use header buffer for modules that need it.
...
The buffer was leaking into modules that didn't ask for it.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
0a4d68f74b
input/wav: Send END packet on cleanup.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
c10ef17c23
input/vcd: Send END packet on cleanup.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
41d214f61a
input: Convert CSV module.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
57486a7528
input: sr_input_new() always allocates the instance buffer.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
fe4fe25bf5
input: Fix option enumeration.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
bd0bfaafd8
input: Actually return a NULL-terminated array.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
7db0639495
input: Fixes and VCD.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
0f3dbc9530
input: Fix up API documentation.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
17bfaca62a
input: Introduce new input module API.
...
This is a work in progress.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
d4c937749a
input: s/format/module in all naming.
2014-08-26 01:55:41 +02:00
Bert Vermeulen
2f6f0e9187
input/vcd: Make less noise in format match failure.
2014-08-01 12:04:20 +02:00
Bert Vermeulen
b866fc095d
input/csv: Match format on .csv extension in filename.
2014-08-01 12:03:42 +02:00
Bert Vermeulen
cb41a838a7
input/wav: Deal with IEEE float samples in WAV files.
...
This also skips chunks before the 'data' chunk in WAV files, as
this is quite common.
2014-08-01 12:02:09 +02:00
Bert Vermeulen
155b680da4
Reorganize project tree.
2014-07-22 18:19:29 +02:00