@UnstableApi
public final class HevcSeiUtil


Utility methods for handling HEVC SEI messages.

Summary

Public methods

static void

Modifies the provided ByteBuffer in place to strip all ITU-T T.35 SEI messages.

Public methods

stripAllT35Metadata

public static void stripAllT35Metadata(ByteBuffer buffer)

Modifies the provided ByteBuffer in place to strip all ITU-T T.35 SEI messages.

This is achieved by masking the payload type of any T.35 SEI message to an unspecified payload type (SEI_PAYLOAD_TYPE_UNSPECIFIED). The NAL unit lengths and message lengths the operation can be done in-place with zero memory allocations, avoiding the need to fully parse emulation prevention bytes or copy the buffer.

Parameters
ByteBuffer buffer

The ByteBuffer containing the HEVC bitstream with Annex B start codes.