VA-API  2.22.0
List of all members
VAEncMiscParameterBuffer Struct Reference

#include <va.h>

Detailed Description

For application, e.g. set a new bitrate VABufferID buf_id; VAEncMiscParameterBuffer *misc_param; VAEncMiscParameterRateControl *misc_rate_ctrl;

vaCreateBuffer(dpy, context, VAEncMiscParameterBufferType, sizeof(VAEncMiscParameterBuffer) + sizeof(VAEncMiscParameterRateControl), 1, NULL, &buf_id);

vaMapBuffer(dpy,buf_id,(void **)&misc_param); misc_param->type = VAEncMiscParameterTypeRateControl; misc_rate_ctrl= (VAEncMiscParameterRateControl *)misc_param->data; misc_rate_ctrl->bits_per_second = 6400000; vaUnmapBuffer(dpy, buf_id); vaRenderPicture(dpy, context, &buf_id, 1);


The documentation for this struct was generated from the following file: