aboutsummaryrefslogtreecommitdiff
path: root/proto/track.proto
blob: fe60fed549dac660c09d533f0b8c1ea59de3f615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * Copyright (C) 2015 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.
 */

syntax = "proto2";

package com.android.tv.tuner.data;

option java_package = "com.android.tv.tuner.data";
option java_outer_classname = "Track";

// Represents a AC3 audio track.
message AtscAudioTrack {
  optional string language = 1;
  optional AudioType audio_type = 2;
  optional int32 index = 3;
  optional int32 channel_count = 4;
  optional int32 sample_rate = 5;

  // Enum describing the types of a audio track.
  // See ISO/IEC 138181-1:2000(e) Table 2-53.
  enum AudioType {
    AUDIOTYPE_UNDEFINED = 0;
    AUDIOTYPE_CLEAN_EFFECTS = 1;
    AUDIOTYPE_HEARING_IMPAIRED = 2;
    AUDIOTYPE_VISUAL_IMPAIRED = 3;
  }
}

// Represents a CEA-708 caption track.
message AtscCaptionTrack {
  optional string language = 1;
  optional int32 service_number = 2;
  optional bool easy_reader = 3;
  optional bool wide_aspect_ratio = 4;
}