|
|
|
@ -57,16 +57,6 @@ struct BaseDecoder
|
|
|
|
virtual std::vector<std::string> GetSupportedFileExtensions() = 0;
|
|
|
|
virtual std::vector<std::string> GetSupportedFileExtensions() = 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct StreamBuffer
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct StreamingDecoder
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef std::pair<std::string, std::shared_ptr<nqr::BaseDecoder>> DecoderPair;
|
|
|
|
typedef std::pair<std::string, std::shared_ptr<nqr::BaseDecoder>> DecoderPair;
|
|
|
|
|
|
|
|
|
|
|
|
class NyquistIO
|
|
|
|
class NyquistIO
|
|
|
|
@ -89,8 +79,7 @@ private:
|
|
|
|
|
|
|
|
|
|
|
|
void BuildDecoderTable();
|
|
|
|
void BuildDecoderTable();
|
|
|
|
|
|
|
|
|
|
|
|
template<typename T>
|
|
|
|
void AddDecoderToTable(std::shared_ptr<nqr::BaseDecoder> decoder)
|
|
|
|
void AddDecoderToTable(std::shared_ptr<T> decoder)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
auto supportedExtensions = decoder->GetSupportedFileExtensions();
|
|
|
|
auto supportedExtensions = decoder->GetSupportedFileExtensions();
|
|
|
|
|
|
|
|
|
|
|
|
|