Lines Matching refs:motorola_intel

1432 static int php_ifd_get16u(void *value, int motorola_intel)  in php_ifd_get16u()  argument
1434 if (motorola_intel) { in php_ifd_get16u()
1444 static signed short php_ifd_get16s(void *value, int motorola_intel) in php_ifd_get16s() argument
1446 return (signed short)php_ifd_get16u(value, motorola_intel); in php_ifd_get16s()
1452 static unsigned php_ifd_get32u(void *void_value, int motorola_intel) in php_ifd_get32u() argument
1455 if (motorola_intel) { in php_ifd_get32u()
1471 static uint64_t php_ifd_get64u(void *void_value, int motorola_intel) in php_ifd_get64u() argument
1474 if (motorola_intel) { in php_ifd_get64u()
1498 static unsigned php_ifd_get32s(void *value, int motorola_intel) in php_ifd_get32s() argument
1500 return (int) php_ifd_get32u(value, motorola_intel); in php_ifd_get32s()
1506 static void php_ifd_set16u(char *data, unsigned int value, int motorola_intel) in php_ifd_set16u() argument
1508 if (motorola_intel) { in php_ifd_set16u()
1520 static void php_ifd_set32u(char *data, size_t value, int motorola_intel) in php_ifd_set32u() argument
1522 if (motorola_intel) { in php_ifd_set32u()
1549 char * exif_dump_data(int *dump_free, int format, int components, int motorola_intel, char *value_p… in exif_dump_data() argument
1587 snprintf(dump + len, 6 + 1, "0x%04X", php_ifd_get16s(value_ptr, motorola_intel)); in exif_dump_data()
1594 snprintf(dump + len, 6 + 1, "0x%04X", php_ifd_get32s(value_ptr, motorola_intel)); in exif_dump_data()
1601 … 1, "0x%04X/0x%04X", php_ifd_get32s(value_ptr, motorola_intel), php_ifd_get32s(value_ptr+4, motoro… in exif_dump_data()
1624 static double exif_convert_any_format(void *value, int format, int motorola_intel) in exif_convert_any_format() argument
1633 case TAG_FMT_USHORT: return php_ifd_get16u(value, motorola_intel); in exif_convert_any_format()
1634 case TAG_FMT_ULONG: return php_ifd_get32u(value, motorola_intel); in exif_convert_any_format()
1637 u_den = php_ifd_get32u(4+(char *)value, motorola_intel); in exif_convert_any_format()
1641 return (double)php_ifd_get32u(value, motorola_intel) / u_den; in exif_convert_any_format()
1645 s_den = php_ifd_get32s(4+(char *)value, motorola_intel); in exif_convert_any_format()
1649 return (double)php_ifd_get32s(value, motorola_intel) / s_den; in exif_convert_any_format()
1652 case TAG_FMT_SSHORT: return (signed short)php_ifd_get16u(value, motorola_intel); in exif_convert_any_format()
1653 case TAG_FMT_SLONG: return php_ifd_get32s(value, motorola_intel); in exif_convert_any_format()
1708 static size_t exif_convert_any_to_int(void *value, int format, int motorola_intel) in exif_convert_any_to_int() argument
1714 case TAG_FMT_USHORT: return php_ifd_get16u(value, motorola_intel); in exif_convert_any_to_int()
1715 case TAG_FMT_ULONG: return php_ifd_get32u(value, motorola_intel); in exif_convert_any_to_int()
1718 unsigned u_den = php_ifd_get32u(4+(char *)value, motorola_intel); in exif_convert_any_to_int()
1722 return php_ifd_get32u(value, motorola_intel) / u_den; in exif_convert_any_to_int()
1727 int s_num = php_ifd_get32s(value, motorola_intel); in exif_convert_any_to_int()
1728 int s_den = php_ifd_get32s(4+(char *)value, motorola_intel); in exif_convert_any_to_int()
1738 case TAG_FMT_SSHORT: return php_ifd_get16u(value, motorola_intel); in exif_convert_any_to_int()
1739 case TAG_FMT_SLONG: return php_ifd_get32s(value, motorola_intel); in exif_convert_any_to_int()
1963 int motorola_intel; /* 1 Motorola; 0 Intel */ member
2188 … char *name, int tag, int format, size_t length, void* value, size_t value_len, int motorola_intel) in exif_iif_add_value() argument
2280 info_value->u = php_ifd_get16u(vptr, motorola_intel); in exif_iif_add_value()
2284 info_value->u = php_ifd_get32u(vptr, motorola_intel); in exif_iif_add_value()
2288 info_value->ur.num = php_ifd_get32u(vptr, motorola_intel); in exif_iif_add_value()
2289 info_value->ur.den = php_ifd_get32u(4+(char *)vptr, motorola_intel); in exif_iif_add_value()
2293 info_value->i = php_ifd_get16s(vptr, motorola_intel); in exif_iif_add_value()
2297 info_value->i = php_ifd_get32s(vptr, motorola_intel); in exif_iif_add_value()
2301 info_value->sr.num = php_ifd_get32u(vptr, motorola_intel); in exif_iif_add_value()
2302 info_value->sr.den = php_ifd_get32u(4+(char *)vptr, motorola_intel); in exif_iif_add_value()
2329 …mage_info, section_index, name, tag, format, length, value, value_len, image_info->motorola_intel); in exif_iif_add_tag()
2788 static void* exif_ifd_make_value(image_info_data *info_data, int motorola_intel) { in exif_ifd_make_value() argument
2822 php_ifd_set16u(data_ptr, info_value->u, motorola_intel); in exif_ifd_make_value()
2826 php_ifd_set32u(data_ptr, info_value->u, motorola_intel); in exif_ifd_make_value()
2830 php_ifd_set16u(data_ptr, info_value->i, motorola_intel); in exif_ifd_make_value()
2834 php_ifd_set32u(data_ptr, info_value->i, motorola_intel); in exif_ifd_make_value()
2838 php_ifd_set32u(data_ptr, info_value->sr.num, motorola_intel); in exif_ifd_make_value()
2839 php_ifd_set32u(data_ptr+4, info_value->sr.den, motorola_intel); in exif_ifd_make_value()
2843 php_ifd_set32u(data_ptr, info_value->ur.num, motorola_intel); in exif_ifd_make_value()
2844 php_ifd_set32u(data_ptr+4, info_value->ur.den, motorola_intel); in exif_ifd_make_value()
2904 if (ImageInfo->motorola_intel) { in exif_thumbnail_build()
2910 php_ifd_set16u(new_data, info_list->count, ImageInfo->motorola_intel); in exif_thumbnail_build()
2919 php_ifd_set16u(new_data + 0, info_data->tag, ImageInfo->motorola_intel); in exif_thumbnail_build()
2920 php_ifd_set16u(new_data + 2, TAG_FMT_ULONG, ImageInfo->motorola_intel); in exif_thumbnail_build()
2921 php_ifd_set32u(new_data + 4, 1, ImageInfo->motorola_intel); in exif_thumbnail_build()
2922 php_ifd_set32u(new_data + 8, new_move, ImageInfo->motorola_intel); in exif_thumbnail_build()
2924 php_ifd_set16u(new_data + 0, info_data->tag, ImageInfo->motorola_intel); in exif_thumbnail_build()
2925 php_ifd_set16u(new_data + 2, info_data->format, ImageInfo->motorola_intel); in exif_thumbnail_build()
2926 php_ifd_set32u(new_data + 4, info_data->length, ImageInfo->motorola_intel); in exif_thumbnail_build()
2927 value_ptr = exif_ifd_make_value(info_data, ImageInfo->motorola_intel); in exif_thumbnail_build()
2931 php_ifd_set32u(new_data+8, new_value, ImageInfo->motorola_intel); in exif_thumbnail_build()
3060 } else if (ImageInfo->motorola_intel) { in exif_process_user_comment()
3089 …from = zend_multibyte_fetch_encoding(ImageInfo->motorola_intel ? ImageInfo->decode_jis_be : ImageI… in exif_process_user_comment()
3134 …zend_multibyte_fetch_encoding(ImageInfo->motorola_intel ? ImageInfo->decode_unicode_be : ImageInfo… in exif_process_unicode()
3192 old_motorola_intel = ImageInfo->motorola_intel; in exif_process_IFD_in_MAKERNOTE()
3195 ImageInfo->motorola_intel = 0; in exif_process_IFD_in_MAKERNOTE()
3198 ImageInfo->motorola_intel = 1; in exif_process_IFD_in_MAKERNOTE()
3205 NumDirEntries = php_ifd_get16u(dir_start, ImageInfo->motorola_intel); in exif_process_IFD_in_MAKERNOTE()
3211 ImageInfo->motorola_intel = ImageInfo->motorola_intel == 0 ? 1 : 0; in exif_process_IFD_in_MAKERNOTE()
3212 NumDirEntries = php_ifd_get16u(dir_start, ImageInfo->motorola_intel); in exif_process_IFD_in_MAKERNOTE()
3241 ImageInfo->motorola_intel = old_motorola_intel; in exif_process_IFD_in_MAKERNOTE()
3273 tag = php_ifd_get16u(dir_entry, ImageInfo->motorola_intel); in exif_process_IFD_TAG_impl()
3274 format = php_ifd_get16u(dir_entry+2, ImageInfo->motorola_intel); in exif_process_IFD_TAG_impl()
3275 components = php_ifd_get32u(dir_entry+4, ImageInfo->motorola_intel); in exif_process_IFD_TAG_impl()
3294 offset_val = php_ifd_get32u(dir_entry+8, ImageInfo->motorola_intel); in exif_process_IFD_TAG_impl()
3344 dump_data = exif_dump_data(&dump_free, format, components, ImageInfo->motorola_intel, value_ptr); in exif_process_IFD_TAG_impl()
3362 …vert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigned(format), ImageInfo->motorola_intel); in exif_process_IFD_TAG_impl()
3367 …vert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigned(format), ImageInfo->motorola_intel); in exif_process_IFD_TAG_impl()
3373 …vert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigned(format), ImageInfo->motorola_intel); in exif_process_IFD_TAG_impl()
3383 …vert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigned(format), ImageInfo->motorola_intel); in exif_process_IFD_TAG_impl()
3389 …vert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigned(format), ImageInfo->motorola_intel); in exif_process_IFD_TAG_impl()
3442 …fo->ApertureFNumber = (float)exif_convert_any_format(value_ptr, format, ImageInfo->motorola_intel); in exif_process_IFD_TAG_impl()
3452 = expf(exif_convert_any_format(value_ptr, format, ImageInfo->motorola_intel)*logf(2.0)*0.5); in exif_process_IFD_TAG_impl()
3464 = expf(-exif_convert_any_format(value_ptr, format, ImageInfo->motorola_intel)*logf(2.0)); in exif_process_IFD_TAG_impl()
3473 …vert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigned(format), ImageInfo->motorola_intel); in exif_process_IFD_TAG_impl()
3478 … ImageInfo->FocalplaneXRes = exif_convert_any_format(value_ptr, format, ImageInfo->motorola_intel); in exif_process_IFD_TAG_impl()
3485 …ImageInfo->Distance = (float)exif_convert_any_format(value_ptr, format, ImageInfo->motorola_intel); in exif_process_IFD_TAG_impl()
3490 switch (exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel)) { in exif_process_IFD_TAG_impl()
3560 offset_val = php_ifd_get32u(value_ptr, ImageInfo->motorola_intel); in exif_process_IFD_TAG_impl()
3620 NumDirEntries = php_ifd_get16u(dir_start, ImageInfo->motorola_intel); in exif_process_IFD_in_JPEG()
3649 NextDirOffset = php_ifd_get32u(dir_start+2+12*de, ImageInfo->motorola_intel); in exif_process_IFD_in_JPEG()
3697 ImageInfo->motorola_intel = 0; in exif_process_TIFF_in_JPEG()
3699 ImageInfo->motorola_intel = 1; in exif_process_TIFF_in_JPEG()
3710 exif_value_2a = php_ifd_get16u(CharBuf+2, ImageInfo->motorola_intel); in exif_process_TIFF_in_JPEG()
3711 offset_of_ifd = php_ifd_get32u(CharBuf+4, ImageInfo->motorola_intel); in exif_process_TIFF_in_JPEG()
4050 num_entries = php_ifd_get16u(ImageInfo->file.list[sn].data, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF_impl()
4062 …t_offset = php_ifd_get32u(ImageInfo->file.list[sn].data + dir_size - 4, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF_impl()
4070 entry_tag = php_ifd_get16u(dir_entry+0, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF_impl()
4071 entry_type = php_ifd_get16u(dir_entry+2, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF_impl()
4081 …entry_length = php_ifd_get32u(dir_entry+4, ImageInfo->motorola_intel) * php_tiff_bytes_per_format[… in exif_process_IFD_in_TIFF_impl()
4085 entry_value = php_ifd_get16u(dir_entry+8, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF_impl()
4088 entry_value = php_ifd_get16s(dir_entry+8, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF_impl()
4091 entry_value = php_ifd_get32u(dir_entry+8, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF_impl()
4094 entry_value = php_ifd_get32s(dir_entry+8, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF_impl()
4124 entry_offset = php_ifd_get32u(dir_entry+8, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF_impl()
4157 entry_tag = php_ifd_get16u(dir_entry+0, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF_impl()
4158 entry_type = php_ifd_get16u(dir_entry+2, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF_impl()
4183 entry_offset = php_ifd_get32u(dir_entry+8, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF_impl()
4311 ImageInfo->motorola_intel = 0; in exif_scan_FILE_header()
4317 php_ifd_get32u(file_header + 4, ImageInfo->motorola_intel), in exif_scan_FILE_header()
4325 ImageInfo->motorola_intel = 1; in exif_scan_FILE_header()
4331 php_ifd_get32u(file_header + 4, ImageInfo->motorola_intel), in exif_scan_FILE_header()
4393 ImageInfo->motorola_intel = -1; /* flag as unknown */ in exif_read_from_impl()
4606 if (ImageInfo.motorola_intel != -1) { in PHP_FUNCTION()
4607 exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "ByteOrderMotorola", ImageInfo.motorola_intel); in PHP_FUNCTION()