How to calculate buffer region? #363
-
Hi roleoroleo, I'm working on compiling a custom firmware for Yi-Iot camera(Victure - SC220) based on realtek MIPS architecture. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Where do you get these parameters in the MStar firmware? |
Beta Was this translation helpful? Give feedback.
-
BUF_SIZE is the size of the file. Then you have to detect a frame and check the header.
FRAME_HEADER_SIZE is the size of this header. Let me explain with an example: 08 00 00 00 - The first 4 bytes are the length of the frame. |
Beta Was this translation helpful? Give feedback.
BUF_SIZE is the size of the file.
Then you have to detect a frame and check the header.
FRAME_HEADER_SIZE is the size of this header.
LOWRES_BYTE is the value of the byte for low res frames (normally 8).
HIGHRES_BYTE is the value of the byte for high res frames (normally 4).
DATA_OFFSET is the offset of the resolution byte inside the header from the beginni…