Decoder Application Structure - Decoder Application Structure - 3.0 English - PG447

H.264/H.265/JPEG Video Codec Unit 2 (VCU2) Solutions LogiCORE IP Product Guide (PG447)

Document ID
PG447
Release Date
2026-03-06
Version
3.0 English

The following Figure 1 shows a simplified software structure. The decode thread creates the decoder and stream buffers for the compressed data. In a loop, stream buffers are filled and pushed to the decoder. When the end of stream is reached, the decoder flush is called. Then the decode thread waits for completion of the decode, after which the decoder is destroyed, and the input buffers are freed.

The display callback is called when a frame is decoded, or when decoding ends. When a frame is decoded, the frame buffer is output and pushed back into the decoder to be reused for a future decode.

Decode buffers are allocated and pushed into the decoder in the ResolutionFound callback. This is called when the decoder parses the headers containing this information.

Figure 1. Decoder Application Structure