fm.liveswitch.h265.Utility Class Reference

Utility methods. More...

Public Member Functions

 Utility ()
 

Static Public Member Functions

static int getNaluType (fm.liveswitch.DataBuffer encodedFrame)
 Gets the NALU type. More...
 
static int getNaluType (fm.liveswitch.DataBuffer encodedFrame, int offset)
 Gets the NALU type at the specified offset. More...
 
static int getStartCodeLength (fm.liveswitch.DataBuffer encodedFrame, int offset)
 Gets the start code length at the specified offset. More...
 
static boolean isIdr (fm.liveswitch.DataBuffer encodedFrame)
 Determines whether the encoded frame starts with an IDR NALU. More...
 
static boolean isIdr (fm.liveswitch.DataBuffer encodedFrame, int offset)
 Determines whether the encoded frame starts with an IDR NALU. More...
 
static boolean isKeyFrame (fm.liveswitch.DataBuffer encodedFrame)
 Determines whether the encoded frame starts with a keyframe (IDR, VPS, PPS, or SPS). More...
 
static boolean isNaluType (int naluType, fm.liveswitch.DataBuffer encodedFrame, int offset)
 Determines whether the encoded frame starts with a given NALU type. More...
 
static boolean isPps (fm.liveswitch.DataBuffer encodedFrame)
 Determines whether the encoded frame starts with a PPS NALU. More...
 
static boolean isPps (fm.liveswitch.DataBuffer encodedFrame, int offset)
 Determines whether the encoded frame starts with a PPS NALU. More...
 
static boolean isSps (fm.liveswitch.DataBuffer encodedFrame)
 Determines whether the encoded frame starts with an SPS NALU. More...
 
static boolean isSps (fm.liveswitch.DataBuffer encodedFrame, int offset)
 Determines whether the encoded frame starts with an SPS NALU. More...
 
static boolean isVps (fm.liveswitch.DataBuffer encodedFrame)
 Determines whether the encoded frame starts with a VPS NALU. More...
 
static boolean isVps (fm.liveswitch.DataBuffer encodedFrame, int offset)
 Determines whether the encoded frame starts with an VPS NALU. More...
 

Detailed Description

Utility methods.

Constructor & Destructor Documentation

◆ Utility()

fm.liveswitch.h265.Utility.Utility ( )

Member Function Documentation

◆ getNaluType() [1/2]

static int fm.liveswitch.h265.Utility.getNaluType ( fm.liveswitch.DataBuffer  encodedFrame)
static

Gets the NALU type.

Parameters
encodedFrameThe encoded frame.

◆ getNaluType() [2/2]

static int fm.liveswitch.h265.Utility.getNaluType ( fm.liveswitch.DataBuffer  encodedFrame,
int  offset 
)
static

Gets the NALU type at the specified offset.

Parameters
encodedFrameThe encoded frame.
offsetThe offset into the encoded frame.

◆ getStartCodeLength()

static int fm.liveswitch.h265.Utility.getStartCodeLength ( fm.liveswitch.DataBuffer  encodedFrame,
int  offset 
)
static

Gets the start code length at the specified offset.

Parameters
encodedFrameThe encoded frame.
offsetThe offset into the encoded frame.

◆ isIdr() [1/2]

static boolean fm.liveswitch.h265.Utility.isIdr ( fm.liveswitch.DataBuffer  encodedFrame)
static

Determines whether the encoded frame starts with an IDR NALU.

Parameters
encodedFrameThe encoded frame.

◆ isIdr() [2/2]

static boolean fm.liveswitch.h265.Utility.isIdr ( fm.liveswitch.DataBuffer  encodedFrame,
int  offset 
)
static

Determines whether the encoded frame starts with an IDR NALU.

Parameters
encodedFrameThe encoded frame.
offsetThe offset into the encoded frame.

◆ isKeyFrame()

static boolean fm.liveswitch.h265.Utility.isKeyFrame ( fm.liveswitch.DataBuffer  encodedFrame)
static

Determines whether the encoded frame starts with a keyframe (IDR, VPS, PPS, or SPS).

Parameters
encodedFrameThe encoded frame.

◆ isNaluType()

static boolean fm.liveswitch.h265.Utility.isNaluType ( int  naluType,
fm.liveswitch.DataBuffer  encodedFrame,
int  offset 
)
static

Determines whether the encoded frame starts with a given NALU type.

Parameters
naluTypeThe NALU type.
encodedFrameThe encoded frame.
offsetThe offset into the encoded frame.

◆ isPps() [1/2]

static boolean fm.liveswitch.h265.Utility.isPps ( fm.liveswitch.DataBuffer  encodedFrame)
static

Determines whether the encoded frame starts with a PPS NALU.

Parameters
encodedFrameThe encoded frame.

◆ isPps() [2/2]

static boolean fm.liveswitch.h265.Utility.isPps ( fm.liveswitch.DataBuffer  encodedFrame,
int  offset 
)
static

Determines whether the encoded frame starts with a PPS NALU.

Parameters
encodedFrameThe encoded frame.
offsetThe offset into the encoded frame.

◆ isSps() [1/2]

static boolean fm.liveswitch.h265.Utility.isSps ( fm.liveswitch.DataBuffer  encodedFrame)
static

Determines whether the encoded frame starts with an SPS NALU.

Parameters
encodedFrameThe encoded frame.

◆ isSps() [2/2]

static boolean fm.liveswitch.h265.Utility.isSps ( fm.liveswitch.DataBuffer  encodedFrame,
int  offset 
)
static

Determines whether the encoded frame starts with an SPS NALU.

Parameters
encodedFrameThe encoded frame.
offsetThe offset into the encoded frame.

◆ isVps() [1/2]

static boolean fm.liveswitch.h265.Utility.isVps ( fm.liveswitch.DataBuffer  encodedFrame)
static

Determines whether the encoded frame starts with a VPS NALU.

Parameters
encodedFrameThe encoded frame.

◆ isVps() [2/2]

static boolean fm.liveswitch.h265.Utility.isVps ( fm.liveswitch.DataBuffer  encodedFrame,
int  offset 
)
static

Determines whether the encoded frame starts with an VPS NALU.

Parameters
encodedFrameThe encoded frame.
offsetThe offset into the encoded frame.