• 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
21// AOSP_Comment_Out import "third_party/android/nanoproto/nano_descriptor.proto";
22
23option java_package = "com.android.tv.tuner.data";
24option java_outer_classname = "Track";
25
26// Represents a AC3 audio track.
27message AtscAudioTrack {
28// AOSP_Comment_Out   option (proto2.nano.message_as_lite) = false;
29
30  optional string language = 1;
31  optional AudioType audio_type = 2;
32  optional int32 index = 3;
33  optional int32 channel_count = 4;
34  optional int32 sample_rate = 5;
35
36  // Enum describing the types of a audio track.
37  // See ISO/IEC 138181-1:2000(e) Table 2-53.
38  enum AudioType {
39// AOSP_Comment_Out     option (proto2.nano.enum_as_lite) = false;
40
41    AUDIOTYPE_UNDEFINED = 0;
42    AUDIOTYPE_CLEAN_EFFECTS = 1;
43    AUDIOTYPE_HEARING_IMPAIRED = 2;
44    AUDIOTYPE_VISUAL_IMPAIRED = 3;
45  }
46}
47
48// Represents a CEA-708 caption track.
49message AtscCaptionTrack {
50// AOSP_Comment_Out   option (proto2.nano.message_as_lite) = false;
51
52  optional string language = 1;
53  optional int32 service_number = 2;
54  optional bool easy_reader = 3;
55  optional bool wide_aspect_ratio = 4;
56}
57
58