/* SPDX-License-Identifier: GPL-2.0 */ /* * Support for Intel Camera Imaging ISP subsystem. * Copyright (c) 2015, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. */ #ifndef __IA_CSS_METADATA_H #define __IA_CSS_METADATA_H /* @file * This file contains structure for processing sensor metadata. */ #include <linux/build_bug.h> #include <type_support.h> #include "ia_css_types.h" #include "ia_css_stream_format.h" /* Metadata configuration. This data structure contains necessary info * to process sensor metadata. */ struct ia_css_metadata_config { … }; struct ia_css_metadata_info { … }; struct ia_css_metadata { … }; #define SIZE_OF_IA_CSS_METADATA_STRUCT … static_assert(…); /* @brief Allocate a metadata buffer. * @param[in] metadata_info Metadata info struct, contains details on metadata buffers. * @return Pointer of metadata buffer or NULL (if error) * * This function allocates a metadata buffer according to the properties * specified in the metadata_info struct. */ struct ia_css_metadata * ia_css_metadata_allocate(const struct ia_css_metadata_info *metadata_info); /* @brief Free a metadata buffer. * * @param[in] metadata Pointer of metadata buffer. * @return None * * This function frees a metadata buffer. */ void ia_css_metadata_free(struct ia_css_metadata *metadata); #endif /* __IA_CSS_METADATA_H */