khronosfws/openmax_al/src/engine/xaengineitf.c
changeset 43 9894ed580e4a
parent 33 5e8b14bae8c3
child 53 eabc8c503852
equal deleted inserted replaced
39:1f58177f6740 43:9894ed580e4a
    45 XAresult XAEngineItfImpl_CreateCameraDevice(XAEngineItf self,
    45 XAresult XAEngineItfImpl_CreateCameraDevice(XAEngineItf self,
    46         XAObjectItf *pDevice, XAuint32 deviceID, XAuint32 numInterfaces,
    46         XAObjectItf *pDevice, XAuint32 deviceID, XAuint32 numInterfaces,
    47         const XAInterfaceID *pInterfaceIds,
    47         const XAInterfaceID *pInterfaceIds,
    48         const XAboolean *pInterfaceRequired)
    48         const XAboolean *pInterfaceRequired)
    49     {
    49     {
       
    50 #ifdef OMAX_CAMERABIN
    50     XAEngineItfImpl* impl = GetImpl(self);
    51     XAEngineItfImpl* impl = GetImpl(self);
    51 #ifdef OMAX_CAMERABIN
       
    52     return XACameraDeviceImpl_CreateCameraDevice( impl->mapper,impl->capabilities,
    52     return XACameraDeviceImpl_CreateCameraDevice( impl->mapper,impl->capabilities,
    53             pDevice, deviceID,numInterfaces,
    53             pDevice, deviceID,numInterfaces,
    54             pInterfaceIds, pInterfaceRequired );
    54             pInterfaceIds, pInterfaceRequired );
    55 #else
    55 #else
    56     return XA_RESULT_FEATURE_UNSUPPORTED;
    56     return XA_RESULT_FEATURE_UNSUPPORTED;
   421     }
   421     }
   422 
   422 
   423 void XAEngineItfImpl_Free(XAEngineItfImpl* self)
   423 void XAEngineItfImpl_Free(XAEngineItfImpl* self)
   424     {
   424     {
   425     DEBUG_API("->XAEngineItfImpl_Free");
   425     DEBUG_API("->XAEngineItfImpl_Free");
   426     assert(self==self->self);
       
   427     if(self)
   426     if(self)
   428         {
   427         {
       
   428         assert(self==self->self);
   429         free(self);
   429         free(self);
   430         }
   430         }
   431     DEBUG_API("<-XAEngineItfImpl_Free");
   431     DEBUG_API("<-XAEngineItfImpl_Free");
   432     }
   432     }