blob: 77ef40febbf3cca71368701f596d9e493a3d82f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.neomedia.codec;
import net.java.sip.communicator.util.*;
/**
* Allows start import of <tt>net.java.sip.communicator.impl.neomedia.codec</tt>
* in order to get the constants define in
* <tt>net.java.sip.communicator.impl.neomedia.codec.Constants</tt> without star
* import of <tt>net.java.sip.communicator.impl.neomedia.codec</tt>.
*
* @author Lubomir Marinov
*/
public class Constants
{
public static final String ALAW_RTP = "ALAW/rtp";
public static final String SPEEX_RTP = "speex/rtp";
public static final String SPEEX = "speex";
public static final String ILBC_RTP = "ilbc/rtp";
public static final String ILBC = "ilbc";
/**
* Pseudo format representing DTMF tones sent over RTP.
*/
public static final String TELEPHONE_EVENT = "telephone-event";
public static final String H264_RTP = "h264/rtp";
public static final String H264 = "h264";
public static final int H264_RTP_SDP = 99;
/**
* mode : Frame size for the encoding/decoding
* 20 - 20 ms
* 30 - 30 ms
*/
public static int ILBC_MODE = 30;
public static final int VIDEO_WIDTH;
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;
}
}
}
|