@Test public void testResolution() { CameraOptions cameraOptions = new CameraOptions(); cameraOptions.setResolution(500, 500); assertEquals(new Point(500, 500), cameraOptions.getResolution()); }
/** * Converts the video orientation into the byte used to transmit int RTP header * * @return Byte representing the video orientation */ public byte getVideoOrientation() { return (byte) ((camera.getValue() << 3) | orientation.getValue()); }
/** * Parses the byte into a VideoOrientation object * * @param videoOrientation Byte representing the video Orientation * @return VideoOrientation object */ public static VideoOrientation parse(byte videoOrientation) { return new VideoOrientation( CameraOptions.convert((videoOrientation & 0x08) >>> 3), Orientation.convert(videoOrientation & 0x07)); }