blob: f8549f1f9d4c248aad3b64c245f9f539fa381d74 [file] [log] [blame]
Fyodor Kyslov1dcc4422022-11-16 01:40:53 +00001/*
2 * Copyright 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include <jpegrecoverymap/recoverymaputils.h>
18#include <jpegrecoverymap/recoverymap.h>
19
20namespace android::recoverymap {
21
22bool getMetadataFromXMP(uint8_t* xmp_data, size_t xmp_size, jpegr_metadata* metadata) {
23 // TODO: Parse XMP Data
24 (void)xmp_data;
25 (void)xmp_size;
26 metadata->rangeScalingFactor = 0.0708864;
27 metadata->transferFunction = JPEGR_TF_HLG;
28 return true;
29}
30
31}