• 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 
39 // for config marshall
40 bool RangeValueBlockMarshalling(struct HdfSBuf *data, const RangeValue *dataBlock);
41 
42 bool RangeValueBlockUnmarshalling(struct HdfSBuf *data, RangeValue *dataBlock);
43 
44 bool RectBlockMarshalling(struct HdfSBuf *data, const Rect *dataBlock);
45 
46 bool RectBlockUnmarshalling(struct HdfSBuf *data, Rect *dataBlock);
47 
48 bool AlginmentBlockMarshalling(struct HdfSBuf *data, const Alginment *dataBlock);
49 
50 bool AlginmentBlockUnmarshalling(struct HdfSBuf *data, Alginment *dataBlock);
51 
52 bool VideoPortCapBlockMarshalling(struct HdfSBuf *data, const VideoPortCap *dataBlock);
53 
54 bool VideoPortCapBlockUnmarshalling(struct HdfSBuf *data, VideoPortCap *dataBlock);
55 
56 void VideoPortCapFree(VideoPortCap *dataBlock, bool freeSelf);
57 
58 bool AudioPortCapBlockMarshalling(struct HdfSBuf *data, const AudioPortCap *dataBlock);
59 
60 bool AudioPortCapBlockUnmarshalling(struct HdfSBuf *data, AudioPortCap *dataBlock);
61 
62 void AudioPortCapFree(AudioPortCap *dataBlock, bool freeSelf);
63 
64 bool CodecCompCapabilityBlockMarshalling(struct HdfSBuf *data, const CodecCompCapability *dataBlock);
65 
66 bool CodecCompCapabilityBlockUnmarshalling(struct HdfSBuf *data, CodecCompCapability *dataBlock);
67 
68 #ifdef __cplusplus
69 }
70 #endif /* __cplusplus */
71 
72 #endif // HDI_CODECTYPES_H