• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "codec_callback_service.h"
17 #include <hdf_base.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif /* __cplusplus */
22 
CodecCallbackOnEvent(UINTPTR comp,UINTPTR appData,EventType event,uint32_t data1,uint32_t data2,UINTPTR eventData)23 int CodecCallbackOnEvent(UINTPTR comp, UINTPTR appData, EventType event,
24                          uint32_t data1, uint32_t data2, UINTPTR eventData)
25 {
26     return HDF_SUCCESS;
27 }
28 
CodecCallbackInputBufferAvailable(UINTPTR comp,UINTPTR appData,InputInfo * inBuf)29 int CodecCallbackInputBufferAvailable(UINTPTR comp, UINTPTR appData, InputInfo *inBuf)
30 {
31     return HDF_SUCCESS;
32 }
33 
CodecCallbackOutputBufferAvailable(UINTPTR comp,UINTPTR appData,OutputInfo * outBuf)34 int CodecCallbackOutputBufferAvailable(UINTPTR comp, UINTPTR appData, OutputInfo *outBuf)
35 {
36     return HDF_SUCCESS;
37 }
38 
CodecCallbackServiceConstruct(struct ICodecCallback * service)39 void CodecCallbackServiceConstruct(struct ICodecCallback *service)
40 {
41     service->callback.OnEvent = CodecCallbackOnEvent;
42     service->callback.InputBufferAvailable = CodecCallbackInputBufferAvailable;
43     service->callback.OutputBufferAvailable = CodecCallbackOutputBufferAvailable;
44 }
45 
46 #ifdef __cplusplus
47 }
48 #endif /* __cplusplus */