[go: up one dir, main page]

CN103096092B - The method and system of encoding and decoding error correction is carried out based on color notation conversion space - Google Patents

The method and system of encoding and decoding error correction is carried out based on color notation conversion space Download PDF

Info

Publication number
CN103096092B
CN103096092B CN201310049872.2A CN201310049872A CN103096092B CN 103096092 B CN103096092 B CN 103096092B CN 201310049872 A CN201310049872 A CN 201310049872A CN 103096092 B CN103096092 B CN 103096092B
Authority
CN
China
Prior art keywords
components
tri
value
predetermined minimum
encoding
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
CN201310049872.2A
Other languages
Chinese (zh)
Other versions
CN103096092A (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 CN201310049872.2A priority Critical patent/CN103096092B/en
Publication of CN103096092A publication Critical patent/CN103096092A/en
Application granted granted Critical
Publication of CN103096092B publication Critical patent/CN103096092B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Color Television Systems (AREA)

Abstract

The invention provides the method for carrying out encoding and decoding error correction based on color notation conversion space, comprise: Y, U, V tri-components of each pixel of the decoded video frames of the video of the colourful digital represented with the color space of YUV type are carried out color notation conversion space, obtain R, G, B tri-components corresponding with described Y, U, V tri-components; The value of R, G, B tri-components is adapted between predetermined minimum and preset maximum value respectively, obtains R ', the G ' corresponding with described R, G, B tri-components, B ' three components; Described R ', G ', B ' three components are carried out color space inverse transformation, obtain and described R ', G ', Y ', U ' that B ' three components are corresponding, V ' three components, described Y ', U ', V ' three components are as the component after each pixel correction of decoded video frames.Y, U, V tri-components of each pixel of decoded video frames by encoding and decoding error correction make decoded video frames and original video frame more close, thus improve code efficiency.

Description

The method and system of encoding and decoding error correction is carried out based on color notation conversion space
Technical field
The present invention relates to the video coding and decoding technology field in signal transacting, particularly carry out the method and system of encoding and decoding error correction based on color notation conversion space.
Background technology
Colored digitized video represents with the color space of YUV type usually, usually represents the value of each component of pixel by 8 binary digits.But video, when collection and playback, all needs the color space transforming to RGB type usually.
In video coding and decoding technology field in the signal processing, there are many digital video decoding standards, wherein, representative has international standard MPEG-4, H.264/MPEG-4AVC(the video compression coding international standard jointly formulated by ITU-T and ISO/IECMPEG), the standard A VS etc. that China independently formulates, these standards have all related to the technology revised the error of lossy coding module generation, its basic skills is all respectively the span of each component of each pixel of (reconstruction) frame of video of decoding is limited in 0 ~ 255 at the color space of YUV type.But through carefully analyzing shades of colour spatial alternation, we find in the process from the color notation conversion space of RGB type to the color space of YUV type, the cube [0,255] in the color space of RGB type 3no longer a cube after the color space transforming to YUV type, but a parallelepiped, its volume also reduces.This parallelepiped is positioned at the cube [0,255] of the color space of RGB type completely 3within.
When the color space of YUV type carries out lossy compression method coding, owing to there is encoding and decoding error, the determined color dot of value of three components of some pixel may exceed the scope of above-mentioned parallelepiped.As previously mentioned, when playback, video needs the color space transforming to RGB type.So those color dots exceeding parallelepiped scope will exceed the cube in the color space of RGB type [0,255] after color notation conversion space 3scope.At this moment playback apparatus can be withdrawn into the color space of color dot in RGB type within cube by force.
In existing lossy compression method method, in an encoding process to being all the Y that will obtain to the process of decoded frame in the process of reconstruction frames and decode procedure, the span of U and V component is limited in 0 ~ 255 respectively, do not consider the shape of parallelepiped in the color space of YUV type, although the color of video when playback can not be affected like this, but because reconstruction frames and decoded frame can as the reference frames of subsequent frame, error wherein can make subsequent frame obtain larger predicated error when predicting, thus reduces code efficiency.
Summary of the invention
The object of the present invention is to provide and carry out the method and system of encoding and decoding error correction to solve the problem adopting existing lossy compression method method code efficiency not high based on color notation conversion space.
For solving the problems of the technologies described above, the invention provides:
Carry out the method for encoding and decoding error correction based on color notation conversion space, comprising:
Y, U, V tri-components of each pixel of the decoded video frames of the video of the colourful digital represented with the color space of YUV type are carried out color notation conversion space, obtains R, G, B tri-components corresponding with described Y, U, V tri-components;
The value of described R, G, B tri-components is adapted between predetermined minimum and preset maximum value respectively, obtains R ', the G ' corresponding with described R, G, B tri-components, B ' three components;
Described R ', G ', B ' three components are carried out color space inverse transformation, obtains and Y ', the U ' of each pixel of described R ', G ', revised decoded video frames that B ' three components are corresponding, V ' three components.
Optionally, carry out in the method for encoding and decoding error correction described based on color notation conversion space, described the step that the value of described R, G, B tri-components is adapted between predetermined minimum and preset maximum value respectively to be comprised:
When the value of described R, G, B tri-components is greater than preset maximum value, then the value of described R, G, B tri-components is set to preset maximum value;
When the value of described R, G, B tri-components is less than predetermined minimum, then when the value of described R, G, B tri-components being set to predetermined minimum;
When the value of described R, G, B tri-components is more than or equal to predetermined minimum and is less than or equal to preset maximum value, then the value of described R, G, B tri-components remains unchanged.
Optionally, carry out in the method for encoding and decoding error correction described based on color notation conversion space, described predetermined minimum is zero; Described preset maximum value is 2 n-1, wherein, n is the number of bits representing Y, U, V tri-components, and the value of n is determined by a coding/decoding system.
Meanwhile, the present invention also provides the system of carrying out encoding and decoding error correction based on color notation conversion space, comprising:
Color notation conversion space module, Y, U, V tri-components for each pixel of the decoded video frames of the video of colourful digital will represented with the color space of YUV type carry out color notation conversion space, obtain R, G, B tri-components corresponding with described Y, U, V tri-components;
Encoding and decoding error correction module, for the value of described R, G, B tri-components being adapted to respectively between predetermined minimum and preset maximum value, obtains R ', the G ' corresponding with described R, G, B tri-components, B ' three components;
Color space inverse transform block, for described R ', G ', B ' three components are carried out color space inverse transformation, obtain and Y ', the U ' of each pixel of described R ', G ', revised decoded video frames that B ' three components are corresponding, V ' three components.
Optionally, carry out in the system of encoding and decoding error correction described based on color notation conversion space, the video of described decoded video frames composition is the video of the colourful digital represented with the color space of YUV type.
Optionally, carry out in the system of encoding and decoding error correction described based on color notation conversion space, in encoding and decoding error correction module,
When the value of described R, G, B tri-components is greater than preset maximum value, then the value of described R, G, B tri-components is set to preset maximum value;
When the value of described R, G, B tri-components is less than predetermined minimum, then when the value of described R, G, B tri-components being set to predetermined minimum;
When the value of described R, G, B tri-components is more than or equal to predetermined minimum and is less than or equal to preset maximum value, then the value of described R, G, B tri-components remains unchanged.
Optionally, carry out in the system of encoding and decoding error correction described based on color notation conversion space, described predetermined minimum is zero; Described preset maximum value is 2 n-1, wherein, n is the number of bits representing Y, U, V tri-components, and the value of n is determined by a coding/decoding system.
The method and system carrying out encoding and decoding error correction based on color notation conversion space provided by the invention, there is following beneficial effect: in an encoding process, Y, U, V tri-components of each pixel of decoded video frames by encoding and decoding error correction make decoded video frames and original video frame more close, thus improve code efficiency.In decode procedure, Y, U, V tri-components of each pixel are effectively limited in the color space inside of YUV type, improve the quality of image.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the schematic flow sheet carrying out the method for encoding and decoding error correction based on color notation conversion space of the embodiment of the present invention;
Fig. 2 is the structural representation carrying out the system of encoding and decoding error correction based on color notation conversion space of the embodiment of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the method and system carrying out encoding and decoding error correction based on color notation conversion space that the present invention proposes is 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 the schematic flow sheet carrying out the method for encoding and decoding error correction based on color notation conversion space of the embodiment of the present invention.As shown in Figure 1, carry out the method for encoding and decoding error correction based on color notation conversion space, comprising:
S11: Y, U, V tri-components of each pixel of the decoded video frames of the video of the colourful digital represented with the color space of YUV type are carried out color notation conversion space, obtains R, G, B tri-components corresponding with described Y, U, V tri-components;
S12: the value of described R, G, B tri-components be adapted to respectively between predetermined minimum and preset maximum value, obtains R ', the G ' corresponding with described R, G, B tri-components, B ' three components;
Concrete, when the value of described R, G, B tri-components is greater than preset maximum value, then the value of described R, G, B tri-components is set to preset maximum value;
When the value of described R, G, B tri-components is less than predetermined minimum, then when the value of described R, G, B tri-components being set to predetermined minimum;
When the value of described R, G, B tri-components is more than or equal to predetermined minimum and is less than or equal to preset maximum value, then the value of described R, G, B tri-components remains unchanged.
Especially, in the present embodiment, described predetermined minimum is zero; Described preset maximum value is 2 n-1, wherein, n represents n binary digit, and represent Y, U, V tri-components by n binary digit, the value of n is determined by video coding and decoding system.
S13: described R ', G ', B ' three components are carried out color space inverse transformation, obtains and Y ', the U ' of each pixel of described R ', G ', revised decoded video frames that B ' three components are corresponding, V ' three components.
In follow-up coding, using revised decoded video frames as during with reference to frame of video, just better can be predicted the outcome, thus be improve code efficiency.
Please refer to Fig. 2, it is the structural representation carrying out the system of encoding and decoding error correction based on color notation conversion space of the embodiment of the present invention.As shown in Figure 2, carry out the system of encoding and decoding error correction based on color notation conversion space, comprising:
Color notation conversion space module 21, Y, U, V tri-components for each pixel of the decoded video frames of the video of colourful digital will represented with the color space of YUV type carry out color notation conversion space, obtain R, G, B tri-components corresponding with described Y, U, V tri-components;
Encoding and decoding error correction module 22, for the value of described R, G, B tri-components being adapted to respectively between predetermined minimum and preset maximum value, obtains R ', the G ' corresponding with described R, G, B tri-components, B ' three components;
Concrete, when the value of described R, G, B tri-components is greater than preset maximum value, then the value of described R, G, B tri-components is set to preset maximum value;
When the value of described R, G, B tri-components is less than predetermined minimum, then when the value of described R, G, B tri-components being set to predetermined minimum;
When the value of described R, G, B tri-components is more than or equal to predetermined minimum and is less than or equal to preset maximum value, then the value of described R, G, B tri-components remains unchanged.
Especially, in the present embodiment, described predetermined minimum is zero; Described preset maximum value is 2 n-1, wherein, n represents n binary digit, and represent Y, U, V tri-components by n binary digit, the value of n is determined by video coding and decoding system.
Color space inverse transform block 23, for described R ', G ', B ' three components are carried out color space inverse transformation, obtain and Y ', the U ' of each pixel of described R ', G ', revised decoded video frames that B ' three components are corresponding, V ' three components.
By the combination of said structure, in an encoding process, Y, U, V tri-components of each pixel of decoded video frames by encoding and decoding error correction make decoded video frames and original video frame more close, in follow-up coding, using revised decoded video frames as during with reference to frame of video, just better can be predicted the outcome, thus be improve code efficiency.In decode procedure, Y, U, V tri-components of each pixel are effectively limited in the color space inside of YUV type, improve the quality of image.
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 (4)

1. carry out the method for encoding and decoding error correction based on color notation conversion space, it is characterized in that, comprising:
Y, U, V tri-components of each pixel of the decoded video frames of the video of the colourful digital represented with the color space of YUV type are carried out color notation conversion space, obtains R, G, B tri-components corresponding with described Y, U, V tri-components;
The value of described R, G, B tri-components is adapted between predetermined minimum and preset maximum value respectively, obtains R ', the G ' corresponding with described R, G, B tri-components, B ' three components;
Described R ', G ', B ' three components are carried out color space inverse transformation, obtains and Y ', the U ' of each pixel of described R ', G ', revised decoded video frames that B ' three components are corresponding, V ' three components;
Using Y ', the U ' of each pixel of described revised decoded video frames, V ' three components as the reference video frame of the frame of video of next code;
Described predetermined minimum is zero; Described preset maximum value is 2 n-1, wherein, n is the number of bits representing Y, U, V tri-components, and the value of n is determined by a coding/decoding system.
2. method of carrying out encoding and decoding error correction based on color notation conversion space according to claim 1, is characterized in that, describedly the step that the value of described R, G, B tri-components is adapted between predetermined minimum and preset maximum value is respectively comprised:
When the value of described R, G, B tri-components is greater than preset maximum value, then the value of described R, G, B tri-components is set to preset maximum value;
When the value of described R, G, B tri-components is less than predetermined minimum, then when the value of described R, G, B tri-components being set to predetermined minimum;
When the value of described R, G, B tri-components is more than or equal to predetermined minimum and is less than or equal to preset maximum value, then the value of described R, G, B tri-components remains unchanged.
3. carry out the system of encoding and decoding error correction based on color notation conversion space, it is characterized in that, comprising:
Color notation conversion space module, Y, U, V tri-components for each pixel of the decoded video frames of the video of colourful digital will represented with the color space of YUV type carry out color notation conversion space, obtain R, G, B tri-components corresponding with described Y, U, V tri-components;
Encoding and decoding error correction module, for the value of described R, G, B tri-components being adapted to respectively between predetermined minimum and preset maximum value, obtains R ', the G ' corresponding with described R, G, B tri-components, B ' three components;
Color space inverse transform block, for described R ', G ', B ' three components are carried out color space inverse transformation, obtain and Y ', the U ' of each pixel of described R ', G ', revised decoded video frames that B ' three components are corresponding, V ' three components;
Y ', the U ' of each pixel of described revised decoded video frames, V ' three components are used for the reference video frame of frame of video of next code;
Described predetermined minimum is zero; Described preset maximum value is 2 n-1, wherein, n is the number of bits representing Y, U, V tri-components, and the value of n is determined by a coding/decoding system.
4. system of carrying out encoding and decoding error correction based on color notation conversion space according to claim 3, is characterized in that, in encoding and decoding error correction module,
When the value of described R, G, B tri-components is greater than preset maximum value, then the value of described R, G, B tri-components is set to preset maximum value;
When the value of described R, G, B tri-components is less than predetermined minimum, then when the value of described R, G, B tri-components being set to predetermined minimum;
When the value of described R, G, B tri-components is more than or equal to predetermined minimum and is less than or equal to preset maximum value, then the value of described R, G, B tri-components remains unchanged.
CN201310049872.2A 2013-02-07 2013-02-07 The method and system of encoding and decoding error correction is carried out based on color notation conversion space Active CN103096092B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310049872.2A CN103096092B (en) 2013-02-07 2013-02-07 The method and system of encoding and decoding error correction is carried out based on color notation conversion space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310049872.2A CN103096092B (en) 2013-02-07 2013-02-07 The method and system of encoding and decoding error correction is carried out based on color notation conversion space

Publications (2)

Publication Number Publication Date
CN103096092A CN103096092A (en) 2013-05-08
CN103096092B true CN103096092B (en) 2015-12-02

Family

ID=48208152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310049872.2A Active CN103096092B (en) 2013-02-07 2013-02-07 The method and system of encoding and decoding error correction is carried out based on color notation conversion space

Country Status (1)

Country Link
CN (1) CN103096092B (en)

Families Citing this family (9)

* 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
CN104581102A (en) * 2013-10-09 2015-04-29 联咏科技股份有限公司 Color converting method and color converting system
WO2015131330A1 (en) 2014-03-04 2015-09-11 Microsoft Technology Licensing, Llc Encoding strategies for adaptive switching of color spaces, color sampling rates and/or bit depths
MY189001A (en) 2014-03-04 2022-01-17 Microsoft Technology Licensing Llc Adaptive switching of color spaces, color sampling rates and/or bit depths
US10116937B2 (en) 2014-03-27 2018-10-30 Microsoft Technology Licensing, Llc Adjusting quantization/scaling and inverse quantization/scaling when switching color spaces
US10687069B2 (en) 2014-10-08 2020-06-16 Microsoft Technology Licensing, Llc Adjustments to encoding and decoding when switching color spaces
RU2709652C1 (en) * 2016-05-16 2019-12-19 Телефонактиеболагет Лм Эрикссон (Пабл) Pixel processing based on color component
CN108989819B (en) * 2017-06-03 2023-04-07 上海天荷电子信息有限公司 Data compression method and device adopting respective corresponding color spaces for modes
CN108810509B (en) * 2018-07-06 2020-08-11 北京中安未来科技有限公司 Image color correction method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1662071A (en) * 2004-02-24 2005-08-31 豪威科技有限公司 Image data processing in color spaces
CN101137070A (en) * 2006-08-28 2008-03-05 华为技术有限公司 Method and device for correcting gamma characteristics of video input equipment in video communication
CN101589609A (en) * 2007-01-26 2009-11-25 微软公司 Fast filtered YUV to RGB conversion

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10048735A1 (en) * 2000-09-29 2002-04-11 Bosch Gmbh Robert Methods for coding and decoding image sequences and devices therefor
KR100801057B1 (en) * 2006-07-18 2008-02-04 삼성전자주식회사 CMOS Image Sensor with Color Correction Block and Image Sensing Method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1662071A (en) * 2004-02-24 2005-08-31 豪威科技有限公司 Image data processing in color spaces
CN101137070A (en) * 2006-08-28 2008-03-05 华为技术有限公司 Method and device for correcting gamma characteristics of video input equipment in video communication
CN101589609A (en) * 2007-01-26 2009-11-25 微软公司 Fast filtered YUV to RGB conversion

Also Published As

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

Similar Documents

Publication Publication Date Title
CN103096092B (en) The method and system of encoding and decoding error correction is carried out based on color notation conversion space
CN107277514B (en) The method of decoding video signal
JP7277616B2 (en) Method, apparatus and storage medium for processing video data
JP6749922B2 (en) Improved Palette Mode in High Efficiency Video Coding (HEVC) Screen Content Coding (SCC)
CN105611305B (en) Video image coding method and video bit stream decoding method
EP3163875B1 (en) Adaptive inverse-quantization method and apparatus in video coding
CN113841401A (en) Selection of a quadratic transform matrix for video processing
CN104255033B (en) Reduced look-up-table for LM mode computations
RU2015115514A (en) METHOD, DEVICE AND SYSTEM FOR CODING AND DECODING OF UNITS OF TRANSFORMATION OF CODING UNIT
CN101715135A (en) Template matching based method for encoding self-adaption intra-frame prediction filtering
CN107211136A (en) Method and apparatus for entropy coding of source samples with large alphabets
CN106063265A (en) Luma-based encoding tool for video compression
KR20200040317A (en) Image coding and decoding methods and devices
CN103260018A (en) Intra-frame image predictive encoding and decoding method and video codec
JP7323712B2 (en) Precision transform and quantization for image and video coding
US10091531B2 (en) Image coding and decoding methods and apparatuses
CN101841722B (en) Detection method of detection device of filtering boundary strength
CN104780383A (en) 3D-HEVC (High Efficiency Video Coding) multi-resolution video coding method
CN103533351B (en) A kind of method for compressing image quantifying table more
CN107277521B (en) TU tree structure decision algorithm based on HEVC video coding
CN103237225B (en) YUV is utilized to combine the method revising coding and decoding video error with rgb space
CN103096087B (en) A kind of image and video coding-decoding method and system
CN105227959A (en) For odd encoder point shuffling flowing water method and the device thereof of Video coding
CN103024386B (en) A kind of header encoding and decoding, coding/decoding method and device
CN118175311A (en) Video data processing method, device, storage medium and equipment

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