ZegoLiveRoom
zego-api-mix-stream-defines.h
Go to the documentation of this file.
1 //
2 // zego-api-mix-stream-defines.h
3 //
4 // Copyright © 2018年 Zego. All rights reserved.
5 //
6 
7 #ifndef zego_api_mix_stream_defines_h
8 #define zego_api_mix_stream_defines_h
9 
10 #include "zego-api-defines.h"
11 #include <cstddef>
12 
13 namespace ZEGO
14 {
15 namespace MIXSTREAM
16 {
17 
22  {
27  struct
28  {
32  int top;
36  int left;
40  int bottom;
44  int right;
45  } layout;
49  unsigned int uSoundLevelID;
57  int nVolume;
62 
64  : uSoundLevelID(0)
65  , nContentControl(0)
66  , nVolume(100)
67  , bAudioFocus(false)
68  {
69  szStreamID[0] = '\0';
70  layout.top = 0;
71  layout.left = 0;
72  layout.bottom = 0;
73  layout.right = 0;
74  }
85  };
86 
91  {
95  bool isUrl;
100 
102  {
103  isUrl = false;
104  target[0] = '\0';
105  }
106  };
107 
112  {
119 
120  struct
121  {
125  int top;
129  int left;
133  int bottom;
137  int right;
151  {
152  image[0] = '\0';
153  layout.top = 0;
154  layout.left = 0;
155  layout.bottom = 0;
156  layout.right = 0;
157  }
158  };
159 
160 
165  {
242  const unsigned char * pUserData;
280  int nExtra;
295  const char *pAdvancedConfig;
296 
298  : nOutputFps(0)
300  , nOutputBitrate(0)
301  , nOutputQuality(23)
303  , nOutputWidth(0)
304  , nOutputHeight(0)
305  , nOutputAudioConfig(0)
306  , pInputStreamList(0)
307  , nInputStreamCount(0)
308  , pOutputList(0)
309  , nOutputStreamCount(0)
310  , pUserData(0)
311  , nLenOfUserData(0)
312  , nChannels(1)
313  , nOutputBackgroundColor(0x00000000)
315  , bWithSoundLevel(false)
316  , nAudioMixMode(0)
317  , nExtra(0)
318  , pOutputWatermark(0)
319  , bSingleStreamPassThrough(false)
320  , pAdvancedConfig(NULL)
321  {
322 
323  }
324  };
325 
326 }
327 }
328 
329 #endif /* zego_api_mix_stream_defines_h */
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nOutputBackgroundColor
int nOutputBackgroundColor
Definition: zego-api-mix-stream-defines.h:256
ZEGO::MIXSTREAM::ZegoMixStreamInput::ZegoMixStreamInput
ZegoMixStreamInput()
Definition: zego-api-mix-stream-defines.h:63
ZEGO::MIXSTREAM::ZegoMixStreamConfig::bSingleStreamPassThrough
bool bSingleStreamPassThrough
Definition: zego-api-mix-stream-defines.h:290
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nOutputFps
int nOutputFps
Definition: zego-api-mix-stream-defines.h:169
ZEGO::MIXSTREAM::ZegoMixStreamConfig::bWithSoundLevel
bool bWithSoundLevel
Definition: zego-api-mix-stream-defines.h:266
ZEGO::MIXSTREAM::ZegoMixStreamConfig::pInputStreamList
ZegoMixStreamInput * pInputStreamList
Definition: zego-api-mix-stream-defines.h:225
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nOutputBitrate
int nOutputBitrate
Definition: zego-api-mix-stream-defines.h:183
ZEGO::MIXSTREAM::ZegoMixStreamConfig::pOutputBackgroundImage
const char * pOutputBackgroundImage
Definition: zego-api-mix-stream-defines.h:262
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nLenOfUserData
int nLenOfUserData
Definition: zego-api-mix-stream-defines.h:246
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nChannels
int nChannels
Definition: zego-api-mix-stream-defines.h:250
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nOutputQuality
int nOutputQuality
Definition: zego-api-mix-stream-defines.h:193
ZEGO::MIXSTREAM::ZegoMixStreamWatermark
Definition: zego-api-mix-stream-defines.h:112
ZEGO::MIXSTREAM::ZegoMixStreamWatermark::ZegoMixStreamWatermark
ZegoMixStreamWatermark()
Definition: zego-api-mix-stream-defines.h:150
ZEGO::MIXSTREAM::ZegoMixStreamConfig::pUserData
const unsigned char * pUserData
Definition: zego-api-mix-stream-defines.h:242
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nOutputWidth
int nOutputWidth
Definition: zego-api-mix-stream-defines.h:207
ZEGO::MIXSTREAM::ZegoMixStreamWatermark::layout
struct ZEGO::MIXSTREAM::ZegoMixStreamWatermark::@4 layout
ZEGO::MIXSTREAM::ZegoMixStreamWatermark::right
int right
Definition: zego-api-mix-stream-defines.h:137
ZEGO::MIXSTREAM::ZegoMixStreamInput::bottom
int bottom
Definition: zego-api-mix-stream-defines.h:40
ZEGO::MIXSTREAM::ZegoMixStreamWatermark::bottom
int bottom
Definition: zego-api-mix-stream-defines.h:133
ZEGO::MIXSTREAM::ZegoMixStreamInput::nVolume
int nVolume
Definition: zego-api-mix-stream-defines.h:57
ZEGO::MIXSTREAM::ZegoMixStreamOutput::ZegoMixStreamOutput
ZegoMixStreamOutput()
Definition: zego-api-mix-stream-defines.h:101
ZEGO::MIXSTREAM::ZegoMixStreamConfig::pOutputList
ZegoMixStreamOutput * pOutputList
Definition: zego-api-mix-stream-defines.h:233
ZEGO::MIXSTREAM::ZegoMixStreamConfig::pOutputWatermark
ZegoMixStreamWatermark * pOutputWatermark
Definition: zego-api-mix-stream-defines.h:284
ZEGO_MAX_COMMON_LEN
#define ZEGO_MAX_COMMON_LEN
Definition: zego-api-defines.h:12
ZEGO::MIXSTREAM::ZegoMixStreamOutput::isUrl
bool isUrl
Definition: zego-api-mix-stream-defines.h:95
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nAudioMixMode
int nAudioMixMode
Definition: zego-api-mix-stream-defines.h:276
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nOutputAudioConfig
int nOutputAudioConfig
Definition: zego-api-mix-stream-defines.h:221
ZEGO::MIXSTREAM::ZegoMixStreamInput::szStreamID
char szStreamID[ZEGO_MAX_COMMON_LEN]
Definition: zego-api-mix-stream-defines.h:26
ZEGO::MIXSTREAM::ZegoMixStreamInput::nContentControl
int nContentControl
Definition: zego-api-mix-stream-defines.h:53
ZEGO::MIXSTREAM::ZegoMixStreamWatermark::top
int top
Definition: zego-api-mix-stream-defines.h:125
ZEGO::MIXSTREAM::ZegoMixStreamOutput
Definition: zego-api-mix-stream-defines.h:91
ZEGO::MIXSTREAM::ZegoMixStreamInput::uSoundLevelID
unsigned int uSoundLevelID
Definition: zego-api-mix-stream-defines.h:49
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nExtra
int nExtra
Definition: zego-api-mix-stream-defines.h:280
ZEGO::MIXSTREAM::ZegoMixStreamWatermark::image
char image[ZEGO_MAX_COMMON_LEN]
Definition: zego-api-mix-stream-defines.h:118
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nOutputHeight
int nOutputHeight
Definition: zego-api-mix-stream-defines.h:213
ZEGO::MIXSTREAM::ZegoMixStreamInput::layout
struct ZEGO::MIXSTREAM::ZegoMixStreamInput::@3 layout
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nOutputAudioBitrate
int nOutputAudioBitrate
Definition: zego-api-mix-stream-defines.h:201
ZEGO::MIXSTREAM::ZegoMixStreamInput::top
int top
Definition: zego-api-mix-stream-defines.h:32
ZEGO::MIXSTREAM::ZegoMixStreamInput::left
int left
Definition: zego-api-mix-stream-defines.h:36
ZEGO::MIXSTREAM::ZegoMixStreamInput::right
int right
Definition: zego-api-mix-stream-defines.h:44
ZEGO::MIXSTREAM::ZegoMixStreamConfig::ZegoMixStreamConfig
ZegoMixStreamConfig()
Definition: zego-api-mix-stream-defines.h:297
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nOutputRateControlMode
int nOutputRateControlMode
Definition: zego-api-mix-stream-defines.h:177
ZEGO::MIXSTREAM::ZegoMixStreamConfig
Definition: zego-api-mix-stream-defines.h:165
ZEGO::MIXSTREAM::ZegoMixStreamWatermark::left
int left
Definition: zego-api-mix-stream-defines.h:129
ZEGO::MIXSTREAM::ZegoMixStreamConfig::pAdvancedConfig
const char * pAdvancedConfig
Definition: zego-api-mix-stream-defines.h:295
ZEGO::MIXSTREAM::ZegoMixStreamInput::bAudioFocus
bool bAudioFocus
Definition: zego-api-mix-stream-defines.h:61
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nOutputStreamCount
int nOutputStreamCount
Definition: zego-api-mix-stream-defines.h:237
ZEGO
Definition: AVDefines.h:13
ZEGO::MIXSTREAM::ZegoMixStreamInput
Definition: zego-api-mix-stream-defines.h:22
ZEGO::MIXSTREAM::ZegoMixStreamOutput::target
char target[ZEGO_MAX_COMMON_LEN]
Definition: zego-api-mix-stream-defines.h:99
zego-api-defines.h
ZEGO::MIXSTREAM::ZegoMixStreamConfig::nInputStreamCount
int nInputStreamCount
Definition: zego-api-mix-stream-defines.h:229