• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 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 #ifndef HDI_CODECTYPES_H
17 #define HDI_CODECTYPES_H
18 
19 #include "codec_component_type.h"
20 #include "hdf_sbuf.h"
21 #include "OMX_Core.h"
22 #include "OMX_Index.h"
23 #include "OMX_Types.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif /* __cplusplus */
28 
29 bool OMX_TUNNELSETUPTYPEBlockMarshalling(struct HdfSBuf *data, const struct OMX_TUNNELSETUPTYPE *dataBlock);
30 
31 bool OMX_TUNNELSETUPTYPEBlockUnmarshalling(struct HdfSBuf *data, struct OMX_TUNNELSETUPTYPE *dataBlock);
32 
33 void OMX_TUNNELSETUPTYPEFree(struct OMX_TUNNELSETUPTYPE *dataBlock, bool freeSelf);
34 
35 bool OmxCodecBufferBlockMarshalling(struct HdfSBuf *data, const struct OmxCodecBuffer *dataBlock);
36 
37 bool OmxCodecBufferBlockUnmarshalling(struct HdfSBuf *data, struct OmxCodecBuffer *dataBlock);
38 void ReleaseOmxCodecBuffer(struct OmxCodecBuffer *codecBuffer);
39 void InitOmxCodecBuffer(struct OmxCodecBuffer *codecBuffer);
40 // for config marshall
41 bool RangeValueBlockMarshalling(struct HdfSBuf *data, const RangeValue *dataBlock);
42 
43 bool RangeValueBlockUnmarshalling(struct HdfSBuf *data, RangeValue *dataBlock);
44 
45 bool RectBlockMarshalling(struct HdfSBuf *data, const Rect *dataBlock);
46 
47 bool RectBlockUnmarshalling(struct HdfSBuf *data, Rect *dataBlock);
48 
49 bool AlignmentBlockMarshalling(struct HdfSBuf *data, const Alignment *dataBlock);
50 
51 bool AlignmentBlockUnmarshalling(struct HdfSBuf *data, Alignment *dataBlock);
52 
53 bool VideoPortCapBlockMarshalling(struct HdfSBuf *data, const CodecVideoPortCap *dataBlock);
54 
55 bool VideoPortCapBlockUnmarshalling(struct HdfSBuf *data, CodecVideoPortCap *dataBlock);
56 
57 void VideoPortCapFree(CodecVideoPortCap *dataBlock, bool freeSelf);
58 
59 bool AudioPortCapBlockMarshalling(struct HdfSBuf *data, const CodecAudioPortCap *dataBlock);
60 
61 bool AudioPortCapBlockUnmarshalling(struct HdfSBuf *data, CodecAudioPortCap *dataBlock);
62 
63 void AudioPortCapFree(CodecAudioPortCap *dataBlock, bool freeSelf);
64 
65 bool CodecCompCapabilityBlockMarshalling(struct HdfSBuf *data, const CodecCompCapability *dataBlock);
66 
67 bool CodecCompCapabilityBlockUnmarshalling(struct HdfSBuf *data, CodecCompCapability *dataBlock);
68 
69 #ifdef __cplusplus
70 }
71 #endif /* __cplusplus */
72 
73 #endif // HDI_CODECTYPES_H