mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +08:00
[HAL_H264E_RKV]: complete buffers allocation
1. add HalEncTask.flags.err to decribe errors 2. support alloc error treatment 3. support frame rate configuration 4. user tool to format file mpi_enc_test.c 5. allocate buffer according to color space Change-Id: I17a89039504390bf1f2ff664a0aa4075b04d33ee Signed-off-by: Lin Kesheng <lks@rock-chips.com>
This commit is contained in:
@@ -83,8 +83,8 @@ static MPP_RET fill_yuv_image(RK_U8 *buf, MppEncConfig *mpp_cfg, RK_U32 frame_co
|
||||
p = buf_c;
|
||||
for (y = 0; y < height / 2; y++, p += hor_stride) {
|
||||
for (x = 0; x < width / 2; x++) {
|
||||
p[x*2+0] = 128 + y + frame_count * 2;
|
||||
p[x*2+1] = 64 + x + frame_count * 5;
|
||||
p[x * 2 + 0] = 128 + y + frame_count * 2;
|
||||
p[x * 2 + 1] = 64 + x + frame_count * 5;
|
||||
}
|
||||
}
|
||||
} break;
|
||||
|
Reference in New Issue
Block a user