PDK API Guide for J721E
|
Interface file for MSC M2M FVID2 driver
Files | |
file | vhwa_m2mMsc.h |
Defines the structures / control operations that could be used to configure / control MSC M2M driver. | |
Data Structures | |
struct | Vhwa_M2mMscParams |
Connfiguration parameters of MSC. More... | |
struct | Vhwa_M2mMscCreatePrms |
Parameters required to create a new handle. More... | |
struct | Vhwa_M2mMscSl2AllocPrms |
Init Parameters required to allocate MSC drivere. More... | |
struct | Vhwa_M2mMscInitParams |
Init Parameters for MSC M2M Driver. More... | |
struct | Vhwa_M2mMscPerf |
Structure for storing the performance numbers. More... | |
struct | Vhwa_M2mMscPsaSign |
Structure for storing PSA signatures. More... | |
Functions | |
static void | Vhwa_m2mMscInitParamsInit (Vhwa_M2mMscInitParams *mscInitPrms) |
Vhwa_M2mMscInitParams structure init function. More... | |
static void | Vhwa_m2mMscParamsInit (Vhwa_M2mMscParams *mscCfg) |
Function to initialize the MSC configuration parameters to default. More... | |
static void | Vhwa_M2mMscCreatePrmsInit (Vhwa_M2mMscCreatePrms *createArgs) |
Function to initialize the MSC create params to default. More... | |
int32_t | Vhwa_m2mMscInit (const Vhwa_M2mMscInitParams *initPrms) |
MSC initialization function. This function initializes the MSC hardware and drivers. This function should be called before calling any driver APIs and only once. More... | |
int32_t | Vhwa_m2mMscDeInit (void) |
MSC de-initialization function. This function un-initializes the MSC hardware and drivers. This function should be called during system shutdown if Vhwa_m2mMscDeInit() was called by the application. More... | |
int32_t | Vhwa_m2mMscAllocSl2 (const Vhwa_M2mMscSl2AllocPrms *sl2allocPrms) |
Function to allocate Sl2 memory for input and output buffers. More... | |
int32_t | Vhwa_m2mMscFreeSl2 (void) |
Function to free allocated SL2. More... | |
static void | Vhwa_M2mMscSl2AllocPrmsInit (Vhwa_M2mMscSl2AllocPrms *sl2Prms) |
Macros | |
#define | VHWA_M2M_MSC_MIN_RD_BUFFER_DEPTH (6U) |
Minimum supported depth value for read buffer in VHWA memory. More... | |
#define | VHWA_M2M_MSC_MIN_WR_BUFFER_DEPTH (2U) |
Minimum supported depth value for write buffer in VHWA memory. More... | |
#define | VHWA_M2M_MSC_MAX_COMP (2u) |
Maximum possible MSC iteration for a simgle request (Luma + Chroma) More... | |
#define | VHWA_M2M_MSC_MAX_INPUT_BUFF (VHWA_M2M_MSC_MAX_INST) |
Maximum Number of Input buffer. More... | |
#define | VHWA_M2M_MSC_MAX_HANDLES (16u) |
Max Number of handles supported by MSC M2M Driver. More... | |
MSC IOCTL macros | |
#define | VHWA_M2M_IOCTL_MSC_SET_COEFF (VHWA_IOCTL_MSC_IOCTL_BASE) |
IOCTL for Setting filter coefficients. More... | |
#define | VHWA_M2M_IOCTL_MSC_SET_PARAMS (VHWA_M2M_IOCTL_MSC_SET_COEFF + 1U) |
IOCTL for Setting MSC configuration. More... | |
#define | VHWA_M2M_IOCTL_MSC_SET_BW_LIMITER (VHWA_M2M_IOCTL_MSC_SET_PARAMS + 1U) |
IOCTL to set bandwidth limiter. This IOCTL take pointer to structure Vhwa_HtsLimiter as input. More... | |
#define | VHWA_M2M_IOCTL_MSC_GET_PERF (VHWA_M2M_IOCTL_MSC_SET_BW_LIMITER + 1U) |
IOCTL to get the IP performance. More... | |
#define | VHWA_M2M_IOCTL_MSC_GET_PSA_SIGN (VHWA_M2M_IOCTL_MSC_GET_PERF + 1U) |
IOCTL to get PSA signature for all enabeld outputs. More... | |
#define | VHWA_M2M_IOCTL_MSC_REGISTER_ERR_CB (VHWA_M2M_IOCTL_MSC_GET_PSA_SIGN + 1U) |
IOCTL for enabling error events and registering callbacks for the same. More... | |
#define | VHWA_M2M_IOCTL_MSC_SYNC_START (VHWA_M2M_IOCTL_MSC_REGISTER_ERR_CB + 1U) |
IOCTL to sync start each module This IOCTL doesn't configure any register and only enable pipeline to start processing. More... | |
#define VHWA_M2M_MSC_MIN_RD_BUFFER_DEPTH (6U) |
Minimum supported depth value for read buffer in VHWA memory.
#define VHWA_M2M_MSC_MIN_WR_BUFFER_DEPTH (2U) |
Minimum supported depth value for write buffer in VHWA memory.
#define VHWA_M2M_MSC_MAX_COMP (2u) |
Maximum possible MSC iteration for a simgle request (Luma + Chroma)
#define VHWA_M2M_MSC_MAX_INPUT_BUFF (VHWA_M2M_MSC_MAX_INST) |
Maximum Number of Input buffer.
#define VHWA_M2M_MSC_MAX_HANDLES (16u) |
Max Number of handles supported by MSC M2M Driver.
#define VHWA_M2M_IOCTL_MSC_SET_COEFF (VHWA_IOCTL_MSC_IOCTL_BASE) |
IOCTL for Setting filter coefficients.
#define VHWA_M2M_IOCTL_MSC_SET_PARAMS (VHWA_M2M_IOCTL_MSC_SET_COEFF + 1U) |
IOCTL for Setting MSC configuration.
#define VHWA_M2M_IOCTL_MSC_SET_BW_LIMITER (VHWA_M2M_IOCTL_MSC_SET_PARAMS + 1U) |
IOCTL to set bandwidth limiter. This IOCTL take pointer to structure Vhwa_HtsLimiter as input.
#define VHWA_M2M_IOCTL_MSC_GET_PERF (VHWA_M2M_IOCTL_MSC_SET_BW_LIMITER + 1U) |
IOCTL to get the IP performance.
#define VHWA_M2M_IOCTL_MSC_GET_PSA_SIGN (VHWA_M2M_IOCTL_MSC_GET_PERF + 1U) |
IOCTL to get PSA signature for all enabeld outputs.
#define VHWA_M2M_IOCTL_MSC_REGISTER_ERR_CB (VHWA_M2M_IOCTL_MSC_GET_PSA_SIGN + 1U) |
IOCTL for enabling error events and registering callbacks for the same.
#define VHWA_M2M_IOCTL_MSC_SYNC_START (VHWA_M2M_IOCTL_MSC_REGISTER_ERR_CB + 1U) |
IOCTL to sync start each module This IOCTL doesn't configure any register and only enable pipeline to start processing.
|
inlinestatic |
Vhwa_M2mMscInitParams structure init function.
mscInitPrms | Pointer to Vhwa_M2mMscInitParams structure. |
|
inlinestatic |
Function to initialize the MSC configuration parameters to default.
mscCfg | Pointer to a Vhwa_M2mMscParams containing MSC configuration |
|
inlinestatic |
Function to initialize the MSC create params to default.
createArgs | Pointer to a Vhwa_M2mMscCreatePrms, MSC Create Args |
int32_t Vhwa_m2mMscInit | ( | const Vhwa_M2mMscInitParams * | initPrms | ) |
MSC initialization function. This function initializes the MSC hardware and drivers. This function should be called before calling any driver APIs and only once.
initPrms | Pointer to a Vhwa_M2mMscInitParams structure containing the MSC driver initialization parameters |
int32_t Vhwa_m2mMscDeInit | ( | void | ) |
MSC de-initialization function. This function un-initializes the MSC hardware and drivers. This function should be called during system shutdown if Vhwa_m2mMscDeInit() was called by the application.
int32_t Vhwa_m2mMscAllocSl2 | ( | const Vhwa_M2mMscSl2AllocPrms * | sl2allocPrms | ) |
Function to allocate Sl2 memory for input and output buffers.
sl2allocPrms | Pointer to a Vhwa_M2mMscSl2AllocPrms structure containing the SL2 allocation parameters |
int32_t Vhwa_m2mMscFreeSl2 | ( | void | ) |
Function to free allocated SL2.
|
inlinestatic |