CN108132978A - Applied to the picture resource packet generation method in instrument desk embedded system - Google Patents

Applied to the picture resource packet generation method in instrument desk embedded system Download PDF

Info

Publication number
CN108132978A
CN108132978A CN201711322035.7A CN201711322035A CN108132978A CN 108132978 A CN108132978 A CN 108132978A CN 201711322035 A CN201711322035 A CN 201711322035A CN 108132978 A CN108132978 A CN 108132978A
Authority
CN
China
Prior art keywords
picture
embedded system
image data
resource packet
format
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
Application number
CN201711322035.7A
Other languages
Chinese (zh)
Inventor
赵炜
汪贺
龙云象
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Changfeng Aviation Electronics Co Ltd
Original Assignee
Suzhou Changfeng Aviation Electronics Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Changfeng Aviation Electronics Co Ltd filed Critical Suzhou Changfeng Aviation Electronics Co Ltd
Priority to CN201711322035.7A priority Critical patent/CN108132978A/en
Publication of CN108132978A publication Critical patent/CN108132978A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually

Abstract

Present invention is disclosed applied to the picture resource packet generation method in instrument desk embedded system, the sequence that image data is introduced according to embedded system in Excel modules adds image data, and image data includes picture input format, picture output format and picture file name;The input path connection picture library of Excel modules, outgoing route to embedded system;Picture is read by the sequence of image data using the class libraries CImage of thread, picture input format is converted into picture output format;According to the sequence for introducing image data, after image data is converted to picture output format by picture input format one by one, it is packaged into the picture resource packet directly utilized for embedded system.The PNG picture materials that UI designer is provided can be converted into the picture resource packet that embedded system can directly invoke by the present invention.Without largely sequence and picture modification, improve work efficiency, reduce human cost.It is versatile, suitable for promoting and applying.

Description

Applied to the picture resource packet generation method in instrument desk embedded system
Technical field
The present invention relates to applied to the picture resource packet generation method in instrument desk embedded system, belong to instrument desk insertion The technical field that image data is implanted into formula system.
Background technology
Instrument desk has numerous displays, needs to be implanted into a large amount of image data for display in embedded system.Picture Data include Image ID, Pictures location information, picture format etc., before image data implantation is carried out, need to be carried designer The a large amount of picture materials supplied be converted into the file format needed for embedded system, and add attribute.There are it is a large amount of repeatability, Mechanical work, takes a substantial amount of time and human cost.
And the format conversion of picture is to belong to the prior art, and can not also be adapted to only by whole picture format conversion Demand, it is also necessary to be ranked up according to certain requirement to picture and information is given, still remain the problem of larger.
Invention content
Present invention aim to address above-mentioned the deficiencies in the prior art, matching is needed to be implanted into instrument desk embedded system The problem of conversion image data, is provided applied to the picture resource packet generation method in instrument desk embedded system.
In order to achieve the above object, the technical solution adopted in the present invention is:
Applied to the picture resource packet generation method in instrument desk embedded system, include the following steps:
Step a, Excel module add class libraries
The sequence that image data is introduced according to embedded system in Excel modules adds image data, and image data includes figure Piece input format, picture output format and picture file name;
Step b sets input path and the outgoing route of Excel modules
The input path connection picture library of Excel modules, outgoing route to embedded system;
Step c, picture is read and format conversion
Picture is read by the sequence of image data using the class libraries CImage of thread, picture input format is converted into picture output Form;
Step d, the generation of picture resource packet
According to introduce image data sequence, after image data is converted to picture output format by picture input format one by one, It is packaged into the picture resource packet directly utilized for embedded system.
Preferably, picture input format is PNG in the step a, and picture output format is RGB.
Preferably, corresponding picture id information, offset coordinates information and the contracting for introducing picture is equipped in the embedded system Sketch map information.
Preferably, the step d is further included:
In transfer process, correct prompting is provided, and carry out automatic packaging after being wholly converted into work(;
When occurring the retrieval of certain image data in the process not then, miscue information is provided.
The beneficial effects are mainly as follows:
1. the PNG picture materials that UI designer is provided can be converted into the picture resource packet that embedded system can directly invoke.
2. without largely sequence and picture modification, improve work efficiency, reduce human cost.
3. it is versatile, suitable for promoting and applying.
Description of the drawings
Fig. 1 is the flow diagram for the picture resource packet generation method that the present invention is applied in instrument desk embedded system.
Specific embodiment
The present invention provides the picture resource packet generation method being applied in instrument desk embedded system.Below in conjunction with attached drawing pair Technical solution of the present invention is described in detail, so that it is more readily understood and grasps.
Applied to the picture resource packet generation method in instrument desk embedded system, as shown in Figure 1, including the following steps:
Step a, Excel module add class libraries
The sequence that image data is introduced according to embedded system in Excel modules adds image data, and image data includes figure Piece input format, picture output format and picture file name;
The every attribute for introducing data can be sequentially preserved by the Excel modules, convenient for sequentially format conversion and embedded system Directly invoke.
Step b sets input path and the outgoing route of Excel modules
The input path connection picture library of Excel modules, outgoing route to embedded system, as function served as bridge, according to embedded The demand of system carries out conversion calling to picture library data, and needs to check existence, validity and the legitimacy in path.
Step c, picture is read and format conversion
Picture is read by the sequence of image data using the class libraries CImage of thread, picture input format is converted into picture output Form can handle the picture of multiple format, can obtain the data such as the width, height, BPP of picture, directly read specified pixel. According to the pixel of the designated position of acquisition, the conversion for data is carried out according to the specified format of Excel modules, number after conversion According to direct copying.
Step d, the generation of picture resource packet
According to introduce image data sequence, after image data is converted to picture output format by picture input format one by one, It is packaged into the picture resource packet directly utilized for embedded system.
The data of Excel modules are sequentially read, open specified input file format conversion into corresponding output file form, Cycle reading is finished until digital independent, then converts packing and complete.
Wherein, picture input format is PNG in step a, and picture output format is RGB.Because PNG is more conventional at present Material format, and RGB is more suitable for the display of instrument desk.Certainly, other picture formats can also be converted.
It should be noted that without comprising picture id information, offset coordinates information and thumbnail information in Excel modules, And these data are all contained in embedded system, i.e., embedded system is equipped with the corresponding picture id information for introducing picture, offset Coordinate information and thumbnail information call image data according to these information directly from picture resource packet.
Step d is optimized, in transfer process, correct prompting is provided, and beaten automatically after being wholly converted into work( Packet;When occurring the retrieval of certain image data in the process not then, miscue information is provided.Prevent shortage of data.
By above description it can be found that the present invention is applied to the picture resource packet generation side in instrument desk embedded system The PNG picture materials that UI designer is provided can be converted into the picture resource packet that embedded system can directly invoke by method.It need not A large amount of sequence and picture modification, improve work efficiency, reduce human cost.It is versatile, suitable for promoting and applying.
Technical scheme of the present invention is fully described above, it should be noted that specific embodiment party of the invention Formula is simultaneously not limited by the description set out above, the Spirit Essence of those of ordinary skill in the art according to the present invention structure, method or All technical solutions that function etc. is formed using equivalents or equivalent transformation, all fall within protection scope of the present invention Within.

Claims (4)

1. applied to the picture resource packet generation method in instrument desk embedded system, it is characterised in that include the following steps:
Step a, Excel module add class libraries
The sequence that image data is introduced according to embedded system in Excel modules adds image data, and image data includes figure Piece input format, picture output format and picture file name;
Step b sets input path and the outgoing route of Excel modules
The input path connection picture library of Excel modules, outgoing route to embedded system;
Step c, picture is read and format conversion
Picture is read by the sequence of image data using the class libraries CImage of thread, picture input format is converted into picture output Form;
Step d, the generation of picture resource packet
According to introduce image data sequence, after image data is converted to picture output format by picture input format one by one, It is packaged into the picture resource packet directly utilized for embedded system.
2. the picture resource packet generation method according to claim 1 applied in instrument desk embedded system, feature It is:
Picture input format is PNG in the step a, and picture output format is RGB.
3. the picture resource packet generation method according to claim 1 applied in instrument desk embedded system, feature It is:
Corresponding picture id information, offset coordinates information and the thumbnail information for introducing picture is equipped in the embedded system.
4. the picture resource packet generation method according to claim 1 applied in instrument desk embedded system, feature It is that the step d is further included:
In transfer process, correct prompting is provided, and carry out automatic packaging after being wholly converted into work(;
When occurring the retrieval of certain image data in the process not then, miscue information is provided.
CN201711322035.7A 2017-12-13 2017-12-13 Applied to the picture resource packet generation method in instrument desk embedded system Pending CN108132978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711322035.7A CN108132978A (en) 2017-12-13 2017-12-13 Applied to the picture resource packet generation method in instrument desk embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711322035.7A CN108132978A (en) 2017-12-13 2017-12-13 Applied to the picture resource packet generation method in instrument desk embedded system

Publications (1)

Publication Number Publication Date
CN108132978A true CN108132978A (en) 2018-06-08

Family

ID=62390192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711322035.7A Pending CN108132978A (en) 2017-12-13 2017-12-13 Applied to the picture resource packet generation method in instrument desk embedded system

Country Status (1)

Country Link
CN (1) CN108132978A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226470A (en) * 2007-01-18 2008-07-23 环达电脑(上海)有限公司 Picture resource management method for embedded system interface
CN103136293A (en) * 2011-12-02 2013-06-05 福建星网视易信息系统有限公司 Form design and read method of picture resource bundles
CN104699714A (en) * 2013-12-09 2015-06-10 北大方正集团有限公司 Method and device for transferring files of book edition format into files of EPUB format
US20160353130A1 (en) * 2014-02-21 2016-12-01 Lg Electronics Inc. Broadcast signal transmitting device and broadcast signal receiving device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226470A (en) * 2007-01-18 2008-07-23 环达电脑(上海)有限公司 Picture resource management method for embedded system interface
CN103136293A (en) * 2011-12-02 2013-06-05 福建星网视易信息系统有限公司 Form design and read method of picture resource bundles
CN104699714A (en) * 2013-12-09 2015-06-10 北大方正集团有限公司 Method and device for transferring files of book edition format into files of EPUB format
US20160353130A1 (en) * 2014-02-21 2016-12-01 Lg Electronics Inc. Broadcast signal transmitting device and broadcast signal receiving device

Similar Documents

Publication Publication Date Title
CN103186510B (en) A kind of method and apparatus of convert documents form
CN101719335B (en) Grid picture electronic map for geographic information system
CN101261740B (en) Processing method of an image storage
US20160323436A1 (en) Method and apparatus for generating and playing animated message
CN101340550A (en) Method and apparatus for multiple image display control
CN105469434B (en) A method of browsing large-scale remote sensing image in android system
CN109408897B (en) PDMS-to-AutoCAD drawing size labeling identification-based conversion method and system
CN106534722B (en) Video flowing character adding processing system and processing method based on FPGA
CN103164443A (en) Method and device of picture merging
CN103391435A (en) Coding method for high dynamic range (HDR) image compatible with low dynamic range (LDR) and decoding method thereof
CN112291223B (en) Solution for mobile phone terminal not supporting 5G message
CN106445900A (en) Table style processing method and device
CN108132978A (en) Applied to the picture resource packet generation method in instrument desk embedded system
CN111190519A (en) File and control processing method, device, equipment and storage medium thereof
CN110069247A (en) A kind of development approach and device, application method and device of application program
CN109448077A (en) A kind of method, apparatus, equipment and storage medium that multi-layer image merges
TW201123886A (en) Look up table update method.
CN100492373C (en) Device and method for producing emulation model of image sensor action
CN103455297B (en) Editor and display methods of the dynamic synchronization character information bar code in television system
CN103377234A (en) Method and system for adding watermark into multimedia data
CN110113590A (en) A kind of conversion method and device of image color space
CN103324740B (en) A kind of image display method, device and set top box
CN105630750A (en) Business card picture processing method and apparatus
CN104680159A (en) Note prompting system and method for intelligent glasses
CN109918633A (en) A kind of quick filling method of information and terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180608