Lines Matching refs:data
251 EXRTile *tiles; // Tiled pixel data. The application must reconstruct image
283 // Application must free image data as returned by `out_rgba`
292 // Application must free image data as returned by `out_rgba`
329 extern int SaveEXR(const float *data, const int width, const int height,
339 // Free's internal data of EXRHeader struct
342 // Free's internal data of EXRImage struct
351 // Parse EXR version header from memory-mapped EXR data.
630 compressed data from directory entries, to account for weird zipfiles which
631 contain zero-size compressed data on dir entries.
691 - Core i7 (actual throughput varies depending on the type of data, and x64
751 archives, or clone archive data from
785 immediately writes compressed file data
791 data to any power of 2 alignment,
794 arbitrary data blobs at the very beginning of ZIP archives. Archives
812 file headers and file data will be fine, so the archive will be
820 compressed file data as-is). When you're done, delete the old archive and
1059 mz_ulong adler; // adler32 of the source or uncompressed data
1124 // data that could be generated by deflate(), assuming flush is set to only
1137 // data that could be generated by calling mz_compress().
1161 // enough to hold the rest of the decompressed data.
1166 // have been written. For zlib streams, the adler-32 of the decompressed data
1174 // with more input data, or with more room in the output buffer (except when
1431 // Extracts a archive file using a callback function to output the file's data.
1516 // Adds a file to an archive by fully cloning the data from another archive.
1517 // This function fully clones the source file's compressed data (no
1518 // recompression), along with its full filename, extra data, and comment fields.
1585 // pSrc_buf, src_buf_len: Pointer and size of the Deflate or zlib source data
1588 // Function returns a pointer to the decompressed data, or NULL on failure.
1589 // *pOut_len will be set to the decompressed data's size, which could be larger
1590 // than src_buf_len on uncompressible data.
1707 // the deflate data, and the Adler-32 of the source data at the end. Otherwise,
1708 // you'll get raw deflate data.
1709 // TDEFL_COMPUTE_ADLER32: Always compute the adler-32 of the input data (even
1741 // Function returns a pointer to the compressed data, or NULL on failure.
1742 // *pOut_len will be set to the compressed data's size, which could be larger
1743 // than src_buf_len on uncompressible data.
1766 // Function returns a pointer to the compressed data, or NULL on failure.
1778 // compressed data. It'll typically be called TDEFL_OUT_BUF_SIZE at a time.
1874 // pBut_buf_func: If NULL, output data will be supplied to the specified
1885 // Compresses a block of data, consuming as much of the specified input buffer
1886 // as possible, and writing as much compressed data to the specified output
2329 // uncompressed data left in the output dictionary -
2336 // The output buffer MUST be large to hold the remaining uncompressed data
2401 {MZ_DATA_ERROR, "data error"},
4489 // 'int', possible loss of data
4491 // 'int', possible loss of data
4526 // compress image data
4604 // compute final size of file, grab compressed data buffer and return
5486 // with directories that have compressed data which inflates to 0 bytes)
5490 // compressed deflate data which inflates to 0 bytes, but these entries claim
5524 // The file is stored or the caller has requested the compressed data.
5693 // with directories that have compressed data which inflates to 0 bytes)
5697 // compressed deflate data which inflates to 0 bytes, but these entries claim
5742 // The file is stored or the caller has requested the compressed data.
6324 // Subdirectories cannot contain data.
6724 // Copy data descriptor
7294 std::vector<unsigned char> *data, size_t *marker_size,
7332 data->resize(1);
7333 (*data)[0] = '\0';
7348 data->resize(static_cast<size_t>(data_len));
7349 memcpy(&data->at(0), marker, static_cast<size_t>(data_len));
7357 const unsigned char *data, int len) {
7365 out->insert(out->end(), data, data + len);
7432 const std::vector<unsigned char> &data) {
7433 const char *p = reinterpret_cast<const char *>(&data.at(0));
7441 tinyexr_int64 data_len = static_cast<tinyexr_int64>(data.size()) -
7442 (p - reinterpret_cast<const char *>(data.data()));
7455 if (data_end >= (data.data() + data.size())) {
7478 static void WriteChannelInfo(std::vector<unsigned char> &data,
7487 data.resize(sz + 1);
7489 unsigned char *p = &data.at(0);
7531 // Reorder the pixel data.
7573 // Compress the data using miniz
7593 // Use uncompressed data when compressed data is larger than uncompressed.
7641 // Reorder the pixel data.
7681 // 'int', possible loss of data
7683 // 'int', possible loss of data
7694 // and return the length of the compressed data.
7744 // Returns the length of the oncompressed data, or 0 if the
7745 // length of the uncompressed data would be more than maxLength.
7796 // Reorder the pixel data.
7844 // Use uncompressed data when compressed data is larger than uncompressed.
7894 // Reorder the pixel data.
7970 // the best compression ratios when the wavelet-transformed data are
7972 // data (untransformed data values must be less than (1 << 14)).
8004 // 16-bit data, but Huffman-encoding the wavelet-transformed data doesn't
8005 // compress the data quite as well.
8322 // of the corresponding code (in the compressed data)
8396 // indicates the frequency of all possible symbols in the data
8398 // of occurrences of symbol i in the data.)
8476 memset(scode.data(), 0, sizeof(long long) * HUF_ENCSIZE);
8548 hufCanonicalCodeTable(scode.data());
8549 memcpy(frq, scode.data(), sizeof(long long) * HUF_ENCSIZE);
9064 const unsigned short data[/*n*/], int n) {
9067 for (int i = 0; i < n; ++i) ++freq[data[i]];
9100 hufBuildEncTable(freq.data(), &im, &iM);
9104 hufPackEncTable(freq.data(), im, iM, &tableEnd);
9108 int nBits = hufEncode(freq.data(), raw, nRaw, iM, dataStart);
9138 // Fast decoder needs at least 2x64-bits of compressed data, and
9165 raw->data());
9180 // Functions to compress the range of values in the pixel data
9186 static void bitmapFromData(const unsigned short data[/*nData*/], int nData,
9192 for (int i = 0; i < nData; ++i) bitmap[data[i] >> 3] |= (1 << (data[i] & 7));
9196 // data always contain zeroes
9238 unsigned short data[/*nData*/], int nData) {
9239 for (int i = 0; i < nData; ++i) data[i] = lut[data[i]];
9306 bitmap.data(), minNonZero, maxNonZero);
9309 unsigned short maxValue = forwardLutFromBitmap(bitmap.data(), lut.data());
9310 applyLut(lut.data(), &tmpBuffer.at(0), static_cast<int>(tmpBuffer.size()));
9346 // length header(4byte), then huff data. Initialize length header with zero,
9361 // Use uncompressed data when compressed data is larger than uncompressed.
9390 memset(bitmap.data(), 0, BITMAP_SIZE);
9410 memset(lut.data(), 0, sizeof(unsigned short) * USHORT_RANGE);
9411 unsigned short maxValue = reverseLutFromBitmap(bitmap.data(), lut.data());
9466 // Expand the pixel data to their original range
9469 applyLut(lut.data(), &tmpBuffer.at(0), static_cast<int>(tmpBufSize));
9712 // Allocate original data size.
9726 // pixel sample data for channel 0 for scanline 0
9727 // pixel sample data for channel 1 for scanline 0
9728 // pixel sample data for channel ... for scanline 0
9729 // pixel sample data for channel n for scanline 0
9730 // pixel sample data for channel 0 for scanline 1
9731 // pixel sample data for channel 1 for scanline 1
9732 // pixel sample data for channel ... for scanline 1
9733 // pixel sample data for channel n for scanline 1
9851 // Allocate original data size.
9865 // pixel sample data for channel 0 for scanline 0
9866 // pixel sample data for channel 1 for scanline 0
9867 // pixel sample data for channel ... for scanline 0
9868 // pixel sample data for channel n for scanline 0
9869 // pixel sample data for channel 0 for scanline 1
9870 // pixel sample data for channel 1 for scanline 1
9871 // pixel sample data for channel ... for scanline 1
9872 // pixel sample data for channel n for scanline 1
9985 // Allocate original data size.
10002 // pixel sample data for channel 0 for scanline 0
10003 // pixel sample data for channel 1 for scanline 0
10004 // pixel sample data for channel ... for scanline 0
10005 // pixel sample data for channel n for scanline 0
10006 // pixel sample data for channel 0 for scanline 1
10007 // pixel sample data for channel 1 for scanline 1
10008 // pixel sample data for channel ... for scanline 1
10009 // pixel sample data for channel n for scanline 1
10127 // Allocate original data size.
10140 // pixel sample data for channel 0 for scanline 0
10141 // pixel sample data for channel 1 for scanline 0
10142 // pixel sample data for channel ... for scanline 0
10143 // pixel sample data for channel n for scanline 0
10144 // pixel sample data for channel 0 for scanline 1
10145 // pixel sample data for channel 1 for scanline 1
10146 // pixel sample data for channel ... for scanline 1
10147 // pixel sample data for channel n for scanline 1
10229 // Insufficient data size
10265 // Insufficient data size
10294 // Corrupsed data?
10482 (*err) += "Insufficient data size for attributes.\n";
10492 std::vector<unsigned char> data;
10494 if (!tinyexr::ReadAttribute(&attr_name, &attr_type, &data, &marker_size,
10507 TEXR_ASSERT(data.size() == 9);
10508 memcpy(&x_size, &data.at(0), sizeof(int));
10509 memcpy(&y_size, &data.at(4), sizeof(int));
10510 tile_mode = data[8];
10523 if (data[0] < TINYEXR_COMPRESSIONTYPE_PIZ) {
10527 if (data[0] == TINYEXR_COMPRESSIONTYPE_PIZ) {
10538 if (data[0] == TINYEXR_COMPRESSIONTYPE_ZFP) {
10556 info->compression_type = static_cast<int>(data[0]);
10567 if (!ReadChannelInfo(info->channels, data)) {
10584 if (data.size() >= 16) {
10585 memcpy(&info->data_window[0], &data.at(0), sizeof(int));
10586 memcpy(&info->data_window[1], &data.at(4), sizeof(int));
10587 memcpy(&info->data_window[2], &data.at(8), sizeof(int));
10588 memcpy(&info->data_window[3], &data.at(12), sizeof(int));
10596 if (data.size() >= 16) {
10597 memcpy(&info->display_window[0], &data.at(0), sizeof(int));
10598 memcpy(&info->display_window[1], &data.at(4), sizeof(int));
10599 memcpy(&info->display_window[2], &data.at(8), sizeof(int));
10600 memcpy(&info->display_window[3], &data.at(12), sizeof(int));
10613 if (data.size() >= 1) {
10614 info->line_order = static_cast<int>(data[0]);
10618 if (data.size() >= sizeof(float)) {
10619 memcpy(&info->pixel_aspect_ratio, &data.at(0), sizeof(float));
10625 if (data.size() >= 8) {
10626 memcpy(&info->screen_window_center[0], &data.at(0), sizeof(float));
10627 memcpy(&info->screen_window_center[1], &data.at(4), sizeof(float));
10635 if (data.size() >= sizeof(float)) {
10636 memcpy(&info->screen_window_width, &data.at(0), sizeof(float));
10643 if (data.size() >= sizeof(int)) {
10644 memcpy(&info->chunk_count, &data.at(0), sizeof(int));
10660 attrib.size = static_cast<int>(data.size());
10661 attrib.value = static_cast<unsigned char *>(malloc(data.size()));
10662 memcpy(reinterpret_cast<char *>(attrib.value), &data.at(0),
10663 data.size());
10829 ss << "Invalid data width or data height: " << data_width << ", "
10919 // 4 byte : data size
10920 // ~ : data(uncompressed or compressed)
10924 (*err) += "Insufficient data size.\n";
10964 (*err) += "Insufficient data length.\n";
10970 // Move to data addr: 20 = 16 + 4;
10990 (*err) += "Failed to decode tile data.\n";
11029 ss << "Image data size is zero or too large: width = " << data_width
11069 // 4 byte: data size
11070 // ~ : pixel data(uncompressed or compressed)
11104 // Move to data addr: 8 = 4 + 4;
11158 (*err) += "Invalid data found when decoding pixels.\n";
11188 // Offset should not exceed whole EXR file/data size.
11236 tinyexr::SetErrorMessage("Invalid data width value", err);
11243 tinyexr::SetErrorMessage("Invalid data height value", err);
11249 tinyexr::SetErrorMessage("data width or data height is negative.", err);
11257 tinyexr::SetErrorMessage("data width too large.", err);
11261 tinyexr::SetErrorMessage("data height too large.", err);
11303 tinyexr::SetErrorMessage("Insufficient data size in offset table.", err);
11721 tinyexr::SetErrorMessage("Insufficient header/data size.\n", err);
12081 std::vector<unsigned char> data;
12093 tinyexr::WriteChannelInfo(data, channels);
12095 tinyexr::WriteAttributeToMemory(&memory, "channels", "chlist", &data.at(0),
12096 static_cast<int>(data.size()));
12108 int data[4] = {0, 0, exr_image->width - 1, exr_image->height - 1};
12109 tinyexr::swap4(reinterpret_cast<unsigned int *>(&data[0]));
12110 tinyexr::swap4(reinterpret_cast<unsigned int *>(&data[1]));
12111 tinyexr::swap4(reinterpret_cast<unsigned int *>(&data[2]));
12112 tinyexr::swap4(reinterpret_cast<unsigned int *>(&data[3]));
12115 reinterpret_cast<const unsigned char *>(data), sizeof(int) * 4);
12118 reinterpret_cast<const unsigned char *>(data), sizeof(int) * 4);
12351 // 4 byte: data size
12352 // ~ : pixel data(uncompressed)
12381 // 4 byte: data size
12382 // ~ : pixel data(compressed)
12406 // 4 byte: data size
12407 // ~ : pixel data(compressed)
12434 // 4 byte: data size
12435 // ~ : pixel data(compressed)
12461 // 4 byte: data size
12462 // ~ : pixel data(compressed)
12665 std::vector<unsigned char> data;
12667 if (!tinyexr::ReadAttribute(&attr_name, &attr_type, &data, &marker_size,
12678 compression_type = data[0];
12698 if (!tinyexr::ReadChannelInfo(channels, data)) {
12711 memcpy(&dx, &data.at(0), sizeof(int));
12712 memcpy(&dy, &data.at(4), sizeof(int));
12713 memcpy(&dw, &data.at(8), sizeof(int));
12714 memcpy(&dh, &data.at(12), sizeof(int));
12725 memcpy(&x, &data.at(0), sizeof(int));
12726 memcpy(&y, &data.at(4), sizeof(int));
12727 memcpy(&w, &data.at(8), sizeof(int));
12728 memcpy(&h, &data.at(12), sizeof(int));
12804 // int64: packed size of sample data
12805 // int64: unpacked size of sample data
12807 // compressed sample data
12850 // decode sample data.
12896 // pixel data is stored as image[channels][pixel_samples]
13329 // In multipart image, There is 'part number' before chunk data.
13436 int SaveEXR(const float *data, int width, int height, int components,
13467 memcpy(images[0].data(), data, sizeof(float) * size_t(width * height));
13476 images[0][i] = data[static_cast<size_t>(components) * i + 0];
13477 images[1][i] = data[static_cast<size_t>(components) * i + 1];
13478 images[2][i] = data[static_cast<size_t>(components) * i + 2];
13480 images[3][i] = data[static_cast<size_t>(components) * i + 3];