CN105894440A - Image multilayer data processing method and device - Google Patents

Image multilayer data processing method and device Download PDF

Info

Publication number
CN105894440A
CN105894440A CN201610193144.2A CN201610193144A CN105894440A CN 105894440 A CN105894440 A CN 105894440A CN 201610193144 A CN201610193144 A CN 201610193144A CN 105894440 A CN105894440 A CN 105894440A
Authority
CN
China
Prior art keywords
unit
layer data
buffer unit
buffer
line number
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
CN201610193144.2A
Other languages
Chinese (zh)
Other versions
CN105894440B (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.)
Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip 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 Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201610193144.2A priority Critical patent/CN105894440B/en
Publication of CN105894440A publication Critical patent/CN105894440A/en
Application granted granted Critical
Publication of CN105894440B publication Critical patent/CN105894440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Image Input (AREA)

Abstract

The invention discloses an image multilayer data processing method and device. The image comprises multiple pieces of map layer data. The device comprises a data acquisition unit, a filling unit, buffer units, a priority scheduling unit, and a map layer superposing unit. The method adjusts the priority of a certain buffer unit only when a preset row of the buffer unit is filled with the map layer data so that the batch access can be carried out on the memory address of the same map layer data as much as possible when the map layer data is acquired. Therefore, consumption due to DDR reading different addresses is saved and the utilization rate of the DDR is increased. Further, the method, by dynamically adjusting the priority of each buffer unit, enables the map layer data to be quickly filled and parallel map layer data processing, thereby enhancing system performance and facilitating map layer superposition.

Description

A kind of image multi-layer data treating method and apparatus
Technical field
The present invention relates to image processing field, particularly relate to a kind of image multi-layer data treating method and apparatus.
Background technology
Piece image is formed by stacking by multiple figure layer data often, and system is processing these figure layer data Time, needing to obtain the initial data of these figure layers from DDR, then be overlapped synthesis, this relates to The carrying operation of substantial amounts of figure layer data.Generally, when carrying these figure layer data, it is a certain Individual passage starts the carrying operation of another passage again after having carried, meet data flowing water with this The requirement processed, owing to the formation of image needs All Layers to have data just stackable formation, this just leads Cause data-handling efficiency the lowest, it is impossible to meet the high performance requirement of system.In order to improve data efficiency, People also been proposed another group figure layer data method for carrying, it is simply that completes a figure layer in a passage During the carrying of data, switch to next passage and start the carrying of another figure layer data, carry with this The efficiency of high map overlay, but switch the reading data address of DDR continually, do not only result in DDR and utilize Rate is low, also considerably increases power consumption.
Summary of the invention
For this reason, it may be necessary to provide the technical scheme that a kind of image multi-layer data processes, in order to solve existing figure In picture multi-layer data processing procedure, the problems such as inefficiency, performance are low, DDR utilization rate is low, power consumption is big.
For achieving the above object, a kind of image multi-layer data processing means, described image are inventor provided Including multiple figure layer data, described device include data capture unit, fill unit, multiple buffer unit, Priority scheduling unit and map overlay unit;The corresponding buffer unit of each figure layer data, described caching Unit includes multirow buffer area;Described data capture unit with fill unit is connected, described filling unit and Buffer unit connects, and described map overlay unit is connected with buffer unit;
Described data capture unit is for obtaining multiple figure layer data of image;
Described filling unit is for filling the first figure layer data to the first buffer unit, and described first delays Memory cell is the buffer unit that the first figure layer data is corresponding;
Described priority adjustment unit is for the caching filled by the first figure layer data at the first buffer unit The line number in district reaches first when presetting line number, to adjust the priority of the first buffer unit;
Described filling unit, for after the priority of the first buffer unit is adjusted, starts the second figure layer Data are filled to the second buffer unit, and described second buffer unit is the caching that the second figure layer data is corresponding Unit;
Described priority adjustment unit is for the caching filled by the second figure layer data at the second buffer unit The line number in district reaches second when presetting line number, to adjust the priority of the second buffer unit, and start next Figure layer data is filled to buffer unit corresponding to next figure layer data;
Described map overlay unit is for being filled with the figure that this buffer unit is corresponding in all buffer units During layer data, stacking chart's layer data forms image.
Further, described device also includes FIFO memory element, described FIFO memory element and caching Unit connects, the corresponding FIFO memory element of each buffer unit, described FIFO memory element and figure layer Superpositing unit connects;Described FIFO memory element figure layer data in memory buffers unit;Described figure Layer superpositing unit figure layer data of storage in superposition all FIFO memory element forms image.
Further, described device also includes that converter unit, described converter unit are connected with buffer unit, Described converter unit is for carrying out conversion process to the figure layer data in buffer unit.
Further, described filling unit performs the buffer unit of padding is the caching that priority is the highest Unit, then " priority adjustment unit is for the buffer area filled by the first data at the first buffer unit Line number reach first when presetting line number, to adjust the priority of the first buffer unit " including: priority is adjusted The line number of the whole unit buffer area for having been filled by the first data at the first buffer unit reaches first and presets During line number, the priority of the first buffer unit is adjusted to minimum;" priority adjustment unit is for second The line number of buffer area that buffer unit has been filled by the first data reaches second when presetting line number, to adjust second The priority of buffer unit " including: priority adjustment unit is for being counted by first at the second buffer unit According to the line number of buffer area filled reach second preset line number time, the priority of the second buffer unit is adjusted For minimum.
Further, described device also includes that line number dispensing unit, described line number dispensing unit are used for configuring The default line number that each buffer unit is corresponding.
Inventor additionally provides a kind of image multi-layer data processing method, and image includes multiple figure layer data, Described method is applied to image multi-layer data processing means, and described device includes data capture unit, filling Unit, multiple buffer unit, priority scheduling unit and map overlay unit;Each figure layer data is corresponding One buffer unit, described buffer unit includes multirow buffer area;Described data capture unit and filling unit Connecting, described filling unit is connected with buffer unit, and described map overlay unit is connected with buffer unit; Described method includes:
Data capture unit obtains multiple figure layer data of image;
Filling unit the first figure layer data to be filled to the first buffer unit, described first buffer unit is The buffer unit that first figure layer data is corresponding;
The line number of the buffer area that priority adjustment unit has been filled by the first figure layer data at the first buffer unit Reach first when presetting line number, to adjust the priority of the first buffer unit;
Filling unit, after the priority of the first buffer unit is adjusted, starts to fill the second figure layer data To the second buffer unit, described second buffer unit is the buffer unit that the second figure layer data is corresponding;
The line number of the buffer area that priority adjustment unit has been filled by the second figure layer data at the second buffer unit Reach second when presetting line number, to adjust the priority of the second buffer unit, and start next figure layer data Fill to buffer unit corresponding to next figure layer data;
Map overlay unit is filled with the figure layer data that this buffer unit is corresponding in all buffer units Time, stacking chart's layer data forms image.
Further, described device also includes FIFO memory element, described FIFO memory element and caching Unit connects, the corresponding FIFO memory element of each buffer unit, described FIFO memory element and figure layer Superpositing unit connects;Described method also includes:
Figure layer data in FIFO memory element memory buffers unit;
In map overlay unit superposition all FIFO memory element, the figure layer data of storage forms image.
Further, described device also includes that converter unit, described converter unit are connected with buffer unit; Described method includes:
Converter unit carries out conversion process to the figure layer data in buffer unit.
Further, described filling unit performs the buffer unit of padding is the caching that priority is the highest Unit, " priority adjustment unit is at the first buffer unit delaying by the first data filling for the most described step Deposit the line number in district to reach first when presetting line number, to adjust the priority of the first buffer unit " including: preferential Level adjustment unit is reached first by the line number of the buffer area of the first data filling at the first buffer unit to be preset During line number, the priority of the first buffer unit is adjusted to minimum;" priority adjustment unit is at the second caching The line number of buffer area that unit has been filled by the first data reaches second when presetting line number, to adjust the second caching The priority of unit " including: priority adjustment unit has been filled by the first data at the second buffer unit The line number of buffer area reaches second when presetting line number, the priority of the second buffer unit to be adjusted to minimum.
Further, described device also includes that line number dispensing unit, described method include:
Line number dispensing unit configures the default line number that each buffer unit is corresponding.
It is different from prior art, the image multi-layer data treating method and apparatus described in technique scheme, Described image includes multiple figure layer data, and described method is applied to image multi-layer data processing means, described Device includes data capture unit, fills unit, multiple buffer unit, priority scheduling unit and figure layer Superpositing unit;The corresponding buffer unit of each figure layer data, described buffer unit includes multirow buffer area; Described data capture unit is connected with filling unit, and described filling unit is connected with buffer unit, described figure Layer superpositing unit is connected with buffer unit;Described method includes: first data capture unit obtains image Multiple figure layer data;Then fill unit the first figure layer data to be filled to the first buffer unit, described First buffer unit is the buffer unit that the first figure layer data is corresponding;Then priority adjustment unit is first The line number of buffer area that buffer unit has been filled by the first figure layer data reaches first when presetting line number, to adjust The priority of the first buffer unit;Then filling unit is after the priority of the first buffer unit is adjusted, Starting to fill to the second buffer unit the second figure layer data, described second buffer unit is the second figure layer The buffer unit that data are corresponding;Then priority adjustment unit at the second buffer unit by the second figure number of plies According to the line number of buffer area filled reach second preset line number time, adjust the priority of the second buffer unit, And start buffer unit corresponding for next figure layer data filling to next figure layer data;Then map overlay When unit is filled with figure layer data corresponding to this buffer unit in all buffer units, stacking chart's number of plies According to forming image.The excellent of this buffer unit is just adjusted when figure layer data is filled into default line number in buffer unit First level so that can as much as possible the storage address of same figure layer data be entered when acquisition figure layer data Row batch accesses, and then saves the consumption that DDR reading different address is brought, and improves the utilization rate of DDR. Additionally, by the priority of each buffer unit is dynamically adjusted, so that each figure layer data Can be rapidly filled with so that it is parallel that multiple figure layer data process, and is effectively increased systematicness Can, it is simple to map overlay operates.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the image multi-layer data processing means that one embodiment of the invention relates to;
The schematic diagram of the buffer unit that Fig. 2 relates to for one embodiment of the invention;
Fig. 3 is the flow chart of the image multi-layer data processing method that one embodiment of the invention relates to;
Description of reference numerals:
101, data capture unit;
102, unit is filled;
103, buffer unit;
104, FIFO memory element;
105, map overlay unit;
106, priority scheduling unit;
107, line number dispensing unit.
Detailed description of the invention
By describing the technology contents of technical scheme, structural feature in detail, being realized purpose and effect, below In conjunction with specific embodiments and coordinate accompanying drawing to be explained in detail.
Refer to Fig. 1, the schematic diagram of the image multi-layer data processing means for the present invention relates to.Described image Including multiple figure layer data, described device includes data capture unit 101, fills unit 102, Duo Gehuan Memory cell 103, priority scheduling unit 106 and map overlay unit 105;Each figure layer data correspondence one Buffer unit, described buffer unit includes multirow buffer area;Described data capture unit connects with filling unit Connecing, described filling unit is connected with buffer unit, and described map overlay unit is connected with buffer unit;
Described data capture unit 101 is for obtaining multiple figure layer data of image;
Described filling unit 102 for the first figure layer data is filled to the first buffer unit, described the One buffer unit is the buffer unit that the first figure layer data is corresponding;
Described priority adjustment unit 106 is for the caching filled by the first data at the first buffer unit The line number in district reaches first when presetting line number, to adjust the priority of the first buffer unit;
Described filling unit 102, for after the priority of the first buffer unit is adjusted, starts second Figure layer data is filled to the second buffer unit, and described second buffer unit is that the second figure layer data is corresponding Buffer unit;
Described priority adjustment unit 106 is for the caching filled by the first data at the second buffer unit The line number in district reaches second when presetting line number, to adjust the priority of the second buffer unit, and start next Figure layer data is filled to buffer unit corresponding to next figure layer data;
Described map overlay unit 105 is corresponding for being filled with this buffer unit in all buffer units Figure layer data time, stacking chart's layer data formed image.
When using image multi-layer data processing means, first data capture unit obtains multiple figures of image Layer data.In the present embodiment, figure layer data is saved in DDR.Data capture unit can pass through Bus obtains figure layer data from DDR.Then fill unit to fill the first figure layer data to the first caching In unit, described first buffer unit is the buffer unit that the first figure layer data is corresponding.First buffer unit For a certain buffer unit in some buffer units, for convenience of description, the first buffer unit is in Fig. 1 Buffer unit a, data capture unit after reading the first figure layer data from DDR, fill unit meeting First figure layer data is packed in buffer unit a.In the present embodiment, data capture unit and filling out Filling unit is the electronic component with digital independent function and data processing function, such as DMA.
The then line number of the buffer area that priority adjustment unit has been filled by the first data at the first buffer unit Reach first when presetting line number, to adjust the priority of the first buffer unit.As in figure 2 it is shown, buffer unit Including 5 row cache districts, buffer area may be used for storage figure layer data.With the buffer unit in Fig. 2 it is As a example by first buffer unit, the default line number (i.e. first presets line number) of its correspondence is 2 row, then fill When the buffer area line number that unit has been filled by the first figure layer data in the first buffer unit reaches 2 row, meeting Adjust the priority of the first buffer unit.In the present embodiment, described filling unit performs padding Buffer unit be the buffer unit that priority is the highest, then " priority adjustment unit is at the first buffer unit The line number of buffer area filled by the first data reaches first when presetting line number, to adjust the first buffer unit Priority " including: priority adjustment unit for the first buffer unit by first data fill The line number of buffer area reaches first when presetting line number, the priority of the first buffer unit to be adjusted to minimum. After the priority of the first buffer unit is adjusted, it is possible to start to be filled into down the data of next figure layer In the buffer unit that one figure layer data is corresponding.
Then filling unit is after the priority of the first buffer unit is adjusted, and starts the second figure layer data Filling to the second buffer unit, described second buffer unit is the buffer unit that the second figure layer data is corresponding. Second figure layer data is the next figure layer data of the first figure layer data.Then priority adjustment unit exists The line number of buffer area that second buffer unit has been filled by the first data reaches second when presetting line number, to adjust The priority of the second buffer unit, and start to fill corresponding to next figure layer data by next figure layer data Buffer unit.First preset line number, second to preset line number can be arbitrary integer row, it is also possible to be 1/2 row, 1/3 row etc., specifically can enter according to the buffer area line number that the first buffer unit and the second buffer unit are comprised Row is arranged.In the present embodiment, " priority adjustment unit is filled out by the first data at the second buffer unit The line number of the buffer area filled reaches second when presetting line number, to adjust the priority of the second buffer unit " including: The line number of the priority adjustment unit buffer area for having been filled by the first data at the second buffer unit reaches Second when presetting line number, and the priority of the second buffer unit is adjusted to minimum.Second buffer unit excellent After first level is adjusted, it is possible to start next layer data of the second figure layer data is filled with.
By dynamically adjusting the priority of each buffer unit, so that each figure layer data can be quick Be packed into correspondence buffer unit in so that multiple figure layer data process be parallel.When all of slow When being filled with the figure layer data of correspondence in memory cell, each figure layer data can be entered by map overlay unit Row superposition, to ultimately form image.
In the present embodiment, described device also includes FIFO memory element 104, and described FIFO stores Unit is connected with buffer unit, and the corresponding FIFO memory element of each buffer unit, described FIFO stores Unit is connected with map overlay unit;The described FIFO memory element figure number of plies in memory buffers unit According to;Described map overlay unit figure layer data of storage in superposition all FIFO memory element forms figure Picture.FIFO memory element is the dual port buffer of a FIFO, and i.e. first enters its interior data First is moved out of, the input port of one of them memorizer, and another mouthful is the delivery outlet of memorizer, can For processing mass data stream, to improve the performance of system.Figure layer data is being packed into buffer unit After, then enter the FIFO memory element that this buffer unit is corresponding from buffer unit, carry out of short duration storage. So, when map overlay unit only need to all store figure layer data in all of FIFO memory element, right In all FIFO memory element, the figure layer data of storage forms image, substantially increases the process of figure layer data Efficiency.
For some the figure layer data obtained from DDR, before the buffer unit being packed into correspondence, need Carry out certain map function, in order to the figure layer data after conversion process is carried out by map overlay unit Superposition.Thus in the present embodiment, described device also includes converter unit, described converter unit is with slow Memory cell connects, and described converter unit is for carrying out conversion process to the figure layer data in buffer unit.Institute State conversion process and include scaling process, rotation processing etc..
In the present embodiment, described device also includes line number dispensing unit 107, described line number dispensing unit For configuring the default line number that each buffer unit is corresponding.The default line number of each buffer unit can basis The number of the buffer area line number that buffer unit is comprised and arrange, such as can be set to delay by default line number The half of the total line number of buffer area that memory cell is comprised, it is of course also possible to default line number is set to 1/2 row, 1/3 row etc..
As it is shown on figure 3, the flow chart of the image multi-layer data processing method related to for one embodiment of the invention. Described image includes multiple figure layer data, and described method is applied to image multi-layer data processing means, described Device includes data capture unit, fills unit, multiple buffer unit, priority scheduling unit and figure layer Superpositing unit;The corresponding buffer unit of each figure layer data, described buffer unit includes multirow buffer area; Described data capture unit is connected with filling unit, and described filling unit is connected with buffer unit, described figure Layer superpositing unit is connected with buffer unit;Described method includes:
Initially enter step S301 data capture unit and obtain multiple figure layer data of image.This embodiment party In formula, figure layer data is saved in DDR.Data capture unit can be obtained from DDR by bus Figure layer data.Then can enter step S302 and fill unit by the first figure layer data filling to the first caching In unit, described first buffer unit is the buffer unit that the first figure layer data is corresponding.First buffer unit For a certain buffer unit in some buffer units, for convenience of description, the first buffer unit is in Fig. 1 Buffer unit a, data capture unit after reading the first figure layer data from DDR, fill unit meeting First figure layer data is packed in buffer unit a.In the present embodiment, data capture unit and filling out Filling unit is the electronic component with digital independent function and data processing function, such as DMA.
Then enter what step S303 priority adjustment unit had been filled by the first data at the first buffer unit The line number of buffer area reaches first when presetting line number, to adjust the priority of the first buffer unit.Such as Fig. 2 institute Showing, buffer unit includes 5 row cache districts, and buffer area may be used for storage figure layer data.With in Fig. 2 Buffer unit be the first buffer unit as a example by, the default line number (i.e. first presets line number) of its correspondence is 2 OK, then fill unit and reached 2 by the buffer area line number of the first figure layer data filling in the first buffer unit During row, the priority of the first buffer unit can be adjusted.In the present embodiment, described filling unit performs The buffer unit of padding is the buffer unit that priority is the highest, then " priority adjustment unit is first The line number of buffer area that buffer unit has been filled by the first data reaches first when presetting line number, to adjust first The priority of buffer unit " including: priority adjustment unit is for being counted by first at the first buffer unit According to the line number of buffer area filled reach first preset line number time, the priority of the first buffer unit is adjusted For minimum.After the priority of the first buffer unit is adjusted, it is possible to start the data of next figure layer It is filled in the buffer unit that next figure layer data is corresponding.
Then enter step S304 fill unit after the priority of the first buffer unit is adjusted, start by Second figure layer data is filled to the second buffer unit, and described second buffer unit is the second figure layer data pair The buffer unit answered.Second figure layer data is the next figure layer data of the first figure layer data.And it is laggard Enter the row of the buffer area that step S305 priority adjustment unit has been filled by the first data at the second buffer unit Number reaches second when presetting line number, to adjust the priority of the second buffer unit, and start next figure number of plies According to the buffer unit that filling to next figure layer data is corresponding.First preset line number, second to preset line number permissible For arbitrary integer row, it is also possible to be 1/2 row, 1/3 row etc., specifically can be according to the first buffer unit and The buffer area line number that two buffer units are comprised is configured.In the present embodiment, " priority adjusts single Unit the line number of buffer area that the second buffer unit has been filled by the first data reach second preset line number time, Adjust the priority of the second buffer unit " including: priority adjustment unit is at the second buffer unit The line number of buffer area filled by the first data reaches second when presetting line number, excellent by the second buffer unit First level is adjusted to minimum.After the priority of the second buffer unit is adjusted, it is possible to start the second figure Next layer data of layer data is filled with.
By dynamically adjusting the priority of each buffer unit, so that each figure layer data can be quick Be packed into correspondence buffer unit in so that multiple figure layer data process be parallel.When all of slow When memory cell is filled with the figure layer data of correspondence, step S306 map overlay unit can be entered in institute Having in buffer unit when being filled with figure layer data corresponding to this buffer unit, stacking chart's layer data forms figure Picture.
In the present embodiment, described device also includes FIFO memory element, described FIFO memory element It is connected with buffer unit, the corresponding FIFO memory element of each buffer unit, described FIFO memory element It is connected with map overlay unit;Described FIFO memory element figure layer data in memory buffers unit; Described map overlay unit figure layer data of storage in superposition all FIFO memory element forms image. FIFO memory element is the dual port buffer of a FIFO, and i.e. first enters its interior data first Individual being moved out of, the input port of one of them memorizer, another mouthful is the delivery outlet of memorizer, Ke Yiyong In processing mass data stream, to improve the performance of system.Figure layer data after being packed into buffer unit, Enter the FIFO memory element that this buffer unit is corresponding from buffer unit again, carry out of short duration storage.So, When map overlay unit only need to all store figure layer data in all of FIFO memory element, to all In FIFO memory element, the figure layer data of storage forms image, substantially increases the treatment effeciency of figure layer data.
For some the figure layer data obtained from DDR, before the buffer unit being packed into correspondence, need Carry out certain map function, in order to the figure layer data after conversion process is carried out by map overlay unit Superposition.Thus in the present embodiment, described device also includes converter unit, described converter unit is with slow Memory cell connects, and described converter unit is for carrying out conversion process to the figure layer data in buffer unit.Institute State conversion process and include scaling process, rotation processing etc..
In the present embodiment, described device also includes line number dispensing unit, and described line number dispensing unit is used In configuring the default line number that each buffer unit is corresponding.The default line number of each buffer unit can be according to slow The buffer area line number that memory cell is comprised number and arrange, such as default line number can be set to caching The half of the total line number of buffer area that unit is comprised, it is of course also possible to default line number is set to 1/2 row, 1/3 row etc..
Image multi-layer data treating method and apparatus described in technique scheme, described image includes multiple Figure layer data, described method is applied to image multi-layer data processing means, and described device includes data acquisition Unit, filling unit, multiple buffer unit, priority scheduling unit and map overlay unit;Each figure The corresponding buffer unit of layer data, described buffer unit includes multirow buffer area;Described data capture unit Being connected with filling unit, described filling unit is connected with buffer unit, described map overlay unit and caching Unit connects;Described method includes: first data capture unit obtains multiple figure layer data of image;And First figure layer data is filled in the first buffer unit by rear filling unit, and described first buffer unit is the The buffer unit that one figure layer data is corresponding;Then priority adjustment unit at the first buffer unit by first The line number of buffer area that figure layer data is filled reaches first when presetting line number, to adjust the excellent of the first buffer unit First level;Then filling unit is after the priority of the first buffer unit is adjusted, and starts the second figure number of plies According to filling to the second buffer unit, described second buffer unit is the caching list that the second figure layer data is corresponding Unit;The buffer area that then priority adjustment unit has been filled by the second figure layer data at the second buffer unit Line number reaches second when presetting line number, to adjust the priority of the second buffer unit, and start next figure layer Data are filled to buffer unit corresponding to next figure layer data;Then map overlay unit is single at all cachings When being filled with figure layer data corresponding to this buffer unit in unit, stacking chart's layer data forms image.Caching The priority of this buffer unit is just adjusted so that obtaining when figure layer data is filled into default line number in unit Storage address to same figure layer data can carry out batch and access as much as possible during figure layer data, and then Save DDR and read the consumption that different address is brought, improve the utilization rate of DDR.Additionally, by respectively The priority of individual buffer unit dynamically adjusts, so that each figure layer data can obtain rapidly Fill so that it is parallel that multiple figure layer data process, and is effectively increased systematic function, it is simple to figure stacking Add operation.
It should be noted that in this article, the relational terms of such as first and second or the like is used merely to One entity or operation are separated with another entity or operating space, and not necessarily requires or imply Relation or the order of any this reality is there is between these entities or operation.And, term " includes ", " comprise " or its any other variant is intended to comprising of nonexcludability, so that include that one is The process of row key element, method, article or terminal unit not only include those key elements, but also include not There are other key elements being expressly recited, or also include setting for this process, method, article or terminal Standby intrinsic key element.In the case of there is no more restriction, by statement " including ... " or " comprising ... " The key element limited, it is not excluded that in including the process of described key element, method, article or terminal unit There is also other key element.Additionally, in this article, " being more than ", " being less than ", " exceeding " etc. are interpreted as not Including this number;More than " ", " below ", " within " etc. be interpreted as including this number.
Those skilled in the art are it should be appreciated that the various embodiments described above can be provided as method, device or meter Calculation machine program product.These embodiments can use complete hardware embodiment, complete software implementation or knot The form of the embodiment in terms of conjunction software and hardware.Whole or portion in the method that the various embodiments described above relate to Can instruct relevant hardware by program step by step to complete, described program can be stored in calculating In the storage medium that machine equipment can read, all or part of for perform described in the various embodiments described above method Step.Described computer equipment, includes but not limited to: personal computer, server, general purpose computer, Special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligence man Occupy equipment, wearable intelligent equipment, vehicle intelligent equipment etc.;Described storage medium, including but do not limit In: RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, note Recall rod, webserver storage, network cloud storage etc..
The various embodiments described above are with reference to according to the method described in embodiment, equipment (system) and computer program The flow chart of product and/or block diagram describe.It should be understood that flow process can be realized by computer program instructions Stream in each flow process in figure and/or block diagram and/or square frame and flow chart and/or block diagram Journey and/or the combination of square frame.Can provide these computer program instructions to computer equipment processor with Produce a machine so that the instruction performed by the processor of computer equipment is produced for realizing at stream The function specified in one flow process of journey figure or multiple flow process and/or one square frame of block diagram or multiple square frame Device.
These computer program instructions may be alternatively stored in the meter that computer equipment can be guided to work in a specific way Calculate in machine equipment readable memory so that the instruction being stored in this computer equipment readable memory produces Including the manufacture of command device, this command device realize one flow process of flow chart or multiple flow process and/ Or the function specified in one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded on computer equipment so that holds on a computing device Row sequence of operations step is to produce computer implemented process, thus the finger performed on a computing device Order provides for realizing at one flow process of flow chart or multiple flow process and/or one square frame or multiple of block diagram The step of the function specified in square frame.
Although being described the various embodiments described above, but those skilled in the art once learn Basic creative concept, then can make other change and amendment to these embodiments, so above institute Stating only embodiments of the invention, not thereby limit the scope of patent protection of the present invention, every utilization is originally Equivalent structure or equivalence flow process that description of the invention and accompanying drawing content are made convert, or directly or indirectly use In the technical field that other are relevant, within being the most in like manner included in the scope of patent protection of the present invention.

Claims (10)

1. an image multi-layer data processing means, described image includes multiple figure layer data, and its feature exists In, described device includes data capture unit, fills unit, multiple buffer unit, priority scheduling list Unit and map overlay unit;The corresponding buffer unit of each figure layer data, described buffer unit includes multirow Buffer area;Described data capture unit is connected with filling unit, and described filling unit is connected with buffer unit, Described map overlay unit is connected with buffer unit;
Described data capture unit is for obtaining multiple figure layer data of image;
Described filling unit is for filling the first figure layer data to the first buffer unit, and described first delays Memory cell is the buffer unit that the first figure layer data is corresponding;
Described priority adjustment unit is for the caching filled by the first figure layer data at the first buffer unit The line number in district reaches first when presetting line number, to adjust the priority of the first buffer unit;
Described filling unit, for after the priority of the first buffer unit is adjusted, starts the second figure layer Data are filled to the second buffer unit, and described second buffer unit is the caching that the second figure layer data is corresponding Unit;
Described priority adjustment unit is for the caching filled by the second figure layer data at the second buffer unit The line number in district reaches second when presetting line number, to adjust the priority of the second buffer unit, and start next Figure layer data is filled to buffer unit corresponding to next figure layer data;
Described map overlay unit is for being filled with the figure that this buffer unit is corresponding in all buffer units During layer data, stacking chart's layer data forms image.
Image multi-layer data processing means the most according to claim 1, it is characterised in that described dress Putting and also include FIFO memory element, described FIFO memory element is connected with buffer unit, and each caching is single The corresponding FIFO memory element of unit, described FIFO memory element is connected with map overlay unit;Described FIFO Memory element figure layer data in memory buffers unit;Described map overlay unit owns for superposition In FIFO memory element, the figure layer data of storage forms image.
Image multi-layer data processing means the most according to claim 1 and 2, it is characterised in that Described device also includes that converter unit, described converter unit are connected with buffer unit, and described converter unit is used In the figure layer data in buffer unit is carried out conversion process.
Image multi-layer data processing means the most according to claim 1, it is characterised in that described in fill out The buffer unit filling unit execution padding is the buffer unit that priority is the highest, then " priority adjusts The line number of the unit buffer area for having been filled by the first data at the first buffer unit reaches first and presets row During number, adjust the priority of the first buffer unit " including: priority adjustment unit is at the first caching The line number of buffer area that unit has been filled by the first data reaches first when presetting line number, by single for the first caching The priority of unit is adjusted to minimum;" priority adjustment unit is used at the second buffer unit by the first data The line number of buffer area filled reaches second when presetting line number, to adjust the priority of the second buffer unit " bag Include: the line number of the priority adjustment unit buffer area for having been filled by the first data at the second buffer unit Reach second when presetting line number, the priority of the second buffer unit to be adjusted to minimum.
Image multi-layer data processing means the most according to claim 1, it is characterised in that described dress Putting and also include line number dispensing unit, described line number dispensing unit is for configuring corresponding pre-of each buffer unit If line number.
6. an image multi-layer data processing method, image includes multiple figure layer data, it is characterised in that Described method is applied to image multi-layer data processing means, and described device includes data capture unit, filling Unit, multiple buffer unit, priority scheduling unit and map overlay unit;Each figure layer data is corresponding One buffer unit, described buffer unit includes multirow buffer area;Described data capture unit and filling unit Connecting, described filling unit is connected with buffer unit, and described map overlay unit is connected with buffer unit; Described method includes:
Data capture unit obtains multiple figure layer data of image;
Filling unit the first figure layer data to be filled to the first buffer unit, described first buffer unit is The buffer unit that first figure layer data is corresponding;
The line number of the buffer area that priority adjustment unit has been filled by the first figure layer data at the first buffer unit Reach first when presetting line number, to adjust the priority of the first buffer unit;
Filling unit, after the priority of the first buffer unit is adjusted, starts to fill the second figure layer data To the second buffer unit, described second buffer unit is the buffer unit that the second figure layer data is corresponding;
The line number of the buffer area that priority adjustment unit has been filled by the second figure layer data at the second buffer unit Reach second when presetting line number, to adjust the priority of the second buffer unit, and start next figure layer data Fill to buffer unit corresponding to next figure layer data;
Map overlay unit is filled with the figure layer data that this buffer unit is corresponding in all buffer units Time, stacking chart's layer data forms image.
Image multi-layer data processing method the most according to claim 6, it is characterised in that described dress Putting and also include FIFO memory element, described FIFO memory element is connected with buffer unit, and each caching is single The corresponding FIFO memory element of unit, described FIFO memory element is connected with map overlay unit;Described side Method also includes:
Figure layer data in FIFO memory element memory buffers unit;
In map overlay unit superposition all FIFO memory element, the figure layer data of storage forms image.
8. according to the image multi-layer data processing method described in claim 6 or 7, it is characterised in that institute State device and also include that converter unit, described converter unit are connected with buffer unit;Described method includes:
Converter unit carries out conversion process to the figure layer data in buffer unit.
Image multi-layer data processing method the most according to claim 6, it is characterised in that described in fill out The buffer unit filling unit execution padding is the buffer unit that priority is the highest, and the most described step is " excellent It is pre-that first level adjustment unit is reached first by the line number of the buffer area of the first data filling at the first buffer unit If during line number, adjust the priority of the first buffer unit " including: priority adjustment unit is at the first caching The line number of buffer area that unit has been filled by the first data reaches first when presetting line number, by single for the first caching The priority of unit is adjusted to minimum;" priority adjustment unit is filled by the first data at the second buffer unit The line number of buffer area reach second when presetting line number, to adjust the priority of the second buffer unit " including: Priority adjustment unit reaches second in the line number of the buffer area that the second buffer unit has been filled by the first data When presetting line number, the priority of the second buffer unit is adjusted to minimum.
Image multi-layer data processing method the most according to claim 6, it is characterised in that described Device also includes that line number dispensing unit, described method include:
Line number dispensing unit configures the default line number that each buffer unit is corresponding.
CN201610193144.2A 2016-03-30 2016-03-30 A kind of image multi-layer data treating method and apparatus Active CN105894440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610193144.2A CN105894440B (en) 2016-03-30 2016-03-30 A kind of image multi-layer data treating method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610193144.2A CN105894440B (en) 2016-03-30 2016-03-30 A kind of image multi-layer data treating method and apparatus

Publications (2)

Publication Number Publication Date
CN105894440A true CN105894440A (en) 2016-08-24
CN105894440B CN105894440B (en) 2019-02-01

Family

ID=57014341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610193144.2A Active CN105894440B (en) 2016-03-30 2016-03-30 A kind of image multi-layer data treating method and apparatus

Country Status (1)

Country Link
CN (1) CN105894440B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682730A (en) * 2017-09-18 2018-02-09 北京嗨动视觉科技有限公司 Map overlay processing method, map overlay processing unit and video processor
CN111640163A (en) * 2020-06-03 2020-09-08 湖南工业大学 Image synthesis method and computer-readable storage medium
CN114168524A (en) * 2021-12-07 2022-03-11 平头哥(上海)半导体技术有限公司 Line cache unit, acceleration unit, system on chip and line cache configuration method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184720A (en) * 2010-06-22 2011-09-14 上海盈方微电子有限公司 A method and a device for image composition display of multi-layer and multi-format input
CN102685600A (en) * 2012-04-26 2012-09-19 青岛海信电器股份有限公司 Data overlaying display and synthesis method and system and display equipment
CN102708066A (en) * 2011-03-17 2012-10-03 索尼公司 Memory control device, memory device, memory control method, and program
CN103686304A (en) * 2013-12-09 2014-03-26 华为技术有限公司 Method, device and terminal device for layer composition

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184720A (en) * 2010-06-22 2011-09-14 上海盈方微电子有限公司 A method and a device for image composition display of multi-layer and multi-format input
CN102708066A (en) * 2011-03-17 2012-10-03 索尼公司 Memory control device, memory device, memory control method, and program
CN102685600A (en) * 2012-04-26 2012-09-19 青岛海信电器股份有限公司 Data overlaying display and synthesis method and system and display equipment
CN103686304A (en) * 2013-12-09 2014-03-26 华为技术有限公司 Method, device and terminal device for layer composition

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682730A (en) * 2017-09-18 2018-02-09 北京嗨动视觉科技有限公司 Map overlay processing method, map overlay processing unit and video processor
CN107682730B (en) * 2017-09-18 2020-02-07 北京嗨动视觉科技有限公司 Layer superposition processing method, layer superposition processing device and video processor
CN111640163A (en) * 2020-06-03 2020-09-08 湖南工业大学 Image synthesis method and computer-readable storage medium
CN114168524A (en) * 2021-12-07 2022-03-11 平头哥(上海)半导体技术有限公司 Line cache unit, acceleration unit, system on chip and line cache configuration method
CN114168524B (en) * 2021-12-07 2023-10-20 平头哥(上海)半导体技术有限公司 Line cache unit, acceleration unit, system on chip and line cache configuration method

Also Published As

Publication number Publication date
CN105894440B (en) 2019-02-01

Similar Documents

Publication Publication Date Title
WO2018196863A1 (en) Convolution acceleration and calculation processing methods and apparatuses, electronic device and storage medium
CN103440612B (en) Image processing method and device in a kind of GPU vitualization
CN103678408B (en) A kind of method and device of inquiry data
KR20180125884A (en) Optimized neural network input stride method and apparatus
CN107391527A (en) A kind of data processing method and equipment based on block chain
WO2020062312A1 (en) Signal processing device and signal processing method
CN104159120B (en) A kind of video image stabilization method, apparatus and system
CN105894440A (en) Image multilayer data processing method and device
CN110147252A (en) A kind of parallel calculating method and device of convolutional neural networks
US7920150B2 (en) Image scaling system capable of saving memory
CN112686379B (en) Integrated circuit device, electronic apparatus, board and computing method
CN113918356B (en) Method and device for quickly synchronizing data based on CUDA (compute unified device architecture), computer equipment and storage medium
Chang et al. Efficient hardware accelerators for the computation of Tchebichef moments
Kikuchi et al. A single-chip 16-bit 25-ns real-time video/image signal processor
CN112068965A (en) Data processing method and device, electronic equipment and readable storage medium
CN110069313B (en) Image switching method and device, electronic equipment and storage medium
CN111209243B (en) Data processing device, method and related product
CN108415881A (en) The arithmetic unit and method of convolutional neural networks
CN103338159B (en) Polling dispatching implementation method and device
CN104901651A (en) Realizing circuit and method of digital filter
JP4540191B2 (en) Image processing device
CN110163155B (en) Face data processing method and device, electronic equipment and readable storage medium
CN114691562A (en) Method, device and equipment for DMA operation, integrated circuit chip and board card
CN111382856B (en) Data processing device, method, chip and electronic equipment
CN106484642A (en) A kind of direct memory access controller with operational capability

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
CP01 Change in the name or title of a patent holder

Address after: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee after: Ruixin Microelectronics Co., Ltd

Address before: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee before: Fuzhou Rockchips Electronics Co.,Ltd.

CP01 Change in the name or title of a patent holder