Hello Jing,
attached you find the file. Please extract it from zip.
A piece of code is shown here:
The upper part is copied from csi_rgb565.c, which reads the data from camera and transfers it to LCD.
The last line is referenced by the AN12110.
/* Wait to get the full frame buffer to show**** */
while (kStatus_Success != CAMERA_RECEIVER_GetFullBuffer(&cameraReceiver, &cameraReceivedFrameAddr))
{
}
/* Wait for the previous frame buffer is shown. */
while (s_newFrameShown == false)
{
}
g_dc.ops->setFrameBuffer(&g_dc, 0, (void *)cameraReceivedFrameAddr);
/***********************************************************/
JpegCompress(cameraReceivedFrameAddr);
Thanks!