CN103096087B - A kind of image and video coding-decoding method and system - Google Patents

A kind of image and video coding-decoding method and system Download PDF

Info

Publication number
CN103096087B
CN103096087B CN201310048281.3A CN201310048281A CN103096087B CN 103096087 B CN103096087 B CN 103096087B CN 201310048281 A CN201310048281 A CN 201310048281A CN 103096087 B CN103096087 B CN 103096087B
Authority
CN
China
Prior art keywords
pixel component
image block
component value
decoding end
video
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.)
Active
Application number
CN201310048281.3A
Other languages
Chinese (zh)
Other versions
CN103096087A (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

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention provides a kind of image and video coding-decoding method, comprising: during coding, obtain maximum and the minimum value of the pixel component value in original image or video; Employing lossy compression method method compresses described original image or video generates compressed file or code stream, and a part of coded data of described compressed file or code stream comprises described maximum and minimum value; Generate coding side to rebuild image block or frame of video and carry out revising to it and generate new coding side and rebuild image block or frame of video; During decoding, from compressed file or code stream, obtain maximum and minimum value; Generate decoding end to rebuild image block or frame of video and carry out revising to it and generate new decoding end and rebuild image block or frame of video.By generating the span limiting pixel component value in the step of rebuilding image, thus improve the quality of code efficiency and decoded image or video.

Description

A kind of image and video coding-decoding method and system
Technical field
The present invention relates to the image in signal transacting and audio video encoding technology field, particularly a kind of image and video coding-decoding method and system.
Background technology
In image in the signal processing and video coding and decoding technology field, there are many digital pictures and video encoding and decoding standard, wherein, representative video encoding and decoding standard have MPEG-2, H.264/MPEG-4AVC, the standard A VS etc. that independently formulates of China, representative image codec standards has JPEG and JPEG2000 etc.
Digital picture and video encoding and decoding standard all define the span of each pixel component, and such as 0 ~ 255.But in the application of the reality of prior art, the value of a concrete width original image of input or each pixel component of one section of vision signal, is not full of the whole interval of regulation usually, a subinterval just on interval.Existing digital picture and video encoding and decoding standard, all the scope span of each component of pixel being limited in regulation in the step generating coding side reconstruction image or reconstruction frames and decoding end reconstruction image or reconstruction frames, not according to the scope of the input signal of reality, reconstructed value is revised, this not only can bring larger distortion, also can make reconstruction image block or the reconstruction video frame of the coded reference mistake of further part, make predicated error become large, thus 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 solve the correction of prior art to reconstructed value, bring the problem that larger distortion and code efficiency reduce.Owing to being all that the span of each component of pixel is limited in whole interval in the decoding step of prior art, do not revise according to the span of scope to each component of pixel of the input signal of reality, thus cause the problem that image or video produce larger distortion, encoding rate reduces.
For solving the problems of the technologies described above, the invention provides:
A kind of image and video coding-decoding method, 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;
Employing lossy compression method method compresses described original image or video generates compressed file or code stream, and a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Coded data according to each image block in described original image or video or frame of video generates the pixel component value that coding side rebuilds image block or coding side reconstruction video frame;
The pixel component value of the coding side being greater than described maximum being rebuild image block or coding side reconstruction video frame is set to described maximum rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, the pixel component value of the coding side being less than described minimum value being rebuild image block or coding side reconstruction video frame is set to described minimum value rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, described minimum value will be more than or equal to and the pixel component value that the coding side being less than or equal to described maximum rebuilds image block or coding side reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or coding side reconstruction video frame as new coding side,
Described image and video encoding/decoding method comprise:
Maximum and the minimum value of the pixel component value in original image or video is obtained from compressed file or code stream;
The pixel component value that decoding end rebuilds image block or decoding end reconstruction video frame is generated according to described compressed file or code stream;
The pixel component value of the decoding end being greater than described maximum being rebuild image block or decoding end reconstruction video frame is set to described maximum rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, the pixel component value of the decoding end being less than described minimum value being rebuild image block or decoding end reconstruction video frame is set to described minimum value rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, will be more than or equal to described minimum value and the pixel component value that the decoding end being less than or equal to described maximum rebuilds image block or decoding end reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or decoding end reconstruction video frame as new decoding end.
Optionally, in described image and video coding-decoding method, when described original image or video be black and white image or black and white video time, the maximum of described pixel component value and minimum value comprise maximum and the minimum value of one-component; When described original image or video be coloured image or color video time, the maximum of described pixel component value and minimum value comprise maximum and the minimum value of three components.
Optionally, in described image and video coding-decoding method, in the maximum of pixel component value obtained in original image or video and the step of minimum value, when obtaining maximum and the minimum value of the pixel component value in original image, described original image is added up; When obtaining maximum and the minimum value of the pixel component value in original video, the frame of video in described original video is added up.
Meanwhile, 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;
Employing lossy compression method method compresses described original image or frame of video generates compressed file or code stream, and a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Coded data according to each image block in described original image or video or frame of video generates the pixel component value that coding side rebuilds image block or coding side reconstruction video frame;
The pixel component value of the coding side being greater than described maximum being rebuild image block or coding side reconstruction video frame is set to described maximum rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, the pixel component value of the coding side being less than described minimum value being rebuild image block or coding side reconstruction video frame is set to described minimum value rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, will be more than or equal to described minimum value and the pixel component value that the coding side being less than or equal to described maximum rebuilds image block or coding side reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or coding side reconstruction video frame as new coding side.
Meanwhile, the present invention also provides a kind of image and video encoding/decoding method, decodes, comprising the described compressed file generated in described image and video coding method or code stream:
Maximum and the minimum value of the pixel component value in original image or video is obtained from compressed file or code stream;
The pixel component value that decoding end rebuilds image block or decoding end reconstruction video frame is generated according to described compressed file or code stream;
The pixel component value of the decoding end being greater than described maximum being rebuild image block or decoding end reconstruction video frame is set to described maximum rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, the pixel component value of the decoding end being less than described minimum value being rebuild image block or decoding end reconstruction video frame is set to described minimum value rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, will be more than or equal to described minimum value and the pixel component value that the decoding end being less than or equal to described maximum rebuilds image block or decoding end reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or decoding end reconstruction video frame as new decoding end.
Meanwhile, 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:
First acquisition module, for obtaining maximum and the minimum value of the pixel component value in original image or video;
First compression module, compresses described original image for adopting lossy compression method method or video generates 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 rebuilds image block or coding side reconstruction video frame module, for generating according to the coded data of each image block in described original image or video or frame of video the pixel component value that coding side rebuilds image block or coding side reconstruction video frame;
Coding side rebuilds image block or coding side reconstruction video frame correcting module, pixel component value for the coding side being greater than described maximum being rebuild image block or coding side reconstruction video frame is set to described maximum rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, the pixel component value of the coding side being less than described minimum value being rebuild image block or coding side reconstruction video frame is set to described minimum value rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, described minimum value will be more than or equal to and the pixel component value that the coding side being less than or equal to described maximum rebuilds image block or coding side reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or coding side reconstruction video frame as new coding side,
Described image and video decoding system comprise:
Second acquisition module, for obtaining maximum and the minimum value of the pixel component value in original image or video from compressed file or code stream;
Decoding end rebuilds image block or decoding end reconstruction video frame module, for generating according to described compressed file or code stream the pixel component value that decoding end rebuilds image block or decoding end reconstruction video frame;
Decoding end rebuilds image block or decoding end reconstruction video frame correcting module, pixel component value for the decoding end being greater than described maximum being rebuild image block or decoding end reconstruction video frame is set to described maximum rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, the pixel component value of the decoding end being less than described minimum value being rebuild image block or decoding end reconstruction video frame is set to described minimum value rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, described minimum value will be more than or equal to and the pixel component value that the decoding end being less than or equal to described maximum rebuilds image block or decoding end reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or decoding end reconstruction video frame as new decoding end.
Optionally, in described image and video coding and decoding system, when described original image or video be black and white image or black and white video time, the maximum of described pixel component value and minimum value comprise maximum and the minimum value of one-component; When described original image or video be coloured image or color video time, the maximum of described pixel component value and minimum value comprise maximum and the minimum value of three components.
Optionally, in described image and video coding and decoding system, in the maximum of pixel component value obtained in original image or video and the step of minimum value, when obtaining maximum and the minimum value of the pixel component value in original image, described original image is added up; When obtaining maximum and the minimum value of the pixel component value in original video, the frame of video in described original video is added up.
Meanwhile, the present invention also provides a kind of image and video coding system, comprising:
First acquisition module, for obtaining maximum and the minimum value of the pixel component value in original image or video;
First compression module, compresses described original image for adopting lossy compression method method or video generates 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 rebuilds image block or coding side reconstruction video frame module, for generating according to the coded data of each image block in original image or video or frame of video the pixel component value that coding side rebuilds image block or coding side reconstruction video frame;
Coding side rebuilds image block or coding side reconstruction video frame correcting module, pixel component value for the coding side being greater than described maximum being rebuild image block or coding side reconstruction video frame is set to described maximum rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, the pixel component value of the coding side being less than described minimum value being rebuild image block or coding side reconstruction video frame is set to described minimum value rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, described minimum value will be more than or equal to and the pixel component value that the coding side being less than or equal to described maximum rebuilds image block or coding side reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or coding side reconstruction video frame as new coding side.
Meanwhile, the present invention also provides a kind of image and video decoding system, comprising:
Second acquisition module, for obtaining maximum and the minimum value of the pixel component value in original image or video from compressed file or code stream;
Decoding end rebuilds image block or decoding end reconstruction video frame module, for generating according to described compressed file or code stream the pixel component value that decoding end rebuilds image block or decoding end reconstruction video frame;
Decoding end rebuilds image block or decoding end reconstruction video frame correcting module, pixel component value for the decoding end being greater than described maximum being rebuild image block or decoding end reconstruction video frame is set to described maximum rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, the pixel component value of the decoding end being less than described minimum value being rebuild image block or decoding end reconstruction video frame is set to described minimum value rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, described minimum value will be more than or equal to and the pixel component value that the decoding end being less than or equal to described maximum rebuilds image block or decoding end reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or decoding end reconstruction video frame as new decoding end.
A kind of image provided by the invention and video coding-decoding method and system, there is following beneficial effect: in an encoding process, generate coding side according to original image or video rebuild the pixel component value of image block or coding side reconstruction video frame and carry out revising the new coding side reconstruction image block of generation or frame of video to it, thus improve code efficiency; In decode procedure, carry out revising the amount of calculation not increasing decoder according to the maximum of the pixel component value in original image or video and minimum value, because decoder just needs according to the maximum of theoretic pixel component value and the span of minimum value correction pixel component originally, after revising by method of the present invention, have modified according to theoretic maximum and minimum value with regard to no longer needing, improve the quality of decoded image or video.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, 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 proposed the present invention 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 the form that simplifies very much and all uses non-ratio accurately, only in order to object that is convenient, 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: the maximum and the minimum value that obtain the pixel component value in original image or video;
Especially, when described original image or video be black and white image or black and white video time, the maximum of described pixel component value and minimum value comprise maximum and the minimum value of one-component.
Especially, when described original image or video be coloured image or color video time, the maximum of described pixel component value and minimum value comprise maximum and the minimum value of three components.
Especially, when obtaining maximum and the minimum value of the pixel component value in original image, described original image is added up; When obtaining maximum and the minimum value of the pixel component value in original video, the frame of video in described original video is added up.
In an encoding process, the image block in statistics original image or video or the maximum of pixel component value of frame of video and the amount of calculation of minimum value are very little for encoder, but thus can improve code efficiency.
S12: employing lossy compression method method compresses described original image or video generates compressed file or code stream, and 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, H.264 compression method.
S13: the coded data according to each image block in described original image or video or frame of video generates the pixel component value that coding side rebuilds image block or coding side reconstruction video frame;
S14: the pixel component value of the coding side being greater than described maximum being rebuild image block or coding side reconstruction video frame is set to described maximum rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, the pixel component value of the coding side being less than described minimum value being rebuild image block or coding side reconstruction video frame is set to described minimum value rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, described minimum value will be more than or equal to and the pixel component value that the coding side being less than or equal to described maximum rebuilds image block or coding side reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or coding side reconstruction video frame as new coding side,
Described image and video encoding/decoding method comprise:
S15: the maximum and the minimum value that obtain the pixel component value in original image or video from compressed file or code stream;
S16: generate the pixel component value that decoding end rebuilds image block or decoding end reconstruction video frame according to described compressed file or code stream;
S17: the pixel component value of the decoding end being greater than described maximum being rebuild image block or decoding end reconstruction video frame is set to described maximum rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, the pixel component value of the decoding end being less than described minimum value being rebuild image block or decoding end reconstruction video frame is set to described minimum value rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, described minimum value will be more than or equal to and the pixel component value that the decoding end being less than or equal to described maximum rebuilds image block or decoding end reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or decoding end reconstruction video frame as new decoding end,
Especially, new image or new video in a practical situation can not be identical with video with original image, but a kind of image of the present invention and video coding-decoding method, by generating the span limiting pixel component value in the step of rebuilding image, thus improve the quality of code efficiency and decoded image or video.Especially, if the new decoding end of pixel component value and each image block or frame of video that the new coding side of each image block or frame of video rebuilds image block or coding side reconstruction video frame rebuilds the pixel component value not correspondent equal of image block or decoding end reconstruction video frame, then there is mistake 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:
First acquisition module 23, for obtaining maximum and the minimum value of the pixel component value in original image or video;
Especially, when described original image or video be black and white image or black and white video time, the maximum of described pixel component value and minimum value comprise maximum and the minimum value of one-component;
Especially, when described original image or video be coloured image or color video time, the maximum of described pixel component value and minimum value comprise maximum and the minimum value of three components.
Especially, when obtaining maximum and the minimum value of the pixel component value in original image, described original image is added up; When obtaining maximum and the minimum value of the pixel component value in original video, the frame of video in described original video is added up.
First compression module 24, compresses described original image for adopting lossy compression method method or video generates 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, H.264 compression method.
Coding side rebuilds image block or coding side reconstruction video frame module 25, for generating according to the coded data of each image block in described original image or video or frame of video the pixel component value that coding side rebuilds image block or coding side reconstruction video frame;
Coding side rebuilds image block or coding side reconstruction video frame correcting module 26, pixel component value for the coding side being greater than described maximum being rebuild image block or coding side reconstruction video frame is set to described maximum rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, the pixel component value of the coding side being less than described minimum value being rebuild image block or coding side reconstruction video frame is set to described minimum value rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, described minimum value will be more than or equal to and the pixel component value that the coding side being less than or equal to described maximum rebuilds image block or coding side reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or coding side reconstruction video frame as new coding side,
Described image and video decoding system comprise:
Second acquisition module 27, for obtaining maximum and the minimum value of the pixel component value in original image or video from compressed file or code stream;
Decoding end rebuilds image block or decoding end reconstruction video frame module 28, for generating according to described compressed file or code stream the pixel component value that decoding end rebuilds image block or decoding end reconstruction video frame;
Decoding end rebuilds image block or decoding end reconstruction video frame correcting module 29, pixel component value for the decoding end being greater than described maximum being rebuild image block or decoding end reconstruction video frame is set to described maximum rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, the pixel component value of the decoding end being less than described minimum value being rebuild image block or decoding end reconstruction video frame is set to described minimum value rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, described minimum value will be more than or equal to and the pixel component value that the decoding end being less than or equal to described maximum rebuilds image block or decoding end reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or decoding end reconstruction video frame as new decoding end.
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: the maximum and the minimum value that obtain the pixel component value in original image or video;
Especially, when described original image or video be black and white image or black and white video time, the maximum of described pixel component value and minimum value comprise maximum and the minimum value of one-component;
Especially, when described original image or video be coloured image or color video time, the maximum of described pixel component value and minimum value comprise maximum and the minimum value of three components.
Especially, when obtaining maximum and the minimum value of the pixel component value in original image, described original image is added up; When obtaining maximum and the minimum value of the pixel component value in original video, the frame of video in described original video is added up.
S32: employing lossy compression method method compresses described original image or frame of video generates 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, the lossy compression method method of described employing comprises JPEG, MPEG-4, H.264 compression method.
S33: the coded data according to each image block in described original image or video or frame of video generates the pixel component value that coding side rebuilds image block or coding side reconstruction video frame;
S34: the pixel component value of the coding side being greater than described maximum being rebuild image block or coding side reconstruction video frame is set to described maximum rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, the pixel component value of the coding side being less than described minimum value being rebuild image block or coding side reconstruction video frame is set to described minimum value rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, will be more than or equal to described minimum value and the pixel component value that the coding side being less than or equal to described maximum rebuilds image block or coding side reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or coding side reconstruction video frame as new coding side.
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:
First acquisition module 23, for obtaining maximum and the minimum value of the pixel component value in original image or video;
Especially, when described original image or video be black and white image or black and white video time, the maximum of described pixel component value and minimum value comprise maximum and the minimum value of one-component;
Especially, when described original image or video be coloured image or color video time, the maximum of described pixel component value and minimum value comprise maximum and the minimum value of three components.
Especially, when obtaining maximum and the minimum value of the pixel component value in original image, described original image is added up; When obtaining maximum and the minimum value of the pixel component value in original video, the frame of video in described original video is added up.
First compression module 24, compresses described original image for adopting lossy compression method method or video generates 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 rebuilds image block or coding side reconstruction video frame module 25, for generating according to the coded data of each image block in described original image or video or frame of video the pixel component value that coding side rebuilds image block or coding side reconstruction video frame;
Coding side rebuilds image block or coding side reconstruction video frame correcting module 26, pixel component value for the coding side being greater than described maximum being rebuild image block or coding side reconstruction video frame is set to described maximum rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, the pixel component value of the coding side being less than described minimum value being rebuild image block or coding side reconstruction video frame is set to described minimum value rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, described minimum value will be more than or equal to and the pixel component value that the coding side being less than or equal to described maximum rebuilds image block or coding side reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or coding side reconstruction video frame as new coding side.
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, the described compressed file generated in image and video coding method or code stream are decoded, comprising:
S51: the maximum and the minimum value that obtain the pixel component value in original image or video from compressed file or code stream;
S52: generate the pixel component value that decoding end rebuilds image block or decoding end reconstruction video frame according to described compressed file or code stream;
S53: the pixel component value of the decoding end being greater than described maximum being rebuild image block or decoding end reconstruction video frame is set to described maximum rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, the pixel component value of the decoding end being less than described minimum value being rebuild image block or decoding end reconstruction video frame is set to described minimum value rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, will be more than or equal to described minimum value and the pixel component value that the decoding end being less than or equal to described maximum rebuilds image block or decoding end reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or decoding end reconstruction video frame as new decoding end.
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:
Second acquisition module 27, for obtaining maximum and the minimum value of the pixel component value in original image or video from compressed file or code stream;
Decoding end rebuilds image block or decoding end reconstruction video frame module 28, for generating according to described compressed file or code stream the pixel component value that decoding end rebuilds image block or decoding end reconstruction video frame;
Decoding end rebuilds image block or decoding end reconstruction video frame correcting module 29, pixel component value for the decoding end being greater than described maximum being rebuild image block or decoding end reconstruction video frame is set to described maximum rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, the pixel component value of the decoding end being less than described minimum value being rebuild image block or decoding end reconstruction video frame is set to described minimum value rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, described minimum value will be more than or equal to and the pixel component value that the decoding end being less than or equal to described maximum rebuilds image block or decoding end reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or decoding end reconstruction video frame as new decoding end.
By the combination of said structure, the present invention increases image and coding video frames operand slight, when not increasing decoding operand, improves the quality of code efficiency and decoded image and frame of video.
Foregoing description is only the description to present pre-ferred embodiments, any restriction not to the scope of the invention, and any change that the those of ordinary skill in field of the present invention does according to above-mentioned disclosure, modification, all belong to the protection range of claims.

Claims (10)

1. image and a 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;
Employing lossy compression method method compresses described original image or video generates compressed file or code stream, and a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Coded data according to each image block in described original image or video or frame of video generates the pixel component value that coding side rebuilds image block or coding side reconstruction video frame;
The pixel component value of the coding side being greater than described maximum being rebuild image block or coding side reconstruction video frame is set to described maximum rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, the pixel component value of the coding side being less than described minimum value being rebuild image block or coding side reconstruction video frame is set to described minimum value rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, described minimum value will be more than or equal to and the pixel component value that the coding side being less than or equal to described maximum rebuilds image block or coding side reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or coding side reconstruction video frame as new coding side,
Described image and video encoding/decoding method comprise:
Maximum and the minimum value of the pixel component value in original image or video is obtained from compressed file or code stream;
The pixel component value that decoding end rebuilds image block or decoding end reconstruction video frame is generated according to described compressed file or code stream;
The pixel component value of the decoding end being greater than described maximum being rebuild image block or decoding end reconstruction video frame is set to described maximum rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, the pixel component value of the decoding end being less than described minimum value being rebuild image block or decoding end reconstruction video frame is set to described minimum value rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, will be more than or equal to described minimum value and the pixel component value that the decoding end being less than or equal to described maximum rebuilds image block or decoding end reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or decoding end reconstruction video frame as new decoding end.
2. image according to claim 1 and video coding-decoding method, is characterized in that,
When described original image or video be black and white image or black and white video time, the maximum of described pixel component value and minimum value comprise maximum and the minimum value of one-component;
When described original image or video be coloured image or color video time, the maximum of described pixel component value and minimum value comprise 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 pixel component value obtained in original image or video and the step of minimum value, when obtaining maximum and the minimum value of the pixel component value in original image, described original image is added up; When obtaining maximum and the minimum value of the pixel component value in original video, 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;
Employing lossy compression method method compresses described original image or frame of video generates compressed file or code stream, and a part of coded data of described compressed file or code stream comprises described maximum and minimum value;
Coded data according to each image block in described original image or video or frame of video generates the pixel component value that coding side rebuilds image block or coding side reconstruction video frame;
The pixel component value of the coding side being greater than described maximum being rebuild image block or coding side reconstruction video frame is set to described maximum rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, the pixel component value of the coding side being less than described minimum value being rebuild image block or coding side reconstruction video frame is set to described minimum value rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, will be more than or equal to described minimum value and the pixel component value that the coding side being less than or equal to described maximum rebuilds image block or coding side reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or coding side reconstruction video frame as new coding side.
5. image and a video encoding/decoding method, is characterized in that, decodes, comprising the described compressed file generated in image and video coding method as claimed in claim 4 or code stream:
Maximum and the minimum value of the pixel component value in original image or video is obtained from compressed file or code stream;
The pixel component value that decoding end rebuilds image block or decoding end reconstruction video frame is generated according to described compressed file or code stream;
The pixel component value of the decoding end being greater than described maximum being rebuild image block or decoding end reconstruction video frame is set to described maximum rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, the pixel component value of the decoding end being less than described minimum value being rebuild image block or decoding end reconstruction video frame is set to described minimum value rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, will be more than or equal to described minimum value and the pixel component value that the decoding end being less than or equal to described maximum rebuilds image block or decoding end reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or decoding end reconstruction video frame as new decoding end.
6. image and a 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:
First acquisition module, for obtaining maximum and the minimum value of the pixel component value in original image or video;
First compression module, compresses described original image for adopting lossy compression method method or video generates 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 rebuilds image block or coding side reconstruction video frame module, for generating according to the coded data of each image block in described original image or video or frame of video the pixel component value that coding side rebuilds image block or coding side reconstruction video frame;
Coding side rebuilds image block or coding side reconstruction video frame correcting module, pixel component value for the coding side being greater than described maximum being rebuild image block or coding side reconstruction video frame is set to described maximum rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, the pixel component value of the coding side being less than described minimum value being rebuild image block or coding side reconstruction video frame is set to described minimum value rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, described minimum value will be more than or equal to and the pixel component value that the coding side being less than or equal to described maximum rebuilds image block or coding side reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or coding side reconstruction video frame as new coding side,
Described image and video decoding system comprise:
Second acquisition module, for obtaining maximum and the minimum value of the pixel component value in original image or video from compressed file or code stream;
Decoding end rebuilds image block or decoding end reconstruction video frame module, for generating according to described compressed file or code stream the pixel component value that decoding end rebuilds image block or decoding end reconstruction video frame;
Decoding end rebuilds image block or decoding end reconstruction video frame correcting module, pixel component value for the decoding end being greater than described maximum being rebuild image block or decoding end reconstruction video frame is set to described maximum rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, the pixel component value of the decoding end being less than described minimum value being rebuild image block or decoding end reconstruction video frame is set to described minimum value rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, described minimum value will be more than or equal to and the pixel component value that the decoding end being less than or equal to described maximum rebuilds image block or decoding end reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or decoding end reconstruction video frame as new decoding end.
7. image according to claim 6 and video coding and decoding system, is characterized in that,
When described original image or video be black and white image or black and white video time, the maximum of described pixel component value and minimum value comprise maximum and the minimum value of one-component;
When described original image or video be coloured image or color video time, the maximum of described pixel component value and minimum value comprise 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 pixel component value obtained in original image or video and the step of minimum value, when obtaining maximum and the minimum value of the pixel component value in original image, described original image is added up; When obtaining maximum and the minimum value of the pixel component value in original video, the frame of video in described original video is added up.
9. an image and video coding system, is characterized in that, comprising:
First acquisition module, for obtaining maximum and the minimum value of the pixel component value in original image or video;
First compression module, compresses described original image for adopting lossy compression method method or video generates 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 rebuilds image block or coding side reconstruction video frame module, for generating according to the coded data of each image block in original image or video or frame of video the pixel component value that coding side rebuilds image block or coding side reconstruction video frame;
Coding side rebuilds image block or coding side reconstruction video frame correcting module, pixel component value for the coding side being greater than described maximum being rebuild image block or coding side reconstruction video frame is set to described maximum rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, the pixel component value of the coding side being less than described minimum value being rebuild image block or coding side reconstruction video frame is set to described minimum value rebuilds image block or coding side reconstruction video frame pixel component value as new coding side, described minimum value will be more than or equal to and the pixel component value that the coding side being less than or equal to described maximum rebuilds image block or coding side reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or coding side reconstruction video frame as new coding side.
10. image and a video decoding system, is characterized in that, comprising:
Second acquisition module, for obtaining maximum and the minimum value of the pixel component value in original image or video from compressed file or code stream;
Decoding end rebuilds image block or decoding end reconstruction video frame module, for generating according to described compressed file or code stream the pixel component value that decoding end rebuilds image block or decoding end reconstruction video frame;
Decoding end rebuilds image block or decoding end reconstruction video frame correcting module, pixel component value for the decoding end being greater than described maximum being rebuild image block or decoding end reconstruction video frame is set to described maximum rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, the pixel component value of the decoding end being less than described minimum value being rebuild image block or decoding end reconstruction video frame is set to described minimum value rebuilds image block or decoding end reconstruction video frame pixel component value as new decoding end, described minimum value will be more than or equal to and the pixel component value that the decoding end being less than or equal to described maximum rebuilds image block or decoding end reconstruction video frame remains unchanged and rebuilds the pixel component value of image block or decoding end reconstruction video frame as new decoding end.
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 CN103096087A (en) 2013-05-08
CN103096087B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

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

Also Published As

Publication number Publication date
CN103096087A (en) 2013-05-08

Similar Documents

Publication Publication Date Title
US10200690B2 (en) Video decoder conformance for high dynamic range (HDR) video coding using a core video standard
TWI542219B (en) Frequency domain sample adaptive offset (sao)
CN103535038B (en) Effective framework for being layered VDR codings
EP3664452A1 (en) Video image encoding and decoding method, apparatus, and device
CN103096092B (en) The method and system of encoding and decoding error correction is carried out based on color notation conversion space
CN104639948A (en) In-loop adaptive wiener filter for video coding and decoding
MY183839A (en) Method and apparatus for encoding video by compensating for pixel value according to pixel value according to pixel groups, and method and apparatus for decoding video by the same
MX2022000834A (en) Device and method for coding video data.
EP3817389A1 (en) Image encoding method, decoding method, encoder, decoder and storage medium
WO2021004153A1 (en) Image prediction method, coder, decoder, and storage medium
CN106303521B (en) A kind of HEVC Rate-distortion optimization method based on sensitivity of awareness
WO2022228104A1 (en) Video transcoding method and apparatus, and electronic device and storage medium
CN103260018A (en) Intra-frame image predictive encoding and decoding method and video codec
WO2023040600A1 (en) Image encoding method and apparatus, image decoding method and apparatus, electronic device, and medium
CN101651829A (en) Loop wave filtering method and device and mobile multi-medium terminal chip
WO2023020560A1 (en) Video coding and decoding method and apparatus, electronic device and storage medium
CN101291436B (en) Video coding/decoding method and device thereof
US10225561B2 (en) Method and apparatus for syntax signaling in image and video compression
CN103096087B (en) A kind of image and video coding-decoding method and system
CN103634603A (en) Method, device and system for video encoding and decoding
CN103237225B (en) YUV is utilized to combine the method revising coding and decoding video error with rgb space
US10034007B2 (en) Non-subsampled encoding techniques
TWI514851B (en) Image encoding/decing system and method applicable thereto
CN104469399A (en) Method for macro block SKIP type selection in spatial resolution video transcoding
KR101499919B1 (en) Apparatus for decoding residual data based on bit plane and method thereof

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