Video Decoder modules, only support JEPG decode for now.
More...
Video Decoder modules, only support JEPG decode for now.
Create Decoder channel.
- Parameters
-
[in] | decChn | Channel Num. Value range: [0, NR_MAX_DEC_CHN - 1] |
[in] | attr | Pointer to Decoder Channel attribute |
- Return values
-
0 | Success |
OtherValues | Failure |
- Attention
- None.
int IMP_Decoder_DestroyChn |
( |
int |
decChn | ) |
|
Destroy Decoder channel.
- Parameters
-
[in] | decChn | Channel Num. Value range: [0, NR_MAX_DEC_CHN - 1] |
- Return values
-
0 | Success |
OtherValues | Failure |
- Attention
- None.
int IMP_Decoder_GetFrame |
( |
int |
decChn, |
|
|
IMPFrameInfo ** |
frame |
|
) |
| |
Get the decoded output frame.
- Parameters
-
[in] | decChn | Channel Num. Value range: [0, NR_MAX_DEC_CHN - 1] |
[out] | frame | Pointer to output frame's pointer |
- Return values
-
0 | Success |
OtherValues | Failure |
- Attention
- The memory of output buffer is malloced in Decoder, So the input argument is a pointer of a pointer(pointer's address).
The decoding stream buffer is applied by the decoder, and the current function only needs to be introduced into the structure body pointer.
int IMP_Decoder_PollingFrame |
( |
int |
decChn, |
|
|
uint32_t |
timeoutMsec |
|
) |
| |
Polling Decoder channel, return when decoding finished or timeout.
- Parameters
-
[in] | decChn | Channel Num. Value range: [0, NR_MAX_DEC_CHN - 1] |
[in] | stream | Pointer to stream to be decoded. |
[in] | timeoutMsec | Wait timeout value(msec). |
- Return values
-
0 | Success |
OtherValues | Failure |
- Attention
- Failed if the channel isn't created.
int IMP_Decoder_ReleaseFrame |
( |
int |
decChn, |
|
|
IMPFrameInfo * |
frame |
|
) |
| |
Release the decoded output frame.
- Parameters
-
[in] | decChn | Channel Num. Value range: [0, NR_MAX_DEC_CHN - 1] |
[in] | frame | Pointer to output frame |
- Return values
-
0 | Success |
OtherValues | Failure |
- Attention
- None.
int IMP_Decoder_SendStreamTimeout |
( |
int |
decChn, |
|
|
IMPDecoderStream * |
stream, |
|
|
uint32_t |
timeoutMsec |
|
) |
| |
Send frame to Decoder channel.
- Parameters
-
[in] | decChn | Channel Num. Value range: [0, NR_MAX_DEC_CHN - 1] |
[in] | stream | Pointer to the Data stream structure to be decoded |
[in] | timeoutMsec | Decode timeout value(msec). |
- Return values
-
0 | Success |
OtherValues | Failure |
- Attention
- Failed if the channel isn't created.
int IMP_Decoder_StartRecvPic |
( |
int |
decChn | ) |
|
Decoder channel start recieve pictures.
- Parameters
-
[in] | decChn | Channel Num. Value range: [0, NR_MAX_DEC_CHN - 1] |
- Return values
-
0 | Success |
OtherValues | Failure |
- Attention
- Failed if the channel isn't created.
int IMP_Decoder_StopRecvPic |
( |
int |
decChn | ) |
|
Decoder channel stop recieve pictures.
- Parameters
-
[in] | decChn | Channel Num. Value range: [0, NR_MAX_DEC_CHN - 1] |
- Return values
-
0 | Success |
OtherValues | Failure |
- Attention
- Failed if the channel isn't created.