summaryrefslogtreecommitdiff
path: root/omx/openmax/NVOMX_ParserExtensions.h
blob: 0131e7704f8b8a4a540ddc5f40e055b665886021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
/* Copyright (c) 2009-2013 NVIDIA CORPORATION.  All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject
 * to the following conditions:
 * The above copyright notice and this permission notice shall be included
 * in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

/** 
 * @file
 * <b>NVIDIA Tegra: OpenMAX Container Extension Interface</b>
 *
 */

#ifndef NVOMX_ParserExtensions_h_
#define NVOMX_ParserExtensions_h_

/**
 * @defgroup nv_omx_il_parser_reader Container Demux
 *   
 * This is the NVIDIA OpenMAX container demux class extension interface.
 *
 * These extensions include demuxer control and query of meta-data, stream type,
 * cache size, duration, file name and more.
 * 
 * See also \link nv_omx_il_tracklist Container Tracklist Extensions\endlink
 *
 * @ingroup nvomx_container_extension
 * @{
 */

/* MUST ADD NEW TYPES TO END OF ENUM */
typedef enum
{
    NvxStreamType_NONE = 0,
    NvxStreamType_MPEG4,
    NvxStreamType_H264,
    NvxStreamType_H263,
    NvxStreamType_WMV,
    NvxStreamType_JPG,
    NvxStreamType_MP3,
    NvxStreamType_WAV,
    NvxStreamType_AAC,
    NvxStreamType_AACSBR,
    NvxStreamType_BSAC,
    NvxStreamType_WMA,
    NvxStreamType_WMAPro,
    NvxStreamType_WMALossless,
    NvxStreamType_AMRWB,
    NvxStreamType_AMRNB,
    NvxStreamType_VORBIS,
    NvxStreamType_MPEG2V,
    NvxStreamType_AC3,
    NvxStreamType_WMV7,
    NvxStreamType_WMV8,
    NvxStreamType_WMAVoice,
    NvxStreamType_MP2,
    NvxStreamType_ADPCM,
    NvxStreamType_MS_MPG4,
    NvxStreamType_QCELP,
    NvxStreamType_EVRC,
    NvxStreamType_H264Ext,
    NvxStreamType_VP6,
    NvxStreamType_MPEG4Ext,
    NvxStreamType_MJPEG,
    NvxStreamType_Theora,
    NvxStreamType_H264_Secure,
    NvxStreamType_WMV_Secure,
    NvxStreamType_MAX = 0x7FFFFFFF
} ENvxStreamType;

typedef enum
{
    NvxMetadata_Artist,
    NvxMetadata_Album,
    NvxMetadata_Genre,
    NvxMetadata_Title,
    NvxMetadata_Year,
    NvxMetadata_TrackNum,
    NvMMetadata_Encoded,
    NvxMetadata_Comment,
    NvxMetadata_Composer,
    NvxMetadata_Publisher,
    NvxMetadata_OriginalArtist,
    NvxMetadata_AlbumArtist,
    NvxMetadata_Copyright,
    NvxMetadata_Url,
    NvxMetadata_BPM,
    NvxMetadata_CoverArt,
    NvxMetadata_CoverArtURL,
    NvxMetadata_ThumbnailSeektime,
    NvxMetadata_RtcpAppData,
    NvxMetadata_RTCPSdesCname,
    NvxMetadata_RTCPSdesName,
    NvxMetadata_RTCPSdesEmail,
    NvxMetadata_RTCPSdesPhone,
    NvxMetadata_RTCPSdesLoc,
    NvxMetadata_RTCPSdesTool,
    NvxMetadata_RTCPSdesNote,
    NvxMetadata_RTCPSdesPriv,
    NvxMetadata_SeekNotPossible,
    NvxMetadata_MAX = 0x7FFFFFFF
} ENvxMetadataType;

/** Temporary file path parameter for writer components that write files.
 *  See ::NVX_PARAM_FILENAME for details.
 *  @note This is implemented only for 3GP writer.
 */
#define NVX_INDEX_PARAM_TEMPFILEPATH "OMX.Nvidia.index.param.tempfilename"
/** Holds filename for components that read/write files. */
typedef struct NVX_PARAM_TEMPFILEPATH {
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_STRING pTempPath;       /**< Temporary file path as supported by stdio implementation */
} NVX_PARAM_TEMPFILEPATH;


/** Filename parameter for source, demux, and sink components that read/write files.
 *  See ::NVX_PARAM_FILENAME for details.
 */
#define NVX_INDEX_PARAM_FILENAME "OMX.Nvidia.index.param.filename"
/** Holds filename for components that read/write files. */
typedef struct NVX_PARAM_FILENAME {
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_STRING pFilename;       /**< Name of file as supported by stdio implementation */
} NVX_PARAM_FILENAME;

/** Duration parameter for source, demux and sink components that read/write files.
 *  See ::NVX_PARAM_DURATION for details.
 */
#define NVX_INDEX_PARAM_DURATION "OMX.Nvidia.index.param.duration"  
/** Holds duration for components that read/write files. */
typedef struct NVX_PARAM_DURATION {
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_TICKS nDuration;        /**< Duration in microsecs */
} NVX_PARAM_DURATION;

/** Stream type parameter for source, demux and sink components that read/write files.
 *  See ::NVX_PARAM_STREAMTYPE for details.
 */
#define NVX_INDEX_PARAM_STREAMTYPE "OMX.Nvidia.index.param.streamtype"
/** Holds stream type for components that read/write files. */
typedef struct NVX_PARAM_STREAMTYPE {
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_U32 nPort;              /**< Port that this struct applies to */
    ENvxStreamType eStreamType; /**< Stream type */
} NVX_PARAM_STREAMTYPE;
/** Stream Count parameter for finding the no of streams in the file for reader.
 *  See ::NVX_PARAM_STREAMCOUNTfor details.
 */
#define NVX_INDEX_PARAM_STREAMCOUNT "OMX.Nvidia.index.param.streamcount"
/** Holds stream type for components that read/write files. */
typedef struct NVX_PARAM_STREAMCOUNT{
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_U32  StreamCount;               /**< no of streams count  */
} NVX_PARAM_STREAMCOUNT;

/** Audio stream parameters for source, demux and sink components that read/write files.
 *  See ::NVX_PARAM_AUDIOPARAMS for details.
 */
#define NVX_INDEX_PARAM_AUDIOPARAMS "OMX.Nvidia.index.param.audioparams"
/** Holds audio stream info for components that read/write files. */
typedef struct NVX_PARAM_AUDIOPARAMS {
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_U32 nPort;              /**< Port that this struct applies to */
    OMX_U32 nSampleRate;        /**< Sample rate in HZ */
    OMX_U32 nBitRate;           /**< Bits rate in bits per second */
    OMX_U32 nChannels;          /**< Number of channels (mono = 1, stereo = 2, etc) */
    OMX_U32 nBitsPerSample;     /**< Bits per sample */
} NVX_PARAM_AUDIOPARAMS;

/** Metadata config for demux components that read files with meta data.
 * If specified metadata not found, returns empty string or 
 * OMX_ErrorInsufficientResources if sValueStr is too small.
 *
 * See ::NVX_CONFIG_QUERYMETADATA
 */
#define NVX_INDEX_CONFIG_QUERYMETADATA "OMX.Nvidia.index.config.querymetadata"
/** Holds meta data info for demux components. */
typedef struct NVX_CONFIG_QUERYMETADATA {
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    ENvxMetadataType eType;     /**< Meta data type */
    OMX_STRING sValueStr;       /**< String to hold results */
    OMX_U32 nValueLen;          /**< Length of results string */
    OMX_METADATACHARSETTYPE eCharSet;   /**< Character set to use */
} NVX_CONFIG_QUERYMETADATA;
/** Video Header parameter for getting  the video header from parser.
 *  See ::NVX_PARAM_VIDEOHEADER for details.
 */
#define NVX_INDEX_CONFIG_HEADER "OMX.Nvidia.index.param.header"
/** Holds stream type for components that read/write files. */
typedef struct NVX_CONFIG_HEADER{
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_U32 nPortIndex;            /**< Port number the structure applies to */
    OMX_STRING  nBuffer;          /**< the buffer which holds header info  */
    OMX_U32 nBufferlen;            /**>Buffer length */
} NVX_CONFIG_HEADER;

/** Audio Header parameter for getting  the audio header from parser.
 *  See ::NVX_CONFIG_AUDIOHEADER for details.
 */
#define NVX_INDEX_CONFIG_AUDIOHEADER "OMX.Nvidia.index.param.audioheader"
/** Holds stream type for components that read/write files. */
typedef struct NVX_CONFIG_AUDIOHEADER{
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_STRING  nBuffer;          /**< the buffer which holds header info  */
    OMX_U32 nBufferlen;            /**>Buffer length */
} NVX_CONFIG_AUDIOHEADER;
/** WMA Header parameter for getting  the audio header from parser.
 *  See ::NVX_CONFIG_WMAHEADER for details.
 */
#define NVX_INDEX_CONFIG_WMAHEADER "OMX.Nvidia.index.param.wmaheader"
/** Holds stream type for components that read/write files. */
typedef struct NVX_CONFIG_WMAHEADER{
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_STRING  nBuffer;          /**< the buffer which holds header info  */
    OMX_U32 nBufferlen;            /**>Buffer length */
} NVX_CONFIG_WMAHEADER;
#define  NVX_INDEX_CONFIG_MP3TSENABLE  "OMX.Nvidia.index.config.mp3tsenable"
/** Holds a MP3TSEnable  handle. */
typedef struct NVX_CONFIG_MP3TSENABLE
{
    OMX_U32 nSize;                  /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;       /**< NVX extensions specification version information */
    OMX_U32 bMp3Enable;             /**< Enable/Disable flag*/
} NVX_CONFIG_MP3TSENABLE;

/** File cache size config for demux components that read files.
 * See ::NVX_CONFIG_FILECACHESIZE
 */
#define NVX_INDEX_CONFIG_FILECACHESIZE "OMX.Nvidia.index.config.filecachesize"
/** Holds cache size configuration. */
typedef struct NVX_CONFIG_FILECACHESIZE {
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_U32 nFileCacheSize;     /**< in MB, 0 = none, 1 = max */
} NVX_CONFIG_FILECACHESIZE;
/** File cache size config for demux components that read files.
 * See ::NVX_CONFIG_FILECACHESIZE
 */
#define NVX_INDEX_CONFIG_DISABLEBUFFCONFIG "OMX.Nvidia.index.config.disablebuffconfig"
/** Holds cache size configuration. */
typedef struct NVX_CONFIG_DISABLEBUFFCONFIG {
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_BOOL bDisableBuffConfig;     /**< , 0 = enable, 1 = disable */
} NVX_CONFIG_DISABLEBUFFCONFIG;

/** File cache info config for demux components that read files.
 * See ::NVX_CONFIG_FILECACHEINFO
 */
#define NVX_INDEX_CONFIG_FILECACHEINFO "OMX.Nvidia.index.config.filecacheinfo"
/** Holds file cache information. */
typedef struct NVX_CONFIG_FILECACHEINFO {
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_U64 nDataBegin;         /**< Data Begin */
    OMX_U64 nDataFirst;         /**< Data First */
    OMX_U64 nDataCur;           /**< Data Current */
    OMX_U64 nDataLast;          /**< Data Last */
    OMX_U64 nDataEnd;           /**< Data End */
} NVX_CONFIG_FILECACHEINFO;

/** User agent parameters required for streaming playback.
 */
#define NVX_INDEX_PARAM_USERAGENT "OMX.Nvidia.index.param.useragent"
/** Holds user agent info for streaming. */
typedef struct NVX_PARAM_USERAGENT {
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_STRING pUserAgentStr;   /**< User agent info */
} NVX_PARAM_USERAGENT;

/** User agent profile parameters required for streaming playback.
 */
#define NVX_INDEX_PARAM_USERAGENT_PROFILE "OMX.Nvidia.index.param.useragentprofile"
/** Holds user agent profile info for streaming. */
typedef struct NVX_PARAM_USERAGENTPROF {
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_STRING pUserAgentProfStr;   /**< User agent profile info */
} NVX_PARAM_USERAGENTPROF;

/* Charset define to extend OMX_METADATACHARSETTYPE for a U32 type */
#define NVOMX_MetadataCharsetU32    0x10000000
#define NVOMX_MetadataFormatJPEG    0x10000001
#define NVOMX_MetadataFormatPNG     0x10000002
#define NVOMX_MetadataFormatBMP     0x10000003
#define NVOMX_MetadataFormatUnknown 0x10000004
#define NVOMX_MetadataFormatGIF     0x10000005
#define NVOMX_MetadataCharsetU64    0x10000006

/** @} */

/**
 * @defgroup nv_omx_il_parser_dtv DTV Source
 *   
 * This is the NVIDIA OpenMAX DTV source class extension interface. 
 *
 * These extensions include recording and pause mode, source selection, channel
 * info and control and more.
 *
 * @ingroup nvomx_container_extension
 * @{
 */

typedef enum
{
    NvxRecordingMode_Enable = 1,
    NvxRecordingMode_EnableExclusive,
    NvxRecordingMode_Disable,
    NvxRecordingMode_Force32 = 0x7FFFFFFF
} ENvxRecordingMode;

typedef enum
{
    NvxSource_AutoDetect = 1,
    NvxSource_File,
    NvxSource_Force32 = 0x7FFFFFFF
} ENvxSource;

/** Recording mode parameter for DTV components.
 * See ::NVX_PARAM_RECORDINGMODE
 */
#define NVX_INDEX_PARAM_RECORDINGMODE "OMX.Nvidia.index.param.recordingmode"
/** Holds DTV recording mode. */
typedef struct NVX_PARAM_RECORDINGMODE
{
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    ENvxRecordingMode RecordingMode;    /**< Recording mode */
} NVX_PARAM_RECORDINGMODE;

/** Source parameter for DTV components.
 * See ::NVX_PARAM_SOURCE
 */
#define NVX_INDEX_PARAM_SOURCE "OMX.Nvidia.index.param.source"
/** Holds DTV source type. */
typedef struct NVX_PARAM_SOURCE
{
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    ENvxSource Source;          /**< Source type */
} NVX_PARAM_SOURCE;

/** Channel ID parameter for DTV components.
 * See ::NVX_PARAM_CHANNELID
 */
#define NVX_INDEX_PARAM_CHANNELID "OMX.Nvidia.index.param.channelid"
/** Holds DTV channel ID. */
typedef struct NVX_PARAM_CHANNELID
{
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_U32 ChannelID;          /**< Channel ID */
} NVX_PARAM_CHANNELID;


/** Pause config for DTV components.
 * See ::NVX_CONFIG_PAUSEPLAYBACK
 */
#define NVX_INDEX_CONFIG_PAUSEPLAYBACK "OMX.Nvidia.index.config.pauseplayback"
/** Holds data to enable DTV pause. */
typedef struct NVX_CONFIG_PAUSEPLAYBACK
{
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_BOOL bPausePlayback;    /**< Pause if TRUE */
} NVX_CONFIG_PAUSEPLAYBACK;

/** Holds DTV program ID. */
typedef struct ENvxDTVProgRec
{
    OMX_U32 ProgID;
} ENvxDTVProg;

/** Holds a DTV program list. */
typedef struct ENvxDTVProgProgsListRec
{
    OMX_U32 NumProgs;
    ENvxDTVProg *pProgs;
} ENvxDTVProgProgsList;

/** Program list config for DTV components.
 * See ::NVX_CONFIG_PROGRAMS_LIST
 */
#define NVX_INDEX_CONFIG_PROGRAMS_LIST "OMX.Nvidia.index.config.programslist"
/** Holds a DTV program list. */
typedef struct NVX_CONFIG_PROGRAMS_LIST
{
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    ENvxDTVProgProgsList ProgsList; /**< Program list */
} NVX_CONFIG_PROGRAMS_LIST;

/** Current program config for DTV components.
 * See ::NVX_CONFIG_CURRENT_PROGRAM
 */
#define NVX_INDEX_CONFIG_CURRENT_PROGRAM "OMX.Nvidia.index.config.currentprogram"
/** Holds a DTV current program ID. */
typedef struct NVX_CONFIG_CURRENT_PROGRAM
{
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_U32 ProgID;             /**< Current program */
} NVX_CONFIG_CURRENT_PROGRAM;

/** @} */

/**
 * @defgroup nv_omx_il_parser_writer Container Mux
 *   
 * This is the NVIDIA OpenMAX container mux class extension interface. 
 *
 * These extensions include muxer control and query of stream type, cache size, 
 * duration, file name and more.
 *
 * @ingroup nvomx_container_extension
 * @{
 */

/** Maximum number of frames to write to file parameter.
 * See ::OMX_PARAM_U32TYPE
 */
#define NVX_INDEX_PARAM_MAXFRAMES "OMX.Nvidia.index.param.maxframes"

/** Muxer buffer config parameter.
 * @deprecated This parameter is deprecated.
 */
#define NVX_INDEX_PARAM_OTHER_3GPMUX_BUFFERCONFIG  "OMX.Nvidia.index.param.other.3gpmux.bufferconfig"
/** @deprecated This structure is deprecated. */
typedef struct NVX_PARAM_OTHER_3GPMUX_BUFFERCONFIG
{
    OMX_U32 nSize;              /**< Size of the structure in bytes. */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information. */
    OMX_U32 nPortIndex;         /**< Port to which this struct applies. */
    OMX_BOOL bUseCache;         /**< @deprecated This field is deprecated. */
    OMX_U32 nBufferSize;        /**< @deprecated This field is deprecated. */
    OMX_U32 nPageSize;          /**< @deprecated This field is deprecated. */
} NVX_PARAM_OTHER_3GPMUX_BUFFERCONFIG;

/** Current number of audio and video frames config.
 * See ::NVX_CONFIG_3GPMUXGETAVRECFRAMES
 */
#define NVX_INDEX_CONFIG_3GPMUXGETAVRECFRAMES "OMX.Nvidia.index.config.3gpmuxgetavrecframes"
/** Holds a number of audio and video frames. */
typedef struct NVX_CONFIG_3GPMUXGETAVRECFRAMES
{
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_U32 nPortIndex;         /**< Port that this struct applies to */
    OMX_U32 nAudioFrames;       /**< Number of audio frames muxed */
    OMX_U32 nVideoFrames;       /**< Number of video frames muxed */
}NVX_CONFIG_3GPMUXGETAVRECFRAMES;

/** Split filename config.
 * See ::NVX_CONFIG_SPLITFILENAME
 */
#define NVX_INDEX_CONFIG_SPLITFILENAME "OMX.Nvidia.index.config.splitfilename"
/** Holds split filenames. */
typedef struct NVX_CONFIG_SPLITFILENAME
{
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_STRING pFilename;       /**< Name of file as supported by stdio implementation */
}NVX_CONFIG_SPLITFILENAME;

/** Output format parameter for writer.
 *  See ::NVX_PARAM_OUTPUTFORMAT for details.
 */
#define NVX_INDEX_PARAM_OUTPUTFORMAT "OMX.Nvidia.index.param.outputformat"
#define MAX_EXT_LEN 8
/** Holds filename for components that read/write files. */
typedef struct NVX_PARAM_OUTPUTFORMAT {
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_STRING OutputFormat;
} NVX_PARAM_OUTPUTFORMAT;

/** File size parameters for writer components that write files.
 * See ::NVX_PARAM_WRITERFILESIZE
 */
#define NVX_INDEX_PARAM_WRITERFILESIZE "OMX.Nvidia.index.param.writerfilesize"
/** Holds file size configuration. */
typedef struct NVX_PARAM_WRITERFILESIZE {
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_U64 nFileSize;          /**< Maximum file size to write */
} NVX_PARAM_WRITERFILESIZE;


/* FIXME: Remove when parser code is reworked.  Just added to fix a build
 * break.
 */

/** Video Header parameter for getting  the video header from parser.
 *  See ::NVX_PARAM_VIDEOHEADER for details.
 */
#define NVX_INDEX_CONFIG_VIDEOHEADER "OMX.Nvidia.index.param.videoheader"
/** Holds stream type for components that read/write files. */
typedef struct NVX_CONFIG_VIDEOHEADER{
    OMX_U32 nSize;              /**< Size of the structure in bytes */
    OMX_VERSIONTYPE nVersion;   /**< NVX extensions specification version information */
    OMX_STRING  nBuffer;          /**< the buffer which holds header info  */
    OMX_U32 nBufferlen;            /**>Buffer length */
} NVX_CONFIG_VIDEOHEADER;

/** @} */


#endif
/* File EOF */