NERtc Linux SDK  V5.4.10
nertc_engine_predecode_observer.h
浏览该文件的文档.
1 
7 #ifndef NERTC_ENGINE_PREDECODE_OBSERVER_H
8 #define NERTC_ENGINE_PREDECODE_OBSERVER_H
9 
10 #include "nertc_base_types.h"
11 
16 namespace nertc
17 {
26 typedef enum
27 {
56 
66 {
75  uint32_t width;
84  uint32_t height;
94 };
95 
105  /* @if English
106  * The audio data interval per frame. Unit: milliseconds.
107  * @endif
108  * @if Chinese
109  * 每帧音频数据时间间隔, 单位为毫秒。
110  * @endif
111  */
112  uint32_t per_time_ms;
121  uint8_t toc;
122 };
123 
150  uint64_t uid;
159  int64_t timestamp_ms;
168  uint8_t* data;
177  int length;
186  char* codec;
214 };
215 
225 public:
226  virtual ~INERtcPreDecodeObserver() {}
227 
254  virtual void onFrame(NERtcPreDecodeFrameInfo* pre_decode_frame) = 0;
255 };
256 } //namespace nertc
257 
258 #endif
Definition: nertc_engine_predecode_observer.h:224
virtual void onFrame(NERtcPreDecodeFrameInfo *pre_decode_frame)=0
namespace nertc
NERtcPreDecodeMediaType
Definition: nertc_engine_predecode_observer.h:27
@ kNERtcPreDecodeMediaTypeAudio
Definition: nertc_engine_predecode_observer.h:36
@ kNERtcPreDecodeMediaTypeVideo
Definition: nertc_engine_predecode_observer.h:45
@ kNERtcPreDecodeMediaTypeUnknown
Definition: nertc_engine_predecode_observer.h:54
Definition: nertc_engine_predecode_observer.h:104
uint8_t toc
Definition: nertc_engine_predecode_observer.h:121
Definition: nertc_engine_predecode_observer.h:132
int length
Definition: nertc_engine_predecode_observer.h:177
uint64_t uid
Definition: nertc_engine_predecode_observer.h:150
NERtcPreDecodeVideoInfo video_info
Definition: nertc_engine_predecode_observer.h:204
char * codec
Definition: nertc_engine_predecode_observer.h:186
bool is_main_stream
Definition: nertc_engine_predecode_observer.h:195
NERtcPreDecodeMediaType media_type
Definition: nertc_engine_predecode_observer.h:141
int64_t timestamp_ms
Definition: nertc_engine_predecode_observer.h:159
NERtcPreDecodeAudioInfo audio_info
Definition: nertc_engine_predecode_observer.h:213
uint8_t * data
Definition: nertc_engine_predecode_observer.h:168
Definition: nertc_engine_predecode_observer.h:66
bool is_key_frame
Definition: nertc_engine_predecode_observer.h:93
uint32_t width
Definition: nertc_engine_predecode_observer.h:75
uint32_t height
Definition: nertc_engine_predecode_observer.h:84