同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Related Modules:
Description:
Defines callbacks and their parameters.
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) |
int(* CodecCallback::InputBufferAvailable) ([UINTPTR](Codec.md#ga58d2f4a8d12daa1dcf4eb297f3ebaabc) comp, [UINTPTR](Codec.md#ga58d2f4a8d12daa1dcf4eb297f3ebaabc) appData, [InputInfo](InputInfo.md) *inBuf)
Description:
Reports that the input data has been used.
This callback is invoked in asynchronous mode.
Parameters:
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. |
Returns:
Returns 0 if the operation is successful; returns a non-zero value otherwise.
int(* CodecCallback::OnEvent) ([UINTPTR](Codec.md#ga58d2f4a8d12daa1dcf4eb297f3ebaabc) comp, [UINTPTR](Codec.md#ga58d2f4a8d12daa1dcf4eb297f3ebaabc) appData, [EventType](Codec.md#ga2628ea8d12e8b2563c32f05dc7fff6fa) event, uint32_t data1, uint32_t data2, [UINTPTR](Codec.md#ga58d2f4a8d12daa1dcf4eb297f3ebaabc) eventData)
Description:
Reports an event.
Reports event errors and output format changes.
Parameters:
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. |
Returns:
Returns 0 if the operation is successful; returns a non-zero value otherwise.
int(* CodecCallback::OutputBufferAvailable) ([UINTPTR](Codec.md#ga58d2f4a8d12daa1dcf4eb297f3ebaabc) comp, [UINTPTR](Codec.md#ga58d2f4a8d12daa1dcf4eb297f3ebaabc) appData, [OutputInfo](OutputInfo.md) *outBuf)
Description:
Reports that the output is complete.
This callback is invoked in asynchronous mode.
Parameters:
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. |
Returns:
Returns 0 if the operation is successful; returns a non-zero value otherwise.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。