Agora RTC Objective-C API Reference Refactor

NGIAgoraExtensionAINoiseSuppressor.h
Go to the documentation of this file.
1
2 //Agora SDK
3
4 //Copyright (c) 2021 Agora.io. All rights reserved.
5
6 #pragma once // NOLINT(build/header_guard)
7
8 #include "AgoraRefPtr.h"
9
10 namespace agora {
11 namespace rtc {
12
13 class AINoiseSuppressorExtension : public RefCountInterface {
14 public:
15 virtual ~AINoiseSuppressorExtension() {};
16 virtual int Init(const char* weight_raw_buffer, size_t raw_buffer_bytes) = 0;
17 virtual int ProcessDenoiseFrame(float* input, float* output, int stage) = 0;
18 virtual int ClearHiddenState(bool clear_hidden, int clear_lpsbuffer_nframe) = 0;
19 virtual const char* GetLibVersion(int mode = 0) = 0;
20 };
21
22 class AINoiseSuppressorControllerExtension : public RefCountInterface {
23 public:
24 virtual ~AINoiseSuppressorControllerExtension() {};
25 virtual bool LoadWeightResource(std::shared_ptr<void> &weight, int& size) = 0;
26 };
27
28 } // namespace rtc
29 } // namespace agora
agora::rtc::AINoiseSuppressorControllerExtension::LoadWeightResource
virtual bool LoadWeightResource(std::shared_ptr< void > &weight, int &size)=0
agora::rtc::AINoiseSuppressorExtension
Definition: NGIAgoraExtensionAINoiseSuppressor.h:13
agora::rtc::AINoiseSuppressorExtension::Init
virtual int Init(const char *weight_raw_buffer, size_t raw_buffer_bytes)=0
agora
Definition: AgoraAtomicOps.h:21
agora::rtc::AINoiseSuppressorExtension::ClearHiddenState
virtual int ClearHiddenState(bool clear_hidden, int clear_lpsbuffer_nframe)=0
agora::rtc::AINoiseSuppressorExtension::ProcessDenoiseFrame
virtual int ProcessDenoiseFrame(float *input, float *output, int stage)=0
agora::rtc::AINoiseSuppressorExtension::GetLibVersion
virtual const char * GetLibVersion(int mode=0)=0
AgoraRefPtr.h
agora::rtc::AINoiseSuppressorControllerExtension::~AINoiseSuppressorControllerExtension
virtual ~AINoiseSuppressorControllerExtension()
Definition: NGIAgoraExtensionAINoiseSuppressor.h:24
agora::RefCountInterface
Definition: AgoraRefPtr.h:31
agora::rtc::AINoiseSuppressorExtension::~AINoiseSuppressorExtension
virtual ~AINoiseSuppressorExtension()
Definition: NGIAgoraExtensionAINoiseSuppressor.h:15
agora::rtc::AINoiseSuppressorControllerExtension
Definition: NGIAgoraExtensionAINoiseSuppressor.h:22