From 6d8f739f0a661cec95c8627b951ebd4527199095 Mon Sep 17 00:00:00 2001 From: Emil Ivov <emcho@jitsi.org> Date: Tue, 30 Oct 2012 14:50:53 +0000 Subject: [PATCH] Moves Constants to the serivce package so that it would be accessible for other packages that need to access a PT name --- .../jitsi/impl/neomedia/codec/Constants.java | 133 ------------------ 1 file changed, 133 deletions(-) delete mode 100644 src/org/jitsi/impl/neomedia/codec/Constants.java diff --git a/src/org/jitsi/impl/neomedia/codec/Constants.java b/src/org/jitsi/impl/neomedia/codec/Constants.java deleted file mode 100644 index fb952939..00000000 --- a/src/org/jitsi/impl/neomedia/codec/Constants.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Jitsi, the OpenSource Java VoIP and Instant Messaging client. - * - * Distributable under LGPL license. - * See terms of license at gnu.org. - */ -package org.jitsi.impl.neomedia.codec; - -import org.jitsi.util.*; - -/** - * Allows start import of <tt>org.jitsi.impl.neomedia.codec</tt> - * in order to get the constants define in - * <tt>org.jitsi.impl.neomedia.codec.Constants</tt> without star - * import of <tt>org.jitsi.impl.neomedia.codec</tt>. - * - * @author Lubomir Marinov - */ -public class Constants -{ - /** - * The ALAW/RTP constant. - */ - public static final String ALAW_RTP = "ALAW/rtp"; - - /** - * The G722 constant. - */ - public static final String G722 = "g722"; - - /** - * The G722/RTP constant. - */ - public static final String G722_RTP = "g722/rtp"; - - /** - * The iLBC constant. - */ - public static final String ILBC = "ilbc"; - - /** - * The iLBC/RTP constant. - */ - public static final String ILBC_RTP = "ilbc/rtp"; - - /** - * The SILK constant. - */ - public static final String SILK = "SILK"; - - /** - * The SILK/RTP constant. - */ - public static final String SILK_RTP = "SILK/rtp"; - - /** - * The SPEEX constant. - */ - public static final String SPEEX = "speex"; - - /** - * The SPEEX/RTP constant. - */ - public static final String SPEEX_RTP = "speex/rtp"; - - /** - * The OPUS/RTP constant. - */ - public static final String OPUS_RTP = "opus/rtp"; - - /** - * The H264 constant. - */ - public static final String H264 = "h264"; - - /** - * The H264/RTP constant. - */ - public static final String H264_RTP = "h264/rtp"; - - /** - * The H263+ constant. - */ - public static final String H263P = "H263-1998"; - - /** - * The H263+/RTP constant. - */ - public static final String H263P_RTP = "h263-1998/rtp"; - - /** - * Pseudo format representing DTMF tones sent over RTP. - */ - public static final String TELEPHONE_EVENT = "telephone-event"; - - /** - * mode : Frame size for the encoding/decoding - * 20 - 20 ms - * 30 - 30 ms - */ - public static int ILBC_MODE = 30; - - /** - * Default video width. - */ - public static final int VIDEO_WIDTH; - - /** - * Default video height. - */ - public static final int VIDEO_HEIGHT; - - static - { - - /* - * On Mac OS X, the Apple iSight camera reports two sizes 640x480 and - * 320x240 if we use the default size 352x288 we must use source format - * 640x480 in this situation we suffer from high cpu usage as every - * frame is scaled, so we use the non-standard format 320x240. - */ - if (OSUtils.IS_MAC) - { - VIDEO_WIDTH = 320; - VIDEO_HEIGHT = 240; - } - else - { - VIDEO_WIDTH = 352; - VIDEO_HEIGHT = 288; - } - } -} -- GitLab