[mpp_frame]: add interface to get next frame for multiple output case

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@154 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-08-24 10:07:34 +00:00
parent 3850b79cdc
commit bf4da20ade
4 changed files with 38 additions and 7 deletions

View File

@@ -93,10 +93,15 @@ int main()
}
if (dec_out) {
// TODO: diaplay function called here
// interface may output multiple frame at one time
do {
MppFrame next = mpp_frame_get_next(dec_out);
mpp_frame_deinit(dec_out);
dec_out = NULL;
// TODO: diaplay function called here
mpp_frame_deinit(dec_out);
dec_out = next;
} while (dec_out);
}
mpp_packet_deinit(dec_in);
@@ -125,8 +130,15 @@ int main()
}
if (dec_out) {
mpp_frame_deinit(dec_out);
dec_out = NULL;
// interface may output multiple frame at one time
do {
MppFrame next = mpp_frame_get_next(dec_out);
// TODO: diaplay function called here
mpp_frame_deinit(dec_out);
dec_out = next;
} while (dec_out);
}
}