Nagappa
Nagappa

Reputation: 313

How to get the image form the H264 raw data

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

Upvotes: 0

Views: 184

Answers (0)

Related Questions