Commit f14d4560 authored by Nícolas F. R. A. Prado's avatar Nícolas F. R. A. Prado
Browse files

debug: Create dumpFrames() function

parent 2e284924
......@@ -69,6 +69,7 @@ public:
RkISP1FrameInfo *find(unsigned int frame);
RkISP1FrameInfo *find(FrameBuffer *buffer);
RkISP1FrameInfo *find(Request *request);
void dumpFrames();
private:
PipelineHandlerRkISP1 *pipe_;
......@@ -820,6 +821,18 @@ int PipelineHandlerRkISP1::start(Camera *camera, [[maybe_unused]] const ControlL
return ret;
}
void RkISP1Frames::dumpFrames()
{
LOG(RkISP1, Warning) << "Current frames:";
for (auto &itInfo : frameInfo_) {
RkISP1FrameInfo *info = itInfo.second;
LOG(RkISP1, Warning) << "- Req: " << info->request->toString()
<< ", Flags:" << (info->paramDequeued ? "P" : "") <<
(info->metadataProcessed ? "M" : "");
}
}
void PipelineHandlerRkISP1::stop(Camera *camera)
{
RkISP1CameraData *data = cameraData(camera);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment