I have a question about video encoding using slice mode. In my application, I want to split an image into 4 slices.
I have the following questions:
How can I know how many macroblocks exist in a single frame? Since I want to split a frame into 4 slices, if I use the V4L2_ENC_SLICE_LENGTH_TYPE_MBLK type, I need to set a slice length equals to the total number of macroblocks divided by 4. So how can I know the total amount of macroblock?
I’m wondering how this slice-mode works. If I split an image into 4 slices, will the encoder_capture_plane_dp_callback get called 4 times per frame, or it will still be called one time but have 4 NAL unit inside the encoded frame buffer.