TI's CC3100 websocket camera demo with Arducam mini ov5642 and freertos. Should work with other M3's. Work in progress test demo.
Camera_app
Functions | |
unsigned short | StartCamera (char **WriteBuffer) |
Start Camera 1. | |
void | InitCameraComponents (int width, int height) |
InitCameraComponents PinMux, Camera Initialization and Configuration. | |
uint16_t | CaptureImage (char **WriteBuffer) |
CaptureImage Configures DMA and starts the Capture. | |
static int | JfifApp0Marker (char *pbuf) |
JfifApp0Marker. | |
static int | FrameHeaderMarker (char *pbuf, int width, int height, int format) |
FrameHeaderMarker. | |
static int | ScanHeaderMarker (char *pbuf, int format) |
ScanHeaderMarker. | |
static int | DefineQuantizationTableMarker (unsigned char *pbuf, int qscale, int format) |
DefineQuantizationTableMarker Calculate and write the quantisation tables qscale is the customised scaling factor - see MT9D131 developer guide page 78. | |
static int | DefineHuffmanTableMarkerDC (char *pbuf, unsigned int *htable, int class_id) |
DefineHuffmanTableMarkerDC. | |
static int | DefineHuffmanTableMarkerAC (char *pbuf, unsigned int *htable, int class_id) |
DefineHuffmanTableMarkerAC 1. | |
static int | DefineRestartIntervalMarker (char *pbuf, int ri) |
DefineRestartIntervalMarker. | |
static int | CreateJpegHeader (char *header, int width, int height, int format, int restart_int, int qscale) |
CreateJpegHeader Create JPEG Header in JFIF format. |
Function Documentation
uint16_t CaptureImage | ( | char ** | WriteBuffer ) |
CaptureImage Configures DMA and starts the Capture.
Post Capture writes to SFLASH
- Parameters:
-
None
- Returns:
- None
Definition at line 313 of file camera_app.cpp.
static int CreateJpegHeader | ( | char * | header, |
int | width, | ||
int | height, | ||
int | format, | ||
int | restart_int, | ||
int | qscale | ||
) | [static] |
CreateJpegHeader Create JPEG Header in JFIF format.
header - pointer to JPEG header buffer width - image width height - image height format - color format (0 = YCbCr422, 1 = YCbCr420, 2 = monochrome) restart_int - restart marker interval qscale - quantization table scaling factor
- Returns:
- length of JPEG header (bytes)
Definition at line 796 of file camera_app.cpp.
static int DefineHuffmanTableMarkerAC | ( | char * | pbuf, |
unsigned int * | htable, | ||
int | class_id | ||
) | [static] |
DefineHuffmanTableMarkerAC 1.
Establishes connection w/ AP// 2. Initializes the camera sub-components//! GPIO Enable & Configuration 3. Listens and processes the image capture requests from user-applications
pointer to Marker buffer Huffman table Class Identifier
- Returns:
- Length of the Marker
Definition at line 687 of file camera_app.cpp.
static int DefineHuffmanTableMarkerDC | ( | char * | pbuf, |
unsigned int * | htable, | ||
int | class_id | ||
) | [static] |
DefineHuffmanTableMarkerDC.
pointer to Marker buffer Huffman table Class Identifier
- Returns:
- Length of the marker
Definition at line 628 of file camera_app.cpp.
static int DefineQuantizationTableMarker | ( | unsigned char * | pbuf, |
int | qscale, | ||
int | format | ||
) | [static] |
DefineQuantizationTableMarker Calculate and write the quantisation tables qscale is the customised scaling factor - see MT9D131 developer guide page 78.
pointer to the output buffer Quantization Scale Format
- Returns:
- Length of the Marker
Definition at line 561 of file camera_app.cpp.
static int DefineRestartIntervalMarker | ( | char * | pbuf, |
int | ri | ||
) | [static] |
DefineRestartIntervalMarker.
pointer to Marker buffer return interval
- Returns:
- Length
Definition at line 770 of file camera_app.cpp.
static int FrameHeaderMarker | ( | char * | pbuf, |
int | width, | ||
int | height, | ||
int | format | ||
) | [static] |
FrameHeaderMarker.
pointer to the output buffer width height format
- Returns:
- Length of the header marker
Definition at line 445 of file camera_app.cpp.
void InitCameraComponents | ( | int | width, |
int | height | ||
) |
InitCameraComponents PinMux, Camera Initialization and Configuration.
- Parameters:
-
[in] width - X-Axis [in] width - Y-Axis
- Returns:
- None
Definition at line 268 of file camera_app.cpp.
static int JfifApp0Marker | ( | char * | pbuf ) | [static] |
JfifApp0Marker.
- Parameters:
-
Pointer to the output buffer
- Returns:
- Length of the Marker
Definition at line 409 of file camera_app.cpp.
static int ScanHeaderMarker | ( | char * | pbuf, |
int | format | ||
) | [static] |
ScanHeaderMarker.
pointer to output buffer Format
- Returns:
- Length
Definition at line 511 of file camera_app.cpp.
unsigned short StartCamera | ( | char ** | WriteBuffer ) |
Start Camera 1.
Establishes connection w/ AP// 2. Initializes the camera sub-components//! GPIO Enable & Configuration 3. Listens and processes the image capture requests from user-applications
- Parameters:
-
[out] WriteBuffer - Pointer to the Frame Buffer
- Returns:
- None
Definition at line 246 of file camera_app.cpp.
Generated on Wed Jul 13 2022 15:58:46 by 1.7.2