![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|


Go to the source code of this file.
Functions | |
| bool | ipc_frame_from_ug_frame (struct Ipc_frame *dst, const struct video_frame *src, codec_t codec, unsigned scale_factor) |
| Make an ipc frame from ultragrid frame. | |
| bool | ipc_frame_from_ug_frame_hq (struct Ipc_frame *dst, const struct video_frame *src, codec_t codec, unsigned scale_factor) |
| Same as ipc_frame_from_ug_frame, but convert pixfmt first and scale later. | |
| int | ipc_frame_get_scale_factor (int src_w, int src_h, int target_w, int target_h) |
| bool | ipc_frame_write_to_fd (const struct Ipc_frame *f, int fd) |
| bool ipc_frame_from_ug_frame | ( | struct Ipc_frame * | dst, |
| const struct video_frame * | src, | ||
| codec_t | codec, | ||
| unsigned | scale_factor ) |
Make an ipc frame from ultragrid frame.
Data is copied, src frame can be freed afterwards.
| [out] | dst | destination ipc frame |
| [in] | src | source ultragrid frame |
| [in] | codec | codec to convert into, VIDEO_CODEC_NONE for no conversion |
| [in] | scale_factor | frame dimensions are divided by this amount. 0 for original size |
Definition at line 107 of file ipc_frame_ug.cpp.
References Ipc_frame_header::color_spec, video_frame::color_spec, Ipc_frame::data, tile::data, Ipc_frame_header::data_len, get_bpp(), get_decoder_from_to(), get_pf_block_pixels(), Ipc_frame::header, Ipc_frame_header::height, tile::height, ipc_frame_reserve(), video_frame::tiles, vc_get_linesize(), vc_memcpy, VIDEO_CODEC_NONE, Ipc_frame_header::width, and tile::width.

| bool ipc_frame_from_ug_frame_hq | ( | struct Ipc_frame * | dst, |
| const struct video_frame * | src, | ||
| codec_t | codec, | ||
| unsigned | scale_factor ) |
Same as ipc_frame_from_ug_frame, but convert pixfmt first and scale later.
Definition at line 41 of file ipc_frame_ug.cpp.
References Ipc_frame_header::color_spec, video_frame::color_spec, Ipc_frame::data, tile::data, Ipc_frame_header::data_len, get_bpp(), get_decoder_from_to(), get_pf_block_pixels(), Ipc_frame::header, Ipc_frame_header::height, tile::height, ipc_frame_reserve(), RGB, video_frame::tiles, vc_get_linesize(), vc_memcpy, Ipc_frame_header::width, and tile::width.
Referenced by display_unix_sock_init(), and init().

| int ipc_frame_get_scale_factor | ( | int | src_w, |
| int | src_h, | ||
| int | target_w, | ||
| int | target_h ) |
Definition at line 186 of file ipc_frame_ug.cpp.
Referenced by display_unix_sock_run(), and filter().
| bool ipc_frame_write_to_fd | ( | const struct Ipc_frame * | f, |
| int | fd ) |