CN102857727A - Lossless compression and decompression processing method for video data - Google Patents

Lossless compression and decompression processing method for video data Download PDF

Info

Publication number
CN102857727A
CN102857727A CN2012103843062A CN201210384306A CN102857727A CN 102857727 A CN102857727 A CN 102857727A CN 2012103843062 A CN2012103843062 A CN 2012103843062A CN 201210384306 A CN201210384306 A CN 201210384306A CN 102857727 A CN102857727 A CN 102857727A
Authority
CN
China
Prior art keywords
data
frame
compression
image
carried out
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012103843062A
Other languages
Chinese (zh)
Other versions
CN102857727B (en
Inventor
王匀
席玉华
程先峰
周禄华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing LES Information Technology Co. Ltd
Original Assignee
Nanjing LES Information Technology Co. Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing LES Information Technology Co. Ltd filed Critical Nanjing LES Information Technology Co. Ltd
Priority to CN201210384306.2A priority Critical patent/CN102857727B/en
Publication of CN102857727A publication Critical patent/CN102857727A/en
Application granted granted Critical
Publication of CN102857727B publication Critical patent/CN102857727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a lossless compression and decompression processing method for video data. In a compression process of the method, a difference frame is obtained according to a target image and a key frame image; in a decompression process, the target image can be quickly reconstructed; furthermore, the change degree of the image can be monitored in real time, and a key frame can be updated timely; and therefore, during subsequent difference frame compression, relatively high compression ratio can be obtained.

Description

A kind of Lossless Compression of video data and decompression process
Technical field
The present invention relates to the application software technology of computer science, especially a kind of Lossless Compression of improved video data and decompression process.
Background technology
In the air traffic control system, provide the videograph of lossless manner and videograph and the repeatability that playback mechanism, realization controller operate the seat, very important to the safety that improves air traffic.And unaffected for the operation that guarantees the controlling officer, this function should reduce the consumption to the host performance resource as far as possible.
At present, under X Window environment, the method for videograph and playback is less, and is lossy compression method mostly, and operational efficiency is not high, and is larger on the impact of main frame runnability.
So, need a kind of new technical scheme to address the above problem.
Summary of the invention
The objective of the invention is the deficiency for the prior art existence, a kind of Lossless Compression and the decompression process that can realize video data is provided.
For achieving the above object, the Lossless Compression of video data of the present invention and decompression process can adopt following technical scheme:
A kind of Lossless Compression of video data and decompression process,
The method of vedio data Lossless Compression is:
(1a), input raw image data;
(2a), judge whether to exist key frame images origK, if it is execution in step (3a), otherwise execution in step (10a);
(3a), original image and key frame origK carried out XOR process, obtain difference frame origD;
(4a), difference frame is carried out LZF compression, obtain data block lzfD, its size is sizeD;
(5a), calculate the ratio of the sizeK of acquisition in sizeD and the step (11a), obtain diversity factor R;
(6a), whether comparing difference degree R greater than default threshold value T, if satisfy then execution in step (10a), otherwise execution in step (7a);
(7a), data block lzfD is carried out zlib compression, obtain data block zipD;
(8a), data block zipD is encapsulated, and write storage device;
(9a), jump to step (14a);
(10a), original image being kept in is key frame origK;
(11a), key frame origK is carried out LZF compression, obtain data block lzfK, size is sizeK;
(12a), data block lzfK is carried out zlib compression, obtain data block zipK;
(13a), with data block zipK encapsulation, and write storage device;
(14a), prepare to process the next frame view data;
The method of the decompression of the above-mentioned vedio data that had compressed is:
(1b), read the image frame data of compression by memory device;
(2b), judge whether image frame data is the key frame packed data, if satisfy then execution in step (3b), otherwise execution in step (5b);
(3b), the image frame data piece carried out successively zlib decompresses and LZF decompresses, obtain original key frame images imageK, and upgrade buffer memory;
(4b), output image imageK, jump to step (8b);
(5b), the image frame data piece is carried out zlib decompression and LZF decompression successively, acquisition original differences frame data cacheD;
(6b), the key frame images imageK of data block cacheD and buffer memory is carried out XOR, obtain image imageX;
(7b), output image imageX;
(8b), prepare to process the next frame view data.。
Compare with background technology, the Lossless Compression of video data of the present invention and decompression process be because be to obtain difference frame according to target image and key frame images in the compression process, so in the decompression process, can the Fast Reconstruction target image; And, the intensity of variation of Real-Time Monitoring image, the key frame that upgrades in time obtains higher compression ratio when guaranteeing follow-up difference frame compression.
Description of drawings
Fig. 1 is the flow chart that video image data compression is processed among the present invention.
Fig. 2 is the flow chart of vedio data decompression among the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, further illustrate the present invention, should understand these embodiment only is used for explanation the present invention and is not used in and limits the scope of the invention, after having read the present invention, those skilled in the art all fall within the application's claims limited range to the modification of the various equivalent form of values of the present invention.
See also Figure 1 and Figure 2, the present invention discloses a kind of Lossless Compression and decompression process of video data.Wherein,
The method of vedio data Lossless Compression is:
(1a), input raw image data;
(2a), judge whether to exist key frame images origK, if it is execution in step (3a), otherwise execution in step (10a);
(3a), original image and key frame origK carried out XOR process, obtain difference frame origD;
(4a), difference frame is carried out LZF compression, obtain data block lzfD, its size is sizeD;
(5a), calculate the ratio of the sizeK of acquisition in sizeD and the step (11a), obtain diversity factor R;
(6a), whether comparing difference degree R greater than default threshold value T, if satisfy then execution in step (10a), otherwise execution in step (7a);
(7a), data block lzfD is carried out zlib compression, obtain data block zipD;
(8a), data block zipD is encapsulated, and write storage device;
(9a), jump to step (14a);
(10a), original image being kept in is key frame origK;
(11a), key frame origK is carried out LZF compression, obtain data block lzfK, size is sizeK;
(12a), data block lzfK is carried out zlib compression, obtain data block zipK;
(13a), with data block zipK encapsulation, and write storage device;
(14a), prepare to process the next frame view data.
The method of the decompression of the above-mentioned vedio data that had compressed is:
(1b), read the image frame data of compression by memory device;
(2b), judge whether image frame data is the key frame packed data, if satisfy then execution in step (3b), otherwise execution in step (5b);
(3b), the image frame data piece carried out successively zlib decompresses and LZF decompresses, obtain original key frame images imageK, and upgrade buffer memory;
(4b), output image imageK, jump to step (8b);
(5b), the image frame data piece is carried out zlib decompression and LZF decompression successively, acquisition original differences frame data cacheD;
(6b), the key frame images imageK of data block cacheD and buffer memory is carried out XOR, obtain image imageX;
(7b), output image imageX;
(8b), prepare to process the next frame view data.
Key point of the present invention is:
By the combination of several different methods, guarantee the high efficiency of compression and decompression processing procedure, the size of the data file that reduces to generate, and guarantee to carry out quick playback.
Twice compress mode namely at first reduces the data block size by Fast Compression algorithm (for example LZF), and the algorithm (for example zlib) by high compression ratio further improves compression ratio again.Like this, can between compression speed and compression ratio, average out;
In the compression process, picture frame and key frame are carried out XOR process to obtain difference frame.Like this, in the decompression process, only need to obtain difference frame and the corresponding key frame of target image, just can rebuild original image;
In the compression process, according to the size of difference frame and key frame, calculate to obtain the diversity factor of present image and key frame images, and with threshold ratio, whether need to upgrade key frame with decision.Like this, when video image changes when violent, the key frame that can upgrade in time guarantees that the difference frame that subsequent treatment obtains keeps less size.

Claims (1)

1. the Lossless Compression of a video data and decompression process is characterized in that:
The method of vedio data Lossless Compression is:
(1a), input raw image data;
(2a), judge whether to exist key frame images origK, if it is execution in step (3a), otherwise execution in step (10a);
(3a), original image and key frame origK carried out XOR process, obtain difference frame origD;
(4a), difference frame is carried out LZF compression, obtain data block lzfD, its size is sizeD;
(5a), calculate the ratio of the sizeK of acquisition in sizeD and the step (11a), obtain diversity factor R;
(6a), whether comparing difference degree R greater than default threshold value T, if satisfy then execution in step (10a), otherwise execution in step (7a);
(7a), data block lzfD is carried out zlib compression, obtain data block zipD;
(8a), data block zipD is encapsulated, and write storage device;
(9a), jump to step (14a);
(10a), original image being kept in is key frame origK;
(11a), key frame origK is carried out LZF compression, obtain data block lzfK, size is sizeK;
(12a), data block lzfK is carried out zlib compression, obtain data block zipK;
(13a), with data block zipK encapsulation, and write storage device;
(14a), prepare to process the next frame view data;
The method of the decompression of the above-mentioned vedio data that had compressed is:
(1b), read the image frame data of compression by memory device;
(2b), judge whether image frame data is the key frame packed data, if satisfy then execution in step (3b), otherwise execution in step (5b);
(3b), the image frame data piece carried out successively zlib decompresses and LZF decompresses, obtain original key frame images imageK, and upgrade buffer memory;
(4b), output image imageK, jump to step (8b);
(5b), the image frame data piece is carried out zlib decompression and LZF decompression successively, acquisition original differences frame data cacheD;
(6b), the key frame images imageK of data block cacheD and buffer memory is carried out XOR, obtain image imageX;
(7b), output image imageX;
(8b), prepare to process the next frame view data.
CN201210384306.2A 2012-10-11 2012-10-11 Lossless compression and decompression processing method for video data Active CN102857727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210384306.2A CN102857727B (en) 2012-10-11 2012-10-11 Lossless compression and decompression processing method for video data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210384306.2A CN102857727B (en) 2012-10-11 2012-10-11 Lossless compression and decompression processing method for video data

Publications (2)

Publication Number Publication Date
CN102857727A true CN102857727A (en) 2013-01-02
CN102857727B CN102857727B (en) 2015-07-01

Family

ID=47403870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210384306.2A Active CN102857727B (en) 2012-10-11 2012-10-11 Lossless compression and decompression processing method for video data

Country Status (1)

Country Link
CN (1) CN102857727B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110611509A (en) * 2019-08-16 2019-12-24 宁海县雁苍山电力建设有限公司 Infrared temperature data compression method and system
CN112241005A (en) * 2019-07-19 2021-01-19 杭州海康威视数字技术股份有限公司 Method and device for compressing radar detection data and storage medium
CN116229870A (en) * 2023-05-10 2023-06-06 苏州华兴源创科技股份有限公司 Compensation data compression and decompression method and display panel compensation method
CN117319676A (en) * 2023-11-28 2023-12-29 苏州元脑智能科技有限公司 Video compression device, chip, system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040156549A1 (en) * 1998-10-01 2004-08-12 Cirrus Logic, Inc. Feedback scheme for video compression system
JP2005045588A (en) * 2003-07-23 2005-02-17 Shuji Okuno Method and device for compressing still image and moving image and storage medium
CN101682741A (en) * 2007-07-02 2010-03-24 松下电器产业株式会社 Stream transmission server and stream transmission system
CN102521235A (en) * 2010-10-28 2012-06-27 微软公司 Burst mode image compression and decompression

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040156549A1 (en) * 1998-10-01 2004-08-12 Cirrus Logic, Inc. Feedback scheme for video compression system
JP2005045588A (en) * 2003-07-23 2005-02-17 Shuji Okuno Method and device for compressing still image and moving image and storage medium
CN101682741A (en) * 2007-07-02 2010-03-24 松下电器产业株式会社 Stream transmission server and stream transmission system
CN102521235A (en) * 2010-10-28 2012-06-27 微软公司 Burst mode image compression and decompression

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241005A (en) * 2019-07-19 2021-01-19 杭州海康威视数字技术股份有限公司 Method and device for compressing radar detection data and storage medium
CN110611509A (en) * 2019-08-16 2019-12-24 宁海县雁苍山电力建设有限公司 Infrared temperature data compression method and system
CN110611509B (en) * 2019-08-16 2023-12-29 宁海县雁苍山电力建设有限公司 Infrared temperature data compression method and system
CN116229870A (en) * 2023-05-10 2023-06-06 苏州华兴源创科技股份有限公司 Compensation data compression and decompression method and display panel compensation method
CN116229870B (en) * 2023-05-10 2023-08-15 苏州华兴源创科技股份有限公司 Compensation data compression and decompression method and display panel compensation method
CN117319676A (en) * 2023-11-28 2023-12-29 苏州元脑智能科技有限公司 Video compression device, chip, system and method
CN117319676B (en) * 2023-11-28 2024-02-23 苏州元脑智能科技有限公司 Video compression device, chip, system and method

Also Published As

Publication number Publication date
CN102857727B (en) 2015-07-01

Similar Documents

Publication Publication Date Title
US10560698B2 (en) Graphics server and method for streaming rendered content via a remote graphics processing service
US9510048B2 (en) Dynamically changing streaming video quality
JP6263830B2 (en) Techniques for including multiple regions of interest indicators in compressed video data
US8392596B2 (en) Methods for detecting and handling video and video-like content in remote display system
US11075647B2 (en) Methods and apparatus to compress data
JP6242029B2 (en) Technology for low power image compression and display
CN106030652B (en) Method, system and composite display controller for providing output surface and computer medium
US10951914B2 (en) Reliable large group of pictures (GOP) file streaming to wireless displays
CN102857727B (en) Lossless compression and decompression processing method for video data
CN113301313B (en) Image data processing and transmitting method and system
US9787986B2 (en) Techniques for parallel video transcoding
WO2006050145A3 (en) Methods and apparatus for parallel execution of a process
CN101755462A (en) Image coding device and image coding method
US10003812B2 (en) Information processing apparatus, method of controlling the same, and storage medium
US9311721B1 (en) Graphics processing unit-assisted lossless decompression
WO2018032696A1 (en) Method and system for desktop screenshot control
CN112715028A (en) Transport controlled video coding
CN105791819B (en) The decompression method and device of a kind of frame compression method of image, image
US20150043653A1 (en) Techniques for low power video compression and transmission
JP2010186369A (en) Image transfer device, method and program
JP6605323B2 (en) Semiconductor device, data processing system, and control method of semiconductor device
TWI523541B (en) Wireless video/audio data transmission systems and methods, and computer products thereof
US20200192671A1 (en) Device and method for cache utilization aware data compression
US20230156206A1 (en) Video encoding system and video encoding method
US11206415B1 (en) Selectable transcode engine systems and methods

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant