MBOOL CamIOPipe:: queryPipeProperty(vector<PortProperty> &vInPorts, vector<PortProperty> &vOutPorts) { FUNCTION_LOG_START; PortID rSensorPortID(EPortType_Sensor, 0, 0); PortID rRawPortID(EPortType_MemoryOut, 0, 1); PortID rYuvPortID(EPortType_MemoryOut, 1, 1); // PortProperty rSensorPortProperty(rSensorPortID, eImgFmt_UNKNOWN, MFALSE, MFALSE); PortProperty rRawPortProperty(rRawPortID, eImgFmt_BAYER10|eImgFmt_YUY2, MFALSE, MFALSE); PortProperty rYuvPortProperty(rYuvPortID, eImgFmt_YUY2, MFALSE, MFALSE); vInPorts.clear(); vOutPorts.clear(); if(eSWScenarioID_MTK_PREVIEW == meSWScenarioID) { vInPorts.push_back(rSensorPortProperty); vOutPorts.push_back(rRawPortProperty); } else if (eSWScenarioID_CAPTURE_NORMAL == meSWScenarioID) { vInPorts.push_back(rSensorPortProperty); vOutPorts.push_back(rRawPortProperty); vOutPorts.push_back(rYuvPortProperty); } dumpPipeProperty(vInPorts, vOutPorts); FUNCTION_LOG_END; return MTRUE; }
MBOOL CdpPipe:: queryPipeProperty(vector<PortProperty > &vInPorts, vector<PortProperty > &vOutPorts) { FUNCTION_LOG_START; PortID rMemInPortID(EPortType_MemoryIn, 0, 0); PortID rMemOutDispPortID(EPortType_MemoryOut, 0, 1); PortID rMemOutVdoPortID(EPortType_MemoryOut, 1, 1); // #warning [TODO] PortProperty rMemInPortProperty(rMemInPortID, eImgFmt_UNKNOWN, MFALSE, MFALSE); PortProperty rMemOutDispProperty(rMemOutDispPortID, eImgFmt_BAYER10|eImgFmt_YUY2, MFALSE, MFALSE); PortProperty rMemOutVdoProperty(rMemOutVdoPortID, eImgFmt_YUY2, MFALSE, MFALSE); vInPorts.clear(); vOutPorts.clear(); vInPorts.push_back(rMemInPortProperty); vOutPorts.push_back(rMemOutDispProperty); vOutPorts.push_back(rMemOutVdoProperty); dumpPipeProperty(vInPorts, vOutPorts); FUNCTION_LOG_END; return MTRUE; }