Skip to content

Commit

Permalink
Update librga version to 1.9.1_[4]
Browse files Browse the repository at this point in the history
1. support RK3562.
2. support image file path customization.

Signed-off-by: Yu Qiaowei <[email protected]>
Change-Id: I2f2c3d2d1667847a0690413e80418a9b097be088
  • Loading branch information
Yu Qiaowei committed Feb 6, 2023
1 parent edc0646 commit 97bff5e
Show file tree
Hide file tree
Showing 75 changed files with 1,077 additions and 343 deletions.
9 changes: 7 additions & 2 deletions docs/Rockchip_Developer_Guide_RGA_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ RK_FORMAT_YCbCr_420_SP_10B<br/>RK_FORMAT_YCrCb_420_SP_10B<br/>RK_FORMAT_YCbCr_42
<td>width stride须16对齐,x_offset、y_offset、width、height、height stride均须2对齐</td>
</tr>
<tr>
<td rowspan="7">RGA3</td>
<td rowspan="7">16</td>
<td rowspan="8">RGA3</td>
<td rowspan="8">16</td>
<td>
RK_FORMAT_RGBA_8888<br/>RK_FORMAT_BGRA_8888<br/>RK_FORMAT_ARGB_8888<br/>RK_FORMAT_ABGR_8888<br/>RK_FORMAT_RGBX_8888<br/>RK_FORMAT_BGRX_8888<br/>RK_FORMAT_XRGB_8888<br/>RK_FORMAT_XBGR_8888
</td>
Expand Down Expand Up @@ -512,7 +512,12 @@ RK_FORMAT_YCbCr_420_SP_10B<br/>RK_FORMAT_YCrCb_420_SP_10B<br/>RK_FORMAT_YCbCr_42
<td>FBC mode</td>
<td>除上述格式对齐要求外,width、height须16对齐</td>
</tr>
<tr>
<td>TILE8*8 mode</td>
<td>除上述格式对齐要求外,width、height须8对齐,输入通道width stride、height stride须16对齐。</td>
</tr>
</table>

> 注:
>
> 1). 对齐要求计算公式:lcm(bpp,byte_stride * 8) / pixel_stride。
Expand Down
43 changes: 24 additions & 19 deletions docs/Rockchip_Developer_Guide_RGA_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,108 +408,113 @@ RK_FORMAT_RGBA_8888<br/>RK_FORMAT_BGRA_8888<br/>RK_FORMAT_RGBX_8888<br/>RK_FORMA
<td>
RK_FORMAT_RGBA_8888<br/>RK_FORMAT_BGRA_8888<br/>RK_FORMAT_ARGB_8888<br/>RK_FORMAT_ABGR_8888<br/>RK_FORMAT_RGBX_8888<br/>RK_FORMAT_BGRX_8888<br/>RK_FORMAT_XRGB_8888<br/>RK_FORMAT_XBGR_8888
</td>
<td>width stride无对齐要求</td>
<td>width stride does not require alignment</td>
</tr>
<tr>
<td>
RK_FORMAT_RGBA_4444<br/>RK_FORMAT_BGRA_4444<br/>RK_FORMAT_ARGB_4444<br/>RK_FORMAT_ABGR_4444<br/>RK_FORMAT_RGBA_5551<br/>RK_FORMAT_BGRA_5551<br/>RK_FORMAT_ARGB_5551<br/>RK_FORMAT_ABGR_5551<br/>RK_FORMAT_RGB_565<br/>RK_FORMAT_BGR_565
</td>
<td>width stride须2对齐</td>
<td>width stride must be 2-aligned</td>
</tr>
<tr>
<td>
RK_FORMAT_RGB_888<br/>RK_FORMAT_BGR_888
</td>
<td>width stride须4对齐</td>
<td>width stride must be 4-aligned</td>
</tr>
<tr>
<td>
RK_FORMAT_YCbCr_420_SP<br/>RK_FORMAT_YCrCbr_420_SP<br/>RK_FORMAT_YCbCr_422_SP<br/>RK_FORMAT_YCrCbr_422_SP<br/>RK_FORMAT_YCbCr_420_P<br/>RK_FORMAT_YCrCbr_420_P<br/>RK_FORMAT_YCbCr_422_P<br/>RK_FORMAT_YCrCbr_422_P
</td>
<td>width stride须4对齐,x_offset、y_offset、width、height、height stride均须2对齐</td>
<td>width stride must be 4-aligned,x_offset、y_offset、width、height、height stride must be 2-aligned</td>
</tr>
<tr>
<td rowspan="6">RGA2<br/>RGA2_Lite0<br/>RGA2_Lite1<br/>RGA2_Enhance</td>
<td rowspan="6">4</td>
<td>
RK_FORMAT_RGBA_8888<br/>RK_FORMAT_BGRA_8888<br/>RK_FORMAT_ARGB_8888<br/>RK_FORMAT_ABGR_8888<br/>RK_FORMAT_RGBX_8888<br/>RK_FORMAT_BGRX_8888<br/>RK_FORMAT_XRGB_8888<br/>RK_FORMAT_XBGR_8888
</td>
<td>width stride无对齐要求</td>
<td>width stride does not require alignment</td>
</tr>
<tr>
<td>
RK_FORMAT_RGBA_4444<br/>RK_FORMAT_BGRA_4444<br/>RK_FORMAT_ARGB_4444<br/>RK_FORMAT_ABGR_4444<br/>RK_FORMAT_RGBA_5551<br/>RK_FORMAT_BGRA_5551<br/>RK_FORMAT_ARGB_5551<br/>RK_FORMAT_ABGR_5551<br/>RK_FORMAT_RGB_565<br/>RK_FORMAT_BGR_565
</td>
<td>width stride须2对齐</td>
<td>width stride must be 2-aligned</td>
</tr>
<tr>
<td>
RK_FORMAT_YUYV_422<br/>RK_FORMAT_YVYU_422<br/>RK_FORMAT_UYVY_422<br/>RK_FORMAT_VYUY_422<br/>RK_FORMAT_YUYV_420<br/>RK_FORMAT_YVYU_420<br/>RK_FORMAT_UYVY_420<br/>RK_FORMAT_VYUY_420
</td>
<td>width stride须2对齐,x_offset、y_offset、width、height、height stride均须2对齐</td>
<td>width stride must be 2-aligned,x_offset、y_offset、width、height、height stride must be 2-aligned</td>
</tr>
<tr>
<td>
RK_FORMAT_RGB_888<br/>RK_FORMAT_BGR_888
</td>
<td>width stride须4对齐</td>
<td>width stride must be 4-aligned</td>
</tr>
<tr>
<td>
RK_FORMAT_YCbCr_420_SP<br/>RK_FORMAT_YCrCbr_420_SP<br/>RK_FORMAT_YCbCr_422_SP<br/>RK_FORMAT_YCrCbr_422_SP<br/>RK_FORMAT_YCbCr_420_P<br/>RK_FORMAT_YCrCbr_420_P<br/>RK_FORMAT_YCbCr_422_P<br/>RK_FORMAT_YCrCbr_422_P<br/>RK_FORMAT_YCbCr_400<br/>RK_FORMAT_Y4
</td>
<td>width stride须4对齐,x_offset、y_offset、width、height、height stride均须2对齐</td>
<td>width stride must be 4-aligned,x_offset、y_offset、width、height、height stride must be 2-aligned</td>
</tr>
<tr>
<td>
RK_FORMAT_YCbCr_420_SP_10B<br/>RK_FORMAT_YCrCb_420_SP_10B<br/>RK_FORMAT_YCbCr_422_SP_10B<br/>RK_FORMAT_YCrCb_422_SP_10B
</td>
<td>width stride须16对齐,x_offset、y_offset、width、height、height stride均须2对齐</td>
<td>width stride must be 16-aligned,x_offset、y_offset、width、height、height stride must be 2-aligned</td>
</tr>
<tr>
<td rowspan="7">RGA3</td>
<td rowspan="7">16</td>
<td rowspan="8">RGA3</td>
<td rowspan="8">16</td>
<td>
RK_FORMAT_RGBA_8888<br/>RK_FORMAT_BGRA_8888<br/>RK_FORMAT_ARGB_8888<br/>RK_FORMAT_ABGR_8888<br/>RK_FORMAT_RGBX_8888<br/>RK_FORMAT_BGRX_8888<br/>RK_FORMAT_XRGB_8888<br/>RK_FORMAT_XBGR_8888
</td>
<td>width stride须4对齐</td>
<td>width stride must be 4-aligned</td>
</tr>
<tr>
<td>
RK_FORMAT_RGB_565<br/>RK_FORMAT_BGR_565
</td>
<td>width stride须8对齐</td>
<td>width stride must be 8-aligned</td>
</tr>
<tr>
<td>
RK_FORMAT_YUYV_422<br/>RK_FORMAT_YVYU_422<br/>RK_FORMAT_UYVY_422<br/>RK_FORMAT_VYUY_422
</td>
<td>width stride须8对齐,x_offset、y_offset、width、height、height stride均须2对齐</td>
<td>width stride must be 8-aligned,x_offset、y_offset、width、height、height stride must be 2-aligned</td>
</tr>
<tr>
<td>
RK_FORMAT_RGB_888<br/>RK_FORMAT_BGR_888
</td>
<td>width stride须16对齐</td>
<td>width stride must be 16-aligned</td>
</tr>
<tr>
<td>
RK_FORMAT_YCbCr_420_SP<br/>RK_FORMAT_YCrCbr_420_SP<br/>RK_FORMAT_YCbCr_422_SP<br/>RK_FORMAT_YCrCbr_422_SP
</td>
<td>width stride须16对齐,x_offset、y_offset、width、height、height stride均须2对齐</td>
<td>width stride must be 16-aligned,x_offset、y_offset、width、height、height stride must be 2-aligned</td>
</tr>
<tr>
<td>
RK_FORMAT_YCbCr_420_SP_10B<br/>RK_FORMAT_YCrCb_420_SP_10B<br/>RK_FORMAT_YCbCr_422_SP_10B<br/>RK_FORMAT_YCrCb_422_SP_10B
</td>
<td>width stride须64对齐,x_offset、y_offset、width、height、height stride均须2对齐</td>
<td>width stride must be 64-aligned,x_offset、y_offset、width、height、height stride must be 2-aligned</td>
</tr>
<tr>
<td>FBC mode</td>
<td>除上述格式对齐要求外,width、height须16对齐</td>
<td>In addition to the format alignment requirements above,width、height must be 16-aligned</td>
</tr>
<tr>
<td>TILE8*8 mode</td>
<td>In addition to the format alignment requirements above,width、height must be 8-aligned,输入通道width stride、height stride must be 16-aligned。</td>
</tr>
</table>


> Note:
>
> 1). Alignment requirement formula: lcm(bpp,byte_stride * 8) / pixel_stride.
Expand Down
Loading

0 comments on commit 97bff5e

Please sign in to comment.