FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
API-Examples/iOS/APIExample/SimpleFilter/VideoProcessor.hpp at main · Smaug-77/API-Examples · GitHub
Smaug-77
/
API-Examples
Public
forked from
AgoraIO/API-Examples
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
API-Examples
/
iOS
/
APIExample
/
SimpleFilter
/
VideoProcessor.hpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
51 lines (38 loc) · 1.26 KB
Breadcrumbs
API-Examples
/
iOS
/
APIExample
/
SimpleFilter
/
VideoProcessor.hpp
Copy path
File metadata and controls
51 lines (38 loc) · 1.26 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
//
Created by DYF on 2020/7/13.
//
#
ifndef
AGORA_VIDEOPROCESSOR_H
#
define
AGORA_VIDEOPROCESSOR_H
#
include
<
thread
>
#
include
<
string
>
#
include
<
mutex
>
#
include
<
vector
>
#
include
<
AgoraRtcKit/AgoraRefPtr.h
>
#
include
"
AgoraRtcKit/NGIAgoraMediaNode.h
"
#
include
"
AgoraRtcKit/AgoraMediaBase.h
"
namespace
agora
{
namespace
extension
{
class
YUVImageProcessor
:
public
RefCountInterface
{
public:
bool
initOpenGL
();
bool
releaseOpenGL
();
int
processFrame
(agora::rtc::VideoFrameData &capturedFrame);
int
setParameters
(std::string parameter);
std::thread::id
getThreadId
();
int
setExtensionControl
(agora::agora_refptr<rtc::IExtensionVideoFilter::Control> control){
control_ = control;
return
0
;
};
protected:
~YUVImageProcessor
() {}
private:
void
process
(
const
agora::rtc::VideoFrameData &capturedFrame);
void
dataCallback
(
const
char
* data);
std::mutex mutex_;
agora::agora_refptr<rtc::IExtensionVideoFilter::Control> control_;
bool
wmEffectEnabled_ =
true
;
std::string wmStr_=
"
Agora
"
;
};
}
}
#
endif
//
AGORA_VIDEOPROCESSOR_H
Back
|
FazBrowse Home
|
New Git URL