Package javaforce.voip
Class RTPH265
java.lang.Object
javaforce.voip.RTPCodec
javaforce.voip.RTPH265
-
Field Summary
-
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 H265 packets.voidencode(byte[] data, int x, int y, int id, PacketReceiver pr) Encodes raw H.265 packets into multiple RTP packets (fragments).static byteget_nal_type(byte[] packet, int offset) static CodecInfogetCodecInfo(Packet sps) static booleanisFrame(byte type) static booleanisIFrame(byte type) static booleanisKeyFrame(byte type) static booleanisSPS(byte type) voidsetLog(int id)
-
Constructor Details
-
RTPH265
public RTPH265()
-
-
Method Details
-
setLog
public void setLog(int id) -
encode
Encodes raw H.265 packets into multiple RTP packets (fragments). TODO : Use AP packets to increase efficiency. -
decode
Combines RTP fragments into full H265 packets. -
get_nal_type
public static byte get_nal_type(byte[] packet, int offset) -
isKeyFrame
public static boolean isKeyFrame(byte type) -
isIFrame
public static boolean isIFrame(byte type) -
isFrame
public static boolean isFrame(byte type) -
isSPS
public static boolean isSPS(byte type) -
canDecodePacket
public static boolean canDecodePacket(byte type) -
getCodecInfo
-