adf_format.h 891 B

1234567891011121314151617181920212223242526
  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. #ifndef _VIDEO_ADF_FORMAT_H
  15. #define _VIDEO_ADF_FORMAT_H
  16. bool adf_format_is_standard(u32 format);
  17. bool adf_format_is_rgb(u32 format);
  18. u8 adf_format_num_planes(u32 format);
  19. u8 adf_format_bpp(u32 format);
  20. u8 adf_format_plane_cpp(u32 format, int plane);
  21. u8 adf_format_horz_chroma_subsampling(u32 format);
  22. u8 adf_format_vert_chroma_subsampling(u32 format);
  23. #endif /* _VIDEO_ADF_FORMAT_H */