blob: ab6c404887de737293ed5151e05865beb2cb4cf5 [file] [log] [blame]
## -*- coding: utf-8 -*-
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* !! Do not reference this file directly !!
*
* It is logically a part of camera_metadata.c. It is broken out for ease of
* maintaining the tag info.
*
* Array assignments are done using specified-index syntax to keep things in
* sync with camera_metadata_tags.h
*/
/**
* ! Do not edit this file directly !
*
* Generated automatically from camera_metadata_tag_info.mako
*/
const char *camera_metadata_section_names[ANDROID_SECTION_COUNT] = {
% for i in find_all_sections(metadata):
${"[%s]" %(path_name(i)) | csym,pad(36)} = "${path_name(i)}",
% endfor
};
unsigned int camera_metadata_section_bounds[ANDROID_SECTION_COUNT][2] = {
% for i in find_all_sections(metadata):
${"[%s]" %(path_name(i)) | csym,pad(36)} = { ${path_name(i) | csym}_START,
${path_name(i) | csym}_END },
% endfor
};
% for sec in find_all_sections(metadata):
static tag_info_t ${path_name(sec) | csyml}[${path_name(sec) | csym}_END -
${path_name(sec) | csym}_START] = {
% for entry in find_unique_entries(sec):
[ ${entry.name | csym} - ${path_name(sec) | csym}_START ] =
{ ${'"%s",' %(entry.name_short) | pad(40)} ${entry.type | ctype_enum,ljust(11)} },
% endfor
};
% endfor
tag_info_t *tag_info[ANDROID_SECTION_COUNT] = {
% for i in find_all_sections(metadata):
${path_name(i) | csyml},
% endfor
};