当前位置:网站首页>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
边栏推荐
- 去除重複字母[貪心+單調棧(用數組+len來維持單調序列)]
- Test process arrangement (2)
- 富文本编辑:wangEditor使用教程
- LifeCycle
- Product identification of intelligent retail cabinet based on paddlex
- 聊聊保证线程安全的 10 个小技巧
- Golang uses JSON unmarshal number to interface{} number to become float64 type (turn)
- [FAQ] Huawei Account Service Error Report 907135701 Common reasons Summary and Solutions
- 海外游戏代投需要注意的
- [antd step pit] antd form cooperates with input Form The height occupied by item is incorrect
猜你喜欢
Detailed index of MySQL
Install MySQL
瑞吉外卖笔记
Hardware Basics - diode Basics
RK1126平台OSD的实现支持颜色半透明度多通道支持中文
商業智能BI財務分析,狹義的財務分析和廣義的財務分析有何不同?
Learn kernel 3: use GDB to track the kernel call chain
失败率高达80%,企业数字化转型路上有哪些挑战?
基于51单片机的超声波测距仪
Ruichengxin micro sprint technology innovation board: annual revenue of 367million, proposed to raise 1.3 billion, Datang Telecom is a shareholder
随机推荐
redis 日常笔记
R语言使用epiDisplay包的followup.plot函数可视化多个ID(病例)监测指标的纵向随访图、使用stress.col参数指定强调线的id子集的颜色(色彩)
按照功能对Boost库进行分类
nowcoder重排链表
Mask wearing detection based on yolov1
奇妙秘境 码蹄集
RK1126平台OSD的实现支持颜色半透明度多通道支持中文
Learn kernel 3: use GDB to track the kernel call chain
92.(cesium篇)cesium楼栋分层
【信息检索】链接分析
Common content type correspondence table
Product identification of intelligent retail cabinet based on paddlex
Can mortgage with housing exclude compulsory execution
QT how to detect whether the mouse is on a control
Innovation and development of independent industrial software
[R language data science]: cross validation and looking back
Intelligence d'affaires bi analyse financière, analyse financière au sens étroit et analyse financière au sens large sont - ils différents?
flink sql-client.sh 使用教程
2022 practice questions and mock exams for the main principals of hazardous chemical business units
Understand chisel language thoroughly 03. Write to the developer of Verilog to chisel (you can also see it without Verilog Foundation)