Hololens/Lib/Cameras.cs
//#############################################################################################
/// <summary>
/// Same as <see cref="GetFrame"/> but frame is in jpeg format
/// </summary>
/// <returns> a byte array representing the frame in jpeg format </returns>
Same as  but frame is in jpeg format
Same as but frame is in jpeg format
public byte[] GetFrameJpg()
        {
            if (ReadFrame())
            {
                return ImageConverter.ToJPG(_frame).Result; 
            }
            else
            {
                return null;
            }
        }
public byte [ ] GetFrameJpg ( ) { if ( ReadFrame ( ) ) { return ImageConverter . ToJPG ( _frame ) . Result ; } else { return null ; } }
Same as  but frame is in jpeg format
Same as but frame is in jpeg format
// check if a frame could be returned // return a copy converted
a byte array representing the frame in jpeg format
a byte array representing the frame in jpeg format