Hi Allen,
In the pre-release sample, you can see the camera frame is sent to renderer via Fd:
// Render the frame into display
if (v4l2_buf->m.planes[0].bytesused)
ctx->renderer->render(buffer->planes[0].fd);
And you should replace it with the code in 09_camera_jpeg_capture
{
unsigned long size = JPEG_BUFFER_SIZE;
unsigned char *buffer = m_OutputBuffer;
m_JpegEncoder->encodeFromFd(fd, JCS_YCbCr, &buffer, size);
outputFile->write((char *)buffer, size);
delete outputFile;
}
In other words, move the jpeg encoding codes from 09_camera_jpeg_capture to the pre-release sample.