public final class CeaUtil extends Object
Modifier and Type | Field | Description |
---|---|---|
static int |
USER_DATA_IDENTIFIER_GA94 |
|
static int |
USER_DATA_TYPE_CODE_MPEG_CC |
Modifier and Type | Method | Description |
---|---|---|
static void |
consume(long presentationTimeUs,
ParsableByteArray seiBuffer,
TrackOutput[] outputs) |
Consumes the unescaped content of an SEI NAL unit, writing the content of any CEA-608/708
messages as samples to all of the provided outputs.
|
static void |
consumeCcData(long presentationTimeUs,
ParsableByteArray ccDataBuffer,
TrackOutput[] outputs) |
Consumes caption data (cc_data), writing the content as samples to all of the provided outputs.
|
public static final int USER_DATA_IDENTIFIER_GA94
public static final int USER_DATA_TYPE_CODE_MPEG_CC
public static void consume(long presentationTimeUs, ParsableByteArray seiBuffer, TrackOutput[] outputs)
presentationTimeUs
- The presentation time in microseconds for any samples.seiBuffer
- The unescaped SEI NAL unit data, excluding the NAL unit start code and type.outputs
- The outputs to which any samples should be written.public static void consumeCcData(long presentationTimeUs, ParsableByteArray ccDataBuffer, TrackOutput[] outputs)
presentationTimeUs
- The presentation time in microseconds for any samples.ccDataBuffer
- The buffer containing the caption data.outputs
- The outputs to which any samples should be written.