• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 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 #ifndef METADATAHELPER_UTIL_H
17 #define METADATAHELPER_UTIL_H
18 
19 #include <cstdint>
20 #include <vector>
21 #include <securec.h>
22 #include "meta/meta.h"
23 
24 typedef struct  {
25     int32_t width;
26     int32_t height;
27 } CPixelMapParams;
28 
29 typedef struct {
30     int32_t fd;
31     int64_t offset;
32     int64_t length;
33 } CAVFileDescriptor;
34 
35 typedef struct {
36     int64_t fileSize;
37     int64_t callback;
38 } CAVDataSrcDescriptor;
39 
40 typedef struct {
41     float latitude;
42     float longitude;
43 } CLocation;
44 
45 typedef struct {
46     char** key;
47     char** value;
48     int64_t size;
49 } CCustomInfo;
50 
51 typedef struct {
52     char* album;
53     char* albumArtist;
54     char* artist;
55     char* author;
56     char* dateTime;
57     char* dateTimeFormat;
58     char* composer;
59     char* duration;
60     char* genre;
61     char* hasAudio;
62     char* hasVideo;
63     char* mimeType;
64     char* trackCount;
65     char* sampleRate;
66     char* title;
67     char* videoHeight;
68     char* videoWidth;
69     char* videoOrientation;
70     int32_t hdrType;
71     CLocation location;
72     CCustomInfo customInfo;
73 } CAVMetadata;
74 
75 #endif // METADATAHELPER_UTIL_H
76