blob: 3e95a31871025632fbbf9afc5415a8d738f417bd [file] [log] [blame]
Dichen Zhang85b37562022-10-11 11:08:28 -07001/*
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/recoverymap.h>
18
19namespace android::recoverymap {
20
21void* RecoveryMap::decodeRecoveryMap(void* compressed_recovery_map) {
22 if (compressed_recovery_map == nullptr) {
23 return nullptr;
24 }
25
26 // TBD
27 return nullptr;
28}
29
30void* RecoveryMap::encodeRecoveryMap(void* uncompressed_recovery_map) {
31 if (uncompressed_recovery_map == nullptr) {
32 return nullptr;
33 }
34
35 // TBD
36 return nullptr;
37}
38
39void* RecoveryMap::generateRecoveryMap(
40 void* uncompressed_yuv_420_image, void* uncompressed_p010_image) {
41 if (uncompressed_yuv_420_image == nullptr || uncompressed_p010_image == nullptr) {
42 return nullptr;
43 }
44
45 // TBD
46 return nullptr;
47}
48
49void* RecoveryMap::applyRecoveryMap(
50 void* uncompressed_yuv_420_image, void* uncompressed_recovery_map) {
51 if (uncompressed_yuv_420_image == nullptr || uncompressed_recovery_map == nullptr) {
52 return nullptr;
53 }
54
55 // TBD
56 return nullptr;
57}
58
59void* RecoveryMap::extractRecoveryMap(void* compressed_jpeg_g_image) {
60 if (compressed_jpeg_g_image == nullptr) {
61 return nullptr;
62 }
63
64 // TBD
65 return nullptr;
66}
67
68void* RecoveryMap::appendRecoveryMap(void* compressed_jpeg_image, void* compressed_recovery_map) {
69 if (compressed_jpeg_image == nullptr || compressed_recovery_map == nullptr) {
70 return nullptr;
71 }
72
73 // TBD
74 return nullptr;
75}
76
77} // namespace android::recoverymap