ISVP-SDK  3.12.0
Ingenic Smart Video Platform SDK
Data Structures | Functions

Video Decoder modules, only support JEPG decode for now. More...

Collaboration diagram for IMP_Decoder:

Data Structures

struct  IMPDecoderAttr
 Attribute of Decoder. More...
 
struct  IMPDecoderCHNAttr
 Attribute of Decoder Channel. More...
 
struct  IMPDecoderNal
 Attribute of decode frame. More...
 
struct  IMPDecoderStream
 Attribute of decode stream. More...
 

Functions

int IMP_Decoder_CreateChn (int decChn, const IMPDecoderCHNAttr *attr)
 Create Decoder channel. More...
 
int IMP_Decoder_DestroyChn (int decChn)
 Destroy Decoder channel. More...
 
int IMP_Decoder_StartRecvPic (int decChn)
 Decoder channel start recieve pictures. More...
 
int IMP_Decoder_StopRecvPic (int decChn)
 Decoder channel stop recieve pictures. More...
 
int IMP_Decoder_SendStreamTimeout (int decChn, IMPDecoderStream *stream, uint32_t timeoutMsec)
 Send frame to Decoder channel. More...
 
int IMP_Decoder_PollingFrame (int decChn, uint32_t timeoutMsec)
 Polling Decoder channel, return when decoding finished or timeout. More...
 
int IMP_Decoder_GetFrame (int decChn, IMPFrameInfo **frame)
 Get the decoded output frame. More...
 
int IMP_Decoder_ReleaseFrame (int decChn, IMPFrameInfo *frame)
 Release the decoded output frame. More...
 

Detailed Description

Video Decoder modules, only support JEPG decode for now.

Function Documentation

int IMP_Decoder_CreateChn ( int  decChn,
const IMPDecoderCHNAttr attr 
)

Create Decoder channel.

Parameters
[in]decChnChannel Num. Value range: [0, NR_MAX_DEC_CHN - 1]
[in]attrPointer to Decoder Channel attribute
Return values
0Success
OtherValuesFailure
Remarks
None.
Attention
None.
int IMP_Decoder_DestroyChn ( int  decChn)

Destroy Decoder channel.

Parameters
[in]decChnChannel Num. Value range: [0, NR_MAX_DEC_CHN - 1]
Return values
0Success
OtherValuesFailure
Remarks
None.
Attention
None.
int IMP_Decoder_GetFrame ( int  decChn,
IMPFrameInfo **  frame 
)

Get the decoded output frame.

Parameters
[in]decChnChannel Num. Value range: [0, NR_MAX_DEC_CHN - 1]
[out]framePointer to output frame's pointer
Return values
0Success
OtherValuesFailure
Remarks
None.
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]decChnChannel Num. Value range: [0, NR_MAX_DEC_CHN - 1]
[in]streamPointer to stream to be decoded.
[in]timeoutMsecWait timeout value(msec).
Return values
0Success
OtherValuesFailure
Remarks
None.
Attention
Failed if the channel isn't created.
int IMP_Decoder_ReleaseFrame ( int  decChn,
IMPFrameInfo frame 
)

Release the decoded output frame.

Parameters
[in]decChnChannel Num. Value range: [0, NR_MAX_DEC_CHN - 1]
[in]framePointer to output frame
Return values
0Success
OtherValuesFailure
Remarks
None.
Attention
None.
int IMP_Decoder_SendStreamTimeout ( int  decChn,
IMPDecoderStream stream,
uint32_t  timeoutMsec 
)

Send frame to Decoder channel.

Parameters
[in]decChnChannel Num. Value range: [0, NR_MAX_DEC_CHN - 1]
[in]streamPointer to the Data stream structure to be decoded
[in]timeoutMsecDecode timeout value(msec).
Return values
0Success
OtherValuesFailure
Remarks
None.
Attention
Failed if the channel isn't created.
int IMP_Decoder_StartRecvPic ( int  decChn)

Decoder channel start recieve pictures.

Parameters
[in]decChnChannel Num. Value range: [0, NR_MAX_DEC_CHN - 1]
Return values
0Success
OtherValuesFailure
Remarks
First Open decoding Channel to receive the image then start decoding.
Attention
Failed if the channel isn't created.
int IMP_Decoder_StopRecvPic ( int  decChn)

Decoder channel stop recieve pictures.

Parameters
[in]decChnChannel Num. Value range: [0, NR_MAX_DEC_CHN - 1]
Return values
0Success
OtherValuesFailure
Remarks
Stop decoding the Channel to receive image.
Attention
Failed if the channel isn't created.