CN116149737A - A method and device for saving LED display parameters, and a loading method and device - Google Patents
A method and device for saving LED display parameters, and a loading method and device Download PDFInfo
- Publication number
- CN116149737A CN116149737A CN202310129873.1A CN202310129873A CN116149737A CN 116149737 A CN116149737 A CN 116149737A CN 202310129873 A CN202310129873 A CN 202310129873A CN 116149737 A CN116149737 A CN 116149737A
- Authority
- CN
- China
- Prior art keywords
- led display
- display screen
- parameters
- data
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0608—Saving storage space on storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/147—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
- Control Of El Displays (AREA)
Abstract
Description
技术领域technical field
本发明公开涉及显示屏参数技术领域,具体地,涉及一种LED显示屏参数的保存方法及装置、加载方法及装置。The disclosure of the present invention relates to the technical field of display screen parameters, in particular, to a method and device for saving LED display screen parameters, and a loading method and device.
背景技术Background technique
目前,LED显示屏作为新型的显示技术,以其节能、环保、高亮等优点逐渐被市场接受,从而被广泛应用于都市传媒、城市交通电子标识牌等领域。通常情况下,LED显示屏的显示效果由LED控制软件控制。在实际应用中,通过LED控制软件点亮一块LED显示屏需要正确配置几十项参数,每次重新设置一套正确的显示屏参数过程相当繁琐、复杂。因此,现有技术中,更多应用场景是LED控制软件点亮一块LED显示屏时采用加载上次保存的正确参数文件,然后进行参数微调的方式进行屏幕的配置。但是,在现有技术中的上述技术方案中,随着显示屏参数的不断增加,LED控制软件传统的保存、加载显示屏参数文件的速度慢,耗时长,并且不同类型的LED显示屏参数不具备良好的兼容性。At present, as a new type of display technology, LED display is gradually accepted by the market due to its advantages of energy saving, environmental protection, and high brightness, so it is widely used in urban media, urban traffic electronic signage and other fields. Usually, the display effect of the LED display is controlled by the LED control software. In practical applications, it is necessary to correctly configure dozens of parameters to light up an LED display through LED control software, and the process of resetting a set of correct display parameters each time is quite cumbersome and complicated. Therefore, in the prior art, more application scenarios are that when the LED control software lights up an LED display screen, the correct parameter file saved last time is loaded, and then the parameters are fine-tuned to configure the screen. However, in the above-mentioned technical solutions in the prior art, with the continuous increase of display screen parameters, the traditional saving and loading of display screen parameter files by LED control software is slow and time-consuming, and the parameters of different types of LED display screens are different. Have good compatibility.
因此,本领域人员亟需寻找一种新的技术方案来解决上述的问题。Therefore, those skilled in the art urgently need to find a new technical solution to solve the above problems.
发明内容Contents of the invention
为克服相关技术中存在的问题,本发明公开提供一种LED显示屏参数的保存方法及装置、加载方法及装置。In order to overcome the problems existing in the related technologies, the present invention discloses a method and device for saving parameters of an LED display screen, and a method and device for loading them.
根据本发明公开实施例的第一方面,提供一种LED显示屏参数的保存方法,应用于LED显示屏控制系统,所述方法包括:According to the first aspect of the disclosed embodiments of the present invention, a method for saving LED display parameters is provided, which is applied to an LED display control system, and the method includes:
获取需要保存的LED显示屏参数;Obtain the LED display parameters that need to be saved;
设置若干个以字节流形式写入/读取的数据块,根据LED显示屏参数的类型将每种类型的LED显示屏参数储存在不同的数据块中;Set several data blocks written/read in the form of byte streams, and store each type of LED display parameters in different data blocks according to the type of LED display parameters;
将所有储存LED显示屏参数的数据块组合起来进行压缩处理,将压缩处理后的数据写入到指定后缀的文件并将所述文件储存在临时内存中。Combining all data blocks storing LED display parameters for compression processing, writing the compressed data to a file with a specified suffix and storing the file in a temporary memory.
可选的,所述根据LED显示屏参数的类型将每种类型的LED显示屏参数储存在不同的数据块中,包括:Optionally, each type of LED display parameter is stored in a different data block according to the type of the LED display parameter, including:
根据LED显示屏参数的类型设置块头信息,所述块头信息中包括数据长度信息、数据版本信息和数据类型信息;Set block header information according to the type of LED display screen parameters, including data length information, data version information and data type information in the block header information;
根据每种LED显示屏参数的类型对应的块头信息和所述LED显示屏参数,获取所述LED显示屏参数的类型对应的数据块。According to the block header information corresponding to each type of LED display parameter and the LED display parameters, the data block corresponding to the type of the LED display parameter is obtained.
可选的,在所述获取需要保存的LED显示屏参数之后,在所述设置若干个以字节流形式写入/读取的数据块之前,所述方法还包括:Optionally, after the acquisition of the LED display parameters that need to be saved, and before the setting of several data blocks written/read in the form of byte streams, the method further includes:
确定所述需要保存的LED显示屏参数的数据量;Determine the data volume of the LED display screen parameters that need to be saved;
若所述数据量大于预设数值,则执行所述设置若干个以字节流形式写入/读取的数据块以及之后的步骤;或者,If the amount of data is greater than a preset value, then perform the steps of setting several data blocks written/read in the form of byte streams and subsequent steps; or,
若所述数据量小于或者等于预设阈值,则将需要保存的LED显示屏参数进行压缩后储存在临时内存中。If the amount of data is less than or equal to the preset threshold, the parameters of the LED display screen that need to be saved are compressed and stored in the temporary memory.
根据本发明公开实施例的第二方面,提供一种LED显示屏参数的加载方法,应用于LED显示屏控制系统,所述方法包括:According to the second aspect of the disclosed embodiments of the present invention, a method for loading LED display parameters is provided, which is applied to an LED display control system, and the method includes:
获取需要加载的LED显示屏参数的目标类型;Obtain the target type of the LED display parameters that need to be loaded;
按照所述目标类型在临时内存中进行循环查找;Perform circular search in temporary memory according to the target type;
若存在与所述目标类型对应的目标数据块,则加载所述目标数据块中的LED显示屏参数信息。If there is a target data block corresponding to the target type, then load the LED display screen parameter information in the target data block.
可选的,在所述获取需要加载的LED显示屏参数的目标类型之后,在所述按照所述目标类型在临时内存中进行循环查找之前,所述方法还包括:Optionally, after the acquisition of the target type of the LED display parameters that need to be loaded, and before the circular search in the temporary memory according to the target type, the method further includes:
确定指定后缀的文件;Determine the file with the specified suffix;
将所述指定后缀的文件中经过压缩处理后的数据进行解压处理,获取解压后的数据块信息。Decompressing the compressed data in the file with the specified suffix to obtain decompressed data block information.
根据本发明公开实施例的第三方面,提供一种LED显示屏参数的保存装置,应用于LED显示屏控制系统,所述装置包括:According to the third aspect of the disclosed embodiments of the present invention, a device for saving LED display parameters is provided, which is applied to a LED display control system, and the device includes:
参数获取模块,获取需要保存的LED显示屏参数;The parameter acquisition module acquires the LED display parameters that need to be saved;
数据块建立模块,与所述参数获取模块相连,设置若干个以字节流形式写入/读取的数据块,根据LED显示屏参数的类型将每种类型的LED显示屏参数储存在不同的数据块中;The data block building module is connected with the parameter acquisition module, and several data blocks written/read in byte stream form are set, and each type of LED display parameter is stored in different LED display parameters according to the type of the LED display parameter. in the data block;
参数保存模块,与所述数据块建立模块相连,将所有储存LED显示屏参数的数据块组合起来进行压缩处理,将压缩处理后的数据写入到指定后缀的文件并将所述文件储存在临时内存中。The parameter saving module is connected with the data block building module, combines all data blocks storing LED display parameters for compression processing, writes the compressed data into a file with a specified suffix and stores the file in a temporary in memory.
可选的,所述数据块建立模块包括:Optionally, the data block building module includes:
块头信息设置单元,根据LED显示屏参数的类型设置块头信息,所述块头信息中包括数据长度信息、数据版本信息和数据类型信息;A block header information setting unit, which sets the block header information according to the type of the LED display screen parameter, and includes data length information, data version information and data type information in the block header information;
数据块建立单元,与所述块头信息设置单元相连,根据每种LED显示屏参数的类型对应的块头信息和所述LED显示屏参数,获取所述LED显示屏参数的类型对应的数据块。The data block creation unit is connected with the block header information setting unit, and obtains the data block corresponding to the type of the LED display parameter according to the block header information corresponding to each type of LED display parameter and the LED display parameters.
可选的,所述装置还包括:Optionally, the device also includes:
数据量确定模块,与所述参数获取模块相连,确定所述需要保存的LED显示屏参数的数据量;A data volume determination module is connected with the parameter acquisition module to determine the data volume of the LED display screen parameters that need to be preserved;
第一写入模块,分别与所述数据量确定模块和所述数据块建立模块相连,若所述数据量大于预设数值,则执行所述设置若干个以字节流形式写入/读取的数据块以及之后的步骤;The first writing module is connected to the data volume determination module and the data block creation module respectively, and if the data volume is greater than a preset value, then execute the setting of several write/read in the form of byte stream The data block and subsequent steps;
第二写入模块,与所述数据量确定模块相连,若所述数据量小于或者等于预设阈值,则将需要保存的LED显示屏参数进行压缩后储存在临时内存中。The second writing module is connected to the data volume determining module, and if the data volume is less than or equal to the preset threshold, the LED display screen parameters to be saved are compressed and stored in the temporary memory.
根据本发明公开实施例的第四方面,提供一种LED显示屏参数的加载装置,应用于LED显示屏控制系统,所述装置包括:According to the fourth aspect of the disclosed embodiments of the present invention, a device for loading LED display parameters is provided, which is applied to a LED display control system, and the device includes:
目标类型确定模块,获取需要加载的LED显示屏参数的目标类型;The target type determination module obtains the target type of the LED display parameters that need to be loaded;
循环查找模块,与所述目标类型确定模块相连,按照所述目标类型在临时内存中进行循环查找;The circular search module is connected with the target type determination module, and performs circular search in the temporary memory according to the target type;
参数加载模块,与所述循环查找模块相连,若存在与所述目标类型对应的目标数据块,则加载所述目标数据块中的LED显示屏参数信息。The parameter loading module is connected with the cycle search module, if there is a target data block corresponding to the target type, then load the LED display screen parameter information in the target data block.
可选的,所述装置还包括:Optionally, the device also includes:
文件确定模块,与所述目标类型确定模块相连,确定指定后缀的文件;A file determination module, connected to the target type determination module, determines the file with the specified suffix;
解压缩模块,分别与所述文件确定模块和所述循环查找模块相连,将所述指定后缀的文件中经过压缩处理后的数据进行解压处理,获取解压后的数据块信息。The decompression module is connected to the file determination module and the circular search module respectively, decompresses the compressed data in the file with the specified suffix, and obtains the decompressed data block information.
综上所述,本发明公开涉及一种LED显示屏参数的保存方法及装置、加载方法及装置,该保存方法包括:获取需要保存的LED显示屏参数;设置若干个以字节流形式写入/读取的数据块,根据LED显示屏参数的类型将每种类型的LED显示屏参数储存在不同的数据块中;将所有储存LED显示屏参数的数据块组合起来进行压缩处理,将压缩处理后的数据写入到指定后缀的文件并将该文件储存在临时内存中。能够通过定义特殊的数据块结构,将不同的LED显示屏参数信息按照参数类型保存为独立的数据块信息,解决保存加载LED显示屏参数时文件兼容性的问题,能够保存、加载多个版本的显示屏参数,并且极大地提升了保存和加载LED显示屏参数的速度。To sum up, the present invention discloses a method and device for saving LED display parameters, and a loading method and device. The saving method includes: obtaining LED display parameters that need to be saved; /read data block, store each type of LED display parameters in different data blocks according to the type of LED display parameters; combine all data blocks storing LED display parameters for compression processing, and compress The final data is written to the file with the specified suffix and stored in the temporary memory. By defining a special data block structure, different LED display parameter information can be saved as independent data block information according to the parameter type, which solves the problem of file compatibility when saving and loading LED display parameters, and can save and load multiple versions. Display parameters, and greatly improved the speed of saving and loading LED display parameters.
本发明公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages disclosed in the present invention will be described in detail in the following detailed description.
附图说明Description of drawings
附图是用来提供对本公开的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开,但并不构成对本公开的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present disclosure, and constitute a part of the description, together with the following specific embodiments, are used to explain the present disclosure, but do not constitute a limitation to the present disclosure. In the attached picture:
图1是根据一示例性实施例示出的一种LED显示屏参数的保存方法的流程图;Fig. 1 is a flow chart of a method for saving LED display screen parameters according to an exemplary embodiment;
图2是根据图1示出的另一种LED显示屏参数的保存方法的流程图;Fig. 2 is a flowchart according to another method for saving LED display screen parameters shown in Fig. 1;
图3是根据一示例性实施例示出的一种LED显示屏参数的加载方法的流程图;Fig. 3 is a flow chart of a method for loading LED display screen parameters according to an exemplary embodiment;
图4是根据图3示出的另一种LED显示屏参数的加载方法的流程图;Fig. 4 is a flowchart according to another loading method of LED display screen parameters shown in Fig. 3;
图5是根据一示例性实施例示出的一种LED显示屏参数的保存装置的结构框图;Fig. 5 is a structural block diagram of a storage device for LED display screen parameters according to an exemplary embodiment;
图6是根据图5示出的另一种LED显示屏参数的保存装置的结构框图;Fig. 6 is a structural block diagram of another LED display screen parameter saving device shown in Fig. 5;
图7是根据一示例性实施例示出的一种LED显示屏参数的加载装置的结构框图;Fig. 7 is a structural block diagram of a device for loading LED display screen parameters according to an exemplary embodiment;
图8为根据图7示出的另一种LED显示屏参数的加载装置的结构框图。FIG. 8 is a structural block diagram of another loading device for LED display screen parameters shown in FIG. 7 .
具体实施方式Detailed ways
以下结合附图对本发明公开的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本公开,并不用于限制本公开。The specific implementation manners disclosed by the present invention will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to illustrate and explain the present disclosure, and are not intended to limit the present disclosure.
图1是根据一示例性实施例示出的一种LED显示屏参数的保存方法的流程图,如图1所示,应用于LED显示屏控制系统,该方法包括:Fig. 1 is a flow chart of a method for saving LED display screen parameters according to an exemplary embodiment. As shown in Fig. 1, it is applied to a LED display screen control system, and the method includes:
在步骤101中,获取需要保存的LED显示屏参数。In
示例地,本发明公开实施例中的LED显示屏控制系统可以为安装在电子设备上的控制软件,用于保存、加载LED显示屏参数以及控制点亮LED显示屏。在实际应用过程中,工作人员操作该LED显示屏控制系统,例如点击保存LED显示屏参数按钮以控制该LED显示屏控制系统执行保存LED显示屏参数这一功能。LED显示屏控制系统接收到参数保存指令后,获取需要保存的LED显示屏参数。Exemplarily, the LED display screen control system in the disclosed embodiments of the present invention may be control software installed on an electronic device for saving and loading LED display screen parameters and controlling lighting of the LED display screen. In the actual application process, the staff operates the LED display control system, such as clicking the button to save the LED display parameters to control the LED display control system to perform the function of saving the LED display parameters. After receiving the parameter saving instruction, the LED display control system acquires the LED display parameters to be saved.
在步骤102中,设置若干个以字节流形式写入/读取的数据块,根据LED显示屏参数的类型将每种类型的LED显示屏参数储存在不同的数据块中。In
示例地,LED显示屏参数包含多种不同类型,且LED显示屏参数的类型可以由工作人员人为定义,LED显示屏控制系统保存LED显示屏参数之前需要对参数不同的类型进行识别,从而可以将不同类型的LED显示屏参数保存在不同的数据块中。For example, LED display parameters include multiple different types, and the types of LED display parameters can be manually defined by the staff. Before the LED display control system saves the LED display parameters, it is necessary to identify different types of parameters, so that the Different types of LED display parameters are stored in different data blocks.
具体的,LED显示屏控制系统中部分需要保存的LED显示屏参数以及对应的类型可以如表1所示:Specifically, some LED display parameters that need to be saved in the LED display control system and the corresponding types can be shown in Table 1:
表1Table 1
需要说明的是,本发明公开实施例中的数据块为保存参数时定义的特殊数据块,即以字节流形式写入文件中对参数进行储存的数据块,并且在调动数据时,也是通过字节流的形式从文件中读取参数并将读取到的参数加载到相应的数据块中。It should be noted that the data block in the disclosed embodiments of the present invention is a special data block defined when saving parameters, that is, a data block written in a file in the form of a byte stream to store parameters, and when transferring data, it is also passed The byte stream reads the parameters from the file and loads the read parameters into the corresponding data blocks.
具体的,根据LED显示屏参数的类型设置块头信息,该块头信息中包括数据长度信息、数据版本信息和数据类型信息;根据每种LED显示屏参数的类型对应的块头信息和该LED显示屏参数,获取该LED显示屏参数的类型对应的数据块。Specifically, block header information is set according to the type of LED display parameter, and the block header information includes data length information, data version information and data type information; according to the block header information corresponding to each type of LED display parameter and the LED display parameter , to obtain the data block corresponding to the type of the LED display parameter.
示例地,将不同类型的LED显示屏参数保存在独立的数据块时,每个数据块中除了LED显示屏参数之外,还包括与LED显示屏参数格式相同的块头信息。块头信息用于快速区分、记录不同的LED显示屏参数信息。For example, when different types of LED display parameters are stored in independent data blocks, each data block includes block header information in the same format as the LED display parameters in addition to the LED display parameters. The block header information is used to quickly distinguish and record different LED display parameter information.
例如,块头信息可以通过如下代码进行表示:For example, block header information can be represented by the following code:
从上述块头信息的代码中可以看出,块头信息结构体中的每一个参数赋值都代表了不同的含义,举例说明具体如下:Len=20;//20代表当前数据块大小为20;Version=10;//10代表版本信息,不同的版本信息可以用来区分同一个显示屏参数结构的修改记录;Type=1;//1代表当前数据块类型为1。进一步的,上述内容中显示了部分需要保存的显示屏参数以及对应的参数类型定义,而在实际软件代码中,还可以通过数字来代表不同的信息块数据,例如,1代表基本参数类型。It can be seen from the code of the above block header information that each parameter assignment in the block header information structure represents a different meaning. The specific examples are as follows: Len=20; //20 means that the current data block size is 20; Version= 10; //10 represents the version information, different version information can be used to distinguish the modification records of the same display parameter structure; Type=1; //1 represents the current data block type is 1. Further, the above content shows some screen parameters that need to be saved and the corresponding parameter type definitions, but in the actual software code, different information block data can also be represented by numbers, for example, 1 represents the basic parameter type.
在步骤103中,将所有储存LED显示屏参数的数据块组合起来进行压缩处理,将压缩处理后的数据写入到指定后缀的文件并将该文件储存在临时内存中。In
示例地,将不同类型的LED显示屏参数写入一个一个独立的数据块中之后,在对数据块中的LED显示屏参数进行保存之前,需要先将所有数据块组合起来并进行压缩处理,再将压缩后的数据信息写入到指定后缀的文件中,以及将该指定后缀的文件储存在临时内存中,以待后续的参数读取(加载LED显示屏参数)。其中,该指定后缀的文件是以“.rcvbp”为后缀的文件,临时内存即指定的数据存储空间,也就是电脑文件。For example, after writing different types of LED display parameters into independent data blocks, before saving the LED display parameters in the data block, it is necessary to combine all the data blocks and perform compression processing, and then Write the compressed data information into the file with the specified suffix, and store the file with the specified suffix in the temporary memory for subsequent parameter reading (loading LED display parameters). Wherein, the file with the specified suffix is a file with the suffix ".rcvbp", and the temporary memory is the specified data storage space, that is, the computer file.
可以理解的是,将所有数据块信息组合起来即一个简单的拷贝过程,也就是将所有数据块信息拷贝到一个连续的内存空间中的过程,再将该内存空间中的数据进行压缩处理,能够方便对数据进行保存,也节省了数据的储存空间。It can be understood that the combination of all data block information is a simple copy process, that is, the process of copying all data block information into a continuous memory space, and then compressing the data in the memory space can be It is convenient to save the data, and also saves the storage space of the data.
图2是根据图1示出的另一种LED显示屏参数的保存方法的流程图,如图2所示,该方法还包括:步骤104-步骤105,或者,步骤104-步骤106;Fig. 2 is a flowchart according to another method for saving LED display screen parameters shown in Fig. 1, as shown in Fig. 2, the method further includes: step 104-
在步骤104中,确定该需要保存的LED显示屏参数的数据量。In
在步骤105中,若该数据量大于预设数值,则执行该设置若干个以字节流形式写入/读取的数据块以及之后的步骤。In
在步骤106中,若该数据量小于或者等于预设阈值,则将需要保存的LED显示屏参数进行压缩后储存在临时内存中。In
示例地,在本发明公开的另一实施例中,LED显示屏控制系统获取需要保存的LED显示屏参数之后,还需要确定LED显示屏参数的数据量,当需要保存的LED显示屏参数的数据量较大(大于预设数值)时,通过上述步骤102-步骤103中所描述的方法对LED显示屏参数进行写入数据块以及压缩处理后再进行保存,当需要保存的LED显示屏参数数据量没有高于预设数值时,直接将LED显示屏参数进行保存。For example, in another embodiment disclosed by the present invention, after the LED display screen control system obtains the LED display screen parameters that need to be saved, it also needs to determine the data volume of the LED display screen parameters. When the data of the LED display screen parameters that need to be saved When the amount is large (greater than the preset value), the LED display parameters are written into the data block and compressed after the method described in the above step 102-
需要说明的是,在实际应用过程中,是否采用上述步骤102-步骤103对LED显示屏参数进行保存,与LED显示屏参数的数据量和信息复杂程度均有关联,本发明公开实施例中将预设数值设置为28KB,当LED显示屏参数的数据量大于28KB即采用上述步骤102-步骤103中所描述的方法对LED显示屏参数进行保存。It should be noted that in the actual application process, whether to use the
图3是根据一示例性实施例示出的一种LED显示屏参数的加载方法的流程图,如图3所示,应用于LED显示屏控制系统,该方法包括:Fig. 3 is a flow chart of a method for loading LED display screen parameters according to an exemplary embodiment. As shown in Fig. 3, it is applied to a LED display screen control system, and the method includes:
在步骤301中,获取需要加载的LED显示屏参数的目标类型。In
示例地,当需要读取LED显示屏参数时,本发明公开实施例中的LED显示屏控制系统根据工作人员发出的加载指令获取需要加载的LED显示屏参数的目标类型,以根据该目标类型在临时内存中查找对应的LED显示屏参数。For example, when it is necessary to read the parameters of the LED display screen, the LED display screen control system in the disclosed embodiment of the present invention obtains the target type of the LED display screen parameters that need to be loaded according to the loading instruction issued by the staff, so as to Find the corresponding LED display parameters in the temporary memory.
需要说明的是,本发明公开实施例中涉及到的目标类型为需要加载的LED显示屏参数的类型,在进行加载之前根据加载指令确定。而上述步骤101-步骤103中涉及到的LED显示屏参数的类型为需要保存的LED显示屏参数的类型,在保存过程中根据获取到的LED显示屏参数确定该类型。也就是说,步骤301-步骤303中的目标类型与上述步骤101-步骤103中的LED显示屏参数的类型可以相同,也可以不同,具体根据实际情况确定。It should be noted that the target type involved in the disclosed embodiments of the present invention is the type of LED display screen parameters that need to be loaded, which is determined according to the loading instruction before loading. The type of LED display screen parameters involved in the
在步骤302中,按照该目标类型在临时内存中进行循环查找。In
在步骤303中,若存在与该目标类型对应的目标数据块,则加载该目标数据块中的LED显示屏参数信息。In
示例地,本发明公开实施例中采用循环查找的方式,在临时内存中寻找目标类型的LED显示屏参数,如此,无论保存LED显示屏参数时数据块之间的顺序是如何设置的,加载LED显示屏参数的过程中各个数据块之间不会相互影响。Illustratively, in the disclosed embodiments of the present invention, a circular search method is adopted to find the LED display parameters of the target type in the temporary memory. In this way, no matter how the order of the data blocks is set when saving the LED display parameters, loading the LED Each data block will not affect each other in the process of display screen parameters.
具体的,以读取伽玛跳灰表信息数据为例,循环从参数文件(指定后缀的文件)中去查找比较是否存在rpbt_gammaCalibrationTable_delta类型的数据块信息,若存在,则加载该目标数据块,若不存在,则不加载此种目标类型的数据块信息。Specifically, take reading the gamma jump gray table information data as an example, loop through the parameter file (the file with the specified suffix) to find and compare whether there is data block information of the rpbt_gammaCalibrationTable_delta type, if it exists, load the target data block, if If it does not exist, the data block information of this target type will not be loaded.
图4是根据图3示出的另一种LED显示屏参数的加载方法的流程图,如图4所示,该方法还包括:Fig. 4 is a flowchart according to another method for loading LED display screen parameters shown in Fig. 3, as shown in Fig. 4, the method also includes:
在步骤304中,确定指定后缀的文件。In
在步骤305中,将该指定后缀的文件中经过压缩处理后的数据进行解压处理,获取解压后的数据块信息。In
示例地,确定需要加载的LED显示屏参数的目标类型之后,还需要先确定用于保存LED显示屏参数的文件,即指定后缀的文件,数据块在该指定后缀的文件中为压缩处理后的数据信息。因此,先对指定后缀的文件中压缩后的数据信息进行解压缩处理,获取解压后的数据块信息,再通过循环查找的方式从解压后的数据块信息中查找是否存在与目标类型对应的目标数据块。For example, after determining the target type of the LED display parameters that need to be loaded, it is also necessary to determine the file used to save the LED display parameters, that is, the file with the specified suffix, and the data block in the file with the specified suffix is compressed. Data information. Therefore, first decompress the compressed data information in the file with the specified suffix, obtain the decompressed data block information, and then find out whether there is a target corresponding to the target type from the decompressed data block information by means of circular search data block.
另外,还可以理解的是,若目标类型对应的LED显示屏参数通过上述步骤106中所描述的方法进行保存,则加载该目标类型对应的LED显示屏参数时,不需要执行确定指定后缀的文件以及对文件中的数据信息进行解压缩的步骤,直接通过循环查找的方式在临时内存中寻找对应的LED显示屏参数并加载即可。In addition, it can also be understood that if the LED display parameters corresponding to the target type are saved by the method described in
图5是根据一示例性实施例示出的一种LED显示屏参数的保存装置的结构框图,如图5所示,应用于LED显示屏控制系统,该装置500包括:Fig. 5 is a structural block diagram of a device for saving LED display screen parameters according to an exemplary embodiment. As shown in Fig. 5, it is applied to a LED display screen control system, and the
参数获取模块510,获取需要保存的LED显示屏参数;
数据块建立模块520,与该参数获取模块510相连,设置若干个以字节流形式写入/读取的数据块,根据LED显示屏参数的类型将每种类型的LED显示屏参数储存在不同的数据块中;The data block
参数保存模块530,与该数据块建立模块520相连,将所有储存LED显示屏参数的数据块组合起来进行压缩处理,将压缩处理后的数据写入到指定后缀的文件并将该文件储存在临时内存中。The
可选的,该数据块建立模块520包括:Optionally, the data
块头信息设置单元,根据LED显示屏参数的类型设置块头信息,该块头信息中包括数据长度信息、数据版本信息和数据类型信息;The block header information setting unit sets the block header information according to the type of the LED display parameter, and the block header information includes data length information, data version information and data type information;
数据块建立单元,与该块头信息设置单元相连,根据每种LED显示屏参数的类型对应的块头信息和该LED显示屏参数,获取该LED显示屏参数的类型对应的数据块。The data block creation unit is connected with the block header information setting unit, and according to the block header information corresponding to each LED display parameter type and the LED display parameter, obtains the data block corresponding to the LED display parameter type.
图6是根据图5示出的另一种LED显示屏参数的保存装置的结构框图,如图6所示,该装置500还包括:Fig. 6 is a structural block diagram of another LED display screen parameter saving device shown in Fig. 5, as shown in Fig. 6, the
数据量确定模块540,与该参数获取模块510相连,确定该需要保存的LED显示屏参数的数据量;The amount of
第一写入模块550,分别与该数据量确定模块540和该数据块建立模块520相连,若该数据量大于预设数值,则执行该设置若干个以字节流形式写入/读取的数据块以及之后的步骤;The
第二写入模块560,与该数据量确定模块540相连,若该数据量小于或者等于预设阈值,则将需要保存的LED显示屏参数进行压缩后储存在临时内存中。The
图7是根据一示例性实施例示出的一种LED显示屏参数的加载装置的结构框图,如图7所示,应用于LED显示屏控制系统,该装置700包括:Fig. 7 is a structural block diagram of a device for loading LED display screen parameters according to an exemplary embodiment. As shown in Fig. 7, it is applied to a LED display screen control system, and the
目标类型确定模块710,获取需要加载的LED显示屏参数的目标类型;The target
循环查找模块720,与该目标类型确定模块710相连,按照该目标类型在临时内存中进行循环查找;The
参数加载模块730,与该循环查找模块720相连,若存在与该目标类型对应的目标数据块,则加载该目标数据块中的LED显示屏参数信息。The
图8为根据图7示出的另一种LED显示屏参数的加载装置的结构框图,如图8所示,该装置700还包括:Fig. 8 is a structural block diagram of another LED display parameter loading device shown in Fig. 7, as shown in Fig. 8, the
文件确定模块740,与该目标类型确定模块710相连,确定指定后缀的文件;The
解压缩模块750,分别与该文件确定模块740和该循环查找模块720相连,将该指定后缀的文件中经过压缩处理后的数据进行解压处理,获取解压后的数据块信息。The
综上所述,本发明公开涉及一种LED显示屏参数的保存方法及装置、加载方法及装置,该保存方法包括:获取需要保存的LED显示屏参数;设置若干个以字节流形式写入/读取的数据块,根据LED显示屏参数的类型将每种类型的LED显示屏参数储存在不同的数据块中;将所有储存LED显示屏参数的数据块组合起来进行压缩处理,将压缩处理后的数据写入到指定后缀的文件并将该文件储存在临时内存中。能够通过定义特殊的数据块结构,将不同的LED显示屏参数信息按照参数类型保存为独立的数据块信息,解决保存加载LED显示屏参数时文件兼容性的问题,能够保存、加载多个版本的显示屏参数,并且极大地提升了保存和加载LED显示屏参数的速度。To sum up, the present invention discloses a method and device for saving LED display parameters, and a loading method and device. The saving method includes: obtaining LED display parameters that need to be saved; /read data block, store each type of LED display parameters in different data blocks according to the type of LED display parameters; combine all data blocks storing LED display parameters for compression processing, and compress The final data is written to the file with the specified suffix and stored in the temporary memory. By defining a special data block structure, different LED display parameter information can be saved as independent data block information according to the parameter type, which solves the problem of file compatibility when saving and loading LED display parameters, and can save and load multiple versions. Display parameters, and greatly improved the speed of saving and loading LED display parameters.
以上结合附图详细描述了本公开的优选实施方式,但是,本公开并不限于上述实施方式中的具体细节,在本公开的技术构思范围内,可以对本公开的技术方案进行多种简单变型,这些简单变型均属于本公开的保护范围。The preferred embodiments of the present disclosure have been described in detail above in conjunction with the accompanying drawings. However, the present disclosure is not limited to the specific details of the above embodiments. Within the scope of the technical concept of the present disclosure, various simple modifications can be made to the technical solutions of the present disclosure. These simple modifications all belong to the protection scope of the present disclosure.
另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合,为了避免不必要的重复,本公开对各种可能的组合方式不再另行说明。In addition, it should be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner if there is no contradiction. The combination method will not be described separately.
此外,本公开的各种不同的实施方式之间也可以进行任意组合,只要其不违背本公开的思想,其同样应当视为本公开所公开的内容。In addition, various implementations of the present disclosure can be combined arbitrarily, as long as they do not violate the idea of the present disclosure, they should also be regarded as the content disclosed in the present disclosure.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310129873.1A CN116149737A (en) | 2023-02-07 | 2023-02-07 | A method and device for saving LED display parameters, and a loading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310129873.1A CN116149737A (en) | 2023-02-07 | 2023-02-07 | A method and device for saving LED display parameters, and a loading method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116149737A true CN116149737A (en) | 2023-05-23 |
Family
ID=86353953
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310129873.1A Pending CN116149737A (en) | 2023-02-07 | 2023-02-07 | A method and device for saving LED display parameters, and a loading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116149737A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107622067A (en) * | 2016-07-13 | 2018-01-23 | 杭州海康威视数字技术股份有限公司 | A kind of storage, reading and display methods and device to multiple multimedia files |
CN108109580A (en) * | 2018-01-05 | 2018-06-01 | 深圳市灰度软件有限公司 | Parameter adaptation method, apparatus, equipment and the storage medium of LED display |
CN110827749A (en) * | 2019-12-12 | 2020-02-21 | 苏州飞控软件科技有限公司 | Data read-back control system of LED display screen |
-
2023
- 2023-02-07 CN CN202310129873.1A patent/CN116149737A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107622067A (en) * | 2016-07-13 | 2018-01-23 | 杭州海康威视数字技术股份有限公司 | A kind of storage, reading and display methods and device to multiple multimedia files |
CN108109580A (en) * | 2018-01-05 | 2018-06-01 | 深圳市灰度软件有限公司 | Parameter adaptation method, apparatus, equipment and the storage medium of LED display |
CN110827749A (en) * | 2019-12-12 | 2020-02-21 | 苏州飞控软件科技有限公司 | Data read-back control system of LED display screen |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8171251B2 (en) | Data storage management method and device | |
CN106570018B (en) | Serialization and deserialization method, device and system and electronic equipment | |
CN110377226B (en) | Compression method and device based on storage engine bluestore and storage medium | |
CN101208755B (en) | Apparatus, system and method for accessing persistent files in non-XIP flash memory | |
WO2018049761A1 (en) | Gif file playing method and system | |
JP2008065834A (en) | Fusion memory device and method | |
JP2004348945A (en) | Dismountable storage device having data compression function | |
CN101261825A (en) | A word library management method for mobile terminal system | |
US7978922B2 (en) | Compressing images in documents | |
JP2010061518A (en) | Apparatus and method for storing data and program | |
CN116775114A (en) | Version library compatibility determining method and device, computer equipment and storage medium | |
US8131918B2 (en) | Method and terminal for demand paging at least one of code and data requiring real-time response | |
CN110399371B (en) | Redis database-based memory consumption reduction method, storage medium and device | |
CN115495020A (en) | File processing method and device, electronic equipment and readable storage medium | |
CN105320669A (en) | Method and device for data storage and method and device for data reading | |
US7062603B2 (en) | External storage device for selectively storing data between first and second recording media | |
CN116149737A (en) | A method and device for saving LED display parameters, and a loading method and device | |
CN107577474B (en) | Processing method and device for upgrading file and electronic equipment | |
CN109727183B (en) | Scheduling method and device for compression table of graphics rendering buffer | |
TWI233616B (en) | Silicon storage media and controller thereof, controlling method thereof, and data frame based storage media | |
CN114780120B (en) | Upgrade method, device and storage medium | |
CN109979498A (en) | The method and device of the write-in of disk video data, reading | |
CN105205069B (en) | Cache opening method and device based on paging file | |
US11507499B2 (en) | System and method for facilitating mitigation of read/write amplification in data compression | |
CN110119380A (en) | A kind of storage, read method and the device of Scalable Vector map file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |