API Reference
4-30
4.2.1.3
XDM1_AlgBufInfo
║
Description
This structure defines the buffer information descriptor for input and output buffers. This structure is
filled when you invoke the
control()
function with the
XDM_GETBUFINFO
command.
║
Fields
Field
Data Type
Input/
Output
Description
minNumInBufs
XDAS_Int32
Output
Minimum number of input buffers
minNumOutBufs
XDAS_Int32
Output
Minimum number of output buffers
minInBufSize[XDM_
MAX_IO_BUFFERS]
XDM2_BufSi
ze
Output
Minimum size required for each input buffer
minOutBufSize[XDM
_MAX_IO_BUFFERS]
XDM2_BufSi
ze
Output
Minimum size required for each output buffer
inBufMemoryType[X
DM_MAX_IO_BUFFERS
]
XDAS_Int32
Output
Required memory type for each input buffer.
See
XDM_MemoryType
outBufMemoryType[
XDM_MAX_IO_BUFFER
S]
XDAS_Int32
Output
Required memory type for each output buffer.
See
XDM_MemoryType
minNumBufSets
XDAS_Int32
Output
Minimum number of buffer sets for buffer
management
Note:
For H.264 High Profile Encoder, the buffer details are:
Number of input buffer required is 3 for YUV 420P chroma format
(
memType
is
XDM_MEMTYPE_RAW
)
Number of output buffer required is 1 (Supported
memType
is
XDM_MEMTYPE_RAW)
The input buffer sizes (in bytes) for CIF format is:
Y buffer = 352 * 288
U buffer = 176 * 144
V buffer = 176 * 144
There is no restriction on output buffer size except that it should contain
atleast one frame of encoded data.
When the input frame buffer that getting encoded by encoder is not
same as capture buffer then encoder still returns the size of the buffer
accessed by him. In these situations application should take care of
proper buffer allocation for input frame buffer.
Содержание H.264 High Profile Encoder
Страница 10: ...x This page is intentionally left blank ...
Страница 12: ...xii This page is intentionally left blank ...
Страница 20: ......
Страница 134: ...Frequently Asked Questions 5 4 This page is intentionally left blank ...