2015-12-08 13:27:46 +03:00
|
|
|
|
/*
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* Copyright (c) 2008 The Khronos Group Inc.
|
|
|
|
|
*
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* 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
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* to the following conditions:
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* The above copyright notice and this permission notice shall be included
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* in all copies or substantial portions of the Software.
|
|
|
|
|
*
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* 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
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
2015-12-08 13:27:46 +03:00
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/** @file OMX_Other.h - OpenMax IL version 1.1.2
|
|
|
|
|
* The structures needed by Other components to exchange
|
|
|
|
|
* parameters and configuration data with the components.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef OMX_Other_h
|
|
|
|
|
#define OMX_Other_h
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Each OMX header must include all required header files to allow the
|
|
|
|
|
* header to compile without errors. The includes below are required
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* for this header file to compile successfully
|
2015-12-08 13:27:46 +03:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <OMX_Core.h>
|
|
|
|
|
|
|
|
|
|
|
2017-07-06 15:00:35 +03:00
|
|
|
|
/**
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* Enumeration of possible data types which match to multiple domains or no
|
|
|
|
|
* domain at all. For types which are vendor specific, a value above
|
|
|
|
|
* OMX_OTHER_VENDORTSTART should be used.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum OMX_OTHER_FORMATTYPE {
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_OTHER_FormatTime = 0, /**< Transmission of various timestamps, elapsed time,
|
2015-12-08 13:27:46 +03:00
|
|
|
|
time deltas, etc */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_OTHER_FormatPower, /**< Perhaps used for enabling/disabling power
|
2015-12-08 13:27:46 +03:00
|
|
|
|
management, setting clocks? */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_OTHER_FormatStats, /**< Could be things such as frame rate, frames
|
2015-12-08 13:27:46 +03:00
|
|
|
|
dropped, etc */
|
|
|
|
|
OMX_OTHER_FormatBinary, /**< Arbitrary binary data */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_OTHER_FormatVendorReserved = 1000, /**< Starting value for vendor specific
|
2015-12-08 13:27:46 +03:00
|
|
|
|
formats */
|
|
|
|
|
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_OTHER_FormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
|
2015-12-08 13:27:46 +03:00
|
|
|
|
OMX_OTHER_FormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
|
|
|
|
|
OMX_OTHER_FormatMax = 0x7FFFFFFF
|
|
|
|
|
} OMX_OTHER_FORMATTYPE;
|
|
|
|
|
|
2017-07-06 15:00:35 +03:00
|
|
|
|
/**
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* Enumeration of seek modes.
|
|
|
|
|
*/
|
|
|
|
|
typedef enum OMX_TIME_SEEKMODETYPE {
|
|
|
|
|
OMX_TIME_SeekModeFast = 0, /**< Prefer seeking to an approximation
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* of the requested seek position over
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* the actual seek position if it
|
|
|
|
|
* results in a faster seek. */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_TIME_SeekModeAccurate, /**< Prefer seeking to the actual seek
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* position over an approximation
|
|
|
|
|
* of the requested seek position even
|
|
|
|
|
* if it results in a slower seek. */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_TIME_SeekModeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
|
2015-12-08 13:27:46 +03:00
|
|
|
|
OMX_TIME_SeekModeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
|
|
|
|
|
OMX_TIME_SeekModeMax = 0x7FFFFFFF
|
|
|
|
|
} OMX_TIME_SEEKMODETYPE;
|
|
|
|
|
|
|
|
|
|
/* Structure representing the seekmode of the component */
|
|
|
|
|
typedef struct OMX_TIME_CONFIG_SEEKMODETYPE {
|
|
|
|
|
OMX_U32 nSize; /**< size of the structure in bytes */
|
|
|
|
|
OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
|
|
|
|
|
OMX_TIME_SEEKMODETYPE eType; /**< The seek mode */
|
|
|
|
|
} OMX_TIME_CONFIG_SEEKMODETYPE;
|
|
|
|
|
|
2017-07-06 15:00:35 +03:00
|
|
|
|
/** Structure representing a time stamp used with the following configs
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* on the Clock Component (CC):
|
2017-07-06 15:00:35 +03:00
|
|
|
|
*
|
|
|
|
|
* OMX_IndexConfigTimeCurrentWallTime: query of the CC<EFBFBD>s current wall
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* time
|
|
|
|
|
* OMX_IndexConfigTimeCurrentMediaTime: query of the CC<EFBFBD>s current media
|
|
|
|
|
* time
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* OMX_IndexConfigTimeCurrentAudioReference and
|
|
|
|
|
* OMX_IndexConfigTimeCurrentVideoReference: audio/video reference
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* clock sending SC its reference time
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* OMX_IndexConfigTimeClientStartTime: a Clock Component client sends
|
|
|
|
|
* this structure to the Clock Component via a SetConfig on its
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* client port when it receives a buffer with
|
|
|
|
|
* OMX_BUFFERFLAG_STARTTIME set. It must use the timestamp
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* specified by that buffer for nStartTimestamp.
|
2015-12-08 13:27:46 +03:00
|
|
|
|
*
|
|
|
|
|
* It<EFBFBD>s also used with the following config on components in general:
|
|
|
|
|
*
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* OMX_IndexConfigTimePosition: IL client querying component position
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* (GetConfig) or commanding a component to seek to the given location
|
|
|
|
|
* (SetConfig)
|
2017-07-06 15:00:35 +03:00
|
|
|
|
*/
|
2015-12-08 13:27:46 +03:00
|
|
|
|
typedef struct OMX_TIME_CONFIG_TIMESTAMPTYPE {
|
|
|
|
|
OMX_U32 nSize; /**< size of the structure in bytes */
|
|
|
|
|
OMX_VERSIONTYPE nVersion; /**< OMX specification version
|
|
|
|
|
* information */
|
|
|
|
|
OMX_U32 nPortIndex; /**< port that this structure applies to */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_TICKS nTimestamp; /**< timestamp .*/
|
|
|
|
|
} OMX_TIME_CONFIG_TIMESTAMPTYPE;
|
2015-12-08 13:27:46 +03:00
|
|
|
|
|
|
|
|
|
/** Enumeration of possible reference clocks to the media time. */
|
|
|
|
|
typedef enum OMX_TIME_UPDATETYPE {
|
|
|
|
|
OMX_TIME_UpdateRequestFulfillment, /**< Update is the fulfillment of a media time request. */
|
|
|
|
|
OMX_TIME_UpdateScaleChanged, /**< Update was generated because the scale chagned. */
|
|
|
|
|
OMX_TIME_UpdateClockStateChanged, /**< Update was generated because the clock state changed. */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_TIME_UpdateKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
|
2015-12-08 13:27:46 +03:00
|
|
|
|
OMX_TIME_UpdateVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
|
|
|
|
|
OMX_TIME_UpdateMax = 0x7FFFFFFF
|
|
|
|
|
} OMX_TIME_UPDATETYPE;
|
|
|
|
|
|
|
|
|
|
/** Enumeration of possible reference clocks to the media time. */
|
|
|
|
|
typedef enum OMX_TIME_REFCLOCKTYPE {
|
|
|
|
|
OMX_TIME_RefClockNone, /**< Use no references. */
|
|
|
|
|
OMX_TIME_RefClockAudio, /**< Use references sent through OMX_IndexConfigTimeCurrentAudioReference */
|
|
|
|
|
OMX_TIME_RefClockVideo, /**< Use references sent through OMX_IndexConfigTimeCurrentVideoReference */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_TIME_RefClockKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
|
2015-12-08 13:27:46 +03:00
|
|
|
|
OMX_TIME_RefClockVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
|
|
|
|
|
OMX_TIME_RefClockMax = 0x7FFFFFFF
|
|
|
|
|
} OMX_TIME_REFCLOCKTYPE;
|
|
|
|
|
|
|
|
|
|
/** Enumeration of clock states. */
|
|
|
|
|
typedef enum OMX_TIME_CLOCKSTATE {
|
|
|
|
|
OMX_TIME_ClockStateRunning, /**< Clock running. */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_TIME_ClockStateWaitingForStartTime, /**< Clock waiting until the
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* prescribed clients emit their
|
|
|
|
|
* start time. */
|
|
|
|
|
OMX_TIME_ClockStateStopped, /**< Clock stopped. */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_TIME_ClockStateKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
|
2015-12-08 13:27:46 +03:00
|
|
|
|
OMX_TIME_ClockStateVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
|
|
|
|
|
OMX_TIME_ClockStateMax = 0x7FFFFFFF
|
|
|
|
|
} OMX_TIME_CLOCKSTATE;
|
|
|
|
|
|
|
|
|
|
/** Structure representing a media time request to the clock component.
|
|
|
|
|
*
|
|
|
|
|
* A client component sends this structure to the Clock Component via a SetConfig
|
|
|
|
|
* on its client port to specify a media timestamp the Clock Component
|
|
|
|
|
* should emit. The Clock Component should fulfill the request by sending a
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* OMX_TIME_MEDIATIMETYPE when its media clock matches the requested
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* timestamp.
|
|
|
|
|
*
|
|
|
|
|
* The client may require a media time request be fulfilled slightly
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* earlier than the media time specified. In this case the client specifies
|
|
|
|
|
* an offset which is equal to the difference between wall time corresponding
|
|
|
|
|
* to the requested media time and the wall time when it will be
|
|
|
|
|
* fulfilled.
|
2015-12-08 13:27:46 +03:00
|
|
|
|
*
|
|
|
|
|
* A client component may uses these requests and the OMX_TIME_MEDIATIMETYPE to
|
|
|
|
|
* time events according to timestamps. If a client must perform an operation O at
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* a time T (e.g. deliver a video frame at its corresponding timestamp), it makes a
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* media time request at T (perhaps specifying an offset to ensure the request fulfillment
|
|
|
|
|
* is a little early). When the clock component passes the resulting OMX_TIME_MEDIATIMETYPE
|
|
|
|
|
* structure back to the client component, the client may perform operation O (perhaps having
|
|
|
|
|
* to wait a slight amount more time itself as specified by the return values).
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
typedef struct OMX_TIME_CONFIG_MEDIATIMEREQUESTTYPE {
|
|
|
|
|
OMX_U32 nSize; /**< size of the structure in bytes */
|
|
|
|
|
OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
|
|
|
|
|
OMX_U32 nPortIndex; /**< port that this structure applies to */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_PTR pClientPrivate; /**< Client private data to disabiguate this media time
|
|
|
|
|
* from others (e.g. the number of the frame to deliver).
|
|
|
|
|
* Duplicated in the media time structure that fulfills
|
|
|
|
|
* this request. A value of zero is reserved for time scale
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* updates. */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_TICKS nMediaTimestamp; /**< Media timestamp requested.*/
|
2015-12-08 13:27:46 +03:00
|
|
|
|
OMX_TICKS nOffset; /**< Amount of wall clock time by which this
|
|
|
|
|
* request should be fulfilled early */
|
|
|
|
|
} OMX_TIME_CONFIG_MEDIATIMEREQUESTTYPE;
|
|
|
|
|
|
2017-07-06 15:00:35 +03:00
|
|
|
|
/**< Structure sent from the clock component client either when fulfilling
|
|
|
|
|
* a media time request or when the time scale has changed.
|
2015-12-08 13:27:46 +03:00
|
|
|
|
*
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* In the former case the Clock Component fills this structure and times its emission
|
|
|
|
|
* to a client component (via the client port) according to the corresponding media
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* time request sent by the client. The Clock Component should time the emission to occur
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* when the requested timestamp matches the Clock Component's media time but also the
|
|
|
|
|
* prescribed offset early.
|
2015-12-08 13:27:46 +03:00
|
|
|
|
*
|
|
|
|
|
* Upon scale changes the clock component clears the nClientPrivate data, sends the current
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* media time and sets the nScale to the new scale via the client port. It emits a
|
|
|
|
|
* OMX_TIME_MEDIATIMETYPE to all clients independent of any requests. This allows clients to
|
|
|
|
|
* alter processing to accomodate scaling. For instance a video component might skip inter-frames
|
|
|
|
|
* in the case of extreme fastforward. Likewise an audio component might add or remove samples
|
|
|
|
|
* from an audio frame to scale audio data.
|
2015-12-08 13:27:46 +03:00
|
|
|
|
*
|
|
|
|
|
* It is expected that some clock components may not be able to fulfill requests
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* at exactly the prescribed time. This is acceptable so long as the request is
|
|
|
|
|
* fulfilled at least as early as described and not later. This structure provides
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* fields the client may use to wait for the remaining time.
|
|
|
|
|
*
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* The client may use either the nOffset or nWallTimeAtMedia fields to determine the
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* wall time until the nMediaTimestamp actually occurs. In the latter case the
|
|
|
|
|
* client can get a more accurate value for offset by getting the current wall
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* from the cloc component and subtracting it from nWallTimeAtMedia.
|
2015-12-08 13:27:46 +03:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
typedef struct OMX_TIME_MEDIATIMETYPE {
|
|
|
|
|
OMX_U32 nSize; /**< size of the structure in bytes */
|
|
|
|
|
OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_U32 nClientPrivate; /**< Client private data to disabiguate this media time
|
|
|
|
|
* from others. Copied from the media time request.
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* A value of zero is reserved for time scale updates. */
|
|
|
|
|
OMX_TIME_UPDATETYPE eUpdateType; /**< Reason for the update */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_TICKS nMediaTimestamp; /**< Media time requested. If no media time was
|
|
|
|
|
* requested then this is the current media time. */
|
2015-12-08 13:27:46 +03:00
|
|
|
|
OMX_TICKS nOffset; /**< Amount of wall clock time by which this
|
|
|
|
|
* request was actually fulfilled early */
|
|
|
|
|
|
|
|
|
|
OMX_TICKS nWallTimeAtMediaTime; /**< Wall time corresponding to nMediaTimeStamp.
|
|
|
|
|
* A client may compare this value to current
|
|
|
|
|
* media time obtained from the Clock Component to determine
|
|
|
|
|
* the wall time until the media timestamp is really
|
|
|
|
|
* current. */
|
|
|
|
|
OMX_S32 xScale; /**< Current media time scale in Q16 format. */
|
|
|
|
|
OMX_TIME_CLOCKSTATE eState; /* Seeking Change. Added 7/12.*/
|
|
|
|
|
/**< State of the media time. */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
} OMX_TIME_MEDIATIMETYPE;
|
2015-12-08 13:27:46 +03:00
|
|
|
|
|
2017-07-06 15:00:35 +03:00
|
|
|
|
/** Structure representing the current media time scale factor. Applicable only to clock
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* component, other components see scale changes via OMX_TIME_MEDIATIMETYPE buffers sent via
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* the clock component client ports. Upon recieving this config the clock component changes
|
|
|
|
|
* the rate by which the media time increases or decreases effectively implementing trick modes.
|
|
|
|
|
*/
|
2015-12-08 13:27:46 +03:00
|
|
|
|
typedef struct OMX_TIME_CONFIG_SCALETYPE {
|
|
|
|
|
OMX_U32 nSize; /**< size of the structure in bytes */
|
|
|
|
|
OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
|
|
|
|
|
OMX_S32 xScale; /**< This is a value in Q16 format which is used for
|
|
|
|
|
* scaling the media time */
|
|
|
|
|
} OMX_TIME_CONFIG_SCALETYPE;
|
2017-07-06 15:00:35 +03:00
|
|
|
|
|
2015-12-08 13:27:46 +03:00
|
|
|
|
/** Bits used to identify a clock port. Used in OMX_TIME_CONFIG_CLOCKSTATETYPE<50>s nWaitMask field */
|
|
|
|
|
#define OMX_CLOCKPORT0 0x00000001
|
|
|
|
|
#define OMX_CLOCKPORT1 0x00000002
|
|
|
|
|
#define OMX_CLOCKPORT2 0x00000004
|
|
|
|
|
#define OMX_CLOCKPORT3 0x00000008
|
|
|
|
|
#define OMX_CLOCKPORT4 0x00000010
|
|
|
|
|
#define OMX_CLOCKPORT5 0x00000020
|
|
|
|
|
#define OMX_CLOCKPORT6 0x00000040
|
|
|
|
|
#define OMX_CLOCKPORT7 0x00000080
|
|
|
|
|
|
2017-07-06 15:00:35 +03:00
|
|
|
|
/** Structure representing the current mode of the media clock.
|
|
|
|
|
* IL Client uses this config to change or query the mode of the
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* media clock of the clock component. Applicable only to clock
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* component.
|
|
|
|
|
*
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* On a SetConfig if eState is OMX_TIME_ClockStateRunning media time
|
|
|
|
|
* starts immediately at the prescribed start time. If
|
|
|
|
|
* OMX_TIME_ClockStateWaitingForStartTime the Clock Component ignores
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* the given nStartTime and waits for all clients specified in the
|
|
|
|
|
* nWaitMask to send starttimes (via
|
|
|
|
|
* OMX_IndexConfigTimeClientStartTime). The Clock Component then starts
|
|
|
|
|
* the media clock using the earliest start time supplied. */
|
2015-12-08 13:27:46 +03:00
|
|
|
|
typedef struct OMX_TIME_CONFIG_CLOCKSTATETYPE {
|
|
|
|
|
OMX_U32 nSize; /**< size of the structure in bytes */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_VERSIONTYPE nVersion; /**< OMX specification version
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* information */
|
|
|
|
|
OMX_TIME_CLOCKSTATE eState; /**< State of the media time. */
|
|
|
|
|
OMX_TICKS nStartTime; /**< Start time of the media time. */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_TICKS nOffset; /**< Time to offset the media time by
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* (e.g. preroll). Media time will be
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* reported to be nOffset ticks earlier.
|
2015-12-08 13:27:46 +03:00
|
|
|
|
*/
|
|
|
|
|
OMX_U32 nWaitMask; /**< Mask of OMX_CLOCKPORT values. */
|
|
|
|
|
} OMX_TIME_CONFIG_CLOCKSTATETYPE;
|
|
|
|
|
|
|
|
|
|
/** Structure representing the reference clock currently being used to
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* compute media time. IL client uses this config to change or query the
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* clock component's active reference clock */
|
|
|
|
|
typedef struct OMX_TIME_CONFIG_ACTIVEREFCLOCKTYPE {
|
|
|
|
|
OMX_U32 nSize; /**< size of the structure in bytes */
|
|
|
|
|
OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
OMX_TIME_REFCLOCKTYPE eClock; /**< Reference clock used to compute media time */
|
2015-12-08 13:27:46 +03:00
|
|
|
|
} OMX_TIME_CONFIG_ACTIVEREFCLOCKTYPE;
|
|
|
|
|
|
|
|
|
|
/** Descriptor for setting specifics of power type.
|
|
|
|
|
* Note: this structure is listed for backwards compatibility. */
|
|
|
|
|
typedef struct OMX_OTHER_CONFIG_POWERTYPE {
|
|
|
|
|
OMX_U32 nSize; /**< size of the structure in bytes */
|
|
|
|
|
OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
|
|
|
|
|
OMX_BOOL bEnablePM; /**< Flag to enable Power Management */
|
|
|
|
|
} OMX_OTHER_CONFIG_POWERTYPE;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Descriptor for setting specifics of stats type.
|
|
|
|
|
* Note: this structure is listed for backwards compatibility. */
|
|
|
|
|
typedef struct OMX_OTHER_CONFIG_STATSTYPE {
|
|
|
|
|
OMX_U32 nSize; /**< size of the structure in bytes */
|
|
|
|
|
OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
|
|
|
|
|
/* what goes here */
|
|
|
|
|
} OMX_OTHER_CONFIG_STATSTYPE;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2017-07-06 15:00:35 +03:00
|
|
|
|
* The PortDefinition structure is used to define all of the parameters
|
|
|
|
|
* necessary for the compliant component to setup an input or an output other
|
2015-12-08 13:27:46 +03:00
|
|
|
|
* path.
|
|
|
|
|
*/
|
|
|
|
|
typedef struct OMX_OTHER_PORTDEFINITIONTYPE {
|
|
|
|
|
OMX_OTHER_FORMATTYPE eFormat; /**< Type of data expected for this channel */
|
|
|
|
|
} OMX_OTHER_PORTDEFINITIONTYPE;
|
|
|
|
|
|
|
|
|
|
/** Port format parameter. This structure is used to enumerate
|
|
|
|
|
* the various data input/output format supported by the port.
|
|
|
|
|
*/
|
|
|
|
|
typedef struct OMX_OTHER_PARAM_PORTFORMATTYPE {
|
|
|
|
|
OMX_U32 nSize; /**< size of the structure in bytes */
|
|
|
|
|
OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
|
|
|
|
|
OMX_U32 nPortIndex; /**< Indicates which port to set */
|
|
|
|
|
OMX_U32 nIndex; /**< Indicates the enumeration index for the format from 0x0 to N-1 */
|
|
|
|
|
OMX_OTHER_FORMATTYPE eFormat; /**< Type of data expected for this channel */
|
2017-07-06 15:00:35 +03:00
|
|
|
|
} OMX_OTHER_PARAM_PORTFORMATTYPE;
|
2015-12-08 13:27:46 +03:00
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
/* File EOF */
|