In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains the "EasyScreenLive on-screen functional components to support custom OSD methods and steps", the article explained the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "EasyScreenLive on-screen functional components to support custom OSD methods and steps" it!
After so many years of video technology development, TSINGSEE blue rhinoceros video team has its own research and development system. In addition to the well-known video intelligent analysis platform, TSINGSEE blue rhinoceros video has many useful SDK and tools. Among them, EasyScreenLive is a simple, efficient and stable on-screen function component that we have developed.
Custom OSD is supported for EasyScreenLive on-screen components. In this example, OSD is only set for pull RTSP and RTMP streams. Currently, screen capture and local camera are not supported.
EasyScreenLive adds the following API functions for setting OSD:
LIB_EASYSLIVE_API int EasyScreenLive_SetOSD (EASYSLIVE_HANDLE handler, bool bShow, EASY_OSD osd)
The parameters are explained:
Handler: the handle returned by the EasyScreenLive_Create () function
BShow: controls whether to display. Allowed values: true or false
The specific location, content, etc. displayed by osd:OSD. The standard structure defined is as follows.
Typedef struct tagEASY_OSD {char stOSD [1024]; DWORD alpha; / / 0-255DWORD color; / / RGB (0xf9 255DWORD color; 0xf9) DWORD shadowcolor; / / RGB (0x4dPower0x4d) all zero background transparent RECT rect; / / OSD based on the display area int size; / / just D3D Support} EASY_OSD in the upper right corner of the image
The following is the specific method to call:
/ / OSD ExampleEASY_OSD osd;osd.alpha = 255 boxosd.size = 35 leading osd.color = RGB (255Lab 0255); osd.rect.left = 10x osd.shadow.color = RGB; char* ss = "this is the effect of the video subtitle overlay interface of EasyScreenLive\ r\ n! \ r\ nNote: the length of each line cannot exceed 128bytes\ r\ nTotal OSD length cannot exceed 1024 bytes "; strcpy (osd.stOSD, ss); EasyScreenLive_SetOSD (m_pusher, true, osd)
Steps:
1. Define an osd of type EASY_OSD, and then assign values to each parameter
2. Call the EasyScreenLive_SetOSD function to display.
Thank you for your reading, the above is the "EasyScreenLive on-screen functional components to support custom OSD methods and steps" of the content, after the study of this article, I believe you on the EasyScreenLive on-screen functional components to support custom OSD methods and steps of this problem has a deeper understanding, the specific use of the need for you to practice verification. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.