Home
last modified time | relevance | path

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

/external/libvncserver/test/
Dbmp.c82 #define _throw(m) {__bmperr=m; retcode=-1; goto finally;} macro
83 #define _unix(f) {if((f)==-1) _throw(strerror(errno));}
87 if((bytesread=read(fd, addr, (size)))==-1) _throw(strerror(errno)); \
88 if(bytesread!=(size)) _throw("Read error");
118 if((fs=fdopen(*fd, "r"))==NULL) _throw(strerror(errno)); in loadppm()
122 if(!fgets(temps, 255, fs)) _throw("Read error"); in loadppm()
129 _throw("Read error"); in loadppm()
133 _throw("Read error"); in loadppm()
137 _throw("Read error"); in loadppm()
142 if((*w)<1 || (*h)<1 || scalefactor<1) _throw("Corrupt PPM header"); in loadppm()
[all …]
Dtjunittest.c48 #define _throw(m) {printf("ERROR: %s\n", m); bailout();} macro
250 _throw("Memory allocation failure"); in compTest()
291 _throw("Incorrect JPEG header"); in _decompTest()
295 _throw("Memory allocation failure"); in _decompTest()
345 _throw("Memory allocation failure."); in doTest()
396 _throw("Memory allocation failure"); in bufSizeTest()
399 _throw("Memory allocation failure"); in bufSizeTest()
414 _throw("Memory allocation failure"); in bufSizeTest()
417 _throw("Memory allocation failure"); in bufSizeTest()
Dtjbench.c39 #define _throw(op, err) { \ macro
43 #define _throwunix(m) _throw(m, strerror(errno))
44 #define _throwtj(m) _throw(m, tjGetErrorStr())
45 #define _throwbmp(m) _throw(m, bmpgeterr())
/external/libvncserver/common/
Dturbojpeg.c107 #define _throw(m) {snprintf(errStr, JMSG_LENGTH_MAX, "%s", m); \ macro
251 _throw("Unsupported pixel format"); in setDecompDefaults()
503 _throw("tjBufSize(): Invalid argument"); in tjBufSize()
522 _throw("TJBUFSIZE(): Invalid argument"); in TJBUFSIZE()
545 _throw("tjCompress2(): Instance has not been initialized for compression"); in tjCompress2()
550 _throw("tjCompress2(): Invalid argument"); in tjCompress2()
565 if(!rgbBuf) _throw("tjCompress2(): Memory allocation failure"); in tjCompress2()
586 _throw("tjCompress2(): Memory allocation failure"); in tjCompress2()
688 _throw("tjDecompressHeader2(): Instance has not been initialized for decompression"); in tjDecompressHeader2()
692 _throw("tjDecompressHeader2(): Invalid argument"); in tjDecompressHeader2()
[all …]