GrallocOps.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. #ifndef _rk_graphic_buffer_h_
  19. #define _rk_graphic_buffer_h_
  20. #ifdef ANDROID
  21. #include <stdint.h>
  22. #include <vector>
  23. #include <sys/types.h>
  24. #include <system/graphics.h>
  25. #include <utils/Thread.h>
  26. #include <stdlib.h>
  27. #include <stdio.h>
  28. #include <string.h>
  29. #include <errno.h>
  30. #include <time.h>
  31. #include <unistd.h>
  32. #include <sys/mman.h>
  33. #include <linux/stddef.h>
  34. #include <utils/Atomic.h>
  35. #include <utils/Errors.h>
  36. #include <android/log.h>
  37. #include <utils/Log.h>
  38. #include <log/log_main.h>
  39. #include "drmrga.h"
  40. #include "rga.h"
  41. // -------------------------------------------------------------------------------
  42. int RkRgaGetHandleFd(buffer_handle_t handle, int *fd);
  43. int RkRgaGetHandleAttributes(buffer_handle_t handle,
  44. std::vector<int> *attrs);
  45. int RkRgaGetHandleMapAddress(buffer_handle_t handle,
  46. void **buf);
  47. #endif //Android
  48. #endif //_rk_graphic_buffer_h_