[mpp]: add frame signal chain to mpp parser/hal thread and get_frame interface

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@254 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-09-09 16:04:33 +00:00
parent 7cc518a721
commit 3f1100ca08
4 changed files with 18 additions and 1 deletions

View File

@@ -82,6 +82,10 @@ int main()
for (i = 0; i < MPI_DEC_LOOP_COUNT; i++) {
mpp_packet_init(&dec_in, buf, size);
// IMPORTANT: eos flag will flush all decoded frame
if (i == MPI_DEC_LOOP_COUNT - 1)
mpp_packet_set_eos(dec_in);
// TODO: read stream data to buf
ret = mpi->decode(ctx, dec_in, &dec_out);
@@ -108,6 +112,10 @@ int main()
for (i = 0; i < MPI_DEC_LOOP_COUNT; i++) {
mpp_packet_init(&dec_in, buf, size);
// IMPORTANT: eos flag will flush all decoded frame
if (i == MPI_DEC_LOOP_COUNT - 1)
mpp_packet_set_eos(dec_in);
// TODO: read stream data to buf
ret = mpi->decode_put_packet(ctx, dec_in);