TSDuck v3.40-3963
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
io.tsduck.DuckContext Class Reference

A wrapper class for C++ DuckContext. More...

Inheritance diagram for io.tsduck.DuckContext:
Collaboration diagram for io.tsduck.DuckContext:

Public Member Functions

 DuckContext (Report report)
 Constructor.
 
native void addStandards (int mask)
 Add a list of standards which are present in the transport stream or context.
 
native void delete ()
 Delete the encapsulated C++ object.
 
native void resetStandards (int mask)
 Reset the list of standards which are present in the transport stream or context.
 
native void setDefaultCASId (short cas)
 Set the default CAS id to use.
 
native boolean setDefaultCharset (String charset)
 Set the default character set for strings.
 
native void setDefaultPDS (int pds)
 Set the default private data specifier to use in the absence of explicit private_data_specifier_descriptor.
 
native boolean setTimeReference (String name)
 Set a non-standard time reference offset using a name.
 
native void setTimeReferenceOffset (long offset)
 Set a non-standard time reference offset.
 
native int standards ()
 Get the list of standards which are present in the transport stream or context.
 

Static Public Attributes

static final int ABNT = 0x40
 Defined by ABNT (Brazil, typically in addition to ISDB).
 
static final int ATSC = 0x08
 Defined by ATSC.
 
static final int DVB = 0x02
 Defined by ETSI/DVB.
 
static final int ISDB = 0x10
 Defined by ISDB.
 
static final int JAPAN = 0x20
 Defined in Japan only (typically in addition to ISDB).
 
static final int MPEG = 0x01
 Defined by MPEG, common to all standards.
 
static final int NONE = 0x00
 No known standard.
 
static final int SCTE = 0x04
 Defined by ANSI/SCTE.
 

Protected Attributes

long nativeObject = 0
 The address of the underlying C++ object.
 

Detailed Description

A wrapper class for C++ DuckContext.

Constructor & Destructor Documentation

◆ DuckContext()

io.tsduck.DuckContext.DuckContext ( Report  report)
inline

Constructor.

Parameters
reportThe report object to use. If null, reports are sent to standard error.

Member Function Documentation

◆ delete()

native void io.tsduck.DuckContext.delete ( )

Delete the encapsulated C++ object.

Reimplemented from io.tsduck.NativeObject.

◆ setDefaultCharset()

native boolean io.tsduck.DuckContext.setDefaultCharset ( String  charset)

Set the default character set for strings.

The default should be the DVB superset of ISO/IEC 6937 as defined in ETSI EN 300 468. Use another default in the context of an operator using an incorrect signalization, assuming another default character set (usually from its own country) or in the context of mixed standards (ISBD/DVB for instance).

Parameters
charsetThe new default character set name or an empty string to revert to the default.
Returns
True on success, False if charset is invalid.

◆ setDefaultCASId()

native void io.tsduck.DuckContext.setDefaultCASId ( short  cas)

Set the default CAS id to use.

Parameters
casDefault CAS id to be used when the CAS is unknown.

◆ setDefaultPDS()

native void io.tsduck.DuckContext.setDefaultPDS ( int  pds)

Set the default private data specifier to use in the absence of explicit private_data_specifier_descriptor.

Parameters
pdsDefault PDS. Use zero to revert to no default.

◆ addStandards()

native void io.tsduck.DuckContext.addStandards ( int  mask)

Add a list of standards which are present in the transport stream or context.

Parameters
maskA bit mask of standards.

◆ standards()

native int io.tsduck.DuckContext.standards ( )

Get the list of standards which are present in the transport stream or context.

Returns
A bit mask of standards.

◆ resetStandards()

native void io.tsduck.DuckContext.resetStandards ( int  mask)

Reset the list of standards which are present in the transport stream or context.

Parameters
maskA bit mask of standards.

◆ setTimeReferenceOffset()

native void io.tsduck.DuckContext.setTimeReferenceOffset ( long  offset)

Set a non-standard time reference offset.

In DVB SI, reference times are UTC. These SI can be reused in non-standard ways where the stored times use another reference. This is the case with ARIB and ABNT variants of ISDB which reuse TOT, TDT and EIT but with another local time reference.

Parameters
offsetOffset from UTC in milli-seconds. Can be positive or negative. The default offset is zero, meaning plain UTC time.

◆ setTimeReference()

native boolean io.tsduck.DuckContext.setTimeReference ( String  name)

Set a non-standard time reference offset using a name.

Parameters
nameTime reference name. The non-standard time reference offset is computed from this name which can be "JST" or "UTC[[+|-]hh[:mm]]".
Returns
True on success, False if name is invalid.

Member Data Documentation

◆ nativeObject

long io.tsduck.NativeObject.nativeObject = 0
protectedinherited

The address of the underlying C++ object.

It is normally accessed by native methods only.


The documentation for this class was generated from the following file: