|
AM62Px MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
169 #include <drivers/fvid2/v0/fvid2_trace.h>
170 #include <drivers/fvid2/v0/fvid2_utils.h>
191 #define FVID2_VERSION_STRING "FVID_02_02_00_00"
194 #define FVID2_VERSION_NUMBER (0x02020000U)
319 #define FVID2_STREAM_ID_ANY (0xFFFFFFFFU)
327 #define FVID2_CTRL_BASE (0x00000000U)
329 #define FVID2_USER_BASE (0x10000000U)
346 #define FVID2_SET_FORMAT ((uint32_t) FVID2_CTRL_BASE + 3U)
356 #define FVID2_GET_FORMAT ((uint32_t) FVID2_CTRL_BASE + 4U)
366 #define FVID2_START ((uint32_t) FVID2_CTRL_BASE + 5U)
376 #define FVID2_STOP ((uint32_t) FVID2_CTRL_BASE + 6U)
390 #define FVID2_REGISTER_TIMESTAMP_FXN ((uint32_t) FVID2_CTRL_BASE + 7U)
398 #define FVID2_DSS_DRV_BASE (0x00001000U)
400 #define FVID2_CAL_DRV_BASE (0x00002000U)
402 #define FVID2_CSIRX_DRV_BASE (0x00003000U)
404 #define FVID2_CSITX_DRV_BASE (0x00004000U)
406 #define FVID2_VHWA_DRV_BASE (0x00005000U)
412 #define FVID2_DSS_DRV_IOCTL_BASE (FVID2_USER_BASE + FVID2_DSS_DRV_BASE)
414 #define FVID2_CAL_DRV_IOCTL_BASE (FVID2_USER_BASE + FVID2_CAL_DRV_BASE)
416 #define FVID2_CSIRX_DRV_IOCTL_BASE (FVID2_USER_BASE + FVID2_CSIRX_DRV_BASE)
418 #define FVID2_CSITX_DRV_IOCTL_BASE (FVID2_USER_BASE + FVID2_CSITX_DRV_BASE)
420 #define FVID2_VHWA_DRV_IOCTL_BASE (FVID2_USER_BASE + FVID2_VHWA_DRV_BASE)
584 void *createStatusArgs,
629 void *cmdStatusArgs);
851 if (
NULL != initPrms)
int32_t Fvid2_deInit(void *args)
FVID2 deinit function.
int32_t(* Fvid2_ErrCbFxn)(Fvid2_Handle handle, void *appData, void *errList)
FVID2 error callback function prototype.
Definition: fvid2_api.h:273
#define FVID2_SET_FORMAT
Control command used by Fvid2_setFormat()
Definition: fvid2_api.h:346
static void Fvid2InitPrms_init(Fvid2_InitPrms *initPrms)
Fvid2_InitPrms structure init function.
Definition: fvid2_api.h:849
int32_t Fvid2_getProcessedRequest(Fvid2_Handle handle, Fvid2_FrameList *inFrameList, Fvid2_FrameList *outFrameList, uint32_t timeout)
An application calls Fvid2_getProcessedRequest to get the processed request back from the driver and ...
int32_t Fvid2_control(Fvid2_Handle handle, uint32_t cmd, void *cmdArgs, void *cmdStatusArgs)
Send control commands (IOCTLs) to the driver.
int32_t Fvid2_processRequest(Fvid2_Handle handle, Fvid2_FrameList *inFrameList, Fvid2_FrameList *outFrameList, uint32_t timeout)
An application calls Fvid2_processRequest to submit a video buffer to the video device driver.
Structure used to configure time stamping of frames.
Definition: fvid2_api.h:471
Fvid2_CbFxn cbFxn
Definition: fvid2_api.h:437
Fvid2_Handle Fvid2_create(uint32_t drvId, uint32_t instanceId, void *createArgs, void *createStatusArgs, const Fvid2_CbParams *cbParams)
Creates the driver identified by the driver ID.
#define NULL
Define NULL if not defined.
Definition: csl_types.h:100
void * appData
Definition: fvid2_api.h:462
static void Fvid2CbParams_init(Fvid2_CbParams *cbPrms)
Fvid2_CbParams structure init function.
Definition: fvid2_api.h:859
FVID2 callback parameters that are setup during Fvid2_create().
Definition: fvid2_api.h:436
int32_t Fvid2_dequeue(Fvid2_Handle handle, Fvid2_FrameList *frameList, uint32_t streamId, uint32_t timeout)
An application calls Fvid2_dequeue to request the video device driver to give ownership of a video bu...
uint32_t reserved
Definition: fvid2_api.h:486
uint64_t(* Fvid2_TimeStampFxn)(void *args)
Function prototype, to determine the time stamp.
Definition: fvid2_api.h:302
void * Fvid2_Handle
FVID2 Driver handle.
Definition: fvid2_api.h:197
int32_t Fvid2_delete(Fvid2_Handle handle, void *deleteArgs)
Deletes a previously created FVID2 driver handle.
static int32_t Fvid2_setFormat(Fvid2_Handle handle, Fvid2_Format *fmt)
An application calls Fvid2_setFormat to request the video device driver to set the format for a given...
Definition: fvid2_api.h:839
FVID2 frame buffer list used to exchange multiple FVID2 frames in a single driver call.
Definition: fvid2_dataTypes.h:1279
static int32_t Fvid2_stop(Fvid2_Handle handle, void *cmdArgs)
An application calls Fvid2_stop to request the video device driver to stop the video display or captu...
Definition: fvid2_api.h:834
static int32_t Fvid2_start(Fvid2_Handle handle, void *cmdArgs)
An application calls Fvid2_start to request the video device driver to start the video display or cap...
Definition: fvid2_api.h:829
void(* Fvid2_PrintFxn)(const char *format,...)
FVID2 info/debug print function prototype.
Definition: fvid2_api.h:311
int32_t(* Fvid2_CbFxn)(Fvid2_Handle handle, void *appData)
FVID2 driver callback function prototype.
Definition: fvid2_api.h:239
uint32_t Fvid2_getVersionNumber(void)
Same as Fvid2_getVersionString() except it returns the version in uint32_t form.
FVID2 frame buffer structure.
Definition: fvid2_dataTypes.h:1176
Fvid2_ErrCbFxn errCbFxn
Definition: fvid2_api.h:443
void * errList
Definition: fvid2_api.h:449
int32_t(* Fvid2_SubFrameCbFxn)(Fvid2_Handle handle, Fvid2_Frame *subFrame)
FVID2 callback that is called by subframe mode Capture driver.
Definition: fvid2_api.h:292
int32_t Fvid2_queue(Fvid2_Handle handle, Fvid2_FrameList *frameList, uint32_t streamId)
An application calls Fvid2_queue to submit a video buffer to the video device driver.
Fvid2_PrintFxn printFxn
Definition: fvid2_api.h:495
Fvid2_TimeStampFxn timeStampFxn
Definition: fvid2_api.h:472
FVID2 initialization parameters.
Definition: fvid2_api.h:494
#define FVID2_START
Control command used by Fvid2_start()
Definition: fvid2_api.h:366
static int32_t Fvid2_getFormat(Fvid2_Handle handle, Fvid2_Format *fmt)
An application calls Fvid2_getFormat to request the video device driver to get the current format for...
Definition: fvid2_api.h:844
#define FVID2_GET_FORMAT
Control command used by Fvid2_getFormat()
Definition: fvid2_api.h:356
const char * Fvid2_getVersionString(void)
Get the version string for FVID2 interface.
#define FVID2_STOP
Control command used by Fvid2_stop()
Definition: fvid2_api.h:376
int32_t Fvid2_init(const Fvid2_InitPrms *initPrms)
FVID2 init function.