# CodecCallback - [Overview](#section1117951861165631) - [Summary](#section1269918023165631) - [Data Fields](#pub-attribs) - [Details](#section1278003397165631) - [Field](#section1513699407165631) - [InputBufferAvailable](#a97ba05617547d79b459bfed6172b4d75) - [OnEvent](#a039d0a4af8c4e3d10f49426d46f0b0f3) - [OutputBufferAvailable](#ad99eedd9953bdf22e426a181b08b8d0d) ## **Overview** **Related Modules:** [Codec](Codec.md) **Description:** Defines callbacks and their parameters. ## **Summary** ## Data Fields
OnEvent )(UINTPTR comp, UINTPTR appData, EventType event, uint32_t data1, uint32_t data2, UINTPTR eventData) |
|
InputBufferAvailable )(UINTPTR comp, UINTPTR appData, InputInfo *inBuf) |
|
OutputBufferAvailable )(UINTPTR comp, UINTPTR appData, OutputInfo *outBuf) |
| hComponent | Indicates the handle of the codec component. |
| pAppData | Indicates upper-layer data, which is generally an upper-layer instance passed when this callback is set. |
| pBuffer | Indicates the pointer to the input data that has been used. |
| hComponent | Indicates the handle of the codec component. |
| pAppData | Indicates upper-layer data, which is generally an upper-layer instance passed when this callback is set. |
| EVENTTYPE | Indicates the event type. |
| nData1 | Indicates the first value contained in the reported event. This parameter is optional. |
| nData2 | Indicates the second value contained in the reported event. This parameter is optional. |
| pEventData | Indicates the pointer to data contained in the reported event. This parameter is optional. |
| hComponent | Indicates the handle of the codec component. |
| pAppData | Indicates upper-layer data, which is generally an upper-layer instance passed when this callback is registered. |
| pBuffer | Indicates the pointer to the output data that has been generated. |