Class RTPJPEG

java.lang.Object
javaforce.voip.RTPJPEG
All Implemented Interfaces:
RTPVideoCoder

public class RTPJPEG extends Object implements RTPVideoCoder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decode(byte[] rtp, int offset, int length, PacketReceiver pr)
    Decodes RTP packets(s) into encoded video data.
    void
    encode(byte[] jpeg, int offset, int length, int x, int y, PacketReceiver pr)
    Encodes a raw JPEG data into multiple RTP packets.
    void
    setid(int id)
    Sets RTP payload ID.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • RTPJPEG

      public RTPJPEG()
  • Method Details

    • setid

      public void setid(int id)
      Description copied from interface: RTPVideoCoder
      Sets RTP payload ID. This value is exchanged in SDP packets. For some video codecs this value is fixed and ignored.
      Specified by:
      setid in interface RTPVideoCoder
    • encode

      public void encode(byte[] jpeg, int offset, int length, int x, int y, PacketReceiver pr)
      Encodes a raw JPEG data into multiple RTP packets.
      Specified by:
      encode in interface RTPVideoCoder
    • decode

      public void decode(byte[] rtp, int offset, int length, PacketReceiver pr)
      Description copied from interface: RTPVideoCoder
      Decodes 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:
      decode in interface RTPVideoCoder