-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1633 DMR Decoder redesign. Uses new DQPSK vector/scalar demodulator …
…implementations and soft sync detectors for more accurate detections and symbol timing and symbol period calculations. Includes two new calibrations with scalar and vector implementations for DQPSK demodulator and Interpolator. Enhances DMR error detection and correction algorithms, specifically the block product turbo code algorithms.
- Loading branch information
Dennis Sheirer
committed
Dec 24, 2024
1 parent
5c9c3fa
commit 7d9d40f
Showing
188 changed files
with
8,027 additions
and
3,142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/main/java/io/github/dsheirer/dsp/filter/interpolator/InterpolatorFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* ***************************************************************************** | ||
* Copyright (C) 2014-2024 Dennis Sheirer | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program 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 General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/> | ||
* **************************************************************************** | ||
*/ | ||
|
||
package io.github.dsheirer.dsp.filter.interpolator; | ||
|
||
import io.github.dsheirer.vector.calibrate.CalibrationManager; | ||
import io.github.dsheirer.vector.calibrate.CalibrationType; | ||
import io.github.dsheirer.vector.calibrate.Implementation; | ||
|
||
/** | ||
* Factory for creating an optimal scalar or vector (SIMD) interpolator implementation | ||
*/ | ||
public class InterpolatorFactory | ||
{ | ||
/** | ||
* Selects and instantiates the best interpolator version, scalar or vector, based on previous calibration. | ||
* @return interpolator | ||
*/ | ||
public static Interpolator getInterpolator() | ||
{ | ||
Implementation implementation = CalibrationManager.getInstance().getImplementation(CalibrationType.INTERPOLATOR); | ||
return getInterpolator(implementation); | ||
} | ||
|
||
/** | ||
* Instantiates the specified interpolator implementation. | ||
* @param implementation to construct. | ||
* @return interpolator. | ||
*/ | ||
public static Interpolator getInterpolator(Implementation implementation) | ||
{ | ||
return switch(implementation) | ||
{ | ||
case VECTOR_SIMD_64 -> new InterpolatorVector64(); | ||
case VECTOR_SIMD_128 -> new InterpolatorVector128(); | ||
case VECTOR_SIMD_256, VECTOR_SIMD_512 -> new InterpolatorVector256(); //Vector 512 not supported | ||
case SCALAR, UNCALIBRATED -> new InterpolatorScalar(); | ||
default -> throw new IllegalArgumentException("Unknown implementation type: " + implementation); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.