Video Memory

The following code block shows the data structure for the video memory structure.
typedef union _ST_VDO_MEM {
    STF_U8 u8BufIdx;
    STF_INT nDmaBufFd;
    STF_U32 u32Length;
    STF_VOID *pvBuffer;
    STF_U32 u32BytesUsed;
    struct timeval stTimeStamp;
    STF_BOOL8 bIsScDumpForAe;
    CI_MEM_PARAM *pstMem1;
    CI_MEM_PARAM *pstMem2;
    sCell_T stCell;
} ST_VDO_MEM, *PST_VDO_MEM;
The following table describes the fields in the above code block.
Table 1. Video Memory Field Description
Field Description
u8BufIdx Buffer index
nDmaBufFd DMA buffer file descriptor
u32Length DMA buffer size
pvBuffer Point to user space buffer
u32BytesUsed Indicate how many bytes be used to store image data
stTimeStamp Store the timestamp information
bIsScDumpForAe Indicate that this buffer is ready for AE or AWB
pstMem1 Point to user space buffer segment 1
pstMem2 Point to user space buffer segment 2
stCell Link list data structure