1a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/*
2a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * Copyright 2014 The Android Open Source Project
3a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar *
4a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * Licensed under the Apache License, Version 2.0 (the "License");
5a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * you may not use this file except in compliance with the License.
6a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * You may obtain a copy of the License at
7a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar *
8a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar *      http://www.apache.org/licenses/LICENSE-2.0
9a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar *
10a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * Unless required by applicable law or agreed to in writing, software
11a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * distributed under the License is distributed on an "AS IS" BASIS,
12a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * See the License for the specific language governing permissions and
14a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * limitations under the License.
15a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar */
16a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
17a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/* NOTE: This file contains several sections for individual OMX include files.
18a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar   Each section has its own include guard.  This file should be included AFTER
19a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar   the OMX include files. */
20a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
21a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifdef OMX_Audio_h
22a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/* asString definitions if media/openmax/OMX_Audio.h was included */
23a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
24a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifndef AS_STRING_FOR_OMX_AUDIO_H
25a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#define AS_STRING_FOR_OMX_AUDIO_H
26a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
27a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_AUDIO_CODINGTYPE i, const char *def = "??") {
28a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
29a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingUnused:     return "Unused";      // unused
30a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingAutoDetect: return "AutoDetect";  // unused
31a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingPCM:        return "PCM";
32a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingADPCM:      return "ADPCM";       // unused
33a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingAMR:        return "AMR";
34a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingGSMFR:      return "GSMFR";
35a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingGSMEFR:     return "GSMEFR";      // unused
36a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingGSMHR:      return "GSMHR";       // unused
37a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingPDCFR:      return "PDCFR";       // unused
38a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingPDCEFR:     return "PDCEFR";      // unused
39a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingPDCHR:      return "PDCHR";       // unused
40a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingTDMAFR:     return "TDMAFR";      // unused
41a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingTDMAEFR:    return "TDMAEFR";     // unused
42a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingQCELP8:     return "QCELP8";      // unused
43a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingQCELP13:    return "QCELP13";     // unused
44a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingEVRC:       return "EVRC";        // unused
45a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingSMV:        return "SMV";         // unused
46a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingG711:       return "G711";
47a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingG723:       return "G723";        // unused
48a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingG726:       return "G726";        // unused
49a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingG729:       return "G729";        // unused
50a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingAAC:        return "AAC";
51a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingMP3:        return "MP3";
52a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingSBC:        return "SBC";         // unused
53a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingVORBIS:     return "VORBIS";
54a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingWMA:        return "WMA";         // unused
55a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingRA:         return "RA";          // unused
56a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingMIDI:       return "MIDI";        // unused
57a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingFLAC:       return "FLAC";
58a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                         return def;
59a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
60a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
61a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
62a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_AUDIO_PCMMODETYPE i, const char *def = "??") {
63a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
64a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_PCMModeLinear: return "Linear";
65a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_PCMModeALaw:   return "ALaw";
66a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_PCMModeMULaw:  return "MULaw";
67a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                      return def;
68a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
69a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
70a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
71a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_AUDIO_CHANNELTYPE i, const char *def = "??") {
72a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
73a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_ChannelNone: return "None";  // unused
74a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_ChannelLF:   return "LF";
75a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_ChannelRF:   return "RF";
76a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_ChannelCF:   return "CF";
77a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_ChannelLS:   return "LS";
78a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_ChannelRS:   return "RS";
79a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_ChannelLFE:  return "LFE";
80a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_ChannelCS:   return "CS";
81a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_ChannelLR:   return "LR";
82a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_ChannelRR:   return "RR";
83a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                    return def;
84a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
85a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
86a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
87a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_AUDIO_CHANNELMODETYPE i, const char *def = "??") {
88a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
89a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_ChannelModeStereo:      return "Stereo";
90a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_ChannelModeJointStereo: return "JointStereo";
91a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_ChannelModeDual:        return "Dual";
92a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_ChannelModeMono:        return "Mono";
93a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                               return def;
94a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
95a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
96a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
97a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_AUDIO_AACSTREAMFORMATTYPE i, const char *def = "??") {
98a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
99a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_AACStreamFormatMP2ADTS: return "MP2ADTS";
100a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AACStreamFormatMP4ADTS: return "MP4ADTS";
101a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_AACStreamFormatMP4LOAS: return "MP4LOAS";
102a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_AACStreamFormatMP4LATM: return "MP4LATM";
103a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_AACStreamFormatADIF:    return "ADIF";
104a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AACStreamFormatMP4FF:   return "MP4FF";
105a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_AACStreamFormatRAW:     return "RAW";
106a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                               return def;
107a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
108a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
109a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
110a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_AUDIO_AMRFRAMEFORMATTYPE i, const char *def = "??") {
111a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
112a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_AMRFrameFormatConformance: return "Conformance";
113a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_AMRFrameFormatIF1:         return "IF1";
114a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_AMRFrameFormatIF2:         return "IF2";
115a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRFrameFormatFSF:         return "FSF";
116a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_AMRFrameFormatRTPPayload:  return "RTPPayload";
117a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_AMRFrameFormatITU:         return "ITU";
118a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                                  return def;
119a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
120a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
121a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
122a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_AUDIO_AMRBANDMODETYPE i, const char *def = "??") {
123a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
124a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeUnused: return "Unused";
125a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeNB0:    return "NB0";
126a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeNB1:    return "NB1";
127a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeNB2:    return "NB2";
128a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeNB3:    return "NB3";
129a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeNB4:    return "NB4";
130a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeNB5:    return "NB5";
131a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeNB6:    return "NB6";
132a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeNB7:    return "NB7";
133a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeWB0:    return "WB0";
134a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeWB1:    return "WB1";
135a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeWB2:    return "WB2";
136a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeWB3:    return "WB3";
137a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeWB4:    return "WB4";
138a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeWB5:    return "WB5";
139a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeWB6:    return "WB6";
140a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeWB7:    return "WB7";
141a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRBandModeWB8:    return "WB8";
142a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                          return def;
143a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
144a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
145a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
146a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_AUDIO_AMRDTXMODETYPE i, const char *def = "??") {
147a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
148a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_AMRDTXModeOff:    return "ModeOff";
149a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_AMRDTXModeOnVAD1: return "ModeOnVAD1";
150a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_AMRDTXModeOnVAD2: return "ModeOnVAD2";
151a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_AMRDTXModeOnAuto: return "ModeOnAuto";
152a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_AUDIO_AMRDTXasEFR:      return "asEFR";
153a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                         return def;
154a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
155a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
156a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
157a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // AS_STRING_FOR_OMX_AUDIO_H
158a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
159a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // OMX_Audio_h
160a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
161a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifdef OMX_AudioExt_h
162a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/* asString definitions if media/openmax/OMX_AudioExt.h was included */
163a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
164a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifndef AS_STRING_FOR_OMX_AUDIOEXT_H
165a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#define AS_STRING_FOR_OMX_AUDIOEXT_H
166a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
167a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_AUDIO_CODINGEXTTYPE i, const char *def = "??") {
168a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
169a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingAndroidAC3:  return "AndroidAC3";
170a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_AUDIO_CodingAndroidOPUS: return "AndroidOPUS";
171a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                          return asString((OMX_AUDIO_CODINGTYPE)i, def);
172a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
173a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
174a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
175a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // AS_STRING_FOR_OMX_AUDIOEXT_H
176a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
177a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // OMX_AudioExt_h
178a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
179a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifdef OMX_Component_h
180a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/* asString definitions if media/openmax/OMX_Component.h was included */
181a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
182a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifndef AS_STRING_FOR_OMX_COMPONENT_H
183a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#define AS_STRING_FOR_OMX_COMPONENT_H
184a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
185a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_PORTDOMAINTYPE i, const char *def = "??") {
186a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
187a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_PortDomainAudio: return "Audio";
188a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_PortDomainVideo: return "Video";
189a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_PortDomainImage: return "Image";
190a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_PortDomainOther: return "Other";
191a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                  return def;
192a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
193a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
194a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
195a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // AS_STRING_FOR_OMX_COMPONENT_H
196a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
197a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // OMX_Component_h
198a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
199a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifdef OMX_Core_h
200a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/* asString definitions if media/openmax/OMX_Core.h was included */
201a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
202a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifndef AS_STRING_FOR_OMX_CORE_H
203a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#define AS_STRING_FOR_OMX_CORE_H
204a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
205a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_COMMANDTYPE i, const char *def = "??") {
206a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
207a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_CommandStateSet:    return "StateSet";
208a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_CommandFlush:       return "Flush";
209a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_CommandPortDisable: return "PortDisable";
210a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_CommandPortEnable:  return "PortEnable";
211a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_CommandMarkBuffer:  return "MarkBuffer";
212a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                     return def;
213a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
214a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
215a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
216a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_STATETYPE i, const char *def = "??") {
217a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
218a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_StateInvalid:          return "Invalid";
219a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_StateLoaded:           return "Loaded";
220a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_StateIdle:             return "Idle";
221a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_StateExecuting:        return "Executing";
222a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_StatePause:            return "Pause";
223a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_StateWaitForResources: return "WaitForResources";
224a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                        return def;
225a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
226a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
227a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
228a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_ERRORTYPE i, const char *def = "??") {
229a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
230a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorNone:                               return "None";
231a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorInsufficientResources:              return "InsufficientResources";
232a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorUndefined:                          return "Undefined";
233a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorInvalidComponentName:               return "InvalidComponentName";
234a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorComponentNotFound:                  return "ComponentNotFound";
235a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorInvalidComponent:                   return "InvalidComponent";       // unused
236a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorBadParameter:                       return "BadParameter";
237a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorNotImplemented:                     return "NotImplemented";
238a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorUnderflow:                          return "Underflow";              // unused
239a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorOverflow:                           return "Overflow";               // unused
240a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorHardware:                           return "Hardware";               // unused
241a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorInvalidState:                       return "InvalidState";
242a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorStreamCorrupt:                      return "StreamCorrupt";
243a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorPortsNotCompatible:                 return "PortsNotCompatible";     // unused
244a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorResourcesLost:                      return "ResourcesLost";
245a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorNoMore:                             return "NoMore";
246a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorVersionMismatch:                    return "VersionMismatch";        // unused
247a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorNotReady:                           return "NotReady";               // unused
248a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorTimeout:                            return "Timeout";                // unused
249a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorSameState:                          return "SameState";              // unused
250a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorResourcesPreempted:                 return "ResourcesPreempted";     // unused
251a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorPortUnresponsiveDuringAllocation:
252a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "PortUnresponsiveDuringAllocation";    // unused
253a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorPortUnresponsiveDuringDeallocation:
254a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "PortUnresponsiveDuringDeallocation";  // unused
255a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorPortUnresponsiveDuringStop:
256a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "PortUnresponsiveDuringStop";          // unused
257a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorIncorrectStateTransition:
258a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "IncorrectStateTransition";            // unused
259a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorIncorrectStateOperation:
260a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "IncorrectStateOperation";             // unused
261a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorUnsupportedSetting:                 return "UnsupportedSetting";
262a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorUnsupportedIndex:                   return "UnsupportedIndex";
263a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorBadPortIndex:                       return "BadPortIndex";
264a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorPortUnpopulated:                    return "PortUnpopulated";        // unused
265a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorComponentSuspended:                 return "ComponentSuspended";     // unused
266a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorDynamicResourcesUnavailable:
267a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "DynamicResourcesUnavailable";         // unused
268a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorMbErrorsInFrame:                    return "MbErrorsInFrame";        // unused
269a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorFormatNotDetected:                  return "FormatNotDetected";      // unused
270a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorContentPipeOpenFailed:              return "ContentPipeOpenFailed";  // unused
271a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorContentPipeCreationFailed:
272a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "ContentPipeCreationFailed";           // unused
273a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorSeperateTablesUsed:                 return "SeperateTablesUsed";     // unused
274a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_ErrorTunnelingUnsupported:               return "TunnelingUnsupported";   // unused
275a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                                          return def;
276a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
277a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
278a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
279a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_EVENTTYPE i, const char *def = "??") {
280a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
281a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_EventCmdComplete:               return "CmdComplete";
282a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_EventError:                     return "Error";
283a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_EventMark:                      return "Mark";
284a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_EventPortSettingsChanged:       return "PortSettingsChanged";
285a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_EventBufferFlag:                return "BufferFlag";
286a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_EventResourcesAcquired:         return "ResourcesAcquired";
287a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_EventComponentResumed:          return "ComponentResumed";
288a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_EventDynamicResourcesAvailable: return "DynamicResourcesAvailable";
289a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_EventPortFormatDetected:        return "PortFormatDetected";
290a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                                 return def;
291a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
292a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
293a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
294a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // AS_STRING_FOR_OMX_CORE_H
295a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
296a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // OMX_Core_h
297a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
298a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifdef OMX_Image_h
299a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/* asString definitions if media/openmax/OMX_Image.h was included */
300a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
301a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifndef AS_STRING_FOR_OMX_IMAGE_H
302a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#define AS_STRING_FOR_OMX_IMAGE_H
303a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
304a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_IMAGE_CODINGTYPE i, const char *def = "??") {
305a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
306a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IMAGE_CodingUnused:     return "Unused";
307a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IMAGE_CodingAutoDetect: return "AutoDetect";  // unused
308a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IMAGE_CodingJPEG:       return "JPEG";
309a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IMAGE_CodingJPEG2K:     return "JPEG2K";      // unused
310a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IMAGE_CodingEXIF:       return "EXIF";        // unused
311a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IMAGE_CodingTIFF:       return "TIFF";        // unused
312a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IMAGE_CodingGIF:        return "GIF";         // unused
313a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IMAGE_CodingPNG:        return "PNG";         // unused
314a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IMAGE_CodingLZW:        return "LZW";         // unused
315a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IMAGE_CodingBMP:        return "BMP";         // unused
316a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                         return def;
317a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
318a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
319a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
320a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // AS_STRING_FOR_OMX_IMAGE_H
321a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
322a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // OMX_Image_h
323a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
324a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifdef OMX_Index_h
325a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/* asString definitions if media/openmax/OMX_Index.h was included */
326a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
327a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifndef AS_STRING_FOR_OMX_INDEX_H
328a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#define AS_STRING_FOR_OMX_INDEX_H
329a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
330a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_INDEXTYPE i, const char *def = "??") {
331a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
332a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamPriorityMgmt:                    return "ParamPriorityMgmt";
333a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioInit:                       return "ParamAudioInit";
334a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamImageInit:                       return "ParamImageInit";
335a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamVideoInit:                       return "ParamVideoInit";
336a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamOtherInit:                       return "ParamOtherInit";
337a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamNumAvailableStreams:             return "ParamNumAvailableStreams";
338a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamActiveStream:                    return "ParamActiveStream";
339a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamSuspensionPolicy:                return "ParamSuspensionPolicy";
340a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamComponentSuspended:              return "ParamComponentSuspended";
341a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCapturing:                      return "ConfigCapturing";
342a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCaptureMode:                    return "ConfigCaptureMode";
343a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexAutoPauseAfterCapture:                return "AutoPauseAfterCapture";
344a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamContentURI:                      return "ParamContentURI";
345a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamCustomContentPipe:               return "ParamCustomContentPipe";
346a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamDisableResourceConcealment:
347a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//          return "ParamDisableResourceConcealment";
348a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigMetadataItemCount:              return "ConfigMetadataItemCount";
349a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigContainerNodeCount:             return "ConfigContainerNodeCount";
350a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigMetadataItem:                   return "ConfigMetadataItem";
351a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCounterNodeID:                  return "ConfigCounterNodeID";
352a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamMetadataFilterType:              return "ParamMetadataFilterType";
353a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamMetadataKeyFilter:               return "ParamMetadataKeyFilter";
354a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigPriorityMgmt:                   return "ConfigPriorityMgmt";
355a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamStandardComponentRole:           return "ParamStandardComponentRole";
356a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamPortDefinition:                  return "ParamPortDefinition";
357a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamCompBufferSupplier:              return "ParamCompBufferSupplier";
358a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamAudioPortFormat:                 return "ParamAudioPortFormat";
359a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamAudioPcm:                        return "ParamAudioPcm";
360a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamAudioAac:                        return "ParamAudioAac";
361a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioRa:                         return "ParamAudioRa";
362a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamAudioMp3:                        return "ParamAudioMp3";
363a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioAdpcm:                      return "ParamAudioAdpcm";
364a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioG723:                       return "ParamAudioG723";
365a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioG729:                       return "ParamAudioG729";
366a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamAudioAmr:                        return "ParamAudioAmr";
367a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioWma:                        return "ParamAudioWma";
368a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioSbc:                        return "ParamAudioSbc";
369a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioMidi:                       return "ParamAudioMidi";
370a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioGsm_FR:                     return "ParamAudioGsm_FR";
371a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioMidiLoadUserSound:          return "ParamAudioMidiLoadUserSound";
372a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioG726:                       return "ParamAudioG726";
373a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioGsm_EFR:                    return "ParamAudioGsm_EFR";
374a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioGsm_HR:                     return "ParamAudioGsm_HR";
375a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioPdc_FR:                     return "ParamAudioPdc_FR";
376a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioPdc_EFR:                    return "ParamAudioPdc_EFR";
377a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioPdc_HR:                     return "ParamAudioPdc_HR";
378a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioTdma_FR:                    return "ParamAudioTdma_FR";
379a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioTdma_EFR:                   return "ParamAudioTdma_EFR";
380a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioQcelp8:                     return "ParamAudioQcelp8";
381a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioQcelp13:                    return "ParamAudioQcelp13";
382a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioEvrc:                       return "ParamAudioEvrc";
383a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamAudioSmv:                        return "ParamAudioSmv";
384a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamAudioVorbis:                     return "ParamAudioVorbis";
385a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamAudioFlac:                       return "ParamAudioFlac";
386a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioMidiImmediateEvent:        return "ConfigAudioMidiImmediateEvent";
387a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioMidiControl:               return "ConfigAudioMidiControl";
388a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioMidiSoundBankProgram:
389a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//          return "ConfigAudioMidiSoundBankProgram";
390a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioMidiStatus:                return "ConfigAudioMidiStatus";
391a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioMidiMetaEvent:             return "ConfigAudioMidiMetaEvent";
392a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioMidiMetaEventData:         return "ConfigAudioMidiMetaEventData";
393a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioVolume:                    return "ConfigAudioVolume";
394a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioBalance:                   return "ConfigAudioBalance";
395a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioChannelMute:               return "ConfigAudioChannelMute";
396a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioMute:                      return "ConfigAudioMute";
397a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioLoudness:                  return "ConfigAudioLoudness";
398a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioEchoCancelation:           return "ConfigAudioEchoCancelation";
399a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioNoiseReduction:            return "ConfigAudioNoiseReduction";
400a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioBass:                      return "ConfigAudioBass";
401a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioTreble:                    return "ConfigAudioTreble";
402a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioStereoWidening:            return "ConfigAudioStereoWidening";
403a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioChorus:                    return "ConfigAudioChorus";
404a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioEqualizer:                 return "ConfigAudioEqualizer";
405a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioReverberation:             return "ConfigAudioReverberation";
406a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigAudioChannelVolume:             return "ConfigAudioChannelVolume";
407a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamImagePortFormat:                 return "ParamImagePortFormat";
408a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamFlashControl:                    return "ParamFlashControl";
409a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigFocusControl:                   return "ConfigFocusControl";
410a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamQFactor:                         return "ParamQFactor";
411a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamQuantizationTable:               return "ParamQuantizationTable";
412a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamHuffmanTable:                    return "ParamHuffmanTable";
413a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigFlashControl:                   return "ConfigFlashControl";
414a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamVideoPortFormat:                 return "ParamVideoPortFormat";
415a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamVideoQuantization:               return "ParamVideoQuantization";
416a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamVideoFastUpdate:                 return "ParamVideoFastUpdate";
417a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamVideoBitrate:                    return "ParamVideoBitrate";
418a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamVideoMotionVector:               return "ParamVideoMotionVector";
419a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamVideoIntraRefresh:               return "ParamVideoIntraRefresh";
420a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamVideoErrorCorrection:            return "ParamVideoErrorCorrection";
421a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamVideoVBSMC:                      return "ParamVideoVBSMC";
422a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamVideoMpeg2:                      return "ParamVideoMpeg2";
423a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamVideoMpeg4:                      return "ParamVideoMpeg4";
424a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamVideoWmv:                        return "ParamVideoWmv";
425a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamVideoRv:                         return "ParamVideoRv";
426a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamVideoAvc:                        return "ParamVideoAvc";
427a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamVideoH263:                       return "ParamVideoH263";
428a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamVideoProfileLevelQuerySupported:
429a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "ParamVideoProfileLevelQuerySupported";
430a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamVideoProfileLevelCurrent:        return "ParamVideoProfileLevelCurrent";
431a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexConfigVideoBitrate:                   return "ConfigVideoBitrate";
432a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigVideoFramerate:                 return "ConfigVideoFramerate";
433a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexConfigVideoIntraVOPRefresh:           return "ConfigVideoIntraVOPRefresh";
434a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigVideoIntraMBRefresh:            return "ConfigVideoIntraMBRefresh";
435a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigVideoMBErrorReporting:          return "ConfigVideoMBErrorReporting";
436a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamVideoMacroblocksPerFrame:        return "ParamVideoMacroblocksPerFrame";
437a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigVideoMacroBlockErrorMap:        return "ConfigVideoMacroBlockErrorMap";
438a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamVideoSliceFMO:                   return "ParamVideoSliceFMO";
439a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigVideoAVCIntraPeriod:            return "ConfigVideoAVCIntraPeriod";
440a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigVideoNalSize:                   return "ConfigVideoNalSize";
441a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamCommonDeblocking:                return "ParamCommonDeblocking";
442a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamCommonSensorMode:                return "ParamCommonSensorMode";
443a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamCommonInterleave:                return "ParamCommonInterleave";
444a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonColorFormatConversion:
445a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//          return "ConfigCommonColorFormatConversion";
446a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexConfigCommonScale:                    return "ConfigCommonScale";
447a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonImageFilter:              return "ConfigCommonImageFilter";
448a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonColorEnhancement:         return "ConfigCommonColorEnhancement";
449a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonColorKey:                 return "ConfigCommonColorKey";
450a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonColorBlend:               return "ConfigCommonColorBlend";
451a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonFrameStabilisation:       return "ConfigCommonFrameStabilisation";
452a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonRotate:                   return "ConfigCommonRotate";
453a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonMirror:                   return "ConfigCommonMirror";
454a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonOutputPosition:           return "ConfigCommonOutputPosition";
455a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexConfigCommonInputCrop:                return "ConfigCommonInputCrop";
456a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexConfigCommonOutputCrop:               return "ConfigCommonOutputCrop";
457a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonDigitalZoom:              return "ConfigCommonDigitalZoom";
458a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonOpticalZoom:              return "ConfigCommonOpticalZoom";
459a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonWhiteBalance:             return "ConfigCommonWhiteBalance";
460a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonExposure:                 return "ConfigCommonExposure";
461a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonContrast:                 return "ConfigCommonContrast";
462a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonBrightness:               return "ConfigCommonBrightness";
463a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonBacklight:                return "ConfigCommonBacklight";
464a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonGamma:                    return "ConfigCommonGamma";
465a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonSaturation:               return "ConfigCommonSaturation";
466a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonLightness:                return "ConfigCommonLightness";
467a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonExclusionRect:            return "ConfigCommonExclusionRect";
468a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonDithering:                return "ConfigCommonDithering";
469a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonPlaneBlend:               return "ConfigCommonPlaneBlend";
470a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonExposureValue:            return "ConfigCommonExposureValue";
471a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonOutputSize:               return "ConfigCommonOutputSize";
472a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamCommonExtraQuantData:            return "ParamCommonExtraQuantData";
473a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonFocusRegion:              return "ConfigCommonFocusRegion";
474a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonFocusStatus:              return "ConfigCommonFocusStatus";
475a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommonTransitionEffect:         return "ConfigCommonTransitionEffect";
476a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamOtherPortFormat:                 return "ParamOtherPortFormat";
477a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigOtherPower:                     return "ConfigOtherPower";
478a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigOtherStats:                     return "ConfigOtherStats";
479a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigTimeScale:                      return "ConfigTimeScale";
480a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigTimeClockState:                 return "ConfigTimeClockState";
481a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigTimeActiveRefClock:             return "ConfigTimeActiveRefClock";
482a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigTimeCurrentMediaTime:           return "ConfigTimeCurrentMediaTime";
483a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigTimeCurrentWallTime:            return "ConfigTimeCurrentWallTime";
484a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigTimeCurrentAudioReference:
485a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//          return "ConfigTimeCurrentAudioReference";
486a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigTimeCurrentVideoReference:
487a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//          return "ConfigTimeCurrentVideoReference";
488a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigTimeMediaTimeRequest:           return "ConfigTimeMediaTimeRequest";
489a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigTimeClientStartTime:            return "ConfigTimeClientStartTime";
490a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigTimePosition:                   return "ConfigTimePosition";
491a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigTimeSeekMode:                   return "ConfigTimeSeekMode";
492a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                                            return def;
493a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
494a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
495a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
496a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // AS_STRING_FOR_OMX_INDEX_H
497a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
498a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // OMX_Index_h
499a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
500a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifdef OMX_IndexExt_h
501a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/* asString definitions if media/openmax/OMX_IndexExt.h was included */
502a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
503a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifndef AS_STRING_FOR_OMX_INDEXEXT_H
504a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#define AS_STRING_FOR_OMX_INDEXEXT_H
505a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
506a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_INDEXEXTTYPE i, const char *def = "??") {
507a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
508a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCallbackRequest:            return "ConfigCallbackRequest";
509a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommitMode:                 return "ConfigCommitMode";
510a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigCommit:                     return "ConfigCommit";
511a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamAudioAndroidAc3:             return "ParamAudioAndroidAc3";
512a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamAudioAndroidOpus:            return "ParamAudioAndroidOpus";
513a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamAudioAndroidAacPresentation: return "ParamAudioAndroidAacPresentation";
514a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamNalStreamFormatSupported:    return "ParamNalStreamFormatSupported";
515a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamNalStreamFormat:             return "ParamNalStreamFormat";
516a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamNalStreamFormatSelect:       return "ParamNalStreamFormatSelect";
517a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamVideoVp8:                    return "ParamVideoVp8";
518a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigVideoVp8ReferenceFrame:     return "ConfigVideoVp8ReferenceFrame";
519a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexConfigVideoVp8ReferenceFrameType: return "ConfigVideoVp8ReferenceFrameType";
520a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamVideoAndroidVp8Encoder:      return "ParamVideoAndroidVp8Encoder";
521a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_IndexParamVideoHevc:                   return "ParamVideoHevc";
522a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_IndexParamSliceSegments:               return "ParamSliceSegments";
52376d4c5cf733bbc15026611d555eb1497e5ab25d4Lajos Molnar        case OMX_IndexConfigAutoFramerateConversion:    return "ConfigAutoFramerateConversion";
524a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                                        return asString((OMX_INDEXTYPE)i, def);
525a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
526a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
527a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
528a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // AS_STRING_FOR_OMX_INDEXEXT_H
529a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
530a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // OMX_IndexExt_h
531a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
532a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifdef OMX_IVCommon_h
533a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/* asString definitions if media/openmax/OMX_IVCommon.h was included */
534a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
535a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifndef AS_STRING_FOR_OMX_IVCOMMON_H
536a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#define AS_STRING_FOR_OMX_IVCOMMON_H
537a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
538a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_COLOR_FORMATTYPE i, const char *def = "??") {
539a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
540a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatUnused:
541a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatUnused";
542a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatMonochrome:
543a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatMonochrome";
544a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format8bitRGB332:
545a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format8bitRGB332";
546a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format12bitRGB444:
547a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format12bitRGB444";
548a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format16bitARGB4444:
549a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format16bitARGB4444";
550a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format16bitARGB1555:
551a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format16bitARGB1555";
552a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format16bitRGB565:
553a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format16bitRGB565";
554a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format16bitBGR565:
555a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format16bitBGR565";
556a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format18bitRGB666:
557a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format18bitRGB666";
558a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format18bitARGB1665:
559a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format18bitARGB1665";
560a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format19bitARGB1666:
561a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format19bitARGB1666";
562a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format24bitRGB888:
563a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format24bitRGB888";
564a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format24bitBGR888:
565a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format24bitBGR888";
566a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format24bitARGB1887:
567a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format24bitARGB1887";
568a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format25bitARGB1888:
569a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format25bitARGB1888";
570a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format32bitBGRA8888:
571a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format32bitBGRA8888";
572a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format32bitARGB8888:
573a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format32bitARGB8888";
574a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatYUV411Planar:
575a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatYUV411Planar";
576a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatYUV411PackedPlanar:
577a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatYUV411PackedPlanar";
578a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatYUV420Planar:
579a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatYUV420Planar";
580a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatYUV420PackedPlanar:
581a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatYUV420PackedPlanar";
582a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatYUV420SemiPlanar:
583a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatYUV420SemiPlanar";
584a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatYUV422Planar:
585a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatYUV422Planar";
586a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatYUV422PackedPlanar:
587a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatYUV422PackedPlanar";
588a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatYUV422SemiPlanar:
589a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatYUV422SemiPlanar";
590a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatYCbYCr:
591a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatYCbYCr";
592a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatYCrYCb:
593a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatYCrYCb";
594a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatCbYCrY:
595a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatCbYCrY";
596a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatCrYCbY:
597a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatCrYCbY";
598a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatYUV444Interleaved:
599a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatYUV444Interleaved";
600a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatRawBayer8bit:
601a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatRawBayer8bit";
602a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatRawBayer10bit:
603a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatRawBayer10bit";
604a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatRawBayer8bitcompressed:
605a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatRawBayer8bitcompressed";
606a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatL2:
607a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatL2";
608a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatL4:
609a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatL4";
610a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatL8:
611a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatL8";
612a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatL16:
613a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatL16";
614a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatL24:
615a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatL24";
616a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatL32:
617a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatL32";
618a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatYUV420PackedSemiPlanar:
619a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatYUV420PackedSemiPlanar";
620a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatYUV422PackedSemiPlanar:
621a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatYUV422PackedSemiPlanar";
622a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format18BitBGR666:
623a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format18BitBGR666";
624a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format24BitARGB6666:
625a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format24BitARGB6666";
626a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_Format24BitABGR6666:
627a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_Format24BitABGR6666";
628a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatAndroidOpaque:
629a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatAndroidOpaque";
630a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_COLOR_FormatYUV420Flexible:
631a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "COLOR_FormatYUV420Flexible";
632a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_TI_COLOR_FormatYUV420PackedSemiPlanar:
633a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "TI_COLOR_FormatYUV420PackedSemiPlanar";
634a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_QCOM_COLOR_FormatYVU420SemiPlanar:
635a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return "QCOM_COLOR_FormatYVU420SemiPlanar";
636a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_QCOM_COLOR_FormatYUV420PackedSemiPlanar64x32Tile2m8ka:
637a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//          return "QCOM_COLOR_FormatYUV420PackedSemiPlanar64x32Tile2m8ka";
638a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_SEC_COLOR_FormatNV12Tiled:
639a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//          return "SEC_COLOR_FormatNV12Tiled";
640a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_QCOM_COLOR_FormatYUV420PackedSemiPlanar32m:
641a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//          return "QCOM_COLOR_FormatYUV420PackedSemiPlanar32m";
642a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:
643a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar            return def;
644a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
645a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
646a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
647a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // AS_STRING_FOR_OMX_IVCOMMON_H
648a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
649a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // OMX_IVCommon_h
650a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
651a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifdef OMX_Types_h
652a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/* asString definitions if media/openmax/OMX_Types.h was included */
653a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
654a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifndef AS_STRING_FOR_OMX_TYPES_H
655a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#define AS_STRING_FOR_OMX_TYPES_H
656a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
657a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_BOOL i, const char *def = "??") {
658a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
659a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_FALSE: return "FALSE";
660a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_TRUE:  return "TRUE";
661a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:        return def;
662a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
663a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
664a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
665a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_DIRTYPE i, const char *def = "??") {
666a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
667a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_DirInput:  return "Input";
668a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_DirOutput: return "Output";
669a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:            return def;
670a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
671a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
672a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
673a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_ENDIANTYPE i, const char *def = "??") {
674a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
675a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_EndianBig:    return "Big";
676a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_EndianLittle: return "Little";
677a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:               return def;
678a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
679a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
680a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
681a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_NUMERICALDATATYPE i, const char *def = "??") {
682a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
683a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_NumericalDataSigned:   return "Signed";
684a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_NumericalDataUnsigned: return "Unsigned";
685a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                        return def;
686a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
687a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
688a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
689a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // AS_STRING_FOR_OMX_TYPES_H
690a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
691a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // OMX_Types_h
692a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
693a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifdef OMX_Video_h
694a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/* asString definitions if media/openmax/OMX_Video.h was included */
695a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
696a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifndef AS_STRING_FOR_OMX_VIDEO_H
697a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#define AS_STRING_FOR_OMX_VIDEO_H
698a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
699a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_CODINGTYPE i, const char *def = "??") {
700a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
701a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_CodingUnused:     return "Unused";
702a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_CodingAutoDetect: return "AutoDetect";  // unused
703a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_CodingMPEG2:      return "MPEG2";
704a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_CodingH263:       return "H263";
705a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_CodingMPEG4:      return "MPEG4";
706a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_CodingWMV:        return "WMV";         // unused
707a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_CodingRV:         return "RV";          // unused
708a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_CodingAVC:        return "AVC";
709a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_CodingMJPEG:      return "MJPEG";       // unused
710a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_CodingVP8:        return "VP8";
711a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_CodingVP9:        return "VP9";
712a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_CodingHEVC:       return "HEVC";
713a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                         return def;
714a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
715a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
716a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
717a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_CONTROLRATETYPE i, const char *def = "??") {
718a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
719a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_Video_ControlRateDisable:            return "Disable";
720a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_Video_ControlRateVariable:           return "Variable";
721a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_Video_ControlRateConstant:           return "Constant";
722a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_Video_ControlRateVariableSkipFrames: return "VariableSkipFrames";
723a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_Video_ControlRateConstantSkipFrames: return "ConstantSkipFrames";
724a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                                      return def;
725a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
726a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
727a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
728a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_INTRAREFRESHTYPE i, const char *def = "??") {
729a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
730a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_IntraRefreshCyclic:   return "Cyclic";
731a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_IntraRefreshAdaptive: return "Adaptive";
732a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_IntraRefreshBoth:     return "Both";
733a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                             return def;
734a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
735a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
736a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
737a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_H263PROFILETYPE i, const char *def = "??") {
738a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
739a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263ProfileBaseline:           return "Baseline";
740a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263ProfileH320Coding:         return "H320Coding";
741a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263ProfileBackwardCompatible: return "BackwardCompatible";
742a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263ProfileISWV2:              return "ISWV2";
743a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263ProfileISWV3:              return "ISWV3";
744a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263ProfileHighCompression:    return "HighCompression";
745a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263ProfileInternet:           return "Internet";
746a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263ProfileInterlace:          return "Interlace";
747a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263ProfileHighLatency:        return "HighLatency";
748a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                                      return def;
749a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
750a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
751a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
752a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_H263LEVELTYPE i, const char *def = "??") {
753a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
754a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263Level10: return "Level10";
755a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263Level20: return "Level20";
756a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263Level30: return "Level30";
757a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263Level40: return "Level40";
758a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263Level45: return "Level45";
759a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263Level50: return "Level50";
760a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263Level60: return "Level60";
761a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_H263Level70: return "Level70";
762a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                    return def;
763a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
764a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
765a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
766a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_PICTURETYPE i, const char *def = "??") {
767a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
768a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_PictureTypeI:  return "I";
769a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_PictureTypeP:  return "P";
770a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_PictureTypeB:  return "B";
771a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_VIDEO_PictureTypeSI: return "SI";
772a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_VIDEO_PictureTypeSP: return "SP";
773a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_VIDEO_PictureTypeEI: return "EI";
774a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_VIDEO_PictureTypeEP: return "EP";
775a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_VIDEO_PictureTypeS:  return "S";
776a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                      return def;
777a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
778a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
779a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
780a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_MPEG4PROFILETYPE i, const char *def = "??") {
781a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
782a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileSimple:           return "Simple";
783a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileSimpleScalable:   return "SimpleScalable";
784a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileCore:             return "Core";
785a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileMain:             return "Main";
786a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileNbit:             return "Nbit";
787a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileScalableTexture:  return "ScalableTexture";
788a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileSimpleFace:       return "SimpleFace";
789a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileSimpleFBA:        return "SimpleFBA";
790a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileBasicAnimated:    return "BasicAnimated";
791a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileHybrid:           return "Hybrid";
792a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileAdvancedRealTime: return "AdvancedRealTime";
793a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileCoreScalable:     return "CoreScalable";
794a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileAdvancedCoding:   return "AdvancedCoding";
795a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileAdvancedCore:     return "AdvancedCore";
796a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileAdvancedScalable: return "AdvancedScalable";
797a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4ProfileAdvancedSimple:   return "AdvancedSimple";
798a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                                     return def;
799a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
800a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
801a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
802a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_MPEG4LEVELTYPE i, const char *def = "??") {
803a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
804a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4Level0:  return "Level0";
805a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4Level0b: return "Level0b";
806a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4Level1:  return "Level1";
807a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4Level2:  return "Level2";
808a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4Level3:  return "Level3";
809a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4Level4:  return "Level4";
810a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4Level4a: return "Level4a";
811a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_MPEG4Level5:  return "Level5";
812a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                     return def;
813a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
814a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
815a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
816a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_AVCPROFILETYPE i, const char *def = "??") {
817a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
818a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCProfileBaseline: return "Baseline";
819a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCProfileMain:     return "Main";
820a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCProfileExtended: return "Extended";
821a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCProfileHigh:     return "High";
822a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCProfileHigh10:   return "High10";
823a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCProfileHigh422:  return "High422";
824a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCProfileHigh444:  return "High444";
825a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                           return def;
826a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
827a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
828a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
829a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_AVCLEVELTYPE i, const char *def = "??") {
830a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
831a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel1:  return "Level1";
832a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel1b: return "Level1b";
833a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel11: return "Level11";
834a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel12: return "Level12";
835a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel13: return "Level13";
836a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel2:  return "Level2";
837a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel21: return "Level21";
838a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel22: return "Level22";
839a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel3:  return "Level3";
840a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel31: return "Level31";
841a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel32: return "Level32";
842a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel4:  return "Level4";
843a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel41: return "Level41";
844a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel42: return "Level42";
845a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel5:  return "Level5";
846a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel51: return "Level51";
847a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLevel52: return "Level52";
848a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                   return def;
849a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
850a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
851a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
852a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_AVCLOOPFILTERTYPE i, const char *def = "??") {
853a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
854a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_AVCLoopFilterEnable:               return "Enable";
855a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_VIDEO_AVCLoopFilterDisable:              return "Disable";
856a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar//      case OMX_VIDEO_AVCLoopFilterDisableSliceBoundary: return "DisableSliceBoundary";
857a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                                          return def;
858a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
859a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
860a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
861a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // AS_STRING_FOR_OMX_VIDEO_H
862a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
863a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // OMX_Video_h
864a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
865a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifdef OMX_VideoExt_h
866a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/* asString definitions if media/openmax/OMX_VideoExt.h was included */
867a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
868a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#ifndef AS_STRING_FOR_OMX_VIDEOEXT_H
869a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#define AS_STRING_FOR_OMX_VIDEOEXT_H
870a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
871a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_VP8PROFILETYPE i, const char *def = "!!") {
872a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
873a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_VP8ProfileMain:    return "Main";
874a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_VP8ProfileUnknown: return "Unknown";  // unused
875a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                          return def;
876a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
877a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
878a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
879a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_VP8LEVELTYPE i, const char *def = "!!") {
880a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
881a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_VP8Level_Version0: return "_Version0";
882a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_VP8Level_Version1: return "_Version1";
883a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_VP8Level_Version2: return "_Version2";
884a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_VP8Level_Version3: return "_Version3";
885a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_VP8LevelUnknown:   return "Unknown";    // unused
886a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                          return def;
887a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
888a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
889a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
890a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(
891a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        OMX_VIDEO_ANDROID_VPXTEMPORALLAYERPATTERNTYPE i, const char *def = "??") {
892a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
893a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_VPXTemporalLayerPatternNone:   return "VPXTemporalLayerPatternNone";
894a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_VPXTemporalLayerPatternWebRTC: return "VPXTemporalLayerPatternWebRTC";
895a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                                      return def;
896a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
897a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
898a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
899a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_HEVCPROFILETYPE i, const char *def = "!!") {
900a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
901a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCProfileUnknown: return "Unknown";  // unused
902a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCProfileMain:    return "Main";
903a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCProfileMain10:  return "Main10";
904a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                           return def;
905a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
906a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
907a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
908a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnarinline static const char *asString(OMX_VIDEO_HEVCLEVELTYPE i, const char *def = "!!") {
909a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    switch (i) {
910a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCLevelUnknown:    return "LevelUnknown";     // unused
911a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCMainTierLevel1:  return "MainTierLevel1";
912a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCHighTierLevel1:  return "HighTierLevel1";
913a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCMainTierLevel2:  return "MainTierLevel2";
914a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCHighTierLevel2:  return "HighTierLevel2";
915a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCMainTierLevel21: return "MainTierLevel21";
916a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCHighTierLevel21: return "HighTierLevel21";
917a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCMainTierLevel3:  return "MainTierLevel3";
918a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCHighTierLevel3:  return "HighTierLevel3";
919a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCMainTierLevel31: return "MainTierLevel31";
920a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCHighTierLevel31: return "HighTierLevel31";
921a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCMainTierLevel4:  return "MainTierLevel4";
922a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCHighTierLevel4:  return "HighTierLevel4";
923a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCMainTierLevel41: return "MainTierLevel41";
924a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCHighTierLevel41: return "HighTierLevel41";
925a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCMainTierLevel5:  return "MainTierLevel5";
926a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCHighTierLevel5:  return "HighTierLevel5";
927a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCMainTierLevel51: return "MainTierLevel51";
928a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCHighTierLevel51: return "HighTierLevel51";
929a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCMainTierLevel52: return "MainTierLevel52";
930a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCHighTierLevel52: return "HighTierLevel52";
931a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCMainTierLevel6:  return "MainTierLevel6";
932a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCHighTierLevel6:  return "HighTierLevel6";
933a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCMainTierLevel61: return "MainTierLevel61";
934a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCHighTierLevel61: return "HighTierLevel61";
935a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCMainTierLevel62: return "MainTierLevel62";
936a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        case OMX_VIDEO_HEVCHighTierLevel62: return "HighTierLevel62";
937a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar        default:                            return def;
938a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    }
939a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar}
940a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
941a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // AS_STRING_FOR_OMX_VIDEOEXT_H
942a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
943a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar#endif // OMX_VideoExt_h
944