kernel_samsung_a34x-permissive/drivers/gpu/drm/mediatek/mtk_rect.h

23 lines
472 B
C
Raw Permalink Normal View History

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef _MTK_RECT_H_
#define _MTK_RECT_H_
struct mtk_rect {
int x;
int y;
int width;
int height;
};
void mtk_rect_make(struct mtk_rect *in, int left, int top, int width,
int height);
void mtk_rect_set(struct mtk_rect *in, int left, int top, int right,
int bottom);
void mtk_rect_join(const struct mtk_rect *in1, const struct mtk_rect *in2,
struct mtk_rect *out);
#endif