Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
IAgoraFileUploader.h
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#include <api/cpp/aosl_ares_class.h>
13
14 namespace agora {
15 namespace rtc {
16
17 struct ImagePayloadData {
18 ImagePayloadData(int seq, uint8_t* pixel, int fileSize, int w, int h, int64_t ts)
19 : seqid(seq),
20 size(fileSize),
21 width(w),
22 height(h),
23 timestamp(ts){
24 }
25
26 int seqid;
27 int size;
28 int width;
29 int height;
30 int64_t timestamp;
31 uint8_t* buffer;
32 void* privdata;
33 int privsize;
34};
35
38 class IFileUploaderService : public RefCountInterface {
39 public:
40 virtual ~IFileUploaderService() {}
41 virtual int startImageUpload(const ImagePayloadData* imgData, aosl_ref_t ares = AOSL_REF_INVALID) = 0;
42 virtual int stopImageUpload(aosl_ref_t ares = AOSL_REF_INVALID) = 0;
43};
44} // namespace rtc
45} // namespace agora
agora::RefCountInterface
Definition AgoraRefPtr.h:31
agora::rtc::IFileUploaderService
Definition IAgoraFileUploader.h:38
agora::rtc::IFileUploaderService::startImageUpload
virtual int startImageUpload(const ImagePayloadData *imgData, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IFileUploaderService::~IFileUploaderService
virtual ~IFileUploaderService()
Definition IAgoraFileUploader.h:40
agora::rtc::IFileUploaderService::stopImageUpload
virtual int stopImageUpload(aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc
Definition AgoraExtensions.h:5
agora
Definition AgoraAtomicOps.h:21
agora::rtc::ImagePayloadData
Definition IAgoraFileUploader.h:17
agora::rtc::ImagePayloadData::size
int size
Definition IAgoraFileUploader.h:27
agora::rtc::ImagePayloadData::timestamp
int64_t timestamp
Definition IAgoraFileUploader.h:30
agora::rtc::ImagePayloadData::width
int width
Definition IAgoraFileUploader.h:28
agora::rtc::ImagePayloadData::buffer
uint8_t * buffer
Definition IAgoraFileUploader.h:31
agora::rtc::ImagePayloadData::privdata
void * privdata
Definition IAgoraFileUploader.h:32
agora::rtc::ImagePayloadData::seqid
int seqid
Definition IAgoraFileUploader.h:26
agora::rtc::ImagePayloadData::privsize
int privsize
Definition IAgoraFileUploader.h:33
agora::rtc::ImagePayloadData::ImagePayloadData
ImagePayloadData(int seq, uint8_t *pixel, int fileSize, int w, int h, int64_t ts)
Definition IAgoraFileUploader.h:18
agora::rtc::ImagePayloadData::height
int height
Definition IAgoraFileUploader.h:29