![]() |
![]() |
Data Structures | |
| struct | XDM_BufDesc |
| Buffer descriptor for multiple buffers. More... | |
| struct | XDM_SingleBufDesc |
| Single buffer descriptor. More... | |
| struct | XDM1_SingleBufDesc |
| Single buffer descriptor. More... | |
| struct | XDM1_BufDesc |
| Buffer descriptor. More... | |
| struct | XDM_AlgBufInfo |
| Buffer information descriptor for input and output buffers. More... | |
Defines | |
| #define | XDM_EOK IALG_EOK |
| #define | XDM_EFAIL IALG_EFAIL |
| #define | XDM_EUNSUPPORTED -3 |
| #define | XDM_ERUNTIME -2 |
| General runtime failure. | |
| #define | XDM_MAX_IO_BUFFERS 16 |
| #define | XDM_ISACCESSMODE_READ(x) (((x) >> XDM_ACCESSMODE_READ) & 0x1) |
| Check an access mask for CPU read access. | |
| #define | XDM_ISACCESSMODE_WRITE(x) (((x) >> XDM_ACCESSMODE_WRITE) & 0x1) |
| Check an access mask for CPU write access. | |
| #define | XDM_CLEARACCESSMODE_READ(x) ((x) &= (~(0x1 << XDM_ACCESSMODE_READ))) |
| Clear the "CPU read access" bit in an access mask. | |
| #define | XDM_CLEARACCESSMODE_WRITE(x) ((x) &= (~(0x1 << XDM_ACCESSMODE_WRITE))) |
| Clear the "CPU write access" bit in an access mask. | |
| #define | XDM_SETACCESSMODE_READ(x) ((x) |= (0x1 << XDM_ACCESSMODE_READ)) |
| Set the bit to indicate CPU read access in an access mask. | |
| #define | XDM_SETACCESSMODE_WRITE(x) ((x) |= (0x1 << XDM_ACCESSMODE_WRITE)) |
| Set the bit to indicate CPU write access in an access mask. | |
| #define | XDM_ISFATALERROR(x) (((x) >> XDM_FATALERROR) & 0x1) |
| #define | XDM_ISUNSUPPORTEDPARAM(x) (((x) >> XDM_UNSUPPORTEDPARAM) & 0x1) |
| #define | XDM_ISUNSUPPORTEDINPUT(x) (((x) >> XDM_UNSUPPORTEDINPUT) & 0x1) |
| #define | XDM_ISCORRUPTEDHEADER(x) (((x) >> XDM_CORRUPTEDHEADER) & 0x1) |
| #define | XDM_ISCORRUPTEDDATA(x) (((x) >> XDM_CORRUPTEDDATA) & 0x1) |
| #define | XDM_ISINSUFFICIENTDATA(x) (((x) >> XDM_INSUFFICIENTDATA) & 0x1) |
| #define | XDM_ISAPPLIEDCONCEALMENT(x) (((x) >> XDM_APPLIEDCONCEALMENT) & 0x1) |
| #define | XDM_SETFATALERROR(x) ((x) |= (0x1 << XDM_FATALERROR)) |
| #define | XDM_SETUNSUPPORTEDPARAM(x) ((x) |= (0x1 << XDM_UNSUPPORTEDPARAM)) |
| #define | XDM_SETUNSUPPORTEDINPUT(x) ((x) |= (0x1 << XDM_UNSUPPORTEDINPUT)) |
| #define | XDM_SETCORRUPTEDHEADER(x) ((x) |= (0x1 << XDM_CORRUPTEDHEADER)) |
| #define | XDM_SETCORRUPTEDDATA(x) ((x) |= (0x1 << XDM_CORRUPTEDDATA)) |
| #define | XDM_SETINSUFFICIENTDATA(x) ((x) |= (0x1 << XDM_INSUFFICIENTDATA)) |
| #define | XDM_SETAPPLIEDCONCEALMENT(x) ((x) |= (0x1 << XDM_APPLIEDCONCEALMENT)) |
Enumerations | |
| enum | XDM_AccessMode { XDM_ACCESSMODE_READ = 0, XDM_ACCESSMODE_WRITE = 1 } |
| Access modes used to declare how the algorithm accessed buffers. More... | |
| enum | XDM_CmdId { XDM_GETSTATUS = 0, XDM_SETPARAMS = 1, XDM_RESET = 2, XDM_SETDEFAULT = 3, XDM_FLUSH = 4, XDM_GETBUFINFO = 5, XDM_GETVERSION = 6 } |
| Standard control commands that must be implemented by xDM compliant multimedia algorithms. More... | |
| enum | XDM_ErrorBit { XDM_APPLIEDCONCEALMENT = 9, XDM_INSUFFICIENTDATA = 10, XDM_CORRUPTEDDATA = 11, XDM_CORRUPTEDHEADER = 12, XDM_UNSUPPORTEDINPUT = 13, XDM_UNSUPPORTEDPARAM = 14, XDM_FATALERROR = 15 } |
| Extended error information. More... | |
| enum | XDM_DataFormat { XDM_BYTE = 1, XDM_LE_16 = 2, XDM_LE_32 = 3 } |
| Endianness of data. More... | |
| enum | XDM_EncodingPreset { XDM_DEFAULT = 0, XDM_HIGH_QUALITY = 1, XDM_HIGH_SPEED = 2, XDM_USER_DEFINED = 3 } |
| Encoding presets. More... | |
| enum | XDM_DecMode { XDM_DECODE_AU = 0, XDM_PARSE_HEADER = 1 } |
| Decode entire access unit or only header. More... | |
| enum | XDM_EncMode { XDM_ENCODE_AU = 0, XDM_GENERATE_HEADER = 1 } |
| Encode entire access unit or only header. More... | |
| enum | XDM_ChromaFormat { XDM_CHROMA_NA = -1, XDM_YUV_420P = 1, XDM_YUV_422P = 2, XDM_YUV_422IBE = 3, XDM_YUV_422ILE = 4, XDM_YUV_444P = 5, XDM_YUV_411P = 6, XDM_GRAY = 7, XDM_RGB = 8, XDM_CHROMAFORMAT_DEFAULT = XDM_YUV_422ILE } |
| Chroma formats. More... | |
| #define XDM_EOK IALG_EOK |
Success.
| #define XDM_EFAIL IALG_EFAIL |
General failure.
| #define XDM_EUNSUPPORTED -3 |
Request is unsupported.
| #define XDM_ERUNTIME -2 |
General runtime failure.
| #define XDM_MAX_IO_BUFFERS 16 |
Max I/O Buffers
| #define XDM_ISACCESSMODE_READ | ( | x | ) | (((x) >> XDM_ACCESSMODE_READ) & 0x1) |
Check an access mask for CPU read access.
| x | access mask. |
XDM1_BufDesc::accessMask
| #define XDM_ISACCESSMODE_WRITE | ( | x | ) | (((x) >> XDM_ACCESSMODE_WRITE) & 0x1) |
Check an access mask for CPU write access.
| x | access mask. |
XDM1_BufDesc::accessMask
| #define XDM_CLEARACCESSMODE_READ | ( | x | ) | ((x) &= (~(0x1 << XDM_ACCESSMODE_READ))) |
Clear the "CPU read access" bit in an access mask.
| x | access mask. |
XDM1_SingleBufDesc::accessMask
XDM1_BufDesc::accessMask
| #define XDM_CLEARACCESSMODE_WRITE | ( | x | ) | ((x) &= (~(0x1 << XDM_ACCESSMODE_WRITE))) |
Clear the "CPU write access" bit in an access mask.
| x | access mask. |
XDM1_SingleBufDesc::accessMask
XDM1_BufDesc::accessMask
| #define XDM_SETACCESSMODE_READ | ( | x | ) | ((x) |= (0x1 << XDM_ACCESSMODE_READ)) |
Set the bit to indicate CPU read access in an access mask.
| x | access mask. |
XDM1_BufDesc::accessMask
| #define XDM_SETACCESSMODE_WRITE | ( | x | ) | ((x) |= (0x1 << XDM_ACCESSMODE_WRITE)) |
Set the bit to indicate CPU write access in an access mask.
| x | access mask. |
XDM1_BufDesc::accessMask
| #define XDM_ISFATALERROR | ( | x | ) | (((x) >> XDM_FATALERROR) & 0x1) |
Check for fatal error
| #define XDM_ISUNSUPPORTEDPARAM | ( | x | ) | (((x) >> XDM_UNSUPPORTEDPARAM) & 0x1) |
Check for unsupported parameter
| #define XDM_ISUNSUPPORTEDINPUT | ( | x | ) | (((x) >> XDM_UNSUPPORTEDINPUT) & 0x1) |
Check for unsupported input
| #define XDM_ISCORRUPTEDHEADER | ( | x | ) | (((x) >> XDM_CORRUPTEDHEADER) & 0x1) |
Check for corrupted header
| #define XDM_ISCORRUPTEDDATA | ( | x | ) | (((x) >> XDM_CORRUPTEDDATA) & 0x1) |
Check for corrupted data
| #define XDM_ISINSUFFICIENTDATA | ( | x | ) | (((x) >> XDM_INSUFFICIENTDATA) & 0x1) |
Check for insufficient data
| #define XDM_ISAPPLIEDCONCEALMENT | ( | x | ) | (((x) >> XDM_APPLIEDCONCEALMENT) & 0x1) |
Check for applied concealment
| #define XDM_SETFATALERROR | ( | x | ) | ((x) |= (0x1 << XDM_FATALERROR)) |
Set fatal error bit
| #define XDM_SETUNSUPPORTEDPARAM | ( | x | ) | ((x) |= (0x1 << XDM_UNSUPPORTEDPARAM)) |
Set unsupported parameter bit
| #define XDM_SETUNSUPPORTEDINPUT | ( | x | ) | ((x) |= (0x1 << XDM_UNSUPPORTEDINPUT)) |
Set unsupported input bit
| #define XDM_SETCORRUPTEDHEADER | ( | x | ) | ((x) |= (0x1 << XDM_CORRUPTEDHEADER)) |
Set corrupted header bit
| #define XDM_SETCORRUPTEDDATA | ( | x | ) | ((x) |= (0x1 << XDM_CORRUPTEDDATA)) |
Set corrupted data bit
| #define XDM_SETINSUFFICIENTDATA | ( | x | ) | ((x) |= (0x1 << XDM_INSUFFICIENTDATA)) |
Set insufficient data bit
| #define XDM_SETAPPLIEDCONCEALMENT | ( | x | ) | ((x) |= (0x1 << XDM_APPLIEDCONCEALMENT)) |
Set applied concealment bit
| enum XDM_AccessMode |
Access modes used to declare how the algorithm accessed buffers.
The value of the enum is the bit offset into a mask. The value of the enum is not the value to assign the mask.
| enum XDM_CmdId |
Standard control commands that must be implemented by xDM compliant multimedia algorithms.
| enum XDM_ErrorBit |
Extended error information.
The value of each enum is the bit which is set.
Bits 32-16 and bit 8 are reserved. Bits 7-0 are codec and implementation specific.
The algorithm can set multiple bits to 1 based on conditions. e.g. it will set bits XDM_FATALERROR (fatal) and XDM_UNSUPPORTEDPARAM (unsupported params) in case of unsupported run time parameters.
| enum XDM_DataFormat |
| enum XDM_EncodingPreset |
| enum XDM_DecMode |
| enum XDM_EncMode |
| enum XDM_ChromaFormat |
Chroma formats.