const int _onlyGray[]={TJPF_GRAY};
const int _onlyRGB[]={TJPF_RGB};
-enum {YUVENCODE=1, YUVDECODE};
int doyuv=0, alloc=0, pad=4;
int exitStatus=0;
_tj(tjEncodeYUV3(handle2, srcBuf, w, 0, h, pf, yuvBuf, pad, subsamp,
flags));
tjDestroy(handle2);
- snprintf(tempStr, 1024, "%s_enc_%s_%s_%s.yuv", basename, pfStr, buStr,
- subName[subsamp]);
- writeJPEG(yuvBuf, yuvSize, tempStr);
if(checkBufYUV(yuvBuf, w, h, subsamp, sf)) printf("Passed.\n");
else printf("FAILED!\n");