/// <summary>
 /// This function is called when the MonoBehaviour will be destroyed.
 /// </summary>
 private void OnDestroy()
 {
     if (m_TextureReaderApi != null)
     {
         m_TextureReaderApi.Destroy();
         m_TextureReaderApi = null;
     }
 }
 /// <summary>
 /// Start is called on the frame when a script is enabled just before
 /// any of the Update methods is called the first time.
 /// </summary>
 public void Start()
 {
     if (m_TextureReaderApi == null)
     {
         m_TextureReaderApi = new TextureReaderApi();
         m_Command          = CommandType.Create;
         m_ImageBufferIndex = -1;
     }
 }