oa::VideoEncoder
Stateful hardware encoder session for H.264 High or H.265 Main. One encoder owns a private Vulkan Video encode session, per-slot NV12 input pictures, and the RGBA→NV12 conversion on the selected Engine’s queues. Frames enter as packed RGBA8 bytes sized exactly visible_extent().width * visible_extent().height * 4; conversion, GOP cadence, rate control, DPB management, and Annex-B framing stay private. Every emitted EncodedVideoPacket is one access unit; keyframe packets carry the session’s cached SPS/PPS (and VPS for H.265) parameter sets so each random-access point is self-describing. encode waits for the submitted frame and returns its packet. flush waits for every outstanding encode job and drains the remainder — required before close when asynchronous submissions left frames in flight.
Declaration
pub struct VideoEncoder { /* private fields */ }