C# Class CameraStreamer, ThreeDWorld

Inheritance: MonoBehaviour
Show file Open project: dicarlolab/ThreeDWorld Class Usage Examples

Public Properties

Property Type Description
fileIndex int
preferredImageFormat string
shaderCam Camera
targetCam Camera
testImage UnityEngine.UI.RawImage

Public Methods

Method Description
CaptureCoroutine ( ) : IEnumerator
RequestCaptures ( CaptureRequest newRequest ) : void
SaveOutImages ( byte imageData, int shaderIndex ) : string
SaveOutImages ( CaptureRequest completedRequest ) : void

Private Methods

Method Description
EncodeBMP ( CapturedImage &imgData, Texture2D textureSrc, int width, int height ) : void
OnDisable ( ) : void
ProcessCaptureRequest ( CaptureRequest request ) : void
Start ( ) : void
TakeSnapshotNow ( Shader targetShader ) : CapturedImage
TakeSnapshotNow ( Shader targetShader, string outputFormat = "use_preferred_output_format" ) : CapturedImage
Update ( ) : void
UpdateBMPHeader ( UInt32 dimX, UInt32 dimY ) : void

Method Details

CaptureCoroutine() public method

public CaptureCoroutine ( ) : IEnumerator
return IEnumerator

RequestCaptures() public method

public RequestCaptures ( CaptureRequest newRequest ) : void
newRequest CaptureRequest
return void

SaveOutImages() public static method

public static SaveOutImages ( byte imageData, int shaderIndex ) : string
imageData byte
shaderIndex int
return string

SaveOutImages() public static method

public static SaveOutImages ( CaptureRequest completedRequest ) : void
completedRequest CaptureRequest
return void

Property Details

fileIndex public static property

public static int fileIndex
return int

preferredImageFormat public static property

public static string preferredImageFormat
return string

shaderCam public property

public Camera shaderCam
return Camera

targetCam public property

public Camera targetCam
return Camera

testImage public property

public RawImage,UnityEngine.UI testImage
return UnityEngine.UI.RawImage