VA-API  2.13.0.pre1
Public Attributes | List of all members
VAEncMiscParameterFrameRate Struct Reference

#include <va.h>

Public Attributes

uint32_t framerate
 
uint32_t va_reserved [VA_PADDING_LOW]
 Reserved bytes for future use, must be zero.
 
uint32_t temporal_id: 8
 
uint32_t reserved: 24
 

Detailed Description

Encode framerate parameters.

Sets the encode framerate used by the rate controller. This should be provided in all modes using a bitrate target (variable framerate is not supported).

Member Data Documentation

◆ framerate

uint32_t VAEncMiscParameterFrameRate::framerate

Encode framerate.

The framerate is specified as a number of frames per second, as a fraction. The denominator of the fraction is given in the top half (the high two bytes) of the framerate field, and the numerator is given in the bottom half (the low two bytes).

That is: denominator = framerate >> 16 & 0xffff; numerator = framerate & 0xffff; fps = numerator / denominator;

For example, if framerate is set to (100 << 16 | 750), this is 750 / 100, hence 7.5fps.

If the denominator is zero (the high two bytes are both zero) then it takes the value one instead, so the framerate is just the integer in the low 2 bytes.

◆ reserved

uint32_t VAEncMiscParameterFrameRate::reserved

Reserved for future use, must be zero.

◆ temporal_id

uint32_t VAEncMiscParameterFrameRate::temporal_id

The temporal layer that these framerate parameters apply to.


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