Reputation: 313
I am acquiring the data from AXIS camera by using RTSP API. I want to extract the image from the received raw data (h264 codec format)
I am using libturbojpeg to compress the data and cximage to create an image
int result = tjCompress2(m_tjCompressorHandle,reinterpret_cast<const
unsigned char *> (pcImgContent),SCALE(320, 1),0, SCALE(240, 1),
TJPF_RGB, &pData, &resultSize, TJSAMP_444, 100, TJFLAG_ACCURATEDCT);
Upvotes: 0
Views: 184