当前位置:网站首页>The implementation of OSD on rk1126 platform supports color translucency and multi-channel support for Chinese
The implementation of OSD on rk1126 platform supports color translucency and multi-channel support for Chinese
2022-07-04 14:21:00 【QMCY_ jason】
Let's take a look at the renderings first Red is the main stream channel , White is the sub code stream channel , Support Chinese display Later, we need to realize multi line display Different positions display And left alignment Right alignment problem
Generally speaking IPC Both need to be implemented OSD The function of That is, time stamps need to be superimposed on the video The current main code stream, sub code stream and other information have been identified
Before in Hisilicon 3518EV300 Platform implemented The following figure shows Hisilicon 3518EV300 The actual effect on the camera
In fact, the principle is not complicated , Is to put osd The content is converted to bitmap and then superimposed on yuv On the data
osd The process of converting bitmap Mostly through freetype To achieve , The previous Hisilicon is also
But after the code of Hisilicon was transplanted directly The display is not normal as follows :
Two lines are displayed directly Then the font color is also wrong Not pure white
After a period of continuous exploration , At last I found the reason .
The reason is that the Hisilicon platform OSD There are many supported pixel formats, and then ARGB565 ( There is no Hisilicon code on this computer ) I don't remember the specific name, probably In short, one pixel is occupied 2 Bytes
and RK1126 Platform OSD The supported formats are as follows
Only one is supported PIXEL_FORMAT_ARGB_8888 That is, one pixel occupies 4 Bytes In all relevant places, it is changed to 4 You can operate in the way of bytes The following two places All need to be modified Otherwise, the display will be abnormal
边栏推荐
- Use the default route as the route to the Internet
- Unity shader learning (3) try to draw a circle
- R语言使用dplyr包的mutate函数对指定数据列进行标准化处理(使用mean函数和sd函数)并基于分组变量计算标准化后的目标变量的分组均值
- 按照功能对Boost库进行分类
- 软件测试之测试评估
- Use of tiledlayout function in MATLAB
- The font of markdown grammar is marked in red
- Innovation and development of independent industrial software
- Basic mode of service mesh
- 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
猜你喜欢
C # WPF realizes the real-time screen capture function of screen capture box
商业智能BI财务分析,狭义的财务分析和广义的财务分析有何不同?
Understand chisel language thoroughly 09. Chisel project construction, operation and testing (I) -- build and run chisel project with SBT
数据仓库面试问题准备
【FAQ】華為帳號服務報錯 907135701的常見原因總結和解决方法
RK1126平台OSD的实现支持颜色半透明度多通道支持中文
Learn kernel 3: use GDB to track the kernel call chain
Mask wearing detection based on yolov1
【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
92.(cesium篇)cesium楼栋分层
随机推荐
Intelligence d'affaires bi analyse financière, analyse financière au sens étroit et analyse financière au sens large sont - ils différents?
R language ggplot2 visualization: gganimate package creates dynamic line graph animation (GIF) and uses transition_ The reveal function displays data step by step along a given dimension in the animat
R language uses bwplot function in lattice package to visualize box plot and par Settings parameter custom theme mode
【MySQL从入门到精通】【高级篇】(五)MySQL的SQL语句执行流程
Leetcode T47: 全排列II
Understand chisel language thoroughly 07. Chisel Foundation (IV) - bundle and VEC
如何游戏出海代运营、游戏出海代投
PHP log debugging
Install MySQL
富文本编辑:wangEditor使用教程
实时数据仓库
C # WPF realizes the real-time screen capture function of screen capture box
Ml: introduction, principle, use method and detailed introduction of classic cases of snap value
sharding key type not supported
LifeCycle
Whether the loyalty agreement has legal effect
Understand chisel language thoroughly 11. Chisel project construction, operation and test (III) -- scalatest of chisel test
软件测试之测试评估
sql优化之查询优化器
Mongodb commonly used 28 query statements (forward)