• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2016 Rockchip Electronics Co., Ltd.
3  * Authors:
4  *  Zhiqin Wei <wzq@rock-chips.com>
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 #ifndef _rk_graphic_buffer_h_
20 #define _rk_graphic_buffer_h_
21 
22 #ifdef ANDROID
23 
24 #include <stdint.h>
25 #include <vector>
26 #include <sys/types.h>
27 
28 #include <system/graphics.h>
29 
30 #include <utils/Thread.h>
31 
32 #include <stdlib.h>
33 #include <stdio.h>
34 #include <string.h>
35 #include <errno.h>
36 #include <time.h>
37 #include <unistd.h>
38 
39 #include <sys/mman.h>
40 #include <linux/stddef.h>
41 
42 #include <utils/Atomic.h>
43 #include <utils/Errors.h>
44 #include <android/log.h>
45 #include <utils/Log.h>
46 #include <log/log_main.h>
47 
48 #include "drmrga.h"
49 #include "rga.h"
50 
51 // -------------------------------------------------------------------------------
52 int         RkRgaGetHandleFd(buffer_handle_t handle, int *fd);
53 int         RkRgaGetHandleAttributes(buffer_handle_t handle,
54                                      std::vector<int> *attrs);
55 int         RkRgaGetHandleMapAddress(buffer_handle_t handle,
56                                      void **buf);
57 #endif  //Android
58 
59 #endif  //_rk_graphic_buffer_h_
60