/external/libjpeg-turbo/ |
D | tjunittest.c | 183 static int checkBuf(unsigned char *buf, int w, int h, int pf, int subsamp, in checkBuf() argument 239 if (subsamp == TJSAMP_GRAY) { in checkBuf() 280 static int checkBufYUV(unsigned char *buf, int w, int h, int subsamp, in checkBufYUV() argument 284 int hsf = tjMCUWidth[subsamp] / 8, vsf = tjMCUHeight[subsamp] / 8; in checkBufYUV() 305 if (subsamp != TJSAMP_GRAY) { in checkBufYUV() 375 char *basename, int subsamp, int jpegQual, int flags) in compTest() argument 392 unsigned long yuvSize = tjBufSizeYUV2(w, pad, h, subsamp); in compTest() 403 subNameLong[subsamp]); in compTest() 404 TRY_TJ(tjEncodeYUV3(handle2, srcBuf, w, 0, h, pf, yuvBuf, pad, subsamp, in compTest() 407 if (checkBufYUV(yuvBuf, w, h, subsamp, sf)) fprintf(stderr, "Passed.\n"); in compTest() [all …]
|
D | turbojpeg.h | 821 int width, int pad, int height, int subsamp, 896 int height, int subsamp, 945 int subsamp); 970 int height, int subsamp); 987 DLLEXPORT int tjPlaneWidth(int componentID, int width, int subsamp); 1004 DLLEXPORT int tjPlaneHeight(int componentID, int height, int subsamp); 1058 unsigned char *dstBuf, int pad, int subsamp, 1119 int *strides, int subsamp, int flags); 1392 int pad, int subsamp, unsigned char *dstBuf, 1452 const int *strides, int subsamp, [all …]
|
D | turbojpeg.c | 269 int pixelFormat, int subsamp, int jpegQual, in setCompDefaults() argument 309 if (subsamp == TJSAMP_GRAY) in setCompDefaults() 324 cinfo->comp_info[0].h_samp_factor = tjMCUWidth[subsamp] / 8; in setCompDefaults() 328 cinfo->comp_info[3].h_samp_factor = tjMCUWidth[subsamp] / 8; in setCompDefaults() 329 cinfo->comp_info[0].v_samp_factor = tjMCUHeight[subsamp] / 8; in setCompDefaults() 333 cinfo->comp_info[3].v_samp_factor = tjMCUHeight[subsamp] / 8; in setCompDefaults() 564 int subsamp) in tjBufSizeYUV2() argument 569 if (subsamp < 0 || subsamp >= NUMSUBOPT) in tjBufSizeYUV2() 572 nc = (subsamp == TJSAMP_GRAY ? 1 : 3); in tjBufSizeYUV2() 574 int pw = tjPlaneWidth(i, width, subsamp); in tjBufSizeYUV2() [all …]
|
D | tjbench.c | 102 static char *formatName(int subsamp, int cs, char *buf) in formatName() argument 105 return (char *)subNameLong[subsamp]; in formatName() 107 snprintf(buf, 80, "%s %s", csName[cs], subNameLong[subsamp]); in formatName() 144 int subsamp, int jpegQual, char *fileName, int tilew, in decomp() argument 182 unsigned long yuvSize = tjBufSizeYUV2(width, yuvPad, height, subsamp); in decomp() 212 if (tjDecodeYUV(handle, yuvBuf, yuvPad, subsamp, dstPtr2, width, in decomp() 271 snprintf(tempStr, 1024, "%s_%s%s_%s.%s", fileName, subName[subsamp], in decomp() 280 if (subsamp == TJ_GRAYSCALE) { in decomp() 318 static int fullTest(unsigned char *srcBuf, int w, int h, int subsamp, in fullTest() argument 343 subNameLong[subsamp], jpegQual); in fullTest() [all …]
|
D | turbojpeg-jni.c | 141 (JNIEnv *env, jclass cls, jint width, jint pad, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__IIII() argument 143 jint retval = (jint)tjBufSizeYUV2(width, pad, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__IIII() 153 (JNIEnv *env, jclass cls, jint width, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__III() argument 157 subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__III() 163 jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeSizeYUV__IIIII() argument 166 subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_planeSizeYUV__IIIII() 176 (JNIEnv *env, jclass cls, jint componentID, jint width, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeWidth__III() argument 178 jint retval = (jint)tjPlaneWidth(componentID, width, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_planeWidth__III() 188 (JNIEnv *env, jclass cls, jint componentID, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeHeight__III() argument 190 jint retval = (jint)tjPlaneHeight(componentID, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_planeHeight__III() [all …]
|
D | ChangeLog.md | 1086 instead of -1 if `componentID` was > 0 and `subsamp` was `TJSAMP_GRAY`.
|
/external/oss-fuzz/projects/libjpeg-turbo/ |
D | libjpeg_turbo_fuzzer.cc | 30 int width, height, subsamp, colorspace; in LLVMFuzzerTestOneInput() local 32 jpegDecompressor, data, size, &width, &height, &subsamp, &colorspace); in LLVMFuzzerTestOneInput()
|