Lines Matching refs:src
21 skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src;
22 src->next_input_byte = (const JOCTET*)src->fBuffer;
23 src->bytes_in_buffer = 0;
24 src->current_offset = 0;
25 src->fStream->rewind();
29 skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src;
31 if (byte_offset > src->current_offset) {
32 (void)src->fStream->skip(byte_offset - src->current_offset);
34 src->fStream->rewind();
35 (void)src->fStream->skip(byte_offset);
38 src->current_offset = byte_offset;
39 src->next_input_byte = (const JOCTET*)src->fBuffer;
40 src->bytes_in_buffer = 0;
45 skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src;
46 if (src->fDecoder != NULL && src->fDecoder->shouldCancelDecode()) {
49 size_t bytes = src->fStream->read(src->fBuffer, skjpeg_source_mgr::kBufferSize);
56 src->current_offset += bytes;
57 src->next_input_byte = (const JOCTET*)src->fBuffer;
58 src->bytes_in_buffer = bytes;
63 skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src;
65 if (num_bytes > (long)src->bytes_in_buffer) {
66 long bytesToSkip = num_bytes - src->bytes_in_buffer;
68 long bytes = (long)src->fStream->skip(bytesToSkip);
74 src->current_offset += bytes;
77 src->next_input_byte = (const JOCTET*)src->fBuffer;
78 src->bytes_in_buffer = 0;
80 src->next_input_byte += num_bytes;
81 src->bytes_in_buffer -= num_bytes;
86 skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src;
90 if (!src->fStream->rewind()) {
95 src->next_input_byte = (const JOCTET*)src->fBuffer;
96 src->bytes_in_buffer = 0;
104 skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src;
105 src->next_input_byte = (const JOCTET*)src->fMemoryBase;
106 src->start_input_byte = (const JOCTET*)src->fMemoryBase;
107 src->bytes_in_buffer = src->fMemoryBaseSize;
108 src->current_offset = src->fMemoryBaseSize;
117 skjpeg_source_mgr* src = (skjpeg_source_mgr*)cinfo->src;
119 src->next_input_byte = (const JOCTET*)((const char*)src->next_input_byte + num_bytes);
120 src->bytes_in_buffer -= num_bytes;