Sample Usage
3-6
As shown in the table, the first frame input ID (1) is returned as a free buffer ID at the end of the
third process call that is after accumulating buffers for two B frames. For the first two process calls,
free buffer IDs are returned as zero. This initial delay is equal to the number of B frames.
Since the 4
th
frame is a P frame, it is returned immediately at the end of the process call. Then,
input IDs, 2 and 3 are returned as free buffers while frames 5 and 6 are being processed. Hence, if
there are two B frames between P frames, the input images for the B frames are stored and the P
frame is encoded first, and then the two B frames are encoded. This results in two frame period
initial delay.