CN106331716A - Video compression method and device - Google Patents
Video compression method and device Download PDFInfo
- Publication number
- CN106331716A CN106331716A CN201610796104.7A CN201610796104A CN106331716A CN 106331716 A CN106331716 A CN 106331716A CN 201610796104 A CN201610796104 A CN 201610796104A CN 106331716 A CN106331716 A CN 106331716A
- Authority
- CN
- China
- Prior art keywords
- color
- value
- index table
- component
- color index
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/186—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
Abstract
The invention discloses a video compression method and device. The video compression method comprises the steps of acquiring at least one frame in the video; acquiring a color histogram of the frame, and counting the number of color components of the color histogram; acquiring a color index table and/or a color index map of the frame according to the number of color components, wherein the color index table comprises color values corresponding to different number of color components of the frame, and the color index map comprises color values of each pixel position of the frame; and performing compression coding on the color index table and/or the color index map to acquire a compressed code stream of the video. The video compression method and device solve the problem that a video compression algorithm adopted in the prior art cannot meet a transmission bandwidth requirements.
Description
Technical field
The application relates to image processing field, in particular to a kind of video-frequency compression method and device.
Background technology
The video image shown based on screen is the video sequence that a class is complicated, and the video image traditional with prior art is not
Be its each two field picture be all combination picture, the video image that screen shows is mainly used at different computer screens
Between share picture.
For the convenience used, usually need between these shared equipment to use wireless network to carry out data transmission, due to
The bandwidth of wireless network is relatively low, it is desirable to realize transmitting screen video between different shared equipment, it is necessary to it is carried out big times
The compression of number just can realize the Real-Time Sharing between equipment.
Analyzing and understand, each frame of the video image that screen shows is a hybrid computer image, uses common
Compression for Natural Images cannot meet the demand of transmission bandwidth, and uses the general color index template cannot be to greatest extent
Utilize the characteristic of screen video image, do not reach preferable compression performance, the environment that bandwidth is less also cannot be realized screen
Real-Time Sharing.
It follows that the compression of big multiple can have a strong impact on the subjective display quality of video, the biggest compression multiple and subjectivity
Recover the key that preferable compress technique is screen video image compression.
The problem that cannot meet transmission bandwidth demand for the video compression algorithm used in prior art, the most not yet carries
Go out effective solution.
Summary of the invention
The embodiment of the present application provides a kind of video-frequency compression method and device, with regarding of at least solving to use in prior art
Frequently the problem that compression algorithm cannot meet transmission bandwidth demand.
An aspect according to the embodiment of the present application, it is provided that a kind of video-frequency compression method, the method includes: obtain video
In at least one frame;The color histogram of getting frame, and the quantity of the histogrammic color component of statistical color;According to color component
The color index table of quantity getting frame and/or color index figure, wherein, color index table includes the color of the varying number of frame
Color value corresponding to component, color index figure includes the color value of each location of pixels of frame;To color index table and/or face
Color index map is compressed coding, obtains the compressed bit stream of video.
Further, color index table and/or color index figure are compressed coding, obtain the compressed bit stream of video,
Including: when the color component value of current location is compressed in color index table, use the color component of previous position
Value is as predictive value, and the difference subtracted each other with the color component value of current location carries out lossless compress;Color index figure is used figure
Coding directly it is compressed as compression algorithm.
Further, the quantity of the histogrammic color component of statistical color includes: by color histogram according to probability from greatly
Arrange to little;Statistical probability is in number N of the color component in the range of predetermined probability.
Further, according to the color index table of the quantity getting frame of color component, including: read N number of color component
Color value;The color value of each color component is compared with the color value in the color index table of standard respectively;In standard
Color index table in the difference of color value and corresponding color component less than or equal in the case of first threshold, obtain color and divide
The color value that amount is corresponding;According to each color value and the numbering of correspondence, the color index table of getting frame.
Further, according to the color index figure of the quantity getting frame of color component, including: the color index of getting frame
Table, and the color component of each location of pixels of frame;By the color component of each location of pixels and the face in color index table
Colour is compared;Color value in color index table is less than or equal to second with the difference of the color component of respective pixel position
In the case of threshold value, obtain the color value of each location of pixels;Color value according to each location of pixels obtains the color rope of frame
Draw figure.
According to the another aspect of the embodiment of the present application, additionally providing a kind of video compress device, this device includes: obtain mould
Block, for obtaining at least one frame in video, and the color histogram of frame, and the number of the histogrammic color component of statistical color
Amount;Index map acquisition module, for color index table and/or the color index figure of the quantity getting frame according to color component, its
In, color index table includes that the color value corresponding to the color component of the varying number of frame, color index figure include each of frame
The color value of location of pixels;Compression module, for color index table and/or color index figure being compressed coding, depending on
The compressed bit stream of frequency.
Further, above-mentioned compression module may include that the first sub-compression module, for current in color index table
When the color component value of position is compressed, use the color component value of previous position as predictive value, with current location
The difference that color component value is subtracted each other carries out lossless compress;Second sub-compression module, for using compression of images to color index figure
Algorithm is directly compressed coding.
Further, above-mentioned acquisition module may include that sub-order module, for by color histogram according to probability from greatly
Arrange to little;Sub-statistical module, number N of the color component in the range of statistical probability is in predetermined probability.
Further, above-mentioned index map acquisition module may include that sub-read module, for reading N number of color component
Color value;First sub-comparing module, for by the color value of each color component respectively with the face in the color index table of standard
Colour is compared;First sub-generation module, for color value and corresponding color component in the color index table of standard
Difference, less than or equal in the case of first threshold, obtains the color value that color component is corresponding;First sub-acquisition module, for basis
Each color value and the numbering of correspondence, the color index table of getting frame.
Further, above-mentioned index map acquisition module may include that the second sub-acquisition module, for the color rope of getting frame
Draw table, and the color component of each location of pixels of frame;Second sub-comparing module, for dividing the color of each location of pixels
Amount is compared with the color value in color index table;Second sub-generation module, in color index table color value with
The difference of the color component of respective pixel position, less than or equal in the case of Second Threshold, obtains the color of each location of pixels
Value;3rd sub-acquisition module, for obtaining the color index figure of frame according to the color value of each location of pixels.
In the embodiment of the present application, the first two field picture in acquisition video image, and obtain the color histogram of this frame, so
The quantity of the color component of the color histogram of rear statistics present frame, the characteristic finally according to color histogram generates present frame
Color index table, and obtained the color index figure of present frame by color index table, herein it should be noted that owing to the present invention adopts
By screen video video compression technology based on color index, thus, the embodiment of the present application solves in prior art and uses
Video compression algorithm cannot meet the technical problem of transmission bandwidth demand.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen
Schematic description and description please is used for explaining the application, is not intended that the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the Organization Chart of screen video codec according to embodiments of the present invention;
Fig. 2 is the flow chart of a kind of video-frequency compression method according to the embodiment of the present application;
Fig. 3 is screen video image compression work flow chart based on color index according to embodiments of the present invention;
Fig. 4 is the color scheme of the view that color component number N is 7 according to embodiments of the present invention;
Fig. 5 is the result using general method for compressing image to be compressed coding based on embodiment illustrated in fig. 4 signal
Figure;And
Fig. 6 is the schematic diagram of a kind of video compress device according to the embodiment of the present application.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the application scheme, below in conjunction with in the embodiment of the present application
Accompanying drawing, is clearly and completely described the technical scheme in the embodiment of the present application, it is clear that described embodiment is only
The embodiment of the application part rather than whole embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained under not making creative work premise, all should belong to the model of the application protection
Enclose.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, "
Two " it is etc. for distinguishing similar object, without being used for describing specific order or precedence.Should be appreciated that so use
Data can exchange in the appropriate case, in order to embodiments herein described herein can with except here diagram or
Order beyond those described is implemented.Additionally, term " includes " and " having " and their any deformation, it is intended that cover
Cover non-exclusive comprising, such as, contain series of steps or the process of unit, method, system, product or equipment are not necessarily limited to
Those steps clearly listed or unit, but can include the most clearly listing or for these processes, method, product
Or intrinsic other step of equipment or unit.
According to the embodiment of the present application, it is provided that the embodiment of a kind of method for compressing image, it should be noted that at accompanying drawing
Step shown in flow chart can perform in the computer system of such as one group of computer executable instructions, and, although
Flow chart shows logical order, but in some cases, can perform shown with the order being different from herein or retouch
The step stated.
Fig. 1 is the Organization Chart of screen video codec according to embodiments of the present invention.
The invention provides a kind of compression of images can applied in the system that portable equipment and display apparatus are constituted
The method decompressed, understands based on the embodiment shown in Fig. 1, is compressed video image in portable equipment, i.e. after coding
The image obtained is sent to display apparatus, and the display apparatus image to obtaining carries out inversely processing, i.e. decoding process and obtains former
Image plays out.
In a kind of alternative embodiment, above-mentioned portable equipment can at least include following processing module: statistical color histogram
Module, color index table generation module, color index figure generation module, color index table coding module, color index graph code
Module and code stream organization module;Display apparatus can at least include: code stream splits module, color index table decoder module, face
Color index map decoder module and frame display module.
Wherein, above-mentioned statistical color histogram module at least implements function such as: the frame in obtaining screen video
After color histogram, can add up certain before occupying after being arranged from big to small according to probability by color histogram
Number N of percentage ratio (such as 95%) color component.
Color index table generation module at least implements function such as: read the color value of N number of color component, and by each face
The color value of colouring component is compared with the color value in the color index table of standard respectively, wherein, at the color index of standard
In table, color value is with the difference of corresponding color component less than or equal in the case of first threshold, obtains the face that color component is corresponding
Colour, finally according to each color value and the numbering of correspondence, the color index table of getting frame.
Color index figure generation module at least implements function such as: the color index table of getting frame, and each picture of frame
The color component of element position, can compare the color component of each location of pixels with the color value in color index table,
Wherein, the difference of the color component of the color value in color index table and respective pixel position is less than or equal to the feelings of Second Threshold
Under condition, obtain the color value of each location of pixels, finally obtain the color index figure of frame according to the color value of each location of pixels.
Color index table coding module at least implements function such as: the color component of current location in color index table
When value encodes, can use the color component value of previous position as predictive value, with the color component value of current location
The difference subtracted each other carries out the coding of lossless compress formula.
Color index graph code module at least implements function such as: image compression algorithm can be used straight color index figure
Tap into row compressed encoding.
Code stream organization module at least implements function such as: according to different credit ratings by bit stream to receiving terminal.
Wherein, the code stream in aforementioned display device equipment splits module, color index table decoder module, the decoding of color index figure
Function performed by module and frame display module be respectively above-mentioned statistical color histogram module, color index table generation module,
Color index figure generation module, color index table coding module, color index graph code module and the inverse mistake of code stream organization module
Journey, it is therefore intended that realize display apparatus and be decoded by the code stream received, obtains the raw video image that can show.
It follows that under the running environment shown in above-mentioned Fig. 1, the embodiment of the present application can provide a kind of video compress side
Method.Fig. 2 is the flow chart of a kind of video-frequency compression method according to the embodiment of the present application, as in figure 2 it is shown, the method can include as
Lower step:
Step S202, obtains at least one frame in video.
Step S204, the color histogram of getting frame, and the quantity of the histogrammic color component of statistical color.
Step S206, according to color index table and/or the color index figure of the quantity getting frame of color component, wherein, face
Color concordance list includes the color value corresponding to different colours component value of frame, and color index figure includes each location of pixels of frame
Color value.
Step S208, is compressed coding, obtains the compressed bit stream of video color index table and/or color index figure.
The embodiment that the application above-mentioned steps is provided provides a kind of video compression scheme, first obtains in video image
One two field picture, and obtain the color histogram of this two field picture, then add up the color histogram of present frame, such as, find every kind of face
Percentage ratio occupied by colouring component, finally according to the color index table of the characteristic generation present frame of color histogram, and by color
Concordance list obtains the color index figure of present frame, further, is compressed respectively compiling to color index table and color index figure
Code finally gives the compressed bit stream of screen video.Herein it should be noted that be for aobvious in screen owing to present invention employs
The video shown is compressed, and owing to needing big compression ratio to need again the characteristic that subjective display quality is good, therefore, uses in the present invention
State a kind of based on color index the screen video video compression technology that scheme provides, it is ensured that whole screen video video pressure
Compression system reaches preferable compression performance, so can realize compressed file meet transmission bandwidth demand.
In a kind of preferred embodiment, above-mentioned be compressed color index table and/or color index figure encodes, and obtains video
The scheme of compressed bit stream can include following optional embodiment:
When the color component value of current location is compressed in color index table, the color of previous position is used to divide
Value carries out lossless compress as predictive value, the difference subtracted each other with the color component value of current location.
Image compression algorithm is used directly to be compressed coding in color index figure.
In a kind of alternative embodiment, the quantity of the histogrammic color component of statistical color can include implementing step as follows:
First, color histogram is arranged from big to small according to probability.
Then, number N of the color component in the range of statistical probability is in predetermined probability.Permissible, can be with statistical color
Histogrammic probability occupies number N of the color component of front 95%.
In a kind of alternative embodiment, the color index table of the quantity getting frame of the above-mentioned color component according to color histogram
Scheme can include below embodiment step: read the color value of N number of color component;The color value of each color component is divided
Do not compare with the color value in the color index table of standard;Color value and corresponding color in the color index table of standard
The difference of component, less than or equal in the case of first threshold, obtains the color value that color component is corresponding;According to each color value and
Corresponding numbering, the color index table of getting frame.
Concrete, for each two field picture in the video of display in screen, if such as accounting for the color histogram of front 95%
In the case of color component number N of figure is 7, according to rule set in advance, when (N=7) < 8, then can generate 8 components
Color index table.Take front 8 bigger color value of probability in rectangular histogram, with the color value in 256 color color index tables of standard
Contrasting, 8 color value the most close in the quasi-concordance list of label taking generate 8 value concordance lists of present frame.
Preferably, the above-mentioned scheme according to the color index figure of the quantity getting frame of color component can include implementing as follows
Step: the color index table of getting frame, and the color component of each location of pixels of frame;The color of each location of pixels is divided
Amount is compared with the color value in color index table;The color of the color value in color index table and respective pixel position is divided
The difference of amount, less than or equal in the case of Second Threshold, obtains the color value of each location of pixels;According to each location of pixels
Color value obtains the color index figure of frame.
Concrete, above preferred embodiment can realize each location of pixels color component of present frame and present frame
Color index table is compared, and takes the color value as current pixel point of the color value corresponding to the most close color.To index
Figure can use general method for compressing image to be compressed coding.
It follows that in a two field picture of video, every kind of face can be found by the color histogram of statistics present frame
Percentage ratio occupied by colouring component, then the characteristic according to color histogram generates the concordance list of present frame, and is obtained by concordance list
To the index map of present frame, it is compressed respectively concordance list and index map encoding the compressed bit stream finally giving screen video,
And then realize a kind of compression method that can meet network demand.
Fig. 3 is screen video image compression work flow chart based on color index according to embodiments of the present invention;Fig. 4 is
The color scheme of the view that color component number N is 7 according to embodiments of the present invention;Fig. 5 is based on embodiment illustrated in fig. 4
General method for compressing image is used to be compressed the result schematic diagram of coding.
The present invention is described in detail for 3 to 5 detailed description of the invention provided below in conjunction with the accompanying drawings.
Step S301, obtains the frame in screen video, and calculates its color histogram.As it is shown on figure 3, table can be obtained
A two field picture in the video play on face, if size is 32 × 32.
Step S303, arranges according to probability from big to small by color histogram.
Step S305, adds up number N of color component in the probability occupying front 95%.
Concrete, as it is shown on figure 3, add up the number of the color component of the color histogram obtained, account for the color of front 95%
Component number N can be 7.
Step S307, when N≤8, generates the color index table of 8 components.Take front 8 bigger color value of probability in rectangular histogram,
Contrast with the color value in 256 color color index tables of the standard got, 8 face the most close in the quasi-concordance list of label taking
Colour generates present frame 8 and is worth concordance list.
Concrete, as it is shown on figure 3, when (N=7) < in the example of 8, the color index table of 8 components can be generated, the most permissible
Take the color value in the color value of front 8 bigger color components of probability, with 256 color color index tables of standard in color histogram
Contrasting, 8 color value the most close in the quasi-concordance list of label taking generate present frame 8 and are worth concordance list.
Step S309, when 8 < N≤16, generates the color index table of 16 components.Take front 16 probability relatively great Yan in rectangular histogram
Color value in colour, with 256 color color index tables of standard contrasts, 16 colors the most close in the quasi-concordance list of label taking
Value generates present frame 16 and is worth concordance list.
Step S311, when 16 < N≤32, generates the color index table of 32 components.Take front 32 probability in rectangular histogram bigger
Color value in color value, with 256 color color index tables of standard contrasts, 32 face the most close in the quasi-concordance list of label taking
Colour generates present frame 32 and is worth concordance list.
Step S313, when 32 < N≤64, generates the color index table of 64 components.Take front 64 probability in rectangular histogram bigger
Color value in color value, with 256 color color index tables of standard contrasts, 64 face the most close in the quasi-concordance list of label taking
Colour generates present frame 64 and is worth concordance list.
Step S315, when 64 < N≤128, generates the color index table of 128 components.Take in rectangular histogram front 128 probability relatively
Color value in big color value, with 256 color color index tables of standard contrasts, in the quasi-concordance list of label taking the most close 128
Individual color value generates present frame 128 and is worth concordance list.
Step S317, as 128 > N, 256 color color index tables of label taking standard are as the concordance list of present frame.
Step S319, encodes the concordance list of present frame.Only need the number of index value in code index table, and respectively
The one-dimensional sequence of individual color component index value composition in standard 256 color concordance list.Due to color in newly-generated concordance list
The ordering of component is consistent with the arrangement number of times of the color component of original standard 256 color concordance list, to new concordance list
(this one-dimensional sequence) be compressed coding time, can by use prediction in the way of, i.e. use the value of previous position as predictive value,
The difference subtracted each other with the value of current location carries out lossless compress.
Step S321, compares the color index table of each location of pixels color component of present frame with present frame,
Take the index value as current pixel point of the index value corresponding to the most close color.Index map can be used general image pressure
Compression method is compressed coding, such as, index map can use general method for compressing image be compressed coding.
Concrete, the view with color index table and index map shown in Fig. 4 can be compressed, obtain such as Fig. 5
Shown compression result.
Step S323, organizes together according to different types of compressed bit stream and is transferred to receiving terminal.
Concrete, different types of code stream is decoded and shows by decoding end.
From the foregoing, it will be observed that the embodiment that the present invention provides contains following advantage: compatible good: algorithm is that software realizes supporting
Polymorphic type mobile terminal, including the equipment such as mobile phone, pad;Wide adaptability: the encoder of screen video image, every needs are to screen
The system that curtain video image is compressed all can be applied;Experience: user can be according to the number self needing designing quality grade.
Transmission display effect is good, and Consumer's Experience is good.
It is compressed according to each piece of corresponding different credit rating.It should be noted that for aforesaid each method
Embodiment, in order to be briefly described, therefore all be expressed as it a series of combination of actions, but those skilled in the art should know
Knowing, the application is not limited by described sequence of movement, because according to the application, some step can use other orders
Or carry out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description belongs to preferred reality
Execute example, necessary to involved action and module not necessarily the application.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive according to above-mentioned enforcement
The method of example can add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware, but a lot
In the case of the former is more preferably embodiment.Based on such understanding, the technical scheme of the application is the most in other words to existing
The part that technology contributes can embody with the form of software product, and this computer software product is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, calculate
Machine, server, or the network equipment etc.) perform the method described in each embodiment of the application.
According to the embodiment of the present application, additionally provide the video of a kind of video-frequency compression method for implementing above-described embodiment 1
The embodiment of compressor.
Fig. 6 is the schematic diagram of a kind of video compress device according to the embodiment of the present application, and as shown in Figure 6, this device 600 can
To include: acquisition module 602, index map acquisition module 604 and compression module 606.
Wherein, acquisition module 602, for obtaining at least one frame in video, and the color histogram of frame, and add up face
The quantity of the color component of Color Histogram;Index map acquisition module 604, for the color of the quantity getting frame according to color component
Concordance list and/or color index figure, wherein, color index table includes the color corresponding to the color component of the varying number of frame
Value, color index figure includes the color value of each location of pixels of frame;Compression module 606, for color index table and/or face
Color index map is compressed coding, obtains the compressed bit stream of video.
The embodiment that the application above-mentioned steps is provided provides a kind of video compression scheme, first obtains in video image
One two field picture, and obtain the color histogram of this two field picture, then add up the color histogram of present frame, such as, find every kind of face
Percentage ratio occupied by colouring component, finally according to the color index table of the characteristic generation present frame of color histogram, and by color
Concordance list obtains the color index figure of present frame, further, is compressed respectively compiling to color index table and color index figure
Code finally gives the compressed bit stream of screen video.Herein it should be noted that be for aobvious in screen owing to present invention employs
The video shown is compressed, and owing to needing big compression ratio to need again the characteristic that subjective display quality is good, therefore, uses in the present invention
State a kind of based on color index the screen video video compression technology that scheme provides, it is ensured that whole screen video video pressure
Compression system reaches preferable compression performance, so can realize compressed file meet transmission bandwidth demand.
Preferably, above-mentioned compression module 606 may include that the first sub-compression module 6062, for color index table
When the color component value of middle current location is compressed, use the color component value of previous position as predictive value, and currently
The difference that the color component value of position is subtracted each other carries out lossless compress;Second sub-compression module 6064, for adopting color index figure
Coding directly it is compressed with image compression algorithm.
Preferably, above-mentioned acquisition module 602 may include that sub-order module 6022, is used for color histogram according to generally
Rate arranges from big to small;Sub-statistical module 6024, the color component in the range of statistical probability is in predetermined probability
Number N.
Preferably, above-mentioned index map acquisition module 604 may include that sub-read module 6042, is used for reading N number of color and divides
The color value of amount;First sub-comparing module 6044, for by the color value of each color component respectively with the color index of standard
Color value in table is compared;First sub-generation module 6048, for color value in the color index table of standard with corresponding
The difference of color component less than or equal in the case of first threshold, obtain the color value that color component is corresponding;First son obtains
Module 6050, for according to each color value and the numbering of correspondence, the color index table of getting frame.
Preferably, above-mentioned index map acquisition module 604 may include that the second sub-acquisition module 6052, for getting frame
Color index table, and the color component of each location of pixels of frame;Second sub-comparing module 6054, for by each pixel position
The color component put is compared with the color value in color index table;Second sub-generation module 6056, at color index
The difference of the color component of the color value in table and respective pixel position, less than or equal in the case of Second Threshold, obtains each picture
The color value of element position;3rd sub-acquisition module 6058, for obtaining the color rope of frame according to the color value of each location of pixels
Draw figure.
Above-mentioned the embodiment of the present application sequence number, just to describing, does not represent the quality of embodiment.
In above-described embodiment of the application, the description to each embodiment all emphasizes particularly on different fields, and does not has in certain embodiment
The part described in detail, may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents, can be passed through other
Mode realizes.Wherein, device embodiment described above is only schematically, the division of the most described unit, Ke Yiwei
A kind of logic function divides, actual can have when realizing other dividing mode, the most multiple unit or assembly can in conjunction with or
Person is desirably integrated into another system, or some features can be ignored, or does not performs.Another point, shown or discussed is mutual
Between coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, unit or module or communication link
Connect, can be being electrical or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit
The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple
On unit.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list
Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit realizes and as independent production marketing or use using the form of SFU software functional unit
Time, can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the application is substantially
The part that in other words prior art contributed or this technical scheme completely or partially can be with the form of software product
Embodying, this computer software product is stored in a storage medium, including some instructions with so that a computer
Equipment (can be for personal computer, server or the network equipment etc.) perform the whole of method described in each embodiment of the application or
Part steps.And aforesaid storage medium includes: USB flash disk, read only memory (ROM, Read-Only Memory), random access memory are deposited
Reservoir (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. are various can store program code
Medium.
The above is only the preferred implementation of the application, it is noted that for the ordinary skill people of the art
For Yuan, on the premise of without departing from the application principle, it is also possible to make some improvements and modifications, these improvements and modifications also should
It is considered as the protection domain of the application.
Claims (10)
1. a video-frequency compression method, it is characterised in that including:
Obtain at least one frame in video;
Obtain the color histogram of described frame, and add up the quantity of the color component of described color histogram;
Quantity according to described color component obtains color index table and/or the color index figure of described frame, wherein, described color
Concordance list includes that the color value corresponding to the color component of the varying number of described frame, described color index figure include described frame
The color value of each location of pixels;
Described color index table and/or color index figure are compressed coding, obtain the compressed bit stream of described video.
Method the most according to claim 1, it is characterised in that described color index table and/or color index figure are carried out
Compressed encoding, obtains the compressed bit stream of described video, including:
When the color component value of current location is compressed in described color index table, the color of previous position is used to divide
Value carries out lossless compress as predictive value, the difference subtracted each other with the color component value of described current location;
Image compression algorithm is used directly to be compressed coding in described color index figure.
Method the most according to claim 1 and 2, it is characterised in that add up the number of the color component of described color histogram
Amount, including:
Described color histogram is arranged from big to small according to probability;
Statistical probability is in number N of the color component in the range of predetermined probability.
Method the most according to claim 3, it is characterised in that obtain the face of described frame according to the quantity of described color component
Color concordance list, including:
Read the color value of N number of color component;
The color value of each color component is compared with the color value in the color index table of standard respectively;
In the color index table of described standard, color value is less than or equal to the feelings of first threshold with the difference of corresponding color component
Under condition, obtain the color value that described color component is corresponding;
According to each color value and the numbering of correspondence, obtain the color index table of described frame.
Method the most according to claim 4, it is characterised in that obtain the face of described frame according to the quantity of described color component
Color index map, including:
Obtain the color index table of described frame, and the color component of each location of pixels of described frame;
The color component of described each location of pixels is compared with the color value in described color index table;
Color value in described color index table is less than or equal to Second Threshold with the difference of the color component of respective pixel position
In the case of, obtain the color value of described each location of pixels;
Color value according to described each location of pixels obtains the color index figure of described frame.
6. a video compress device, it is characterised in that including:
Acquisition module, for obtaining at least one frame in video, and the color histogram of described frame, and it is straight to add up described color
The quantity of the color component of side's figure;
Index map acquisition module, obtains color index table and/or the color of described frame for the quantity according to described color component
Index map, wherein, described color index table includes the color value corresponding to color component of the varying number of described frame, described face
Color index map includes the color value of each location of pixels of described frame;
Compression module, for described color index table and/or color index figure are compressed coding, obtains the pressure of described video
Contracting code stream.
Device the most according to claim 6, it is characterised in that described compression module includes:
First sub-compression module, when in described color index table, the color component value of current location is compressed, adopts
Nothing is carried out as predictive value, the difference subtracted each other with the color component value of described current location by the color component value of previous position
Damage compression;
Second sub-compression module, for using image compression algorithm to be directly compressed coding in described color index figure.
8. according to the device described in claim 6 or 7, it is characterised in that described acquisition module includes:
Sub-order module, for arranging described color histogram from big to small according to probability;
Sub-statistical module, number N of the color component in the range of statistical probability is in predetermined probability.
Device the most according to claim 8, it is characterised in that described index map acquisition module includes:
Sub-read module, for reading the color value of N number of color component;
First sub-comparing module, for by the color value of each color component respectively with the color value in the color index table of standard
Compare;
First sub-generation module is little with the difference of corresponding color component for color value in the color index table of described standard
In the case of equal to first threshold, obtain the color value that described color component is corresponding;
First sub-acquisition module, for according to each color value and the numbering of correspondence, obtains the color index table of described frame.
Device the most according to claim 9, it is characterised in that described index map acquisition module, including:
Second sub-acquisition module, for obtaining the color index table of described frame, and the color of each location of pixels of described frame
Component;
Second sub-comparing module, for by the color component of described each location of pixels and the color value in described color index table
Compare;
Second sub-generation module, for the difference of the color value in described color index table with the color component of respective pixel position
Value, less than or equal in the case of Second Threshold, obtains the color value of described each location of pixels;
3rd sub-acquisition module, for obtaining the color index figure of described frame according to the color value of described each location of pixels.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610796104.7A CN106331716B (en) | 2016-08-31 | 2016-08-31 | Video-frequency compression method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610796104.7A CN106331716B (en) | 2016-08-31 | 2016-08-31 | Video-frequency compression method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106331716A true CN106331716A (en) | 2017-01-11 |
CN106331716B CN106331716B (en) | 2019-05-24 |
Family
ID=57786452
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610796104.7A Active CN106331716B (en) | 2016-08-31 | 2016-08-31 | Video-frequency compression method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106331716B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109819254A (en) * | 2019-01-31 | 2019-05-28 | 深圳市战音科技有限公司 | A kind of image compression transmission method damaged and system |
TWI691944B (en) * | 2019-01-23 | 2020-04-21 | 奇景光電股份有限公司 | Timing controller |
CN111510723A (en) * | 2019-01-30 | 2020-08-07 | 奇景光电股份有限公司 | Time sequence controller |
CN111787386A (en) * | 2020-06-01 | 2020-10-16 | 深圳市战音科技有限公司 | Animation compression method, animation display method, animation compression device, animation processing system, and storage medium |
WO2022234575A1 (en) * | 2021-05-05 | 2022-11-10 | Mythrealio Ltd | System and method for dynamic video compression |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103813173A (en) * | 2014-03-14 | 2014-05-21 | 北方工业大学 | BCIM-based 3D-HEVC rapid intra-frame predication scheme |
CN103957412A (en) * | 2014-05-06 | 2014-07-30 | 北京大学 | Base color and index map algorithm for correcting inter-frame residual errors of screen video |
CN105075272A (en) * | 2013-04-05 | 2015-11-18 | 高通股份有限公司 | Determining palette indices in palette-based video coding |
CN105323583A (en) * | 2014-06-13 | 2016-02-10 | 财团法人工业技术研究院 | Encoding method, decoding method, encoding/decoding system, encoder and decoder |
CN105828081A (en) * | 2015-01-28 | 2016-08-03 | 财团法人工业技术研究院 | Encoding method and encoding device |
-
2016
- 2016-08-31 CN CN201610796104.7A patent/CN106331716B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105075272A (en) * | 2013-04-05 | 2015-11-18 | 高通股份有限公司 | Determining palette indices in palette-based video coding |
CN103813173A (en) * | 2014-03-14 | 2014-05-21 | 北方工业大学 | BCIM-based 3D-HEVC rapid intra-frame predication scheme |
CN103957412A (en) * | 2014-05-06 | 2014-07-30 | 北京大学 | Base color and index map algorithm for correcting inter-frame residual errors of screen video |
CN105323583A (en) * | 2014-06-13 | 2016-02-10 | 财团法人工业技术研究院 | Encoding method, decoding method, encoding/decoding system, encoder and decoder |
CN105828081A (en) * | 2015-01-28 | 2016-08-03 | 财团法人工业技术研究院 | Encoding method and encoding device |
Non-Patent Citations (1)
Title |
---|
ZHAOTAI PAN等: "A Low-Complexity Screen Compression Scheme for Interactive Screen Sharing", 《IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI691944B (en) * | 2019-01-23 | 2020-04-21 | 奇景光電股份有限公司 | Timing controller |
CN111510723A (en) * | 2019-01-30 | 2020-08-07 | 奇景光电股份有限公司 | Time sequence controller |
CN111510723B (en) * | 2019-01-30 | 2022-02-22 | 奇景光电股份有限公司 | Time sequence controller |
CN109819254A (en) * | 2019-01-31 | 2019-05-28 | 深圳市战音科技有限公司 | A kind of image compression transmission method damaged and system |
CN109819254B (en) * | 2019-01-31 | 2022-05-03 | 深圳市战音科技有限公司 | Lossy image compression transmission method and system |
CN111787386A (en) * | 2020-06-01 | 2020-10-16 | 深圳市战音科技有限公司 | Animation compression method, animation display method, animation compression device, animation processing system, and storage medium |
WO2022234575A1 (en) * | 2021-05-05 | 2022-11-10 | Mythrealio Ltd | System and method for dynamic video compression |
Also Published As
Publication number | Publication date |
---|---|
CN106331716B (en) | 2019-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106385592B (en) | Method for compressing image and device | |
CN106331716A (en) | Video compression method and device | |
CN104335588A (en) | A region of interest based framework for 3D video coding | |
CN104969259A (en) | Processing high dynamic range images | |
WO2019023709A1 (en) | Efficient lossless compression of captured raw image information systems and methods | |
CN106937113A (en) | Method for compressing image and device based on mixing colourity sample rate | |
CN103957412B (en) | Base color and index map algorithm for correcting inter-frame residual errors of screen video | |
CN110113617B (en) | Image compression and decompression method and device, electronic equipment and storage medium | |
US8630500B2 (en) | Method for the encoding by segmentation of a picture | |
US20240105193A1 (en) | Feature Data Encoding and Decoding Method and Apparatus | |
CN107147913B (en) | The transmission method and device of character block | |
CN100502507C (en) | Video data compaction coding method | |
CN103929640A (en) | Techniques For Managing Video Streaming | |
CN106385585A (en) | Frame coding and decoding method, device and system | |
CN110495178A (en) | The device and method of 3D Video coding | |
Wu et al. | Virtual reality video quality assessment based on 3D convolutional neural networks | |
Prazeres et al. | Quality analysis of point cloud coding solutions | |
CN104104956B (en) | For layered video coding and the method for decoding, encoding apparatus and decoding apparatus | |
CN110572673A (en) | Video encoding and decoding method and device, storage medium and electronic device | |
CN106604032A (en) | Compression method of character blocks in image, compression device, image compression method and device | |
CN107018416A (en) | For video and the adaptive chip data size coding of compression of images | |
CN110572672A (en) | Video encoding and decoding method and device, storage medium and electronic device | |
Kekre et al. | Image Reconstruction using Fast Inverse Half tone and Huffman Coding Technique | |
CN110996127A (en) | Image coding and decoding method, device and system | |
CN106851294B (en) | The compression method and device of image and its compression method and device of character block |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20171114 Address after: 710075 D102 room, building 4, Maple new city, F District, Xi'an hi tech Zone, Shaanxi Applicant after: XI'AN WANXIANG ELECTRONIC TECHNOLOGY CO., LTD. Address before: 710075 Room 501, building B, 8 cool Industrial Park, Tang Yan Nan Road, Xi'an, Shaanxi Applicant before: Zhong Yanpei |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |