/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
D | YUVImage.java | 90 public YUVImage(int width, int[] strides, int height, int subsamp) { in YUVImage() argument 91 setBuf(null, null, width, strides, height, subsamp, true); in YUVImage() 108 public YUVImage(int width, int pad, int height, int subsamp) { in YUVImage() argument 109 setBuf(new byte[TJ.bufSizeYUV(width, pad, height, subsamp)], width, pad, in YUVImage() 110 height, subsamp); in YUVImage() 148 int height, int subsamp) { in YUVImage() argument 149 setBuf(planes, offsets, width, strides, height, subsamp, false); in YUVImage() 174 int subsamp) { in YUVImage() argument 175 setBuf(yuvImage, width, pad, height, subsamp); in YUVImage() 212 int height, int subsamp) { in setBuf() argument [all …]
|
D | TJ.java | 92 public static int getMCUWidth(int subsamp) { in getMCUWidth() argument 93 checkSubsampling(subsamp); in getMCUWidth() 94 return MCU_WIDTH[subsamp]; in getMCUWidth() 112 public static int getMCUHeight(int subsamp) { in getMCUHeight() argument 113 checkSubsampling(subsamp); in getMCUHeight() 114 return MCU_HEIGHT[subsamp]; in getMCUHeight() 495 int subsamp); in bufSizeYUV() argument 502 public static native int bufSizeYUV(int width, int height, int subsamp); in bufSizeYUV() argument 526 int height, int subsamp); in planeSizeYUV() argument 542 public static native int planeWidth(int componentID, int width, int subsamp); in planeWidth() argument [all …]
|
D | TJCompressor.java | 302 subsamp = newSubsamp; in setSubsamp() 336 if (subsamp < 0 && srcYUVImage == null) in compress() 350 srcHeight, srcPixelFormat, dstBuf, subsamp, in compress() 354 srcPixelFormat, dstBuf, subsamp, jpegQuality, in compress() 359 srcHeight, srcPixelFormat, dstBuf, subsamp, in compress() 363 srcPixelFormat, dstBuf, subsamp, jpegQuality, in compress() 381 byte[] buf = new byte[TJ.bufSize(srcWidth, srcHeight, subsamp)]; in compress() 460 subsamp); in encodeYUV() 486 YUVImage dstYUVImage = new YUVImage(srcWidth, pad, srcHeight, subsamp); in encodeYUV() 515 YUVImage dstYUVImage = new YUVImage(srcWidth, strides, srcHeight, subsamp); in encodeYUV() [all …]
|
D | TJDecompressor.java | 911 int[] srcStrides, int subsamp, byte[] dstBuf, int x, int y, int width, in decodeYUV() argument 915 int[] srcStrides, int subsamp, int[] dstBuf, int x, int y, int width, in decodeYUV() argument
|
/external/libjpeg-turbo/ |
D | tjunittest.c | 177 int checkBuf(unsigned char *buf, int w, int h, int pf, int subsamp, in checkBuf() argument 233 if (subsamp == TJSAMP_GRAY) { in checkBuf() 273 int checkBufYUV(unsigned char *buf, int w, int h, int subsamp, in checkBufYUV() argument 277 int hsf = tjMCUWidth[subsamp] / 8, vsf = tjMCUHeight[subsamp] / 8; in checkBufYUV() 298 if (subsamp != TJSAMP_GRAY) { in checkBufYUV() 360 int w, int h, int pf, char *basename, int subsamp, int jpegQual, in compTest() argument 378 unsigned long yuvSize = tjBufSizeYUV2(w, pad, h, subsamp); in compTest() 388 printf("%s %s -> YUV %s ... ", pfStr, buStrLong, subNameLong[subsamp]); in compTest() 389 TRY_TJ(tjEncodeYUV3(handle2, srcBuf, w, 0, h, pf, yuvBuf, pad, subsamp, in compTest() 392 if (checkBufYUV(yuvBuf, w, h, subsamp, sf)) printf("Passed.\n"); in compTest() [all …]
|
D | turbojpeg.h | 810 int width, int pad, int height, int subsamp, 885 int height, int subsamp, 934 int subsamp); 959 int height, int subsamp); 976 DLLEXPORT int tjPlaneWidth(int componentID, int width, int subsamp); 993 DLLEXPORT int tjPlaneHeight(int componentID, int height, int subsamp); 1047 unsigned char *dstBuf, int pad, int subsamp, 1108 int *strides, int subsamp, int flags); 1381 int pad, int subsamp, unsigned char *dstBuf, 1441 const int *strides, int subsamp, [all …]
|
D | turbojpeg.c | 237 int subsamp, int jpegQual, int flags) in setCompDefaults() argument 275 if (subsamp == TJSAMP_GRAY) in setCompDefaults() 290 cinfo->comp_info[0].h_samp_factor = tjMCUWidth[subsamp] / 8; in setCompDefaults() 294 cinfo->comp_info[3].h_samp_factor = tjMCUWidth[subsamp] / 8; in setCompDefaults() 295 cinfo->comp_info[0].v_samp_factor = tjMCUHeight[subsamp] / 8; in setCompDefaults() 299 cinfo->comp_info[3].v_samp_factor = tjMCUHeight[subsamp] / 8; in setCompDefaults() 532 int subsamp) in tjBufSizeYUV2() argument 537 if (subsamp < 0 || subsamp >= NUMSUBOPT) in tjBufSizeYUV2() 540 nc = (subsamp == TJSAMP_GRAY ? 1 : 3); in tjBufSizeYUV2() 542 int pw = tjPlaneWidth(i, width, subsamp); in tjBufSizeYUV2() [all …]
|
D | tjbench.c | 99 char *formatName(int subsamp, int cs, char *buf) in formatName() argument 102 return (char *)subNameLong[subsamp]; in formatName() 104 snprintf(buf, 80, "%s %s", csName[cs], subNameLong[subsamp]); in formatName() 141 int subsamp, int jpegQual, char *fileName, int tilew, int tileh) in decomp() argument 178 unsigned long yuvSize = tjBufSizeYUV2(width, yuvPad, height, subsamp); in decomp() 208 if (tjDecodeYUV(handle, yuvBuf, yuvPad, subsamp, dstPtr2, width, in decomp() 265 snprintf(tempStr, 1024, "%s_%s%s_%s.%s", fileName, subName[subsamp], in decomp() 274 if (subsamp == TJ_GRAYSCALE) { in decomp() 312 int fullTest(unsigned char *srcBuf, int w, int h, int subsamp, int jpegQual, in fullTest() argument 337 subNameLong[subsamp], jpegQual); in fullTest() [all …]
|
D | turbojpeg-jni.c | 136 (JNIEnv *env, jclass cls, jint width, jint pad, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__IIII() argument 138 jint retval = (jint)tjBufSizeYUV2(width, pad, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__IIII() 148 (JNIEnv *env, jclass cls, jint width, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__III() argument 152 subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__III() 158 jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeSizeYUV__IIIII() argument 161 subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_planeSizeYUV__IIIII() 171 (JNIEnv *env, jclass cls, jint componentID, jint width, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeWidth__III() argument 173 jint retval = (jint)tjPlaneWidth(componentID, width, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_planeWidth__III() 183 (JNIEnv *env, jclass cls, jint componentID, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeHeight__III() argument 185 jint retval = (jint)tjPlaneHeight(componentID, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_planeHeight__III() [all …]
|
D | CMakeLists.txt | 930 foreach(subsamp 420 422) 931 add_test(tjbench-${libtype}-tile-${subsamp}-${tile}x${tile}-cmp 932 ${MD5CMP} ${MD5_PPM_${subsamp}_${tile}x${tile}_TILE} 933 testout_tile_${subsamp}_Q95_${tile}x${tile}.ppm) 938 foreach(subsamp gray 420 422 444) 939 set_tests_properties(tjbench-${libtype}-tile-${subsamp}-${tile}x${tile}-cmp 958 foreach(subsamp 420 422) 959 add_test(tjbench-${libtype}-tile-${subsamp}m-${tile}x${tile}-cmp 960 ${MD5CMP} ${MD5_PPM_${subsamp}M_TILE} 961 testout_tilem_${subsamp}_Q95_${tile}x${tile}.ppm) [all …]
|
D | tjexampletest.in | 60 …runme $EXEDIR/tjexample $OUTDIR/$image $OUTDIR/${basename}_${samp}_${dct}.jpg -q 95 -subsamp ${sam…
|
D | tjexampletest.java.in | 62 …S TJExample $OUTDIR/$image $OUTDIR/${basename}_${samp}_${dct}.jpg -q 95 -subsamp ${samp} -${dct}dct
|
D | ChangeLog.md | 746 instead of -1 if `componentID` was > 0 and `subsamp` was `TJSAMP_GRAY`.
|
/external/libjpeg-turbo/java/ |
D | TJUnitTest.java | 296 static int checkBuf(byte[] buf, int w, int pitch, int h, int pf, int subsamp, in checkBuf() argument 365 if (subsamp == TJ.SAMP_GRAY) { in checkBuf() 423 int subsamp, TJScalingFactor sf, int flags) in checkIntBuf() argument 455 if (subsamp == TJ.SAMP_GRAY) { in checkIntBuf() 500 static int checkImg(BufferedImage img, int pf, int subsamp, in checkImg() argument 514 subsamp, sf, flags); in checkImg() 520 return checkBuf(buf, img.getWidth(), pitch, img.getHeight(), pf, subsamp, in checkImg() 529 static int checkBufYUV(byte[] buf, int size, int w, int h, int subsamp, in checkBufYUV() argument 532 int hsf = TJ.getMCUWidth(subsamp) / 8, vsf = TJ.getMCUHeight(subsamp) / 8; in checkBufYUV() 538 (subsamp == TJ.SAMP_GRAY ? 0 : uvpitch * ch * 2); in checkBufYUV() [all …]
|
D | TJBench.java | 88 static String formatName(int subsamp, int cs) { in formatName() argument 90 return SUBNAME_LONG[subsamp]; in formatName() 92 return CSNAME[cs] + " " + SUBNAME_LONG[subsamp]; in formatName() 164 byte[] dstBuf, int w, int h, int subsamp, int jpegQual, in decomp() argument 194 yuvImage = new YUVImage(width, yuvPad, height, subsamp); in decomp() 214 yuvImage.setBuf(yuvImage.getBuf(), width, yuvPad, height, subsamp); in decomp() local 288 tempStr = new String(fileName + "_" + SUBNAME[subsamp] + qualStr + in decomp() 297 if (subsamp == TJ.SAMP_GRAY) { in decomp() 326 static void fullTest(byte[] srcBuf, int w, int h, int subsamp, int jpegQual, in fullTest() argument 347 SUBNAME_LONG[subsamp], jpegQual); in fullTest() [all …]
|