Agora RTC Objective-C API Reference Refactor

IAgoraFileUploader.h
Go to the documentation of this file.
1
2 // Copyright (c) 2019 Agora.io. All rights reserved
3
4 // This program is confidential and proprietary to Agora.io.
5 // And may not be copied, reproduced, modified, disclosed to others, published
6 // or used, in whole or in part, without the express prior written permission
7 // of Agora.io.
8
9 #pragma once // NOLINT(build/header_guard)
10
11 #include "AgoraRefPtr.h"
12
13 namespace agora {
14 namespace rtc {
15
16 struct ImagePayloadData {
17 ImagePayloadData(int seq, uint8_t* pixel, int fileSize, int w, int h, int64_t ts)
18 : seqid(seq),
19 size(fileSize),
20 width(w),
21 height(h),
22 timestamp(ts){
23 }
24
25 int seqid;
26 int size;
27 int width;
28 int height;
29 int64_t timestamp;
30 uint8_t* buffer;
31 void* privdata;
32 int privsize;
33 };
37 class IFileUploaderService : public RefCountInterface {
38 public:
39 virtual ~IFileUploaderService() {}
40 virtual int startImageUpload(const ImagePayloadData* imgData) = 0;
41 virtual int stopImageUpload() = 0;
42 };
43 } // namespace rtc
44 } // namespace agora
agora::rtc::ImagePayloadData::ImagePayloadData
ImagePayloadData(int seq, uint8_t *pixel, int fileSize, int w, int h, int64_t ts)
Definition: IAgoraFileUploader.h:17
agora::rtc::ImagePayloadData::privsize
int privsize
Definition: IAgoraFileUploader.h:32
agora::rtc::ImagePayloadData
Definition: IAgoraFileUploader.h:16
agora::rtc::ImagePayloadData::height
int height
Definition: IAgoraFileUploader.h:28
agora::rtc::ImagePayloadData::timestamp
int64_t timestamp
Definition: IAgoraFileUploader.h:29
agora::rtc::IFileUploaderService
Definition: IAgoraFileUploader.h:37
agora
Definition: AgoraAtomicOps.h:21
agora::rtc::ImagePayloadData::privdata
void * privdata
Definition: IAgoraFileUploader.h:31
agora::rtc::ImagePayloadData::seqid
int seqid
Definition: IAgoraFileUploader.h:25
agora::rtc::IFileUploaderService::stopImageUpload
virtual int stopImageUpload()=0
agora::rtc::IFileUploaderService::startImageUpload
virtual int startImageUpload(const ImagePayloadData *imgData)=0
AgoraRefPtr.h
agora::rtc::ImagePayloadData::width
int width
Definition: IAgoraFileUploader.h:27
agora::RefCountInterface
Definition: AgoraRefPtr.h:31
agora::rtc::ImagePayloadData::buffer
uint8_t * buffer
Definition: IAgoraFileUploader.h:30
agora::rtc::IFileUploaderService::~IFileUploaderService
virtual ~IFileUploaderService()
Definition: IAgoraFileUploader.h:39
agora::rtc::ImagePayloadData::size
int size
Definition: IAgoraFileUploader.h:26