当前位置:网站首页>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个字节的方式操作即可 如下的两个地方 都需要修改下 不然显示就会不正常
边栏推荐
- NowCoder 反转链表
- 吃透Chisel语言.07.Chisel基础(四)——Bundle和Vec
- 为什么图片传输要使用base64编码
- 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
- Matters needing attention in overseas game Investment Agency
- Understand chisel language thoroughly 09. Chisel project construction, operation and testing (I) -- build and run chisel project with SBT
- 基于PaddleX的智能零售柜商品识别
- 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
- Error in find command: paths must precede expression (turn)
- MySQL的触发器
猜你喜欢
CVPR 2022 | greatly reduce the manual annotation required for zero sample learning, and propose category semantic embedding rich in visual information (source code download)
瑞吉外卖笔记
Detailed index of MySQL
2022 practice questions and mock exams for the main principals of hazardous chemical business units
数据仓库面试问题准备
测试流程整理(2)
markdown 语法之字体标红
[R language data science]: cross validation and looking back
sharding key type not supported
迅为IMX6Q开发板QT系统移植tinyplay
随机推荐
docker-compose公网部署redis哨兵模式
R语言使用dplyr包的group_by函数和summarise函数基于分组变量计算目标变量的均值、标准差
The game goes to sea and operates globally
Understand chisel language thoroughly 05. Chisel Foundation (II) -- combinational circuits and operators
按照功能对Boost库进行分类
[antd] how to set antd in form There is input in item Get input when gourp Value of each input of gourp
Understand chisel language thoroughly 03. Write to the developer of Verilog to chisel (you can also see it without Verilog Foundation)
Why should Base64 encoding be used for image transmission
Basic mode of service mesh
China Post technology rushes to the scientific innovation board: the annual revenue is 2.058 billion, and the postal group is the major shareholder
Introducing testfixture into unittest framework
Use of arouter
Yingshi Ruida rushes to the scientific and Technological Innovation Board: the annual revenue is 450million and the proposed fund-raising is 979million
使用CLion编译OGLPG-9th-Edition源码
吃透Chisel语言.05.Chisel基础(二)——组合电路与运算符
IDEA快捷键大全
Whether the loyalty agreement has legal effect
Understand chisel language thoroughly 08. Chisel Foundation (V) -- wire, REG and IO, and how to understand chisel generation hardware
Learning projects are self-made, and growth opportunities are self created
Idea shortcut keys