Processing method, device and system, storage medium and the processor of view data
Technical field
The present invention relates to image processing field, in particular to a kind of processing method of view data, device and it is
System, storage medium and processor.
Background technology
With continuing to develop for science and technology, computer screen is more and more, and the crossover rate and frame per second of screen picture are also increasingly
Height, two-way picture synchronization transmission and the display also increasing application in engineering design.It is this to be based on multichannel, high-resolution
The image procossing of rate and high frame frequency, along with the demand of Lossless Compression, it proposes requirements at the higher level, internal memory to view data storage
Bandwidth, cost and the power consumption of storage also more and more higher.Memory storage bandwidth how is reduced, the cost and work(of image procossing is reduced
Consumption, is that present image procossing is badly in need of the key issue to be solved.
The method of reduction memory bandwidth mainly has two kinds at present, and a kind of is that original image is divided into the small of two-way and multidiameter delay
Image, all the way small image stored and controlled using storage ram on piece, another small image in road uses the storage in DDR;
Another is first to carry out Lossless Compression to data, by the data storage after compression in DDR, when reading data afterwards, then is carried out
Decompression.But, two schemes can all increase a large amount of process resources, cause area and cost increase.
For it is above-mentioned the problem of, effective solution is not yet proposed at present.
The content of the invention
The embodiments of the invention provide a kind of processing method of view data, device and system, storage medium and processor,
At least to solve image storage method in the prior art, in order to reduce DDR memory bandwidths, a large amount of process resources are added, cause face
Product and the increased technical problem of cost.
One side according to embodiments of the present invention there is provided a kind of processing method of view data, including:Obtain and wait to locate
The multiple images unit of the view data of reason, and the corresponding flag information of each elementary area, wherein, flag information is used to mark
Whether will carries out storage operation to each elementary area;According to the corresponding flag information of each elementary area, by least one figure
The default storage region into double-speed SDRAM is stored as unit;It is corresponding according to each elementary area
Flag information, obtains pending view data from default storage region;The pending view data of output.
Further, the corresponding flag information of each elementary area is obtained, including:Determine first in multiple images unit
The corresponding flag information of individual elementary area is the first flag information;Obtain in the following way and first is removed in multiple images unit
The corresponding flag information of each elementary area outside elementary area:According to pixel-by-pixel by each elementary area and processed figure
As unit is compared, judge whether each elementary area is identical with processed elementary area;If each elementary area with
Processed elementary area is differed, it is determined that the corresponding flag information of each elementary area is the first flag information;If every
Individual elementary area is identical with processed elementary area, it is determined that the corresponding flag information of each elementary area is the second mark letter
Breath.
Further, processed elementary area includes:It is laterally adjacent and get flag information with each elementary area
Elementary area, and/or, it is longitudinally adjacent and get the elementary area of flag information with each elementary area.
Further, according to the corresponding flag information of each elementary area, at least one elementary area is stored to double
Default storage region in fast SDRAM, including:If the corresponding flag information of the first elementary area is
First flag information, then store the first elementary area to default storage region;If the corresponding mark letter of the second elementary area
Cease for the second flag information, then forbid storing the second elementary area to default storage region.
Further, after the corresponding flag information of each elementary area is obtained, the above method also includes:To each it scheme
As the corresponding flag information of unit is stored into flag information random access memory.
Further, the multiple images unit of pending view data is obtained, including:Obtain pending picture number
According to;Pending view data is split, multiple images unit is obtained.
Further, after pending view data is obtained, the above method also includes:By pending view data
Deposit into the first ping-pong buffer area.
Further, according to the corresponding flag information of each elementary area, obtain pending from default storage region
View data, including:First elementary area in multiple images unit is read from default storage region;In the following way
Read each elementary area in addition to first elementary area in multiple images unit:If the corresponding mark of the first elementary area
Will information is the first flag information, then the first elementary area is read from default storage region;If the second elementary area correspondence
Flag information be the second flag information, then the processed elementary area adjacent to the second elementary area replicate;To be many
Individual elementary area is combined, and obtains pending view data.
Further, according to the corresponding flag information of each elementary area, obtain pending from default storage region
View data after, the above method also includes:Pending view data is deposited into the second ping-pong buffer area.
Another aspect according to embodiments of the present invention, additionally provides a kind of processing unit of view data, including:First obtains
Unit is taken, the multiple images unit of pending view data for obtaining, and the corresponding flag information of each elementary area,
Wherein, flag information is used for whether mark to carry out storage operation to each elementary area;First memory cell, for according to each
The corresponding flag information of elementary area, at least one elementary area is stored into double-speed SDRAM
Default storage region;Second acquisition unit, for according to the corresponding flag information of each elementary area, from default storage region
Obtain pending view data;Output unit, the pending view data for exporting.
Further, first acquisition unit includes:Determining module, for determining first image in multiple images unit
The corresponding flag information of unit is the first flag information;First acquisition module, for obtaining multiple images list in the following way
The corresponding flag information of each elementary area in member in addition to first elementary area:According to pixel-by-pixel by each elementary area
It is compared with processed elementary area, judges whether each elementary area is identical with processed elementary area, if often
Individual elementary area is differed with processed elementary area, it is determined that the corresponding flag information of each elementary area is the first mark
Information, if each elementary area is identical with processed elementary area, it is determined that the corresponding flag information of each elementary area
For the second flag information.
Further, processed elementary area includes:It is laterally adjacent and get flag information with each elementary area
Elementary area, and/or, it is longitudinally adjacent and get the elementary area of flag information with each elementary area.
Further, the first memory cell includes:First memory module, if for the corresponding mark of the first elementary area
Information is the first flag information, then stores the first elementary area to default storage region;Second memory module, if for
The corresponding flag information of two elementary areas is the second flag information, then forbids storing the second elementary area to default memory block
Domain.
Further, said apparatus also includes:Second memory cell, for by the corresponding flag information of each elementary area
Store into flag information random access memory.
Further, first acquisition unit includes:Second acquisition module, the pending view data for obtaining;Split
Module, for being split to pending view data, obtains multiple images unit.
Further, said apparatus also includes:3rd memory cell, for pending view data to be deposited to the first table tennis
In pang buffer area.
Further, second acquisition unit includes:First read module, for reading multiple figures from default storage region
As first elementary area in unit;Second read module, for reading in the following way in multiple images unit except the
Each elementary area outside one elementary area:If the corresponding flag information of the first elementary area is the first flag information,
The first elementary area is then read from default storage region;If the corresponding flag information of the second elementary area is the second mark letter
Breath, then the processed elementary area adjacent to the second elementary area is replicated;Composite module, for by multiple images unit
It is combined, obtains pending view data.
Further, said apparatus also includes:4th memory cell, for pending view data to be deposited to the second table tennis
In pang buffer area.
Another aspect according to embodiments of the present invention, additionally provides a kind of processing system of view data, including:Control dress
Put, the multiple images unit of pending view data for obtaining, and the corresponding flag information of each elementary area, its
In, flag information is used for whether mark to carry out storage operation to each elementary area;First processor, is connected with control device,
For according to the corresponding flag information of each elementary area, at least one elementary area to be stored to double-speed synchronous dynamic random
Default storage region in access memory;Second processor, is connected with control device, for corresponding according to each elementary area
Flag information, obtains pending view data from default storage region;Control device is additionally operable to export pending image
Data.
Further, control device includes:3rd processor, for determining first image list in multiple images unit
The corresponding flag information of member is the first flag information, and is obtained in the following way in multiple images unit except first image list
The corresponding flag information of each elementary area outside member:According to pixel-by-pixel that each elementary area is adjacent with each elementary area
Processed elementary area be compared, judge whether each elementary area identical with processed elementary area;If every
Individual elementary area is differed with processed elementary area, it is determined that the corresponding flag information of each elementary area is the first mark
Information;If each elementary area is identical with processed elementary area, it is determined that the corresponding flag information of each elementary area
For the second flag information.
Further, processed elementary area includes:It is laterally adjacent and get flag information with each elementary area
Elementary area, and/or, it is longitudinally adjacent and get the elementary area of flag information with each elementary area.
Further, if it is the first mark letter that first processor, which is additionally operable to the corresponding flag information of the first elementary area,
Breath, then store the first elementary area to default storage region;If the corresponding flag information of the second elementary area is the second mark
Will information, then forbid storing the second elementary area to default storage region.
Further, control device includes:Flag information random access memory, it is corresponding for storing each elementary area
Flag information.
Further, control device includes:Fourth processing unit, the pending view data for obtaining, and treat place
The view data of reason is split, and obtains multiple images unit.
Further, control device also includes:First ping-pong buffer area, is connected with control device, pending for storing
View data.
Further, second processor is additionally operable to read first figure in multiple images unit from default storage region
As unit, and each elementary area in multiple images unit in addition to first elementary area is read in the following way:Such as
Really the corresponding flag information of the first elementary area is the first flag information, then the first image list is read from default storage region
Member;If the corresponding flag information of the second elementary area is the second flag information, adjacent to the second elementary area is processed
Elementary area replicated;Multiple images unit is combined, pending view data is obtained.
Further, control device includes:Second ping-pong buffer area, is connected with the 3rd processor, pending for storing
View data.
Another aspect according to embodiments of the present invention, additionally provides a kind of storage medium, and storage medium includes the journey of storage
Sequence, wherein, equipment where controlling storage medium when program is run performs the view data of any one in above-described embodiment
Processing method.
Another aspect according to embodiments of the present invention, additionally provides a kind of processor, and processor is used for operation program, its
In, program performs the processing method of the view data of any one in above-described embodiment when running.
In embodiments of the present invention, the multiple images unit of pending view data, and each elementary area are obtained
Corresponding flag information, according to the corresponding flag information of each elementary area, at least one elementary area is stored to double-speed
Default storage region in SDRAM, according to the corresponding flag information of each elementary area, is deposited from default
Pending view data is obtained in storage area domain, pending view data is exported.It is easily noted that, due to according to mark
Information, integral image calculation unit in the middle part of the multiple images unit of pending view data is stored, rather than will be pending
View data is stored or stored again after pending view data is compressed, and is read and treated according to flag information
The view data of processing, moreover, only needing to get pending image before pending view data is stored
The multiple images unit of data, only needs to increase a small amount of processing logic, you can reduce DDR memory bandwidth so as to realize
Purpose, solves image storage method in the prior art and, in order to reduce DDR memory bandwidths, adds a large amount of process resources, cause
Area and the increased technical problem of cost.Therefore, the scheme provided by the above embodiment of the present invention, can reach reduction DDR
Memory bandwidth, reduction area and cost technique effect.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the processing method of view data according to embodiments of the present invention;
Fig. 2 a are the schematic diagrames that a kind of optional elementary area according to embodiments of the present invention is laterally compared;
Fig. 2 b are the schematic diagrames that a kind of optional elementary area according to embodiments of the present invention is longitudinally compared;
Fig. 2 c are the schematic diagrames that a kind of optional elementary area transverse and longitudinal according to embodiments of the present invention is compared;
Fig. 3 is the schematic diagram that a kind of optional view data according to embodiments of the present invention splits mode;
Fig. 4 is a kind of flow chart of the processing method of optional view data according to embodiments of the present invention;
Fig. 5 is a kind of schematic diagram of the processing unit of view data according to embodiments of the present invention;
Fig. 6 is a kind of schematic diagram of the processing system of view data according to embodiments of the present invention;
Fig. 7 is a kind of schematic diagram of the processing system of optional view data according to embodiments of the present invention;And
Fig. 8 is a kind of schematic diagram of optional control device according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or
Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Lid is non-exclusive to be included, for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to
Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention there is provided a kind of embodiment of the processing method of view data, it is necessary to explanation,
The step of flow of accompanying drawing is illustrated can perform in the computer system of such as one group computer executable instructions, also,
, in some cases, can be shown to be performed different from order herein although showing logical order in flow charts
The step of going out or describe.
Fig. 1 is a kind of flow chart of the processing method of view data according to embodiments of the present invention, as shown in figure 1, the party
Method comprises the following steps:
Step S102, obtains the multiple images unit of pending view data, and the corresponding mark of each elementary area
Will information, wherein, flag information is used for whether mark to carry out storage operation to each elementary area.
Specifically, above-mentioned pending view data can be shown in one in the screen picture in computer screen
Frame, but it is not limited only to this;Above-mentioned elementary area can be in various ways, after being split to pending view data
Image, for example, can be according in units of 1/2,1/4,1/8 etc. of a line of image or image a line, to view data
Split;Above-mentioned flag information can be the information for whether to elementary area store operation for mark, for example, such as
Fruit flag information is a flag mark, then can store corresponding elementary area with flag=0 marks, be indicated with flag=1
Corresponding elementary area is not stored.
Step S104, according to the corresponding flag information of each elementary area, at least one elementary area is stored to double
Default storage region in fast SDRAM.
Specifically, at least one above-mentioned elementary area can be that corresponding flag information needs to carry out storage behaviour for mark
The unit of work;Above-mentioned default storage region can be that double-speed SDRAM DDR (is Double Data
Rate abbreviation) in be used to store the region of pending view data.
Step S106, according to the corresponding flag information of each elementary area, obtains pending from default storage region
View data.
Step S108, exports pending view data.
, can be to pending image after the pending view data collected in a kind of optional scheme
Data are split, and obtain multiple images unit, and according to the characteristics of image of each elementary area, judge that each elementary area is
It is no to need storage, so that the flag information of each elementary area is obtained, then according to each elementary area, it would be desirable to the figure of storage
As unit is stored into internal memory or DDR.When pending screen picture is read from internal memory or DDR, it can get first every
The flag information of individual elementary area, and according to the flag information of each elementary area, each image is got from internal memory and DDR
Unit, is combined to multiple images unit, obtains pending view data, and the pending view data read out is defeated
Go out to processing module, so as to realize the purpose handled pending view data.
According to the above embodiment of the present invention, the multiple images unit of pending view data, and each image are obtained
The corresponding flag information of unit, according to the corresponding flag information of each elementary area, at least one elementary area is stored to double
Default storage region in speed SDRAM, according to the corresponding flag information of each elementary area, from pre-
If obtaining pending view data in storage region, pending view data is exported.It is easily noted that, due to basis
Flag information, integral image calculation unit in the middle part of the multiple images unit of pending view data is stored, rather than will wait to locate
The view data of reason is stored or stored again after pending view data is compressed, and is read according to flag information
To pending view data, moreover, only needing to get before pending view data is stored pending
The multiple images unit of view data, only needs to increase a small amount of processing logic, you can reduce DDR storage tape so as to realize
Wide purpose, solves image storage method in the prior art and, in order to reduce DDR memory bandwidths, adds a large amount of process resources,
Cause area and the increased technical problem of cost.Therefore, the scheme provided by the above embodiment of the present invention, can reach reduction
The technique effect of DDR memory bandwidth, reduction area and cost.
Alternatively, in the above embodiment of the present invention, step S102 obtains the corresponding flag information of each elementary area,
Including:
Step S1022, it is the first mark to determine the corresponding flag information of first elementary area in multiple images unit
Information.
Specifically, the first above-mentioned flag information can be the information for carrying out storage operation to elementary area for indicating,
For example, indicating for a flag, flag=0;For two flag marks, flag=00.
It should be noted that first elementary area in pending view data is bound in deposit internal memory or DDR,
It is the first flag information that the corresponding flag information of first unit, which can be determined,.
Step S1024, obtains each figure in multiple images unit in addition to first elementary area in the following way
As the corresponding flag information of unit:
Step S10242, according to each elementary area is compared with processed elementary area pixel-by-pixel, judges every
Whether individual elementary area is identical with processed elementary area.
Alternatively, in the above embodiment of the present invention, processed elementary area includes:With the horizontal phase of each elementary area
Elementary area that is adjacent and getting flag information, and/or, it is longitudinally adjacent and get the figure of flag information with each elementary area
As unit.
Specifically, above-mentioned processed elementary area can be adjacent with the elementary area for being currently needed for storing
Get flag information elementary area or be currently needed for storage elementary area it is closest, and mark letter
Cease for the elementary area of the first flag information, though it is closest with the elementary area that is currently needed for storage, and store to interior
Deposit or DDR in elementary area.
It should be noted that can be using processed elementary area as reference picture unit, alignments are different, reference
The selection mode of elementary area is different, specifically, alignments can for laterally compare (as shown in Figure 2 a), longitudinal direction compares (such as
Shown in Fig. 2 b), transverse and longitudinal compare (as shown in Figure 2 c).Moreover, when alignments is laterally comparisons or longitudinal direction comparison, mark letter
Breath can be a flag, i.e. 1bit flag;When alignments are that transverse and longitudinal is compared, flag information can be two flag, i.e.,
2bit flag, wherein, first flag represents to be compared the result obtained afterwards, second with the reference picture unit in transverse direction
Flag represents to be compared the result obtained afterwards with the reference unit on longitudinal direction.
Step S10244, if each elementary area is differed with processed elementary area, it is determined that each image list
The corresponding flag information of member is the first flag information.
Step S10246, if each elementary area is identical with processed elementary area, it is determined that each elementary area
Corresponding flag information is the second flag information.
Specifically, the second above-mentioned flag information can be the letter for elementary area store operation for mark
Breath, for example, indicating for a flag, flag=1;For two flag marks, flag=10 or flag=01, wherein,
Flag=10 represents identical with the processed unit in transverse direction, different from the processed unit on longitudinal direction;Flag=01 tables
Show different from the processed unit in transverse direction, it is identical with the processed unit on longitudinal direction.
It should be noted that when alignments are that transverse and longitudinal is compared, it may be determined that the priority in transverse and longitudinal comparison, for example,
Setting laterally compares priority height, if elementary area is identical with horizontal processed elementary area, without continuing with indulging
To processed elementary area be compared.
In the first optional scheme, when alignments is laterally compare, as shown in Figure 2 a, it may be determined that pending
View data the first row in first elementary area flag=0;By second elementary area and the first row in the first row
In first elementary area be compared, if identical, it is determined that second elementary area flag=1 in the first row;If no
Together, it is determined that second elementary area flag=0 in the first row;By the 3rd elementary area in the first row and in the first row second
Individual elementary area is compared, if identical, it is determined that the 3rd elementary area flag=1 in the first row;If it is different, then really
Determine the 3rd elementary area flag=0 in the first row;The like, it is determined that the mark of first elementary area is believed in per a line
During breath, first elementary area in every a line can be compared with the elementary area of last in lastrow.
In second of optional scheme, when alignments compare for longitudinal direction, as shown in Figure 2 b, it may be determined that pending
View data first row in first elementary area flag=0;By second elementary area and first row in first row
In second elementary area be compared, if identical, it is determined that second elementary area flag=1 in first row;If no
Together, it is determined that second elementary area flag=0 in first row;By the 3rd elementary area in first row and in first row second
Individual elementary area is compared, if identical, it is determined that the 3rd elementary area flag=1 in first row;If it is different, then really
Determine the 3rd elementary area flag=0 in first row;The like, it is determined that the mark of first elementary area is believed in each row
During breath, first elementary area in each row can be compared with the elementary area of last in previous column.
In the third optional scheme, when alignments be transverse and longitudinal compare, and laterally compare priority it is high when, such as Fig. 2 c
It is shown, it may be determined that the flag=00 of first elementary area in the first row of pending view data;By in the first row
Two elementary areas are compared with first elementary area in the first row, if identical, it is determined that second image list in the first row
First flag=10;If it is different, then determining second elementary area flag=00 in the first row;The like, until the first row
All elementary areas are compared and finished.First elementary area in second row is compared with the elementary area of last in the first row,
If identical, without first elementary area in the second row be compared with first elementary area in the first row, i.e., without
Longitudinal comparison need to be carried out, first elementary area flag=10 in the second row is directly determined;If it is different, then further by second
First elementary area is compared with first elementary area in the first row in row, that is, needs to carry out longitudinal comparison, if not
Together, it is determined that first elementary area flag=00 in the second row;If identical, it is determined that first elementary area in the second row
Flag=01;The like, finished until all elementary areas are compared, so as to obtain each image of pending elementary area
The corresponding flag information flag of unit.
In the 4th kind of optional scheme, when alignments be transverse and longitudinal compare, and longitudinal direction compare priority it is high when, such as Fig. 2 c
It is shown, it may be determined that the flag=00 of first elementary area in the first row of pending view data;By in the second row
One elementary area is compared with first elementary area in the first row, if identical, it is determined that first image list in the second row
First flag=01;If it is different, then determining first elementary area flag=00 in the second row;The like, until first row
In all elementary area compare and finish.By second elementary area in the first row and last elementary area ratio in first row
Compared with if identical, without second elementary area in the first row is compared with first elementary area in the first row, i.e.,
Without carrying out horizontal comparison, first elementary area flag=01 in the second row is directly determined;If it is different, then further by
Second elementary area is compared with first elementary area in the first row in a line, that is, needs to carry out horizontal comparison, if
It is different, it is determined that first elementary area flag=00 in the second row;If identical, it is determined that first image list in the second row
First flag=10;The like, finished until all elementary areas are compared, so as to obtain each figure of pending elementary area
As the corresponding flag information flag of unit.
Alternatively, in the above embodiment of the present invention, step S104, according to the corresponding flag information of each elementary area,
At least one elementary area is stored into the default storage region into double-speed SDRAM, including:
Step S1042, if the corresponding flag information of the first elementary area is the first flag information, by the first image list
Member is stored to default storage region.
Step S1044, if the corresponding flag information of the second elementary area is the second flag information, forbids the second figure
As unit is stored to default storage region.
In a kind of optional scheme, when alignments is laterally comparisons or longitudinal direction comparison, such as Fig. 2 a or Fig. 2 b institutes
Show, after the corresponding flag information of each elementary area is got, that is, after the flag for obtaining each elementary area, Ke Yigen
Determine whether to carry out storage operation to the elementary area according to the flag of each elementary area, if the flag=of an elementary area
0, i.e. the corresponding flag information of the first elementary area is the first flag information, it is determined that needs to store the elementary area, then starts
Write operation, the elementary area is stored into internal memory or DDR;If the flag=1 of an elementary area, i.e. the second elementary area
Corresponding flag information is the second flag information, it is determined that need not store the elementary area, then will not start write operation.
In another optional scheme, when alignments are that transverse and longitudinal is compared, as shown in Figure 2 c, each figure is being got
, that is, can be according to each elementary area after the flag for obtaining each elementary area after the corresponding flag information of unit
Flag determines whether to carry out storage operation, if the flag=00 of an elementary area, i.e. the first image list to the elementary area
The corresponding flag information of member is the first flag information, it is determined that needs to store the elementary area, then starts write operation, by the image
Unit is stored in internal memory or DDR;If the flag=10 or flag=01 of an elementary area, i.e. the second elementary area pair
The flag information answered is the second flag information, it is determined that need not store the elementary area, then not start write operation.
Alternatively, in the above embodiment of the present invention, in step S102, the corresponding flag information of each elementary area is obtained
Afterwards, this method also includes:
Step S110, the corresponding flag information of each elementary area is stored into flag information random access memory.
In a kind of optional scheme, in order to ensure that the elementary area of storage is normally read from internal memory or DDR, so as to enter
One step gets pending view data, after the flag of each elementary area is got, can be by all elementary areas
Flag be stored in flag information random access memory flag_ram.
Alternatively, in the above embodiment of the present invention, step S102 obtains the multiple images list of pending view data
Member, including:
Step S1026, obtains pending view data.
Step S1028, splits to pending view data, obtains multiple images unit.
, can dividing according to view data after pending view data is got in a kind of optional scheme
Resolution selects different fractionation modes, and pending view data is split according to corresponding fractionation mode, so that
To multiple images unit, for example, as shown in figure 3, can be split according in units of a line of image to view data,
Obtain elementary area;View data can also be split, obtained according in units of the 1/2 of image a line, 1/4,1/8 etc.
To elementary area.
Alternatively, in the above embodiment of the present invention, after step S1026, the pending view data of acquisition, the party
Method also includes:
Step S1020, pending view data is deposited into the first ping-pong buffer area.
, can be using table tennis in order to not influence image to be stored in internal memory or DDR efficiency in a kind of optional scheme
Buffer mode carries out data buffer storage, and the pending view data that gets is stored in table tennis buffer, and will
The view data read from table tennis buffer carries out write operation, stores into internal memory or DDR.
Alternatively, in the above embodiment of the present invention, step S106, according to the corresponding flag information of each elementary area,
Pending view data is obtained from default storage region, including:
Step S1062, reads first elementary area in multiple images unit from default storage region.
In a kind of optional scheme, when reading pending view data from internal memory or DDR, can first from
Corresponding flag marks are read in flag_ram, then can be first because first elementary area is bound in deposit internal memory or DDR
First elementary area is first read from internal memory or DDR.
Step S1064, reads each figure in multiple images unit in addition to first elementary area in the following way
As unit:
Step S10642, if the corresponding flag information of the first elementary area is the first flag information, from default storage
The first elementary area is read in region.
Step S10644, if the corresponding flag information of the second elementary area is the second flag information, to the second image
The adjacent processed elementary area of unit is replicated.
In the first optional scheme, when alignments is laterally compare, as shown in Figure 2 a, the first row is being read out
In after first elementary area, the flag marks of second elementary area in the first row can be read from flag_ram, such as
Fruit flag=0, then start read operation, and second elementary area in the first row of storage is read out from internal memory or DDR;If
Flag=1, then do not start read operation, and first elementary area in the first row is directly replicated to exporting, in the first row second is used as
Individual elementary area;The flag marks of the 3rd elementary area in the first row are read from flag_ram, if flag=0, are opened
Dynamic read operation, reads out the 3rd elementary area in the first row of storage from internal memory or DDR;If flag=1, do not start
Read operation, second elementary area in the first row is directly replicated and exported, be used as the 3rd elementary area in the first row;Class successively
Push away, after the flag marks of first elementary area in reading per a line from flag_ram, if flag=1, do not start
Read operation, the elementary area of last in lastrow is directly replicated and exported, be used as first elementary area in every a line.
In second of optional scheme, when alignments compare for longitudinal direction, as shown in Figure 2 b, first row is being read out
In after first elementary area, the flag marks of second elementary area in first row can be read from flag_ram, such as
Fruit flag=0, then start read operation, and second elementary area in the first row of storage is read out from internal memory or DDR;If
Flag=1, then do not start read operation, and first elementary area in first row is directly replicated to exporting, in first row second is used as
Individual elementary area;The flag marks of the 3rd elementary area in first row are read from flag_ram, if flag=0, are opened
Dynamic read operation, reads out the 3rd elementary area in the first row of storage from internal memory or DDR;If flag=1, do not start
Read operation, second elementary area in first row is directly replicated and exported, be used as the 3rd elementary area in first row;Class successively
Push away, after the flag marks of first elementary area during each row are read from flag_ram, if flag=1, do not start
Read operation, the elementary area of last in previous column is directly replicated and exported, be used as first elementary area in each row.
In the third optional scheme, when alignments be transverse and longitudinal compare, and laterally compare priority it is high when, such as Fig. 2 c
It is shown, after first elementary area in reading out the first row, second figure in the first row can be read from flag_ram
As the flag of unit indicates, if flag=00, start read operation, read out from internal memory or DDR in the first row of storage
Second elementary area;If flag=10, do not start read operation, first elementary area in the first row is directly replicated defeated
Go out, be used as second elementary area in the first row;The like, until reading out all elementary areas in the first row.From flag_
The flag marks of first elementary area are read in the second row in ram, if flag=00, start read operation, from internal memory or
First elementary area in the second row of storage is read out in DDR;If flag=10, do not start read operation, directly by
The elementary area of last in a line replicates output, is used as first elementary area in the second row;If flag=01, do not open
Dynamic read operation, first elementary area in the first row is directly replicated and exported, be used as first elementary area in the second row;Successively
Analogize, until reading out all elementary areas.
In the 4th kind of optional scheme, when alignments be transverse and longitudinal compare, and longitudinal direction compare priority it is high when, such as Fig. 2 c
It is shown, after first elementary area in reading out first row, second figure in first row can be read from flag_ram
As the flag of unit indicates, if flag=00, start read operation, read out from internal memory or DDR in the first row of storage
Second elementary area;If flag=01, do not start read operation, first elementary area in first row is directly replicated defeated
Go out, be used as second elementary area in first row;The like, until reading out all elementary areas in first row.From flag_
The flag marks of first elementary area in secondary series are read in ram, if flag=00, start read operation, from internal memory or
First elementary area in the secondary series of storage is read out in DDR;If flag=01, do not start read operation, directly by
Last elementary area replicates output in one row, is used as first elementary area in secondary series;If flag=10, do not open
Dynamic read operation, first elementary area in first row is directly replicated and exported, be used as first elementary area in secondary series;Successively
Analogize, until reading out all elementary areas.
Step S1066, multiple images unit is combined, and obtains pending view data.
In a kind of optional scheme, all elementary areas read out can be combined according to fractionation mode,
So as to the pending view data got.
Alternatively, in the above embodiment of the present invention, in step S106, believed according to the corresponding mark of each elementary area
Breath, is obtained after pending view data, this method also includes from default storage region:
Step S112, pending view data is deposited into the second ping-pong buffer area.
, can be using table tennis in order to not influence image to be stored in internal memory or DDR efficiency in a kind of optional scheme
Buffer mode carries out data buffer storage, and pending view data after combination is stored in table tennis buffer, and is led to
Cross table tennis buffer to export pending view data into follow-up processing module, so as to realize to pending picture number
According to the purpose handled.
Fig. 4 is a kind of flow chart of the processing method of optional view data according to embodiments of the present invention, with reference to
A kind of preferred embodiment of the invention is described in detail Fig. 4, as shown in figure 4, this method may include steps of:
Step S41, the video and picture signal of collection are placed into buffer and cached.
Alternatively, in order to not influence image to store the efficiency to internal memory or DDR, carried out by the way of table tennis buffer
Data buffer storage.
Step S42, by the digital independent of buffer memory storages, and is written in internal memory or DDR.
Alternatively, when data are read from buffer, according to characteristics of image, choose a kind of preferable control algolithm and carry out logarithm
According to being handled, the selection of the control algolithm depends on three factors, specific as follows:First factor is the tool in input picture source
Body resolution ratio, different resolution ratio can select different control algolithms;Second factor is the elementary cell of control algolithm, control
Unit processed can select a line for image, can also select 1/2,1/4,1/8 ... for image a line, different selection institutes
Need the flag_ram of consumption resource different, the amount of bandwidth to reduction internal memory or DDR is also different, and flag_ram
Resource occupation it is bigger, reduction internal memory or DDR bandwidth it is more obvious;3rd factor is the manner of comparison of elementary cell, can be with
Individually selection elementary cell carries out lateral comparison with adjacent elementary cell, can also individually select elementary cell and adjacent base
This unit carries out longitudinal comparison, can also select elementary cell with adjacent elementary cell while carrying out horizontal, longitudinal comparison, work as horizontal stroke
To or only longitudinal comparison when, flag_ram bit wide selection be 1bit, when transverse direction+longitudinal comparison, flag_ram position
Width selection is 2bit, and RAM resources, which increase, to be twice, but its bandwidth to reduction internal memory or DDR also has income by about one time.
For example, for 1080p image, the data for choosing 1920 YUV or RGB of a line are basic control unit.One
The first row of two field picture is bound in write-in internal memory or DDR, and produces flag and be masked as 0, and mark is stored to flag_ram
In.During the first row write operation, the second row data in table tennis buffer are read, are compared with the first row data, such as
Really the second row data are identical with the first row data correspondence position comparing, then produce flag and be masked as 1, mark is stored
Into flag_ram, and the data of the second row are controlled without write operation;If the second row data are corresponding with the first row data
Position data comparison is incomplete same, then produces flag and be masked as 0, mark is stored into flag_ram, and control second
Capable data proceed write operation, and the second row data are write in internal memory or DDR;The like push away at the data of other rows
Reason, is completed until a complete frame is operated.
Step S43, data are read from internal memory or DDR.
Alternatively, when reading data from internal memory or DDR, the corresponding row of correspondence frame is read first from flag_ram
Flag indicates.The first row flag marks one per frame are set to 0, it is necessary to read the data of the first row from DDR;Starting the second row
Read operation before, read the flag marks of the second row of correspondence frame in flag_ram, if this is masked as 0, continue to start the
The read operation of two rows;If this is masked as 1, the data of the second row are not read, it is directly that the data duplication portion of the first row is defeated
Go out;The like other rows data processing, completed until a complete frame is operated.
Step S44, the data of reading are output to other processing modules by buffer controls.
By above-mentioned steps, recessive information can be extracted, and control by recessive information by analyzing feature of image
DDR storage and reading, to reduce DDR bandwidth, and due to extracting the recessive character of image, it is only necessary to increase less place
Logic is managed, compared with currently existing scheme, area and cost is reduced, and the delay for storing and handling without image.
Embodiment 2
There is provided a kind of embodiment of the processing unit of view data according to embodiments of the present invention.
Fig. 5 is a kind of schematic diagram of the processing unit of view data according to embodiments of the present invention, as shown in figure 5, the dress
Put including:
First acquisition unit 51, the multiple images unit of pending view data for obtaining, and each image list
The corresponding flag information of member, wherein, flag information is used for whether mark to carry out storage operation to each elementary area.
Specifically, above-mentioned pending view data can be shown in one in the screen picture in computer screen
Frame, but it is not limited only to this;Above-mentioned elementary area can be in various ways, after being split to pending view data
Image, for example, can be according in units of 1/2,1/4,1/8 etc. of a line of image or image a line, to view data
Split;Above-mentioned flag information can be the information for whether to elementary area store operation for mark, for example, such as
Fruit flag information is a flag mark, then can store corresponding elementary area with flag=0 marks, be indicated with flag=1
Corresponding elementary area is not stored.
First memory cell 53, for according to the corresponding flag information of each elementary area, by least one elementary area
Store the default storage region into double-speed SDRAM.
Specifically, at least one above-mentioned elementary area can be that corresponding flag information needs to carry out storage behaviour for mark
The unit of work;Above-mentioned default storage region can be that double-speed SDRAM DDR (is Double Data
Rate abbreviation) in be used to store the region of pending view data.
Second acquisition unit 55, for according to the corresponding flag information of each elementary area, being obtained from default storage region
Take pending view data.
Output unit 57, the pending view data for exporting.
, can be to pending image after the pending view data collected in a kind of optional scheme
Data are split, and obtain multiple images unit, and according to the characteristics of image of each elementary area, judge that each elementary area is
It is no to need storage, so that the flag information of each elementary area is obtained, then according to each elementary area, it would be desirable to the figure of storage
As unit is stored into internal memory or DDR.When pending screen picture is read from internal memory or DDR, it can get first every
The flag information of individual elementary area, and according to the flag information of each elementary area, each image is got from internal memory and DDR
Unit, is combined to multiple images unit, obtains pending view data, and the pending view data read out is defeated
Go out to processing module, so as to realize the purpose handled pending view data.
According to the above embodiment of the present invention, the multiple images unit of pending view data, and each image are obtained
The corresponding flag information of unit, according to the corresponding flag information of each elementary area, at least one elementary area is stored to double
Default storage region in speed SDRAM, according to the corresponding flag information of each elementary area, from pre-
If obtaining pending view data in storage region, pending view data is exported.It is easily noted that, due to basis
Flag information, integral image calculation unit in the middle part of the multiple images unit of pending view data is stored, rather than will wait to locate
The view data of reason is stored or stored again after pending view data is compressed, and is read according to flag information
To pending view data, moreover, only needing to get before pending view data is stored pending
The multiple images unit of view data, only needs to increase a small amount of processing logic, you can reduce DDR storage tape so as to realize
Wide purpose, solves image storage method in the prior art and, in order to reduce DDR memory bandwidths, adds a large amount of process resources,
Cause area and the increased technical problem of cost.Therefore, the scheme provided by the above embodiment of the present invention, can reach reduction
The technique effect of DDR memory bandwidth, reduction area and cost.
Alternatively, in the above embodiment of the present invention, first acquisition unit 51 includes:
Determining module, for determining that the corresponding flag information of first elementary area in multiple images unit is the first mark
Will information.
First acquisition module, for obtaining in the following way in multiple images unit in addition to first elementary area
The corresponding flag information of each elementary area:According to each elementary area is compared with processed elementary area pixel-by-pixel
It is right, judge whether each elementary area is identical with processed elementary area, if each elementary area and processed image
Unit is differed, it is determined that each corresponding flag information of elementary area is the first flag information, if each elementary area with
Processed elementary area is identical, it is determined that the corresponding flag information of each elementary area is the second flag information.
Alternatively, in the above embodiment of the present invention, processed elementary area includes:With the horizontal phase of each elementary area
Elementary area that is adjacent and getting flag information, and/or, it is longitudinally adjacent and get the figure of flag information with each elementary area
As unit.
Alternatively, in the above embodiment of the present invention, the first memory cell 53 includes:
First memory module, if being the first flag information for the corresponding flag information of the first elementary area, by the
One elementary area is stored to default storage region.
Second memory module, if being the second flag information for the corresponding flag information of the second elementary area, forbids
Second elementary area is stored to default storage region.
Alternatively, in the above embodiment of the present invention, the device also includes:Second memory cell, for by each image
The corresponding flag information of unit is stored into flag information random access memory.
Alternatively, in the above embodiment of the present invention, first acquisition unit 51 includes:
Second acquisition module, the pending view data for obtaining.
Module is split, for being split to pending view data, multiple images unit is obtained.
Alternatively, in the above embodiment of the present invention, the device also includes:3rd memory cell, for will be pending
View data is deposited into the first ping-pong buffer area.
Alternatively, in the above embodiment of the present invention, second acquisition unit 55 includes:
First read module, for reading first elementary area in multiple images unit from default storage region.
Second read module, for reading in the following way in multiple images unit in addition to first elementary area
Each elementary area:If the corresponding flag information of the first elementary area is the first flag information, from default storage region
The first elementary area is read, if the corresponding flag information of the second elementary area is the second flag information, to the second image list
The adjacent processed elementary area of member is replicated.
Composite module, for multiple images unit to be combined, obtains pending view data.
Alternatively, in the above embodiment of the present invention, the device also includes:4th memory cell, for will be pending
View data is deposited into the second ping-pong buffer area.
It should be noted that the preferred embodiment in the present embodiment may refer to the associated description in embodiment 1, herein
Repeat no more.
Embodiment 3
There is provided a kind of embodiment of the processing system of view data according to embodiments of the present invention.
Fig. 6 is a kind of schematic diagram of the processing system of view data according to embodiments of the present invention, as shown in fig. 6, this is
System includes:
Control device 61, the multiple images unit of pending view data for obtaining, and each elementary area pair
The flag information answered, wherein, flag information is used for whether mark to carry out storage operation to each elementary area.
Specifically, above-mentioned pending view data can be shown in one in the screen picture in computer screen
Frame, but it is not limited only to this;Above-mentioned elementary area can be in various ways, after being split to pending view data
Image, for example, can be according in units of 1/2,1/4,1/8 etc. of a line of image or image a line, to view data
Split;Above-mentioned flag information can be the information for whether to elementary area store operation for mark, for example, such as
Fruit flag information is a flag mark, then can store corresponding elementary area with flag=0 marks, be indicated with flag=1
Corresponding elementary area is not stored.
First processor 63, is connected with control device, for according to the corresponding flag information of each elementary area, will at least
One elementary area stores the default storage region into double-speed SDRAM.
Specifically, at least one above-mentioned elementary area can be that corresponding flag information needs to carry out storage behaviour for mark
The unit of work;Above-mentioned default storage region can be that double-speed SDRAM DDR (is Double Data
Rate abbreviation) in be used to store the region of pending view data.
Second processor 65, is connected with control device, for according to the corresponding flag information of each elementary area, from default
Pending view data is obtained in storage region.
Control device is additionally operable to export pending view data.
, can be to pending image after the pending view data collected in a kind of optional scheme
Data are split, and obtain multiple images unit, and according to the characteristics of image of each elementary area, judge that each elementary area is
It is no to need storage, so that the flag information of each elementary area is obtained, then according to each elementary area, it would be desirable to the figure of storage
As unit is stored into internal memory or DDR.When pending screen picture is read from internal memory or DDR, it can get first every
The flag information of individual elementary area, and according to the flag information of each elementary area, each image is got from internal memory and DDR
Unit, is combined to multiple images unit, obtains pending view data, and the pending view data read out is defeated
Go out to processing module, so as to realize the purpose handled pending view data.
According to the above embodiment of the present invention, the multiple images unit of pending view data, and each image are obtained
The corresponding flag information of unit, according to the corresponding flag information of each elementary area, at least one elementary area is stored to double
Default storage region in speed SDRAM, according to the corresponding flag information of each elementary area, from pre-
If obtaining pending view data in storage region, pending view data is exported.It is easily noted that, due to basis
Flag information, integral image calculation unit in the middle part of the multiple images unit of pending view data is stored, rather than will wait to locate
The view data of reason is stored or stored again after pending view data is compressed, and is read according to flag information
To pending view data, moreover, only needing to get before pending view data is stored pending
The multiple images unit of view data, only needs to increase a small amount of processing logic, you can reduce DDR storage tape so as to realize
Wide purpose, solves image storage method in the prior art and, in order to reduce DDR memory bandwidths, adds a large amount of process resources,
Cause area and the increased technical problem of cost.Therefore, the scheme provided by the above embodiment of the present invention, can reach reduction
The technique effect of DDR memory bandwidth, reduction area and cost.
Alternatively, in the above embodiment of the present invention, control device includes:
3rd processor, for determining that the corresponding flag information of first elementary area in multiple images unit is first
Flag information, and each elementary area pair in multiple images unit in addition to first elementary area is obtained in the following way
The flag information answered:According to each elementary area is compared with processed elementary area pixel-by-pixel, each image is judged
Whether unit is identical with processed elementary area, if each elementary area is differed with processed elementary area, really
It is the first flag information to determine the corresponding flag information of each elementary area, if each elementary area and processed elementary area
It is identical, it is determined that the corresponding flag information of each elementary area is the second flag information.
Alternatively, in the above embodiment of the present invention, processed elementary area includes:With the horizontal phase of each elementary area
Elementary area that is adjacent and getting flag information, and/or, it is longitudinally adjacent and get the figure of flag information with each elementary area
As unit.
Alternatively, in the above embodiment of the present invention, if first processor is additionally operable to the corresponding mark of the first elementary area
Will information is the first flag information, then stores the first elementary area to default storage region;If the second elementary area correspondence
Flag information be the second flag information, then forbid storing the second elementary area to default storage region.
Alternatively, in the above embodiment of the present invention, control device includes:
Flag information random access memory, for storing the corresponding flag information of each elementary area.
Alternatively, control device includes:Fourth processing unit, the pending view data for obtaining, and to pending
View data split, obtain multiple images unit.
Alternatively, control device also includes:First ping-pong buffer area, is connected with fourth processing unit, for will be pending
View data deposit into the first ping-pong buffer area.
Alternatively, in the above embodiment of the present invention, second processor is additionally operable to read from default storage region multiple
First elementary area in elementary area, and read in the following way in multiple images unit except first elementary area it
Outer each elementary area:If the corresponding flag information of the first elementary area is the first flag information, from default memory block
The first elementary area is read in domain, if the corresponding flag information of the second elementary area is the second flag information, to the second figure
As the adjacent processed elementary area of unit is replicated;Multiple images unit is combined, pending image is obtained
Data.
Alternatively, in the above embodiment of the present invention, control device includes:Second ping-pong buffer area, at described second
Manage device connection, the pending view data for storing.
It should be noted that the preferred embodiment in the present embodiment may refer to the associated description in embodiment 1, herein
Repeat no more.
Fig. 7 is a kind of schematic diagram of the processing system of optional view data according to embodiments of the present invention, and Fig. 8 is basis
The schematic diagram of a kind of optional control device of the embodiment of the present invention, with reference to Fig. 7 and Fig. 8 to a kind of preferred reality of the present invention
Example is applied to be described in detail.As shown in fig. 7, the system can include:DDR, (the first i.e. above-mentioned processing of write operation control module
Device), read operation control module (i.e. above-mentioned first processor), flag information control module (i.e. above-mentioned control device) and place
Module is managed, wherein, DDR is important component, the main storage for completing data, because the data volume of view data is very big, is used
DDR storage scheme is more effective;Write operation control module is important component, and the main DDR that writes for completing view data controls work(
Energy;Read operation control module is important component, the main reading DDR control functions for completing view data;Flag information control module
It is key component, the main feature extraction for completing view data, and storing extraction for the read-write control to DDR
System;Processing module is accessory part, main other processing completed after view data is read.As shown in figure 8, flag information is controlled
Module can include two table tennis buffer, data comparator, flag_ram and controller, wherein, first table tennis buffer
Data buffer storage is carried out for the video and picture signal to collection, so as to influence image to store the efficiency to internal memory or DDR;The
Two table tennis buffer are used to carry out data buffer storage to the data of reading;Data comparator is used to be compared two elementary areas
Compared with the flag for obtaining elementary area indicates;Flag_ram is used for the flag marks for storing each elementary area;Controller be used for pair
First table tennis buffer and flag_ram is controlled.
Embodiment 4
According to embodiments of the present invention there is provided a kind of embodiment of storage medium, storage medium includes the program of storage, its
In, equipment where controlling storage medium when program is run performs the processing method of the view data in above-described embodiment 1.
Embodiment 5
There is provided a kind of embodiment of processor according to embodiments of the present invention.Processor is used for operation program, wherein, journey
The processing method of the view data in above-described embodiment 1 is performed during sort run.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment
The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, others can be passed through
Mode is realized.Wherein, device embodiment described above is only schematical, such as division of described unit, Ke Yiwei
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of unit or module by some interfaces
Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially
The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer
Equipment (can for personal computer, server or network equipment etc.) perform each embodiment methods described of the invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes
Medium.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.