 |
J722S MCU+ SDK
09.02.00
|
|
Go to the documentation of this file.
172 #include <drivers/fvid2/v0/fvid2_trace.h>
173 #include <drivers/fvid2/v0/fvid2_utils.h>
194 #define FVID2_VERSION_STRING "FVID_02_02_00_00"
197 #define FVID2_VERSION_NUMBER (0x02020000U)
322 #define FVID2_STREAM_ID_ANY (0xFFFFFFFFU)
330 #define FVID2_CTRL_BASE (0x00000000U)
332 #define FVID2_USER_BASE (0x10000000U)
349 #define FVID2_SET_FORMAT ((uint32_t) FVID2_CTRL_BASE + 3U)
359 #define FVID2_GET_FORMAT ((uint32_t) FVID2_CTRL_BASE + 4U)
369 #define FVID2_START ((uint32_t) FVID2_CTRL_BASE + 5U)
379 #define FVID2_STOP ((uint32_t) FVID2_CTRL_BASE + 6U)
393 #define FVID2_REGISTER_TIMESTAMP_FXN ((uint32_t) FVID2_CTRL_BASE + 7U)
401 #define FVID2_DSS_DRV_BASE (0x00001000U)
403 #define FVID2_CAL_DRV_BASE (0x00002000U)
405 #define FVID2_CSIRX_DRV_BASE (0x00003000U)
407 #define FVID2_CSITX_DRV_BASE (0x00004000U)
409 #define FVID2_VHWA_DRV_BASE (0x00005000U)
415 #define FVID2_DSS_DRV_IOCTL_BASE (FVID2_USER_BASE + FVID2_DSS_DRV_BASE)
417 #define FVID2_CAL_DRV_IOCTL_BASE (FVID2_USER_BASE + FVID2_CAL_DRV_BASE)
419 #define FVID2_CSIRX_DRV_IOCTL_BASE (FVID2_USER_BASE + FVID2_CSIRX_DRV_BASE)
421 #define FVID2_CSITX_DRV_IOCTL_BASE (FVID2_USER_BASE + FVID2_CSITX_DRV_BASE)
423 #define FVID2_VHWA_DRV_IOCTL_BASE (FVID2_USER_BASE + FVID2_VHWA_DRV_BASE)
587 void *createStatusArgs,
632 void *cmdStatusArgs);
854 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:276
#define FVID2_SET_FORMAT
Control command used by Fvid2_setFormat()
Definition: fvid2_api.h:349
static void Fvid2InitPrms_init(Fvid2_InitPrms *initPrms)
Fvid2_InitPrms structure init function.
Definition: fvid2_api.h:852
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:474
Fvid2_CbFxn cbFxn
Definition: fvid2_api.h:440
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:465
static void Fvid2CbParams_init(Fvid2_CbParams *cbPrms)
Fvid2_CbParams structure init function.
Definition: fvid2_api.h:862
FVID2 callback parameters that are setup during Fvid2_create().
Definition: fvid2_api.h:439
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:489
uint64_t(* Fvid2_TimeStampFxn)(void *args)
Function prototype, to determine the time stamp.
Definition: fvid2_api.h:305
void * Fvid2_Handle
FVID2 Driver handle.
Definition: fvid2_api.h:200
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:842
FVID2 frame buffer list used to exchange multiple FVID2 frames in a single driver call.
Definition: fvid2_dataTypes.h:1275
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:837
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:832
void(* Fvid2_PrintFxn)(const char *format,...)
FVID2 info/debug print function prototype.
Definition: fvid2_api.h:314
int32_t(* Fvid2_CbFxn)(Fvid2_Handle handle, void *appData)
FVID2 driver callback function prototype.
Definition: fvid2_api.h:242
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:1178
Fvid2_ErrCbFxn errCbFxn
Definition: fvid2_api.h:446
void * errList
Definition: fvid2_api.h:452
int32_t(* Fvid2_SubFrameCbFxn)(Fvid2_Handle handle, Fvid2_Frame *subFrame)
FVID2 callback that is called by subframe mode Capture driver.
Definition: fvid2_api.h:295
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:498
Fvid2_TimeStampFxn timeStampFxn
Definition: fvid2_api.h:475
FVID2 initialization parameters.
Definition: fvid2_api.h:497
#define FVID2_START
Control command used by Fvid2_start()
Definition: fvid2_api.h:369
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:847
#define FVID2_GET_FORMAT
Control command used by Fvid2_getFormat()
Definition: fvid2_api.h:359
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:379
int32_t Fvid2_init(const Fvid2_InitPrms *initPrms)
FVID2 init function.