Lines Matching defs:out

303 // @param[out] layer_names List of layer names. Application must free memory after using this.
304 // @param[out] num_layers The number of layers
305 // @param[out] err Error string(wll be filled when the function returns error code). Free it using FreeEXRErrorMessage after using this value.
1080 // MZ_MEM_ERROR on out of memory.
2402 {MZ_MEM_ERROR, "out of memory"},
4613 // where #defined out)
7355 static void WriteAttributeToMemory(std::vector<unsigned char> *out,
7358 out->insert(out->end(), name, name + strlen(name) + 1);
7359 out->insert(out->end(), type, type + strlen(type) + 1);
7363 out->insert(out->end(), reinterpret_cast<unsigned char *>(&outLen),
7365 out->insert(out->end(), data, data + len);
7697 static int rleCompress(int inLength, const char in[], signed char out[]) {
7701 signed char *outWrite = out;
7739 return static_cast<int>(outWrite - out);
7749 char out[]) {
7750 char *outStart = out;
7760 memcpy(out, in, count);
7761 out += count;
7769 memset(out, *reinterpret_cast<const char *>(in), count + 1);
7770 out += count + 1;
7776 return static_cast<int>(out - outStart);
7862 // TODO(syoyo): Add more robust out-of-bounds check in `rleUncompress`.
8296 char *&out) {
8302 while (lc >= 8) *out++ = static_cast<char>((c >> (lc -= 8)));
8800 inline void outputCode(long long code, long long &c, int &lc, char *&out) {
8801 outputBits(hufLength(code), hufCode(code), c, lc, out);
8805 long long &c, int &lc, char *&out) {
8814 outputCode(sCode, c, lc, out);
8815 outputCode(runCode, c, lc, out);
8816 outputBits(8, runCount, c, lc, out);
8818 while (runCount-- >= 0) outputCode(sCode, c, lc, out);
8831 char *out) // o: compressed output buffer
8833 char *outStart = out;
8834 long long c = 0; // bits not yet written to out
8851 sendCode(hcode[s], cs, hcode[rlc], c, lc, out);
8862 sendCode(hcode[s], cs, hcode[rlc], c, lc, out);
8864 if (lc) *out = (c << (8 - lc)) & 0xff;
8866 return (out - outStart) * 8 + lc;
8886 #define getCode(po, rlc, c, lc, in, out, ob, oe) \
8895 if (out + cs > oe) return false; \
8898 unsigned short s = out[-1]; \
8900 while (cs-- > 0) *out++ = s; \
8901 } else if (out < oe) { \
8902 *out++ = po; \
8909 const char *in_end, unsigned short *&out,
8926 if (out + cs > oe) return false;
8930 if ((out - 1) < ob) return false;
8931 unsigned short s = out[-1];
8933 while (cs-- > 0) *out++ = s;
8934 } else if (out < oe) {
8935 *out++ = po;
8953 unsigned short *out) // o: uncompressed output buffer
8957 unsigned short *outb = out; // begin
8958 unsigned short *oe = out + no; // end
8986 // std::cout << "out = " << out << std::endl;
8988 if (!getCode(pl.lit, rlc, c, lc, in, ie, out, outb, oe)) {
9017 if (!getCode(pl.p[j], rlc, c, lc, in, ie, out, outb, oe)) {
9046 if (!getCode(pl.lit, rlc, c, lc, in, ie, out, outb, oe)) {
9055 if (out - outb != no) {
9695 static bool DecodePixelData(/* out */ unsigned char **out_images,
11578 // out of region check.
11645 // out of region check.
11823 // out of region check.
11889 // out of region check.