1 /* 2 * 3 * Copyright 2016 Rockchip Electronics Co., LTD. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18 /* 19 * @file Rockchip_OSAL_RGA_Process.h 20 * @brief RGA COPY & Color convert 21 * @author csy (csy@rock-chips.com) 22 * @version 1.0.0 23 * @history 24 * 2016.10.26 : Create 25 */ 26 #ifndef ROCKCHIP_OSAL_RGA_PROCESS 27 #define ROCKCHIP_OSAL_RGA_PROCESS 28 29 #include "vpu_type.h" 30 #include "Rockchip_OMX_Def.h" 31 #include "vpu_global.h" 32 33 typedef unsigned int uint32_t; 34 35 OMX_S32 rga_dev_open(void **rga_ctx); 36 OMX_S32 rga_dev_close(void *rga_ctx); 37 void rga_nv12_copy(RockchipVideoPlane *plane, VPUMemLinear_t *vpumem, uint32_t Width, uint32_t Height, void *rga_ctx); 38 void rga_rgb_copy(RockchipVideoPlane *plane, VPUMemLinear_t *vpumem, uint32_t Width, uint32_t Height, void *rga_ctx); 39 void rga_rgb2nv12(RockchipVideoPlane *plane, VPUMemLinear_t *vpumem, uint32_t Width, uint32_t Height, 40 uint32_t dstWidth, uint32_t dstHeight, void *rga_ctx); 41 void rga_nv12_crop_scale(RockchipVideoPlane *plane, VPUMemLinear_t *vpumem, OMX_VIDEO_PARAMS_EXTENDED *param_video, 42 RK_U32 orgin_w, RK_U32 orgin_h, void *rga_ctx); 43 void rga_nv122rgb(RockchipVideoPlane *planes, VPUMemLinear_t *vpumem, uint32_t mWidth, 44 uint32_t mHeight, int dst_format, void *rga_ctx); 45 46 #endif