[buf_slot]: modify buffer slot management

1. add slot runtime log switch
2. add slot_assert for log and history dump
3. add extra MppFrame init/deinit so that the Mpp::get_frame will not share same MppFrame with buffer slot

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@256 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-09-09 20:34:03 +00:00
parent 0c5665534b
commit fa62b01791
3 changed files with 153 additions and 74 deletions

View File

@@ -111,6 +111,7 @@ int main()
// interface with input and output separated
for (i = 0; i < MPI_DEC_LOOP_COUNT; i++) {
mpp_packet_init(&dec_in, buf, size);
mpp_packet_set_pts(dec_in, i);
// IMPORTANT: eos flag will flush all decoded frame
if (i == MPI_DEC_LOOP_COUNT - 1)