1 /*
2  * Copyright (C) 2019 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 #ifndef HARDWARE_GOOGLE_CAMERA_HAL_VENDOR_TAG_TYPES_H
18 #define HARDWARE_GOOGLE_CAMERA_HAL_VENDOR_TAG_TYPES_H
19 
20 #include "hal_types.h"
21 
22 namespace android {
23 namespace google_camera_hal {
24 
25 // Payload for com.google.internal.OutputIntent to indicate output intent of
26 // the request. HWL can remap these to its usecases.
27 enum class OutputIntent : uint8_t {
28   kPreview,        // For requesting preview output.
29   kSnapshot,       // For requesting jpeg output.
30   kVideo,          // For requesting video output, i.e. only in recording.
31   kZsl,            // For requesting zsl output.
32   kVideoSnapshot,  // For requesting jpeg output during recording.
33 };
34 
35 // Payload for com.google.internal.ProcessingMode to indicate processing mode
36 // of the request
37 enum class ProcessingMode : uint8_t {
38   // The request's output is indended to be the final output that will be
39   // delivered to the camera framework
40   kFinalProcessing,
41   // The request's output is indended to be an intermediate output, and further
42   // requests will be made to deliver the result to the camera framework
43   kIntermediateProcessing
44 };
45 
46 // Payload for com.google.internal.hdr.UsageMode to indicate usage mode
47 // of project
48 enum class HdrMode : uint8_t {
49   // Mode of default hdrplus engine flow
50   kHdrplusMode,
51   // Mode of non-hdrplus flow
52   kNonHdrplusMode,
53   // Mode of non-hdrplus + Hdrnet flow
54   kHdrnetMode
55 };
56 
57 // Byte-pack any structures that are used as the payload of the vendor tags
58 #pragma pack(push, 1)
59 // Placeholder to define any structures used as payload for HAL vendor tags
60 #pragma pack(pop)
61 
62 }  // namespace google_camera_hal
63 }  // namespace android
64 
65 #endif  // HARDWARE_GOOGLE_CAMERA_HAL_VENDOR_TAG_TYPES_H
66