Package javaforce.voip
Class RTPJPEG
java.lang.Object
javaforce.voip.RTPJPEG
- All Implemented Interfaces:
RTPVideoCoder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(byte[] rtp, int offset, int length, PacketReceiver pr) Decodes RTP packets(s) into encoded video data.voidencode(byte[] jpeg, int offset, int length, int x, int y, PacketReceiver pr) Encodes a raw JPEG data into multiple RTP packets.voidsetid(int id) Sets RTP payload ID.
-
Field Details
-
maxSize
public static final int maxSize- See Also:
-
-
Constructor Details
-
RTPJPEG
public RTPJPEG()
-
-
Method Details
-
setid
public void setid(int id) Description copied from interface:RTPVideoCoderSets RTP payload ID. This value is exchanged in SDP packets. For some video codecs this value is fixed and ignored.- Specified by:
setidin interfaceRTPVideoCoder
-
encode
Encodes a raw JPEG data into multiple RTP packets.- Specified by:
encodein interfaceRTPVideoCoder
-
decode
Description copied from interface:RTPVideoCoderDecodes RTP packets(s) into encoded video data. PacketReceiver will receive encoded video data packets which can be decoded to raw video frames using MediaVideoDecoder.- Specified by:
decodein interfaceRTPVideoCoder
-