acldvppSetStreamDesc Series
Description
Sets the description of a video stream.
Prototype
aclError acldvppSetStreamDescData(acldvppStreamDesc *streamDesc, void *dataDev)
aclError acldvppSetStreamDescSize(acldvppStreamDesc *streamDesc, uint32_t size)
aclError acldvppSetStreamDescFormat(acldvppStreamDesc *streamDesc, acldvppStreamFormat format)
aclError acldvppSetStreamDescTimestamp(acldvppStreamDesc *streamDesc, uint64_t timestamp)
aclError acldvppSetStreamDescRetCode(acldvppStreamDesc *streamDesc, uint32_t retCode)
aclError acldvppSetStreamDescEos(acldvppStreamDesc *streamDesc, uint8_t eos)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
streamDesc |
Output |
Pointer to the video stream description. Call acldvppCreateStreamDesc to create data of the acldvppStreamDesc type in advance. |
dataDev |
Input |
Pointer to the stream buffer on the device. |
size |
Input |
Buffer size in bytes. |
format |
Input |
Stream format (h264 or h265). |
timestamp |
Input |
Timestamp. |
retCode |
Input |
Return code (0 on success; else, failure). |
eos |
Input |
EOS flag (0: false; 1: true). |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.