Class HEVCVideo

All Implemented Interfaces:
IVideoStreamCodec, IoConstants

public class HEVCVideo extends AVCVideo
Red5 video codec for the AVC (h264) video format. Stores DecoderConfigurationRecord and last keyframe.
Author:
Tiago Jacobs (tiago@imdt.com.br), Paul Gregoire (mondain@gmail.com)
  • Field Details

    • log

      private static org.slf4j.Logger log
    • CODEC_NAME

      static final String CODEC_NAME
      AVC video codec constant
      See Also:
  • Constructor Details

    • HEVCVideo

      public HEVCVideo()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface IVideoStreamCodec
      Overrides:
      getName in class AVCVideo
      Returns:
      the name of the video codec.
    • canDropFrames

      public boolean canDropFrames()
      Check if the codec supports frame dropping.
      Specified by:
      canDropFrames in interface IVideoStreamCodec
      Overrides:
      canDropFrames in class AVCVideo
      Returns:
      if the codec supports frame dropping.
    • canHandleData

      public boolean canHandleData(org.apache.mina.core.buffer.IoBuffer data)
      Returns true if the codec knows how to handle the passed stream data.
      Specified by:
      canHandleData in interface IVideoStreamCodec
      Overrides:
      canHandleData in class AVCVideo
      Parameters:
      data - some sample data to see if this codec can handle it
      Returns:
      can this code handle the data.
    • addData

      public boolean addData(org.apache.mina.core.buffer.IoBuffer data, int timestamp)
      Update the state of the codec with the passed data.
      Specified by:
      addData in interface IVideoStreamCodec
      Overrides:
      addData in class AVCVideo
      Parameters:
      data - data to tell the codec we're adding
      timestamp - time associated with the data
      Returns:
      true for success. false for error