LeviLamina
Loading...
Searching...
No Matches
VideoFrameBuffer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/ArrayView.h"
7#include "mc/external/webrtc/RefCountInterface.h"
8#include "mc/external/webrtc/scoped_refptr.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace webrtc { class I420BufferInterface; }
13// clang-format on
14
15namespace webrtc {
16
18public:
19 // VideoFrameBuffer inner types define
20 enum class Type : int {
21 KNative = 0,
22 KI420 = 1,
23 KI420A = 2,
24 KI422 = 3,
25 KI444 = 4,
26 KI010 = 5,
27 KI210 = 6,
28 KI410 = 7,
29 KNV12 = 8,
30 };
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual ::webrtc::VideoFrameBuffer::Type type() const = 0;
36
37 virtual int width() const = 0;
38
39 virtual int height() const = 0;
40
41 virtual ::webrtc::scoped_refptr<::webrtc::I420BufferInterface> ToI420() = 0;
42
43 virtual ::webrtc::I420BufferInterface const* GetI420() const;
44
45 virtual ::webrtc::scoped_refptr<::webrtc::VideoFrameBuffer>
46 CropAndScale(int offset_x, int offset_y, int crop_width, int crop_height, int scaled_width, int scaled_height);
47
48 virtual ::webrtc::scoped_refptr<::webrtc::VideoFrameBuffer>
50
51 virtual ::std::string storage_representation() const;
52
53 virtual ~VideoFrameBuffer() /*override*/ = default;
54 // NOLINTEND
55
56public:
57 // virtual function thunks
58 // NOLINTBEGIN
59 MCNAPI ::webrtc::scoped_refptr<::webrtc::VideoFrameBuffer>
60 $CropAndScale(int offset_x, int offset_y, int crop_width, int crop_height, int scaled_width, int scaled_height);
61
62 MCNAPI ::webrtc::scoped_refptr<::webrtc::VideoFrameBuffer>
64
65 MCNAPI ::std::string $storage_representation() const;
66
67
68 // NOLINTEND
69};
70
71} // namespace webrtc
Definition ArrayView.h:8
Definition I420BufferInterface.h:12
Definition RefCountInterface.h:10
Definition VideoFrameBuffer.h:17
MCAPI::std::string $storage_representation() const
MCAPI ::webrtc::scoped_refptr<::webrtc::VideoFrameBuffer > $GetMappedFrameBuffer(::webrtc::ArrayView<::webrtc::VideoFrameBuffer::Type >)
MCAPI ::webrtc::scoped_refptr<::webrtc::VideoFrameBuffer > $CropAndScale(int offset_x, int offset_y, int crop_width, int crop_height, int scaled_width, int scaled_height)