mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +08:00
[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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user