FMLiveSwitchViewSink Class Reference

A video view sink. More...

Instance Methods

(void) - doProcessFrame:inputBuffer:
 Processes a frame. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchViewSink`1 class. More...
 
(instancetype) - initWithInput:
 Initializes a new instance of the FMLiveSwitchViewSink`1 class. More...
 
(instancetype) - initWithInputFormat:
 Initializes a new instance of the FMLiveSwitchViewSink`1 class. More...
 
(instancetype) - initWithInputs:
 Initializes a new instance of the FMLiveSwitchViewSink`1 class. More...
 
(bool) - isRecording
 Gets a value indicating whether a recording icon should be displayed. More...
 
(void) - renderBufferWithInputBuffer:
 Renders the buffer. More...
 
(void) - setIsRecording:
 Sets a value indicating whether a recording icon should be displayed. More...
 
(void) - setViewMirror:
 Sets a value indicating whether the view is mirrored. More...
 
(void) - setViewScale:
 Sets the view scale. More...
 
(T) - view
 Gets the view. More...
 
(bool) - viewMirror
 Gets a value indicating whether the view is mirrored. More...
 
(FMLiveSwitchLayoutScale) - viewScale
 Gets the view scale. More...
 

Class Methods

(FMLiveSwitchViewSink *) + viewSink
 Initializes a new instance of the FMLiveSwitchViewSink`1 class. More...
 
(FMLiveSwitchViewSink *) + viewSinkWithInput:
 Initializes a new instance of the FMLiveSwitchViewSink`1 class. More...
 
(FMLiveSwitchViewSink *) + viewSinkWithInputFormat:
 Initializes a new instance of the FMLiveSwitchViewSink`1 class. More...
 
(FMLiveSwitchViewSink *) + viewSinkWithInputs:
 Initializes a new instance of the FMLiveSwitchViewSink`1 class. More...
 

Protected Attributes

 __pad0__: FMLiveSwitchVideoSink<FMLiveSwitchIViewSink>- (void) doDestroy
 

Detailed Description

A video view sink.

Method Documentation

◆ doProcessFrame:inputBuffer:

- (void) doProcessFrame: (FMLiveSwitchVideoFrame *)  frame
inputBuffer: (FMLiveSwitchVideoBuffer *)  inputBuffer 

Processes a frame.

Parameters
frameThe frame.
inputBufferThe input buffer.

◆ init

- (instancetype) init

Initializes a new instance of the FMLiveSwitchViewSink`1 class.

Implemented in FMLiveSwitchCocoaOpenGLSink, and FMLiveSwitchCocoaImageViewSink.

◆ initWithInput:

- (instancetype) initWithInput: (NSObject< FMLiveSwitchIVideoOutput > *)  input

Initializes a new instance of the FMLiveSwitchViewSink`1 class.

Parameters
inputThe input.

Implemented in FMLiveSwitchCocoaOpenGLSink, and FMLiveSwitchCocoaImageViewSink.

◆ initWithInputFormat:

- (instancetype) initWithInputFormat: (FMLiveSwitchVideoFormat *)  inputFormat

Initializes a new instance of the FMLiveSwitchViewSink`1 class.

Parameters
inputFormatThe input format.

◆ initWithInputs:

- (instancetype) initWithInputs: (NSMutableArray *)  inputs

Initializes a new instance of the FMLiveSwitchViewSink`1 class.

Parameters
inputsThe inputs.

Implemented in FMLiveSwitchCocoaOpenGLSink, and FMLiveSwitchCocoaImageViewSink.

◆ isRecording

- (bool) isRecording

Gets a value indicating whether a recording icon should be displayed.

◆ renderBufferWithInputBuffer:

- (void) renderBufferWithInputBuffer: (FMLiveSwitchVideoBuffer *)  inputBuffer

Renders the buffer.

Parameters
inputBufferThe input buffer.

Implemented in FMLiveSwitchCocoaOpenGLSink, and FMLiveSwitchCocoaImageViewSink.

◆ setIsRecording:

- (void) setIsRecording: (bool)  value

Sets a value indicating whether a recording icon should be displayed.

◆ setViewMirror:

- (void) setViewMirror: (bool)  value

Sets a value indicating whether the view is mirrored.

◆ setViewScale:

- (void) setViewScale: (FMLiveSwitchLayoutScale)  value

Sets the view scale.

◆ view

- T view

Gets the view.

◆ viewMirror

- (bool) viewMirror

Gets a value indicating whether the view is mirrored.

◆ viewScale

- (FMLiveSwitchLayoutScale) viewScale

Gets the view scale.

◆ viewSink

+ (FMLiveSwitchViewSink*) viewSink

Initializes a new instance of the FMLiveSwitchViewSink`1 class.

◆ viewSinkWithInput:

+ (FMLiveSwitchViewSink*) viewSinkWithInput: (NSObject< FMLiveSwitchIVideoOutput > *)  input

Initializes a new instance of the FMLiveSwitchViewSink`1 class.

Parameters
inputThe input.

◆ viewSinkWithInputFormat:

+ (FMLiveSwitchViewSink*) viewSinkWithInputFormat: (FMLiveSwitchVideoFormat *)  inputFormat

Initializes a new instance of the FMLiveSwitchViewSink`1 class.

Parameters
inputFormatThe input format.

◆ viewSinkWithInputs:

+ (FMLiveSwitchViewSink*) viewSinkWithInputs: (NSMutableArray *)  inputs

Initializes a new instance of the FMLiveSwitchViewSink`1 class.

Parameters
inputsThe inputs.

Member Data Documentation

◆ __pad0__

- __pad0__
protected