I’m using the NVMedia ipp_raw sample application with a normal Sekonix camera. Everything works well, but now I need to access the embedded information from the camera.
Normally, the AR0231 sensor outputs a copy of all registers in the “top” embedded data, while the “bottom” embedded data has histogram data and other stats. How can I read these embedded lines from the ipp_raw sample?
I tried to access it as metadata. I see that in img_producer.c there is a function called “PrintMetadataInfo()” that fills the “NvMediaISCEmbeddedData embeddedData” object:
NvMediaIPPMetadataGet( output->metadata, NVMEDIA_IPP_METADATA_EMBEDDED_DATA_ISC, &embeddedData, sizeof(embeddedData));
When printing out “embeddedData.top.size” it confirms that the top embedded data size is 4096 (and “embeddedData.top.bufferSize” is 16384), so I would expect the actual data to be there – however, I get a segfault when trying to read anything in “embeddedData.top.data”, as this is a null pointer apparently.
I have also tried to access the top line data specifically as follows:
NvMediaISCEmbeddedData embeddedDataTop; NvMediaIPPMetadataGet( output->metadata, NVMEDIA_IPP_METADATA_EMBEDDED_DATA_TOP, &embeddedDataTop, embeddedData.top.size);
Which according to the docs does return the actual top data lines, but this results in a segfault as well.
How can I access the actual data in these elements? Or is there an alternative method I can use to access this information somewhere else within ipp_raw?
Any information would be greatly appreciated! Thanks in advanced.