| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module arc.mojom; | |
| 6 | |
| 7 import "camera_metadata_tags.mojom"; | |
| 8 | |
| 9 enum EntryType { | |
| 10 TYPE_BYTE = 0, | |
| 11 TYPE_INT32 = 1, | |
| 12 TYPE_FLOAT = 2, | |
| 13 TYPE_INT64 = 3, | |
| 14 TYPE_DOUBLE = 4, | |
| 15 TYPE_RATIONAL = 5, | |
| 16 NUM_TYPES | |
| 17 }; | |
| 18 | |
| 19 // CameraMetadataEntry is a translation of the camera_metadata_entry_t in | |
| 20 // Android camera HAL v3 API (https://goo.gl/OC8sOH). A CameraMetadataEntry | |
| 21 // holds the values of one type of metadata specified by |tag|. | |
| 22 struct CameraMetadataEntry { | |
| 23 uint32 index; | |
| 24 CameraMetadataTag tag; | |
| 25 EntryType type; | |
| 26 uint32 count; // The number of data entries as |type| in |data|. | |
| 27 array<uint8> data; | |
| 28 }; | |
| 29 | |
| 30 // CameraMetadata is a translation of the camera_metadata struct in Android | |
| 31 // camera HAL v3 API (https://goo.gl/G7ligz). A CameraMetadata holds a | |
| 32 // collection of metadata tags and their values. | |
| 33 struct CameraMetadata { | |
| 34 uint32 size; | |
| 35 uint32 entry_count; | |
| 36 uint32 entry_capacity; | |
| 37 uint32 data_count; | |
| 38 uint32 data_capacity; | |
| 39 array<CameraMetadataEntry>? entries; | |
| 40 }; | |
| OLD | NEW |