当前位置:网站首页>RK1126平台OSD的实现支持颜色半透明度多通道支持中文
RK1126平台OSD的实现支持颜色半透明度多通道支持中文
2022-07-04 12:52:00 【QMCY_jason】
先看下效果图 红色为主码流通道,白色为子码流通道,支持中文显示 后期还要实现多行显示 不同位置显示 以及左对齐 右对齐的问题
通常来说 IPC 都需要实现OSD的功能 即在视频上需要叠加时间戳 已经标识当前的主码流子码流等信息
之前在海思3518EV300平台实现过 下图即是海思3518EV300 的摄像头上的实际效果
实际上的原理并不复杂 ,就是把osd内容转为位图然后叠加到yuv数据上面
osd转位图这个过程 大部分是通过freetype来实现的,之前的海思上也是
但是之前海思的代码直接移植过来之后 显示并不正常 如下:
直接显示了两行 然后字体颜色也不对 不是纯白的
经过一段时间的不断摸索,终于找到了原因。
原因就是海思平台的OSD支持的像素格式有很多种然后用的是ARGB565 (此电脑上没有海思的代码)具体名字不记得了大概 总之就是一个像素占用2个字节
而RK1126平台的OSD格式支持格式如下
只支持一种 PIXEL_FORMAT_ARGB_8888 也即一个像素占用4个字节 在所有涉及到相关的地方都改成4个字节的方式操作即可 如下的两个地方 都需要修改下 不然显示就会不正常
边栏推荐
- 做事的真正意义和目的,真正想得到什么
- Vscode common plug-ins summary
- Understand chisel language thoroughly 08. Chisel Foundation (V) -- wire, REG and IO, and how to understand chisel generation hardware
- 去除重複字母[貪心+單調棧(用數組+len來維持單調序列)]
- sql优化之explain
- Ruichengxin micro sprint technology innovation board: annual revenue of 367million, proposed to raise 1.3 billion, Datang Telecom is a shareholder
- Unittest框架之断言
- 吃透Chisel语言.06.Chisel基础(三)——寄存器和计数器
- Can mortgage with housing exclude compulsory execution
- DDD application and practice of domestic hotel transactions -- Code
猜你喜欢
Understand chisel language thoroughly 09. Chisel project construction, operation and testing (I) -- build and run chisel project with SBT
Use the default route as the route to the Internet
学内核之三:使用GDB跟踪内核调用链
富文本编辑:wangEditor使用教程
Leetcode T48:旋转图像
nowcoder重排链表
JVM memory layout detailed, illustrated, well written!
Deming Lee listed on Shenzhen Stock Exchange: the market value is 3.1 billion, which is the husband and wife of Li Hu and Tian Hua
[FAQ] Huawei Account Service Error Report 907135701 Common reasons Summary and Solutions
Understand chisel language thoroughly 12. Chisel project construction, operation and testing (IV) -- chisel test of chisel test
随机推荐
R语言使用epiDisplay包的followup.plot函数可视化多个ID(病例)监测指标的纵向随访图、使用stress.col参数指定强调线的id子集的颜色(色彩)
Install and use MAC redis, connect to remote server redis
Data warehouse interview question preparation
nowcoder重排链表
R language dplyr package summary_ If function calculates the mean and median of all numerical data columns in dataframe data, and summarizes all numerical variables based on conditions
Read excel table data
GCC [6] - 4 stages of compilation
Unity Shader学习(三)试着绘制一个圆
Detailed index of MySQL
Learning projects are self-made, and growth opportunities are self created
The font of markdown grammar is marked in red
R language uses the mutation function of dplyr package to standardize the specified data column (using mean function and SD function), and calculates the grouping mean of the standardized target varia
Oppo find N2 product form first exposure: supplement all short boards
golang fmt. Printf() (turn)
go语言中的文件创建,写入,读取,删除(转)
MATLAB中tiledlayout函数使用
软件测试之测试评估
PHP log debugging
Use of arouter
C # WPF realizes the real-time screen capture function of screen capture box