Home
last modified time | relevance | path

Searched refs:subsamp (Results 1 - 6 of 6) sorted by relevance

/third_party/skia/third_party/externals/libjpeg-turbo/
H A Dtjunittest.c183 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()
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()
373 compTest(tjhandle handle, unsigned char **dstBuf, unsigned long *dstSize, int w, int h, int pf, char *basename, int subsamp, int jpegQual, int flags) compTest() argument
432 _decompTest(tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, int w, int h, int pf, char *basename, int subsamp, int flags, tjscalingfactor sf) _decompTest() argument
501 decompTest(tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, int w, int h, int pf, char *basename, int subsamp, int flags) decompTest() argument
525 doTest(int w, int h, const int *formats, int nformats, int subsamp, char *basename) doTest() argument
612 int w, h, i, subsamp; bufSizeTest() local
[all...]
H A Dturbojpeg.c269 int pixelFormat, int subsamp, int jpegQual, in setCompDefaults()
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()
569 if (subsamp < 0 || subsamp >= NUMSUBOPT) in tjBufSizeYUV2()
572 nc = (subsamp in tjBufSizeYUV2()
268 setCompDefaults(struct jpeg_compress_struct *cinfo, int pixelFormat, int subsamp, int jpegQual, int flags) setCompDefaults() argument
563 tjBufSizeYUV2(int width, int pad, int height, int subsamp) tjBufSizeYUV2() argument
588 tjBufSizeYUV(int width, int height, int subsamp) tjBufSizeYUV() argument
593 TJBUFSIZEYUV(int width, int height, int subsamp) TJBUFSIZEYUV() argument
599 tjPlaneWidth(int componentID, int width, int subsamp) tjPlaneWidth() argument
620 tjPlaneHeight(int componentID, int height, int subsamp) tjPlaneHeight() argument
641 tjPlaneSizeYUV(int componentID, int width, int stride, int height, int subsamp) tjPlaneSizeYUV() argument
756 tjEncodeYUVPlanes(tjhandle handle, const unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char **dstPlanes, int *strides, int subsamp, int flags) tjEncodeYUVPlanes() argument
914 tjEncodeYUV3(tjhandle handle, const unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, int pad, int subsamp, int flags) tjEncodeYUV3() argument
953 tjEncodeYUV2(tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, int subsamp, int flags) tjEncodeYUV2() argument
961 tjEncodeYUV(tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelSize, unsigned char *dstBuf, int subsamp, int flags) tjEncodeYUV() argument
971 tjCompressFromYUVPlanes(tjhandle handle, const unsigned char **srcPlanes, int width, const int *strides, int height, int subsamp, unsigned char **jpegBuf, unsigned long *jpegSize, int jpegQual, int flags) tjCompressFromYUVPlanes() argument
1108 tjCompressFromYUV(tjhandle handle, const unsigned char *srcBuf, int width, int pad, int height, int subsamp, unsigned char **jpegBuf, unsigned long *jpegSize, int jpegQual, int flags) tjCompressFromYUV() argument
1378 setDecodeDefaults(struct jpeg_decompress_struct *dinfo, int pixelFormat, int subsamp, int flags) setDecodeDefaults() argument
1428 tjDecodeYUVPlanes(tjhandle handle, const unsigned char **srcPlanes, const int *strides, int subsamp, unsigned char *dstBuf, int width, int pitch, int height, int pixelFormat, int flags) tjDecodeYUVPlanes() argument
1576 tjDecodeYUV(tjhandle handle, const unsigned char *srcBuf, int pad, int subsamp, unsigned char *dstBuf, int width, int pitch, int height, int pixelFormat, int flags) tjDecodeYUV() argument
[all...]
H A Dturbojpeg.h784 * @param subsamp the level of chrominance subsampling used in the source
821 int width, int pad, int height, int subsamp,
857 * @param subsamp the level of chrominance subsampling used in the source
896 int height, int subsamp,
938 * @param subsamp level of chrominance subsampling in the image (see
945 int subsamp);
963 * @param subsamp level of chrominance subsampling in the image (see
970 int height, int subsamp);
981 * @param subsamp level of chrominance subsampling in the image (see
987 DLLEXPORT int tjPlaneWidth(int componentID, int width, int subsamp);
[all...]
H A Dtjbench.c102 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()
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], jpegQua in fullTest()
142 decomp(unsigned char *srcBuf, unsigned char **jpegBuf, unsigned long *jpegSize, unsigned char *dstBuf, int w, int h, int subsamp, int jpegQual, char *fileName, int tilew, int tileh) decomp() argument
541 int w = 0, h = 0, tilew, tileh, ntilesw = 1, ntilesh = 1, subsamp = -1, decompTest() local
838 int minArg = 2, retval = 0, subsamp = -1; main() local
[all...]
H A Dturbojpeg-jni.c141 (JNIEnv *env, jclass cls, jint width, jint pad, jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__IIII()
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()
157 subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__III()
163 jint height, jint subsamp) in Java_org_libjpegturbo_turbojpeg_TJ_planeSizeYUV__IIIII()
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()
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()
190 jint retval = (jint)tjPlaneHeight(componentID, height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJ_planeHeight__III()
140 Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__IIII(JNIEnv *env, jclass cls, jint width, jint pad, jint height, jint subsamp) Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__IIII() argument
152 Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__III(JNIEnv *env, jclass cls, jint width, jint height, jint subsamp) Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV__III() argument
161 Java_org_libjpegturbo_turbojpeg_TJ_planeSizeYUV__IIIII(JNIEnv *env, jclass cls, jint componentID, jint width, jint stride, jint height, jint subsamp) Java_org_libjpegturbo_turbojpeg_TJ_planeSizeYUV__IIIII() argument
175 Java_org_libjpegturbo_turbojpeg_TJ_planeWidth__III(JNIEnv *env, jclass cls, jint componentID, jint width, jint subsamp) Java_org_libjpegturbo_turbojpeg_TJ_planeWidth__III() argument
187 Java_org_libjpegturbo_turbojpeg_TJ_planeHeight__III(JNIEnv *env, jclass cls, jint componentID, jint height, jint subsamp) Java_org_libjpegturbo_turbojpeg_TJ_planeHeight__III() argument
321 Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII(JNIEnv *env, jobject obj, jobjectArray srcobjs, jintArray jSrcOffsets, jint width, jintArray jSrcStrides, jint height, jint subsamp, jbyteArray dst, jint jpegQual, jint flags) Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() argument
402 TJCompressor_encodeYUV(JNIEnv *env, jobject obj, jarray src, jint srcElementSize, jint x, jint y, jint width, jint pitch, jint height, jint pf, jobjectArray dstobjs, jintArray jDstOffsets, jintArray jDstStrides, jint subsamp, jint flags) TJCompressor_encodeYUV() argument
485 Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3BIIIIII_3_3B_3I_3III(JNIEnv *env, jobject obj, jbyteArray src, jint x, jint y, jint width, jint pitch, jint height, jint pf, jobjectArray dstobjs, jintArray jDstOffsets, jintArray jDstStrides, jint subsamp, jint flags) Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3BIIIIII_3_3B_3I_3III() argument
495 Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3IIIIIII_3_3B_3I_3III(JNIEnv *env, jobject obj, jintArray src, jint x, jint y, jint width, jint stride, jint height, jint pf, jobjectArray dstobjs, jintArray jDstOffsets, jintArray jDstStrides, jint subsamp, jint flags) Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3IIIIIII_3_3B_3I_3III() argument
513 TJCompressor_encodeYUV_12(JNIEnv *env, jobject obj, jarray src, jint srcElementSize, jint width, jint pitch, jint height, jint pf, jbyteArray dst, jint subsamp, jint flags) TJCompressor_encodeYUV_12() argument
552 Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3BIIII_3BII(JNIEnv *env, jobject obj, jbyteArray src, jint width, jint pitch, jint height, jint pf, jbyteArray dst, jint subsamp, jint flags) Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3BIIII_3BII() argument
561 Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3IIIII_3BII(JNIEnv *env, jobject obj, jintArray src, jint width, jint stride, jint height, jint pf, jbyteArray dst, jint subsamp, jint flags) Java_org_libjpegturbo_turbojpeg_TJCompressor_encodeYUV___3IIIII_3BII() argument
902 TJDecompressor_decodeYUV(JNIEnv *env, jobject obj, jobjectArray srcobjs, jintArray jSrcOffsets, jintArray jSrcStrides, jint subsamp, jarray dst, jint dstElementSize, jint x, jint y, jint width, jint pitch, jint height, jint pf, jint flags) TJDecompressor_decodeYUV() argument
984 Java_org_libjpegturbo_turbojpeg_TJDecompressor_decodeYUV___3_3B_3I_3II_3BIIIIIII(JNIEnv *env, jobject obj, jobjectArray srcobjs, jintArray jSrcOffsets, jintArray jSrcStrides, jint subsamp, jbyteArray dst, jint x, jint y, jint width, jint pitch, jint height, jint pf, jint flags) Java_org_libjpegturbo_turbojpeg_TJDecompressor_decodeYUV___3_3B_3I_3II_3BIIIIIII() argument
995 Java_org_libjpegturbo_turbojpeg_TJDecompressor_decodeYUV___3_3B_3I_3II_3IIIIIIII(JNIEnv *env, jobject obj, jobjectArray srcobjs, jintArray jSrcOffsets, jintArray jSrcStrides, jint subsamp, jintArray dst, jint x, jint y, jint width, jint stride, jint height, jint pf, jint flags) Java_org_libjpegturbo_turbojpeg_TJDecompressor_decodeYUV___3_3B_3I_3II_3IIIIIIII() argument
[all...]
/third_party/backends/backend/
H A Dumax1220u-common.c1608 unsigned char subsamp[9] = { in send_scan_parameters() local
1666 scan->caldata[16068] = subsamp[scan->xsamp]; in send_scan_parameters()
1667 scan->caldata[16069] = subsamp[scan->ysamp]; in send_scan_parameters()
1706 unsigned char subsamp[9] = { in send_scan_parameters_2100U() local
1762 scan->caldata[16068] = subsamp[scan->xsamp]; in send_scan_parameters_2100U()
1763 scan->caldata[16069] = subsamp[scan->ysamp]; in send_scan_parameters_2100U()

Completed in 12 milliseconds