1 /*
2 * Copyright (c) 2022-2023 Shenzhen Kaihong DID 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_type_service.h"
17 #include <hdf_base.h>
18 #include "codec_log_wrapper.h"
19
CodecCallbackTypeEventHandler(struct CodecCallbackType * self,enum OMX_EVENTTYPE eEvent,struct EventInfo * info)20 static int32_t CodecCallbackTypeEventHandler(struct CodecCallbackType *self, enum OMX_EVENTTYPE eEvent,
21 struct EventInfo *info)
22 {
23 CODEC_LOGI("callback service impl");
24 return HDF_SUCCESS;
25 }
26
CodecCallbackTypeEmptyBufferDone(struct CodecCallbackType * self,int64_t appData,const struct OmxCodecBuffer * buffer)27 static int32_t CodecCallbackTypeEmptyBufferDone(struct CodecCallbackType *self, int64_t appData,
28 const struct OmxCodecBuffer *buffer)
29 {
30 CODEC_LOGI("callback service impl");
31 return HDF_SUCCESS;
32 }
33
CodecCallbackTypeFillBufferDone(struct CodecCallbackType * self,int64_t appData,const struct OmxCodecBuffer * buffer)34 static int32_t CodecCallbackTypeFillBufferDone(struct CodecCallbackType *self, int64_t appData,
35 const struct OmxCodecBuffer *buffer)
36 {
37 CODEC_LOGI("callback service impl");
38 return HDF_SUCCESS;
39 }
40
CodecCallbackTypeServiceConstruct(struct CodecCallbackType * instance)41 void CodecCallbackTypeServiceConstruct(struct CodecCallbackType *instance)
42 {
43 instance->EventHandler = CodecCallbackTypeEventHandler;
44 instance->EmptyBufferDone = CodecCallbackTypeEmptyBufferDone;
45 instance->FillBufferDone = CodecCallbackTypeFillBufferDone;
46 }
47