Lines Matching refs:opd
1094 ptp_unpack_OPD (PTPParams *params, unsigned char* data, PTPObjectPropDesc *opd, unsigned int opdlen) in ptp_unpack_OPD() argument
1098 memset (opd, 0, sizeof(*opd)); in ptp_unpack_OPD()
1099 opd->ObjectPropertyCode=dtoh16a(&data[PTP_opd_ObjectPropertyCode]); in ptp_unpack_OPD()
1100 opd->DataType=dtoh16a(&data[PTP_opd_DataType]); in ptp_unpack_OPD()
1101 opd->GetSet=dtoh8a(&data[PTP_opd_GetSet]); in ptp_unpack_OPD()
1104 ret = ptp_unpack_DPV (params, data, &offset, opdlen, &opd->FactoryDefaultValue, opd->DataType); in ptp_unpack_OPD()
1107 opd->GroupCode=dtoh32a(&data[offset]); in ptp_unpack_OPD()
1110 opd->FormFlag=dtoh8a(&data[offset]); in ptp_unpack_OPD()
1113 switch (opd->FormFlag) { in ptp_unpack_OPD()
1115 …ret = ptp_unpack_DPV (params, data, &offset, opdlen, &opd->FORM.Range.MinimumValue, opd->DataType); in ptp_unpack_OPD()
1117 …ret = ptp_unpack_DPV (params, data, &offset, opdlen, &opd->FORM.Range.MaximumValue, opd->DataType); in ptp_unpack_OPD()
1119 ret = ptp_unpack_DPV (params, data, &offset, opdlen, &opd->FORM.Range.StepSize, opd->DataType); in ptp_unpack_OPD()
1124 #define N opd->FORM.Enum.NumberOfValues in ptp_unpack_OPD()
1127 opd->FORM.Enum.SupportedValue = malloc(N*sizeof(opd->FORM.Enum.SupportedValue[0])); in ptp_unpack_OPD()
1128 if (!opd->FORM.Enum.SupportedValue) in ptp_unpack_OPD()
1131 memset (opd->FORM.Enum.SupportedValue,0 , N*sizeof(opd->FORM.Enum.SupportedValue[0])); in ptp_unpack_OPD()
1133 …ret = ptp_unpack_DPV (params, data, &offset, opdlen, &opd->FORM.Enum.SupportedValue[i], opd->DataT… in ptp_unpack_OPD()
1143 opd->FORM.Enum.NumberOfValues = i; in ptp_unpack_OPD()
1152 ptp_free_objectpropdesc(opd); in ptp_unpack_OPD()