You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/labs/EasyARDemo/Assets/EasyAR/Scripts/CameraSource.cs

45 lines
1.3 KiB

//================================================================================================================================
//
// Copyright (c) 2015-2019 VisionStar Information Technology (Shanghai) Co., Ltd. All Rights Reserved.
// EasyAR is the registered trademark or trademark of VisionStar Information Technology (Shanghai) Co., Ltd in China
// and other countries for the augmented reality technology developed by VisionStar Information Technology (Shanghai) Co., Ltd.
//
//================================================================================================================================
namespace easyar
{
public abstract class CameraSource : FrameSource
{
protected int bufferCapacity;
public virtual int BufferCapacity
{
get
{
return bufferCapacity;
}
set
{
bufferCapacity = value;
}
}
protected virtual void Start()
{
if (!EasyARController.Initialized)
{
return;
}
Open();
}
protected virtual void OnDestroy()
{
Close();
}
public abstract void Open();
public abstract void Close();
}
}