/*
## Cypress USB 3.0 Platform source file (cyfxuvcvidframe.c)
## ===========================
##
## Copyright Cypress Semiconductor Corporation, 2010-2018,
## All Rights Reserved
## UNPUBLISHED, LICENSED SOFTWARE.
##
## CONFIDENTIAL AND PROPRIETARY INFORMATION
## WHICH IS THE PROPERTY OF CYPRESS.
##
## Use of this file is governed
## by the license agreement included in the file
##
## <install>/license/license.txt
##
## where <install> is the Cypress software
## installation root directory path.
##
## ===========================
*/
#include "cyfxuvcinmem.h"
/* This file contains the MJPEG-1 video frames and Video frame related data. */
/* UVC Probe Control Setting */
const uint8_t glProbeCtrl[CY_FX_UVC_MAX_PROBE_SETTING] __attribute__ ((aligned (32))) = {
0x00,0x00, /* bmHint : No fixed parameters */
0x01, /* Use 1st Video format index */
0x01, /* Use 1st Video frame index */
0x2A,0x2C,0x0A,0x00, /* Desired frame interval in 100ns */
0x00,0x00, /* Key frame rate in key frame/video frame units */
0x00,0x00, /* PFrame rate in PFrame / key frame units */
0x00,0x00, /* Compression quality control */
0x00,0x00, /* Window size for average bit rate */
0x00,0x00, /* Internal video streaming i/f latency in ms */
0x00,0x90,0x01,0x00, /* Max video frame size in bytes (100KB) */
0x00,0x10,0x00,0x00, /* No. of bytes device can transmit in single payload */
0x00,0x60,0xE3,0x16, /* Device clock. */
0x00,0x00,0x00,0x00 /* Framing and format information. */
};
/* Video frame lengths */
const uint32_t glVidFrameLen[CY_FX_UVC_MAX_VID_FRAMES] = {
13711, 13417
};
/* MJPEG Video Frames */
const uint8_t glUVCVidFrames[] =
{
/* Video frame 1 */
0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10, 0x4a, 0x46,
0x49, 0x46, 0x00, 0x01, 0x01, 0x01, 0x00, 0x60,
0x00, 0x60, 0x00, 0x00, 0xff, 0xdb, 0x00, 0x43,
0x00, 0x08, 0x06, 0x06, 0x07, 0x06, 0x05, 0x08,
0x07, 0x07, 0x07, 0x09, 0x09, 0x08, 0x0a, 0x0c,
0x14, 0x0d, 0x0c, 0x0b, 0x0b, 0x0c, 0x19, 0x12,
0x13, 0x0f, 0x14, 0x1d, 0x1a, 0x1f, 0x1e, 0x1d,
0x1a, 0x1c, 0x1c, 0x20, 0x24, 0x2e, 0x27, 0x20,
0x22, 0x2c, 0x23, 0x1c, 0x1c, 0x28, 0x37, 0x29,
0x2c, 0x30, 0x31, 0x34, 0x34, 0x34, 0x1f, 0x27,
0x39, 0x3d, 0x38, 0x32, 0x3c, 0x2e, 0x33, 0x34,
0x32, 0xff, 0xdb, 0x00, 0x43, 0x01, 0x09, 0x09,
0x09, 0x0c, 0x0b, 0x0c, 0x18, 0x0d, 0x0d, 0x18,
0x32, 0x21, 0x1c, 0x21, 0x32, 0x32, 0x32, 0x32,
0x32, 0x32, 0x32, 0x32, 0x32, 0x32, 0x32, 0x32,
0x32, 0x32, 0x32, 0x32, 0x32, 0x32, 0x32, 0x32,
0x32, 0x32, 0x32, 0x32, 0x32, 0x32, 0x32, 0x32,
0x32, 0x32, 0x32, 0x32, 0x32, 0x32, 0x32, 0x32,
0x32, 0x32, 0x32, 0x32, 0x32, 0x32, 0x32, 0x32,
0x32, 0x32, 0x32, 0x32, 0x32, 0x32, 0xff, 0xc0,
0x00, 0x11, 0x08, 0x01, 0xe0, 0x02, 0x80, 0x03,
0x01, 0x22, 0x00, 0x02, 0x11, 0x01, 0x03, 0x11,
0x01, 0xff, 0xc4, 0x00, 0x1c, 0x00, 0x01, 0x00,
0x02, 0x03, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
0x04, 0x01, 0x03, 0x05, 0x06, 0x07, 0x08, 0xff,
0xc4, 0x00, 0x35, 0x10, 0x00, 0x02, 0x02, 0x01,
0x03, 0x03, 0x03, 0x03, 0x02, 0x05, 0x03, 0x04,
0x03, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x11,
0x03, 0x04, 0x12, 0x21, 0x05, 0x31, 0x41, 0x06,
0x13, 0x22, 0x32, 0x51, 0x61, 0x71, 0x91, 0x07,
0x14, 0x15, 0x23, 0x62, 0x42, 0x52, 0x81, 0x33,
0x34, 0x43, 0x53, 0x35, 0xa1, 0xe1, 0xff, 0xc4,
0x00, 0x1a, 0x01, 0x01, 0x00, 0x03, 0x01, 0x01,
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04,
0x05, 0x06, 0xff, 0xc4, 0x00, 0x22, 0x11, 0x01,
0x01, 0x01, 0x01, 0x01, 0x00, 0x03, 0x01, 0x00,
0x03, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00,
0x01, 0x02, 0x11, 0x03, 0x12, 0x21, 0x31, 0x04,
0x05, 0x13, 0x41, 0x22, 0x32, 0x61, 0xff, 0xda,
0x00, 0x0c, 0x03, 0x01, 0x00, 0x02, 0x11, 0x03,
0x11, 0x00, 0x3f, 0x00, 0xfb, 0xf8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x30, 0x64, 0x00, 0x00, 0x0c, 0x23, 0x24, 0x58,
0x4c, 0x09, 0x18, 0xb3, 0x0d, 0xf2, 0x66, 0xd0,
0x19, 0x04, 0x6c, 0x58, 0x12, 0x04, 0x6c, 0xc8,
0x19, 0x06, 0x1b, 0x31, 0x60, 0x48, 0x11, 0xb1,
0x60, 0x48, 0x22, 0x36, 0x65, 0x01, 0x90, 0x60,
0x01, 0x90, 0x60, 0xc5, 0x81, 0x20, 0x61, 0x19,
0x00, 0x0c, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
0x00, 0x00, 0x30, 0x48, 0x50, 0x20, 0x19, 0x83,
0x2c, 0xc1, 0x22, 0x2c, 0x47, 0xb1, 0x96, 0x61,
0x0f, 0xd0, 0x7d, 0xcc, 0x19, 0x7d, 0xcc, 0x0e,
0x11, 0x9b, 0x16, 0x2d, 0x18, 0x93, 0x44, 0x5f,
0xa3, 0x8c, 0xda, 0x43, 0xfe, 0x4c, 0x39, 0xc6,
0x2b, 0x93, 0x44, 0xb5, 0x58, 0xe3, 0xfe, 0xa2,
0xb7, 0x69, 0x99, 0x6f, 0xb6, 0x4b, 0x93, 0x9d,
0x93, 0xa9, 0x62, 0x87, 0xfa, 0x8a, 0xd3, 0xeb,
0x58, 0xe2, 0xfe, 0xa2, 0x3f, 0xdb, 0x22, 0xdf,
0xeb, 0xeb, 0xb0, 0xee, 0xc5, 0x3b, 0x38, 0x32,
0xeb, 0xf0, 0x5e, 0x44, 0x7a, 0xf6, 0x39, 0x79,
0x23, 0xfd, 0xb2, 0x9f, 0xeb, 0xe3, 0xbd, 0x4e,
0xcc, 0xf2, 0x71, 0xe1, 0xd6, 0x31, 0x35, 0xf5,
0x16, 0x70, 0xf5, 0x2c, 0x53, 0x7f, 0x57, 0xff,
0x00, 0x64, 0xcd, 0xa2, 0xe5, 0x7f, 0x90, 0xad,
0xf7, 0x2b, 0xad, 0x5e, 0x36, 0xfb, 0x9b, 0x56,
0x58, 0xcb, 0xe9, 0x76, 0x4f, 0xcf, 0xa8, 0xf8,
0xb6, 0x3e, 0x0c, 0x6e, 0x54, 0x13, 0xb4, 0x61,
0xa4, 0x4c, 0xa8, 0xe0, 0x9d, 0xb2, 0x44, 0x78,
0x4b, 0x83, 0x2b, 0xb1, 0x6e, 0x89, 0x02, 0x36,
0x64, 0x09, 0x03, 0x00, 0x0c, 0x80, 0x08, 0x00,
0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xec,
0x46, 0xc0, 0xc8, 0x06, 0x1f, 0x60, 0x17, 0xc9,
0x9b, 0x35, 0xdf, 0x24, 0xac, 0x81, 0x2b, 0x16,
0x46, 0xc5, 0x90, 0x32, 0xda, 0xba, 0x64, 0x6a,
0xbb, 0x0b, 0x4b, 0x99, 0x14, 0xb5, 0x5d, 0x4f,
0x06, 0x9a, 0x2f, 0x74, 0x95, 0xfd, 0xac, 0x8b,
0xae, 0x26, 0x4e, 0xae, 0xda, 0x7d, 0xcd, 0x39,
0x75, 0x38, 0xf1, 0x45, 0xb9, 0xc9, 0x24, 0x8f,
0x2b, 0xac, 0xf5, 0x2c, 0xa4, 0xe5, 0x1c, 0x5e,
0x7c, 0x9c, 0x8c, 0xda, 0xdd, 0x6e, 0xa6, 0xd3,
0x6f, 0x6b, 0x32, 0xbe, 0x8b, 0xcc, 0xbd, 0x76,
0x6f, 0x50, 0xe9, 0x31, 0xb6, 0x94, 0xd3, 0x6b,
0xf2, 0x53, 0xcb, 0xea, 0x48, 0x37, 0xf0, 0x3c,
0xd6, 0x1e, 0x9b, 0x2c, 0x9f, 0x29, 0x4d, 0xdf,
0xea, 0x5c, 0xc5, 0xd3, 0xe3, 0x07, 0xcb, 0xb2,
0x97, 0xd7, 0xab, 0xfc, 0x57, 0x35, 0x1d, 0x7b,
0x2e, 0x4f, 0xa1, 0x33, 0x9f, 0x93, 0x5b, 0xaa,
0x9f, 0xdc, 0xbb