[mpp_dec]: basic info change flow ready

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@377 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-10-13 16:15:35 +00:00
parent d9a1366054
commit df3995f9bf
5 changed files with 42 additions and 22 deletions

View File

@@ -141,10 +141,22 @@ int mpi_test()
MppFrame next = mpp_frame_get_next(dec_out);
// TODO: diaplay function called here
/*
* NOTE: check info_change is needed
* step 1 : check info change flag
* step 2 : if info change then request new buffer
* step 3 : when new buffer is ready set control to mpp
*/
if (mpp_frame_get_info_change(dec_out)) {
mpp_log("decode_get_frame get info changed found\n");
// if work in external buffer mode re-commit buffer here
mpi->control(ctx, MPP_CODEC_SET_INFO_CHANGE_READY, NULL);
} else
i++;
mpp_frame_deinit(&dec_out);
dec_out = next;
i++;
} while (dec_out);
}
}