Lines Matching refs:motorola_intel

1090 static int php_ifd_get16u(void *value, int motorola_intel)  in php_ifd_get16u()  argument
1092 if (motorola_intel) { in php_ifd_get16u()
1102 static signed short php_ifd_get16s(void *value, int motorola_intel) in php_ifd_get16s() argument
1104 return (signed short)php_ifd_get16u(value, motorola_intel); in php_ifd_get16s()
1110 static int php_ifd_get32s(void *value, int motorola_intel) in php_ifd_get32s() argument
1112 if (motorola_intel) { in php_ifd_get32s()
1128 static unsigned php_ifd_get32u(void *value, int motorola_intel) in php_ifd_get32u() argument
1130 return (unsigned)php_ifd_get32s(value, motorola_intel) & 0xffffffff; in php_ifd_get32u()
1136 static void php_ifd_set16u(char *data, unsigned int value, int motorola_intel) in php_ifd_set16u() argument
1138 if (motorola_intel) { in php_ifd_set16u()
1150 static void php_ifd_set32u(char *data, size_t value, int motorola_intel) in php_ifd_set32u() argument
1152 if (motorola_intel) { in php_ifd_set32u()
1167 char * exif_dump_data(int *dump_free, int format, int components, int length, int motorola_intel, c… in exif_dump_data() argument
1205 snprintf(dump + len, 6 + 1, "0x%04X", php_ifd_get16s(value_ptr, motorola_intel)); in exif_dump_data()
1212 snprintf(dump + len, 6 + 1, "0x%04X", php_ifd_get32s(value_ptr, motorola_intel)); in exif_dump_data()
1219 … 1, "0x%04X/0x%04X", php_ifd_get32s(value_ptr, motorola_intel), php_ifd_get32s(value_ptr+4, motoro… in exif_dump_data()
1242 static double exif_convert_any_format(void *value, int format, int motorola_intel TSRMLS_DC) in exif_convert_any_format()
1251 case TAG_FMT_USHORT: return php_ifd_get16u(value, motorola_intel); in exif_convert_any_format()
1252 case TAG_FMT_ULONG: return php_ifd_get32u(value, motorola_intel); in exif_convert_any_format()
1255 u_den = php_ifd_get32u(4+(char *)value, motorola_intel); in exif_convert_any_format()
1259 return (double)php_ifd_get32u(value, motorola_intel) / u_den; in exif_convert_any_format()
1263 s_den = php_ifd_get32s(4+(char *)value, motorola_intel); in exif_convert_any_format()
1267 return (double)php_ifd_get32s(value, motorola_intel) / s_den; in exif_convert_any_format()
1270 case TAG_FMT_SSHORT: return (signed short)php_ifd_get16u(value, motorola_intel); in exif_convert_any_format()
1271 case TAG_FMT_SLONG: return php_ifd_get32s(value, motorola_intel); in exif_convert_any_format()
1291 static size_t exif_convert_any_to_int(void *value, int format, int motorola_intel TSRMLS_DC) in exif_convert_any_to_int()
1300 case TAG_FMT_USHORT: return php_ifd_get16u(value, motorola_intel); in exif_convert_any_to_int()
1301 case TAG_FMT_ULONG: return php_ifd_get32u(value, motorola_intel); in exif_convert_any_to_int()
1304 u_den = php_ifd_get32u(4+(char *)value, motorola_intel); in exif_convert_any_to_int()
1308 return php_ifd_get32u(value, motorola_intel) / u_den; in exif_convert_any_to_int()
1312 s_den = php_ifd_get32s(4+(char *)value, motorola_intel); in exif_convert_any_to_int()
1316 return php_ifd_get32s(value, motorola_intel) / s_den; in exif_convert_any_to_int()
1319 case TAG_FMT_SSHORT: return php_ifd_get16u(value, motorola_intel); in exif_convert_any_to_int()
1320 case TAG_FMT_SLONG: return php_ifd_get32s(value, motorola_intel); in exif_convert_any_to_int()
1543 int motorola_intel; /* 1 Motorola; 0 Intel */ member
1673 …tion_index, char *name, int tag, int format, int length, void* value, int motorola_intel TSRMLS_DC) in exif_iif_add_value()
1753 info_value->u = php_ifd_get16u(vptr, motorola_intel); in exif_iif_add_value()
1757 info_value->u = php_ifd_get32u(vptr, motorola_intel); in exif_iif_add_value()
1761 info_value->ur.num = php_ifd_get32u(vptr, motorola_intel); in exif_iif_add_value()
1762 info_value->ur.den = php_ifd_get32u(4+(char *)vptr, motorola_intel); in exif_iif_add_value()
1766 info_value->i = php_ifd_get16s(vptr, motorola_intel); in exif_iif_add_value()
1770 info_value->i = php_ifd_get32s(vptr, motorola_intel); in exif_iif_add_value()
1774 info_value->sr.num = php_ifd_get32u(vptr, motorola_intel); in exif_iif_add_value()
1775 info_value->sr.den = php_ifd_get32u(4+(char *)vptr, motorola_intel); in exif_iif_add_value()
1803 …_info, section_index, name, tag, format, (int)length, value, image_info->motorola_intel TSRMLS_CC); in exif_iif_add_tag()
2369 static void* exif_ifd_make_value(image_info_data *info_data, int motorola_intel TSRMLS_DC) { in exif_ifd_make_value()
2403 php_ifd_set16u(data_ptr, info_value->u, motorola_intel); in exif_ifd_make_value()
2407 php_ifd_set32u(data_ptr, info_value->u, motorola_intel); in exif_ifd_make_value()
2411 php_ifd_set16u(data_ptr, info_value->i, motorola_intel); in exif_ifd_make_value()
2415 php_ifd_set32u(data_ptr, info_value->i, motorola_intel); in exif_ifd_make_value()
2419 php_ifd_set32u(data_ptr, info_value->sr.num, motorola_intel); in exif_ifd_make_value()
2420 php_ifd_set32u(data_ptr+4, info_value->sr.den, motorola_intel); in exif_ifd_make_value()
2424 php_ifd_set32u(data_ptr, info_value->ur.num, motorola_intel); in exif_ifd_make_value()
2425 php_ifd_set32u(data_ptr+4, info_value->ur.den, motorola_intel); in exif_ifd_make_value()
2488 if (ImageInfo->motorola_intel) { in exif_thumbnail_build()
2494 php_ifd_set16u(new_data, info_list->count, ImageInfo->motorola_intel); in exif_thumbnail_build()
2503 php_ifd_set16u(new_data + 0, info_data->tag, ImageInfo->motorola_intel); in exif_thumbnail_build()
2504 php_ifd_set16u(new_data + 2, TAG_FMT_ULONG, ImageInfo->motorola_intel); in exif_thumbnail_build()
2505 php_ifd_set32u(new_data + 4, 1, ImageInfo->motorola_intel); in exif_thumbnail_build()
2506 php_ifd_set32u(new_data + 8, new_move, ImageInfo->motorola_intel); in exif_thumbnail_build()
2508 php_ifd_set16u(new_data + 0, info_data->tag, ImageInfo->motorola_intel); in exif_thumbnail_build()
2509 php_ifd_set16u(new_data + 2, info_data->format, ImageInfo->motorola_intel); in exif_thumbnail_build()
2510 php_ifd_set32u(new_data + 4, info_data->length, ImageInfo->motorola_intel); in exif_thumbnail_build()
2511 value_ptr = exif_ifd_make_value(info_data, ImageInfo->motorola_intel TSRMLS_CC); in exif_thumbnail_build()
2515 php_ifd_set32u(new_data+8, new_value, ImageInfo->motorola_intel); in exif_thumbnail_build()
2641 } else if (ImageInfo->motorola_intel) { in exif_process_user_comment()
2674 …zend_multibyte_fetch_encoding(ImageInfo->motorola_intel ? ImageInfo->decode_jis_be : ImageInfo->de… in exif_process_user_comment()
2713 …zend_multibyte_fetch_encoding(ImageInfo->motorola_intel ? ImageInfo->decode_unicode_be : ImageInfo… in exif_process_unicode()
2753 old_motorola_intel = ImageInfo->motorola_intel; in exif_process_IFD_in_MAKERNOTE()
2756 ImageInfo->motorola_intel = 0; in exif_process_IFD_in_MAKERNOTE()
2759 ImageInfo->motorola_intel = 1; in exif_process_IFD_in_MAKERNOTE()
2766 NumDirEntries = php_ifd_get16u(dir_start, ImageInfo->motorola_intel); in exif_process_IFD_in_MAKERNOTE()
2773 offset_diff = 2 + NumDirEntries*12 + 4 - php_ifd_get32u(dir_start+10, ImageInfo->motorola_intel); in exif_process_IFD_in_MAKERNOTE()
2795 ImageInfo->motorola_intel = old_motorola_intel; in exif_process_IFD_in_MAKERNOTE()
2826 tag = php_ifd_get16u(dir_entry, ImageInfo->motorola_intel); in exif_process_IFD_TAG()
2827 format = php_ifd_get16u(dir_entry+2, ImageInfo->motorola_intel); in exif_process_IFD_TAG()
2828 components = php_ifd_get32u(dir_entry+4, ImageInfo->motorola_intel); in exif_process_IFD_TAG()
2852 offset_val = php_ifd_get32u(dir_entry+8, ImageInfo->motorola_intel); in exif_process_IFD_TAG()
2914 …dump_data = exif_dump_data(&dump_free, format, components, length, ImageInfo->motorola_intel, valu… in exif_process_IFD_TAG()
2926 …>Thumbnail.width = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel TSRMLS_CC); in exif_process_IFD_TAG()
2931 …Thumbnail.height = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel TSRMLS_CC); in exif_process_IFD_TAG()
2937 …Thumbnail.offset = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel TSRMLS_CC); in exif_process_IFD_TAG()
2947 …->Thumbnail.size = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel TSRMLS_CC); in exif_process_IFD_TAG()
2953 …->Thumbnail.size = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel TSRMLS_CC); in exif_process_IFD_TAG()
2997 …reFNumber = (float)exif_convert_any_format(value_ptr, format, ImageInfo->motorola_intel TSRMLS_CC); in exif_process_IFD_TAG()
3006 …= (float)exp(exif_convert_any_format(value_ptr, format, ImageInfo->motorola_intel TSRMLS_CC)*log(2… in exif_process_IFD_TAG()
3017 …= (float)(1/exp(exif_convert_any_format(value_ptr, format, ImageInfo->motorola_intel TSRMLS_CC)*lo… in exif_process_IFD_TAG()
3025 …->ExifImageWidth = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel TSRMLS_CC); in exif_process_IFD_TAG()
3029 …->FocalplaneXRes = exif_convert_any_format(value_ptr, format, ImageInfo->motorola_intel TSRMLS_CC); in exif_process_IFD_TAG()
3035 …>Distance = (float)exif_convert_any_format(value_ptr, format, ImageInfo->motorola_intel TSRMLS_CC); in exif_process_IFD_TAG()
3039 switch((int)exif_convert_any_format(value_ptr, format, ImageInfo->motorola_intel TSRMLS_CC)) { in exif_process_IFD_TAG()
3103 Subdir_start = offset_base + php_ifd_get32u(value_ptr, ImageInfo->motorola_intel); in exif_process_IFD_TAG()
3137 NumDirEntries = php_ifd_get16u(dir_start, ImageInfo->motorola_intel); in exif_process_IFD_in_JPEG()
3160 NextDirOffset = php_ifd_get32u(dir_start+2+12*de, ImageInfo->motorola_intel); in exif_process_IFD_in_JPEG()
3200 ImageInfo->motorola_intel = 0; in exif_process_TIFF_in_JPEG()
3202 ImageInfo->motorola_intel = 1; in exif_process_TIFF_in_JPEG()
3209 exif_value_2a = php_ifd_get16u(CharBuf+2, ImageInfo->motorola_intel); in exif_process_TIFF_in_JPEG()
3210 offset_of_ifd = php_ifd_get32u(CharBuf+4, ImageInfo->motorola_intel); in exif_process_TIFF_in_JPEG()
3548 num_entries = php_ifd_get16u(ImageInfo->file.list[sn].data, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF()
3559 …t_offset = php_ifd_get32u(ImageInfo->file.list[sn].data + dir_size - 4, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF()
3567 entry_tag = php_ifd_get16u(dir_entry+0, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF()
3568 entry_type = php_ifd_get16u(dir_entry+2, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF()
3578 …entry_length = php_ifd_get32u(dir_entry+4, ImageInfo->motorola_intel) * php_tiff_bytes_per_format[… in exif_process_IFD_in_TIFF()
3582 entry_value = php_ifd_get16u(dir_entry+8, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF()
3585 entry_value = php_ifd_get16s(dir_entry+8, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF()
3588 entry_value = php_ifd_get32u(dir_entry+8, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF()
3591 entry_value = php_ifd_get32s(dir_entry+8, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF()
3621 entry_offset = php_ifd_get32u(dir_entry+8, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF()
3654 entry_tag = php_ifd_get16u(dir_entry+0, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF()
3655 entry_type = php_ifd_get16u(dir_entry+2, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF()
3680 entry_offset = php_ifd_get32u(dir_entry+8, ImageInfo->motorola_intel); in exif_process_IFD_in_TIFF()
3785 ImageInfo->motorola_intel = 0; in exif_scan_FILE_header()
3791 php_ifd_get32u(file_header + 4, ImageInfo->motorola_intel), in exif_scan_FILE_header()
3799 ImageInfo->motorola_intel = 1; in exif_scan_FILE_header()
3805 php_ifd_get32u(file_header + 4, ImageInfo->motorola_intel), in exif_scan_FILE_header()
3868 ImageInfo->motorola_intel = -1; /* flag as unknown */ in exif_read_file()
4007 if (ImageInfo.motorola_intel != -1) { in PHP_FUNCTION()
4008 …exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "ByteOrderMotorola", ImageInfo.motorola_intel TSRML… in PHP_FUNCTION()