mtk_rect.h 882 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (C) 2016 MediaTek Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  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.
  11. * See http://www.gnu.org/licenses/gpl-2.0.html for more details.
  12. */
  13. #ifndef _MTK_RECT_H_
  14. #define _MTK_RECT_H_
  15. struct mtk_rect {
  16. int x;
  17. int y;
  18. int width;
  19. int height;
  20. };
  21. void mtk_rect_make(struct mtk_rect *in, int left, int top, int width,
  22. int height);
  23. void mtk_rect_set(struct mtk_rect *in, int left, int top, int right,
  24. int bottom);
  25. void mtk_rect_join(const struct mtk_rect *in1, const struct mtk_rect *in2,
  26. struct mtk_rect *out);
  27. #endif