CN107835426A - A kind of compression of sequence chart and decompressing method - Google Patents
A kind of compression of sequence chart and decompressing method Download PDFInfo
- Publication number
- CN107835426A CN107835426A CN201711132948.2A CN201711132948A CN107835426A CN 107835426 A CN107835426 A CN 107835426A CN 201711132948 A CN201711132948 A CN 201711132948A CN 107835426 A CN107835426 A CN 107835426A
- Authority
- CN
- China
- Prior art keywords
- model frame
- data
- frame
- model
- sequence chart
- 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.)
- Pending
Links
- 238000007906 compression Methods 0.000 title claims abstract description 26
- 230000006835 compression Effects 0.000 title claims abstract description 26
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000006837 decompression Effects 0.000 claims abstract description 11
- 230000015572 biosynthetic process Effects 0.000 claims description 3
- 238000001914 filtration Methods 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 abstract description 7
- 238000013144 data compression Methods 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
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/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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The present invention discloses compression and the decompressing method of a kind of sequence chart, including:During compression, the data to model frame, the data different from model frame in each non-model frame, the associated data of each non-model frame are compressed;During decompression, model frame figure is generated after the data decompression of model frame, each non-model frame from model frame identical data, the respective data different with model frame, respective associated data in each comfortable model frame by generating figure.The present invention obtains the identical point between model frame and non-model frame and difference and associated, obtain associated data by choosing model frame in sequence chart and comparing.Due to have compressed the identical point with model frame in non-model frame less, compressed package can be to reduce, effectively save resource, convenient transmission.
Description
Technical field
The present invention relates to compression and the decompressing method in Image Compression field, more particularly to a kind of sequence chart.
Background technology
Each second in video is all a sequence chart, contains some frames in each sequence chart.With video display animation
Requirement more and more higher of the industry to picture quality, the size of each frame in sequence chart is also increasing, has had M up to a hundred, very
Supreme G, therefore, the pressure of the transmission to sequence chart are increasing, traditional compress mode, are that each frame is treated as a file
To compress, the front and rear similitude of sequence chart is not accounted for, causes the sequence map file after compression still very big.
Therefore, the prior art is defective, it is necessary to improve.
The content of the invention
The technical problem to be solved in the present invention is:Compression and the decompressing method of a kind of sequence chart are provided, after avoiding compression
Sequence map file is excessive, reduces the transmission pressure of sequence chart.
Technical scheme is as follows:Compression and the decompressing method of a kind of sequence chart are provided, the sequence chart has n frames,
Comprise the following steps:
S1:Example edition frame is chosen in sequence chart, all model frames are done with pixel traversal, obtains the data of model frame;
S2:Pixel traversal is done to each non-model frame in sequence chart, obtains the data of each non-model frame;
S3:The data of non-model frame are contrasted with model frame data, the data of each non-model frame are just divided into:With model
Frame identical data, the data different from model frame, the data of model frame are divided into:With non-model frame identical data and non-sample
The different data of plate frame, being associated simultaneously from model frame identical data, the data different with model frame in each non-model frame
Obtain associated data;
S4:By the data different from model frame in the data of model frame, each non-model frame, the pass of each non-model frame
Connection data are compressed;
S5:Data to model frame, the data different from model frame in each non-model frame, the pass of each non-model frame
Connection data are decompressed, and model frame figure is generated after the data decompression of model frame, and each non-model frame passes through each comfortable model frame
In from model frame identical data, the respective data different with model frame, respective associated data generation figure.
S6:Formation sequence figure after the model frame combines with all non-model frames.
In a sequence chart, the difference between frame and frame is little, and model frame obtains after being traveled through with non-model frame by pixel
Take respective data and contrasted, non-model frame can be to be divided into identical point from model frame, the difference from model frame simultaneously
Associated.The difference from model frame in model frame, non-model frame, associated data are compressed, during decompression, model frame is direct
Decompression forms figure, and non-model frame passes through in its identical point from model frame in model frame, the difference from model frame, pass
Join data and form figure.Due to have compressed the identical point with model frame in non-model frame less, compressed package can be to reduce, effectively
Economize on resources, convenient transmission.
Further, in step sl, the model frame is m, and the span of the m is 0<m<Between n.Model frame
Quantity it is fewer, the number of contrast is more, and the required time is longer, and model frame is more, and the number of contrast is fewer, is compressed after compression
Bao Yue great.
Further, in step s3, the data of each non-model frame only contrast once, avoid the wasting of resources.
Further, the model frame is chosen using fixed interval.
Preferably, the fixation at intervals of 2.
Further, the selection of the model frame is that filtration treatment is done to whole sequence chart, chooses the frame for most having feature.
Further, the pixel data obtained after the pixel traversal includes:Corresponding to position data and the position data
Color data on position.
Further, in the step S3, the data of non-model frame are done into contrast with model frame data is:In identical position
Put contrast color.
Using such scheme, the present invention provides compression and the decompressing method of a kind of sequence chart, by being chosen in sequence chart
Model frame, and model frame and non-model frame are contrasted, the identical point between model frame and non-model frame and difference are obtained, and
Similarities and differences in non-model frame are associated, obtain associated data, during compression, only need to compress model frame, non-model
The difference of frame, associated data;During decompression, non-model frame passes through its identical point from model frame in model frame, non-model
The difference of frame, associated data form figure.Due to have compressed the identical point with model frame in non-model frame, compressed package less
Can be to reduce, effectively save resource, convenient transmission.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Referring to Fig. 1, the present invention provides compression and the decompressing method of a kind of sequence chart, in a sequence chart, frame and frame
Between difference it is little, model frame obtains respective data and contrasted, non-model after being traveled through with non-model frame by pixel
Frame can be to be divided into the identical point from model frame, the difference from model frame and be associated.By in model frame, non-model frame
Difference from model frame, associated data compression, during decompression, model frame directly decompression forms figure, and non-model frame passes through at it
The identical point from model frame in model frame, the difference from model frame, associated data form figure.It is non-due to have compressed less
The identical point with model frame in model frame, compressed package can be to reduce, effectively save resource, convenient transmission.
The sequence chart has n frames, and the compression and decompressing method comprise the following steps:
S1:Example edition frame is chosen in sequence chart, all model frames are done with pixel traversal, obtains the data of model frame.
In step sl, the model frame is m, and the span of the m is 0<m<Between n.The model frame uses
Choose at fixed interval.The quantity of model frame is fewer, and the number of contrast is more, and the required time is longer, and model frame is more, contrast
Number it is fewer, compressed package is bigger after compression.
The selection of the model frame is that filtration treatment is done to whole sequence chart, chooses the frame for most having feature.The pixel time
The pixel data obtained after going through includes:Color data corresponding to position data and the position data on position.
S2:Pixel traversal is done to each non-model frame in sequence chart, obtains the data of each non-model frame.
S3:The data of non-model frame are contrasted with model frame data, the data of each non-model frame are just divided into:With model
Frame identical data, the data different from model frame, the data of model frame are divided into:With non-model frame identical data and non-sample
The different data of plate frame, being associated simultaneously from model frame identical data, the data different with model frame in each non-model frame
Obtain associated data.
The data of non-model frame are done into contrast with model frame data is:In identical position versus color.In this step,
The data of each non-model frame only contrast once, avoid the wasting of resources.
S4:By the data different from model frame in the data of model frame, each non-model frame, the pass of each non-model frame
Connection data are compressed.
S5:Data to model frame, the data different from model frame in each non-model frame, the pass of each non-model frame
Connection data are decompressed, and model frame figure is generated after the data decompression of model frame, and each non-model frame passes through each comfortable model frame
In from model frame identical data, the respective data different with model frame, respective associated data generation figure.
S6:Formation sequence figure after the model frame combines with all non-model frames.
In summary, the present invention provides compression and the decompressing method of a kind of sequence chart, by choosing model in sequence chart
Frame, and model frame and non-model frame are contrasted, the identical point between model frame and non-model frame and difference are obtained, and will be non-
Similarities and differences in model frame associate, obtain associated data, during compression, need to only compress model frame, non-model frame
Difference, associated data;During decompression, non-model frame passes through its identical point from model frame in model frame, non-model frame
Difference, associated data form figure.Due to have compressed the identical point with model frame in non-model frame, compressed package less
To reduce, effectively save resource, convenient transmission.
These are only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
All any modification, equivalent and improvement made within principle etc., should be included in the scope of the protection.
Claims (8)
1. compression and the decompressing method of a kind of sequence chart, the sequence chart have n frames, it is characterised in that comprise the following steps:
S1:Example edition frame is chosen in sequence chart, all model frames are done with pixel traversal, obtains the data of model frame;
S2:Pixel traversal is done to each non-model frame in sequence chart, obtains the data of each non-model frame;
S3:The data of non-model frame are contrasted with model frame data, the data of each non-model frame are just divided into:With model frame phase
Data together, the data different from model frame, the data of model frame are divided into:With non-model frame identical data and non-model frame
Different data, associating and obtaining from model frame identical data, the data different with model frame in each non-model frame
Associated data;
S4:By the data different from model frame in the data of model frame, each non-model frame, the incidence number of each non-model frame
According to being compressed;
S5:Data to model frame, the data different from model frame in each non-model frame, the incidence number of each non-model frame
According to being decompressed, model frame figure is generated after the data decompression of model frame, each non-model frame passes through in each comfortable model frame
From model frame identical data, the respective data different with model frame, respective associated data generation figure.
S6:Formation sequence figure after the model frame combines with all non-model frames.
2. compression and the decompressing method of a kind of sequence chart according to claim 1, it is characterised in that in step sl, institute
Model frame is stated as m, the span of the m is 0<m<Between n.
3. compression and the decompressing method of a kind of sequence chart according to claim 1, it is characterised in that in step s3, often
The data of individual non-model frame only contrast once.
4. compression and the decompressing method of a kind of sequence chart according to claim 1, it is characterised in that the model frame uses
Choose at fixed interval.
5. compression and the decompressing method of a kind of sequence chart according to claim 4, it is characterised in that the interval of the fixation
For 2.
6. compression and the decompressing method of a kind of sequence chart according to claim 1, it is characterised in that the choosing of the model frame
It is that filtration treatment is done to whole sequence chart to take, and chooses the frame for most having feature.
7. compression and the decompressing method of a kind of sequence chart according to claim 1, it is characterised in that after the pixel traversal
The data of acquisition include:Color data corresponding to position data and the position data on position.
8. compression and the decompressing method of a kind of sequence chart according to claim 1, it is characterised in that in the step S3,
The data of non-model frame are done into contrast with model frame data is:In identical position versus color.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711132948.2A CN107835426A (en) | 2017-11-15 | 2017-11-15 | A kind of compression of sequence chart and decompressing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711132948.2A CN107835426A (en) | 2017-11-15 | 2017-11-15 | A kind of compression of sequence chart and decompressing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107835426A true CN107835426A (en) | 2018-03-23 |
Family
ID=61651650
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711132948.2A Pending CN107835426A (en) | 2017-11-15 | 2017-11-15 | A kind of compression of sequence chart and decompressing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107835426A (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101352046A (en) * | 2006-07-04 | 2009-01-21 | 三星电子株式会社 | Image encoding/decoding method and device |
-
2017
- 2017-11-15 CN CN201711132948.2A patent/CN107835426A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101352046A (en) * | 2006-07-04 | 2009-01-21 | 三星电子株式会社 | Image encoding/decoding method and device |
Non-Patent Citations (2)
Title |
---|
GARY J. SULLIVAN等: "Overview of the High Efficiency Video Coding (HEVC) Standard", 《IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY》 * |
T. WIEGAND等: "Overview of the H.264 / AVC Video Coding Standard", 《IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104376831B (en) | Data processing apparatus and related data processing method | |
CN106228581B (en) | Pixel format is converted to the method and system of NV12 by GPU by ARGB | |
DE112008001090T5 (en) | Multi-format video display | |
JPWO2015111467A1 (en) | Transmitting apparatus, transmitting method, receiving apparatus, and receiving method | |
CN102932671A (en) | Method and server for supplying picture to computing terminal | |
CN105100763B (en) | Color compensation method and circuit and display device | |
KR100834439B1 (en) | Graphic data compression and decompression device and method | |
US11323701B2 (en) | Systems and methods for group of pictures encoding | |
CN104240213B (en) | A kind of display methods and display device | |
CN105933707A (en) | Compression method and device for panoramic video | |
CN110187858B (en) | Image display method and system | |
CN107835426A (en) | A kind of compression of sequence chart and decompressing method | |
TWI472232B (en) | Video transmission by decoupling color components and apparatus thereof and processor readable tangible medium encoded with instructions | |
CN103731250B (en) | High-speed synchronous method and system between a kind of PC machine and mobile terminal | |
EP4429245A1 (en) | Image capturing method, image display method, and device | |
EP2693426A1 (en) | Display apparatus, image post-processing apparatus and method for image post-processing of contents | |
US10809869B2 (en) | Layered image compression | |
US20150009205A1 (en) | Method of Improving Ericsson Texture Compression 1 Image Quality | |
CN112165588B (en) | Screen overlay display system and method, image compression method | |
TW200533204A (en) | Method of image display with real time compression | |
US20150264375A1 (en) | Encapsulation of video scanning format information for media transport and storage | |
CN105991951B (en) | A kind of method and apparatus of video reference frame data storage | |
CN113450293A (en) | Video information processing method, device and system, electronic equipment and storage medium | |
CN106612424A (en) | Image display method and device | |
US9361860B2 (en) | Display apparatus, image post-processing apparatus and method for image post-processing of contents |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180323 |