C# 클래스 Appspotdemo.Mono.Droid.FramePool

This class acts as an allocation pool meant to minimize GC churn caused by frame allocation & disposal. The public API comprises of just two methods: copyFrame(), which allocates as necessary and copies, and returnFrame(), which returns frame ownership to the pool for use by a later call to copyFrame(). This class is thread-safe; calls to copyFrame() and returnFrame() are allowed to happen on any thread.
파일 보기 프로젝트 열기: kenneththorman/appspotdemo-mono 1 사용 예제들

공개 메소드들

메소드 설명
returnFrame ( VideoRenderer frame ) : void
takeFrame ( VideoRenderer source ) : VideoRenderer.I420Frame
validateDimensions ( VideoRenderer frame ) : bool

Validate that |frame| can be managed by the pool.

비공개 메소드들

메소드 설명
summarizeFrameDimensions ( VideoRenderer frame ) : long

메소드 상세

returnFrame() 공개 메소드

public returnFrame ( VideoRenderer frame ) : void
frame VideoRenderer
리턴 void

takeFrame() 공개 메소드

public takeFrame ( VideoRenderer source ) : VideoRenderer.I420Frame
source VideoRenderer
리턴 VideoRenderer.I420Frame

validateDimensions() 공개 정적인 메소드

Validate that |frame| can be managed by the pool.
public static validateDimensions ( VideoRenderer frame ) : bool
frame VideoRenderer
리턴 bool