Class ClosedCaptionCEA608Utils

  • Direct Known Subclasses:
    ClosedCaptionCEA608Utils

    public class ClosedCaptionCEA608Utils
    extends com.wowza.wms.timedtext.cea608.CEA608Constants
    • Field Detail

      • UTF8_CLOSING_DOUBLE_QUOTE

        public static final char UTF8_CLOSING_DOUBLE_QUOTE
        See Also:
        Constant Field Values
      • UTF8_CLOSING_GUILLEMETS

        public static final char UTF8_CLOSING_GUILLEMETS
        See Also:
        Constant Field Values
      • UTF8_CONNECTING_VERTICAL_BAR

        public static final char UTF8_CONNECTING_VERTICAL_BAR
        See Also:
        Constant Field Values
      • UTF8_INVERTED_EXCLAMATION

        public static final char UTF8_INVERTED_EXCLAMATION
        See Also:
        Constant Field Values
      • UTF8_LEFT_SINGLE_QUOTATION

        public static final char UTF8_LEFT_SINGLE_QUOTATION
        See Also:
        Constant Field Values
      • UTF8_OPENING_DOUBLE_QUOTE

        public static final char UTF8_OPENING_DOUBLE_QUOTE
        See Also:
        Constant Field Values
      • UTF8_OPENING_GUILLEMETS

        public static final char UTF8_OPENING_GUILLEMETS
        See Also:
        Constant Field Values
      • UTF8_LOWER_A_WITH_DIAERESIS

        public static final char UTF8_LOWER_A_WITH_DIAERESIS
        See Also:
        Constant Field Values
      • UTF8_LOWER_A_WITH_RING

        public static final char UTF8_LOWER_A_WITH_RING
        See Also:
        Constant Field Values
      • UTF8_LOWER_A_WITH_TILDE

        public static final char UTF8_LOWER_A_WITH_TILDE
        See Also:
        Constant Field Values
      • UTF8_LOWER_E_WITH_DIAERESIS

        public static final char UTF8_LOWER_E_WITH_DIAERESIS
        See Also:
        Constant Field Values
      • UTF8_LOWER_I_WITH_DIAERESIS

        public static final char UTF8_LOWER_I_WITH_DIAERESIS
        See Also:
        Constant Field Values
      • UTF8_LOWER_I_WITH_GRAVE

        public static final char UTF8_LOWER_I_WITH_GRAVE
        See Also:
        Constant Field Values
      • UTF8_LOWER_O_WITH_DIAERESIS

        public static final char UTF8_LOWER_O_WITH_DIAERESIS
        See Also:
        Constant Field Values
      • UTF8_LOWER_O_WITH_GRAVE

        public static final char UTF8_LOWER_O_WITH_GRAVE
        See Also:
        Constant Field Values
      • UTF8_LOWER_O_WITH_STROKE

        public static final char UTF8_LOWER_O_WITH_STROKE
        See Also:
        Constant Field Values
      • UTF8_LOWER_O_WITH_TILDE

        public static final char UTF8_LOWER_O_WITH_TILDE
        See Also:
        Constant Field Values
      • UTF8_LOWER_U_WITH_DIAERESIS

        public static final char UTF8_LOWER_U_WITH_DIAERESIS
        See Also:
        Constant Field Values
      • UTF8_LOWER_U_WITH_GRAVE

        public static final char UTF8_LOWER_U_WITH_GRAVE
        See Also:
        Constant Field Values
      • UTF8_UPPER_A_WITH_ACUTE

        public static final char UTF8_UPPER_A_WITH_ACUTE
        See Also:
        Constant Field Values
      • UTF8_UPPER_A_WITH_CURCUMFLEX

        public static final char UTF8_UPPER_A_WITH_CURCUMFLEX
        See Also:
        Constant Field Values
      • UTF8_UPPER_A_WITH_DIAERESIS

        public static final char UTF8_UPPER_A_WITH_DIAERESIS
        See Also:
        Constant Field Values
      • UTF8_UPPER_A_WITH_GRAVE

        public static final char UTF8_UPPER_A_WITH_GRAVE
        See Also:
        Constant Field Values
      • UTF8_UPPER_A_WITH_RING

        public static final char UTF8_UPPER_A_WITH_RING
        See Also:
        Constant Field Values
      • UTF8_UPPER_A_WITH_TILDE

        public static final char UTF8_UPPER_A_WITH_TILDE
        See Also:
        Constant Field Values
      • UTF8_UPPER_C_WITH_CEDILLA

        public static final char UTF8_UPPER_C_WITH_CEDILLA
        See Also:
        Constant Field Values
      • UTF8_UPPER_E_WITH_ACUTE

        public static final char UTF8_UPPER_E_WITH_ACUTE
        See Also:
        Constant Field Values
      • UTF8_UPPER_E_WITH_CIRCUMFLEX

        public static final char UTF8_UPPER_E_WITH_CIRCUMFLEX
        See Also:
        Constant Field Values
      • UTF8_UPPER_E_WITH_DIAERESIS

        public static final char UTF8_UPPER_E_WITH_DIAERESIS
        See Also:
        Constant Field Values
      • UTF8_UPPER_E_WITH_GRAVE

        public static final char UTF8_UPPER_E_WITH_GRAVE
        See Also:
        Constant Field Values
      • UTF8_UPPER_I_WITH_CIRCUMFLEX

        public static final char UTF8_UPPER_I_WITH_CIRCUMFLEX
        See Also:
        Constant Field Values
      • UTF8_UPPER_I_WITH_DIAERESIS

        public static final char UTF8_UPPER_I_WITH_DIAERESIS
        See Also:
        Constant Field Values
      • UTF8_UPPER_I_WITH_GRAVE

        public static final char UTF8_UPPER_I_WITH_GRAVE
        See Also:
        Constant Field Values
      • UTF8_UPPER_I_WITH_TILDE

        public static final char UTF8_UPPER_I_WITH_TILDE
        See Also:
        Constant Field Values
      • UTF8_UPPER_O_WITH_ACUTE

        public static final char UTF8_UPPER_O_WITH_ACUTE
        See Also:
        Constant Field Values
      • UTF8_UPPER_O_WITH_CIRCUMFLEX

        public static final char UTF8_UPPER_O_WITH_CIRCUMFLEX
        See Also:
        Constant Field Values
      • UTF8_UPPER_O_WITH_DIAERESIS

        public static final char UTF8_UPPER_O_WITH_DIAERESIS
        See Also:
        Constant Field Values
      • UTF8_UPPER_O_WITH_GRAVE

        public static final char UTF8_UPPER_O_WITH_GRAVE
        See Also:
        Constant Field Values
      • UTF8_UPPER_O_WITH_STROKE

        public static final char UTF8_UPPER_O_WITH_STROKE
        See Also:
        Constant Field Values
      • UTF8_UPPER_O_WITH_TILDE

        public static final char UTF8_UPPER_O_WITH_TILDE
        See Also:
        Constant Field Values
      • UTF8_UPPER_U_WITH_ACUTE

        public static final char UTF8_UPPER_U_WITH_ACUTE
        See Also:
        Constant Field Values
      • UTF8_UPPER_U_WITH_CIRCUMFLEX

        public static final char UTF8_UPPER_U_WITH_CIRCUMFLEX
        See Also:
        Constant Field Values
      • UTF8_UPPER_U_WITH_DIAERESIS

        public static final char UTF8_UPPER_U_WITH_DIAERESIS
        See Also:
        Constant Field Values
      • UTF8_UPPER_U_WITH_GRAVE

        public static final char UTF8_UPPER_U_WITH_GRAVE
        See Also:
        Constant Field Values
      • MAX_CCCOUNT

        public static final int MAX_CCCOUNT
        Maximum number of closed caption codes per SEI packet
        See Also:
        Constant Field Values
      • SEI_STARTCODE

        public static final byte[] SEI_STARTCODE
        SEI start code
      • ODDPARITY

        public static final byte[] ODDPARITY
        Odd parity calculator
      • CONTROLCODES_RCL

        public static final short[] CONTROLCODES_RCL
        RCL Resume caption loading [channel]
      • CONTROLCODES_BS

        public static final short[] CONTROLCODES_BS
        BS Backspace [channel]
      • CONTROLCODES_AOF

        public static final short[] CONTROLCODES_AOF
        AOF Reserved (formerly Alarm Off) [channel]
      • CONTROLCODES_AON

        public static final short[] CONTROLCODES_AON
        AON Reserved (formerly Alarm On) [channel]
      • CONTROLCODES_DER

        public static final short[] CONTROLCODES_DER
        DER Delete to End of Row [channel]
      • CONTROLCODES_RU2

        public static final short[] CONTROLCODES_RU2
        RU2 Roll-Up Captions-2 Rows [channel]
      • CONTROLCODES_RU3

        public static final short[] CONTROLCODES_RU3
        RU3 Roll-Up Captions-3 Rows [channel]
      • CONTROLCODES_RU4

        public static final short[] CONTROLCODES_RU4
        RU4 Roll-Up Captions-4 Rows [channel]
      • CONTROLCODES_FON

        public static final short[] CONTROLCODES_FON
        FON Flash On [channel]
      • CONTROLCODES_RDC

        public static final short[] CONTROLCODES_RDC
        RDC Resume Direct Captioning [channel]
      • CONTROLCODES_TR

        public static final short[] CONTROLCODES_TR
        TR Text Restart [channel]
      • CONTROLCODES_RTD

        public static final short[] CONTROLCODES_RTD
        RTD Resume Text Display [channel]
      • CONTROLCODES_EDM

        public static final short[] CONTROLCODES_EDM
        EDM Erase Displayed Memory [channel]
      • CONTROLCODES_CR

        public static final short[] CONTROLCODES_CR
        CR Carriage Return [channel]
      • CONTROLCODES_ENM

        public static final short[] CONTROLCODES_ENM
        ENM Erase Non-Displayed Memory [channel]
      • CONTROLCODES_EOC

        public static final short[] CONTROLCODES_EOC
        EOC End of Caption (Flip Memories) [channel]
      • CONTROLCODES_TO1

        public static final short[] CONTROLCODES_TO1
        TO1 Tab Offset 1 Column [channel]
      • CONTROLCODES_TO2

        public static final short[] CONTROLCODES_TO2
        TO2 Tab Offset 2 Columns [channel]
      • CONTROLCODES_TO3

        public static final short[] CONTROLCODES_TO3
        TO3 Tab Offset 3 Columns [channel]
      • CONTROLCODES_BWO

        public static final short[] CONTROLCODES_BWO
        BWO Background White, Opaque [channel]
      • CONTROLCODES_BWS

        public static final short[] CONTROLCODES_BWS
        BWS Background White, Semi-transparent [channel]
      • CONTROLCODES_BGO

        public static final short[] CONTROLCODES_BGO
        BGO Background Green, Opaque [channel]
      • CONTROLCODES_BGS

        public static final short[] CONTROLCODES_BGS
        BGS Background Green, Semi-transparent [channel]
      • CONTROLCODES_BBO

        public static final short[] CONTROLCODES_BBO
        BBO Background Blue, Opaque [channel]
      • CONTROLCODES_BBS

        public static final short[] CONTROLCODES_BBS
        BBS Background Blue, Semi-transparent [channel]
      • CONTROLCODES_BCO

        public static final short[] CONTROLCODES_BCO
        BCO Background Cyan, Opaque [channel]
      • CONTROLCODES_BCS

        public static final short[] CONTROLCODES_BCS
        BCS Background Cyan, Semi-transparent [channel]
      • CONTROLCODES_BRO

        public static final short[] CONTROLCODES_BRO
        BRO Background Red, Opaque [channel]
      • CONTROLCODES_BRS

        public static final short[] CONTROLCODES_BRS
        BRS Background Red, Semi-transparent [channel]
      • CONTROLCODES_BYO

        public static final short[] CONTROLCODES_BYO
        BYO Background Yellow, Opaque [channel]
      • CONTROLCODES_BYS

        public static final short[] CONTROLCODES_BYS
        BYS Background Yellow, Semi-transparent [channel]
      • CONTROLCODES_BMO

        public static final short[] CONTROLCODES_BMO
        BMO Background Magenta, Opaque [channel]
      • CONTROLCODES_BMS

        public static final short[] CONTROLCODES_BMS
        BMS Background Magenta, Semi-transparent [channel]
      • CONTROLCODES_BAO

        public static final short[] CONTROLCODES_BAO
        BAO Background Black, Opaque [channel]
      • CONTROLCODES_BAS

        public static final short[] CONTROLCODES_BAS
        BAS Background Black, Semi-transparent [channel]
      • CONTROLCODES_BT

        public static final short[] CONTROLCODES_BT
        BT Background Transparent [channel]
      • CONTROLCODES_FA

        public static final short[] CONTROLCODES_FA
        FA Foreground Black [channel]
      • CONTROLCODES_FAU

        public static final short[] CONTROLCODES_FAU
        FAU Foreground Black Underline [channel]
      • LANG_ASCII

        public static final short[] LANG_ASCII
        Select the standard line 21 character set in normal size. [channel]
      • LANG_ASCII_DBL

        public static final short[] LANG_ASCII_DBL
        Select the standard line 21 character set in double size. [channel]
      • LANG_PRIV1

        public static final short[] LANG_PRIV1
        Select the first private character set. [channel]
      • LANG_PRIV2

        public static final short[] LANG_PRIV2
        Select the second private character set. [channel]
      • LANG_GB231280

        public static final short[] LANG_GB231280
        Select the People's Republic of China character set: GB 2312-80. [channel]
      • LANG_KSC56011987

        public static final short[] LANG_KSC56011987
        Select the Korean Standard character set: KSC 5601-1987. [channel]
      • LANG_REG1

        public static final short[] LANG_REG1
        Select the first registered character set. [channel]
      • COUNT_ROWS

        public static final int COUNT_ROWS
        Total number of rows of characters per frame
        See Also:
        Constant Field Values
      • COUNT_COLS

        public static final int COUNT_COLS
        Total number of columns per frame
        See Also:
        Constant Field Values
      • COL0_HIBYTE

        public static final short[][] COL0_HIBYTE
        Move to set color (high-byte) [channel][row]
      • COL0_LOWBYTE

        public static final short[][] COL0_LOWBYTE
        Move to set color (low-byte) [color][row]
      • COLN_LOWBYTE

        public static final short[][] COLN_LOWBYTE
      • FORMAT_COLOR

        public static final short[] FORMAT_COLOR
      • FORMAT_ITALICS_UNDERLINE

        public static final short FORMAT_ITALICS_UNDERLINE
        See Also:
        Constant Field Values
      • UTF8_NOTMATCH

        public static final byte[] UTF8_NOTMATCH
      • UTF8_LOWER_A_WITH_CIRCUMFLEX

        public static final char UTF8_LOWER_A_WITH_CIRCUMFLEX
        See Also:
        Constant Field Values
      • UTF8_LOWER_E_WITH_CIRCUMFLEX

        public static final char UTF8_LOWER_E_WITH_CIRCUMFLEX
        See Also:
        Constant Field Values
      • UTF8_LOWER_I_WITH_CIRCUMFLEX

        public static final char UTF8_LOWER_I_WITH_CIRCUMFLEX
        See Also:
        Constant Field Values
      • UTF8_LOWER_O_WITH_CIRCUMFLEX

        public static final char UTF8_LOWER_O_WITH_CIRCUMFLEX
        See Also:
        Constant Field Values
      • UTF8_LOWER_U_WITH_CIRCUMFLEX

        public static final char UTF8_LOWER_U_WITH_CIRCUMFLEX
        See Also:
        Constant Field Values
      • UTF8_LOWER_A_WITH_GRAVE

        public static final char UTF8_LOWER_A_WITH_GRAVE
        See Also:
        Constant Field Values
      • UTF8_LOWER_E_WITH_GRAVE

        public static final char UTF8_LOWER_E_WITH_GRAVE
        See Also:
        Constant Field Values
      • CEA608_MUSICAL_NOTE

        public static byte[] CEA608_MUSICAL_NOTE
      • CEA608_SOLID_BLOCK

        public static byte[] CEA608_SOLID_BLOCK
      • UTF8MAP

        public static final byte[][] UTF8MAP
      • CEA608_EXTENDED_NA_MAP

        public static final char[] CEA608_EXTENDED_NA_MAP
      • CEA608_EXTENDED_FR_SP_MAP

        public static final char[] CEA608_EXTENDED_FR_SP_MAP
      • CEA608_EXTENDED_PORT_GERMAN_DANISH_MAP

        public static final char[] CEA608_EXTENDED_PORT_GERMAN_DANISH_MAP
    • Constructor Detail

      • ClosedCaptionCEA608Utils

        public ClosedCaptionCEA608Utils()
    • Method Detail

      • charUTF8ToCAE608

        public static byte[] charUTF8ToCAE608​(com.wowza.wms.timedtext.cea608.CEACaptionConversionContext ceaContext,
                                              String text,
                                              int pos,
                                              String characterSet,
                                              int channel)
      • charUTF8ToCAE608

        public static byte[] charUTF8ToCAE608​(String text,
                                              int pos,
                                              String characterSet,
                                              int channel)
      • cea608CharToCharUTF8

        public static char cea608CharToCharUTF8​(short b)
      • calcParity

        public static byte calcParity​(byte inByte)
      • calcParity

        public static short calcParity​(short inShort)
      • checkParity

        public static boolean checkParity​(byte inByte)
      • checkParity

        public static boolean checkParity​(short inShort)
      • cea608ExtendedCharacterToUTF8

        public static Character cea608ExtendedCharacterToUTF8​(short command)