当前位置:网站首页>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

边栏推荐
猜你喜欢
![[FAQ] Huawei Account Service Error Report 907135701 Common reasons Summary and Solutions](/img/43/1a9786c89a5ab21d1fb8903cb7b77e.png)
[FAQ] Huawei Account Service Error Report 907135701 Common reasons Summary and Solutions

10.(地图数据篇)离线地形数据处理(供Cesium使用)

Hardware Basics - diode Basics

Excel quickly merges multiple rows of data

学内核之三:使用GDB跟踪内核调用链

Understand chisel language thoroughly 12. Chisel project construction, operation and testing (IV) -- chisel test of chisel test

第十七章 进程内存
![去除重複字母[貪心+單調棧(用數組+len來維持單調序列)]](/img/af/a1dcba6f45eb4ccc668cd04a662e9c.png)
去除重複字母[貪心+單調棧(用數組+len來維持單調序列)]
![递增的三元子序列[贪心训练]](/img/92/7efd1883c21c0e804ffccfb2231602.png)
递增的三元子序列[贪心训练]

gin集成支付宝支付
随机推荐
奇妙秘境 码蹄集
Excel quickly merges multiple rows of data
学内核之三:使用GDB跟踪内核调用链
QT how to detect whether the mouse is on a control
10.(地图数据篇)离线地形数据处理(供Cesium使用)
MySQL的存储过程练习题
[antd step pit] antd form cooperates with input Form The height occupied by item is incorrect
redis 日常笔记
Map of mL: Based on Boston house price regression prediction data set, an interpretable case of xgboost model using map value
LifeCycle
【云原生】我怎么会和这个数据库杠上了?
【信息检索】链接分析
2022游戏出海实用发行策略
ViewModel 初体验
Understand chisel language thoroughly 11. Chisel project construction, operation and test (III) -- scalatest of chisel test
架构方面的进步
基于51单片机的超声波测距仪
Ruiji takeout notes
统计php程序运行时间及设置PHP最长运行时间
C# wpf 实现截屏框实时截屏功能