UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
video.h
Go to the documentation of this file.
1
7/*
8 * Copyright (c) 2013 CESNET z.s.p.o.
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, is permitted provided that the following conditions
13 * are met:
14 *
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer.
17 *
18 * 2. Redistributions in binary form must reproduce the above copyright
19 * notice, this list of conditions and the following disclaimer in the
20 * documentation and/or other materials provided with the distribution.
21 *
22 * 3. Neither the name of CESNET nor the names of its contributors may be
23 * used to endorse or promote products derived from this software without
24 * specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS
27 * "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
28 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
29 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
30 * EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
31 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
36 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
37 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 */
39
40#ifndef VIDEO_H_
41#define VIDEO_H_
42
43#include "video_codec.h"
44#include "video_frame.h"
45
46#ifdef __cplusplus
47extern "C" {
48#endif // __cplusplus
49
50enum video_mode get_video_mode_from_str(const char *requested_mode);
63
70
82enum video_mode guess_video_mode(int num_substreams);
83
84const char *video_desc_to_string(struct video_desc d);
85struct video_desc get_video_desc_from_string(const char *);
86
87#ifdef __cplusplus
88}
89#endif // __cplusplus
90
91#ifdef __cplusplus
92#include <istream>
93#include <ostream>
94std::istream& operator>>(std::istream& is, video_desc& desc);
95std::ostream& operator<<(std::ostream& os, const video_desc& desc);
96std::ostream& operator<<(std::ostream& os, const codec_t& color_spec);
97#endif
98
99#endif // VIDEO_H_
100
struct video_desc desc
enum openssl_mode mode
codec_t color_spec
Definition types.h:182
video_mode
Definition types.h:354
codec_t
Definition types.h:65
const char * video_desc_to_string(struct video_desc d)
Definition video.cpp:241
int get_video_mode_tiles_x(enum video_mode mode)
Returns vertical count of tiles.
struct video_desc get_video_desc_from_string(const char *)
Definition video.cpp:291
enum video_mode get_video_mode_from_str(const char *requested_mode)
Definition video.cpp:83
const char * get_video_mode_description(enum video_mode mode)
Returns description of video mode Eg. "tiled 4K".
std::ostream & operator<<(std::ostream &os, const video_desc &desc)
Definition video.cpp:141
enum video_mode guess_video_mode(int num_substreams)
Tries to guess video mode from number of substreams.
Definition video.cpp:123
std::istream & operator>>(std::istream &is, video_desc &desc)
Definition video.cpp:163
int get_video_mode_tiles_y(enum video_mode mode)
Returns horizontal count of tiles.