• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (c) 2023, 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 
17 package android.media;
18 
19 import android.media.ClientInfoParcel;
20 import android.media.MediaResourceSubType;
21 
22 /**
23  * Description of a Client(codec) configuration.
24  *
25  * {@hide}
26  */
27 parcelable ClientConfigParcel {
28     /**
29      * Client info.
30      */
31     ClientInfoParcel clientInfo;
32 
33     /**
34      * Type of codec (Audio/Video/Image).
35      */
36     MediaResourceSubType codecType = MediaResourceSubType.kUnspecifiedSubType;
37 
38     /**
39      * true if this is an encoder, false if this is a decoder.
40      */
41     boolean isEncoder = false;
42 
43     /*
44      * Video Resolution of the codec when it was configured, as width and height (in pixels).
45      */
46     int width = 0;
47     int height = 0;
48 
49     /*
50      * Timestamp (in microseconds) when this configuration is created.
51      */
52     long timeStamp = 0;
53 
54     /*
55      * ID associated with the Codec.
56      * This will be used by the metrics:
57      * - Associate MediaCodecStarted with MediaCodecStopped Atom.
58      * - Correlate MediaCodecReported Atom for codec configuration parameters.
59      */
60     long id = 0;
61 }
62