Agora Java API Reference for Android
media_sdk_script
rte_sdk
interface
cpp
api2
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
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
Definition:
IAgoraFileUploader.h:16
agora::rtc::IFileUploaderService
Definition:
IAgoraFileUploader.h:37
agora::RefCountInterface
Definition:
AgoraRefPtr.h:31
Generated by
1.8.18