VideoEncoder

Engine/source/gfx/video/videoCapture.h

Abstract video encoder class.

More...

Public Functions

bool

Begins accepting frames for encoding.

bool
end()

Finishes the encoding and closes the video.

Returns an already encoded bitmap. Video capture will get these and manage their deletion.

bool
pushFrame(GBitmap * bitmap)

Pushes a new frame into the video stream.

setFile(const char * path)

Sets the file the encoder will write to.

setFramerate(F32 * framerate)

Sets the framerate (and fixes it if its invalid)

setResolution(Point2I * resolution)

Sets the output resolution (and fixes it if its invalid)

Detailed Description

Abstract video encoder class.

Protected Attributes

F32 mFramerate 
String mPath 
ThreadSafeDeque< GBitmap * > mProcessedBitmaps 
Point2I mResolution 

Public Functions

~VideoEncoder()

begin()

Begins accepting frames for encoding.

Reimplemented by: VideoEncoderPNG

end()

Finishes the encoding and closes the video.

Reimplemented by: VideoEncoderPNG

getProcessedBitmap()

Returns an already encoded bitmap. Video capture will get these and manage their deletion.

pushFrame(GBitmap * bitmap)

Pushes a new frame into the video stream.

Reimplemented by: VideoEncoderPNG

pushProcessedBitmap(GBitmap * bitmap)

setFile(const char * path)

Sets the file the encoder will write to.

--------------------------------- ---------------------------------

setFramerate(F32 * framerate)

Sets the framerate (and fixes it if its invalid)

setResolution(Point2I * resolution)

Sets the output resolution (and fixes it if its invalid)

Reimplemented by: VideoEncoderPNG