This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM816 EZSDK 5.02 V4L mmap example Buffer allocation

Hi Guru's

When you use insmod like example below I ask for 4x1MB buffers

/etc/init.d/matrix-gui-e stop
echo 0 > /sys/devices/platform/vpss/graphics0/enabled
echo 0 > /sys/devices/platform/vpss/graphics1/enabled
echo 0 > /sys/devices/platform/vpss/graphics2/enabled
cd /lib/modules/2.6.37/kernel/drivers/media/video/ti81xx
insmod ti81xxvo.ko video1_numbuffers=4 video1_bufsize=4194304
echo 1 > /sys/devices/platform/vpss/video0/enabled
cd ~/dm816x-evm/vid

WHY when you use call ioctl with REQBUFS with frame size 1080x1920x2 = 4147200  does it return a buff size 1080x1920x2 + 2048 Bytes to the size  

    reqbuf.type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
    reqbuf.memory = V4L2_MEMORY_MMAP;
    if(ioctl(displayFd , VIDIOC_REQBUFS, &reqbuf) < 0) {

this returns 1080x1920x2 + 2048  ????