input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
protected void remove participant participant p if this rtp session mc session this receivers remove p this ssrc table remove p ssrc p
|
remove a participant from all tables
|
protected participant get participant long ssrc participant p null p ssrc table get ssrc return p
|
find a participant based on the ssrc
|
protected void write headers byte a byte 0 a byte version 6 a byte padding 5 a byte item count raw pkt 0 a byte a byte 0 a byte packet type raw pkt 1 a byte if raw pkt length 4 0 logger warning rtcp pkt write headers raw pkt was not a multiple of 32 bits 4 octets byte some bytes static procs u int int to byte word raw pkt length 4 1 raw pkt 2 some bytes 0 raw pkt 3 some bytes 1
|
writes the common header of rtcp packets
|
protected void encode logger warning rtcp pkt encode should never be invoked this packet type
|
this is just a dummy to make eclipse complain less
|
protected boolean check inet address adr participant database part db multicast we have to be naive if part db rtp session mc session adr equals part db rtp session mc group return true see whether this participant is known participant part part db get participant this ssrc if part null part rtcp address get address equals adr return true if not we should look for someone without ssrc with his ip address return false
|
check whether this packet came from the source we expected
|
public void cname string cname this cname cname
|
overrides cname used for outgoing rtcp packets
|
public void debug print logger finest rtcp pkt sr debug print logger finest ssrc long to string super ssrc ntp ts1 long to string ntp ts1 ntp ts2 long to string ntp ts2 rtp ts long to string rtp ts sender pkt count long to string senders pkt count senders octet count long to string senders oct count if this r reports null system out print part of sender report this r reports debug print logger finest end sender report else logger finest no receiver reports associated with this sender report
|
debug purposes only
|
protected void encode super raw pkt new byte 12 this pkt data length byte tmp static procs u int long to byte word super ssrc system arraycopy tmp 0 super raw pkt 4 4 system arraycopy this pkt name 0 super raw pkt 8 4 system arraycopy this pkt data 0 super raw pkt 12 this pkt data length write headers system out println encode super length raw pkt length pkt data length
|
encode the packet into a byte saved in
|
public string cname return this cname
|
get the current cname used for outgoing sdes packets
|
public int update rtpsock datagram socket new sock if mc session rtp sock new sock return 0 else logger warning can t switch from multicast to unicast return 1
|
change the rtp socket of the session
|
public int update rtcpsock datagram socket new sock if mc session this rtcp session rtcp sock new sock return 0 else logger warning can t switch from multicast to unicast return 1
|
change the rtcp socket of the session
|
public int update rtpsock multicast socket new sock if mc session this rtp mcsock new sock return 0 else logger warning can t switch from unicast to multicast return 1
|
change the rtp multicast socket of the session
|
public int update rtcpsock multicast socket new sock if mc session this rtcp session rtcp mcsock new sock return 0 else logger warning can t switch from unicast to multicast return 1
|
change the rtcp multicast socket of the session
|
public int payload type int payload t if payload t 128 payload t 0 return 1 else this payload type payload t return this payload type
|
update the payload type used for the session
|
public boolean naive pkt reception return naive reception
|
are packets from unknown participants returned to the application
|
public int packet buffer behavior return this pkt buf behavior
|
the number of rtp packets that should be buffered when a packet is
|
public int register avpfintf rtcpavpfintf rtcp avpfintf int max delay int early threshold int regular threshold if this rtcp session null this packet buffer behavior 1 this frame reconstruction false this rtcp avpfintf rtcp avpfintf this fb early threshold early threshold this fb regular threshold regular threshold return 0 else return 1
|
set whether the stack should operate in rfc 4585 mode
|
public void unregister avpfintf this fb early threshold 1 this fb regular threshold 1 this rtcp avpfintf null
|
unregisters the rtcp avpf interface thereby going from
|
public void frame reconstruction boolean toggle this frame reconstruction toggle
|
enable disable frame reconstruction in the packet buffers
|
public boolean frame reconstruction return this frame reconstruction
|
whether the packet buffer will attempt to reconstruct
|
public int session bandwidth return this bandwidth
|
the bandwidth currently allocated to the session
|
public int session bandwidth int bandwidth if bandwidth 1 this bandwidth 8000 else this bandwidth bandwidth return this bandwidth
|
set the bandwidth of the session
|
public int rtcp bandwidth return this rtcp bandwidth
|
rfc 3550 dictates that 5 of the total bandwidth
|
public int rtcp bandwidth int bandwidth if bandwidth 1 this rtcp bandwidth 1 else this rtcp bandwidth bandwidth return this rtcp bandwidth
|
set the rtcp bandwidth see rtcp bandwidth void for details
|
public int fb picture loss indication long ssrc media source int ret 0 if this rtcp avpfintf null return 1 rtcp pkt psfb pkt new rtcp pkt psfb this ssrc ssrc media source pkt make picture loss indication ret this rtcp session add to fb queue ssrc media source pkt if ret 0 this rtcp session wake sender thread ssrc media source return ret
|
adds a picture loss indication to the feedback queue
|
public int fb slic loss indication long ssrc media source int sli first int sli number int sli picture id int ret 0 if this rtcp avpfintf null return 1 rtcp pkt psfb pkt new rtcp pkt psfb this ssrc ssrc media source pkt make slice loss indication sli first sli number sli picture id ret this rtcp session add to fb queue ssrc media source pkt if ret 0 this rtcp session wake sender thread ssrc media source return ret
|
adds a slice loss indication to the feedback queue
|
public int fb ref picture sel indic long ssrc media source int bit padding int payload type byte bit string int ret 0 if this rtcp avpfintf null return 1 rtcp pkt psfb pkt new rtcp pkt psfb this ssrc ssrc media source pkt make ref picture sel indic bit padding payload type bit string ret this rtcp session add to fb queue ssrc media source pkt if ret 0 this rtcp session wake sender thread ssrc media source return ret
|
adds a reference picture selection indication to the feedback queue
|
public int fb app layer feedback long ssrc media source byte bit string int ret 0 if this rtcp avpfintf null return 1 rtcp pkt psfb pkt new rtcp pkt psfb this ssrc ssrc media source pkt make app layer feedback bit string ret this rtcp session add to fb queue ssrc media source pkt if ret 0 this rtcp session wake sender thread ssrc media source return ret
|
adds a picture loss indication to the feedback queue
|
public int fb picture loss indication long ssrc media source int fmt int pid int blp int ret 0 if this rtcp avpfintf null return 1 rtcp pkt rtpfb pkt new rtcp pkt rtpfb this ssrc ssrc media source fmt pid blp ret this rtcp session add to fb queue ssrc media source pkt if ret 0 this rtcp session wake sender thread ssrc media source return ret
|
adds a rtp feedback packet to the feedback queue
|
private int get next seq num seq num 16 bit number if seq num 65536 seq num 0 return seq num
|
fetches the next sequence number for rtp packets
|
private void create random this random new random system current time millis thread current thread get id thread current thread hash code this cname hash code
|
initializes a random variable
|
private void generate seq num if this random null create random seq num this random next int if seq num 0 seq num seq num while seq num 65535 seq num seq num 10
|
generates a random sequence number
|
private void generate ssrc if this random null create random set an ssrc this ssrc this random next int if this ssrc 0 this ssrc this ssrc 1
|
generates a random ssrc
|
protected void resolve ssrc conflict logger info beginning ssrc conflict resolution this conflict count if this conflict count 5 don t send any more regular packets out until we have this sorted out this conflict true send byes rtcp session send byes calculate the next delay rtcp session calculate delay generate a new ssrc for ourselves generate ssrc get the sdes packets out faster rtcp session initial true this conflict false logger info ssrc conflict resolution complete else logger severe too many conflicts there is probably a loop in the network this end session
|
resolve an ssrc conflict
|
protected bipartite node infos create node infos n node return new bipartite node infos
|
surcharge le factory sur les infos
|
public void set accurate text mode boolean b this accurate text mode b if is accurate text mode set font get font
|
sets whether to use accurate text mode when rendering text in eps
|
public boolean is accurate text mode return this accurate text mode
|
returns whether accurate text mode is being used
|
public void set color depth int c if c rgb c grayscale c black and white this color depth c
|
sets the number of colours to use when drawing on the document
|
public int get color depth return this color depth
|
returns the colour depth used for all drawing operations
|
public void close throws ioexception flush this document close
|
closes the eps file being output to the underlying output stream
|
private void append string line this document append this line
|
appends a line to the eps document
|
private point2 d transform float x float y point2 d result new point2 d float x y result this af transform transform result result result set location result get x result get y return result
|
returns the point after it has been transformed by the transformation
|
public void draw string attributed character iterator iterator float x float y if is accurate text mode text layout layout new text layout iterator get font render context shape shape layout get outline affine transform get translate instance x y draw shape fill else append newpath point2 d location transform x y append location get x location get y moveto string buffer buffer new string buffer for char ch iterator first ch character iterator done ch iterator next if ch ch buffer append buffer append ch append buffer to string show
|
draws the characters of an attributed character iterator starting from x y
|
public graphics configuration get device configuration graphics configuration gc null graphics environment ge graphics environment get local graphics environment graphics device gds ge get screen devices for graphics device gd gds graphics configuration gcs gd get configurations if gcs length 0 return gcs 0 return gc
|
returns the device configuration associated with this eps graphics2 d object
|
public void set paint paint paint this paint paint if paint instanceof color set color color paint
|
sets the paint attribute for the eps graphics2 d object
|
public void set stroke stroke s if s instanceof basic stroke this stroke basic stroke s append this stroke get line width setlinewidth float miter limit this stroke get miter limit if miter limit 1 0f miter limit 1 append miter limit setmiterlimit append this stroke get line join setlinejoin append this stroke get end cap setlinecap string buffer dashes new string buffer dashes append float dash array this stroke get dash array if dash array null for float element dash array dashes append element dashes append append dashes to string 0 setdash
|
sets the stroke
|
public void set transform affine transform tx if tx null this af transform new affine transform else this af transform new affine transform tx need to update the stroke and font so they know the scale changed set stroke get stroke set font get font
|
sets the affine transform to be used by this eps graphics2 d
|
public affine transform get transform return new affine transform this af transform
|
gets the affine transform used by this eps graphics2 d
|
public void set background color color if color null this background color color black else this background color color
|
sets the background colour to be used by the clear rect method
|
public color get background return this background color
|
gets the background colour that is used by the clear rect method
|
public void set color color c this color c null color black c if get color depth black and white float value 0 if this color get red this color get green this color get blue 255 1 5 1 value 1 append value setgray else if get color depth grayscale float value this color get red this color get green this color get blue 3 255f append value setgray else append this color get red 255f this color get green 255f this color get blue 255f setrgbcolor
|
sets the color to be used when drawing all future shapes text etc
|
public void set font font font if font null this font font decode null else this font font if is accurate text mode append this font get psname findfont this font get size scalefont setfont
|
sets the font to be used in future text
|
public rectangle get clip bounds if this clip shape null return null return get clip get bounds
|
returns the bounding rectangle of the current clipping area
|
public shape get clip if this clip shape null return null try affine transform t this af transform create inverse t concatenate this clip transform return t create transformed shape this clip shape catch exception e throw new eps exception unable to get inverse of matrix this af transform
|
gets the current clipping area
|
public void set clip shape clip if clip null if this document is clip set append grestore append gsave else this document set clip set true append gsave draw clip clip this clip shape clip this clip transform affine transform this af transform clone else if this document is clip set append grestore this document set clip set false this clip shape null
|
sets the current clipping area to an arbitrary clip shape
|
public void fill oval int x int y int width int height shape shape new ellipse2 d float x y width height draw shape fill
|
fills an oval
|
public void draw arc int x int y int width int height int start angle int arc angle shape shape new arc2 d float x y width height start angle arc angle arc2 d open draw shape
|
draws an arc
|
public void fill arc int x int y int width int height int start angle int arc angle shape shape new arc2 d float x y width height start angle arc angle arc2 d pie draw shape fill
|
fills an arc
|
public void draw polyline int x points int y points int n points if n points 0 general path path new general path path move to x points 0 y points 0 for int i 1 i n points i path line to x points i y points i draw path
|
draws a polyline
|
public void fill polygon polygon p draw p fill
|
fills a polygon
|
public void dispose this document null
|
disposes of all resources used by this eps graphics2 d object
|
public boolean hit clip int x int y int width int height if this clip shape null return true return hit new rectangle x y width height this clip shape true
|
returns true if the specified rectangular area might intersect the current clipping area
|
public rectangle get clip bounds rectangle r if this clip shape null return r rectangle rect get clip bounds r set location int rect get x int rect get y r set size int rect get width int rect get height return r
|
returns the bounding rectangle of the current clipping area
|
public filtered text field super init
|
create a filtered text field
|
public filtered text field int columns super columns init
|
create a filtered text field
|
public void set characters character characters clear characters for character character characters add character character
|
sets the allowable character used for entry validation
|
public void add characters character characters for character character characters add character character
|
adds the character array to the list used for entry validation
|
public void add character character character if allowable contains character allowable add character
|
adds the character to the list used for entry validation
|
public void clear characters allowable clear
|
clears the list of allowable characters for entry validation
|
public void remove characters character characters for character character characters remove character character
|
removes the character array from the list used for entry validation
|
public void remove character character character if allowable contains character allowable remove character
|
removes the character from the list used for entry validation
|
public boolean install string display name string description string dependencies string account string password return install display name description dependencies account password java exe cp system get property java class path xrs this get class get name
|
install the service
|
public void set entry error string entry error this entry error entry error
|
sets the message that is displayed when there is an entry error
|
public boolean uninstall advapi32 advapi32 pointer service manager service boolean success false advapi32 advapi32 instance service manager open service control manager null winsvc sc manager all access if service manager null service advapi32 open service service manager service name winsvc service all access if service null success advapi32 delete service service advapi32 close service handle service advapi32 close service handle service manager return success
|
uninstall the service
|
public void set valid regex string valid regex this valid regex valid regex
|
sets the regular expression that is used for string validation
|
public boolean start advapi32 advapi32 pointer service manager service boolean success false advapi32 advapi32 instance service manager open service control manager null winnt generic execute if service manager null service advapi32 open service service manager service name winnt generic execute if service null success advapi32 start service service 0 null advapi32 close service handle service advapi32 close service handle service manager return success
|
ask the service control manager to start the service
|
public void set valid error string valid error this valid error valid error
|
sets the message that is displayed when there is a validation error
|
public boolean stop throws exception advapi32 advapi32 pointer service manager service advapi32 service status service status boolean success false advapi32 advapi32 instance service manager open service control manager null winnt generic execute if service manager null service advapi32 open service service manager service name winnt generic execute if service null service status new advapi32 service status success advapi32 control service service winsvc service control stop service status advapi32 close service handle service advapi32 close service handle service manager return success
|
ask the service control manager to stop the service
|
public void set balloon border color color border color balloon border color border color
|
sets the color to use for the balloon border
|
public void init advapi32 advapi32 noinspection unused declaration advapi32 service table entry entries new advapi32 service table entry 2 advapi32 service table entry entry service main new service main advapi32 advapi32 instance entry new advapi32 service table entry entry lp service name service name entry lp service proc service main advapi32 start service ctrl dispatcher entry to array 2
|
initialize the service connect to the service control manager
|
public void set balloon background color color background color balloon background color background color
|
sets the color to use for the balloon background
|
private pointer open service control manager string machine int access pointer handle null advapi32 advapi32 advapi32 advapi32 instance handle advapi32 open scmanager machine null access return handle
|
get a handle to the service control manager
|
public void set balloon text color color text color balloon text color text color
|
sets the color to use for the balloon text
|
private void report status int status int win32 exit code int wait hint advapi32 advapi32 advapi32 service status service status advapi32 advapi32 instance service status new advapi32 service status service status dw service type winnt service win32 own process service status dw controls accepted winsvc service accept stop winsvc service accept shutdown service status dw win32 exit code win32 exit code service status dw wait hint wait hint service status dw current state status advapi32 set service status service status handle service status
|
report service status to the service control manager
|
public void set balloon duration integer duration balloon duration duration
|
sets the time in milliseconds that the balloon is visible before
|
public int callback int dw control int dw event type pointer lp event data pointer lp context switch dw control case winsvc service control stop case winsvc service control shutdown report status winsvc service stop pending winerror no error 5000 on stop synchronized wait object wait object notify all return winerror no error
|
called when the service get a control code
|
public string get string value registry root key root key string sub key name string name try return registry get string value root key sub key name name catch unsupported encoding exception e e print stack trace log debug e get message return null
|
read a string value
|
public int get int value registry root key root key string sub key name string name return registry get int value root key sub key name name
|
read an int value
|
public boolean delete value registry root key root key string sub key name string name return registry delete value root key sub key name name
|
delete a value
|
public boolean set string value registry root key root key string sub key name string name string value try return registry set string value root key sub key name name value catch unsupported encoding exception e e print stack trace return false
|
writes a string value
|
public boolean set int value registry root key root key string sub key name string name int value return registry set int value root key sub key name name value
|
writes an int value
|
public boolean value exists registry root key root key string sub key name string name return registry value exists root key sub key name name
|
check for existence of a value
|
public boolean create key registry root key root key string parent string name return registry create key root key parent name
|
create a new key
|
public boolean delete key registry root key root key string parent string name return registry delete key root key parent name
|
delete a key
|
public boolean is vista return this equals operating system windows system get property os name to lower case contains vista
|
returns code true code if windows vista is the current operating
|
public void prepare if get request get method equals ignore case post prevent failures on new string jimage id get request get parameter jimage id if jimage id null jimage id equals jimage jimage manager get new long jimage id
|
grab the entity from the database before populating with request parameters
|
public void set captcha entry point captcha entry point captcha entry point this captcha entry point captcha entry point
|
allow the bean to be configured via spring
|
public void set j captcha response string j captcha response this j captcha response j captcha response
|
the captcha form will use the j captcha response form field to validate
|
public pagination support find page by criteria final detached criteria detached criteria return find page by criteria detached criteria pagination support pagesize 0
|
detached criteria 0
|
public pagination support find page by criteria final detached criteria detached criteria final int start index return find page by criteria detached criteria pagination support pagesize start index
|
detached criteria start index
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.