当前位置:网站首页>Main business objects of pupanvr record (5)
Main business objects of pupanvr record (5)
2022-06-12 04:56:00 【hi_ LeTian】
In the product , according to NVR Habits in the configuration of video cameras , There's the concept of access , When configuring video recording , Define the access camera as an access channel , The camera is bound to a channel , So draw the image of a channel (TVideoChannel), At the same time, the connected device may be a camera , Or maybe it's just a video stream , Or a channel for playing back video , Then the source is a video file . So here's another one TVideoSource Object of , Using polymorphism to realize video source has : Camera source 、MP4 Source, etc . For channels in the system , If configured , Generally, it will be in the state of open operation , The life cycle is generally maintained , Such as video operation , For video playback preview, there is a decoder concept in both hardware and software , We define the object concept of a player , The player is not necessarily bound to the channel or opened for a long time , The performance of general hardware codec is limited , In this way, the object of the player should consider multi-channel reuse or dynamic binding , Real time creation , At the same time, the life cycle of its existence is generally not like that of a channel, which is always running as long as it is configured . The object of the player is also an isolated image of the software and hardware decoder .
According to the idea above , You need the following objects to appear in the system :
Video channel -TVideoChannel
It is mainly used to operate video, which is called video channel , In fact, the pictures in the product should also be displayed with this decoding .
Video source -TVideoSource
The source can be a video , Or a camera device 、 One MP4 Documents, etc. ;
player -TPlayView
Realize the playback of channel video objects , Realize decoding 、 Show 、 Control function , The object of the player is also an isolated image of the software and hardware decoder ;
Based on the above objects , about NVR Come on , We will implement a unified management class :TRecordManage, He manages the life cycle of the channel , Each channel aggregates and binds its own video source , And bind your own player .
The relationship is like the following :

Of course, many small object classes are used by the aggregation of these large objects , Such as cache management 、 Video file solution 、 Packet 、 The object of network flow 、 Display in different modes during preview , We need to implement a video display splitter management TPlayView Display, etc , Then slowly decompose and extract the real image !
边栏推荐
- Link: fatal error lnk1168: cannot open debug/test Solution of exe for writing
- [backtracking method] queen n problem
- Google reinforcement learning framework seed RL environment deployment
- L1-068 harmonic average (10 points)
- Spatial distribution data of national multi-year average precipitation 1951-2021, temperature distribution data, evapotranspiration data, evaporation data, solar radiation data, sunshine data and wind
- Can‘t find a suitable configuration file in this directory or any parent. Error reporting and resolution
- Musk promotes the development of fascinating new products partners remind important questions
- [backtracking] backtracking method to solve combinatorial problems
- Kwai opens a milestone activity for fans to record every achievement moment for creators
- Drive safety coding & troubleshooting guide
猜你喜欢

Normalized vegetation index (NDVI) data, NPP data, GPP data, evapotranspiration data, vegetation type data, ecosystem type distribution data

JWT学习与使用

kali下安装pycharm并创建快捷访问

Drive safety coding & troubleshooting guide

2022 fusion welding and thermal cutting recurrent training question bank and simulation examination

AI and logistics Patent

Solid programming concepts

Memory protection

2022 examination questions and simulation examination for crane driver (limited to bridge crane)

New year news of osdu open underground data space Forum
随机推荐
[GIS tutorial] land use transfer matrix
Interview must ask: summary of ten classic sorting algorithms
Parallélisation de l'entraînement accéléré TF. Données. Générateur de données
2022 electrician (elementary) operation certificate examination question bank and online simulation examination
Force/release learning arrangement in IC Verification (5) research on the influence of reg type signals
According to aiqicha, keep went public in Hong Kong and hit the "first share of online fitness"
BI 如何让SaaS产品具有 “安全感”和“敏锐感”(上)
Self implementation of a UI Library - UI core drawing layer management
2022 examination questions and online simulation examination for safety management personnel of hazardous chemical business units
kali下安装pycharm并创建快捷访问
Spatial distribution data of national multi-year average precipitation 1951-2021, temperature distribution data, evapotranspiration data, evaporation data, solar radiation data, sunshine data and wind
Force/release learning and sorting in IC Verification (6) research on the influence of wire type signals
How to use union all in LINQ- How to use union all in LINQ?
Image processing 13- calculation of integral diagram
Yolo opencv scale identification scale reading identification water gauge identification water level identification source code
Introduction to MMS memory optimization of Hisilicon MPP service
1006 next spread
How to count the total length of roads in the region and draw data histogram
Day17 array features array boundary array application traversal array multidimensional array creation and traversal arrays operation array bubble sort
Ten trends of Internet Security in 2022 industry released