public class DecodeIR extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DecodeIR.DecodedSignal |
static class |
DecodeIR.DecodeIrException
Thrown if no sensible decode is found.
|
Modifier and Type | Method and Description |
---|---|
static DecodeIR |
create(IrSequence irSequence,
double frequency) |
static DecodeIR.DecodedSignal[] |
decode(int[] CCF)
Static version of the constructor with the same arguments.
|
static DecodeIR.DecodedSignal[] |
decode(int[] data,
int lengthRepeat,
int lengthEnding,
int frequency)
Static version of the constructor with the same arguments.
|
static DecodeIR.DecodedSignal[] |
decode(IrSequence irSequence,
double frequency)
Static version of the constructor with the same arguments.
|
static DecodeIR.DecodedSignal[] |
decode(IrSignal irSignal)
Static version of the constructor with the same arguments.
|
static DecodeIR.DecodedSignal[] |
decode(ModulatedIrSequence irSequence)
Static version of the constructor with the same arguments.
|
static DecodeIR.DecodedSignal[] |
decode(String ccf)
Static version of the constructor with the same arguments.
|
DecodeIR.DecodedSignal[] |
getDecodedSignals() |
static String |
getVersion()
Returns the version.
|
static void |
invoke(IrSignal irSignal)
Invokes a DecodeIR object on the argument, and print the decodes to stdout.
|
static void |
invoke(IrSignal irSignal,
PrintStream out)
Invokes a DecodeIR object on the argument, and print the decodes to the PrintStream in the second argument.
|
static boolean |
invoke(IrSignal irSignal,
String protocolName,
Protocol protocol,
HashMap<String,Long> actualParameters,
boolean verbose,
PrintStream out)
Invokes a DecodeIR object on the first argument, checks if compatible with the data in the rest of the arguments.
|
static void |
invoke(ModulatedIrSequence seq) |
static boolean |
loadLibrary()
Call without argument to load the shared library either from a architecture dependent
subdirectory or from the system's java.library.path.
|
static void |
main(String[] args)
Allows for calling DecodeIR from the command line
|
static DecodeIR |
newDecodeIR(int[] CCF) |
static DecodeIR |
newDecodeIR(int[] data,
int lengthRepeat,
int lengthEnding,
int frequency) |
static DecodeIR |
newDecodeIR(IrSignal irSignal) |
static DecodeIR |
newDecodeIR(ModulatedIrSequence irSequence) |
static DecodeIR |
newDecodeIR(String ccf) |
public static final String appName
public static DecodeIR newDecodeIR(int[] data, int lengthRepeat, int lengthEnding, int frequency)
public static DecodeIR newDecodeIR(int[] CCF) throws IrpMasterException
IrpMasterException
public static DecodeIR create(IrSequence irSequence, double frequency)
public static DecodeIR newDecodeIR(ModulatedIrSequence irSequence)
public static DecodeIR newDecodeIR(String ccf) throws ParseException, IncompatibleArgumentException, UnassignedException, DomainViolationException, InvalidRepeatException
public static boolean loadLibrary()
public static String getVersion()
public DecodeIR.DecodedSignal[] getDecodedSignals()
public static DecodeIR.DecodedSignal[] decode(int[] data, int lengthRepeat, int lengthEnding, int frequency)
data
- lengthRepeat
- lengthEnding
- frequency
- public static DecodeIR.DecodedSignal[] decode(IrSignal irSignal)
irSignal
- public static DecodeIR.DecodedSignal[] decode(String ccf) throws IncompatibleArgumentException, ParseException, UnassignedException, DomainViolationException, InvalidRepeatException
ccf
- ParseException
IncompatibleArgumentException
UnassignedException
DomainViolationException
InvalidRepeatException
public static DecodeIR.DecodedSignal[] decode(int[] CCF) throws IrpMasterException
CCF
- IrpMasterException
public static DecodeIR.DecodedSignal[] decode(IrSequence irSequence, double frequency)
irSequence
- frequency
- public static DecodeIR.DecodedSignal[] decode(ModulatedIrSequence irSequence)
irSequence
- public static void invoke(ModulatedIrSequence seq)
public static void invoke(IrSignal irSignal)
irSignal
- public static void invoke(IrSignal irSignal, PrintStream out)
irSignal
- out
- public static boolean invoke(IrSignal irSignal, String protocolName, Protocol protocol, HashMap<String,Long> actualParameters, boolean verbose, PrintStream out)
irSignal
- protocolName
- protocol
- actualParameters
- verbose
- out
- public static void main(String[] args)
args
- -- IR signal in Pronto format to be decoded.Copyright © 2016. All rights reserved.