khronosfws/openmax_al/src/mediarecorder/xaimageencoderitf.c
changeset 31 8dfd592727cb
parent 16 43d09473c595
equal deleted inserted replaced
22:128eb6a32b84 31:8dfd592727cb
    72     if(impl->adaptCtx->fwtype == FWMgrFWGST)
    72     if(impl->adaptCtx->fwtype == FWMgrFWGST)
    73         {
    73         {
    74         res = XACapabilitiesMgr_GetCapsById(NULL, (XACapsType)(XACAP_ENCODER|XACAP_IMAGE), pSettings->encoderId, &temp);
    74         res = XACapabilitiesMgr_GetCapsById(NULL, (XACapsType)(XACAP_ENCODER|XACAP_IMAGE), pSettings->encoderId, &temp);
    75         if( res == XA_RESULT_SUCCESS )
    75         if( res == XA_RESULT_SUCCESS )
    76             {
    76             {
       
    77 #ifdef OMAX_CAMERABIN
    77             res = XAImageEncoderItfAdapt_SetImageSettings((XAAdaptationGstCtx*)impl->adaptCtx, pSettings);
    78             res = XAImageEncoderItfAdapt_SetImageSettings((XAAdaptationGstCtx*)impl->adaptCtx, pSettings);
       
    79 #endif
    78             }
    80             }
    79         else
    81         else
    80             {
    82             {
    81             DEBUG_ERR("XA_RESULT_FEATURE_UNSUPPORTED");
    83             DEBUG_ERR("XA_RESULT_FEATURE_UNSUPPORTED");
    82             res = XA_RESULT_FEATURE_UNSUPPORTED;
    84             res = XA_RESULT_FEATURE_UNSUPPORTED;
   106         /* invalid parameter */
   108         /* invalid parameter */
   107         return XA_RESULT_PARAMETER_INVALID;
   109         return XA_RESULT_PARAMETER_INVALID;
   108     }
   110     }
   109     if(impl->adaptCtx->fwtype == FWMgrFWGST)
   111     if(impl->adaptCtx->fwtype == FWMgrFWGST)
   110         {
   112         {
       
   113 #ifdef OMAX_CAMERABIN
   111         res = XAImageEncoderItfAdapt_GetImageSettings((XAAdaptationGstCtx*)impl->adaptCtx, pSettings);
   114         res = XAImageEncoderItfAdapt_GetImageSettings((XAAdaptationGstCtx*)impl->adaptCtx, pSettings);
       
   115 #endif
   112         }
   116         }
   113     else
   117     else
   114         {
   118         {
   115         DEBUG_ERR("XA_RESULT_FEATURE_UNSUPPORTED");
   119         DEBUG_ERR("XA_RESULT_FEATURE_UNSUPPORTED");
   116         DEBUG_API("<-XAImageEncoderItfImpl_GetImageSettings");
   120         DEBUG_API("<-XAImageEncoderItfImpl_GetImageSettings");
   142     }
   146     }
   143     /* calculate size estimate */
   147     /* calculate size estimate */
   144 
   148 
   145     if(impl->adaptCtx->fwtype == FWMgrFWGST)
   149     if(impl->adaptCtx->fwtype == FWMgrFWGST)
   146         {
   150         {
       
   151 #ifdef OMAX_CAMERABIN
   147         XAImageEncoderItfAdapt_GetImageSettings((XAAdaptationGstCtx*)impl->adaptCtx, &curSettings);
   152         XAImageEncoderItfAdapt_GetImageSettings((XAAdaptationGstCtx*)impl->adaptCtx, &curSettings);
       
   153 #endif
   148         }
   154         }
   149     else
   155     else
   150         {
   156         {
   151         DEBUG_ERR("XA_RESULT_FEATURE_UNSUPPORTED");
   157         DEBUG_ERR("XA_RESULT_FEATURE_UNSUPPORTED");
   152         DEBUG_API("<-XAImageEncoderItfImpl_GetSizeEstimate");
   158         DEBUG_API("<-XAImageEncoderItfImpl_GetSizeEstimate");