C# 클래스 HCS_Encoder.Inputs.Buffers.ImageBuffer

상속: IEncoderBuffer
파일 보기 프로젝트 열기: i-e-b/HLS---Smooth-Encoder 1 사용 예제들

공개 메소드들

메소드 설명
ImageBuffer ( int Width, int Height ) : System

Prepare a set of buffers to accept the images. Incoming frames will be scaled to match the given width and height. For best results, capture and buffer sizes should match. Rescaling does not preserve aspect ratio.

LoadToFrame ( MediaFrame &Frame ) : void

Load the buffer into a MediaFrame for the encoder. IMPORTANT: You must call UnloadFrame after this method is called. For efficiency, unload as soon as possible.

RebufferCapturedFrames ( ) : void

Convert a captured YUV buffer into a scaled YUV buffer

UnloadFrame ( MediaFrame &Frame ) : void

Release memory previously locked by LoadToFrame()

WipeBuffer ( ) : void

Emergeny clear-out. Drop all queued frames

WipeBufferUntil ( double AbandonTime ) : void

Remove all frames captured before the given capture time. They will not be encoded.

비공개 메소드들

메소드 설명
RescaleBuffers ( TimedImage Src, TimedImage Dst ) : void
ScalePlane ( byte Src, byte Dst, int src_w, int src_h, int dst_w, int dst_h, bool HQ ) : void

메소드 상세

ImageBuffer() 공개 메소드

Prepare a set of buffers to accept the images. Incoming frames will be scaled to match the given width and height. For best results, capture and buffer sizes should match. Rescaling does not preserve aspect ratio.
public ImageBuffer ( int Width, int Height ) : System
Width int
Height int
리턴 System

LoadToFrame() 공개 메소드

Load the buffer into a MediaFrame for the encoder. IMPORTANT: You must call UnloadFrame after this method is called. For efficiency, unload as soon as possible.
public LoadToFrame ( MediaFrame &Frame ) : void
Frame MediaFrame
리턴 void

RebufferCapturedFrames() 공개 메소드

Convert a captured YUV buffer into a scaled YUV buffer
public RebufferCapturedFrames ( ) : void
리턴 void

UnloadFrame() 공개 메소드

Release memory previously locked by LoadToFrame()
public UnloadFrame ( MediaFrame &Frame ) : void
Frame MediaFrame
리턴 void

WipeBuffer() 공개 메소드

Emergeny clear-out. Drop all queued frames
public WipeBuffer ( ) : void
리턴 void

WipeBufferUntil() 공개 메소드

Remove all frames captured before the given capture time. They will not be encoded.
public WipeBufferUntil ( double AbandonTime ) : void
AbandonTime double
리턴 void