当前位置:网站首页>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
边栏推荐
- Install MySQL
- 10.(地图数据篇)离线地形数据处理(供Cesium使用)
- 数据中台概念
- 测试流程整理(3)
- R language uses follow up of epidisplay package The plot function visualizes the longitudinal follow-up map of multiple ID (case) monitoring indicators, and uses stress The col parameter specifies the
- R语言使用epiDisplay包的followup.plot函数可视化多个ID(病例)监测指标的纵向随访图、使用stress.col参数指定强调线的id子集的颜色(色彩)
- R语言使用lattice包中的bwplot函数可视化箱图(box plot)、par.settings参数自定义主题模式
- Remove duplicate letters [greedy + monotonic stack (maintain monotonic sequence with array +len)]
- Introducing testfixture into unittest framework
- Understand chisel language thoroughly 04. Chisel Foundation (I) - signal type and constant
猜你喜欢
【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
递增的三元子序列[贪心训练]
Ruichengxin micro sprint technology innovation board: annual revenue of 367million, proposed to raise 1.3 billion, Datang Telecom is a shareholder
数据中台概念
Introducing testfixture into unittest framework
China Post technology rushes to the scientific innovation board: the annual revenue is 2.058 billion, and the postal group is the major shareholder
[antd step pit] antd form cooperates with input Form The height occupied by item is incorrect
去除重复字母[贪心+单调栈(用数组+len来维持单调序列)]
Test process arrangement (2)
[FAQ] Huawei Account Service Error Report 907135701 Common reasons Summary and Solutions
随机推荐
Hardware Basics - diode Basics
去除重复字母[贪心+单调栈(用数组+len来维持单调序列)]
R language uses the DOTPLOT function of epidisplay package to visualize the frequency of data points in different intervals in the form of point graph, and uses the by parameter to specify the groupin
Yingshi Ruida rushes to the scientific and Technological Innovation Board: the annual revenue is 450million and the proposed fund-raising is 979million
Matters needing attention in overseas game Investment Agency
Test evaluation of software testing
[FAQ] Huawei Account Service Error Report 907135701 Common reasons Summary and Solutions
C # WPF realizes the real-time screen capture function of screen capture box
TestSuite and testrunner in unittest
Error in find command: paths must precede expression (turn)
golang fmt. Printf() (turn)
Introducing testfixture into unittest framework
架构方面的进步
游戏出海,全球化运营
QT how to detect whether the mouse is on a control
IP lab monthly resumption · issue 5
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
【云原生】我怎么会和这个数据库杠上了?
opencv3.2 和opencv2.4安装
聊聊保证线程安全的 10 个小技巧