mdp_scale_tables.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* drivers/video/msm_fb/mdp_scale_tables.h
  2. *
  3. * Copyright (C) 2007 QUALCOMM Incorporated
  4. * Copyright (C) 2007 Google Incorporated
  5. *
  6. * This software is licensed under the terms of the GNU General Public
  7. * License version 2, as published by the Free Software Foundation, and
  8. * may be copied, distributed, and modified under those terms.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #ifndef _MDP_SCALE_TABLES_H_
  16. #define _MDP_SCALE_TABLES_H_
  17. #include <linux/types.h>
  18. struct mdp_table_entry {
  19. uint32_t reg;
  20. uint32_t val;
  21. };
  22. extern struct mdp_table_entry mdp_upscale_table[64];
  23. enum {
  24. MDP_DOWNSCALE_PT2TOPT4,
  25. MDP_DOWNSCALE_PT4TOPT6,
  26. MDP_DOWNSCALE_PT6TOPT8,
  27. MDP_DOWNSCALE_PT8TO1,
  28. MDP_DOWNSCALE_MAX,
  29. };
  30. extern struct mdp_table_entry *mdp_downscale_x_table[MDP_DOWNSCALE_MAX];
  31. extern struct mdp_table_entry *mdp_downscale_y_table[MDP_DOWNSCALE_MAX];
  32. extern struct mdp_table_entry mdp_gaussian_blur_table[];
  33. #endif