Lines Matching refs:current

278 char *CAppMarkerWriter::WriteAPP11(char *current, size_t dummy, size_t align) {  in WriteAPP11()  argument
281 if ((dummy == 0) && (align == 1)) return current; in WriteAPP11()
283 if (!m_pExif && !m_pExtra) return current; in WriteAPP11()
285 uint16_t len = PTR_TO_ULONG(current + APPMARKLEN) & (align - 1); in WriteAPP11()
291 *current++ = 0xFF; in WriteAPP11()
292 *current++ = 0xEB; in WriteAPP11()
293 WriteDataInBig(current, len); in WriteAPP11()
295 return current + len; in WriteAPP11()
298 char *CAppMarkerWriter::WriteAPPX(char *current, bool just_reserve) { in WriteAPPX() argument
299 if (!m_pExtra) return current; in WriteAPPX()
306 *current++ = 0xFF; in WriteAPPX()
307 *current++ = 0xE0 + (appid & 0xF); in WriteAPPX()
309 current = WriteDataInBig(current, len); in WriteAPPX()
312 memcpy(current, m_pExtra->appInfo[idx].appData, m_pExtra->appInfo[idx].dataSize); in WriteAPPX()
313 current += m_pExtra->appInfo[idx].dataSize; in WriteAPPX()
316 return current; in WriteAPPX()
319 char *CAppMarkerWriter::WriteAPP1(char *current, bool reserve_thumbnail_space, bool updating) { in WriteAPP1() argument
320 if (!m_pExif) return current; in WriteAPP1()
323 *current++ = 0xFF; in WriteAPP1()
324 *current++ = 0xE1; in WriteAPP1()
328 current += JPEG_SEGMENT_LENFIELD_SIZE; in WriteAPP1()
332 current = WriteDataInBig(current, len); in WriteAPP1()
336 for (size_t i = 0; i < ARRSIZE(ExifIdentifierCode); i++) *current++ = ExifIdentifierCode[i]; in WriteAPP1()
338 char *tiffheader = current; in WriteAPP1()
339 for (size_t i = 0; i < ARRSIZE(TiffHeader); i++) *current++ = TiffHeader[i]; in WriteAPP1()
341 CIFDWriter writer(tiffheader, current, m_n0thIFDFields); in WriteAPP1()