Package javaforce.voip
Class RTPH264
java.lang.Object
javaforce.voip.RTPH264
- All Implemented Interfaces:
RTPVideoCoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanDecodePacket(byte type) voiddecode(byte[] rtp, int offset, int length, PacketReceiver pr) Combines RTP fragments into full H264 packets.voidencode(byte[] data, int offset, int length, int x, int y, PacketReceiver pr) Encodes raw H.264 packets into multiple RTP packets (fragments).static byteget_nal_type(byte[] packet, int offset) static CodecInfogetCodecInfo(Packet sps) booleanisFrame(byte type) booleanisIFrame(byte type) booleanisKeyFrame(byte type) booleanisStart(byte type) voidsetid(int id) Sets RTP payload ID.voidsetLog(int id)
-
Constructor Details
-
RTPH264
public RTPH264()
-
-
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
-
setLog
public void setLog(int id) -
encode
Encodes raw H.264 packets into multiple RTP packets (fragments).- Specified by:
encodein interfaceRTPVideoCoder
-
decode
Combines RTP fragments into full H264 packets.- Specified by:
decodein interfaceRTPVideoCoder
-
get_nal_type
public static byte get_nal_type(byte[] packet, int offset) -
isKeyFrame
public boolean isKeyFrame(byte type) -
isIFrame
public boolean isIFrame(byte type) -
isFrame
public boolean isFrame(byte type) -
isStart
public boolean isStart(byte type) -
canDecodePacket
public static boolean canDecodePacket(byte type) -
getCodecInfo
-