• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * vendor/amlogic/media/common/ge2d/ge2dgen.h
3  *
4  * Copyright (C) 2017 Amlogic, Inc. All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14  * more details.
15  *
16  */
17 
18 #ifndef _GE2DGEN_H_
19 #define _GE2DGEN_H_
20 
21 void ge2dgen_src(struct ge2d_context_s *wq, unsigned int canvas_addr, unsigned int format, unsigned int phy_addr,
22                  unsigned int stride);
23 
24 void ge2dgen_post_release_src1buf(struct ge2d_context_s *wq, unsigned int buffer);
25 
26 void ge2dgen_post_release_src1canvas(struct ge2d_context_s *wq);
27 
28 void ge2dgen_post_release_src2buf(struct ge2d_context_s *wq, unsigned int buffer);
29 
30 void ge2dgen_post_release_src2canvas(struct ge2d_context_s *wq);
31 
32 void ge2dgen_src2(struct ge2d_context_s *wq, unsigned int canvas_addr, unsigned int format, unsigned int phy_addr,
33                   unsigned int stride);
34 
35 void ge2dgen_src2_clip(struct ge2d_context_s *wq, int x, int y, int w, int h);
36 void ge2dgen_antiflicker(struct ge2d_context_s *wq, unsigned long enable);
37 void ge2dgen_rendering_dir(struct ge2d_context_s *wq, int src1_xrev, int src1_yrev, int dst_xrev, int dst_yrev,
38                            int dst_xy_swap);
39 
40 void ge2dgen_dst(struct ge2d_context_s *wq, unsigned int canvas_addr, unsigned int format, unsigned int phy_addr,
41                  unsigned int stride);
42 
43 void ge2dgen_src_clip(struct ge2d_context_s *wq, int x, int y, int w, int h);
44 
45 void ge2dgen_src_key(struct ge2d_context_s *wq, int en, int key, int keymask, int keymode);
46 
47 void ge2dgent_src_gbalpha(struct ge2d_context_s *wq, unsigned char alpha1, unsigned char alpha2);
48 
49 void ge2dgen_src_color(struct ge2d_context_s *wq, unsigned int color);
50 
51 void ge2dgent_rendering_dir(struct ge2d_context_s *wq, int src_x_dir, int src_y_dir, int dst_x_dir, int dst_y_dir);
52 
53 void ge2dgen_dst_clip(struct ge2d_context_s *wq, int x, int y, int w, int h, int mode);
54 
55 void ge2dgent_src2_clip(struct ge2d_context_s *wq, int x, int y, int w, int h);
56 
57 void ge2dgen_cb(struct ge2d_context_s *wq, int (*cmd_cb)(unsigned int), unsigned int param);
58 
59 void ge2dgen_const_color(struct ge2d_context_s *wq, unsigned int color);
60 void ge2dgen_disable_matrix(struct ge2d_context_s *wq);
61 #endif
62