[XviD-devel] Endian Problem found
Edouard Gomez
ed.gomez at free.fr
Tue Dec 23 16:08:44 CET 2003
Christoph Nägeli (chn at kbw.ch) wrote:
> I'm not sure what exactly you mean.
Each test case holds (s != reference_value)?"| ERROR":"" in the result
printing.
The easiest way to handle endianness is to turn the reference_value cst
into a preprocessor constant defined on top of the test function
(test_quant, test_transfer etc...)
Something like this
void
test_quant()
{
vars;
#ifdef ARCH_IS_BIG_ENDIAN
#define REFERENCE_RESULT_DEQUANT_H263_INTRA 0x....
...
#else
#define REFERENCE_RESULT_DEQUANT_H263_INTRA 0x....
#endif
TEST_QUANT(....)
printf(...
(s != REFERENCE_RESULT_DEQUANT_H263_INTRA)?"|
ERROR":"");
}
--
Edouard Gomez
More information about the XviD-devel
mailing list