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);
- Can i use libturbojpeg directly for h264 raw data?
- Do i need to use some other library before compression?