Home
last modified time | relevance | path

Searched refs:_throw (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/third_party/libjpeg_turbo/
Dturbojpeg-jni.c40 #define _throw(msg) { \ macro
50 _throw(temps); \
64 if(retval==-1) _throw(tjGetErrorStr()); in Java_org_libjpegturbo_turbojpeg_TJ_bufSize()
74 if(retval==-1) _throw(tjGetErrorStr()); in Java_org_libjpegturbo_turbojpeg_TJ_bufSizeYUV()
88 _throw(tjGetErrorStr()); in Java_org_libjpegturbo_turbojpeg_TJCompressor_init()
112 _throw("Invalid argument in compress()"); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII()
114 _throw("Mismatch between Java and C API"); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII()
119 _throw("Source buffer is not large enough"); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII()
122 _throw("Destination buffer is not large enough"); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII()
134 _throw(tjGetErrorStr()); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compress___3BIIIIII_3BIII()
[all …]
Dbmp.c69 #define _throw(m) {snprintf(errStr, JMSG_LENGTH_MAX, "%s", m); \ macro
113 _throw("loadbmp(): Invalid argument"); in loadbmp()
131 else if(tempc==EOF) _throw("loadbmp(): Input file contains no data"); in loadbmp()
136 _throw("loadbmp(): Could not initialize bitmap loader"); in loadbmp()
141 _throw("loadbmp(): Could not initialize bitmap loader"); in loadbmp()
143 else _throw("loadbmp(): Unsupported file type"); in loadbmp()
157 _throw("loadbmp(): Memory allocation failure"); in loadbmp()
197 _throw("savebmp(): Invalid argument"); in savebmp()
231 _throw("savebmp(): Could not initialize bitmap writer"); in savebmp()
236 _throw("savebmp(): Could not initialize PPM writer"); in savebmp()
Dturbojpeg.c116 #define _throw(m) {snprintf(errStr, JMSG_LENGTH_MAX, "%s", m); \ macro
259 _throw("Unsupported pixel format"); in setDecompDefaults()
520 _throw("tjBufSize(): Invalid argument"); in tjBufSize()
538 _throw("TJBUFSIZE(): Invalid argument"); in TJBUFSIZE()
556 _throw("tjBufSizeYUV(): Invalid argument"); in tjBufSizeYUV()
585 _throw("tjCompress2(): Instance has not been initialized for compression"); in tjCompress2()
590 _throw("tjCompress2(): Invalid argument"); in tjCompress2()
605 if(!rgbBuf) _throw("tjCompress2(): Memory allocation failure"); in tjCompress2()
628 _throw("tjCompress2(): Memory allocation failure"); in tjCompress2()
697 _throw("tjEncodeYUV2(): Instance has not been initialized for compression"); in tjEncodeYUV2()
[all …]
Dturbojpegl.c65 #define _throw(c) {sprintf(lasterror, "%s", c); return -1;} macro
68 if(!j) _throw("Invalid handle");
126 _throw("Invalid argument in tjCompress()"); in tjCompress()
127 if(ps!=3 && ps!=4) _throw("This compressor can only take 24-bit or 32-bit RGB input"); in tjCompress()
128 if(!j->initc) _throw("Instance has not been initialized for compression"); in tjCompress()
182 _throw("Memory allocation failed in tjInitCompress()"); in tjCompress()
256 _throw("Invalid argument in tjDecompressHeader()"); in tjDecompressHeader()
257 if(!j->initd) _throw("Instance has not been initialized for decompression"); in tjDecompressHeader()
273 if(*width<1 || *height<1) _throw("Invalid data returned in header"); in tjDecompressHeader()
289 _throw("Invalid argument in tjDecompress()"); in tjDecompress()
[all …]
Dtjunittest.c58 #define _throw(m) {printf("ERROR: %s\n", m); bailout();} macro
350 _throw("Memory allocation failure"); in compTest()
419 _throw("Incorrect JPEG header"); in _decompTest()
424 _throw("Memory allocation failure"); in _decompTest()
492 _throw("Memory allocation failure."); in doTest()
553 _throw("Memory allocation failure"); in bufSizeTest()
559 _throw("Memory allocation failure"); in bufSizeTest()
582 _throw("Memory allocation failure"); in bufSizeTest()
588 _throw("Memory allocation failure"); in bufSizeTest()
Dtjbench.c41 #define _throw(op, err) { \ macro
44 #define _throwunix(m) _throw(m, strerror(errno))
45 #define _throwtj(m) _throw(m, tjGetErrorStr())
46 #define _throwbmp(m) _throw(m, bmpgeterr())