#include <format.h>
This structure holds information to describe a video format. Application can retrieve this structure by calling pjmedia_get_video_format_info() funcion.
◆ id
The unique format ID of the media. Well known format ids are declared in pjmedia_format_id enumeration.
◆ name
char pjmedia_video_format_info::name[8] |
Null terminated string containing short identification about the format.
◆ color_model
Information about the color model of this video format.
◆ bpp
Number of bits needed to store one pixel of this video format.
◆ plane_cnt
Number of video planes that this format uses. Value 1 indicates packed format, while value greater than 1 indicates planar format.
◆ apply_fmt
Pointer to function to apply this format against size and buffer information in pjmedia_video_apply_fmt_param argument. Application uses this function to obtain various information such as the memory size of a frame buffer, strides value of the image, the location of the planes, and so on. See pjmedia_video_apply_fmt_param for additional information.
- Parameters
-
vfi | The video format info. |
vafp | The parameters to investigate. |
- Returns
- PJ_SUCCESS if the function has calculated the information in vafp successfully.
The documentation for this struct was generated from the following file: