Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
39
TMessagesProj/jni/voip/libtgvoip/os/darwin/TGVVideoSource.h
Normal file
39
TMessagesProj/jni/voip/libtgvoip/os/darwin/TGVVideoSource.h
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
//
|
||||
// libtgvoip is free and unencumbered public domain software.
|
||||
// For more information, see http://unlicense.org or the UNLICENSE file
|
||||
// you should have received with this source code distribution.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreMedia/CoreMedia.h>
|
||||
|
||||
namespace tgvoip{
|
||||
namespace video{
|
||||
class VideoSource;
|
||||
}
|
||||
}
|
||||
|
||||
typedef NS_ENUM(int, TGVVideoResolution){
|
||||
TGVVideoResolution1080,
|
||||
TGVVideoResolution720,
|
||||
TGVVideoResolution480,
|
||||
TGVVideoResolution360
|
||||
};
|
||||
|
||||
@protocol TGVVideoSourceDelegate <NSObject>
|
||||
|
||||
- (void)setFrameRate: (unsigned int)frameRate;
|
||||
|
||||
@end
|
||||
|
||||
@interface TGVVideoSource : NSObject
|
||||
|
||||
- (instancetype)initWithDelegate: (id<TGVVideoSourceDelegate>)delegate;
|
||||
- (void)sendVideoFrame: (CMSampleBufferRef)buffer;
|
||||
- (TGVVideoResolution)maximumSupportedVideoResolution;
|
||||
- (void)setVideoRotation: (int)rotation;
|
||||
- (void)pauseStream;
|
||||
- (void)resumeStream;
|
||||
- (tgvoip::video::VideoSource*)nativeVideoSource;
|
||||
|
||||
@end
|
||||
Loading…
Add table
Add a link
Reference in a new issue