1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Support for Intel Camera Imaging ISP subsystem.
4 * Copyright (c) 2015, Intel Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13 * more details.
14 */
15
16#ifndef __IA_CSS_PIPE_UTIL_H__
17#define __IA_CSS_PIPE_UTIL_H__
18
19#include <ia_css_types.h>
20#include <ia_css_frame_public.h>
21
22/* @brief Get Input format bits per pixel based on stream configuration of this
23 * pipe.
24 *
25 * @param[in] pipe
26 * @return   bits per pixel for the underlying stream
27 *
28 */
29unsigned int ia_css_pipe_util_pipe_input_format_bpp(
30    const struct ia_css_pipe *const pipe);
31
32void ia_css_pipe_util_create_output_frames(
33    struct ia_css_frame *frames[]);
34
35void ia_css_pipe_util_set_output_frames(
36    struct ia_css_frame *frames[],
37    unsigned int idx,
38    struct ia_css_frame *frame);
39
40#endif /* __IA_CSS_PIPE_UTIL_H__ */
41