CN109857821A - A kind of recording method of motion profile, terminal and computer readable storage medium - Google Patents

A kind of recording method of motion profile, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109857821A
CN109857821A CN201811627630.6A CN201811627630A CN109857821A CN 109857821 A CN109857821 A CN 109857821A CN 201811627630 A CN201811627630 A CN 201811627630A CN 109857821 A CN109857821 A CN 109857821A
Authority
CN
China
Prior art keywords
matrix
map
picture
motion profile
coordinate
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
CN201811627630.6A
Other languages
Chinese (zh)
Other versions
CN109857821B (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.)
Zhejiang Haihuan Information Technology Co ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811627630.6A priority Critical patent/CN109857821B/en
Publication of CN109857821A publication Critical patent/CN109857821A/en
Application granted granted Critical
Publication of CN109857821B publication Critical patent/CN109857821B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention discloses a kind of recording method of motion profile, terminal and computer readable storage mediums, this method is by obtaining the current all matrix-blocks for loading map, and each matrix-block is stored according to exclusive path, matrix-block includes matrix picture and matrix coordinate, and matrix picture is to be split to obtain to load map according to preset rules;The tracing point generated in record motion process, and tracing point is stored in buffer queue;When meeting preset condition, the tracing point stored in buffer queue is plotted in corresponding matrix picture, and tracing point is in turn connected to form motion profile;The matrix picture completed is updated under corresponding store path.By way of being changed to the tracing point of dynamically load in map and motion profile by load static map, solve the problems, such as the Caton and memory spilling that existing map is easy to cause when recording a large amount of motion profile point and motion profile.

Description

A kind of recording method of motion profile, terminal and computer readable storage medium
Technical field
The present invention relates to Orientation on map fields, more specifically to a kind of recording method of motion profile, terminal and meter Calculation machine readable storage medium storing program for executing.
Background technique
The recording method that existing map carries out motion profile is: interval (such as 1 second) is remembered at regular intervals when movement Customer position information is recorded, a series of GPS points will be obtained with user movement, by the way that these points are sequentially connected on map, shape At user movement track.
The problem of prior art causes includes: that map redraws and can repaint again all tracing points whole removings, works as fortune It is dynamic to do prolonged exercise, when tracing point is very more, if to map the operations triggering such as is pulled, scaled and redraws, redraw Time can increasingly be grown, and Caton is caused.And the above version of google map v2, the mainstreams map such as Gao De, Baidu all use Marker object stores map covering, and when tracing point is more and more, Marker object is also more and more, in fact it could happen that memory It overflows.
In view of the above-mentioned problems, mainstream map is each provided with TileProvider interface at present, for drawing static map figure Layer, core concept are to divide map by the rectangle of particular size, and the figure layer being covered on map is stored with picture, often A rectangle is known as a Tile, and storage entity is the binary array of bitmap conversion, and each Tile can be by zoom, and x, y are only One determines.TileProvider can call getTile method automatically, generate the Tile in screen area, and discharge shifting Tile outside screen out.If the size of Tile is 512*512, for the screen of 1920*1080, most 15 Tile can cover Lid is complete.It not will cause Caton using Tile mode, but Tile can only handle static track.Therefore, it is also desirable to the above problem It improves to propose technical solution of the present invention.
Summary of the invention
The technical problem to be solved in the present invention is that current map needs to redraw a large amount of tracing point when refreshing, this is led Cause occurs the problem of Caton and memory spilling in the case where tracing point is more, for the technical problem, provides a kind of movement rail Recording method, terminal and the computer readable storage medium of mark.
In order to solve the above technical problems, the present invention provides a kind of recording method of motion profile, the note of the motion profile Recording method includes:
All matrix-blocks of current load map are obtained, and each matrix-block are stored according to exclusive path, institute Stating matrix-block includes matrix picture and matrix coordinate, and the matrix picture is to divide according to preset rules the load map It cuts to obtain;
The tracing point generated in record motion process, and the tracing point is stored in buffer queue;
When meeting preset condition, the tracing point stored in buffer queue is plotted in corresponding matrix picture, and will Tracing point is in turn connected to form motion profile;
The matrix picture completed is updated under corresponding store path.
Optionally, the matrix-block, which store according to exclusive path, includes:
The matrix coordinate of the matrix-block in current load map is obtained, and is that the matrix-block is built using the matrix coordinate Found unique store path;
It will be under the corresponding store path of matrix-block deposit matrix coordinate;
Matrix storage catalogue is established according to the matrix coordinate and corresponding store path.
Optionally, before the tracing point generated in the record motion process, further includes:
According to the size of screen display content, the matrix coordinate for currently needing matrix-block to be loaded is determined;
Corresponding store path is found from the matrix storage catalogue according to matrix coordinate, and from corresponding store path It is lower to read out matrix picture;
The matrix picture read out is shown and constitutes map on corresponding matrix coordinate.
Optionally, it when the map currently shown being zoomed in and out or moved, reacquires and constitutes the matrix that map is included Picture;
When according to matrix coordinate corresponding store path can not be found from matrix storage catalogue, sat according to the matrix Mark inquires corresponding matrix picture from database, and according to the specification of other same sizes of matrix picture by the matrix picture It reads out, constitutes map together with other matrix pictures;
The matrix picture read out from database is stored in the buffer with corresponding matrix coordinate simultaneously.
Optionally, when buffer queue is filled with, do not meet preset condition also, then the tracing point stored in queue is stored in number According in library, and the queue that empties the cache;
When meeting preset condition, the tracing point stored in the database and buffer queue is plotted to corresponding square In system of battle formations piece, and tracing point is in turn connected to form motion profile;
The matrix picture completed is updated under corresponding store path, while the queue that empties the cache.
Optionally, the preset condition is map refreshing;It includes the mobile scaling with map of map that the map, which refreshes,.
Optionally, it when map refreshes, reacquires and does not include in the matrix picture that composition map is included from database In read out the matrix picture when, the tracing point stored in buffer queue is plotted in corresponding matrix picture, and Tracing point is in turn connected to form motion profile;
The matrix picture completed is updated under corresponding store path, while the queue that empties the cache.
Optionally, it when map refreshes, reacquires and constitutes in the matrix picture that map is included comprising from database When the matrix picture read out, the tracing point stored in buffer queue is plotted to the matrix diagram stored in caching In piece, and tracing point is in turn connected to form motion profile;
New store path is established by corresponding matrix coordinate, the matrix picture storage after completing is established to new Store path under, while empty the cache queue and matrix image cache;
Matrix storage catalogue is updated according to corresponding coordinate points and corresponding store path.
Further, the present invention also provides a kind of terminal, the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize above-mentioned motion profile Recording method the step of.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums It is stored with one or more program, one or more of programs can be executed by one or more processor, to realize The step of recording method of above-mentioned motion profile.
Beneficial effect
The present invention provides recording method, terminal and the computer readable storage medium of a kind of motion profile, for existing Map is when refreshing is redrawn, due to the defect that the tracing point redrawn excessively causes Caton and memory to be overflowed, by obtaining current add All matrix-blocks for carrying map, and each matrix-block are stored according to exclusive path, matrix-block include matrix picture and Matrix coordinate, matrix picture are to be split to obtain to load map according to preset rules;The rail generated in record motion process Mark point, and tracing point is stored in buffer queue;When meeting preset condition, the tracing point stored in buffer queue is plotted to In corresponding matrix picture, and tracing point is in turn connected to form motion profile;The matrix picture completed is updated to right Under the store path answered.By the way that dynamic tracing point redrawing process to be converted to the loading procedure of static images, solve at present Map redraw the problem of Caton caused by tracing point and memory overflow when refreshing.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention.
Fig. 2 is a kind of basic flow chart of the recording method for motion profile that first embodiment of the invention provides;
Fig. 3 is a kind of refined flow chart of the recording method for motion profile that second embodiment of the invention provides;
Fig. 4 is the structural schematic diagram for the terminal that third embodiment of the invention provides.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Based on above-mentioned mobile terminal hardware configuration, each embodiment of the method for the present invention is proposed.
First embodiment
Fig. 2 is the recording method basic flow chart of motion profile provided in this embodiment, the recording method of the motion profile Include:
S201, the matrix-block for obtaining current load map, and stored according to exclusive path.
In this step, all matrix-blocks of current load map can be obtained, and by each matrix-block according to unique road Diameter is stored, and matrix-block includes matrix picture and matrix coordinate, and matrix picture is to carry out according to preset rules to load map Segmentation obtains.
S202, record motion profile point, and be stored in buffer queue.
In this step, the tracing point generated in motion process is recorded, and tracing point is stored in buffer queue, moves rail Mark point is the anchor point for recording primary user at regular intervals during the motion.
S203, meet preset condition, the tracing point in buffer queue is plotted in corresponding matrix picture, and is successively connected Connect tracing point.
In this step, when meeting preset condition, the tracing point stored in buffer queue is plotted to corresponding matrix On picture;Preset condition is a trigger condition, when meeting preset condition, is just plotted to the tracing point stored in buffer queue In corresponding matrix picture, and tracing point is in turn connected to form motion profile, finally in the form of picture to motion profile into Row storage.
S204, the matrix picture completed is updated under corresponding store path.
In the present embodiment, the matrix-block of current load map step S201, is obtained, and is deposited according to exclusive path Storage;In this step, all matrix-blocks of current load map are obtained, and each matrix-block is deposited according to exclusive path Storage;In current terminal, when opening map and loading map, in order to enhance user experience, the map of actual loaded can be than working as The body of a map or chart of preceding display is big, and after having loaded current map, the map currently loaded is split according to preset rules, One complete map is divided into matrix picture one by one, is often exactly by matrix diagram one by one when showing map Piece, which is pieced together, to be shown, the partitioning scheme of matrix picture is usually coordinate to be according to the map split, and is convenient in this way Matrix picture and corresponding coordinate are mapped, in embodiments of the present invention, matrix picture and matrix coordinate connection will be existed It is to store matrix-block in storage together as a matrix-block, is stored in storage according to exclusive path There are multiple matrix pictures also for avoiding the occurrence of under the same store path, leads to the problem of map denotation mistake.
In the present embodiment, step S201 is needed to matrix-block when by picture segmentation at matrix-block according to exclusive path It is stored, the process of storage includes: the matrix coordinate for obtaining the matrix-block in current load map, and is using matrix coordinate Matrix-block establishes unique store path;It will be under the corresponding store path of matrix-block deposit matrix coordinate;According to matrix coordinate and right The store path answered establishes matrix storage catalogue.It when to map is split, is split in a manner of matrix-block, one The matrix coordinate and matrix picture of the matrix-block are contained in matrix-block, the coordinate of matrix only exists one in same map A, corresponding matrix picture also only has one under the matrix coordinate, therefore, in the unique store path for determining matrix-block It can be carried out according to matrix coordinate to establish store path;It establishes the corresponding matrix diagram of matrix-block after unique store path Piece and matrix coordinate are stored under the path, and matrix coordinate and corresponding matrix picture are collectively stored under the same path Benefit is can be proofreaded when needing to show the matrix picture with the coordinate of picture, changing coordinates needs when judging whether Matrix picture;After having established unique store path of matrix-block according to matrix coordinate, according to the coordinate of matrix and corresponding deposit The catalogue of matrix storage is established in storage path, is established matrix storage catalogue and is convenient for quickly finding needs by matrix coordinate The store path of matrix-block.
In the present embodiment, after being divided into matrix-block to store in the map currently loaded, the matrix root tuber to storage is needed According to being shown.Therefore, in step S202, record motion profile point, and before being stored in buffer queue, further includes: According to the size of screen display content, the matrix coordinate for currently needing matrix picture to be shown is determined;According to matrix coordinate from square Corresponding store path is found in battle array storage catalogue, and reads out matrix picture under corresponding store path;By what is read out Matrix picture is shown on corresponding matrix coordinate and constitutes map.
When the map currently shown is zoomed in and out or moved, reacquires and constitute the matrix picture that map is included;When When can not find corresponding store path from matrix storage catalogue according to matrix coordinate, looked into from database according to matrix coordinate Corresponding matrix picture is ask, and takes out matrix picture according to the specification of other same sizes of matrix picture, with other matrix diagram Piece constitutes map together;The matrix picture taken out from database is stored in the buffer with corresponding matrix coordinate simultaneously.
In the present embodiment, when map is mobile or map scales, due to needing to show new map content, it is therefore desirable to Reacquire the coordinate information on map, this cartographic information into being exactly matrix coordinate, according to the matrix coordinate of reacquisition from The store path that corresponding matrix picture is inquired in matrix catalogue goes to read the matrix under corresponding store path according to store path The matrix coordinate stored under picture, the matrix coordinate that can first will acquire when reading matrix picture and storage road is compared secondary It is confirmed whether to be needed matrix picture, the matrix picture that will be stored under the path after confirmation is errorless is read out, by the matrix Picture is shown on corresponding matrix coordinate, constitutes map together with other matrix pictures.
In other embodiments, when according to the matrix coordinate that gets matrix deposit can not be found in catalogue it is corresponding Store path, that is, when the corresponding matrix picture of the matrix coordinate is not stored at local, sat according to the matrix got Mark inquires corresponding matrix picture from database, and according to the specification of the same size of other matrix pictures of storage from number Corresponding matrix picture is read out according in library, and the matrix picture is shown on corresponding matrix coordinate, with other squares System of battle formations piece constitutes map together, while the matrix picture read out from database and corresponding matrix coordinate being stored in slow It is temporarily stored in depositing.
In the present embodiment, when buffer queue is filled with, do not meet preset condition also, then the tracing point that will be stored in queue It is stored in database, and the queue that empties the cache;When meeting preset condition, the track that will be stored in database and buffer queue Tracing point is in turn connected to form motion profile into corresponding matrix picture by point-rendering;The matrix picture that will be completed It updates under corresponding store path, while the queue that empties the cache.Motion profile is initially recorded on slow in the embodiment of the present invention In the queue deposited, only just the tracing point stored in buffer queue can be plotted to corresponding matrix diagram when meeting preset condition In piece, therefore, in some cases, when buffer queue is filled with, do not meet preset condition also, in order to avoid memory spilling causes The tracing point stored in buffer queue is transferred to number when buffering queue is full by the problem that queue empties or tracing point is mobile It is stored in.
In the present embodiment, step S203, meet preset condition, the tracing point in buffer queue is plotted to corresponding square System of battle formations on piece.It in embodiments of the present invention, to preset condition and without limitation, in actual application can be according to practical feelings Condition rationally changes, for example, can be set, when the time reach, preset time is preset condition, the movement of map can be set is default Being scaled preset condition, can also being arranged when buffer queue Man Shiwei preset condition etc. for map can be set in condition.
For the ease of the explanation of the present embodiment, present embodiment assumes that preset condition is map refreshing, map, which refreshes, includes ground The mobile preset condition that is scaled with map of figure is illustrated.Under the preset condition, executes step S203, meets default item Tracing point in buffer queue is plotted in corresponding matrix picture, and tracing point is in turn connected to form motion profile by part; Also include simultaneously several different situations, is illustrated below for some common situations.
The first situation: it when map refreshes, reacquires and does not include in the matrix picture that composition map is included from number When according to the matrix picture taken out in library, the tracing point stored in buffer queue is plotted in corresponding matrix picture, and by rail Mark point is in turn connected to form motion profile;And the matrix picture completed is updated under corresponding store path, while clear Empty buffer queue.
Second situation: when map refreshes, reacquiring in the matrix picture that composition map is included includes from data When the matrix picture taken out in library, the tracing point stored in buffer queue is plotted in the slave database stored in caching and is taken out Matrix picture in, and tracing point is in turn connected to form motion profile;New storage road is established by corresponding matrix coordinate Matrix picture after track drafting point is stored under newly-established store path by diameter, while empty the cache queue and matrix picture Caching;Matrix storage catalogue is updated according to corresponding coordinate points and corresponding store path.In this case, due to from The matrix picture read in database does not establish store path directly, but is temporarily stored in caching, only in determination When tracing point has been plotted in the picture of the matrix, just corresponding store path can be established to the picture of the matrix, in this way may be used To reduce the problem of speed as caused by storage matrix reduces and occupies excessive memory.
The present embodiment the utility model has the advantages that
A kind of recording method of motion profile is present embodiments provided, the recording method of the motion profile includes: that acquisition is worked as All matrix-blocks of preceding load map, and each matrix-block is stored according to exclusive path, matrix-block includes matrix diagram Piece and matrix coordinate, matrix picture are to be split to obtain to load map according to preset rules;It is generated in record motion process Tracing point, and will tracing point be stored in buffer queue in;When meeting preset condition, the tracing point stored in buffer queue is drawn Make corresponding matrix diagram on piece;The matrix picture completed is updated under corresponding store path.By the way that rail will be moved Mark is plotted in the mode on map, avoid motion profile it is excessive when, need to reload card caused by a large amount of motion profile The problem of pausing with memory spilling.
Second embodiment
Fig. 3 is a kind of recording method refined flow chart for motion profile that second embodiment of the invention provides, a kind of fortune The recording method of dynamic rail mark includes:
S301, the matrix-block for obtaining current load map, and stored according to exclusive path.
Concrete mode can be, and each coordinate obtained on current load map is right as matrix coordinate and coordinate institute The matrix picture answered establishes store path according to square coordinate, since coordinate is unique, so store path is also unique, foundation The picture storage of the corresponding matrix of matrix coordinate is arrived under the path after good store path, according to matrix coordinate and corresponding storage The storage catalogue of a matrix is established in path, is quickly inquired according to matrix coordinate from matrix storage catalogue when convenient for reading again To the store path of corresponding matrix picture.
It can use the TileProvider interface renderings static map figure layer in map, each figure in practical applications Layer is exactly a Tile picture, each Tile picture corresponds to the coordinate (zoom, X, Y) of a Tile, getting one When coordinate (zoom, X, the Y) of Tile picture and its corresponding Tile, a store path is just established, is finally being locally created one A Tile picture storage catalogue, so that unique paths can be found by Tile coordinate (zoom, X, Y).
S302, according to the size of display picture, determining needs map to be shown.
According to display picture size, the size of picture includes the size of scaling and display window, determines picture size just It can determine the coordinate points for showing that map needs on the map that shows in the ban, be inquired according to coordinate points from matrix storage catalogue Store path, removes the Tile picture stored under the path according to the store path found, and according to the coordinate of Tile (zoom, X, Y) Tile picture is shown to map shown on composition screen on corresponding position.
S303, record motion profile point, and be stored in buffer queue.
After map denotation is complete, when needing to record motion profile, start recording motion profile point, motion profile point is usually Each preset time just will record the current positioning coordinate of a user, each positioning coordinate is exactly a track Point, one tracing point of every record are just sequentially stored into buffer queue in sequence.
S304, map refresh, the tracing point in buffer queue is plotted in corresponding matrix picture, and by tracing point according to Secondary connection forms motion profile.
The condition refreshed in the present embodiment using map movement or map scaling as triggering map, while map refreshes It is also one of preset condition, when map is mobile or scaling, meets preset condition, the tracing point one that will be saved in buffer queue It is secondary to be plotted in corresponding matrix picture, and tracing point is in turn connected to form motion profile.Estimation point is being plotted to correspondence Matrix diagram on piece when, be divided into two kinds of situations, one is the matrix picture of drafting locally had corresponding store path, then Enter step S306;Another is that the matrix picture drawn is read from database, does not have corresponding store path local, Then enter step S307.
No when S305, judgment matrix picture is from local reading, if so, going to step S306;If it is not, then going to step S307。
S306, when the picture completed locally have corresponding store path when, more by the matrix picture completed It newly arrives under corresponding store path.
S307, when the picture completed is when locally without corresponding store path, establish store path, and update square Battle array storage catalogue.
In the present embodiment, matrix dot is plotted in the picture of matrix, and tracing point is in turn connected to form movement rail Mark updates the matrix picture completed under corresponding store path, when map refreshing next time needs to reload ground It when figure, does not need to record tracing point again while loading map, but is directly loaded into the matrix picture of storage current Display interface realizes the purpose that map and corresponding motion profile are loaded in the form of static images.
3rd embodiment
The present embodiment additionally provides a kind of terminal, shown in Figure 4 comprising processor 41, memory 42 and communication are total Line 43, in which:
Communication bus 43 is for realizing the connection communication between processor 41 and memory 42;
Processor 41 is for executing the one or more programs stored in memory 42, to realize following steps:
In the present embodiment, processor 41 is also used to execute the one or more programs stored in memory 42 and executes the present invention In embodiment first embodiment to one of second embodiment motion profile recording method the step of.
The embodiment of the invention also provides a kind of computer readable storage mediums, in the computer-readable recording medium storage There is one or more program, which can be executed by one or more processor, to execute the present invention In embodiment first embodiment to one of second embodiment motion profile recording method the step of.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of recording method of motion profile, which is characterized in that the recording method of the motion profile includes:
All matrix-blocks of current load map are obtained, and each matrix-block are stored according to exclusive path, the square Battle array block includes matrix picture and matrix coordinate, and the matrix picture is to be split according to preset rules to the load map It arrives;
The tracing point generated in record motion process, and the tracing point is stored in buffer queue;
When meeting preset condition, the tracing point stored in buffer queue is plotted in corresponding matrix picture, and by track Point is in turn connected to form motion profile;
The matrix picture completed is updated under corresponding store path.
2. the recording method of motion profile as described in claim 1, which is characterized in that the matrix-block according to exclusive path into Row stores
The matrix coordinate of the matrix-block in current load map is obtained, and is that the matrix-block is established only using the matrix coordinate One store path;
It will be under the corresponding store path of matrix-block deposit matrix coordinate;
Matrix storage catalogue is established according to the matrix coordinate and corresponding store path.
3. the recording method of motion profile as claimed in claim 2, which is characterized in that generated in the record motion process Tracing point before, further includes:
According to the size of screen display content, the matrix coordinate for currently needing matrix-block to be loaded is determined;
Corresponding store path is found from the matrix storage catalogue according to matrix coordinate, and is read under corresponding store path Read out matrix picture;
The matrix picture read out is shown and constitutes map on corresponding matrix coordinate.
4. the recording method of motion profile as claimed in claim 3, which is characterized in that zoomed in and out to the map currently shown Or when mobile, reacquire and constitute the matrix picture that map is included;
When according to matrix coordinate corresponding store path can not be found from matrix storage catalogue, according to the matrix coordinate from Corresponding matrix picture is inquired in database, and reads the matrix picture according to the specification of other same sizes of matrix picture Out, map is constituted together with other matrix pictures;
The matrix picture read out from database is stored in the buffer with corresponding matrix coordinate simultaneously.
5. the recording method of motion profile as described in claim 1, which is characterized in that also less than when buffer queue is filled with The tracing point stored in queue is then stored in database by sufficient preset condition, and the queue that empties the cache;
When meeting preset condition, the tracing point stored in the database and buffer queue is plotted to corresponding matrix diagram In piece, and tracing point is in turn connected to form motion profile;
The matrix picture completed is updated under corresponding store path, while the queue that empties the cache.
6. the recording method of motion profile as described in any one in claim 1-5, which is characterized in that the preset condition is ground Figure refreshes;The map refreshes the scaling including map movement and/or map.
7. the recording method of motion profile as claimed in claim 6, which is characterized in that when map refreshes, reacquire structure It, will be in buffer queue when not including the matrix picture read out from database in the matrix picture for being included at map The tracing point of storage is plotted in corresponding matrix picture, and tracing point is in turn connected to form motion profile;
The matrix picture completed is updated under corresponding store path, while the queue that empties the cache.
8. the recording method of motion profile as claimed in claim 6, which is characterized in that when map refreshes, reacquire structure When in the matrix picture for being included at map including the matrix picture read out from database, by buffer queue memory The tracing point of storage is plotted in the matrix picture stored in caching, and tracing point is in turn connected to form motion profile;
New store path is established by corresponding matrix coordinate, the matrix picture storage after completing is deposited to newly-established It stores up under path, while empty the cache queue and matrix image cache;
Matrix storage catalogue is updated according to corresponding coordinate points and corresponding store path.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize as appointed in claim 1 to 8 The step of recording method of motion profile described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 8 Any one of described in motion profile recording method the step of.
CN201811627630.6A 2018-12-28 2018-12-28 Method for recording motion trail, terminal and computer readable storage medium Active CN109857821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811627630.6A CN109857821B (en) 2018-12-28 2018-12-28 Method for recording motion trail, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811627630.6A CN109857821B (en) 2018-12-28 2018-12-28 Method for recording motion trail, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109857821A true CN109857821A (en) 2019-06-07
CN109857821B CN109857821B (en) 2023-10-20

Family

ID=66893147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811627630.6A Active CN109857821B (en) 2018-12-28 2018-12-28 Method for recording motion trail, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109857821B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114994673A (en) * 2022-08-04 2022-09-02 南京隼眼电子科技有限公司 Road map generation method and device for radar and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180181633A1 (en) * 2016-12-28 2018-06-28 Casio Computer Co., Ltd. Map recording device, computer readable storage medium, and map recording method
CN108711355A (en) * 2018-03-30 2018-10-26 努比亚技术有限公司 A kind of track map strategy makes and application method, device and readable storage medium storing program for executing
CN108920606A (en) * 2018-06-28 2018-11-30 腾讯大地通途(北京)科技有限公司 map data processing method, device, terminal device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180181633A1 (en) * 2016-12-28 2018-06-28 Casio Computer Co., Ltd. Map recording device, computer readable storage medium, and map recording method
CN108711355A (en) * 2018-03-30 2018-10-26 努比亚技术有限公司 A kind of track map strategy makes and application method, device and readable storage medium storing program for executing
CN108920606A (en) * 2018-06-28 2018-11-30 腾讯大地通途(北京)科技有限公司 map data processing method, device, terminal device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114994673A (en) * 2022-08-04 2022-09-02 南京隼眼电子科技有限公司 Road map generation method and device for radar and storage medium
CN114994673B (en) * 2022-08-04 2022-10-21 南京隼眼电子科技有限公司 Road map generation method and device for radar and storage medium

Also Published As

Publication number Publication date
CN109857821B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN107580143B (en) A kind of display methods and mobile terminal
CN109270986A (en) Flexible screen terminal and its display methods and computer readable storage medium
CN109614176A (en) A kind of application interface layout method, terminal and computer readable storage medium
CN109213401A (en) Double-sided screen application icon method for sorting, mobile terminal and readable storage medium storing program for executing
CN107436801A (en) I/O resource regulating methods, terminal and computer-readable recording medium
CN107707953A (en) A kind of resource data methods of exhibiting and mobile terminal
CN109471571A (en) Display methods, mobile terminal and the computer readable storage medium of suspension control
CN107783719A (en) One kind applies recommendation method, mobile terminal and computer-readable recording medium
CN107748640A (en) One kind puts out screen display methods and mobile terminal
CN107797871A (en) EMS memory occupation method for releasing resource, mobile terminal and computer-readable recording medium
CN107463324A (en) A kind of image display method, mobile terminal and computer-readable recording medium
CN109462700A (en) A kind of call method, mobile terminal and computer readable storage medium
CN108536349A (en) A kind of icon management method and mobile terminal
CN110347244A (en) A kind of terminal and its interaction control method, computer readable storage medium
CN110347306A (en) A kind of multi-screen display method, terminal and computer readable storage medium
CN110290269A (en) Display control method, mobile terminal and computer readable storage medium
CN110096213A (en) Terminal operation method, mobile terminal and readable storage medium storing program for executing based on gesture
CN108195394A (en) Air navigation aid, mobile terminal and the computer readable storage medium of flexible screen
CN108710501A (en) A kind of method and terminal of update application
CN107864378A (en) A kind of frame rate detection method, device, mobile terminal and server
CN107741813A (en) The operating method and mobile terminal of a kind of application program
CN109857821A (en) A kind of recording method of motion profile, terminal and computer readable storage medium
CN107908326B (en) A kind of methods of exhibiting and device of application icon
CN109521916A (en) A kind of document handling method based on flexible screen, mobile terminal and storage medium
CN108804223A (en) Memory Optimize Method, mobile terminal and computer readable storage medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230919

Address after: Room 210-116, 2nd Floor, Building 003, No. 750 Chuangyuan Road, High tech Zone, Ningbo City, Zhejiang Province, 315000

Applicant after: Zhejiang Haihuan Information Technology Co.,Ltd.

Address before: 10 / F, block a, Han's innovation building, 9018 Beihuan Avenue, gaoxinyuan, Nanshan District, Shenzhen, Guangdong Province

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant