![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
This file contains some common data types. More...
#include <stddef.h>#include <stdint.h>#include <string>

Go to the source code of this file.
Classes | |
| struct | device_info |
| struct | device_info::mode |
| struct | device_option |
| struct | fec_desc |
| struct | pixfmt_desc |
| struct | tile |
| Struct tile is an area of video_frame. More... | |
| struct | video_desc |
| struct | video_frame |
| Struct video_frame represents a video frame and contains video description. More... | |
| struct | video_frame_callbacks |
| Struct containing callbacks of a video_frame. More... | |
Macros | |
| #define | FLEXIBLE_ARRAY_MEMBER 0 |
| #define | VF_METADATA_END tile_count |
| #define | VF_METADATA_SIZE (offsetof(struct video_frame, VF_METADATA_END) - offsetof(struct video_frame, VF_METADATA_START)) |
| #define | VF_METADATA_START fec_params |
Typedefs | |
| typedef void(* | device_probe_func) (struct device_info **available_cards, int *count, void(**deleter) (void *)) |
| typedef enum frame_type | frame_type_t |
Functions | |
| void | dev_add_option (struct device_info *dev, const char *name, const char *desc, const char *key, const char *opt_str, bool is_boolean) |
This file contains some common data types.
This file should be directly included only from header files, not implementation files.
Definition in file types.h.
| #define VF_METADATA_SIZE (offsetof(struct video_frame, VF_METADATA_END) - offsetof(struct video_frame, VF_METADATA_START)) |
Definition at line 348 of file types.h.
Referenced by vf_copy_metadata(), vf_restore_metadata(), and vf_store_metadata().
| #define VF_METADATA_START fec_params |
Definition at line 327 of file types.h.
Referenced by vf_copy_metadata(), vf_restore_metadata(), and vf_store_metadata().
| typedef void(* device_probe_func) (struct device_info **available_cards, int *count, void(**deleter)(void *)) |
| typedef enum frame_type frame_type_t |
| anonymous enum |
| enum codec_t |
Video codec identificator
| Enumerator | |
|---|---|
| VIDEO_CODEC_NONE | dummy color spec |
| VC_NONE | |
| VIDEO_CODEC_FIRST | |
| VC_FIRST | |
| RGBA | RGBA 8-bit, big-endian. |
| UYVY | YCbCr 422 8-bit - Cb Y0 Cr Y1. |
| YUYV | YCbCr 422 8-bit - Y0 Cb Y1 Cr. |
| R10k | RGB 10-bit packed - RGBX, big-endian (2 bit padding) |
| R12L | RGB 12-bit packed, little-endian. |
| v210 | YCbCr 422 10-bit - xVY0U|xY2UY1|xUY3V|xY5VY4, little-endian (2 bit padding /'x'/), line aligned to 128 B. |
| DVS10 | DVS 10-bit format. |
| DXT1 | S3 Texture Compression DXT1. |
| DXT1_YUV | Structure same as DXT1, instead of RGB, YCbCr values are stored. |
| DXT5 | S3 Texture Compression DXT5. |
| RGB | RGB 8-bit (packed into 24-bit word) |
| JPEG | JPEG image, restart intervals may be used. Compatible with GPUJPEG. |
| RAW | RAW HD-SDI frame. |
| H264 | H.264 frame. |
| H265 | H.264 frame. |
| MJPG | JPEG image, without restart intervals.
|
| VP8 | VP8 frame. |
| VP9 | VP9 frame. |
| BGR | 8-bit BGR |
| J2K | JPEG 2000. |
| J2KR | JPEG 2000 RGB. |
| HW_VDPAU | VDPAU hardware surface. |
| HFYU | HuffYUV. |
| FFV1 | FFV1. |
| CFHD | Cineform. |
| RG48 | 16-bit RGB little-endian (RlRhGl...) |
| AV1 | AOMedia Video 1. |
| I420 | planar YCbCr 4:2:0 |
| Y216 | YCbCr 422 16-bit little-endian - Y0 Cb Y1 Cr. |
| Y416 | interleaved little-endian YCbCr 4444 16-bit - UYVA |
| PRORES | abstract Apple ProRes, must not be used in transmit |
| PRORES_4444 | Apple ProRes 4444. |
| PRORES_4444_XQ | Apple ProRes 4444 (XQ) |
| PRORES_422_HQ | Apple ProRes 422 (HQ) |
| PRORES_422 | Apple ProRes 422. |
| PRORES_422_PROXY | Apple ProRes 422 (Proxy) |
| PRORES_422_LT | Apple ProRes 422 (LT) |
| DRM_PRIME | DRM Prime buffer, data contains struct drm_prime_frame. |
| VIDEO_CODEC_COUNT | count of known video codecs (including VIDEO_CODEC_NONE) |
| VC_COUNT | |
| VC_END | |
| VIDEO_CODEC_END | |
Definition at line 65 of file types.h.
| enum depth |
| enum fec_type |
| enum frame_flags_common |
flags common for both audio and video frame
| Enumerator | |
|---|---|
| TIMESTAMP_VALID | timestamp set by source (in 90 kHz clock) |
| enum frame_type |
| enum hw_accel_type |
| Enumerator | |
|---|---|
| HWACCEL_NONE | |
| HWACCEL_VDPAU | |
| HWACCEL_VAAPI | |
| HWACCEL_VIDEOTOOLBOX | |
| HWACCEL_CUDA | |
| HWACCEL_VULKAN | |
| HWACCEL_DRM_PRIME | |
| HWACCEL_COUNT | |
Definition at line 114 of file types.h.
| enum interlacing_t |
Specifies interlacing mode of the frame
Definition at line 163 of file types.h.
| enum mem_location_t |
| enum subsampling |
| enum tx_media_type |
| Enumerator | |
|---|---|
| TX_MEDIA_AUDIO | |
| TX_MEDIA_VIDEO | |
| enum video_mode |
Video Mode
Video mode metadata are stored in file video.c in video_mode_info.
Definition at line 354 of file types.h.
| void dev_add_option | ( | struct device_info * | dev, |
| const char * | name, | ||
| const char * | desc, | ||
| const char * | key, | ||
| const char * | opt_str, | ||
| bool | is_boolean ) |
Definition at line 652 of file video_display.c.
References desc, device_option::display_desc, device_option::display_name, device_option::is_boolean, is_boolean, device_option::key, key, name, device_option::opt_str, opt_str, and device_info::options.
Referenced by display_decklink_probe(), display_sdl2_probe(), vidcap_decklink_probe(), vidcap_dshow_probe_internal(), and vidcap_testcard_probe().