equal
deleted
inserted
replaced
172 iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EImagePixHeight, height ); |
172 iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EImagePixHeight, height ); |
173 |
173 |
174 // Image Bit Depth |
174 // Image Bit Depth |
175 iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EImageBitDepth, 0 ); |
175 iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EImageBitDepth, 0 ); |
176 // Parent Object |
176 // Parent Object |
177 iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EParentObject, |
177 TUint32 parentHandle = object->Uint( CMTPObjectMetaData::EParentHandle ); |
178 object->Uint( CMTPObjectMetaData::EParentHandle ) ); |
178 // refer to 5.3.1.9 of MTP Spec 1.0 |
|
179 if ( parentHandle == KMTPHandleNoParent ) |
|
180 { |
|
181 parentHandle = KMTPHandleNone; |
|
182 } |
|
183 iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EParentObject, parentHandle ); |
179 // Association Type |
184 // Association Type |
180 iObjectInfo->SetUint16L( CMTPTypeObjectInfo::EAssociationType, 0 ); |
185 iObjectInfo->SetUint16L( CMTPTypeObjectInfo::EAssociationType, 0 ); |
181 // Association Description |
186 // Association Description |
182 iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EAssociationDescription, 0 ); |
187 iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EAssociationDescription, 0 ); |
183 // *Sequence Number |
188 // *Sequence Number |