I would like to enable metadata in order to access information about acquired frames. I adapted the code from the argus yuvJpeg sample in 32.1. However, if I call setMetdataEnable(true) on the IEGLOutputStreamSettings before creating the output stream I get the following set of error messages repeated a few times:
SCF: Error NotImplemented: Failed to set the metadata for the frame (propagating from src/services/gl/EGLStreamProducer.cpp, function setFrameMetadata(), line 478) SCF: Error NotImplemented: (propagating from src/services/gl/EGLStreamProducer.cpp, function presentBufferInternal(), line 543) SCF: Error InvalidState: Buffer is not locked (in src/api/Buffer.cpp, function unlock(), line 448) SCF: Error InvalidState: Element not found (in /media/jerry/Hitachi/L4T/T186/r32.x/camera/utils/nvcamerautils/inc/Vector.h, function remove(), line 172) SCF: Error InvalidState: (propagating from src/services/gl/EGLStreamProducer.cpp, function returnFrame(), line 394)
After which this is repeated until the program terminates:
SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667) (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
If I don’t enable metadata (don’t call setMetadataEnable) then everything runs fine. I’m wondering what the issue could be?