1/* 2 * Copyright (C) 2015 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package com.android.usbtuner.data; 18 19option java_package = "com.android.usbtuner.data"; 20option java_outer_classname = "Track"; 21 22// Represents a AC3 audio track. 23message AtscAudioTrack { 24 optional string language = 1; 25 optional AudioType audio_type = 2; 26 optional int32 index = 3; 27 optional int32 channel_count = 4; 28 optional int32 sample_rate = 5; 29 30 // Enum describing the types of a audio track. 31 // See ISO/IEC 138181-1:2000(e) Table 2-53. 32 enum AudioType { 33 AUDIOTYPE_UNDEFINED = 0; 34 AUDIOTYPE_CLEAN_EFFECTS = 1; 35 AUDIOTYPE_HEARING_IMPAIRED = 2; 36 AUDIOTYPE_VISUAL_IMPAIRED = 3; 37 } 38} 39 40// Represents a CEA-708 caption track. 41message AtscCaptionTrack { 42 optional string language = 1; 43 optional int32 service_number = 2; 44 optional bool easy_reader = 3; 45 optional bool wide_aspect_ratio = 4; 46} 47 48