1 Star 1 Fork 0

SHARE_TECHNOLOGY/linux-rga

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
RockchipRga.h 2.49 KB
一键复制 编辑 原始数据 按行查看 历史
gitee 提交于 2022-05-12 14:02 +08:00 . first commit
/*
* Copyright (C) 2016 Rockchip Electronics Co.Ltd
* Authors:
* Zhiqin Wei <wzq@rock-chips.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
*/
#include <stdint.h>
//#include <vector>
#include <sys/types.h>
//////////////////////////////////////////////////////////////////////////////////
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include <unistd.h>
#include <sys/mman.h>
#include <linux/stddef.h>
#include "stdio.h"
#include "drmrga.h"
#include "RockchipRgaMacro.h"
//////////////////////////////////////////////////////////////////////////////////
// -------------------------------------------------------------------------------
class RockchipRga
{
/************************************public**************************************/
public:
RockchipRga();
~RockchipRga();
int RkRgaInit();
void RkRgaDeInit();
int RkRgaAllocBuffer(int drm_fd /* input */, bo_t *bo_info,
int width, int height, int bpp, int flags);
int RkRgaFreeBuffer(int drm_fd /* input */, bo_t *bo_info);
int RkRgaGetAllocBufferExt(bo_t *bo_info, int width, int height, int bpp, int flags);
int RkRgaGetAllocBuffer(bo_t *bo_info, int width, int height, int bpp);
int RkRgaGetAllocBufferCache(bo_t *bo_info, int width, int height, int bpp);
int RkRgaGetMmap(bo_t *bo_info);
int RkRgaUnmap(bo_t *bo_info);
int RkRgaFree(bo_t *bo_info);
int RkRgaGetBufferFd(bo_t *bo_info, int *fd);
int RkRgaBlit(rga_info *src, rga_info *dst, rga_info *src1);
int RkRgaCollorFill(rga_info *dst);
void RkRgaSetLogOnceFlag(int log) {mLogOnce = log;}
void RkRgaSetAlwaysLogFlag(bool log) {mLogAlways = log;}
void RkRgaLogOutRgaReq(struct rga_req rgaReg);
int RkRgaLogOutUserPara(rga_info *rgaInfo);
/************************************private***********************************/
private:
bool mSupportRga;
int mLogOnce;
int mLogAlways;
void * mContext;
};
// ---------------------------------------------------------------------------
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/flshare-technology/linux-rga.git
git@gitee.com:flshare-technology/linux-rga.git
flshare-technology
linux-rga
linux-rga
master

搜索帮助