Lines Matching refs:dtoh32a
95 #define dtoh32a(a) dtoh32ap(params,a)
238 n=dtoh32a(&data[offset]);
241 (*array)[i]=dtoh32a(&data[offset+(sizeof(uint32_t)*(i+1))]);
264 n=dtoh32a(&data[offset]);
292 dtoh32a(&data[PTP_di_VendorExtensionID]);
426 si->FreeSpaceInImages=dtoh32a(&data[PTP_si_FreeSpaceInImages]);
572 oi->StorageID=dtoh32a(&data[PTP_oi_StorageID]);
575 oi->ObjectCompressedSize=dtoh32a(&data[PTP_oi_ObjectCompressedSize]);
577 oi->ThumbCompressedSize=dtoh32a(&data[PTP_oi_ThumbCompressedSize]);
578 oi->ThumbPixWidth=dtoh32a(&data[PTP_oi_ThumbPixWidth]);
579 oi->ThumbPixHeight=dtoh32a(&data[PTP_oi_ThumbPixHeight]);
580 oi->ImagePixWidth=dtoh32a(&data[PTP_oi_ImagePixWidth]);
581 oi->ImagePixHeight=dtoh32a(&data[PTP_oi_ImagePixHeight]);
582 oi->ImageBitDepth=dtoh32a(&data[PTP_oi_ImageBitDepth]);
583 oi->ParentObject=dtoh32a(&data[PTP_oi_ParentObject]);
585 oi->AssociationDesc=dtoh32a(&data[PTP_oi_AssociationDesc]);
586 oi->SequenceNumber=dtoh32a(&data[PTP_oi_SequenceNumber]);
617 n = dtoh32a (&data[*offset]); \
646 CTVAL(value->i32,dtoh32a);
649 CTVAL(value->u32,dtoh32a);
682 RARR(value,u32,dtoh32a);
685 RARR(value,i32,dtoh32a);
810 opd->GroupCode=dtoh32a(&data[offset]);
1044 uint32_t prop_count = dtoh32a(data);
1066 props[i].ObjectHandle = dtoh32a(data);
1110 length=dtoh32a(&data[PTP_ec_Length]);
1114 ec->Transaction_ID=dtoh32a(&data[PTP_ec_TransId]);
1121 ec->Param1=dtoh32a(&data[PTP_ec_Param1]);
1125 ec->Param2=dtoh32a(&data[PTP_ec_Param2]);
1129 ec->Param3=dtoh32a(&data[PTP_ec_Param3]);
1151 fe->ObjectHandle=dtoh32a(&data[PTP_cfe_ObjectHandle]);
1154 fe->ObjectSize=dtoh32a((unsigned char*)&data[PTP_cfe_ObjectSize]);
1155 fe->Time=(time_t)dtoh32a(&data[PTP_cfe_Time]);
1187 uint32_t n = dtoh32a( d );
1195 l = dtoh32a( d+=4 );
1202 s1 = dtoh32a( d+=4 );
1203 c1 = dtoh32a( d+=4 );
1206 l = dtoh32a( d+=4 );
1212 s2 = dtoh32a( d+=4 );
1213 c2 = dtoh32a( d+=4 );
1281 uint32_t size = dtoh32a(&curdata[PTP_ece_Size]);
1282 uint32_t type = dtoh32a(&curdata[PTP_ece_Type]);
1294 uint32_t size = dtoh32a(&curdata[PTP_ece_Size]);
1295 uint32_t type = dtoh32a(&curdata[PTP_ece_Type]);
1301 (*ce)[i].u.object.oid = dtoh32a(&curdata[PTP_ece_OA_ObjectID]);
1302 (*ce)[i].u.object.oi.StorageID = dtoh32a(&curdata[PTP_ece_OA_StorageID]);
1303 (*ce)[i].u.object.oi.ParentObject = dtoh32a(&curdata[PTP_ece_OA_Parent]);
1305 (*ce)[i].u.object.oi.ObjectCompressedSize= dtoh32a(&curdata[PTP_ece_OA_Size]);
1311 (*ce)[i].u.object.oid = dtoh32a(&curdata[PTP_ece_OI_ObjectID]);
1315 (*ce)[i].u.object.oi.ObjectCompressedSize = dtoh32a(&curdata[PTP_ece_OI_Size]);
1321 uint32_t proptype = dtoh32a(&curdata[PTP_ece_Prop_Subtype]);
1322 uint32_t propxtype = dtoh32a(&curdata[PTP_ece_Prop_Desc_Type]);
1323 uint32_t propxcnt = dtoh32a(&curdata[PTP_ece_Prop_Desc_Count]);
1380 case PTP_DTC_UINT32: XX( u32, dtoh32a );
1385 ptp_debug (params ,"event %d: data type 0x%04x of %x unhandled, raw values:", i, dpd->DataType, proptype, dtoh32a(data));
1387 ptp_debug (params, " %3d: 0x%8x", j, dtoh32a(data));
1396 uint32_t proptype = dtoh32a(&curdata[PTP_ece_Prop_Subtype]);
1576 dpd->FactoryDefaultValue.u32 = dtoh32a(data);
1577 dpd->CurrentValue.u32 = dtoh32a(data);
1696 (*ec)[i].Param1 = dtoh32a(&data[PTP_nikon_ec_Param1+PTP_nikon_ec_Size*i]);
1778 #define ISOBJECT(ptr) (dtoh32a((ptr)+ptp_canon_dir_storageid) == 0xffffffff)
1800 handles->Handler[curob] = dtoh32a(cur + ptp_canon_dir_objectid);
1803 oi->ParentObject = dtoh32a(cur + ptp_canon_dir_parentid);
1805 oi->ObjectCompressedSize= dtoh32a(cur + ptp_canon_dir_size);
1806 oi->ThumbCompressedSize = dtoh32a(cur + ptp_canon_dir_thumbsize);
1807 oi->ImagePixWidth = dtoh32a(cur + ptp_canon_dir_width);
1808 oi->ImagePixHeight = dtoh32a(cur + ptp_canon_dir_height);
1809 oi->CaptureDate = oi->ModificationDate = dtoh32a(cur + ptp_canon_dir_unixtime);
1810 (*flags)[curob] = dtoh32a(cur + ptp_canon_dir_flags);
1817 uint32_t nextchild = dtoh32a(cur + ptp_canon_dir_nextchild);
1823 (*oinfos)[j].StorageID = dtoh32a(cur + ptp_canon_dir_storageid);
1830 uint32_t oid = dtoh32a(cur + ptp_canon_dir_objectid);
1831 uint32_t nextoid = dtoh32a(cur + ptp_canon_dir_nextid);
1832 uint32_t nextchild = dtoh32a(cur + ptp_canon_dir_nextchild);