Lines Matching refs:out
538 int TryReconstruction(ImageChunk* chunk, unsigned char* out) { in TryReconstruction() argument
558 strm.next_out = out; in TryReconstruction()
562 if (memcmp(out, chunk->deflate_data+p, have) != 0) { in TryReconstruction()
590 unsigned char* out = malloc(BUFFER_SIZE); in ReconstructDeflateChunk() local
600 if (TryReconstruction(chunk, out) == 0) { in ReconstructDeflateChunk()
601 free(out); in ReconstructDeflateChunk()
606 free(out); in ReconstructDeflateChunk()
722 int out = 0; in MergeAdjacentNormalChunks() local
742 printf("chunk %d is now %d\n", in_start, out); in MergeAdjacentNormalChunks()
744 if (out != in_start) { in MergeAdjacentNormalChunks()
745 memcpy(chunks+out, chunks+in_start, sizeof(ImageChunk)); in MergeAdjacentNormalChunks()
749 printf("collapse normal chunks %d-%d into %d\n", in_start, in_end-1, out); in MergeAdjacentNormalChunks()
758 chunks[out].type = CHUNK_NORMAL; in MergeAdjacentNormalChunks()
759 chunks[out].start = chunks[in_start].start; in MergeAdjacentNormalChunks()
760 chunks[out].data = chunks[in_start].data; in MergeAdjacentNormalChunks()
761 chunks[out].len = chunks[in_end-1].len + in MergeAdjacentNormalChunks()
765 ++out; in MergeAdjacentNormalChunks()
768 *num_chunks = out; in MergeAdjacentNormalChunks()