// %BANNER_BEGIN% // --------------------------------------------------------------------- // %COPYRIGHT_BEGIN% // Copyright (c) 2022-2023 Magic Leap, Inc. All Rights Reserved. // Use of this file is governed by the Magic Leap 2 Software License Agreement, located here: https://www.magicleap.com/software-license-agreement-ml2 // Terms and conditions applicable to third-party materials accompanying this distribution may also be found in the top-level NOTICE file appearing herein. // %COPYRIGHT_END% // --------------------------------------------------------------------- // %BANNER_END% using System; using UnityEngine; namespace MagicLeap.Spectator { public interface IVideoEncoder : IDisposable { public int Width { get; } public int Height { get; } public event Action onFrameEncoded; public void AttachToCamera(Camera camera, Material material); public void Push(Texture frame, Material material); public bool TryRequestSyncFrame(); } }