UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
ipc_frame.h
Go to the documentation of this file.
1#ifndef IPC_FRAME_84d5ffd7aad2
2#define IPC_FRAME_84d5ffd7aad2
3
4#include <stdbool.h>
5#include <stddef.h>
6
7#define IPC_FRAME_HEADER_LEN 128
8
15
22
29
30bool ipc_frame_parse_header(struct Ipc_frame_header *hdr, const char *buf);
31void ipc_frame_write_header(const struct Ipc_frame_header *hdr, char *dst);
32
34bool ipc_frame_reserve(struct Ipc_frame *frame, size_t size);
35void ipc_frame_free(struct Ipc_frame *frame);
36
37#ifdef __cplusplus
38#include <memory>
40using Ipc_frame_uniq = std::unique_ptr<Ipc_frame, Ipc_frame_deleter>;
41#endif //__cplusplus
42
43#endif
struct video_frame * frame
bool ipc_frame_reserve(struct Ipc_frame *frame, size_t size)
Definition ipc_frame.cpp:66
bool ipc_frame_parse_header(struct Ipc_frame_header *hdr, const char *buf)
Definition ipc_frame.cpp:31
void ipc_frame_free(struct Ipc_frame *frame)
Definition ipc_frame.cpp:61
void ipc_frame_write_header(const struct Ipc_frame_header *hdr, char *dst)
Definition ipc_frame.cpp:40
std::unique_ptr< Ipc_frame, Ipc_frame_deleter > Ipc_frame_uniq
Definition ipc_frame.h:40
Ipc_frame_color_spec
Definition ipc_frame.h:9
@ IPC_FRAME_COLOR_NONE
Definition ipc_frame.h:10
@ IPC_FRAME_COLOR_UYVY
Definition ipc_frame.h:12
@ IPC_FRAME_COLOR_RGBA
Definition ipc_frame.h:11
@ IPC_FRAME_COLOR_RGB
Definition ipc_frame.h:13
Ipc_frame * ipc_frame_new()
Definition ipc_frame.cpp:48
void operator()(Ipc_frame *f)
Definition ipc_frame.h:39
enum Ipc_frame_color_spec color_spec
Definition ipc_frame.h:20
Ipc_frame_header header
Definition ipc_frame.h:24
char * data
Definition ipc_frame.h:25
size_t alloc_size
Definition ipc_frame.h:27