- refactored
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@1091 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -145,7 +145,7 @@ void DeSymbolizer::process()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t DeSymbolizer::differentialDecode(uint32_t symbol)
|
symbol_t DeSymbolizer::differentialDecode(symbol_t symbol)
|
||||||
{
|
{
|
||||||
uint32_t res;
|
uint32_t res;
|
||||||
|
|
||||||
|
|||||||
@@ -78,10 +78,10 @@ void Symbolizer::process()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t Symbolizer::differentialEncode(uint32_t symbol)
|
symbol_t Symbolizer::differentialEncode(symbol_t symbol)
|
||||||
{
|
{
|
||||||
// Differential encode
|
// Differential encode
|
||||||
m_lastSymbol = (uint32_t)(m_symbolMask & (symbol + m_lastSymbol));
|
m_lastSymbol = (symbol_t)(m_symbolMask & (symbol + m_lastSymbol));
|
||||||
|
|
||||||
return m_lastSymbol;
|
return m_lastSymbol;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ public:
|
|||||||
// Processor::Block
|
// Processor::Block
|
||||||
void prepare() override;
|
void prepare() override;
|
||||||
void process();
|
void process();
|
||||||
|
symbol_t differentialEncode(symbol_t symbol);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint32_t m_nBitsPerSym;
|
uint32_t m_nBitsPerSym;
|
||||||
@@ -25,7 +26,6 @@ private:
|
|||||||
symbol_t m_symbolMask;
|
symbol_t m_symbolMask;
|
||||||
Processor::Buffer<uint8_t> *m_buf_in;
|
Processor::Buffer<uint8_t> *m_buf_in;
|
||||||
Processor::Buffer<symbol_t> *m_buf_out;
|
Processor::Buffer<symbol_t> *m_buf_out;
|
||||||
symbol_t differentialEncode(symbol_t symbol);
|
|
||||||
void commit(symbol_t src);
|
void commit(symbol_t src);
|
||||||
void assemble_and_commit(uint8_t src);
|
void assemble_and_commit(uint8_t src);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user