• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17syntax = "proto2";
18
19package com.android.tv.tuner.data;
20
21option java_package = "com.android.tv.tuner.data";
22option java_outer_classname = "Track";
23
24// Represents a AC3 audio track.
25message AtscAudioTrack {
26  optional string language = 1;
27  optional AudioType audio_type = 2;
28  optional int32 index = 3;
29  optional int32 channel_count = 4;
30  optional int32 sample_rate = 5;
31
32  // Enum describing the types of a audio track.
33  // See ISO/IEC 138181-1:2000(e) Table 2-53.
34  enum AudioType {
35    AUDIOTYPE_UNDEFINED = 0;
36    AUDIOTYPE_CLEAN_EFFECTS = 1;
37    AUDIOTYPE_HEARING_IMPAIRED = 2;
38    AUDIOTYPE_VISUAL_IMPAIRED = 3;
39  }
40}
41
42// Represents a CEA-708 caption track.
43message AtscCaptionTrack {
44  optional string language = 1;
45  optional int32 service_number = 2;
46  optional bool easy_reader = 3;
47  optional bool wide_aspect_ratio = 4;
48}
49
50