diff options
author | Ragesh Radhakrishnan <ragesh.r@linaro.org> | 2013-12-03 15:34:06 +0530 |
---|---|---|
committer | Ragesh Radhakrishnan <ragesh.r@linaro.org> | 2013-12-03 15:34:06 +0530 |
commit | e3664dee8cf33d33f7bc776f0cdb3df599e91e13 (patch) | |
tree | ca0f4b221bb4f1cbb692842986939d5c4eeda517 | |
parent | 30dbaf8cec8f81e8a8c784649f60b3817cc2779d (diff) |
Add android rgb565 unit testing support
-rw-r--r-- | tjunittest.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tjunittest.c b/tjunittest.c index 6f23b23..5bfe02b 100644 --- a/tjunittest.c +++ b/tjunittest.c @@ -73,6 +73,9 @@ const int alphaOffset[TJ_NUMPF] = {-1, -1, -1, -1, -1, -1, -1, 3, 3, 0, 0}; const int _3byteFormats[]={TJPF_RGB, TJPF_BGR}; const int _4byteFormats[]={TJPF_RGBX, TJPF_BGRX, TJPF_XBGR, TJPF_XRGB}; +#ifdef ANDROID +const int _2byteFormats[]={TJPF_RGB565}; +#endif const int _onlyGray[]={TJPF_GRAY}; const int _onlyRGB[]={TJPF_RGB}; @@ -628,7 +631,11 @@ int main(int argc, char *argv[]) doTest(35, 39, _onlyGray, 1, TJSAMP_GRAY, "test"); doTest(39, 41, _3byteFormats, 2, TJSAMP_GRAY, "test"); doTest(41, 35, _4byteFormats, 4, TJSAMP_GRAY, "test"); +#ifdef ANDROID + doTest(41, 35, _2byteFormats, 1, TJSAMP_GRAY, "test"); +#endif if(!doyuv) bufSizeTest(); + if(doyuv) { yuv=YUVDECODE; |