/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef TEXT_DESCRIPTIONS_H_ #define TEXT_DESCRIPTIONS_H_ #include #include namespace android { class TextDescriptions { public: enum { IN_BAND_TEXT_3GPP = 0x01, OUT_OF_BAND_TEXT_SRT = 0x02, GLOBAL_DESCRIPTIONS = 0x100, LOCAL_DESCRIPTIONS = 0x200, }; static status_t getParcelOfDescriptions( const uint8_t *data, ssize_t size, uint32_t flags, int timeMs, Parcel *parcel); private: TextDescriptions(); enum { // These keys must be in sync with the keys in TimedText.java KEY_DISPLAY_FLAGS = 1, // int KEY_STYLE_FLAGS = 2, // int KEY_BACKGROUND_COLOR_RGBA = 3, // int KEY_HIGHLIGHT_COLOR_RGBA = 4, // int KEY_SCROLL_DELAY = 5, // int KEY_WRAP_TEXT = 6, // int KEY_START_TIME = 7, // int KEY_STRUCT_BLINKING_TEXT_LIST = 8, // List KEY_STRUCT_FONT_LIST = 9, // List KEY_STRUCT_HIGHLIGHT_LIST = 10, // List KEY_STRUCT_HYPER_TEXT_LIST = 11, // List KEY_STRUCT_KARAOKE_LIST = 12, // List KEY_STRUCT_STYLE_LIST = 13, // List