rkrga_sys/
bindings.rs

1/* automatically generated by rust-bindgen 0.59.2 */
2
3pub const HAL_TRANSFORM_FLIP_H: u32 = 1;
4pub const HAL_TRANSFORM_FLIP_V: u32 = 2;
5pub const HAL_TRANSFORM_ROT_90: u32 = 4;
6pub const HAL_TRANSFORM_ROT_180: u32 = 3;
7pub const HAL_TRANSFORM_ROT_270: u32 = 7;
8pub const HAL_TRANSFORM_FLIP_H_V: u32 = 8;
9pub const RGA_BLIT_SYNC: u32 = 20503;
10pub const RGA_BLIT_ASYNC: u32 = 20504;
11pub const RGA_FLUSH: u32 = 20505;
12pub const RGA_GET_RESULT: u32 = 20506;
13pub const RGA_GET_VERSION: u32 = 20507;
14pub const RGA_REG_CTRL_LEN: u32 = 8;
15pub const RGA_REG_CMD_LEN: u32 = 28;
16pub const RGA_CMD_BUF_SIZE: u32 = 1792;
17pub type __int16_t = ::std::os::raw::c_short;
18pub type __int32_t = ::std::os::raw::c_int;
19pub type size_t = ::std::os::raw::c_ulong;
20#[repr(u32)]
21#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
22pub enum drm_rockchip_gem_mem_type {
23    ROCKCHIP_BO_CONTIG = 1,
24    ROCKCHIP_BO_CACHABLE = 2,
25    ROCKCHIP_BO_WC = 4,
26    ROCKCHIP_BO_SECURE = 8,
27    ROCKCHIP_BO_MASK = 15,
28}
29#[repr(C)]
30#[derive(Debug, Copy, Clone, PartialEq, Eq)]
31pub struct bo {
32    pub fd: ::std::os::raw::c_int,
33    pub ptr: *mut ::std::os::raw::c_void,
34    pub size: size_t,
35    pub offset: size_t,
36    pub pitch: size_t,
37    pub handle: ::std::os::raw::c_uint,
38}
39#[test]
40fn bindgen_test_layout_bo() {
41    assert_eq!(
42        ::std::mem::size_of::<bo>(),
43        48usize,
44        concat!("Size of: ", stringify!(bo))
45    );
46    assert_eq!(
47        ::std::mem::align_of::<bo>(),
48        8usize,
49        concat!("Alignment of ", stringify!(bo))
50    );
51    assert_eq!(
52        unsafe { &(*(::std::ptr::null::<bo>())).fd as *const _ as usize },
53        0usize,
54        concat!("Offset of field: ", stringify!(bo), "::", stringify!(fd))
55    );
56    assert_eq!(
57        unsafe { &(*(::std::ptr::null::<bo>())).ptr as *const _ as usize },
58        8usize,
59        concat!("Offset of field: ", stringify!(bo), "::", stringify!(ptr))
60    );
61    assert_eq!(
62        unsafe { &(*(::std::ptr::null::<bo>())).size as *const _ as usize },
63        16usize,
64        concat!("Offset of field: ", stringify!(bo), "::", stringify!(size))
65    );
66    assert_eq!(
67        unsafe { &(*(::std::ptr::null::<bo>())).offset as *const _ as usize },
68        24usize,
69        concat!(
70            "Offset of field: ",
71            stringify!(bo),
72            "::",
73            stringify!(offset)
74        )
75    );
76    assert_eq!(
77        unsafe { &(*(::std::ptr::null::<bo>())).pitch as *const _ as usize },
78        32usize,
79        concat!("Offset of field: ", stringify!(bo), "::", stringify!(pitch))
80    );
81    assert_eq!(
82        unsafe { &(*(::std::ptr::null::<bo>())).handle as *const _ as usize },
83        40usize,
84        concat!(
85            "Offset of field: ",
86            stringify!(bo),
87            "::",
88            stringify!(handle)
89        )
90    );
91}
92impl Default for bo {
93    fn default() -> Self {
94        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
95        unsafe {
96            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
97            s.assume_init()
98        }
99    }
100}
101pub type bo_t = bo;
102#[repr(C)]
103#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
104pub struct rga_rect {
105    pub xoffset: ::std::os::raw::c_int,
106    pub yoffset: ::std::os::raw::c_int,
107    pub width: ::std::os::raw::c_int,
108    pub height: ::std::os::raw::c_int,
109    pub wstride: ::std::os::raw::c_int,
110    pub hstride: ::std::os::raw::c_int,
111    pub format: ::std::os::raw::c_int,
112    pub size: ::std::os::raw::c_int,
113}
114#[test]
115fn bindgen_test_layout_rga_rect() {
116    assert_eq!(
117        ::std::mem::size_of::<rga_rect>(),
118        32usize,
119        concat!("Size of: ", stringify!(rga_rect))
120    );
121    assert_eq!(
122        ::std::mem::align_of::<rga_rect>(),
123        4usize,
124        concat!("Alignment of ", stringify!(rga_rect))
125    );
126    assert_eq!(
127        unsafe { &(*(::std::ptr::null::<rga_rect>())).xoffset as *const _ as usize },
128        0usize,
129        concat!(
130            "Offset of field: ",
131            stringify!(rga_rect),
132            "::",
133            stringify!(xoffset)
134        )
135    );
136    assert_eq!(
137        unsafe { &(*(::std::ptr::null::<rga_rect>())).yoffset as *const _ as usize },
138        4usize,
139        concat!(
140            "Offset of field: ",
141            stringify!(rga_rect),
142            "::",
143            stringify!(yoffset)
144        )
145    );
146    assert_eq!(
147        unsafe { &(*(::std::ptr::null::<rga_rect>())).width as *const _ as usize },
148        8usize,
149        concat!(
150            "Offset of field: ",
151            stringify!(rga_rect),
152            "::",
153            stringify!(width)
154        )
155    );
156    assert_eq!(
157        unsafe { &(*(::std::ptr::null::<rga_rect>())).height as *const _ as usize },
158        12usize,
159        concat!(
160            "Offset of field: ",
161            stringify!(rga_rect),
162            "::",
163            stringify!(height)
164        )
165    );
166    assert_eq!(
167        unsafe { &(*(::std::ptr::null::<rga_rect>())).wstride as *const _ as usize },
168        16usize,
169        concat!(
170            "Offset of field: ",
171            stringify!(rga_rect),
172            "::",
173            stringify!(wstride)
174        )
175    );
176    assert_eq!(
177        unsafe { &(*(::std::ptr::null::<rga_rect>())).hstride as *const _ as usize },
178        20usize,
179        concat!(
180            "Offset of field: ",
181            stringify!(rga_rect),
182            "::",
183            stringify!(hstride)
184        )
185    );
186    assert_eq!(
187        unsafe { &(*(::std::ptr::null::<rga_rect>())).format as *const _ as usize },
188        24usize,
189        concat!(
190            "Offset of field: ",
191            stringify!(rga_rect),
192            "::",
193            stringify!(format)
194        )
195    );
196    assert_eq!(
197        unsafe { &(*(::std::ptr::null::<rga_rect>())).size as *const _ as usize },
198        28usize,
199        concat!(
200            "Offset of field: ",
201            stringify!(rga_rect),
202            "::",
203            stringify!(size)
204        )
205    );
206}
207pub type rga_rect_t = rga_rect;
208#[repr(C)]
209#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
210pub struct rga_nn {
211    pub nn_flag: ::std::os::raw::c_int,
212    pub scale_r: ::std::os::raw::c_int,
213    pub scale_g: ::std::os::raw::c_int,
214    pub scale_b: ::std::os::raw::c_int,
215    pub offset_r: ::std::os::raw::c_int,
216    pub offset_g: ::std::os::raw::c_int,
217    pub offset_b: ::std::os::raw::c_int,
218}
219#[test]
220fn bindgen_test_layout_rga_nn() {
221    assert_eq!(
222        ::std::mem::size_of::<rga_nn>(),
223        28usize,
224        concat!("Size of: ", stringify!(rga_nn))
225    );
226    assert_eq!(
227        ::std::mem::align_of::<rga_nn>(),
228        4usize,
229        concat!("Alignment of ", stringify!(rga_nn))
230    );
231    assert_eq!(
232        unsafe { &(*(::std::ptr::null::<rga_nn>())).nn_flag as *const _ as usize },
233        0usize,
234        concat!(
235            "Offset of field: ",
236            stringify!(rga_nn),
237            "::",
238            stringify!(nn_flag)
239        )
240    );
241    assert_eq!(
242        unsafe { &(*(::std::ptr::null::<rga_nn>())).scale_r as *const _ as usize },
243        4usize,
244        concat!(
245            "Offset of field: ",
246            stringify!(rga_nn),
247            "::",
248            stringify!(scale_r)
249        )
250    );
251    assert_eq!(
252        unsafe { &(*(::std::ptr::null::<rga_nn>())).scale_g as *const _ as usize },
253        8usize,
254        concat!(
255            "Offset of field: ",
256            stringify!(rga_nn),
257            "::",
258            stringify!(scale_g)
259        )
260    );
261    assert_eq!(
262        unsafe { &(*(::std::ptr::null::<rga_nn>())).scale_b as *const _ as usize },
263        12usize,
264        concat!(
265            "Offset of field: ",
266            stringify!(rga_nn),
267            "::",
268            stringify!(scale_b)
269        )
270    );
271    assert_eq!(
272        unsafe { &(*(::std::ptr::null::<rga_nn>())).offset_r as *const _ as usize },
273        16usize,
274        concat!(
275            "Offset of field: ",
276            stringify!(rga_nn),
277            "::",
278            stringify!(offset_r)
279        )
280    );
281    assert_eq!(
282        unsafe { &(*(::std::ptr::null::<rga_nn>())).offset_g as *const _ as usize },
283        20usize,
284        concat!(
285            "Offset of field: ",
286            stringify!(rga_nn),
287            "::",
288            stringify!(offset_g)
289        )
290    );
291    assert_eq!(
292        unsafe { &(*(::std::ptr::null::<rga_nn>())).offset_b as *const _ as usize },
293        24usize,
294        concat!(
295            "Offset of field: ",
296            stringify!(rga_nn),
297            "::",
298            stringify!(offset_b)
299        )
300    );
301}
302pub type rga_nn_t = rga_nn;
303#[repr(C)]
304#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
305pub struct rga_dither {
306    pub enable: ::std::os::raw::c_int,
307    pub mode: ::std::os::raw::c_int,
308    pub lut0_l: ::std::os::raw::c_int,
309    pub lut0_h: ::std::os::raw::c_int,
310    pub lut1_l: ::std::os::raw::c_int,
311    pub lut1_h: ::std::os::raw::c_int,
312}
313#[test]
314fn bindgen_test_layout_rga_dither() {
315    assert_eq!(
316        ::std::mem::size_of::<rga_dither>(),
317        24usize,
318        concat!("Size of: ", stringify!(rga_dither))
319    );
320    assert_eq!(
321        ::std::mem::align_of::<rga_dither>(),
322        4usize,
323        concat!("Alignment of ", stringify!(rga_dither))
324    );
325    assert_eq!(
326        unsafe { &(*(::std::ptr::null::<rga_dither>())).enable as *const _ as usize },
327        0usize,
328        concat!(
329            "Offset of field: ",
330            stringify!(rga_dither),
331            "::",
332            stringify!(enable)
333        )
334    );
335    assert_eq!(
336        unsafe { &(*(::std::ptr::null::<rga_dither>())).mode as *const _ as usize },
337        4usize,
338        concat!(
339            "Offset of field: ",
340            stringify!(rga_dither),
341            "::",
342            stringify!(mode)
343        )
344    );
345    assert_eq!(
346        unsafe { &(*(::std::ptr::null::<rga_dither>())).lut0_l as *const _ as usize },
347        8usize,
348        concat!(
349            "Offset of field: ",
350            stringify!(rga_dither),
351            "::",
352            stringify!(lut0_l)
353        )
354    );
355    assert_eq!(
356        unsafe { &(*(::std::ptr::null::<rga_dither>())).lut0_h as *const _ as usize },
357        12usize,
358        concat!(
359            "Offset of field: ",
360            stringify!(rga_dither),
361            "::",
362            stringify!(lut0_h)
363        )
364    );
365    assert_eq!(
366        unsafe { &(*(::std::ptr::null::<rga_dither>())).lut1_l as *const _ as usize },
367        16usize,
368        concat!(
369            "Offset of field: ",
370            stringify!(rga_dither),
371            "::",
372            stringify!(lut1_l)
373        )
374    );
375    assert_eq!(
376        unsafe { &(*(::std::ptr::null::<rga_dither>())).lut1_h as *const _ as usize },
377        20usize,
378        concat!(
379            "Offset of field: ",
380            stringify!(rga_dither),
381            "::",
382            stringify!(lut1_h)
383        )
384    );
385}
386pub type rga_dither_t = rga_dither;
387#[repr(C)]
388#[derive(Debug, Copy, Clone, PartialEq, Eq)]
389pub struct rga_info {
390    pub fd: ::std::os::raw::c_int,
391    pub virAddr: *mut ::std::os::raw::c_void,
392    pub phyAddr: *mut ::std::os::raw::c_void,
393    pub hnd: ::std::os::raw::c_uint,
394    pub format: ::std::os::raw::c_int,
395    pub rect: rga_rect_t,
396    pub blend: ::std::os::raw::c_uint,
397    pub bufferSize: ::std::os::raw::c_int,
398    pub rotation: ::std::os::raw::c_int,
399    pub color: ::std::os::raw::c_int,
400    pub testLog: ::std::os::raw::c_int,
401    pub mmuFlag: ::std::os::raw::c_int,
402    pub colorkey_en: ::std::os::raw::c_int,
403    pub colorkey_mode: ::std::os::raw::c_int,
404    pub colorkey_max: ::std::os::raw::c_int,
405    pub colorkey_min: ::std::os::raw::c_int,
406    pub scale_mode: ::std::os::raw::c_int,
407    pub color_space_mode: ::std::os::raw::c_int,
408    pub sync_mode: ::std::os::raw::c_int,
409    pub nn: rga_nn_t,
410    pub dither: rga_dither_t,
411    pub rop_code: ::std::os::raw::c_int,
412    pub reserve: [::std::os::raw::c_int; 127usize],
413}
414#[test]
415fn bindgen_test_layout_rga_info() {
416    assert_eq!(
417        ::std::mem::size_of::<rga_info>(),
418        680usize,
419        concat!("Size of: ", stringify!(rga_info))
420    );
421    assert_eq!(
422        ::std::mem::align_of::<rga_info>(),
423        8usize,
424        concat!("Alignment of ", stringify!(rga_info))
425    );
426    assert_eq!(
427        unsafe { &(*(::std::ptr::null::<rga_info>())).fd as *const _ as usize },
428        0usize,
429        concat!(
430            "Offset of field: ",
431            stringify!(rga_info),
432            "::",
433            stringify!(fd)
434        )
435    );
436    assert_eq!(
437        unsafe { &(*(::std::ptr::null::<rga_info>())).virAddr as *const _ as usize },
438        8usize,
439        concat!(
440            "Offset of field: ",
441            stringify!(rga_info),
442            "::",
443            stringify!(virAddr)
444        )
445    );
446    assert_eq!(
447        unsafe { &(*(::std::ptr::null::<rga_info>())).phyAddr as *const _ as usize },
448        16usize,
449        concat!(
450            "Offset of field: ",
451            stringify!(rga_info),
452            "::",
453            stringify!(phyAddr)
454        )
455    );
456    assert_eq!(
457        unsafe { &(*(::std::ptr::null::<rga_info>())).hnd as *const _ as usize },
458        24usize,
459        concat!(
460            "Offset of field: ",
461            stringify!(rga_info),
462            "::",
463            stringify!(hnd)
464        )
465    );
466    assert_eq!(
467        unsafe { &(*(::std::ptr::null::<rga_info>())).format as *const _ as usize },
468        28usize,
469        concat!(
470            "Offset of field: ",
471            stringify!(rga_info),
472            "::",
473            stringify!(format)
474        )
475    );
476    assert_eq!(
477        unsafe { &(*(::std::ptr::null::<rga_info>())).rect as *const _ as usize },
478        32usize,
479        concat!(
480            "Offset of field: ",
481            stringify!(rga_info),
482            "::",
483            stringify!(rect)
484        )
485    );
486    assert_eq!(
487        unsafe { &(*(::std::ptr::null::<rga_info>())).blend as *const _ as usize },
488        64usize,
489        concat!(
490            "Offset of field: ",
491            stringify!(rga_info),
492            "::",
493            stringify!(blend)
494        )
495    );
496    assert_eq!(
497        unsafe { &(*(::std::ptr::null::<rga_info>())).bufferSize as *const _ as usize },
498        68usize,
499        concat!(
500            "Offset of field: ",
501            stringify!(rga_info),
502            "::",
503            stringify!(bufferSize)
504        )
505    );
506    assert_eq!(
507        unsafe { &(*(::std::ptr::null::<rga_info>())).rotation as *const _ as usize },
508        72usize,
509        concat!(
510            "Offset of field: ",
511            stringify!(rga_info),
512            "::",
513            stringify!(rotation)
514        )
515    );
516    assert_eq!(
517        unsafe { &(*(::std::ptr::null::<rga_info>())).color as *const _ as usize },
518        76usize,
519        concat!(
520            "Offset of field: ",
521            stringify!(rga_info),
522            "::",
523            stringify!(color)
524        )
525    );
526    assert_eq!(
527        unsafe { &(*(::std::ptr::null::<rga_info>())).testLog as *const _ as usize },
528        80usize,
529        concat!(
530            "Offset of field: ",
531            stringify!(rga_info),
532            "::",
533            stringify!(testLog)
534        )
535    );
536    assert_eq!(
537        unsafe { &(*(::std::ptr::null::<rga_info>())).mmuFlag as *const _ as usize },
538        84usize,
539        concat!(
540            "Offset of field: ",
541            stringify!(rga_info),
542            "::",
543            stringify!(mmuFlag)
544        )
545    );
546    assert_eq!(
547        unsafe { &(*(::std::ptr::null::<rga_info>())).colorkey_en as *const _ as usize },
548        88usize,
549        concat!(
550            "Offset of field: ",
551            stringify!(rga_info),
552            "::",
553            stringify!(colorkey_en)
554        )
555    );
556    assert_eq!(
557        unsafe { &(*(::std::ptr::null::<rga_info>())).colorkey_mode as *const _ as usize },
558        92usize,
559        concat!(
560            "Offset of field: ",
561            stringify!(rga_info),
562            "::",
563            stringify!(colorkey_mode)
564        )
565    );
566    assert_eq!(
567        unsafe { &(*(::std::ptr::null::<rga_info>())).colorkey_max as *const _ as usize },
568        96usize,
569        concat!(
570            "Offset of field: ",
571            stringify!(rga_info),
572            "::",
573            stringify!(colorkey_max)
574        )
575    );
576    assert_eq!(
577        unsafe { &(*(::std::ptr::null::<rga_info>())).colorkey_min as *const _ as usize },
578        100usize,
579        concat!(
580            "Offset of field: ",
581            stringify!(rga_info),
582            "::",
583            stringify!(colorkey_min)
584        )
585    );
586    assert_eq!(
587        unsafe { &(*(::std::ptr::null::<rga_info>())).scale_mode as *const _ as usize },
588        104usize,
589        concat!(
590            "Offset of field: ",
591            stringify!(rga_info),
592            "::",
593            stringify!(scale_mode)
594        )
595    );
596    assert_eq!(
597        unsafe { &(*(::std::ptr::null::<rga_info>())).color_space_mode as *const _ as usize },
598        108usize,
599        concat!(
600            "Offset of field: ",
601            stringify!(rga_info),
602            "::",
603            stringify!(color_space_mode)
604        )
605    );
606    assert_eq!(
607        unsafe { &(*(::std::ptr::null::<rga_info>())).sync_mode as *const _ as usize },
608        112usize,
609        concat!(
610            "Offset of field: ",
611            stringify!(rga_info),
612            "::",
613            stringify!(sync_mode)
614        )
615    );
616    assert_eq!(
617        unsafe { &(*(::std::ptr::null::<rga_info>())).nn as *const _ as usize },
618        116usize,
619        concat!(
620            "Offset of field: ",
621            stringify!(rga_info),
622            "::",
623            stringify!(nn)
624        )
625    );
626    assert_eq!(
627        unsafe { &(*(::std::ptr::null::<rga_info>())).dither as *const _ as usize },
628        144usize,
629        concat!(
630            "Offset of field: ",
631            stringify!(rga_info),
632            "::",
633            stringify!(dither)
634        )
635    );
636    assert_eq!(
637        unsafe { &(*(::std::ptr::null::<rga_info>())).rop_code as *const _ as usize },
638        168usize,
639        concat!(
640            "Offset of field: ",
641            stringify!(rga_info),
642            "::",
643            stringify!(rop_code)
644        )
645    );
646    assert_eq!(
647        unsafe { &(*(::std::ptr::null::<rga_info>())).reserve as *const _ as usize },
648        172usize,
649        concat!(
650            "Offset of field: ",
651            stringify!(rga_info),
652            "::",
653            stringify!(reserve)
654        )
655    );
656}
657impl Default for rga_info {
658    fn default() -> Self {
659        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
660        unsafe {
661            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
662            s.assume_init()
663        }
664    }
665}
666pub type rga_info_t = rga_info;
667#[repr(C)]
668#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
669pub struct drm_rga {
670    pub src: rga_rect_t,
671    pub dst: rga_rect_t,
672}
673#[test]
674fn bindgen_test_layout_drm_rga() {
675    assert_eq!(
676        ::std::mem::size_of::<drm_rga>(),
677        64usize,
678        concat!("Size of: ", stringify!(drm_rga))
679    );
680    assert_eq!(
681        ::std::mem::align_of::<drm_rga>(),
682        4usize,
683        concat!("Alignment of ", stringify!(drm_rga))
684    );
685    assert_eq!(
686        unsafe { &(*(::std::ptr::null::<drm_rga>())).src as *const _ as usize },
687        0usize,
688        concat!(
689            "Offset of field: ",
690            stringify!(drm_rga),
691            "::",
692            stringify!(src)
693        )
694    );
695    assert_eq!(
696        unsafe { &(*(::std::ptr::null::<drm_rga>())).dst as *const _ as usize },
697        32usize,
698        concat!(
699            "Offset of field: ",
700            stringify!(drm_rga),
701            "::",
702            stringify!(dst)
703        )
704    );
705}
706pub type drm_rga_t = drm_rga;
707#[repr(u32)]
708#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
709pub enum _Rga_SURF_FORMAT {
710    RK_FORMAT_RGBA_8888 = 0,
711    RK_FORMAT_RGBX_8888 = 256,
712    RK_FORMAT_RGB_888 = 512,
713    RK_FORMAT_BGRA_8888 = 768,
714    RK_FORMAT_RGB_565 = 1024,
715    RK_FORMAT_RGBA_5551 = 1280,
716    RK_FORMAT_RGBA_4444 = 1536,
717    RK_FORMAT_BGR_888 = 1792,
718    RK_FORMAT_YCbCr_422_SP = 2048,
719    RK_FORMAT_YCbCr_422_P = 2304,
720    RK_FORMAT_YCbCr_420_SP = 2560,
721    RK_FORMAT_YCbCr_420_P = 2816,
722    RK_FORMAT_YCrCb_422_SP = 3072,
723    RK_FORMAT_YCrCb_422_P = 3328,
724    RK_FORMAT_YCrCb_420_SP = 3584,
725    RK_FORMAT_YCrCb_420_P = 3840,
726    RK_FORMAT_BPP1 = 4096,
727    RK_FORMAT_BPP2 = 4352,
728    RK_FORMAT_BPP4 = 4608,
729    RK_FORMAT_BPP8 = 4864,
730    RK_FORMAT_Y4 = 5120,
731    RK_FORMAT_YCbCr_400 = 5376,
732    RK_FORMAT_BGRX_8888 = 5632,
733    RK_FORMAT_YVYU_422 = 6144,
734    RK_FORMAT_YVYU_420 = 6400,
735    RK_FORMAT_VYUY_422 = 6656,
736    RK_FORMAT_VYUY_420 = 6912,
737    RK_FORMAT_YUYV_422 = 7168,
738    RK_FORMAT_YUYV_420 = 7424,
739    RK_FORMAT_UYVY_422 = 7680,
740    RK_FORMAT_UYVY_420 = 7936,
741    RK_FORMAT_YCbCr_420_SP_10B = 8192,
742    RK_FORMAT_YCrCb_420_SP_10B = 8448,
743    RK_FORMAT_YCbCr_422_10b_SP = 8704,
744    RK_FORMAT_YCrCb_422_10b_SP = 8960,
745    RK_FORMAT_BGR_565 = 9216,
746    RK_FORMAT_BGRA_5551 = 9472,
747    RK_FORMAT_BGRA_4444 = 9728,
748    RK_FORMAT_UNKNOWN = 65536,
749}
750pub use self::_Rga_SURF_FORMAT as RgaSURF_FORMAT;
751#[repr(C)]
752#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
753pub struct rga_img_info_t {
754    pub yrgb_addr: ::std::os::raw::c_ulong,
755    pub uv_addr: ::std::os::raw::c_ulong,
756    pub v_addr: ::std::os::raw::c_ulong,
757    pub format: ::std::os::raw::c_uint,
758    pub act_w: ::std::os::raw::c_ushort,
759    pub act_h: ::std::os::raw::c_ushort,
760    pub x_offset: ::std::os::raw::c_ushort,
761    pub y_offset: ::std::os::raw::c_ushort,
762    pub vir_w: ::std::os::raw::c_ushort,
763    pub vir_h: ::std::os::raw::c_ushort,
764    pub endian_mode: ::std::os::raw::c_ushort,
765    pub alpha_swap: ::std::os::raw::c_ushort,
766}
767#[test]
768fn bindgen_test_layout_rga_img_info_t() {
769    assert_eq!(
770        ::std::mem::size_of::<rga_img_info_t>(),
771        48usize,
772        concat!("Size of: ", stringify!(rga_img_info_t))
773    );
774    assert_eq!(
775        ::std::mem::align_of::<rga_img_info_t>(),
776        8usize,
777        concat!("Alignment of ", stringify!(rga_img_info_t))
778    );
779    assert_eq!(
780        unsafe { &(*(::std::ptr::null::<rga_img_info_t>())).yrgb_addr as *const _ as usize },
781        0usize,
782        concat!(
783            "Offset of field: ",
784            stringify!(rga_img_info_t),
785            "::",
786            stringify!(yrgb_addr)
787        )
788    );
789    assert_eq!(
790        unsafe { &(*(::std::ptr::null::<rga_img_info_t>())).uv_addr as *const _ as usize },
791        8usize,
792        concat!(
793            "Offset of field: ",
794            stringify!(rga_img_info_t),
795            "::",
796            stringify!(uv_addr)
797        )
798    );
799    assert_eq!(
800        unsafe { &(*(::std::ptr::null::<rga_img_info_t>())).v_addr as *const _ as usize },
801        16usize,
802        concat!(
803            "Offset of field: ",
804            stringify!(rga_img_info_t),
805            "::",
806            stringify!(v_addr)
807        )
808    );
809    assert_eq!(
810        unsafe { &(*(::std::ptr::null::<rga_img_info_t>())).format as *const _ as usize },
811        24usize,
812        concat!(
813            "Offset of field: ",
814            stringify!(rga_img_info_t),
815            "::",
816            stringify!(format)
817        )
818    );
819    assert_eq!(
820        unsafe { &(*(::std::ptr::null::<rga_img_info_t>())).act_w as *const _ as usize },
821        28usize,
822        concat!(
823            "Offset of field: ",
824            stringify!(rga_img_info_t),
825            "::",
826            stringify!(act_w)
827        )
828    );
829    assert_eq!(
830        unsafe { &(*(::std::ptr::null::<rga_img_info_t>())).act_h as *const _ as usize },
831        30usize,
832        concat!(
833            "Offset of field: ",
834            stringify!(rga_img_info_t),
835            "::",
836            stringify!(act_h)
837        )
838    );
839    assert_eq!(
840        unsafe { &(*(::std::ptr::null::<rga_img_info_t>())).x_offset as *const _ as usize },
841        32usize,
842        concat!(
843            "Offset of field: ",
844            stringify!(rga_img_info_t),
845            "::",
846            stringify!(x_offset)
847        )
848    );
849    assert_eq!(
850        unsafe { &(*(::std::ptr::null::<rga_img_info_t>())).y_offset as *const _ as usize },
851        34usize,
852        concat!(
853            "Offset of field: ",
854            stringify!(rga_img_info_t),
855            "::",
856            stringify!(y_offset)
857        )
858    );
859    assert_eq!(
860        unsafe { &(*(::std::ptr::null::<rga_img_info_t>())).vir_w as *const _ as usize },
861        36usize,
862        concat!(
863            "Offset of field: ",
864            stringify!(rga_img_info_t),
865            "::",
866            stringify!(vir_w)
867        )
868    );
869    assert_eq!(
870        unsafe { &(*(::std::ptr::null::<rga_img_info_t>())).vir_h as *const _ as usize },
871        38usize,
872        concat!(
873            "Offset of field: ",
874            stringify!(rga_img_info_t),
875            "::",
876            stringify!(vir_h)
877        )
878    );
879    assert_eq!(
880        unsafe { &(*(::std::ptr::null::<rga_img_info_t>())).endian_mode as *const _ as usize },
881        40usize,
882        concat!(
883            "Offset of field: ",
884            stringify!(rga_img_info_t),
885            "::",
886            stringify!(endian_mode)
887        )
888    );
889    assert_eq!(
890        unsafe { &(*(::std::ptr::null::<rga_img_info_t>())).alpha_swap as *const _ as usize },
891        42usize,
892        concat!(
893            "Offset of field: ",
894            stringify!(rga_img_info_t),
895            "::",
896            stringify!(alpha_swap)
897        )
898    );
899}
900#[repr(C)]
901#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
902pub struct POINT {
903    pub x: ::std::os::raw::c_ushort,
904    pub y: ::std::os::raw::c_ushort,
905}
906#[test]
907fn bindgen_test_layout_POINT() {
908    assert_eq!(
909        ::std::mem::size_of::<POINT>(),
910        4usize,
911        concat!("Size of: ", stringify!(POINT))
912    );
913    assert_eq!(
914        ::std::mem::align_of::<POINT>(),
915        2usize,
916        concat!("Alignment of ", stringify!(POINT))
917    );
918    assert_eq!(
919        unsafe { &(*(::std::ptr::null::<POINT>())).x as *const _ as usize },
920        0usize,
921        concat!("Offset of field: ", stringify!(POINT), "::", stringify!(x))
922    );
923    assert_eq!(
924        unsafe { &(*(::std::ptr::null::<POINT>())).y as *const _ as usize },
925        2usize,
926        concat!("Offset of field: ", stringify!(POINT), "::", stringify!(y))
927    );
928}
929#[repr(C)]
930#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
931pub struct RECT {
932    pub xmin: ::std::os::raw::c_ushort,
933    pub xmax: ::std::os::raw::c_ushort,
934    pub ymin: ::std::os::raw::c_ushort,
935    pub ymax: ::std::os::raw::c_ushort,
936}
937#[test]
938fn bindgen_test_layout_RECT() {
939    assert_eq!(
940        ::std::mem::size_of::<RECT>(),
941        8usize,
942        concat!("Size of: ", stringify!(RECT))
943    );
944    assert_eq!(
945        ::std::mem::align_of::<RECT>(),
946        2usize,
947        concat!("Alignment of ", stringify!(RECT))
948    );
949    assert_eq!(
950        unsafe { &(*(::std::ptr::null::<RECT>())).xmin as *const _ as usize },
951        0usize,
952        concat!(
953            "Offset of field: ",
954            stringify!(RECT),
955            "::",
956            stringify!(xmin)
957        )
958    );
959    assert_eq!(
960        unsafe { &(*(::std::ptr::null::<RECT>())).xmax as *const _ as usize },
961        2usize,
962        concat!(
963            "Offset of field: ",
964            stringify!(RECT),
965            "::",
966            stringify!(xmax)
967        )
968    );
969    assert_eq!(
970        unsafe { &(*(::std::ptr::null::<RECT>())).ymin as *const _ as usize },
971        4usize,
972        concat!(
973            "Offset of field: ",
974            stringify!(RECT),
975            "::",
976            stringify!(ymin)
977        )
978    );
979    assert_eq!(
980        unsafe { &(*(::std::ptr::null::<RECT>())).ymax as *const _ as usize },
981        6usize,
982        concat!(
983            "Offset of field: ",
984            stringify!(RECT),
985            "::",
986            stringify!(ymax)
987        )
988    );
989}
990#[repr(C)]
991#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
992pub struct MMU {
993    pub mmu_en: ::std::os::raw::c_uchar,
994    pub base_addr: ::std::os::raw::c_ulong,
995    pub mmu_flag: ::std::os::raw::c_uint,
996}
997#[test]
998fn bindgen_test_layout_MMU() {
999    assert_eq!(
1000        ::std::mem::size_of::<MMU>(),
1001        24usize,
1002        concat!("Size of: ", stringify!(MMU))
1003    );
1004    assert_eq!(
1005        ::std::mem::align_of::<MMU>(),
1006        8usize,
1007        concat!("Alignment of ", stringify!(MMU))
1008    );
1009    assert_eq!(
1010        unsafe { &(*(::std::ptr::null::<MMU>())).mmu_en as *const _ as usize },
1011        0usize,
1012        concat!(
1013            "Offset of field: ",
1014            stringify!(MMU),
1015            "::",
1016            stringify!(mmu_en)
1017        )
1018    );
1019    assert_eq!(
1020        unsafe { &(*(::std::ptr::null::<MMU>())).base_addr as *const _ as usize },
1021        8usize,
1022        concat!(
1023            "Offset of field: ",
1024            stringify!(MMU),
1025            "::",
1026            stringify!(base_addr)
1027        )
1028    );
1029    assert_eq!(
1030        unsafe { &(*(::std::ptr::null::<MMU>())).mmu_flag as *const _ as usize },
1031        16usize,
1032        concat!(
1033            "Offset of field: ",
1034            stringify!(MMU),
1035            "::",
1036            stringify!(mmu_flag)
1037        )
1038    );
1039}
1040#[repr(C)]
1041#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1042pub struct COLOR_FILL {
1043    pub gr_x_a: ::std::os::raw::c_short,
1044    pub gr_y_a: ::std::os::raw::c_short,
1045    pub gr_x_b: ::std::os::raw::c_short,
1046    pub gr_y_b: ::std::os::raw::c_short,
1047    pub gr_x_g: ::std::os::raw::c_short,
1048    pub gr_y_g: ::std::os::raw::c_short,
1049    pub gr_x_r: ::std::os::raw::c_short,
1050    pub gr_y_r: ::std::os::raw::c_short,
1051}
1052#[test]
1053fn bindgen_test_layout_COLOR_FILL() {
1054    assert_eq!(
1055        ::std::mem::size_of::<COLOR_FILL>(),
1056        16usize,
1057        concat!("Size of: ", stringify!(COLOR_FILL))
1058    );
1059    assert_eq!(
1060        ::std::mem::align_of::<COLOR_FILL>(),
1061        2usize,
1062        concat!("Alignment of ", stringify!(COLOR_FILL))
1063    );
1064    assert_eq!(
1065        unsafe { &(*(::std::ptr::null::<COLOR_FILL>())).gr_x_a as *const _ as usize },
1066        0usize,
1067        concat!(
1068            "Offset of field: ",
1069            stringify!(COLOR_FILL),
1070            "::",
1071            stringify!(gr_x_a)
1072        )
1073    );
1074    assert_eq!(
1075        unsafe { &(*(::std::ptr::null::<COLOR_FILL>())).gr_y_a as *const _ as usize },
1076        2usize,
1077        concat!(
1078            "Offset of field: ",
1079            stringify!(COLOR_FILL),
1080            "::",
1081            stringify!(gr_y_a)
1082        )
1083    );
1084    assert_eq!(
1085        unsafe { &(*(::std::ptr::null::<COLOR_FILL>())).gr_x_b as *const _ as usize },
1086        4usize,
1087        concat!(
1088            "Offset of field: ",
1089            stringify!(COLOR_FILL),
1090            "::",
1091            stringify!(gr_x_b)
1092        )
1093    );
1094    assert_eq!(
1095        unsafe { &(*(::std::ptr::null::<COLOR_FILL>())).gr_y_b as *const _ as usize },
1096        6usize,
1097        concat!(
1098            "Offset of field: ",
1099            stringify!(COLOR_FILL),
1100            "::",
1101            stringify!(gr_y_b)
1102        )
1103    );
1104    assert_eq!(
1105        unsafe { &(*(::std::ptr::null::<COLOR_FILL>())).gr_x_g as *const _ as usize },
1106        8usize,
1107        concat!(
1108            "Offset of field: ",
1109            stringify!(COLOR_FILL),
1110            "::",
1111            stringify!(gr_x_g)
1112        )
1113    );
1114    assert_eq!(
1115        unsafe { &(*(::std::ptr::null::<COLOR_FILL>())).gr_y_g as *const _ as usize },
1116        10usize,
1117        concat!(
1118            "Offset of field: ",
1119            stringify!(COLOR_FILL),
1120            "::",
1121            stringify!(gr_y_g)
1122        )
1123    );
1124    assert_eq!(
1125        unsafe { &(*(::std::ptr::null::<COLOR_FILL>())).gr_x_r as *const _ as usize },
1126        12usize,
1127        concat!(
1128            "Offset of field: ",
1129            stringify!(COLOR_FILL),
1130            "::",
1131            stringify!(gr_x_r)
1132        )
1133    );
1134    assert_eq!(
1135        unsafe { &(*(::std::ptr::null::<COLOR_FILL>())).gr_y_r as *const _ as usize },
1136        14usize,
1137        concat!(
1138            "Offset of field: ",
1139            stringify!(COLOR_FILL),
1140            "::",
1141            stringify!(gr_y_r)
1142        )
1143    );
1144}
1145#[repr(C)]
1146#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1147pub struct FADING {
1148    pub b: ::std::os::raw::c_uchar,
1149    pub g: ::std::os::raw::c_uchar,
1150    pub r: ::std::os::raw::c_uchar,
1151    pub res: ::std::os::raw::c_uchar,
1152}
1153#[test]
1154fn bindgen_test_layout_FADING() {
1155    assert_eq!(
1156        ::std::mem::size_of::<FADING>(),
1157        4usize,
1158        concat!("Size of: ", stringify!(FADING))
1159    );
1160    assert_eq!(
1161        ::std::mem::align_of::<FADING>(),
1162        1usize,
1163        concat!("Alignment of ", stringify!(FADING))
1164    );
1165    assert_eq!(
1166        unsafe { &(*(::std::ptr::null::<FADING>())).b as *const _ as usize },
1167        0usize,
1168        concat!("Offset of field: ", stringify!(FADING), "::", stringify!(b))
1169    );
1170    assert_eq!(
1171        unsafe { &(*(::std::ptr::null::<FADING>())).g as *const _ as usize },
1172        1usize,
1173        concat!("Offset of field: ", stringify!(FADING), "::", stringify!(g))
1174    );
1175    assert_eq!(
1176        unsafe { &(*(::std::ptr::null::<FADING>())).r as *const _ as usize },
1177        2usize,
1178        concat!("Offset of field: ", stringify!(FADING), "::", stringify!(r))
1179    );
1180    assert_eq!(
1181        unsafe { &(*(::std::ptr::null::<FADING>())).res as *const _ as usize },
1182        3usize,
1183        concat!(
1184            "Offset of field: ",
1185            stringify!(FADING),
1186            "::",
1187            stringify!(res)
1188        )
1189    );
1190}
1191#[repr(C)]
1192#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1193pub struct line_draw_t {
1194    pub start_point: POINT,
1195    pub end_point: POINT,
1196    pub color: ::std::os::raw::c_uint,
1197    pub flag: ::std::os::raw::c_uint,
1198    pub line_width: ::std::os::raw::c_uint,
1199}
1200#[test]
1201fn bindgen_test_layout_line_draw_t() {
1202    assert_eq!(
1203        ::std::mem::size_of::<line_draw_t>(),
1204        20usize,
1205        concat!("Size of: ", stringify!(line_draw_t))
1206    );
1207    assert_eq!(
1208        ::std::mem::align_of::<line_draw_t>(),
1209        4usize,
1210        concat!("Alignment of ", stringify!(line_draw_t))
1211    );
1212    assert_eq!(
1213        unsafe { &(*(::std::ptr::null::<line_draw_t>())).start_point as *const _ as usize },
1214        0usize,
1215        concat!(
1216            "Offset of field: ",
1217            stringify!(line_draw_t),
1218            "::",
1219            stringify!(start_point)
1220        )
1221    );
1222    assert_eq!(
1223        unsafe { &(*(::std::ptr::null::<line_draw_t>())).end_point as *const _ as usize },
1224        4usize,
1225        concat!(
1226            "Offset of field: ",
1227            stringify!(line_draw_t),
1228            "::",
1229            stringify!(end_point)
1230        )
1231    );
1232    assert_eq!(
1233        unsafe { &(*(::std::ptr::null::<line_draw_t>())).color as *const _ as usize },
1234        8usize,
1235        concat!(
1236            "Offset of field: ",
1237            stringify!(line_draw_t),
1238            "::",
1239            stringify!(color)
1240        )
1241    );
1242    assert_eq!(
1243        unsafe { &(*(::std::ptr::null::<line_draw_t>())).flag as *const _ as usize },
1244        12usize,
1245        concat!(
1246            "Offset of field: ",
1247            stringify!(line_draw_t),
1248            "::",
1249            stringify!(flag)
1250        )
1251    );
1252    assert_eq!(
1253        unsafe { &(*(::std::ptr::null::<line_draw_t>())).line_width as *const _ as usize },
1254        16usize,
1255        concat!(
1256            "Offset of field: ",
1257            stringify!(line_draw_t),
1258            "::",
1259            stringify!(line_width)
1260        )
1261    );
1262}
1263#[repr(C)]
1264#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1265pub struct csc_coe_t {
1266    pub r_v: i16,
1267    pub g_y: i16,
1268    pub b_u: i16,
1269    pub off: i32,
1270}
1271#[test]
1272fn bindgen_test_layout_csc_coe_t() {
1273    assert_eq!(
1274        ::std::mem::size_of::<csc_coe_t>(),
1275        12usize,
1276        concat!("Size of: ", stringify!(csc_coe_t))
1277    );
1278    assert_eq!(
1279        ::std::mem::align_of::<csc_coe_t>(),
1280        4usize,
1281        concat!("Alignment of ", stringify!(csc_coe_t))
1282    );
1283    assert_eq!(
1284        unsafe { &(*(::std::ptr::null::<csc_coe_t>())).r_v as *const _ as usize },
1285        0usize,
1286        concat!(
1287            "Offset of field: ",
1288            stringify!(csc_coe_t),
1289            "::",
1290            stringify!(r_v)
1291        )
1292    );
1293    assert_eq!(
1294        unsafe { &(*(::std::ptr::null::<csc_coe_t>())).g_y as *const _ as usize },
1295        2usize,
1296        concat!(
1297            "Offset of field: ",
1298            stringify!(csc_coe_t),
1299            "::",
1300            stringify!(g_y)
1301        )
1302    );
1303    assert_eq!(
1304        unsafe { &(*(::std::ptr::null::<csc_coe_t>())).b_u as *const _ as usize },
1305        4usize,
1306        concat!(
1307            "Offset of field: ",
1308            stringify!(csc_coe_t),
1309            "::",
1310            stringify!(b_u)
1311        )
1312    );
1313    assert_eq!(
1314        unsafe { &(*(::std::ptr::null::<csc_coe_t>())).off as *const _ as usize },
1315        8usize,
1316        concat!(
1317            "Offset of field: ",
1318            stringify!(csc_coe_t),
1319            "::",
1320            stringify!(off)
1321        )
1322    );
1323}
1324#[repr(C)]
1325#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1326pub struct full_csc_t {
1327    pub flag: ::std::os::raw::c_uchar,
1328    pub coe_y: csc_coe_t,
1329    pub coe_u: csc_coe_t,
1330    pub coe_v: csc_coe_t,
1331}
1332#[test]
1333fn bindgen_test_layout_full_csc_t() {
1334    assert_eq!(
1335        ::std::mem::size_of::<full_csc_t>(),
1336        40usize,
1337        concat!("Size of: ", stringify!(full_csc_t))
1338    );
1339    assert_eq!(
1340        ::std::mem::align_of::<full_csc_t>(),
1341        4usize,
1342        concat!("Alignment of ", stringify!(full_csc_t))
1343    );
1344    assert_eq!(
1345        unsafe { &(*(::std::ptr::null::<full_csc_t>())).flag as *const _ as usize },
1346        0usize,
1347        concat!(
1348            "Offset of field: ",
1349            stringify!(full_csc_t),
1350            "::",
1351            stringify!(flag)
1352        )
1353    );
1354    assert_eq!(
1355        unsafe { &(*(::std::ptr::null::<full_csc_t>())).coe_y as *const _ as usize },
1356        4usize,
1357        concat!(
1358            "Offset of field: ",
1359            stringify!(full_csc_t),
1360            "::",
1361            stringify!(coe_y)
1362        )
1363    );
1364    assert_eq!(
1365        unsafe { &(*(::std::ptr::null::<full_csc_t>())).coe_u as *const _ as usize },
1366        16usize,
1367        concat!(
1368            "Offset of field: ",
1369            stringify!(full_csc_t),
1370            "::",
1371            stringify!(coe_u)
1372        )
1373    );
1374    assert_eq!(
1375        unsafe { &(*(::std::ptr::null::<full_csc_t>())).coe_v as *const _ as usize },
1376        28usize,
1377        concat!(
1378            "Offset of field: ",
1379            stringify!(full_csc_t),
1380            "::",
1381            stringify!(coe_v)
1382        )
1383    );
1384}
1385#[repr(C)]
1386#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)]
1387pub struct rga_req {
1388    pub render_mode: ::std::os::raw::c_uchar,
1389    pub src: rga_img_info_t,
1390    pub dst: rga_img_info_t,
1391    pub pat: rga_img_info_t,
1392    pub rop_mask_addr: ::std::os::raw::c_ulong,
1393    pub LUT_addr: ::std::os::raw::c_ulong,
1394    pub clip: RECT,
1395    pub sina: ::std::os::raw::c_int,
1396    pub cosa: ::std::os::raw::c_int,
1397    pub alpha_rop_flag: ::std::os::raw::c_ushort,
1398    pub scale_mode: ::std::os::raw::c_uchar,
1399    pub color_key_max: ::std::os::raw::c_uint,
1400    pub color_key_min: ::std::os::raw::c_uint,
1401    pub fg_color: ::std::os::raw::c_uint,
1402    pub bg_color: ::std::os::raw::c_uint,
1403    pub gr_color: COLOR_FILL,
1404    pub line_draw_info: line_draw_t,
1405    pub fading: FADING,
1406    pub PD_mode: ::std::os::raw::c_uchar,
1407    pub alpha_global_value: ::std::os::raw::c_uchar,
1408    pub rop_code: ::std::os::raw::c_ushort,
1409    pub bsfilter_flag: ::std::os::raw::c_uchar,
1410    pub palette_mode: ::std::os::raw::c_uchar,
1411    pub yuv2rgb_mode: ::std::os::raw::c_uchar,
1412    pub endian_mode: ::std::os::raw::c_uchar,
1413    pub rotate_mode: ::std::os::raw::c_uchar,
1414    pub color_fill_mode: ::std::os::raw::c_uchar,
1415    pub mmu_info: MMU,
1416    pub alpha_rop_mode: ::std::os::raw::c_uchar,
1417    pub src_trans_mode: ::std::os::raw::c_uchar,
1418    pub dither_mode: ::std::os::raw::c_uchar,
1419    pub full_csc: full_csc_t,
1420    pub CMD_fin_int_enable: ::std::os::raw::c_uchar,
1421    pub complete: ::std::option::Option<unsafe extern "C" fn(retval: ::std::os::raw::c_int)>,
1422}
1423#[test]
1424fn bindgen_test_layout_rga_req() {
1425    assert_eq!(
1426        ::std::mem::size_of::<rga_req>(),
1427        336usize,
1428        concat!("Size of: ", stringify!(rga_req))
1429    );
1430    assert_eq!(
1431        ::std::mem::align_of::<rga_req>(),
1432        8usize,
1433        concat!("Alignment of ", stringify!(rga_req))
1434    );
1435    assert_eq!(
1436        unsafe { &(*(::std::ptr::null::<rga_req>())).render_mode as *const _ as usize },
1437        0usize,
1438        concat!(
1439            "Offset of field: ",
1440            stringify!(rga_req),
1441            "::",
1442            stringify!(render_mode)
1443        )
1444    );
1445    assert_eq!(
1446        unsafe { &(*(::std::ptr::null::<rga_req>())).src as *const _ as usize },
1447        8usize,
1448        concat!(
1449            "Offset of field: ",
1450            stringify!(rga_req),
1451            "::",
1452            stringify!(src)
1453        )
1454    );
1455    assert_eq!(
1456        unsafe { &(*(::std::ptr::null::<rga_req>())).dst as *const _ as usize },
1457        56usize,
1458        concat!(
1459            "Offset of field: ",
1460            stringify!(rga_req),
1461            "::",
1462            stringify!(dst)
1463        )
1464    );
1465    assert_eq!(
1466        unsafe { &(*(::std::ptr::null::<rga_req>())).pat as *const _ as usize },
1467        104usize,
1468        concat!(
1469            "Offset of field: ",
1470            stringify!(rga_req),
1471            "::",
1472            stringify!(pat)
1473        )
1474    );
1475    assert_eq!(
1476        unsafe { &(*(::std::ptr::null::<rga_req>())).rop_mask_addr as *const _ as usize },
1477        152usize,
1478        concat!(
1479            "Offset of field: ",
1480            stringify!(rga_req),
1481            "::",
1482            stringify!(rop_mask_addr)
1483        )
1484    );
1485    assert_eq!(
1486        unsafe { &(*(::std::ptr::null::<rga_req>())).LUT_addr as *const _ as usize },
1487        160usize,
1488        concat!(
1489            "Offset of field: ",
1490            stringify!(rga_req),
1491            "::",
1492            stringify!(LUT_addr)
1493        )
1494    );
1495    assert_eq!(
1496        unsafe { &(*(::std::ptr::null::<rga_req>())).clip as *const _ as usize },
1497        168usize,
1498        concat!(
1499            "Offset of field: ",
1500            stringify!(rga_req),
1501            "::",
1502            stringify!(clip)
1503        )
1504    );
1505    assert_eq!(
1506        unsafe { &(*(::std::ptr::null::<rga_req>())).sina as *const _ as usize },
1507        176usize,
1508        concat!(
1509            "Offset of field: ",
1510            stringify!(rga_req),
1511            "::",
1512            stringify!(sina)
1513        )
1514    );
1515    assert_eq!(
1516        unsafe { &(*(::std::ptr::null::<rga_req>())).cosa as *const _ as usize },
1517        180usize,
1518        concat!(
1519            "Offset of field: ",
1520            stringify!(rga_req),
1521            "::",
1522            stringify!(cosa)
1523        )
1524    );
1525    assert_eq!(
1526        unsafe { &(*(::std::ptr::null::<rga_req>())).alpha_rop_flag as *const _ as usize },
1527        184usize,
1528        concat!(
1529            "Offset of field: ",
1530            stringify!(rga_req),
1531            "::",
1532            stringify!(alpha_rop_flag)
1533        )
1534    );
1535    assert_eq!(
1536        unsafe { &(*(::std::ptr::null::<rga_req>())).scale_mode as *const _ as usize },
1537        186usize,
1538        concat!(
1539            "Offset of field: ",
1540            stringify!(rga_req),
1541            "::",
1542            stringify!(scale_mode)
1543        )
1544    );
1545    assert_eq!(
1546        unsafe { &(*(::std::ptr::null::<rga_req>())).color_key_max as *const _ as usize },
1547        188usize,
1548        concat!(
1549            "Offset of field: ",
1550            stringify!(rga_req),
1551            "::",
1552            stringify!(color_key_max)
1553        )
1554    );
1555    assert_eq!(
1556        unsafe { &(*(::std::ptr::null::<rga_req>())).color_key_min as *const _ as usize },
1557        192usize,
1558        concat!(
1559            "Offset of field: ",
1560            stringify!(rga_req),
1561            "::",
1562            stringify!(color_key_min)
1563        )
1564    );
1565    assert_eq!(
1566        unsafe { &(*(::std::ptr::null::<rga_req>())).fg_color as *const _ as usize },
1567        196usize,
1568        concat!(
1569            "Offset of field: ",
1570            stringify!(rga_req),
1571            "::",
1572            stringify!(fg_color)
1573        )
1574    );
1575    assert_eq!(
1576        unsafe { &(*(::std::ptr::null::<rga_req>())).bg_color as *const _ as usize },
1577        200usize,
1578        concat!(
1579            "Offset of field: ",
1580            stringify!(rga_req),
1581            "::",
1582            stringify!(bg_color)
1583        )
1584    );
1585    assert_eq!(
1586        unsafe { &(*(::std::ptr::null::<rga_req>())).gr_color as *const _ as usize },
1587        204usize,
1588        concat!(
1589            "Offset of field: ",
1590            stringify!(rga_req),
1591            "::",
1592            stringify!(gr_color)
1593        )
1594    );
1595    assert_eq!(
1596        unsafe { &(*(::std::ptr::null::<rga_req>())).line_draw_info as *const _ as usize },
1597        220usize,
1598        concat!(
1599            "Offset of field: ",
1600            stringify!(rga_req),
1601            "::",
1602            stringify!(line_draw_info)
1603        )
1604    );
1605    assert_eq!(
1606        unsafe { &(*(::std::ptr::null::<rga_req>())).fading as *const _ as usize },
1607        240usize,
1608        concat!(
1609            "Offset of field: ",
1610            stringify!(rga_req),
1611            "::",
1612            stringify!(fading)
1613        )
1614    );
1615    assert_eq!(
1616        unsafe { &(*(::std::ptr::null::<rga_req>())).PD_mode as *const _ as usize },
1617        244usize,
1618        concat!(
1619            "Offset of field: ",
1620            stringify!(rga_req),
1621            "::",
1622            stringify!(PD_mode)
1623        )
1624    );
1625    assert_eq!(
1626        unsafe { &(*(::std::ptr::null::<rga_req>())).alpha_global_value as *const _ as usize },
1627        245usize,
1628        concat!(
1629            "Offset of field: ",
1630            stringify!(rga_req),
1631            "::",
1632            stringify!(alpha_global_value)
1633        )
1634    );
1635    assert_eq!(
1636        unsafe { &(*(::std::ptr::null::<rga_req>())).rop_code as *const _ as usize },
1637        246usize,
1638        concat!(
1639            "Offset of field: ",
1640            stringify!(rga_req),
1641            "::",
1642            stringify!(rop_code)
1643        )
1644    );
1645    assert_eq!(
1646        unsafe { &(*(::std::ptr::null::<rga_req>())).bsfilter_flag as *const _ as usize },
1647        248usize,
1648        concat!(
1649            "Offset of field: ",
1650            stringify!(rga_req),
1651            "::",
1652            stringify!(bsfilter_flag)
1653        )
1654    );
1655    assert_eq!(
1656        unsafe { &(*(::std::ptr::null::<rga_req>())).palette_mode as *const _ as usize },
1657        249usize,
1658        concat!(
1659            "Offset of field: ",
1660            stringify!(rga_req),
1661            "::",
1662            stringify!(palette_mode)
1663        )
1664    );
1665    assert_eq!(
1666        unsafe { &(*(::std::ptr::null::<rga_req>())).yuv2rgb_mode as *const _ as usize },
1667        250usize,
1668        concat!(
1669            "Offset of field: ",
1670            stringify!(rga_req),
1671            "::",
1672            stringify!(yuv2rgb_mode)
1673        )
1674    );
1675    assert_eq!(
1676        unsafe { &(*(::std::ptr::null::<rga_req>())).endian_mode as *const _ as usize },
1677        251usize,
1678        concat!(
1679            "Offset of field: ",
1680            stringify!(rga_req),
1681            "::",
1682            stringify!(endian_mode)
1683        )
1684    );
1685    assert_eq!(
1686        unsafe { &(*(::std::ptr::null::<rga_req>())).rotate_mode as *const _ as usize },
1687        252usize,
1688        concat!(
1689            "Offset of field: ",
1690            stringify!(rga_req),
1691            "::",
1692            stringify!(rotate_mode)
1693        )
1694    );
1695    assert_eq!(
1696        unsafe { &(*(::std::ptr::null::<rga_req>())).color_fill_mode as *const _ as usize },
1697        253usize,
1698        concat!(
1699            "Offset of field: ",
1700            stringify!(rga_req),
1701            "::",
1702            stringify!(color_fill_mode)
1703        )
1704    );
1705    assert_eq!(
1706        unsafe { &(*(::std::ptr::null::<rga_req>())).mmu_info as *const _ as usize },
1707        256usize,
1708        concat!(
1709            "Offset of field: ",
1710            stringify!(rga_req),
1711            "::",
1712            stringify!(mmu_info)
1713        )
1714    );
1715    assert_eq!(
1716        unsafe { &(*(::std::ptr::null::<rga_req>())).alpha_rop_mode as *const _ as usize },
1717        280usize,
1718        concat!(
1719            "Offset of field: ",
1720            stringify!(rga_req),
1721            "::",
1722            stringify!(alpha_rop_mode)
1723        )
1724    );
1725    assert_eq!(
1726        unsafe { &(*(::std::ptr::null::<rga_req>())).src_trans_mode as *const _ as usize },
1727        281usize,
1728        concat!(
1729            "Offset of field: ",
1730            stringify!(rga_req),
1731            "::",
1732            stringify!(src_trans_mode)
1733        )
1734    );
1735    assert_eq!(
1736        unsafe { &(*(::std::ptr::null::<rga_req>())).dither_mode as *const _ as usize },
1737        282usize,
1738        concat!(
1739            "Offset of field: ",
1740            stringify!(rga_req),
1741            "::",
1742            stringify!(dither_mode)
1743        )
1744    );
1745    assert_eq!(
1746        unsafe { &(*(::std::ptr::null::<rga_req>())).full_csc as *const _ as usize },
1747        284usize,
1748        concat!(
1749            "Offset of field: ",
1750            stringify!(rga_req),
1751            "::",
1752            stringify!(full_csc)
1753        )
1754    );
1755    assert_eq!(
1756        unsafe { &(*(::std::ptr::null::<rga_req>())).CMD_fin_int_enable as *const _ as usize },
1757        324usize,
1758        concat!(
1759            "Offset of field: ",
1760            stringify!(rga_req),
1761            "::",
1762            stringify!(CMD_fin_int_enable)
1763        )
1764    );
1765    assert_eq!(
1766        unsafe { &(*(::std::ptr::null::<rga_req>())).complete as *const _ as usize },
1767        328usize,
1768        concat!(
1769            "Offset of field: ",
1770            stringify!(rga_req),
1771            "::",
1772            stringify!(complete)
1773        )
1774    );
1775}
1776extern "C" {
1777    pub fn rga_set_fds_offsets(
1778        rga_request: *mut rga_req,
1779        src_fd: ::std::os::raw::c_ushort,
1780        dst_fd: ::std::os::raw::c_ushort,
1781        src_offset: ::std::os::raw::c_uint,
1782        dst_offset: ::std::os::raw::c_uint,
1783    );
1784}
1785extern "C" {
1786    pub fn c_RkRgaInit() -> ::std::os::raw::c_int;
1787}
1788extern "C" {
1789    pub fn c_RkRgaDeInit();
1790}
1791extern "C" {
1792    pub fn c_RkRgaGetContext(ctx: *mut *mut ::std::os::raw::c_void);
1793}
1794extern "C" {
1795    pub fn c_RkRgaBlit(
1796        src: *mut rga_info_t,
1797        dst: *mut rga_info_t,
1798        src1: *mut rga_info_t,
1799    ) -> ::std::os::raw::c_int;
1800}
1801extern "C" {
1802    pub fn c_RkRgaColorFill(dst: *mut rga_info_t) -> ::std::os::raw::c_int;
1803}
1804extern "C" {
1805    pub fn c_RkRgaFlush() -> ::std::os::raw::c_int;
1806}
1807extern "C" {
1808    pub fn c_RkRgaGetAllocBuffer(
1809        bo_info: *mut bo_t,
1810        width: ::std::os::raw::c_int,
1811        height: ::std::os::raw::c_int,
1812        bpp: ::std::os::raw::c_int,
1813    ) -> ::std::os::raw::c_int;
1814}
1815extern "C" {
1816    pub fn c_RkRgaGetAllocBufferCache(
1817        bo_info: *mut bo_t,
1818        width: ::std::os::raw::c_int,
1819        height: ::std::os::raw::c_int,
1820        bpp: ::std::os::raw::c_int,
1821    ) -> ::std::os::raw::c_int;
1822}
1823extern "C" {
1824    pub fn c_RkRgaGetMmap(bo_info: *mut bo_t) -> ::std::os::raw::c_int;
1825}
1826extern "C" {
1827    pub fn c_RkRgaUnmap(bo_info: *mut bo_t) -> ::std::os::raw::c_int;
1828}
1829extern "C" {
1830    pub fn c_RkRgaFree(bo_info: *mut bo_t) -> ::std::os::raw::c_int;
1831}
1832extern "C" {
1833    pub fn c_RkRgaGetBufferFd(
1834        bo_info: *mut bo_t,
1835        fd: *mut ::std::os::raw::c_int,
1836    ) -> ::std::os::raw::c_int;
1837}