• Home
  • Raw
  • Download

Lines Matching refs:src

90     SourceManager *src = reinterpret_cast<SourceManager*>(cinfo->src);  in Mgr_fill_input_buffer_fcn()  local
91 int32_t bytesRead = src->inStream->read(src->inStream->getBufferSize(), 0); in Mgr_fill_input_buffer_fcn()
93 if (src->start_of_file == TRUE) { in Mgr_fill_input_buffer_fcn()
97 bytesRead = src->inStream->forceReadEOI(); in Mgr_fill_input_buffer_fcn()
103 src->mgr.next_input_byte = reinterpret_cast<JOCTET*>(src->inStream->getBufferPtr()); in Mgr_fill_input_buffer_fcn()
104 src->mgr.bytes_in_buffer = bytesRead; in Mgr_fill_input_buffer_fcn()
106 src->start_of_file = FALSE; in Mgr_fill_input_buffer_fcn()
112 SourceManager *s = reinterpret_cast<SourceManager*>(cinfo->src); in Mgr_init_source_fcn()
123 SourceManager *src = reinterpret_cast<SourceManager*>(cinfo->src); in Mgr_skip_input_data_fcn() local
124 if (src->mgr.bytes_in_buffer >= (size_t)num_bytes) { in Mgr_skip_input_data_fcn()
125 src->mgr.bytes_in_buffer -= num_bytes; in Mgr_skip_input_data_fcn()
126 src->mgr.next_input_byte += num_bytes; in Mgr_skip_input_data_fcn()
129 int64_t skip = num_bytes - src->mgr.bytes_in_buffer; in Mgr_skip_input_data_fcn()
130 src->mgr.next_input_byte += src->mgr.bytes_in_buffer; in Mgr_skip_input_data_fcn()
131 src->mgr.bytes_in_buffer = 0; in Mgr_skip_input_data_fcn()
132 int64_t actual = src->inStream->skip(skip); in Mgr_skip_input_data_fcn()
138 actual = src->inStream->skip(skip); in Mgr_skip_input_data_fcn()
157 if (cinfo->src != NULL) { in MakeSrc()
162 cinfo->src = (struct jpeg_source_mgr *) (*cinfo->mem->alloc_small) in MakeSrc()
164 if (cinfo->src == NULL) { in MakeSrc()
169 memset(cinfo->src, '0', size); in MakeSrc()
171 SourceManager *s = reinterpret_cast<SourceManager*>(cinfo->src); in MakeSrc()
186 SourceManager* s = reinterpret_cast<SourceManager*>(cinfo->src); in UpdateSrcEnv()
191 if (cinfo != NULL && cinfo->src != NULL) { in CleanSrc()
192 SourceManager *s = reinterpret_cast<SourceManager*>(cinfo->src); in CleanSrc()