Home | History | Annotate | Download | only in libcamera2

Lines Matching refs:pCur

323     unsigned char *pCur, *pApp1Start, *pIfdStart, *pGpsIfdPtr, *pNextIfdOffset;
325 pApp1Start = pCur = exifOut;
328 pCur += 4; // Skip 4 Byte for APP1 marker and length
330 memcpy(pCur, ExifIdentifierCode, 6);
331 pCur += 6;
335 memcpy(pCur, TiffHeader, 8);
336 pIfdStart = pCur;
337 pCur += 8;
345 memcpy(pCur, &tmp, NUM_SIZE);
346 pCur += NUM_SIZE;
350 writeExifIfd(&pCur, EXIF_TAG_IMAGE_WIDTH, EXIF_TYPE_LONG,
352 writeExifIfd(&pCur, EXIF_TAG_IMAGE_HEIGHT, EXIF_TYPE_LONG,
354 writeExifIfd(&pCur, EXIF_TAG_MAKE, EXIF_TYPE_ASCII,
356 writeExifIfd(&pCur, EXIF_TAG_MODEL, EXIF_TYPE_ASCII,
358 writeExifIfd(&pCur, EXIF_TAG_ORIENTATION, EXIF_TYPE_SHORT,
360 writeExifIfd(&pCur, EXIF_TAG_SOFTWARE, EXIF_TYPE_ASCII,
362 writeExifIfd(&pCur, EXIF_TAG_DATE_TIME, EXIF_TYPE_ASCII,
364 writeExifIfd(&pCur, EXIF_TAG_YCBCR_POSITIONING, EXIF_TYPE_SHORT,
366 writeExifIfd(&pCur, EXIF_TAG_EXIF_IFD_POINTER, EXIF_TYPE_LONG,
369 pGpsIfdPtr = pCur;
370 pCur += IFD_SIZE; // Skip a ifd size for gps IFD pointer
373 pNextIfdOffset = pCur; // Skip a offset size for next IFD offset
374 pCur += OFFSET_SIZE;
377 pCur = pIfdStart + LongerTagOffest;
380 memcpy(pCur, &tmp , NUM_SIZE);
381 pCur += NUM_SIZE;
385 writeExifIfd(&pCur, EXIF_TAG_EXPOSURE_TIME, EXIF_TYPE_RATIONAL,
387 writeExifIfd(&pCur, EXIF_TAG_FNUMBER, EXIF_TYPE_RATIONAL,
389 writeExifIfd(&pCur, EXIF_TAG_EXPOSURE_PROGRAM, EXIF_TYPE_SHORT,
391 writeExifIfd(&pCur, EXIF_TAG_ISO_SPEED_RATING, EXIF_TYPE_SHORT,
393 writeExifIfd(&pCur, EXIF_TAG_EXIF_VERSION, EXIF_TYPE_UNDEFINED,
395 writeExifIfd(&pCur, EXIF_TAG_DATE_TIME_ORG, EXIF_TYPE_ASCII,
397 writeExifIfd(&pCur, EXIF_TAG_DATE_TIME_DIGITIZE, EXIF_TYPE_ASCII,
399 writeExifIfd(&pCur, EXIF_TAG_SHUTTER_SPEED, EXIF_TYPE_SRATIONAL,
401 writeExifIfd(&pCur, EXIF_TAG_APERTURE, EXIF_TYPE_RATIONAL,
403 writeExifIfd(&pCur, EXIF_TAG_BRIGHTNESS, EXIF_TYPE_SRATIONAL,
405 writeExifIfd(&pCur, EXIF_TAG_EXPOSURE_BIAS, EXIF_TYPE_SRATIONAL,
407 writeExifIfd(&pCur, EXIF_TAG_MAX_APERTURE, EXIF_TYPE_RATIONAL,
409 writeExifIfd(&pCur, EXIF_TAG_METERING_MODE, EXIF_TYPE_SHORT,
411 writeExifIfd(&pCur, EXIF_TAG_FLASH, EXIF_TYPE_SHORT,
413 writeExifIfd(&pCur, EXIF_TAG_FOCAL_LENGTH, EXIF_TYPE_RATIONAL,
419 writeExifIfd(&pCur, EXIF_TAG_USER_COMMENT, EXIF_TYPE_UNDEFINED,
421 writeExifIfd(&pCur, EXIF_TAG_COLOR_SPACE, EXIF_TYPE_SHORT,
423 writeExifIfd(&pCur, EXIF_TAG_PIXEL_X_DIMENSION, EXIF_TYPE_LONG,
425 writeExifIfd(&pCur, EXIF_TAG_PIXEL_Y_DIMENSION, EXIF_TYPE_LONG,
427 writeExifIfd(&pCur, EXIF_TAG_EXPOSURE_MODE, EXIF_TYPE_LONG,
429 writeExifIfd(&pCur, EXIF_TAG_WHITE_BALANCE, EXIF_TYPE_LONG,
431 writeExifIfd(&pCur, EXIF_TAG_SCENCE_CAPTURE_TYPE, EXIF_TYPE_LONG,
434 memcpy(pCur, &tmp, OFFSET_SIZE); // next IFD offset
435 pCur += OFFSET_SIZE;
442 pCur = pIfdStart + LongerTagOffest;
450 memcpy(pCur, &tmp, NUM_SIZE);
451 pCur += NUM_SIZE;
455 writeExifIfd(&pCur, EXIF_TAG_GPS_VERSION_ID, EXIF_TYPE_BYTE,
457 writeExifIfd(&pCur, EXIF_TAG_GPS_LATITUDE_REF, EXIF_TYPE_ASCII,
459 writeExifIfd(&pCur, EXIF_TAG_GPS_LATITUDE, EXIF_TYPE_RATIONAL,
461 writeExifIfd(&pCur, EXIF_TAG_GPS_LONGITUDE_REF, EXIF_TYPE_ASCII,
463 writeExifIfd(&pCur, EXIF_TAG_GPS_LONGITUDE, EXIF_TYPE_RATIONAL,
465 writeExifIfd(&pCur, EXIF_TAG_GPS_ALTITUDE_REF, EXIF_TYPE_BYTE,
467 writeExifIfd(&pCur, EXIF_TAG_GPS_ALTITUDE, EXIF_TYPE_RATIONAL,
469 writeExifIfd(&pCur, EXIF_TAG_GPS_TIMESTAMP, EXIF_TYPE_RATIONAL,
479 writeExifIfd(&pCur
482 writeExifIfd(&pCur, EXIF_TAG_GPS_DATESTAMP, EXIF_TYPE_ASCII,
485 memcpy(pCur, &tmp, OFFSET_SIZE); // next IFD offset
486 pCur += OFFSET_SIZE;
520 pCur = pIfdStart + LongerTagOffest;
523 memcpy(pCur, &tmp, NUM_SIZE);
524 pCur += NUM_SIZE;
528 writeExifIfd(&pCur, EXIF_TAG_IMAGE_WIDTH, EXIF_TYPE_LONG,
530 writeExifIfd(&pCur, EXIF_TAG_IMAGE_HEIGHT, EXIF_TYPE_LONG,
532 writeExifIfd(&pCur, EXIF_TAG_COMPRESSION_SCHEME, EXIF_TYPE_SHORT,
534 writeExifIfd(&pCur, EXIF_TAG_ORIENTATION, EXIF_TYPE_SHORT,
536 writeExifIfd(&pCur, EXIF_TAG_X_RESOLUTION, EXIF_TYPE_RATIONAL,
538 writeExifIfd(&pCur, EXIF_TAG_Y_RESOLUTION, EXIF_TYPE_RATIONAL,
540 writeExifIfd(&pCur, EXIF_TAG_RESOLUTION_UNIT, EXIF_TYPE_SHORT,
542 writeExifIfd(&pCur, EXIF_TAG_JPEG_INTERCHANGE_FORMAT, EXIF_TYPE_LONG,
544 writeExifIfd(&pCur, EXIF_TAG_JPEG_INTERCHANGE_FORMAT_LEN, EXIF_TYPE_LONG,
548 memcpy(pCur, &tmp, OFFSET_SIZE); // next IFD offset
549 pCur += OFFSET_SIZE;
579 inline void ExynosJpegEncoderForCamera::writeExifIfd(unsigned char **pCur,
585 memcpy(*pCur, &tag, 2);
586 *pCur += 2;
587 memcpy(*pCur, &type, 2);
588 *pCur += 2;
589 memcpy(*pCur, &count, 4);
590 *pCur += 4;
591 memcpy(*pCur, &value, 4);
592 *pCur += 4;
595 inline void ExynosJpegEncoderForCamera::writeExifIfd(unsigned char **pCur,
604 memcpy(*pCur, &tag, 2);
605 *pCur += 2;
606 memcpy(*pCur, &type, 2);
607 *pCur += 2;
608 memcpy(*pCur, &count, 4);
609 *pCur += 4;
610 memcpy(*pCur, buf, 4);
611 *pCur += 4;
614 inline void ExynosJpegEncoderForCamera::writeExifIfd(unsigned char **pCur,
622 memcpy(*pCur, &tag, 2);
623 *pCur += 2;
624 memcpy(*pCur, &type, 2);
625 *pCur += 2;
626 memcpy(*pCur, &count, 4);
627 *pCur += 4;
628 memcpy(*pCur, offset, 4);
629 *pCur += 4;
634 inline void ExynosJpegEncoderForCamera::writeExifIfd(unsigned char **pCur,
642 memcpy(*pCur, &tag, 2);
643 *pCur += 2;
644 memcpy(*pCur, &type, 2);
645 *pCur += 2;
646 memcpy(*pCur, &count, 4);
647 *pCur += 4;
648 memcpy(*pCur, offset, 4);
649 *pCur += 4;