Hi!
While encoding h.264 video in slice mode, how will I now, when a single slice is ready (for example to further processing)? As I understand vpu_IsBusy() and vpu_WaitForInt() are useful only when I want to encode frame by frame (not slice by slice).
Thanks!
Solved! Go to Solution.
Hi,
Only "frame by frame" output is supported by vpu, "slice by slice" output not supported,
Slice mode means user can config vpu to encode multi-slice per frame, not means "slice by slice" output.
Regard
Eagle.
Hi,
Only "frame by frame" output is supported by vpu, "slice by slice" output not supported,
Slice mode means user can config vpu to encode multi-slice per frame, not means "slice by slice" output.
Regard
Eagle.
Hi Peng Zhou,
I have another question in this topic.
Encoder can send the encoded bits after each slice. Can decoder start decoding after receiving one single slice? Or maybe it has to wait for whole complete frame?
Thanks!
Hi, Jotes
For iMX6 vpu decoder, there are two mode, rollback mode(vpu wait the whole frame ready), and interrupt mode(not required the whole frame ready)
in rollback mode, user need to feed enough data to vpu, otherwise, vpu will return and report data isn't enough
while in interrupt mode, vpu won't reuturn when the data isn't enough, and will enter busy state in which it will wait the following data.
but for the output, only interrupt in frame level is sendout by vpu decoder for both mode,
Regard
Eagle
So, to sum up:
Is that correct?
Hi, Jotes
Your understanding are basically right.
For 1, the output from encoder still is frame level.
Regard
Eagle.