CN103096087A - Method and system of coding and decoding image and video - Google Patents

Method and system of coding and decoding image and video Download PDF

Info

Publication number
CN103096087A
CN103096087A CN2013100482813A CN201310048281A CN103096087A CN 103096087 A CN103096087 A CN 103096087A CN 2013100482813 A CN2013100482813 A CN 2013100482813A CN 201310048281 A CN201310048281 A CN 201310048281A CN 103096087 A CN103096087 A CN 103096087A
Authority
CN
China
Prior art keywords
pixel component
video
video frame
component value
image
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
CN2013100482813A
Other languages
Chinese (zh)
Other versions
CN103096087B (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.)
SHANGHAI GMT DIGITAL TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI GMT DIGITAL 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 SHANGHAI GMT DIGITAL TECHNOLOGY Co Ltd filed Critical SHANGHAI GMT DIGITAL TECHNOLOGY Co Ltd
Priority to CN201310048281.3A priority Critical patent/CN103096087B/en
Publication of CN103096087A publication Critical patent/CN103096087A/en
Application granted granted Critical
Publication of CN103096087B publication Critical patent/CN103096087B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention provides a method and a system of coding and decoding image and video. At coding time, the method comprises steps of acquiring a maximum value and a minimum value of pixel component values in an original image or video, adopting the lossy compression method to compress the original image or a video to generate a compressed file or a code stream, wherein a part of coding data of the compressed file or the code stream contains the maximum value and the minimum value; generating and revising a coding end rebuilding image block or a video frequency frame so as to generate a new coding end rebuilding image block or a video frame. At decoding time, the method further comprises the steps of acquiring a maximum value and a minimum value from the compressed file or the code stream; generating and revising a decoding end rebuilding image block or a video frame so as to generate a new decoding end rebuilding image block or a video frame. According to the method, the value range of the pixel component values is limited in the step of generating the rebuilding image so as to improve coding efficiency and quality of image or video after decoding.

Description

A kind of image and video coding-decoding method and system
Technical field
The present invention relates to image and audio/video encoding/decoding technical field in the signal processing, particularly a kind of image and video coding-decoding method and system.
Background technology
In image in signal is processed and video coding and decoding technology field, many digital pictures and video encoding and decoding standard are arranged, wherein, representative video encoding and decoding standard have MPEG-2, H.264/MPEG-4AVC, the autonomous standard A VS that formulates of China etc., representative image coding and decoding standard has JPEG and JPEG2000 etc.
Digital picture and video encoding and decoding standard have all been stipulated the span of each pixel component, for example 0~255.But in the application of the reality of prior art, the value of a width original image of concrete input or each pixel component of one section vision signal is not full of the whole interval of regulation, just a subinterval on interval usually.Existing digital picture and video encoding and decoding standard, it is all the scope of regulation that the span of each component of pixel is limited in the step that generates coding side reconstructed image or reconstruction frames and decoding end reconstructed image or reconstruction frames, do not have the scope according to the input signal of reality, reconstructed value is revised, this not only can bring larger distortion, also can make reconstructed image piece or the reconstruction video frame of the coded reference mistake of further part, make predicated error become large, thereby cause code efficiency to reduce.
Summary of the invention
The object of the present invention is to provide a kind of image and video coding-decoding method and system inaccurate to the correction of reconstructed value to solve prior art, the problem of bringing larger distortion and code efficiency to reduce.Owing to being all that span with each component of pixel is limited in whole interval in the decoding step of prior art, according to the scope of the input signal of reality, the span of each component of pixel is not revised, thereby caused image or video to produce the problem that larger distortion, encoding rate reduce.
For solving the problems of the technologies described above, the invention provides:
A kind of image and video coding-decoding method comprise: image and video coding method and image and video encoding/decoding method, wherein,
Described image and video coding method comprises:
Obtain maximum and the minimum value of the pixel component value in original image or video;
Adopt the lossy compression method method described original image of compression or video to generate compressed file or code stream, a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Generate the pixel component value of coding side reconstructed image piece or coding side reconstruction video frame according to the coded data of each image block in described original image or video or frame of video;
to be set to described maximum greater than the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame, to be set to described minimum value as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame less than the coding side reconstructed image piece of described minimum value or the pixel component value of coding side reconstruction video frame, to remain unchanged as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame,
Described image and video encoding/decoding method comprise:
Obtain maximum and the minimum value of the pixel component value in original image or video from compressed file or code stream;
Pixel component value according to described compressed file or code stream generation decoding end reconstructed image piece or decoding end reconstruction video frame;
Will be greater than the maximum value of the reconstructed image block decoder or decoding side reconstructed video frame pixel component value is set to the maximum value as the new reconstructed image block decoder or decoding side reconstructed video frame pixel component value will be less than the above the minimum block decoder or decoding side reconstructed image reconstructed video frame pixel component value is set to the minimum value as the new reconstructed image block decoder or decoding side reconstructed video frame pixel component values greater than or equal to the minimum value and less than or equal to the maximum value of the reconstructed image block decoder or decoding side reconstructed video frame pixel component values remain unchanged as the new block decoder or decoding side reconstructed image reconstructed video frame pixel component values .
Optionally, in described image and video coding-decoding method, when described original image or video were black and white image or black and white video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of one-component; When described original image or video were coloured image or color video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of three components.
Optionally, in described image and video coding-decoding method, in the maximum of the pixel component value in obtaining original image or video and the step of minimum value, when the maximum of the pixel component value in obtaining original image and minimum value, described original image is added up; When the maximum of the pixel component value in obtaining original video and minimum value, the frame of video in described original video is added up.
Simultaneously, the present invention also provides a kind of image and video coding method, comprising:
Obtain maximum and the minimum value of the pixel component value in original image or video;
Adopt the lossy compression method method described original image of compression or frame of video to generate compressed file or code stream, a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Generate the pixel component value of coding side reconstructed image piece or coding side reconstruction video frame according to the coded data of each image block in described original image or video or frame of video;
Will be greater than the maximum value of the reconstructed image coding side terminal block or coded video frame reconstructed pixel component value is set to the maximum value as the new reconstructed image coding side terminal blocks or reconstructed video frame coded pixel component value will be less than the above the minimum coding side reconstructed image blocks or reconstructed video frame encoding side pixel component value is set to the minimum value as the new reconstructed image coding side blocks or reconstructed video frame encoding side pixel component values greater than or equal to the minimum value and less than or equal to the maximum value of the reconstructed image coding side terminal block or coded video frame reconstructed pixel component values remain unchanged as the new reconstructed image coding side terminal blocks or reconstructed video frame coded pixel component values .
Simultaneously, the present invention also provides a kind of image and video encoding/decoding method, and the described compressed file or the code stream that generate in described image and video coding method are decoded, and comprising:
Obtain maximum and the minimum value of the pixel component value in original image or video from compressed file or code stream;
Pixel component value according to described compressed file or code stream generation decoding end reconstructed image piece or decoding end reconstruction video frame;
Will be greater than the maximum value of the reconstructed image block decoder or decoding side reconstructed video frame pixel component value is set to the maximum value as the new reconstructed image block decoder or decoding side reconstructed video frame pixel component value will be less than the above the minimum block decoder or decoding side reconstructed image reconstructed video frame pixel component value is set to the minimum value as the new reconstructed image block decoder or decoding side reconstructed video frame pixel components value will be greater than equal to the and less than or equal to the minimum value of the maximum reconstructed image block decoder or decoding side reconstructed video frame pixel component values remain unchanged as the new block decoder or decoding side reconstructed image reconstructed video frame pixel component values .
Simultaneously, the present invention also provides a kind of image and video coding and decoding system, comprising: image and video coding system and image and video decoding system, wherein,
Described image and video coding system comprises:
The first acquisition module is for maximum and the minimum value of the pixel component value of obtaining original image or video;
The first compression module is used for adopting the lossy compression method method described original image of compression or video to generate compressed file or code stream, and a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Coding side reconstructed image piece or coding side reconstruction video frame module are used for each image block or the coded data generation coding side reconstructed image piece of frame of video or the pixel component value of coding side reconstruction video frame according to described original image or video;
coding side reconstructed image piece or coding side reconstruction video frame correcting module, be used for and be set to described maximum greater than the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame, to be set to described minimum value as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame less than the coding side reconstructed image piece of described minimum value or the pixel component value of coding side reconstruction video frame, to remain unchanged as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame,
Described image and video decoding system comprise:
The second acquisition module is used for obtaining from compressed file or code stream maximum and the minimum value of the pixel component value original image or video;
Decoding end reconstructed image piece or decoding end reconstruction video frame module are used for the pixel component value according to described compressed file or code stream generation decoding end reconstructed image piece or decoding end reconstruction video frame;
decoding end reconstructed image piece or decoding end reconstruction video frame correcting module, be used for and be set to described maximum greater than the pixel component value of described peaked decoding end reconstructed image piece or decoding end reconstruction video frame as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame, to be set to described minimum value as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame less than the decoding end reconstructed image piece of described minimum value or the pixel component value of decoding end reconstruction video frame, to remain unchanged as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked decoding end reconstructed image piece or decoding end reconstruction video frame.
Optionally, in described image and video coding and decoding system, when described original image or video were black and white image or black and white video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of one-component; When described original image or video were coloured image or color video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of three components.
Optionally, in described image and video coding and decoding system, in the maximum of the pixel component value in obtaining original image or video and the step of minimum value, when the maximum of the pixel component value in obtaining original image and minimum value, described original image is added up; When the maximum of the pixel component value in obtaining original video and minimum value, the frame of video in described original video is added up.
Simultaneously, the present invention also provides a kind of image and video coding system, comprising:
The first acquisition module is for maximum and the minimum value of the pixel component value of obtaining original image or video;
The first compression module is used for adopting the lossy compression method method described original image of compression or video to generate compressed file or code stream, and a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Coding side reconstructed image piece or coding side reconstruction video frame module are used for each image block or the coded data generation coding side reconstructed image piece of frame of video or the pixel component value of coding side reconstruction video frame according to original image or video;
coding side reconstructed image piece or coding side reconstruction video frame correcting module, be used for and be set to described maximum greater than the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame, to be set to described minimum value as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame less than the coding side reconstructed image piece of described minimum value or the pixel component value of coding side reconstruction video frame, to remain unchanged as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame.
Simultaneously, the present invention also provides a kind of image and video decoding system, comprising:
The second acquisition module is used for obtaining from compressed file or code stream maximum and the minimum value of the pixel component value original image or video;
Decoding end reconstructed image piece or decoding end reconstruction video frame module are used for the pixel component value according to described compressed file or code stream generation decoding end reconstructed image piece or decoding end reconstruction video frame;
decoding end reconstructed image piece or decoding end reconstruction video frame correcting module, be used for and be set to described maximum greater than the pixel component value of described peaked decoding end reconstructed image piece or decoding end reconstruction video frame as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame, to be set to described minimum value as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame less than the decoding end reconstructed image piece of described minimum value or the pixel component value of decoding end reconstruction video frame, to remain unchanged as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked decoding end reconstructed image piece or decoding end reconstruction video frame.
A kind of image provided by the invention and video coding-decoding method and system, has following beneficial effect: in cataloged procedure, generate the pixel component value of coding side reconstructed image piece or coding side reconstruction video frame and it is revised generation new coding side reconstructed image piece or frame of video according to original image or video, thereby improving code efficiency; In decode procedure, the amount of calculation that does not increase decoder according to maximum and the minimum value correction of the pixel component value in original image or video, because decoder originally just need to be according to the maximum of theoretic pixel component value and the span of minimum value correction pixel component, after revising with method of the present invention, revised according to theoretic maximum and minimum value with regard to no longer needing, improved the quality of the rear image of decoding or video.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in accompanying drawing:
Fig. 1 is image and the video coding-decoding method schematic flow sheet of the embodiment of the present invention;
Fig. 2 is image and the video coding and decoding system structural representation of the embodiment of the present invention;
Fig. 3 is the image and video coding method flow schematic diagram of the embodiment of the present invention;
Fig. 4 is the image and video coding system configuration schematic diagram of the embodiment of the present invention;
Fig. 5 is image and the video encoding/decoding method schematic flow sheet of the embodiment of the present invention;
Fig. 6 is image and the video decoding system structural representation of the embodiment of the present invention.
Embodiment
A kind of image that the present invention is proposed below in conjunction with the drawings and specific embodiments and video coding-decoding method and system are described in further detail.According to the following describes and claims, advantages and features of the invention will be clearer.It should be noted that, accompanying drawing all adopts very the form of simplifying and all uses non-ratio accurately, only in order to convenient, the purpose of the aid illustration embodiment of the present invention lucidly.
Please refer to Fig. 1, it is image of the present invention and video coding-decoding method schematic flow sheet.As shown in Figure 1, a kind of image and video coding-decoding method comprise image and video coding method and image and video encoding/decoding method, wherein,
Described image and video coding method comprises:
S11: maximum and the minimum value of obtaining the pixel component value in original image or video;
Especially, when described original image or video were black and white image or black and white video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of one-component.
Especially, when described original image or video were coloured image or color video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of three components.
Especially, when the maximum of the pixel component value in obtaining original image and minimum value, described original image is added up; When the maximum of the pixel component value in obtaining original video and minimum value, the frame of video in described original video is added up.
In cataloged procedure, the image block in statistics original image or video or the maximum of the pixel component value of frame of video and the amount of calculation of minimum value are very little for encoder, thereby but can improve code efficiency.
S12: adopt the lossy compression method method described original image of compression or video to generate compressed file or code stream, a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Especially, the lossy compression method method of employing is JPEG, MPEG-4, compression method H.264.
S13: the pixel component value that generates coding side reconstructed image piece or coding side reconstruction video frame according to the coded data of each image block in described original image or video or frame of video;
S14: will be set to described maximum greater than the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame, to be set to described minimum value as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame less than the coding side reconstructed image piece of described minimum value or the pixel component value of coding side reconstruction video frame, to remain unchanged as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame,
Described image and video encoding/decoding method comprise:
S15: maximum and the minimum value of obtaining the pixel component value in original image or video from compressed file or code stream;
S16: according to the pixel component value of described compressed file or code stream generation decoding end reconstructed image piece or decoding end reconstruction video frame;
S17: will be set to described maximum greater than the pixel component value of described peaked decoding end reconstructed image piece or decoding end reconstruction video frame as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame, to be set to described minimum value as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame less than the decoding end reconstructed image piece of described minimum value or the pixel component value of decoding end reconstruction video frame, to remain unchanged as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked decoding end reconstructed image piece or decoding end reconstruction video frame,
Especially, new image or new video can not be identical with original image and video in actual conditions, but a kind of image of the present invention and video coding-decoding method, by the span of restriction pixel component value in the step that generates reconstructed image, thus the quality of raising code efficiency and decoded image or video.Especially, if the new decoding end reconstructed image piece of the pixel component value of the new coding side reconstructed image piece of each image block or frame of video or coding side reconstruction video frame and each image block or frame of video or the pixel component value of decoding end reconstruction video frame be correspondent equal not, mistake occurs in presentation code and decode procedure, need recompile and decoding.
Please refer to Fig. 2, it is image of the present invention and video coding and decoding system structural representation.As shown in Figure 2, a kind of image and video coding and decoding system comprise image and video coding system 21 and image and video decoding system 22;
Described image and video coding system comprises:
The first acquisition module 23 is for maximum and the minimum value of the pixel component value of obtaining original image or video;
Especially, when described original image or video were black and white image or black and white video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of one-component;
Especially, when described original image or video were coloured image or color video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of three components.
Especially, when the maximum of the pixel component value in obtaining original image and minimum value, described original image is added up; When the maximum of the pixel component value in obtaining original video and minimum value, the frame of video in described original video is added up.
The first compression module 24 is used for adopting the lossy compression method method described original image of compression or video to generate compressed file or code stream, and a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Concrete, described damage compression method comprises JPEG, MPEG-4, compression method H.264.
Coding side reconstructed image piece or coding side reconstruction video frame module 25 are used for each image block or the coded data generation coding side reconstructed image piece of frame of video or the pixel component value of coding side reconstruction video frame according to described original image or video;
coding side reconstructed image piece or coding side reconstruction video frame correcting module 26, be used for and be set to described maximum greater than the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame, to be set to described minimum value as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame less than the coding side reconstructed image piece of described minimum value or the pixel component value of coding side reconstruction video frame, to remain unchanged as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame,
Described image and video decoding system comprise:
The second acquisition module 27 is used for obtaining from compressed file or code stream maximum and the minimum value of the pixel component value original image or video;
Decoding end reconstructed image piece or decoding end reconstruction video frame module 28 are used for the pixel component value according to described compressed file or code stream generation decoding end reconstructed image piece or decoding end reconstruction video frame;
decoding end reconstructed image piece or decoding end reconstruction video frame correcting module 29, be used for and be set to described maximum greater than the pixel component value of described peaked decoding end reconstructed image piece or decoding end reconstruction video frame as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame, to be set to described minimum value as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame less than the decoding end reconstructed image piece of described minimum value or the pixel component value of decoding end reconstruction video frame, to remain unchanged as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked decoding end reconstructed image piece or decoding end reconstruction video frame.
Please refer to Fig. 3, it is the image and video coding method flow schematic diagram of the embodiment of the present invention.As shown in Figure 3, a kind of image and video coding method comprises:
S31: maximum and the minimum value of obtaining the pixel component value in original image or video;
Especially, when described original image or video were black and white image or black and white video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of one-component;
Especially, when described original image or video were coloured image or color video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of three components.
Especially, when the maximum of the pixel component value in obtaining original image and minimum value, described original image is added up; When the maximum of the pixel component value in obtaining original video and minimum value, the frame of video in described original video is added up.
S32: adopt the lossy compression method method described original image of compression or frame of video to generate compressed file or code stream, a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Concrete, the lossy compression method method of described employing comprises JPEG, MPEG-4, compression method H.264.
S33: the pixel component value that generates coding side reconstructed image piece or coding side reconstruction video frame according to the coded data of each image block in described original image or video or frame of video;
S34: will be greater than the maximum value of the reconstructed image coding side blocks or reconstructed video frame encoding side pixel component value is set to the maximum value as the new reconstructed image coding side blocks or reconstructed video frame encoding side pixel component values will smaller than the minimum reconstructed image coding side blocks or reconstructed video frame encoding side pixel component value is set to the minimum value as the new reconstructed image coding side blocks or reconstructed video frame encoding side pixel component values will be greater than equal to the and less than or equal to the minimum value above the maximum reconstructed image coding side blocks or reconstructed video frame encoding side pixel component values remain unchanged as the new reconstructed image coding side blocks or reconstructed video frame encoding side pixel component values .
Please refer to Fig. 4, it is the image and video coding system configuration schematic diagram of the embodiment of the present invention.As shown in Figure 4, a kind of image and video coding system 21 comprises:
The first acquisition module 23 is for maximum and the minimum value of the pixel component value of obtaining original image or video;
Especially, when described original image or video were black and white image or black and white video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of one-component;
Especially, when described original image or video were coloured image or color video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of three components.
Especially, when the maximum of the pixel component value in obtaining original image and minimum value, described original image is added up; When the maximum of the pixel component value in obtaining original video and minimum value, the frame of video in described original video is added up.
The first compression module 24 is used for adopting the lossy compression method method described original image of compression or video to generate compressed file or code stream, and a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Coding side reconstructed image piece or coding side reconstruction video frame module 25 are used for each image block or the coded data generation coding side reconstructed image piece of frame of video or the pixel component value of coding side reconstruction video frame according to described original image or video;
coding side reconstructed image piece or coding side reconstruction video frame correcting module 26, be used for and be set to described maximum greater than the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame, to be set to described minimum value as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame less than the coding side reconstructed image piece of described minimum value or the pixel component value of coding side reconstruction video frame, to remain unchanged as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame.
Please refer to Fig. 5, it is image and the video encoding/decoding method schematic flow sheet of the embodiment of the present invention.As shown in Figure 5, a kind of image and video encoding/decoding method are decoded to the described compressed file or the code stream that generate in the image and video coding method, comprising:
S51: maximum and the minimum value of obtaining the pixel component value in original image or video from compressed file or code stream;
S52: according to the pixel component value of described compressed file or code stream generation decoding end reconstructed image piece or decoding end reconstruction video frame;
S53: will be greater than the maximum value of the reconstructed image block decoder or decoding side reconstructed video frame pixel component value is set to the maximum value as the new reconstructed image block decoder or decoding side reconstructed video frame pixel component values will smaller than the minimum block decoder or decoding side reconstructed image reconstruction pixel component values of the video frame is set to the minimum value as the new reconstructed image block decoder or decoding side reconstructed video frame pixel component values will be greater than equal to the and less than or equal to the minimum value above the maximum reconstructed image block decoder or decoding side reconstructed video frame pixel component values remain unchanged as the new block decoder or decoding side reconstructed image reconstructed video frame pixel component values .
Please refer to Fig. 6, it is image and the video decoding system structural representation of the embodiment of the present invention.As shown in Figure 6, a kind of image and video decoding system 22 comprise:
The second acquisition module 27 is used for obtaining from compressed file or code stream maximum and the minimum value of the pixel component value original image or video;
Decoding end reconstructed image piece or decoding end reconstruction video frame module 28 are used for the pixel component value according to described compressed file or code stream generation decoding end reconstructed image piece or decoding end reconstruction video frame;
decoding end reconstructed image piece or decoding end reconstruction video frame correcting module 29, be used for and be set to described maximum greater than the pixel component value of described peaked decoding end reconstructed image piece or decoding end reconstruction video frame as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame, to be set to described minimum value as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame less than the decoding end reconstructed image piece of described minimum value or the pixel component value of decoding end reconstruction video frame, to remain unchanged as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked decoding end reconstructed image piece or decoding end reconstruction video frame.
By the combination of said structure, the present invention does not increase in the situation of decoding operand at slight image and the frame of video coding operand of increasing, and has improved the quality of code efficiency and decoded image and frame of video.
Foregoing description is only the description to preferred embodiment of the present invention, is not any restriction to the scope of the invention, and any change, modification that the those of ordinary skill in field of the present invention is done according to above-mentioned disclosure all belong to the protection range of claims.

Claims (10)

1. an image and video coding-decoding method, is characterized in that, comprising: image and video coding method and image and video encoding/decoding method, wherein,
Described image and video coding method comprises:
Obtain maximum and the minimum value of the pixel component value in original image or video;
Adopt the lossy compression method method described original image of compression or video to generate compressed file or code stream, a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Generate the pixel component value of coding side reconstructed image piece or coding side reconstruction video frame according to the coded data of each image block in described original image or video or frame of video;
to be set to described maximum greater than the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame, to be set to described minimum value as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame less than the coding side reconstructed image piece of described minimum value or the pixel component value of coding side reconstruction video frame, to remain unchanged as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame,
Described image and video encoding/decoding method comprise:
Obtain maximum and the minimum value of the pixel component value in original image or video from compressed file or code stream;
Pixel component value according to described compressed file or code stream generation decoding end reconstructed image piece or decoding end reconstruction video frame;
Will be greater than the maximum value of the reconstructed image block decoder or decoding side reconstructed video frame pixel component value is set to the maximum value as the new reconstructed image block decoder or decoding side reconstructed video frame pixel component value will be less than the above the minimum block decoder or decoding side reconstructed image reconstructed video frame pixel component value is set to the minimum value as the new reconstructed image block decoder or decoding side reconstructed video frame pixel component values greater than or equal to the minimum value and less than or equal to the maximum value of the reconstructed image block decoder or decoding side reconstructed video frame pixel component values remain unchanged as the new block decoder or decoding side reconstructed image reconstructed video frame pixel component values .
2. image according to claim 1 and video coding-decoding method, is characterized in that,
When described original image or video were black and white image or black and white video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of one-component;
When described original image or video were coloured image or color video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of three components.
3. image according to claim 1 and video coding-decoding method, it is characterized in that, in the maximum of the pixel component value in obtaining original image or video and the step of minimum value, when the maximum of the pixel component value in obtaining original image and minimum value, described original image is added up; When the maximum of the pixel component value in obtaining original video and minimum value, the frame of video in described original video is added up.
4. an image and video coding method, is characterized in that, comprising:
Obtain maximum and the minimum value of the pixel component value in original image or video;
Adopt the lossy compression method method described original image of compression or frame of video to generate compressed file or code stream, a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Generate the pixel component value of coding side reconstructed image piece or coding side reconstruction video frame according to the coded data of each image block in described original image or video or frame of video;
Will be greater than the maximum value of the reconstructed image coding side terminal block or coded video frame reconstructed pixel component value is set to the maximum value as the new reconstructed image coding side terminal blocks or reconstructed video frame coded pixel component value will be less than the above the minimum coding side reconstructed image blocks or reconstructed video frame encoding side pixel component value is set to the minimum value as the new reconstructed image coding side blocks or reconstructed video frame encoding side pixel component values greater than or equal to the minimum value and less than or equal to the maximum value of the reconstructed image coding side terminal block or coded video frame reconstructed pixel component values remain unchanged as the new reconstructed image coding side terminal blocks or reconstructed video frame coded pixel component values .
5. an image and video encoding/decoding method, is characterized in that, the described compressed file or the code stream that generate in image and video coding method as claimed in claim 4 are decoded, and comprising:
Obtain maximum and the minimum value of the pixel component value in original image or video from compressed file or code stream;
Pixel component value according to described compressed file or code stream generation decoding end reconstructed image piece or decoding end reconstruction video frame;
Will be greater than the maximum value of the reconstructed image block decoder or decoding side reconstructed video frame pixel component value is set to the maximum value as the new reconstructed image block decoder or decoding side reconstructed video frame pixel component value will be less than the above the minimum block decoder or decoding side reconstructed image reconstructed video frame pixel component value is set to the minimum value as the new reconstructed image block decoder or decoding side reconstructed video frame pixel component values greater than or equal to the minimum value and less than or equal to the maximum value of the reconstructed image block decoder or decoding side reconstructed video frame pixel component values remain unchanged as the new block decoder or decoding side reconstructed image reconstructed video frame pixel component values .
6. an image and video coding and decoding system, is characterized in that, comprising: image and video coding system and image and video decoding system, wherein,
Described image and video coding system comprises:
The first acquisition module is for maximum and the minimum value of the pixel component value of obtaining original image or video;
The first compression module is used for adopting the lossy compression method method described original image of compression or video to generate compressed file or code stream, and a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Coding side reconstructed image piece or coding side reconstruction video frame module are used for each image block or the coded data generation coding side reconstructed image piece of frame of video or the pixel component value of coding side reconstruction video frame according to described original image or video;
coding side reconstructed image piece or coding side reconstruction video frame correcting module, be used for and be set to described maximum greater than the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame, to be set to described minimum value as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame less than the coding side reconstructed image piece of described minimum value or the pixel component value of coding side reconstruction video frame, to remain unchanged as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame,
Described image and video decoding system comprise:
The second acquisition module is used for obtaining from compressed file or code stream maximum and the minimum value of the pixel component value original image or video;
Decoding end reconstructed image piece or decoding end reconstruction video frame module are used for the pixel component value according to described compressed file or code stream generation decoding end reconstructed image piece or decoding end reconstruction video frame;
decoding end reconstructed image piece or decoding end reconstruction video frame correcting module, be used for and be set to described maximum greater than the pixel component value of described peaked decoding end reconstructed image piece or decoding end reconstruction video frame as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame, to be set to described minimum value as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame less than the decoding end reconstructed image piece of described minimum value or the pixel component value of decoding end reconstruction video frame, to remain unchanged as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked decoding end reconstructed image piece or decoding end reconstruction video frame.
7. image according to claim 6 and video coding and decoding system, is characterized in that,
When described original image or video were black and white image or black and white video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of one-component;
When described original image or video were coloured image or color video, the maximum of described pixel component value and minimum value comprised maximum and the minimum value of three components.
8. image according to claim 6 and video coding and decoding system, it is characterized in that, in the maximum of the pixel component value in obtaining original image or video and the step of minimum value, when the maximum of the pixel component value in obtaining original image and minimum value, described original image is added up; When the maximum of the pixel component value in obtaining original video and minimum value, the frame of video in described original video is added up.
9. an image and video coding system, is characterized in that, comprising:
The first acquisition module is for maximum and the minimum value of the pixel component value of obtaining original image or video;
The first compression module is used for adopting the lossy compression method method described original image of compression or video to generate compressed file or code stream, and a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Coding side reconstructed image piece or coding side reconstruction video frame module are used for each image block or the coded data generation coding side reconstructed image piece of frame of video or the pixel component value of coding side reconstruction video frame according to original image or video;
coding side reconstructed image piece or coding side reconstruction video frame correcting module, be used for and be set to described maximum greater than the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame, to be set to described minimum value as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame less than the coding side reconstructed image piece of described minimum value or the pixel component value of coding side reconstruction video frame, to remain unchanged as the pixel component value of new coding side reconstructed image piece or coding side reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked coding side reconstructed image piece or coding side reconstruction video frame.
10. an image and video decoding system, is characterized in that, comprising:
The second acquisition module is used for obtaining from compressed file or code stream maximum and the minimum value of the pixel component value original image or video;
Decoding end reconstructed image piece or decoding end reconstruction video frame module are used for the pixel component value according to described compressed file or code stream generation decoding end reconstructed image piece or decoding end reconstruction video frame;
decoding end reconstructed image piece or decoding end reconstruction video frame correcting module, be used for and be set to described maximum greater than the pixel component value of described peaked decoding end reconstructed image piece or decoding end reconstruction video frame as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame, to be set to described minimum value as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame less than the decoding end reconstructed image piece of described minimum value or the pixel component value of decoding end reconstruction video frame, to remain unchanged as the pixel component value of new decoding end reconstructed image piece or decoding end reconstruction video frame more than or equal to described minimum value and less than or equal to the pixel component value of described peaked decoding end reconstructed image piece or decoding end reconstruction video frame.
CN201310048281.3A 2013-02-06 2013-02-06 A kind of image and video coding-decoding method and system Active CN103096087B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310048281.3A CN103096087B (en) 2013-02-06 2013-02-06 A kind of image and video coding-decoding method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310048281.3A CN103096087B (en) 2013-02-06 2013-02-06 A kind of image and video coding-decoding method and system

Publications (2)

Publication Number Publication Date
CN103096087A true CN103096087A (en) 2013-05-08
CN103096087B CN103096087B (en) 2015-09-23

Family

ID=48208150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310048281.3A Active CN103096087B (en) 2013-02-06 2013-02-06 A kind of image and video coding-decoding method and system

Country Status (1)

Country Link
CN (1) CN103096087B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237225A (en) * 2013-05-10 2013-08-07 上海国茂数字技术有限公司 Method for correcting video encoding and decoding errors through utilizing luma and chroma (YUV) and red, green and blue (RGB) space union
CN110933413A (en) * 2018-09-20 2020-03-27 北京君正集成电路股份有限公司 Video frame processing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1197348A (en) * 1997-03-18 1998-10-28 松下电器产业株式会社 Method for correcting luminance gradation in image pickup apparatus
CN1237850A (en) * 1998-06-02 1999-12-08 德国汤姆森-布兰特有限公司 Method and apparatus for dynamic contrast improvement in video pictures
CN1497939A (en) * 2002-10-17 2004-05-19 诺日士钢机株式会社 Method for changing correcting coloruimage data and picture processing device using the method
CN1731841A (en) * 2005-08-22 2006-02-08 上海广电(集团)有限公司中央研究院 Image enhancement method for controlling digital image mean brightness
CN101340511A (en) * 2008-08-07 2009-01-07 中兴通讯股份有限公司 Adaptive video image enhancing method based on lightness detection
CN101540832A (en) * 2009-04-24 2009-09-23 段江 Methods for matching dynamic range of image signals
CN102823236A (en) * 2010-06-09 2012-12-12 富士胶片株式会社 Imaging device and image processing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1197348A (en) * 1997-03-18 1998-10-28 松下电器产业株式会社 Method for correcting luminance gradation in image pickup apparatus
CN1237850A (en) * 1998-06-02 1999-12-08 德国汤姆森-布兰特有限公司 Method and apparatus for dynamic contrast improvement in video pictures
CN1497939A (en) * 2002-10-17 2004-05-19 诺日士钢机株式会社 Method for changing correcting coloruimage data and picture processing device using the method
CN1731841A (en) * 2005-08-22 2006-02-08 上海广电(集团)有限公司中央研究院 Image enhancement method for controlling digital image mean brightness
CN101340511A (en) * 2008-08-07 2009-01-07 中兴通讯股份有限公司 Adaptive video image enhancing method based on lightness detection
CN101540832A (en) * 2009-04-24 2009-09-23 段江 Methods for matching dynamic range of image signals
CN102823236A (en) * 2010-06-09 2012-12-12 富士胶片株式会社 Imaging device and image processing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237225A (en) * 2013-05-10 2013-08-07 上海国茂数字技术有限公司 Method for correcting video encoding and decoding errors through utilizing luma and chroma (YUV) and red, green and blue (RGB) space union
CN103237225B (en) * 2013-05-10 2016-04-20 上海国茂数字技术有限公司 YUV is utilized to combine the method revising coding and decoding video error with rgb space
CN110933413A (en) * 2018-09-20 2020-03-27 北京君正集成电路股份有限公司 Video frame processing method and device

Also Published As

Publication number Publication date
CN103096087B (en) 2015-09-23

Similar Documents

Publication Publication Date Title
US20210120253A1 (en) High dynamic range image/video coding
CN103096092B (en) The method and system of encoding and decoding error correction is carried out based on color notation conversion space
US20130114687A1 (en) Fixed intra run-level mode for cavlc in hevc
US20240098320A1 (en) Custom data indicating nominal range of samples of media content
CN106576164A (en) Method and decoder for predicting and filtering color components in pictures
JP2017513318A (en) Improved screen content and mixed content encoding
US10225561B2 (en) Method and apparatus for syntax signaling in image and video compression
WO2023040600A1 (en) Image encoding method and apparatus, image decoding method and apparatus, electronic device, and medium
KR20180098117A (en) Method and device for reconstructing image data from decoded image data
WO2005001760A3 (en) Fast loss less image compression system based on neighborhood comparisons
WO2023020560A1 (en) Video coding and decoding method and apparatus, electronic device and storage medium
US20130114684A1 (en) Electronic devices for selective run-level coding and decoding
KR102631837B1 (en) Methods and devices for encoding and decoding a picture sequence, and corresponding computer program products and computer-readable media
CN105472371A (en) Video code stream processing method and device
CN103096087B (en) A kind of image and video coding-decoding method and system
KR20060127159A (en) System and method for global indication of mpeg impairments in compressed digital video
CN103634603A (en) Method, device and system for video encoding and decoding
US20220182630A1 (en) Residual coefficients coding
CN103237225B (en) YUV is utilized to combine the method revising coding and decoding video error with rgb space
WO2024119821A1 (en) Video data processing method and apparatus, storage medium, device, and program product
EP3096520A1 (en) A method for encoding/decoding a picture block
WO2024152352A1 (en) Encoding method, decoding method, code stream, encoder, decoder, and storage medium
CN1678077A (en) HDIV and SDTV TV transmission code flow chart-mark inserting system
CN104469399A (en) Method for macro block SKIP type selection in spatial resolution video transcoding
CN110784713A (en) Coding and decoding method capable of changing effective image size

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