Package: android.hardware.media.omx@1.0

types

Properties

BufferId

typedef uint32_t BufferId

Status

enum Status: int32_t

Ref:system/core/include/utils/Errors.h Ref:bionic/libc/kernel/uapi/asm-generic/errno-base.h Ref:bionic/libc/kernel/uapi/asm-generic/errno.h Ref:frameworks/av/include/media/stagefright/MediaError.h Ref:frameworks/av/media/libstagefright/omx/OMXUtils.cpp:StatusFromOMXError

Details
Members
OK = 0
NO_ERROR = 0
NAME_NOT_FOUND = -2
WOULD_BLOCK = -11
NO_MEMORY = -12
ALREADY_EXISTS = -17
NO_INIT = -19
BAD_VALUE = -22
DEAD_OBJECT = -32
INVALID_OPERATION = -38
TIMED_OUT = -110
ERROR_UNSUPPORTED = -1010
UNKNOWN_ERROR = -2147483648
BUFFER_NEEDS_REALLOCATION = 0x1
RELEASE_ALL_BUFFERS = 0x2

PortMode

enum PortMode: int32_t

Ref:frameworks/av/include/media/IOMX.h

Enumeration of port modes.

Details
Members
PRESET_START = 0
PRESET_BYTE_BUFFER
PRESET_ANW_BUFFER
PRESET_SECURE_BUFFER
PRESET_END
DYNAMIC_START = 100
DYNAMIC_ANW_BUFFER
DYNAMIC_NATIVE_HANDLE
DYNAMIC_END

Message

struct Message {enum Type; struct EventData }; struct BufferData }; struct ExtendedBufferData }; struct RenderData }; union Data }; Type type; Fence fence; Data data}

Ref:frameworks/av/include/media/IOMX.h:omx_message

Data structure for an OMX message.This is essentially a union of different message types.

Details
Members
Type
There are four main types of messages.
}
}
}
}
}
type
The type of the message.
fence
The fence associated with the message.
data
The union of data, discriminated by type.

CodecBuffer

struct CodecBuffer {enum Type; struct PresetAttributes }; union Attributes }; Type type; Attributes attr; handle nativeHandle; memory sharedMemory}

Ref:frameworks/native/include/ui/GraphicBuffer.h Ref:system/core/include/system/window.h Ref:frameworks/native/include/binder/IMemory.h Ref:frameworks/native/libs/binder/IMemory.cpp Ref:frameworks/av/include/media/OMXBuffer.h

Data structure for buffer information.This is essentially a union of different buffer types.

Details
Members
Type
There are four main types of buffers.
}
}
type
Type of the buffer.
attr
Attributes that can be put into a union.
nativeHandle
Used only for types ANW_BUFFER and NATIVE_HANDLE.
(A native handle cannot be put into a union as HIDL currently does not support discriminated unions.)
sharedMemory
Used only for type SHARED_MEM.

ColorAspects

struct ColorAspects {enum Range; enum Primaries; enum Transfer; enum MatrixCoeffs; Range range; Primaries primaries; Transfer transfer; MatrixCoeffs matrixCoeffs}

Ref:frameworks/native/include/media/hardware/VideoAPI.h

Framework defined color aspects.These are based mainly on ISO 23001-8 spec.As this standard continues to evolve, new values may be defined in the future.Use OTHER for these future values as well as for values not listed here, as those are not supported by the framework.

Details
Members
Range
Primaries
Transfer
MatrixCoeffs
range
primaries
transfer
matrixCoeffs