CN105321192A - Drawing method of variable length and width background of vehicle-mounted entertainment system - Google Patents

Drawing method of variable length and width background of vehicle-mounted entertainment system Download PDF

Info

Publication number
CN105321192A
CN105321192A CN201410371750.XA CN201410371750A CN105321192A CN 105321192 A CN105321192 A CN 105321192A CN 201410371750 A CN201410371750 A CN 201410371750A CN 105321192 A CN105321192 A CN 105321192A
Authority
CN
China
Prior art keywords
background
background picture
picture
width
overall
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.)
Granted
Application number
CN201410371750.XA
Other languages
Chinese (zh)
Other versions
CN105321192B (en
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.)
Huizhou Desay SV Automotive Co Ltd
Original Assignee
Huizhou Desay SV Automotive 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 Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN201410371750.XA priority Critical patent/CN105321192B/en
Publication of CN105321192A publication Critical patent/CN105321192A/en
Application granted granted Critical
Publication of CN105321192B publication Critical patent/CN105321192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Traffic Control Systems (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a drawing method of a variable length and width background of a vehicle-mounted entertainment system. The vehicle-mounted entertainment system comprises a frame based on a QT drawn graph in Microsoft embedded operation system WinCE, a disk file system which is used for storing various display graph files, and a memory. The drawing method comprises the steps that a background drawing program of the vehicle-mounted entertainment system is started; the size of a large background graph is determined; nine graph resources needed by the background drawing program are loaded into the memory; whether the memory space of the background graph is successfully loaded is determined; and after successful loading, the corresponding background graph is drawn at a corresponding position on a large background graph according to the size of the large background graph. According to the invention, Flash space taken by a background graph resource is reduced; when the background is drawn, the graph loading speed is improved; the work efficiency is improved; time required by background graph drawing is reduced; the system efficiency is improved; and increased crash risk caused by failed memory application is avoided.

Description

The method for drafting of the background of a kind of vehicle entertainment system variable-length and width
Technical field
The invention belongs to vehicle entertainment system field, be specifically related to the method for drafting of the background of a kind of vehicle entertainment system variable-length and width.
Background technology
Along with the development fast of national economy, people's quality of life is constantly improved, impels people more to focus on quality of life and quality, and automobile is gone to work as people, gone on a journey, the essential vehicles of travelling, have also been obtained fast development, make the requirement of people to automobile higher.The fast development of automobile, promotes developing rapidly of Automobile Electronic Industry, makes in-vehicle multi-media system technology also wait until quick deduction, is also faced with new challenges simultaneously.
At present, the graphic plotting function of conventional vehicle mounted multimedia main frame is the embedded OS WinCE adopting Microsoft, but when using common pattern drawing method to draw multiple background, each background needs a background picture resource, and Flash space shared by one whole background picture resource is comparatively large, when rendering context, the speed that not only Loads Image is slow, and easily cause internal memory application failure, cause vehicle entertainment system to be collapsed.If vehicle entertainment system main frame operationally; need the background of drafting a lot; and during its background picture difference; although each background may normally be drawn; but it is longer that it draws the time; and the risk that system is collapsed because of internal memory application failure increases, the method now adopting the mode of individual overall background figure to carry out rendering context can not meet the needs of user.
Summary of the invention
In view of this, the method for drafting of the vehicle entertainment system variable-length that the technical problem to be solved in the present invention is a kind of adjustable length and width, rendering context picture time is short, memory consumption is few and the background of width.
In order to solve the problems of the technologies described above, the present invention adopts following scheme to realize: the method for drafting of the background of a kind of vehicle entertainment system variable-length and width, described vehicle entertainment system comprise based on the QT graphing in the embedded OS WinCE of Microsoft framework, for storing disk file system and the internal memory of various display graphic file used, comprise the steps:
Step S01, starts the background plotter program of vehicle entertainment system;
Step S02, determine the size dimension of overall background figure, nine pictures resources required for loading background plotter program are to internal memory, required nine background pictures drawn are divided into UL, ML, LL, UC, MC, LC, UR, MR, LR, UL is background picture corresponding to the upper left corner, LL is background picture corresponding to the lower left corner, UR is background picture corresponding to the upper right corner, LR is background picture corresponding to the lower right corner, ML is the background picture between UL and LL of left side, UC is the background picture between UL and UR of top, LC is the background picture between LL and LR of below, MR is the background picture between UR and LR, MC is the background picture being positioned at center,
Step S03, judges whether the memory headroom of UL background picture loads successfully, if so, draws UL background picture in the upper left corner of overall background figure, otherwise performs next step;
Step S04, judges whether the memory headroom of LL background picture loads successfully, if so, according to position and the height of overall background figure, calculates LL background picture position, and draws LL background picture in the lower left corner of overall background figure, otherwise perform next step;
Step S05, judge whether the memory headroom of ML background picture loads successfully, if, according to the position of overall background figure, highly, and the height of UL background picture and LL background picture, calculate the height that ML background picture position and needs are stretched, and draw ML background picture between UL background picture on the left of overall background figure and LL background picture, otherwise perform next step;
Step S06, judges whether the memory headroom of UR background picture loads successfully, if so, according to position and the width of overall background figure, calculates UR background picture position, and draws UR background picture in the upper right corner of overall background figure, otherwise performs next step;
Step S07, judge whether the memory headroom of UC background picture loads successfully, if, according to position, the width of overall background figure, and the width that the position of the width calculation UC background picture of the width of UL background picture and UR background picture and needs are stretched, and draw UC background picture between the UL background picture and UR background picture on the top of overall background figure, otherwise perform next step;
Step S08, judges whether the memory headroom of LR background picture loads successfully, if so, according to position and the height of overall background picture, calculate the position of LR background picture, and LR background picture is drawn in the lower right corner of overall background figure, otherwise performs next step;
Step S09, judge whether the memory headroom of MR background picture loads successfully, if, according to position, the width of overall background figure, and the height that the position of the high computational MR background picture of the height of UR background picture and LR background picture and needs are stretched, and draw MR background picture between the UR background picture and LR background picture on the right side of overall background figure, otherwise perform next step;
Step S10, judge whether the memory headroom of LC background picture loads successfully, if, according to position, the width of overall background figure, and the width that the position of LL background picture width and LR background picture width calculation LC background picture and needs are stretched, and draw LC background picture between the LL background picture and LR background picture of the bottom of overall background figure, otherwise perform next step;
Step S11, judge whether the memory headroom of MC background picture loads successfully, if, according to the position of overall background figure, width, highly, and UL background picture, UC background picture, UR background picture, LL background picture, LC background picture, the width gauge of LR background picture calculates the height that the position of the longitudinal direction of MC background picture and needs are stretched, according to UL background picture, UC background picture, UR background picture, LL background picture, LC background picture, the width that the lateral attitude of the width calculation MC background picture of LR background picture and needs are stretched, and draw MC background picture in the center of overall background figure, otherwise perform next step,
Step S12, terminates.
Wherein, the size of the position of the size of the background picture of described ML, UC, MC, LC, MR and height and UL, UR, LL, LR background picture, size, height and overall background figure is relevant with size.
Compared with prior art, the invention has the advantages that by arrange in systems in which simultaneously for rendering context nine background picture resources, for complete and manage background draw drawing program, use minimum memory consumption to complete the drafting of background; When vehicle entertainment system, to need to draw multiple color identical, during the background varied in size, first whole nine background pictures required for background are loaded, the regional location arranged in the compilation phase according to the first background and size, the position of nine Backgrounds and the size of required stretching when dynamic calculation first background is drawn, on nine Backgrounds loaded in use internal memory, complete the drafting of the first background; When drafting the second background, the regional location arranged in the compilation phase according to the second background and size, the position of nine Backgrounds and the size of required stretching when dynamic calculation second background is drawn, use loaded nine background pictures identical with the first background, complete the drafting of the second background.The method for drafting of the background of this vehicle entertainment system variable-length and width has logic manage level clearly, saves memory headroom and picture load time, and perfect can realize the seamless spliced of the background drafting of multiple different size.Meanwhile, Flash space shared by background picture resource can also be reduced, when rendering context, add the speed of Loading Image, increase work efficiency, decrease the time needed for rendering context picture, improve system effectiveness, avoid the risk of collapsing because of internal memory application failure and increase.
Accompanying drawing explanation
Fig. 1 is logic control flow process figure of the present invention.
Fig. 2 is the location diagram of nine background pictures of the present invention.
Embodiment
In order to allow those skilled in the art understand technical scheme of the present invention better, below in conjunction with accompanying drawing, the present invention is further elaborated.
As depicted in figs. 1 and 2, the method for drafting of the background of a kind of vehicle entertainment system variable-length and width, described vehicle entertainment system comprise based on the QT graphing in the embedded OS WinCE of Microsoft framework, for storing disk file system and the internal memory of various display graphic file used, comprise the steps:
Step S01, starts vehicle entertainment system, then starts the background plotter program of vehicle entertainment system;
Step S02, system determination overall background figure is long, the correlation parameter of wide and higher size, nine pictures resources required for loading background plotter program are to internal memory, wherein, required nine background pictures drawn are divided into UL, ML, LL, UC, MC, LC, UR, MR, LR, UL is background picture corresponding to the upper left corner, LL is background picture corresponding to the lower left corner, UR is background picture corresponding to the upper right corner, LR is background picture corresponding to the lower right corner, ML is the background picture between UL and LL of left side, UC is the background picture between UL and UR of top, LC is the background picture between LL and LR of below, MR is the background picture between UR and LR, MC is the background picture being positioned at center,
Step S03, judges whether the memory headroom of UL background picture loads successfully, if so, draws UL background picture in the upper left corner of overall background figure, carries out next step operation after completing, otherwise directly performs next step operation;
Step S04, judge whether the memory headroom of LL background picture loads successfully, if, according to position and the height of overall background figure, calculate LL background picture position, and draw LL background picture in the lower left corner of overall background figure, carry out next step operation after completing, otherwise directly perform next step operation;
Step S05, judge whether the memory headroom of ML background picture loads successfully, if, because the size of ML background picture can adjust, and the height of UL background picture and LL background picture is fixed, so according to the position of overall background figure, highly, and the height of UL background picture and LL background picture, the height that calculating ML background picture position and needs are stretched, and draw ML background picture between UL background picture on the left of overall background figure and LL background picture, carry out next step operation after completing, otherwise directly perform next step operation;
Step S06, judges whether the memory headroom of UR background picture loads successfully, if so, according to position and the width of overall background figure, calculates UR background picture position, and draws UR background picture in the upper right corner of overall background figure, otherwise performs next step;
Step S07, judge whether the memory headroom of UC background picture loads successfully, if, because the size of UC background picture can adjust, and the width of the width of UL background picture and UR background picture is fixed, so according to the position of overall background figure, width, and the width that the position of the width calculation UC background picture of the width of UL background picture and UR background picture and needs are stretched, and UC background picture is drawn between the UL background picture and UR background picture on the top of overall background figure, carry out next step operation after completing, otherwise directly perform next step operation;
Step S08, judges whether the memory headroom of LR background picture loads successfully, if so, according to position and the height of overall background picture, calculate the position of LR background picture, and LR background picture is drawn in the lower right corner of overall background figure, otherwise performs next step;
Step S09, judge whether the memory headroom of MR background picture loads successfully, if, because the size of MR background picture can adjust, and the height of the height of UR background picture and LR background picture is fixed, so according to the position of overall background figure, width, and the height that the position of the high computational MR background picture of the height of UR background picture and LR background picture and needs are stretched, and MR background picture is drawn between the UR background picture and LR background picture on the right side of overall background figure, carry out next step operation after completing, otherwise directly perform next step operation;
Step S10, judge whether the memory headroom of LC background picture loads successfully, if, because the size of LC background picture can adjust, and LL background picture width and LR background picture width are fixed, so according to the position of overall background figure, width, and the width that the position of LL background picture width and LR background picture width calculation LC background picture and needs are stretched, and LC background picture is drawn between the LL background picture and LR background picture of the bottom of overall background figure, carry out next step operation after completing, otherwise directly perform next step operation;
Step S11, judge whether the memory headroom of MC background picture loads successfully, if, because the size of MC background picture can adjust, and UL background picture, UC background picture, UR background picture, LL background picture, LC background picture, the width of LR background picture and highly also fixing, so according to the position of overall background figure, width, highly, and UL background picture, UC background picture, UR background picture, LL background picture, LC background picture, the width gauge of LR background picture calculates the height that the position of the longitudinal direction of MC background picture and needs are stretched, according to UL background picture, UC background picture, UR background picture, LL background picture, LC background picture, the width that the lateral attitude of the width calculation MC background picture of LR background picture and needs are stretched, and draw MC background picture in the center of overall background figure, next step operation is carried out after completing, otherwise directly perform next step operation,
Step S12, terminates this plotter program.
Above-described embodiment is only wherein specific implementation of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these apparent replacement forms all belong to protection scope of the present invention.

Claims (2)

1. the method for drafting of the background of a vehicle entertainment system variable-length and width, described vehicle entertainment system comprises based on the framework of the QT graphing in the embedded OS WinCE of Microsoft, for storing disk file system and the internal memory of various display graphic file used, it is characterized in that, comprise the steps:
Step S01, starts the background plotter program of vehicle entertainment system;
Step S02, determine the size dimension of overall background figure, nine pictures resources required for loading background plotter program are to internal memory, required nine background pictures drawn are divided into UL, ML, LL, UC, MC, LC, UR, MR, LR, UL is background picture corresponding to the upper left corner, LL is background picture corresponding to the lower left corner, UR is background picture corresponding to the upper right corner, LR is background picture corresponding to the lower right corner, ML is the background picture between UL and LL of left side, UC is the background picture between UL and UR of top, LC is the background picture between LL and LR of below, MR is the background picture between UR and LR, MC is the background picture being positioned at center,
Step S03, judges whether the memory headroom of UL background picture loads successfully, if so, draws UL background picture in the upper left corner of overall background figure, otherwise performs next step;
Step S04, judges whether the memory headroom of LL background picture loads successfully, if so, according to position and the height of overall background figure, calculates LL background picture position, and draws LL background picture in the lower left corner of overall background figure, otherwise perform next step;
Step S05, judge whether the memory headroom of ML background picture loads successfully, if, according to the position of overall background figure, highly, and the height of UL background picture and LL background picture, calculate the height that ML background picture position and needs are stretched, and draw ML background picture between UL background picture on the left of overall background figure and LL background picture, otherwise perform next step;
Step S06, judges whether the memory headroom of UR background picture loads successfully, if so, according to position and the width of overall background figure, calculates UR background picture position, and draws UR background picture in the upper right corner of overall background figure, otherwise performs next step;
Step S07, judge whether the memory headroom of UC background picture loads successfully, if, according to position, the width of overall background figure, and the width that the position of the width calculation UC background picture of the width of UL background picture and UR background picture and needs are stretched, and draw UC background picture between the UL background picture and UR background picture on the top of overall background figure, otherwise perform next step;
Step S08, judges whether the memory headroom of LR background picture loads successfully, if so, according to position and the height of overall background picture, calculate the position of LR background picture, and LR background picture is drawn in the lower right corner of overall background figure, otherwise performs next step;
Step S09, judge whether the memory headroom of MR background picture loads successfully, if, according to position, the width of overall background figure, and the height that the position of the high computational MR background picture of the height of UR background picture and LR background picture and needs are stretched, and draw MR background picture between the UR background picture and LR background picture on the right side of overall background figure, otherwise perform next step;
Step S10, judge whether the memory headroom of LC background picture loads successfully, if, according to position, the width of overall background figure, and the width that the position of LL background picture width and LR background picture width calculation LC background picture and needs are stretched, and draw LC background picture between the LL background picture and LR background picture of the bottom of overall background figure, otherwise perform next step;
Step S11, judge whether the memory headroom of MC background picture loads successfully, if, according to the position of overall background figure, width, highly, and UL background picture, UC background picture, UR background picture, LL background picture, LC background picture, the width gauge of LR background picture calculates the height that the position of the longitudinal direction of MC background picture and needs are stretched, according to UL background picture, UC background picture, UR background picture, LL background picture, LC background picture, the width that the lateral attitude of the width calculation MC background picture of LR background picture and needs are stretched, and draw MC background picture in the center of overall background figure, otherwise perform next step,
Step S12, terminates.
2. the method for drafting of the background of vehicle entertainment system variable-length according to claim 1 and width, it is characterized in that, the size of the position of the size of the background picture of described ML, UC, MC, LC, MR and height and UL, UR, LL, LR background picture, size, height and overall background figure is relevant with size.
CN201410371750.XA 2014-07-31 2014-07-31 A kind of method for drafting of vehicle entertainment system variable-length and the background of width Active CN105321192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410371750.XA CN105321192B (en) 2014-07-31 2014-07-31 A kind of method for drafting of vehicle entertainment system variable-length and the background of width

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410371750.XA CN105321192B (en) 2014-07-31 2014-07-31 A kind of method for drafting of vehicle entertainment system variable-length and the background of width

Publications (2)

Publication Number Publication Date
CN105321192A true CN105321192A (en) 2016-02-10
CN105321192B CN105321192B (en) 2018-07-06

Family

ID=55248506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410371750.XA Active CN105321192B (en) 2014-07-31 2014-07-31 A kind of method for drafting of vehicle entertainment system variable-length and the background of width

Country Status (1)

Country Link
CN (1) CN105321192B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547540A (en) * 2016-10-12 2017-03-29 惠州市德赛西威汽车电子股份有限公司 A kind of method for drafting of text button

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070035769A1 (en) * 2005-08-12 2007-02-15 Kabushiki Kaisha Toshiba Image forming apparatus
CN101013577A (en) * 2007-02-02 2007-08-08 清华大学 Method for improving precision of volume holographic correlator by image pretreatment
CN101059949A (en) * 2007-04-03 2007-10-24 广东威创日新电子有限公司 Mass image data compression, storage and display method
CN101426138A (en) * 2008-12-05 2009-05-06 硅谷数模半导体(北京)有限公司 LCD overdrive frame buffering data compression method and apparatus
CN103218174A (en) * 2013-03-29 2013-07-24 航天恒星科技有限公司 IO (Input Output) double-buffer interactive multicore processing method for remote sensing image
CN103297780A (en) * 2013-06-06 2013-09-11 上海高清数字科技产业有限公司 Method and system for improving decoding speed
CN103778631A (en) * 2014-01-16 2014-05-07 西安理工大学 Picture segmentation method based on JPEG document flow

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070035769A1 (en) * 2005-08-12 2007-02-15 Kabushiki Kaisha Toshiba Image forming apparatus
CN101013577A (en) * 2007-02-02 2007-08-08 清华大学 Method for improving precision of volume holographic correlator by image pretreatment
CN101059949A (en) * 2007-04-03 2007-10-24 广东威创日新电子有限公司 Mass image data compression, storage and display method
CN101426138A (en) * 2008-12-05 2009-05-06 硅谷数模半导体(北京)有限公司 LCD overdrive frame buffering data compression method and apparatus
CN103218174A (en) * 2013-03-29 2013-07-24 航天恒星科技有限公司 IO (Input Output) double-buffer interactive multicore processing method for remote sensing image
CN103297780A (en) * 2013-06-06 2013-09-11 上海高清数字科技产业有限公司 Method and system for improving decoding speed
CN103778631A (en) * 2014-01-16 2014-05-07 西安理工大学 Picture segmentation method based on JPEG document flow

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547540A (en) * 2016-10-12 2017-03-29 惠州市德赛西威汽车电子股份有限公司 A kind of method for drafting of text button

Also Published As

Publication number Publication date
CN105321192B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN102141406B (en) Method for depicting electronic navigation map and server
EP3140728B1 (en) Dynamic load balancing of hardware threads in clustered processor cores using shared hardware resources, and related circuits, methods, and computer-readable media
US10802680B2 (en) Pixel-aligned layout grids
CN102541538A (en) Picture displaying method and device based on mobile terminal
CN103092678A (en) Multi-increment virtual machine memory management system and method
US9235925B2 (en) Virtual surface rendering
US9286122B2 (en) Display techniques using virtual surface allocation
US9177533B2 (en) Virtual surface compaction
CN112703483A (en) Power-off and power-on method and device for vehicle-mounted system
CN105786424A (en) Method for solving rapid split screen display of single screen of embedded system
US10452530B2 (en) Information processing apparatus and information processing method
CN105321192A (en) Drawing method of variable length and width background of vehicle-mounted entertainment system
KR20170041816A (en) Moving data between caches in a heterogeneous processor system
CN104063837A (en) Image display processing method and system and mobile terminal
JP2011227305A (en) On-vehicle navigation system and control device
CN103631824A (en) Method and device for displaying webpage
CN112784188A (en) Page rendering method and device
JP5815456B2 (en) Drawing speed-up method and apparatus
JP5393813B2 (en) Memory management device and image processing device
JP5790571B2 (en) Information processing system
JP2019096097A (en) Server device, on-vehicle machine, and data communication method
CN207791520U (en) A kind of white body transfer device
CN113752561B (en) Method, device, computer equipment and storage medium for generating 3D printing file
CN105045569A (en) Method and device for controlling movement in scene
CN113711300A (en) Vehicle device and control method for vehicle device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant