aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/convert
Commit message (Collapse)AuthorAgeFilesLines
* convert: Add sc16-sc16 SSE converterTom Tsou2015-05-142-0/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | The sc16-sc16 wire to host type converter is effectively an I/Q swap or 16-bit byteswap for little and big endian cases respectively. This implmentation is a subset of fc32 and fc64 converters without the floating point portion and scaling. The resulting byte ordering is as follows: ----------------- | A | B | C | D | Wire ----------------- 0 1 2 3 ----------------- | C | D | A | B | Litte-endian ----------------- 0 1 2 3 ----------------- | B | A | D | C | Big-endian ----------------- 0 1 2 3 Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
* convert: Added logging point in get_converter()Martin Braun2015-01-271-1/+16
|
* convert: Modifications to id_typeMartin Braun2015-01-271-3/+12
| | | | | - Converter ID symbols are exported - to_string() function for lighter feedback
* docs: Amended docs for conversion routinesMartin Braun2015-01-141-0/+13
|
* convert: Removed default-all-lines 12-bit packerMartin Braun2015-01-141-21/+6
|
* convert: Limit sc12 converter buffer overwriteTom Tsou2015-01-141-12/+74
| | | | | | | | | | | | | | | | | | | | | This patch addresses issue #648 "B200: TX with SC12 format and MIMO". The observed MIMO header corruption was caused by overwriting the end of the packed 12-bit sample output buffer. The overwrite was due to the converter call always writing out 4 complex samples even if less than 4 samples were available. The extra samples would corrupt data with zero padding. Avoid the overwrite condition by only writing the minimum number of 32-bit lines necessary rather than the entire 12 byte struct. Samples 32-bit lines 1 1 2 2 3 3 4 3 Signed-off-by: Tom Tsou <tom@tsou.cc>
* convert: Fix sc12 unpack shiftingTom Tsou2015-01-121-8/+8
| | | | | | | | | | | | Resolve issue #666 "B200: Rx signal distortion when using SC12". During 12-bit unpacking, OTW samples are shifted into the high order bits of the 16-bit intermediate values. The remaining 4-bits are not zeroed and contain bits from adjacent samples. Consequently, signal distortion becomes noticable with spurs and other random signal garbage when operating at low signal levels. Signed-off-by: Tom Tsou <tom@tsou.cc>
* Initial commit E300 support.Martin Braun2014-10-073-1/+75
|
* Added missing pure virtual destructors to base classesNicholas Corgan2014-09-011-0/+4
|
* Restoring compatibility with CMake 2.6Nicholas Corgan2014-08-141-1/+1
| | | | | * The UNSET command didn't exist back then, but using SET with no value does the same thing * CMake 2.6 doesn't like nested parantheses in IF statements, so tweak IF/ELSE statements
* Fix issue with "item32" registered size, Bug 466.Ben Hilburn2014-06-131-0/+3
|\
| * UHD: Addressing Bug 466, as per Balint.Ben Hilburn2014-05-221-0/+3
| |
* | Do not set the mfloat-soft flag during the test for arm_neon.h.Philip Balister2014-06-031-7/+0
|/ | | | | | | Use the flags passed in from the toolchain. If this test runs on a hard-float system, bad things happen. Signed-off-by: Philip Balister <philip@opensdr.com>
* uhd: Registered sc12 as typeMartin Braun2014-04-101-0/+1
|
* Merging USRP X300 and X310 support!!Ben Hilburn2014-02-041-2/+15
|
* Merge of mwest's fix to the sse2_fc32_to_sc16 converter.Ben Hilburn2013-12-111-1/+1
|
* Squashed merge of Coverity fixes.Ben Hilburn2013-11-275-30/+67
|
* sc12: fixed byte alignment issueJohannes Demel2013-11-191-4/+57
|
* convert: added sc12 and fc32 convertersJosh Blum2013-08-284-1/+413
|
* convert: sc8 swap for vita complianceJosh Blum2013-08-288-55/+54
|
* orc: added std cmake finder script for orcJosh Blum2013-03-291-5/+4
|
* convert: add sc8 host to/from sc8 wire formatJosh Blum2012-06-122-0/+27
|
* convert: applied sc8 signed convert fixJosh Blum2012-05-101-8/+12
|
* convert: some platform specific fixesJosh Blum2012-05-094-8/+15
| | | | | | | neon: missing header windows: shuffle needs to be deemed "constant expression", fixed with a template parameter.
* convert: squashed converter and sse2 workJosh Blum2012-05-0913-497/+714
|
* Merge branch 'maint'Josh Blum2012-05-091-16/+24
|\
| * convert: fixed sc8 convert issue w/ undefined behaviourJosh Blum2012-05-081-16/+24
| | | | | | | | | | | | | | Its important to use a signed cast when converting float to int. Then assign that signed int to an unsigned type of the same width. Its undefined behaviour when converting a negative float to an unsigned int.
* | convert: added prio param to get converterJosh Blum2012-04-271-20/+23
|/ | | | We can now test generic conversion implementations against SIMD (for example)
* convert: give SIMD conversions prio over tableJosh Blum2012-04-161-2/+2
| | | | | | | | given performance benchmarks involving the converter, when the driver is also doing other things sc8 conversions will still involve tables since no SIMD implementations exist yet
* uhd: fix sc16 to sc8 conversion tableJosh Blum2012-02-291-12/+12
| | | | | | | 1) this was registered as the sc8 to sc16 converter, probably messed that up as well 2) the cast to index was wrong, now unit test passes
* Merge branch 'next'Josh Blum2012-02-1710-14/+508
|\
| * uhd: fixed sse2 conversion fc32 to sc8_item32_beJosh Blum2012-02-091-2/+2
| |
| * uhd: fixed orc conversion fc32 to sc8_item32_beJosh Blum2012-02-091-1/+1
| |
| * uhd: added sse2 conversions for fc32 to sc8Josh Blum2012-02-082-0/+151
| |
| * uhd: added sse2 conversions for fc64 to sc8Josh Blum2012-02-084-9/+166
| |
| * Add Orc functions to convert to sc8. bswap version is a bit of a hack.Nick Foster2012-02-082-0/+28
| |
| * uhd: added sc8 conversion testsJosh Blum2012-02-073-3/+72
| |
| * dsp rework: tx trailer, scaling work (peak)Josh Blum2012-01-313-13/+72
| |
| * uhd: implement convert_sc8to_sc16 table w/ scalarJosh Blum2012-01-311-0/+30
| |
* | usrp1: big endian compile fix, conversion should cast to unsignedJosh Blum2012-02-121-2/+2
|/ | | | The htonx only takes unsigned integers, cast the int16 to uint16.
* convert: added generic conversion for sc8 wire -> sc8 hostJosh Blum2011-11-152-2/+23
|
* convert: move priorities to implementation, different for armJosh Blum2011-11-152-5/+17
|
* convert: msvc warning fixes for sc8 table genJosh Blum2011-11-131-1/+3
|
* uhd: fixed sc8 table conversion, and simplified shiftsJosh Blum2011-11-131-19/+15
|
* convert: added table conversion routines for sc8Josh Blum2011-11-121-17/+95
|
* convert: simplify table conversion with templatesJosh Blum2011-11-121-52/+25
|
* convert: added table conversion routine for sc16 to floatsJosh Blum2011-11-123-2/+141
|
* convert: made conversion functions into classes so they can keep stateJosh Blum2011-11-123-25/+15
|
* uhd: convert should use register_bytes_per_itemJosh Blum2011-11-111-11/+13
|
* uhd: dont pass 0 sample buffs to converter (avoid segfaults)Josh Blum2011-11-071-1/+0
|