/*1* VIC driver for Tegra X12*3* Copyright (c) 2018-2019 CTCaer4*5* This program is free software; you can redistribute it and/or modify it6* under the terms and conditions of the GNU General Public License,7* version 2, as published by the Free Software Foundation.8*9* This program is distributed in the hope it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for12* more details.13*14* You should have received a copy of the GNU General Public License15* along with this program. If not, see <http://www.gnu.org/licenses/>.16*/1718#ifndef _VIC_H_19#define _VIC_H_2021#include <utils/types.h>2223#define VIC_THI_SLCG_OVERRIDE_LOW_A 0x8C2425typedef enum _vic_rotation_t26{27VIC_ROTATION_0 = 0,28VIC_ROTATION_90 = 1,29VIC_ROTATION_180 = 2,30VIC_ROTATION_270 = 3,31} vic_rotation_t;3233typedef enum _vic_pix_format_t34{35VIC_PIX_FORMAT_L8 = 1, // 8-bit LUT.36VIC_PIX_FORMAT_X1B5G5R5 = 21, // 16-bit XBGR.37VIC_PIX_FORMAT_B5G5R5X1 = 23, // 16-bit BGRX.3839VIC_PIX_FORMAT_A8B8G8R8 = 31, // 32-bit ABGR.40VIC_PIX_FORMAT_A8R8G8B8 = 32, // 32-bit ARGB.41VIC_PIX_FORMAT_B8G8R8A8 = 33, // 32-bit BGRA.42VIC_PIX_FORMAT_R8G8B8A8 = 34, // 32-bit RGBA.4344VIC_PIX_FORMAT_X8B8G8R8 = 35, // 32-bit XBGR.45VIC_PIX_FORMAT_X8R8G8B8 = 36, // 32-bit XRGB.46VIC_PIX_FORMAT_B8G8R8X8 = 37, // 32-bit BGRX.47VIC_PIX_FORMAT_R8G8B8X8 = 38, // 32-bit RGBX.48} vic_pix_format_t;4950typedef struct _vic_surface_t51{52u32 src_buf;53u32 dst_buf;54u32 width;55u32 height;56u32 pix_fmt;57u32 rotation;58} vic_surface_t;5960void vic_set_surface(const vic_surface_t *sfc);61int vic_compose();62int vic_init();63void vic_end();6465#endif666768