1/* 2 * Copyright (C) 2013 Google, Inc. 3 * 4 * This software is licensed under the terms of the GNU General Public 5 * License version 2, as published by the Free Software Foundation, and 6 * may be copied, distributed, and modified under those terms. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * 13 */ 14 15#ifndef _VIDEO_ADF_FORMAT_H 16#define _VIDEO_ADF_FORMAT_H 17 18bool adf_format_is_standard(u32 format); 19bool adf_format_is_rgb(u32 format); 20u8 adf_format_num_planes(u32 format); 21u8 adf_format_bpp(u32 format); 22u8 adf_format_plane_cpp(u32 format, int plane); 23u8 adf_format_horz_chroma_subsampling(u32 format); 24u8 adf_format_vert_chroma_subsampling(u32 format); 25 26#endif /* _VIDEO_ADF_FORMAT_H */ 27