memcpy(&frame_params,(unsignedlong*)&ccam_dma_buf[frameParamPointer>>2],32);/// ccam_dma_buf - global
memcpy(&frame_params,(unsignedlong*)&ccam_dma_buf[frameParamPointer>>2],32);/// ccam_dma_buf - global
// jpeg_len=frame_params.frame_length;
jpeg_len=frame_params.frame_length;
///// Copy timestamp (goes after the image data)
/// Copy timestamp (goes after the image data)
// timestamp_start=jpeg_start+((jpeg_len+CCAM_MMAP_META+3) & (~0x1f)) + 32 - CCAM_MMAP_META_SEC; //! magic shift - should index first byte of the time stamp
timestamp_start=jpeg_start+((jpeg_len+CCAM_MMAP_META+3)&(~0x1f))+32-CCAM_MMAP_META_SEC;//! magic shift - should index first byte of the time stamp
// if (timestamp_start >= buff_size) timestamp_start-=buff_size;