• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:oi

459 ptp_pack_OI (PTPParams *params, PTPObjectInfo *oi, unsigned char** oidataptr)  in ptp_pack_OI()  argument
471 htod32a(&oidata[PTP_oi_StorageID],oi->StorageID); in ptp_pack_OI()
472 htod16a(&oidata[PTP_oi_ObjectFormat],oi->ObjectFormat); in ptp_pack_OI()
473 htod16a(&oidata[PTP_oi_ProtectionStatus],oi->ProtectionStatus); in ptp_pack_OI()
474 htod32a(&oidata[PTP_oi_ObjectCompressedSize],oi->ObjectCompressedSize); in ptp_pack_OI()
475 htod16a(&oidata[PTP_oi_ThumbFormat],oi->ThumbFormat); in ptp_pack_OI()
476 htod32a(&oidata[PTP_oi_ThumbCompressedSize],oi->ThumbCompressedSize); in ptp_pack_OI()
477 htod32a(&oidata[PTP_oi_ThumbPixWidth],oi->ThumbPixWidth); in ptp_pack_OI()
478 htod32a(&oidata[PTP_oi_ThumbPixHeight],oi->ThumbPixHeight); in ptp_pack_OI()
479 htod32a(&oidata[PTP_oi_ImagePixWidth],oi->ImagePixWidth); in ptp_pack_OI()
480 htod32a(&oidata[PTP_oi_ImagePixHeight],oi->ImagePixHeight); in ptp_pack_OI()
481 htod32a(&oidata[PTP_oi_ImageBitDepth],oi->ImageBitDepth); in ptp_pack_OI()
482 htod32a(&oidata[PTP_oi_ParentObject],oi->ParentObject); in ptp_pack_OI()
483 htod16a(&oidata[PTP_oi_AssociationType],oi->AssociationType); in ptp_pack_OI()
484 htod32a(&oidata[PTP_oi_AssociationDesc],oi->AssociationDesc); in ptp_pack_OI()
485 htod32a(&oidata[PTP_oi_SequenceNumber],oi->SequenceNumber); in ptp_pack_OI()
487 ptp_pack_string(params, oi->Filename, oidata, PTP_oi_filenamelen, &filenamelen); in ptp_pack_OI()
566 ptp_unpack_OI (PTPParams *params, unsigned char* data, PTPObjectInfo *oi, unsigned int len) in ptp_unpack_OI() argument
572 oi->StorageID=dtoh32a(&data[PTP_oi_StorageID]); in ptp_unpack_OI()
573 oi->ObjectFormat=dtoh16a(&data[PTP_oi_ObjectFormat]); in ptp_unpack_OI()
574 oi->ProtectionStatus=dtoh16a(&data[PTP_oi_ProtectionStatus]); in ptp_unpack_OI()
575 oi->ObjectCompressedSize=dtoh32a(&data[PTP_oi_ObjectCompressedSize]); in ptp_unpack_OI()
576 oi->ThumbFormat=dtoh16a(&data[PTP_oi_ThumbFormat]); in ptp_unpack_OI()
577 oi->ThumbCompressedSize=dtoh32a(&data[PTP_oi_ThumbCompressedSize]); in ptp_unpack_OI()
578 oi->ThumbPixWidth=dtoh32a(&data[PTP_oi_ThumbPixWidth]); in ptp_unpack_OI()
579 oi->ThumbPixHeight=dtoh32a(&data[PTP_oi_ThumbPixHeight]); in ptp_unpack_OI()
580 oi->ImagePixWidth=dtoh32a(&data[PTP_oi_ImagePixWidth]); in ptp_unpack_OI()
581 oi->ImagePixHeight=dtoh32a(&data[PTP_oi_ImagePixHeight]); in ptp_unpack_OI()
582 oi->ImageBitDepth=dtoh32a(&data[PTP_oi_ImageBitDepth]); in ptp_unpack_OI()
583 oi->ParentObject=dtoh32a(&data[PTP_oi_ParentObject]); in ptp_unpack_OI()
584 oi->AssociationType=dtoh16a(&data[PTP_oi_AssociationType]); in ptp_unpack_OI()
585 oi->AssociationDesc=dtoh32a(&data[PTP_oi_AssociationDesc]); in ptp_unpack_OI()
586 oi->SequenceNumber=dtoh32a(&data[PTP_oi_SequenceNumber]); in ptp_unpack_OI()
587 oi->Filename= ptp_unpack_string(params, data, PTP_oi_filenamelen, &filenamelen); in ptp_unpack_OI()
594 oi->CaptureDate = ptp_unpack_PTPTIME(capture_date); in ptp_unpack_OI()
601 oi->ModificationDate = ptp_unpack_PTPTIME(capture_date); in ptp_unpack_OI()
1302 (*ce)[i].u.object.oi.StorageID = dtoh32a(&curdata[PTP_ece_OA_StorageID]); in ptp_unpack_CANON_changes()
1303 (*ce)[i].u.object.oi.ParentObject = dtoh32a(&curdata[PTP_ece_OA_Parent]); in ptp_unpack_CANON_changes()
1304 (*ce)[i].u.object.oi.ObjectFormat = dtoh16a(&curdata[PTP_ece_OA_OFC]); in ptp_unpack_CANON_changes()
1305 (*ce)[i].u.object.oi.ObjectCompressedSize= dtoh32a(&curdata[PTP_ece_OA_Size]); in ptp_unpack_CANON_changes()
1306 (*ce)[i].u.object.oi.Filename = strdup(((char*)&curdata[PTP_ece_OA_Name])); in ptp_unpack_CANON_changes()
1307 … (*ce)[i].u.object.oi.ParentObject, (*ce)[i].u.object.oi.ObjectFormat, (*ce)[i].u.object.oi.Object… in ptp_unpack_CANON_changes()
1312 (*ce)[i].u.object.oi.StorageID = 0; /* use as marker */ in ptp_unpack_CANON_changes()
1313 (*ce)[i].u.object.oi.ObjectFormat = dtoh16a(&curdata[PTP_ece_OI_OFC]); in ptp_unpack_CANON_changes()
1314 (*ce)[i].u.object.oi.ParentObject = 0; /* check, but use as marker */ in ptp_unpack_CANON_changes()
1315 (*ce)[i].u.object.oi.ObjectCompressedSize = dtoh32a(&curdata[PTP_ece_OI_Size]); in ptp_unpack_CANON_changes()
1316 (*ce)[i].u.object.oi.Filename = strdup(((char*)&curdata[PTP_ece_OI_Name])); in ptp_unpack_CANON_changes()
1318 …[i].u.object.oid, (*ce)[i].u.object.oi.ObjectFormat, (*ce)[i].u.object.oi.ObjectCompressedSize, (*… in ptp_unpack_CANON_changes()
1795 PTPObjectInfo *oi = (*oinfos)+curob; in ptp_unpack_canon_directory() local
1801 oi->StorageID = 0xffffffff; in ptp_unpack_canon_directory()
1802 oi->ObjectFormat = dtoh16a(cur + ptp_canon_dir_ofc); in ptp_unpack_canon_directory()
1803 oi->ParentObject = dtoh32a(cur + ptp_canon_dir_parentid); in ptp_unpack_canon_directory()
1804 oi->Filename = strdup((char*)(cur + ptp_canon_dir_name)); in ptp_unpack_canon_directory()
1805 oi->ObjectCompressedSize= dtoh32a(cur + ptp_canon_dir_size); in ptp_unpack_canon_directory()
1806 oi->ThumbCompressedSize = dtoh32a(cur + ptp_canon_dir_thumbsize); in ptp_unpack_canon_directory()
1807 oi->ImagePixWidth = dtoh32a(cur + ptp_canon_dir_width); in ptp_unpack_canon_directory()
1808 oi->ImagePixHeight = dtoh32a(cur + ptp_canon_dir_height); in ptp_unpack_canon_directory()
1809 oi->CaptureDate = oi->ModificationDate = dtoh32a(cur + ptp_canon_dir_unixtime); in ptp_unpack_canon_directory()