WO2016119746A1 - 图像编码方法及装置、图像解码方法及装置 - Google Patents

图像编码方法及装置、图像解码方法及装置 Download PDF

Info

Publication number
WO2016119746A1
WO2016119746A1 PCT/CN2016/072790 CN2016072790W WO2016119746A1 WO 2016119746 A1 WO2016119746 A1 WO 2016119746A1 CN 2016072790 W CN2016072790 W CN 2016072790W WO 2016119746 A1 WO2016119746 A1 WO 2016119746A1
Authority
WO
WIPO (PCT)
Prior art keywords
range
component
copy
parameter
pixel sample
Prior art date
Application number
PCT/CN2016/072790
Other languages
English (en)
French (fr)
Inventor
林涛
李明
尚国强
吴钊
Original Assignee
同济大学
中兴通讯股份有限公司
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
Priority claimed from CN201610058685.4A external-priority patent/CN105847842B/zh
Application filed by 同济大学, 中兴通讯股份有限公司 filed Critical 同济大学
Priority to EP16742808.5A priority Critical patent/EP3253061A4/en
Publication of WO2016119746A1 publication Critical patent/WO2016119746A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation

Definitions

  • the present invention relates to the field of image coding and decoding, and in particular to an image coding method and apparatus, an image decoding method and apparatus.
  • the ultra-efficient compression of video images is also the latest international video compression standard HEVC (High Efficiency Video Coding) and several other international standards, domestic standards, and industry. A major goal of the standard.
  • HEVC High Efficiency Video Coding
  • the natural form of a digital video signal of an image is a sequence of images.
  • a frame of image is usually a rectangular area composed of several pixels, and a digital video signal is a sequence of video images composed of tens of frames to thousands of frames of images, sometimes simply referred to as a video sequence or sequence.
  • Encoding a digital video signal encodes a frame by frame image. At any one time, the image of the frame being encoded is referred to as the current encoded image.
  • decoding a compressed video stream of a digital video signal (referred to as a bitstream, also referred to as a bitstream) is decoding a stream of one frame by one image.
  • the image of the frame being decoded is referred to as the current decoded image.
  • the current encoded image or the currently decoded image is collectively referred to as the current image.
  • one frame of image is divided into blocks of MxM.
  • a sub-image of a pixel called a coding block (from a decoding perspective, that is, a decoding block, collectively referred to as a codec block) or a "Coding Unit (CU), with a CU as a basic coding unit, performs sub-images one by one. coding.
  • the size of the commonly used M is 4, 8, 16, 32, 64. Therefore, encoding a video image sequence is to encode one CU for each coding unit of each frame image, that is, CU.
  • the CU being coded is referred to as the current coded CU.
  • decoding the code stream of a video image sequence is also decoding one CU for each CU of each frame image, and finally reconstructing the entire video image sequence.
  • the CU being decoded is referred to as the currently decoded CU.
  • the current coding CU or the current decoding CU is collectively referred to as the current CU.
  • each CU in one frame of image can be different, some are 8x8, some are 64x64, and so on.
  • LCUs Large Coding Units
  • one frame of image is usually first divided into "Largest Coding Units (LCUs)" having the same size and having NxN pixels, and then each LCU is further divided into a tree structure. Multiple CUs of different sizes are not necessarily the same. Therefore, the LCU is also referred to as a "Coding Tree Unit (CTU)".
  • LCUs Large Coding Units
  • CTU Coding Tree Unit
  • One of the LCUs is composed of three 32x32 pixel CUs and four 16x16 pixel CUs, so that seven tree-structured CUs form a CTU.
  • the other LCU consists of two 32x32 pixel CUs, three 16x16 pixel CUs, and 20 8x8 pixel CUs.
  • Such 25 CUs in a tree structure constitute another CTU.
  • Encoding one frame of image is to sequentially encode one CU in one CTU.
  • LCU is synonymous with CTU.
  • a CU whose size is equal to the CTU is called a CU with a depth of zero.
  • a CU obtained by dividing the CU up and down and left and right by a depth of 0 is called a CU having a depth of 1.
  • a CU with a depth of 1 and a CU divided into four equal parts is called a CU with a depth of 2.
  • a CU obtained by dividing the CU of the depth of 2 into four equal parts is called a CU having a depth of 3.
  • the CU can also be further divided into sub-areas.
  • Sub-regions include, but are not limited to, prediction unit (PU), transform unit (TU), asymmetric partition (AMP) regions.
  • PU prediction unit
  • TU transform unit
  • AMP asymmetric partition
  • a color pixel usually consists of three components.
  • the two most commonly used pixel color formats are the GBR color format consisting of a green component, a blue component, and a red component, and a YUV color consisting of a luma component and two chroma components. format.
  • the color format commonly known as YUV actually includes multiple color formats, such as the YCbCr color format. Therefore, when encoding a CU, a CU can be divided into three component planes (G plane, B plane, R plane or Y plane, U plane, V plane), and the three component planes are respectively coded; The three component bundles of one pixel are combined into one 3-tuple, and the CUs composed of these 3-tuples are encoded as a whole.
  • the arrangement of the former pixel and its components is called the planar format of the image (and its CU), and the arrangement of the latter pixel and its components is called the stacked format of the image (and its CU). Format).
  • the GBR color format and the YUV color format of the pixel are both 3-component representation formats of the pixel.
  • the value of a pixel can also be represented by the index of the palette.
  • the palette space stores the value or approximate value of the three components of the pixel that needs to be represented.
  • the address of the palette is called the index of the pixel stored in this address.
  • An index can represent one component of a pixel, and an index can also represent three components of a pixel.
  • the palette can be one or more. In the case of multiple palettes, a complete index is actually composed of the palette number and the index of the numbered palette.
  • the index representation format of a pixel is to represent this pixel with an index.
  • the index representation format of a pixel is also referred to as an indexed color or a pseudo color representation format of a pixel in the prior art, or is often referred to directly as an indexed pixel or a pseudo pixel (pseudo pixel). ) or pixel index or index. Indexes are sometimes referred to as indices.
  • the representation of a pixel in its index representation format is also referred to as indexing or indexing.
  • CMYK presentation formats Other commonly used prior art pixel representation formats include CMYK presentation formats and grayscale representation formats.
  • the YUV color format can be subdivided into several seed formats according to whether the chroma component is downsampled: a YUV 4:4:4 pixel color format consisting of 1 Y component, 1 U component, and 1 V component.
  • the left and right adjacent pixels are composed of two Y components, one U component, and one V component in a YUV 4:2:2 pixel color format; four pixels arranged in a left and right adjacent position by 2x2 spatial position are composed of four pixels.
  • YUV4: 2:0 pixel color format consisting of Y component, 1 U component, and 1 V component.
  • a component is generally represented by a number of 8 to 16 bits.
  • the YUV4:2:2 pixel color format and the YUV4:2:0 pixel color format are all downsampled for the YUV4:4:4 pixel color format.
  • a pixel component is also called A pixel sample or simply a sample.
  • the most basic element when encoding or decoding can be one pixel, one pixel component, or one pixel index (ie, index pixel).
  • a pixel or a pixel component or an index pixel, which is the most basic element of encoding or decoding, is collectively referred to as a pixel sample, sometimes referred to as a pixel value, or simply as a sample.
  • a coding block or a decoding block is an area composed of a plurality of pixel values.
  • the shape of the codec block may be a rectangle, a square, a parallelogram, a trapezoid, a polygon, a circle, an ellipse, and the like.
  • a rectangle also includes a rectangle whose width or height is one pixel value that degenerates into a line (ie, a line segment or a line shape).
  • each codec block may have a different shape and size.
  • some or all of the codec blocks may overlap each other, or all codec blocks may not overlap each other.
  • a codec block may be composed of "pixels”, or may be composed of “components of pixels”, or may be composed of "index pixels”, or may be composed of a mixture of the three, or any of the three. Mixed composition.
  • a codec block refers to an area in which encoding or decoding is performed in a frame image, including but not limited to at least one of the following: a maximum coding unit LCU, a coding tree unit CTU, and a coding unit CU. a sub-region of the CU, a prediction unit PU, and a transform unit TU.
  • a notable feature of computer screen images is that there are often many similar or even identical pixel patterns within the same frame of image.
  • Chinese or foreign text that often appears in computer screen images is composed of a few basic strokes, and many similar or identical strokes can be found in the same frame image.
  • Menus, icons, etc. which are common in computer screen images, also have many similar or identical patterns. Therefore, the encoding methods commonly used in existing image and video compression technologies include the following various ways of copying:
  • Intra block copying means intraframe block matching or intraframe motion compensation or block matching or block copying.
  • the basic operation of block copy coding or decoding is to copy a current code block or a current decoding block (referred to as the current block) from the reconstructed reference pixel sample set by the same size as the current block (the same number of pixel samples).
  • the reference block is referenced and the value of the reference block is assigned to the current block as a prediction block or a reconstructed block of the current block.
  • the copy parameter of the block copy mode includes the displacement vector of the current block, indicating the relative position between the reference block and the current block.
  • a current block has a displacement vector.
  • Microblock copying is microblock matching or microblock matching or microblock replication.
  • a current block such as 8x8 pixel samples
  • several microblocks such as 4x2 pixel sample microblocks or 8x2 pixel sample microblocks or 2x4 pixel sample microblocks or 2x8 pixels.
  • the micro-block copy encoding or decoding basic operation is to encode each microblock or decoding microblock (referred to as the current microblock) in the current block, and copy one from the reconstructed reference pixel sample set. Referring to the microblock, and assigning the value of the reference microblock to the current microblock as a prediction block or a reconstruction block of the current microblock.
  • the copy parameter of the microblock copy mode includes at least one of the following parameters: a displacement vector of the current microblock, indicating a relative position between the reference microblock and the current microblock; and an indication parameter of the reconstructed reference pixel sample set, indicating the reference micro
  • a current microblock has a displacement vector. How many displacement vectors are there in how many microblocks a current block is divided into. The microblocks in the same code block can Use the same or different reconstructed reference pixel sample sets.
  • Lines are duplicates or strips or strips.
  • a strip is a microblock of height 1 or width 1, such as a 4x1 or 8x1 or 1x4 or 1x8 pixel sample.
  • the basic operation of the strip copy encoding or decoding is to copy each reference strip or decoded strip (referred to as the current strip) in the current block from the reconstructed reference pixel sample set, and the value of the reference strip Assign the current bar as the prediction bar or reconstruction bar of the current bar.
  • strip copying is a special case of microblock copying.
  • the copying parameter of the strip copy mode includes at least one of the following parameters: a displacement vector of the current strip, indicating a relative position between the reference strip and the current strip; and an indication parameter of the reconstructed reference pixel sample set, indicating the reconstruction of the reference strip Pixel sample set.
  • a current bar has a displacement vector. How many displacement vectors are there in how many bars a current block is divided into. The same or different reconstructed reference pixel sample sets can be used for the bars in the same code block.
  • String copying is string matching or string matching or string copying.
  • a current coded block or a current decoded block (referred to as the current block) is divided into several variable-length pixel sample strings.
  • the string here refers to arranging the pixel samples in a two-dimensional area of an arbitrary shape into a string whose length is much larger than the width (for example, a string having a width of 1 pixel sample and a length of 37 pixel samples or a width of 2)
  • a string of pixel samples of length 111 pixels typically but not limited to a length that is an independent encoding or decoding parameter and a width that is a predetermined or derived parameter from other encoding or decoding parameters).
  • the basic operation of string copy encoding or decoding is to copy each reference string from the reconstructed reference pixel sample set to each encoded string or decoded string (referred to as the current string) in the current block, and the value of the reference string
  • the current string is assigned to the predicted string or reconstructed string of the current string.
  • the copy parameter of the string copy mode includes at least one of the following parameters: a displacement vector of the current string, indicating a relative position between the reference string and the current string; a copy length, that is, a copy size, and a length of the current string, that is, a number of pixel samples;
  • the indicator parameter of the reference pixel sample set indicates a set of reconstructed pixel samples in which the reference string is located.
  • the length of the current string is also the length of the reference string.
  • a current string has a displacement vector and a copy length. How many displacement vectors and how many copy lengths a current block is divided into.
  • the same or different reconstructed reference pixel sample sets can be used for strings in the same coded block.
  • the string copy mode can be divided into the following subtypes according to the path shape of the string:
  • the reference string and the current string are one-dimensional pixel sample strings formed in the order of horizontal scanning in the CTU or CU, and have equal lengths, but the two-dimensional regions formed by the two strings do not necessarily have the same two-dimensional shape.
  • the reference string and the current string are one-dimensional pixel sample strings formed in the CTU or CU in the order of vertical scanning, and have equal lengths, but the two-dimensional regions formed by the two strings do not necessarily have the same two-dimensional shape.
  • Imitation two-dimensional horizontal scanning conformal monospaced string copying is abbreviated as two-dimensional horizontal string copying.
  • the reference string and the current string have equal lengths, all arranged in exactly the same two-dimensional shape in the order of horizontal scanning, and the width of the formed two-dimensional area is equal to the width of the current coding block or the decoding block.
  • Imitation two-dimensional vertical scanning conformal contour string copying is abbreviated as two-dimensional vertical string copying.
  • the reference string and the current string have equal lengths, all arranged in exactly the same two-dimensional shape in the order of vertical scanning, and the height of the formed two-dimensional area is equal to the height of the current coding block or the decoding block.
  • Two-dimensional horizontal scanning conformal broadening string replication is referred to as two-dimensional horizontal string replication.
  • the reference string and the current string are equal in length Degrees are arranged in exactly the same two-dimensional shape in the order of horizontal scanning, but the width of the formed two-dimensional area is not necessarily equal to the width of the current coding block or decoding block, but is not larger than the current coding block or decoding block.
  • the variable width of the width In this subtype of string copy mode, the copy parameter also includes the copy width of the two-dimensional area formed by the current string.
  • the width copy is an independent parameter or a dependent parameter derived from other encoding or decoding parameters.
  • Two-dimensional vertical scanning conformal high-string copying is referred to as two-dimensional vertical string copying.
  • the reference string and the current string have equal lengths, all arranged in exactly the same two-dimensional shape in the order of vertical scanning, but the height of the formed two-dimensional area is not necessarily equal to the height of the current coding block or the decoding block, but is not A variable height that is greater than the height of the current coded block or decoded block.
  • the copy parameters also include the copy height of the two-dimensional area formed by the current string.
  • the copy height is an independent parameter or a dependent parameter derived from other encoding or decoding parameters.
  • the above horizontal scans include zigzag scanning and arcuate scanning (ie, the scanning directions of the odd and even lines are opposite).
  • the above vertical scans also include zigzag scanning and arcuate scanning (ie, the scanning directions of the odd and even columns are opposite).
  • Intra-frame rectangle copy that is, intra-frame rectangle matching or rectangular matching or rectangular copying.
  • a current coded block or a current decoded block (referred to as the current block) is divided into a plurality of rectangles composed of variable width and variable height pixel samples.
  • the rectangle here refers to a two-dimensional area of any size characterized by a width and a height.
  • the basic operation of rectangular copy encoding or decoding is to encode each rectangular or decoded rectangle (referred to as the current rectangle) in the current block, copy a reference rectangle from the reconstructed reference pixel sample set, and set the value of the reference rectangle Assign the current rectangle as the predicted rectangle or reconstructed rectangle of the current rectangle.
  • the reference rectangle and the current rectangle have equal widths, also have equal heights, and thus have exactly the same two-dimensional rectangular shape.
  • Such a rectangle is also formed by a string of pixel samples.
  • the length of the string is the product of the height of the rectangle and the width of the rectangle, that is, the length of the string is exactly a multiple of the width of the two-dimensional region formed by the string (this multiple is this).
  • the height of the two-dimensional area is exactly a multiple of the height of the two-dimensional area formed by the string (this multiple is the width of this two-dimensional area).
  • a rectangular copy is a special case of the above string copy subtype 4.5) or 4.6), that is, the length of the string is exactly the special case of the product of the height of the rectangle and the width of the rectangle.
  • a rectangular copy of a special case belonging to the string copy subtype 4.5) is called a horizontal scan rectangle copy.
  • a rectangular copy of a special case belonging to the string copy subtype 4.6) is called a vertical scan rectangle copy.
  • the copy parameter of the rectangular copy mode includes at least one of the following parameters: a displacement vector of the current rectangle, indicating a relative position between the reference rectangle and the current rectangle; a size of the rectangle, that is, a copy size, indicating a horizontal direction (ie, a width) and a vertical of the current rectangle.
  • the number of pixel samples in the direction ie, height
  • an indicator parameter that reconstructs the reference pixel sample set, indicating the set of reconstructed pixel samples in which the reference rectangle is located.
  • the size of the current rectangle is also the size of the reference rectangle.
  • a current rectangle has a displacement vector and a rectangle size. How many displacement vectors and how many rectangle sizes a current block is divided into.
  • the same or different reconstructed reference pixel sample sets can be used for rectangles in the same code block.
  • palette encoding method and the corresponding decoding method also known as index copying.
  • the palette encoding and the corresponding decoding mode first construct or acquire a color palette, and then represent some or all of the pixels of the current coding block or the current decoding block with an index of the palette, and then encode the index and Decoding includes, but is not limited to, encoding and decoding of various copying methods for an index, particularly encoding and decoding in a string copy mode or encoding and decoding in a rectangular copy mode.
  • screen images usually have regions of various natures, some have relatively large or regular shapes that are similar or identical to each other, while others have small or irregularly shaped patterns that are similar or identical to each other. Therefore, in one frame In the image, multiple copying methods are usually used.
  • the copy parameters of the block copy, the microblock copy, and the strip copy are only subjected to simple prediction (ie, differential) encoding, that is, the entropy code is written into the code stream; for the copy parameters of the string copy and the rectangular copy, It is written directly into the code stream by entropy coding. Therefore, there is still a relatively redundant component in the value of the copy parameter of the write stream, and the coding efficiency is not high. In view of the above problems in the related art, there is currently no effective solution.
  • the embodiment of the invention provides an image encoding method and device, an image decoding method and a device, so as to at least solve the problem that there is a redundant component in the value of the copy parameter of the written code stream in the related art.
  • an image encoding method including: when encoding a current encoding block, comprehensively adjusting an original value of a copying parameter of a copy encoding manner to obtain an adjusted value of a copy parameter;
  • the adjustment value is encoded and written into the video code stream; wherein the operation of the comprehensive adjustment comprises at least one of: component reduction: reducing one of the copy parameters according to the value of the component of the one or more copy parameters Or the range of values of components of multiple replicated parameters; component permutation: one-dimensional, or two-dimensional, or three-dimensional, or partial regions in four-dimensional space composed of the components of the replicated parameters; component decorrelation: A component of a copy parameter or a component of a plurality of copy parameters is subjected to independent or intersecting decorrelation operations; a plurality of sets of binarization of components: selecting the set of binarizations according to the values of components of one or more copy parameters A set of binarization operations on one or more copy parameter components other
  • the coding block is an coding region of an image, where the coding region includes at least one of: a maximum coding unit LCU, a coding tree unit CTU, a coding unit CU, a sub-region of a CU, a prediction unit PU, Transform unit TU, pixel string, pixel group, pixel microblock, pixel strip.
  • the coding region includes at least one of: a maximum coding unit LCU, a coding tree unit CTU, a coding unit CU, a sub-region of a CU, a prediction unit PU, Transform unit TU, pixel string, pixel group, pixel microblock, pixel strip.
  • the copy parameter component includes at least: component 1, component 2, component 3, and component 4; wherein the component 1, the component 2, the component 3, and the component 4 have ranges of values respectively Is a range 1, a range 2, a range 3, a range 4; the sub-range of the range 1 includes at least a sub-range 11; the sub-range of the range 2 includes at least a sub-range 21; and the sub-range of the range 3 includes at least a sub-range 31; the sub-range of the range 4 includes at least the sub-range 41; the operation of reducing the component includes at least: a basic operation (X, Y) consisting of the cause component X and the result component Y, wherein the reason component X is taken When the value is in the sub-range X1, the value range of the result component Y is the sub-range Y1; X, Y are one of 1, 2, 3, 4, respectively, and X and Y are not equal to each other; Any reasonable logical relationship of the basic operation cause component combines a plurality of said basic basic operation
  • the copy parameter component includes at least: component 1, component 2, component 3, and component 4; wherein the component 1, the component 2, the component 3, and the component 4 have ranges of values respectively Is a range 1, a range 2, a range 3, a range 4; the sub-range of the range 1 includes at least a sub-range 11; the sub-range of the range 2 includes at least a sub-range 21; and the sub-range of the range 3 includes at least a sub-range 31; the subrange of the range 4 includes at least the subrange 41; the copy parameter
  • the other coding parameters include: a non-current copy parameter A, a non-current copy parameter B, a non-current copy parameter C, and a non-current copy parameter D; wherein the non-current copy parameter A, the non-current copy parameter B, The non-current copy parameter C, the value range of the non-current copy parameter D is a range A, a range B, a range C, and a range D, respectively; the sub-range of the range A includes at least a sub-range
  • the copy parameter component includes at least a copy parameter component of the current pixel sample segment: component 1, component 2, component 3, component 4; wherein the component 1, the component 2, the component 3
  • the range of values of the component 4 is range 1, range 2, range 3, and range 4, respectively;
  • the sub-range of the range 1 includes at least the sub-range 11;
  • the sub-range of the range 2 includes at least the sub-range 21;
  • the sub-range of the range 3 includes at least the sub-range 31;
  • the sub-range of the range 4 includes at least the sub-range 41;
  • the non-current copy parameter includes at least: a non-current copy parameter A, a non-current copy parameter B, and a non-current copy parameter C, a non-current copy parameter D; wherein the non-current copy parameter A is a combination A of copy parameter components of a pixel sample segment before the current pixel sample segment;
  • the non-current copy parameter B is before the current pixel sample segment a combination B of the copy parameter components of the pixel sample segment;
  • the copy parameter component includes at least a copy parameter component of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, a copy length Len; wherein the copy parameter of the current pixel sample segment The component value range satisfies the condition that the reference pixel sample segment of the current pixel sample segment is located within a predetermined reference region;
  • the non-current copy parameter includes at least: a copy parameter component of a pixel sample segment preceding the current pixel sample segment a combination: a displacement vector horizontal component BV0x, a displacement vector vertical component BV0y, a copy length Len0; wherein the non-current copy parameter value range satisfies the condition that the reference pixel sample segment of the previous pixel sample segment is located at a predetermined Within the reference area;
  • the component reduction operation includes at least: if the copy parameter component BV0x and/or BV0y and / of the previous pixel sample segment Or the value of Len0 indicates that the copy parameter component
  • the copy parameter component includes at least a copy parameter component of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, a copy length Len; wherein the copy parameter of the current pixel sample segment The range of values of the component satisfies the condition that the reference pixel sample segment of the current pixel sample segment is located within a predetermined reference region;
  • the non-current copy parameter includes at least one of the following: a pixel sample segment preceding the current pixel sample segment A combination of the copy parameter components: a displacement vector horizontal component BV0x, a displacement vector vertical component BV0y, and a copy length Len0; wherein the combined range of values satisfies the condition that the reference pixel sample segment of the previous pixel sample segment is located at a predetermined Within the reference area; the coordinates of the first pixel of the current pixel sample segment: horizontal coordinate X1 and vertical coordinate Y1; the first one directly above the first pixel of the current pixel sample segment does not belong to
  • the range of the copy parameter component BVy of the current pixel sample segment is: 1 ⁇ (BVy - Ydelta) ⁇ (Ymax - Ydelta), where Ymax is the combination of the BVy The maximum value range;
  • the parameter component BVx has a value range of: 1 ⁇ (BVx - Xdelta) ⁇ (Xmax - Xdelta), where Ymax is BVx The maximum value of the range of said combination; BVx-Xdelta used for writing the code stream is encoded.
  • a copy parameter component corresponds to a plurality of sets of binarization schemes; wherein, in the code stream, the video parameter set VPS and/or the sequence parameter set SPS and/or the image parameter set PPS and/or the strip header and/or the CTU In the header and/or CU header and/or codec block header, there is a direct or indirect proprietary binarization mode; the proprietary binarization mode specifies that the coded block or the decoded block adopts multiple sets of binarization schemes a set of binarizing the copy parameter component; the indirect proprietary binarization mode
  • the equation includes at least one of: a binarization mode derived from a depth of the coding block; a binarization mode derived from the coding block quantization factor; and a binarization mode derived from whether the coding block is quantized; A binarization mode derived from whether or not the coding block is transformed.
  • the operation of the component permutation includes at least: performing component replacement on another copy parameter component if a copy parameter component and/or a non-current copy parameter value is equal to a predetermined value.
  • an image decoding method comprising: parsing a code stream, and obtaining a decoding parameter of a decoding block, wherein the decoding parameter includes at least one of: a copy of the decoding block a parameter, an adjustment indication information of the replication parameter; performing an adjustment operation on the replication parameter according to the adjustment indication information of the replication parameter, to obtain a replication parameter adjustment recovery value; and using the replication parameter to adjust a recovery value to the decoding block Performing decoding; wherein the adjusting operation on the copy parameter includes at least one of: component reduction: reducing a value range of components of the copy parameter according to a value of a component of the one or more copy parameters that have been obtained, Within the reduced value range, parsing the copy parameter related field in the code stream, determining the copy parameter adjustment recovery value; component replacement: one-dimensional, or two-dimensional, composed of values of the copied parameter component, Or three-dimensional, or partial regions in four-dimensional space for permutation; component correlation:
  • the decoding block is a decoding area of an image, where the decoding area includes at least one of: a maximum decoding unit LCU, a decoding tree unit CTU, a decoding unit CU, a sub-area of a CU, a prediction unit PU, Transform unit TU, pixel string, pixel group, pixel microblock, pixel strip.
  • the decoding area includes at least one of: a maximum decoding unit LCU, a decoding tree unit CTU, a decoding unit CU, a sub-area of a CU, a prediction unit PU, Transform unit TU, pixel string, pixel group, pixel microblock, pixel strip.
  • the copy parameter component includes at least: component 1, component 2, component 3, and component 4; wherein the component 1, the component 2, the component 3, and the component 4 have ranges of values respectively Is a range 1, a range 2, a range 3, a range 4; the sub-range of the range 1 includes at least a sub-range 11; the sub-range of the range 2 includes at least a sub-range 21; and the sub-range of the range 3 includes at least a sub-range 31; the sub-range of the range 4 includes at least the sub-range 41; the operation of reducing the component includes at least: a basic operation (X, Y) consisting of the cause component X and the result component Y, wherein the reason component X is taken When the value is in the sub-range X1, the value range of the result component Y is the sub-range Y1; X, Y are one of 1, 2, 3, 4, respectively, and X and Y are not equal to each other; Any reasonable logical relationship of the basic operation cause component combines a plurality of said basic basic operation
  • the copy parameter component includes at least: component 1, component 2, component 3, and component 4; wherein the component 1, the component 2, the component 3, and the component 4 have ranges of values respectively Is a range 1, a range 2, a range 3, a range 4; the sub-range of the range 1 includes at least a sub-range 11; the sub-range of the range 2 includes at least a sub-range 21; and the sub-range of the range 3 includes at least a sub-range
  • the sub-range of the range 4 includes at least the sub-range 41; the other decoding parameters except the copy parameter include at least: a non-current copy parameter A, a non-current copy parameter B, a non-current copy parameter C, and a non-current copy parameter.
  • the number C, the range of the non-current copy parameter D is a range A, a range B, a range C, and a range D;
  • the sub-range of the range A includes at least the sub-range A1;
  • the sub-range of the range B includes at least Sub-range B1;
  • the sub-range of the range C includes at least the sub-range C1;
  • the sub-range of the range D includes at least the sub-range D1;
  • the operation of reducing the component includes at least: a cause parameter X that is a non-current copy parameter X
  • the copy parameter component includes at least a copy parameter component of the current pixel sample segment: component 1, component 2, component 3, component 4; wherein the component 1, the component 2, the component 3
  • the range of values of the component 4 is range 1, range 2, range 3, and range 4, respectively;
  • the sub-range of the range 1 includes at least the sub-range 11;
  • the sub-range of the range 2 includes at least the sub-range 21;
  • the sub-range of the range 3 includes at least the sub-range 31;
  • the sub-range of the range 4 includes at least the sub-range 41;
  • the non-current copy parameter includes at least: a non-current copy parameter A, a non-current copy parameter B, and a non-current copy parameter C, a non-current copy parameter D; wherein the non-current copy parameter A is a combination A of copy parameter components of a pixel sample segment before the current pixel sample segment;
  • the non-current copy parameter B is before the current pixel sample segment a combination B of the copy parameter components of the pixel sample segment;
  • the copy parameter component includes at least a copy parameter component of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, a copy length Len; wherein the copy parameter of the current pixel sample segment The component value range satisfies the condition that the reference pixel sample segment of the current pixel sample segment is located within a predetermined reference region;
  • the non-current copy parameter includes at least: a copy parameter component of a pixel sample segment preceding the current pixel sample segment a combination: a displacement vector horizontal component BV0x, a displacement vector vertical component BV0y, a copy length Len0; wherein the non-current copy parameter value range satisfies the condition that the reference pixel sample segment of the previous pixel sample segment is located at a predetermined
  • the component reduction operation includes at least: if the value of the copy parameter component BV0x and/or BV0y and/or Len0 of the previous pixel sample segment indicates the copy parameter component BVx and/or of the
  • the copy parameter component includes at least a copy parameter component of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, a copy length Len; wherein the copy parameter of the current pixel sample segment The range of values of the component satisfies the condition that the reference pixel sample segment of the current pixel sample segment is located within a predetermined reference region;
  • the non-current copy parameter includes at least one of the following: a pixel sample segment preceding the current pixel sample segment A combination of the copy parameter components: a displacement vector horizontal component BV0x, a displacement vector vertical component BV0y, and a copy length Len0; wherein the combined range of values satisfies the condition that the reference pixel sample segment of the previous pixel sample segment is located at a predetermined Within the reference area; the coordinates of the first pixel of the current pixel sample segment: horizontal coordinate X1 and vertical coordinate Y1; the first one directly above the first pixel of the current pixel sample segment does not belong to
  • the range of the copy parameter component BVy of the current pixel sample segment is: 1 ⁇ (BVy–Ydelta) ⁇ (Ymax) – Ydelta), where Ymax is the maximum value range of the combination of BVy; BVy–Ydelta is used to be decoded and written to the code stream;
  • the range of the copy parameter component BVx of the current pixel sample segment is: 1 ⁇ (BVx ⁇ Xdelta) ⁇ (Xmax) – Xdelta), where Ymax is the maximum value range of the combination of BVx; BVx–Xdelta is used to be decoded and written to the code stream.
  • one copy parameter component corresponds to a plurality of sets of binarization schemes; wherein, in the code stream, the video parameter set VPS and/or the sequence parameter set SPS and/or the image parameter set PPS and/or the strip header and/or the CTU In the header and/or CU header and/or codec block header, there is a direct or indirect proprietary binning mode; the proprietary binarization mode specifies that the decoding block or decoding block adopts multiple sets of binarization schemes a set of binarizing the copy parameter component; the indirect proprietary binarization mode
  • the equation includes at least one of: a binarization mode derived from a depth of the decoded block; a binarization mode derived from the decoding block quantization factor; and a binarization mode derived from whether the decoded block is quantized; A binarization mode derived from whether or not the decoded block is transformed.
  • the operation of the component permutation includes at least: performing component replacement on another copy parameter component if a copy parameter component and/or a non-current copy parameter value is equal to a predetermined value.
  • an image encoding method including: performing an adjustment operation on an original value of a copy parameter of a coded block using a copy coding mode, to obtain an adjustment value of the copy parameter; Encoding the encoded coded bit to be written into the code stream; wherein the adjusting operation comprises at least one of: reducing the component: reducing one of the copy parameters or one of the copy parameters according to the value of the component of the one or more copy parameters The range of values of components of multiple copy parameters; component permutation: one-dimensional, or two-dimensional, or three-dimensional, or partial regions in four-dimensional space composed of the components of the replicated parameters; component decorrelation: one The components of the replicated parameter or the components of the plurality of replicated parameters are subjected to independent or intersecting decorrelation operations; the component sets are binarized: the plurality of sets of binarization are selected according to the values of the components of the one or more replicated parameters A set of binarization operations on one or more copy parameter components other than the copy
  • the component reduction operation includes: determining, according to a value of one or more of the copy parameter components, a range of values to be reduced that does not include the value within a default value range of the copy parameter component; The value range obtained by removing the range of the value to be reduced in the default value range is taken as the value range of the copy parameter component outside the one or more of the copy parameter components.
  • the operation of the component replacement operation includes at least one of: mapping a value range of the copy parameter component obtained by the component reduction operation to a value range of consecutive values; changing a positive of the copy parameter component Negative sign; maps the range of values of the copied parameter components to different values.
  • parsing the code stream obtaining a value of one or more component corresponding fields of the copy parameter; setting a value of one or more components of the copy parameter adjustment recovery value to the obtained The difference or sum of the values of the corresponding components of the one or more copy parameters and the one or more components of the copy parameter.
  • the multiple sets of binarization operations of the component include: corresponding to one or more components of the copy parameter in the code stream according to a value of a component of the obtained one or more copy parameters
  • the value symbol string field is mapped to a numeric value.
  • the method includes: the coding block is an coding region of an image, where the coding region includes at least one of: a maximum coding unit LCU, a coding tree unit CTU, a coding unit CU, a sub-region of a CU, and a prediction unit.
  • PU transform unit TU, pixel string, pixel group, pixel microblock, pixel strip.
  • the copy parameter component includes at least a copy parameter component of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, a copy length Len; wherein the copy parameter of the current pixel sample segment The component value range satisfies the condition that the reference pixel sample segment of the current pixel sample segment is located within a predetermined reference region;
  • the non-current copy parameter includes at least: a copy parameter component of a pixel sample segment preceding the current pixel sample segment a combination: a displacement vector horizontal component BV0x, a displacement vector vertical component BV0y, a copy length Len0; wherein the non-current copy The parameter value range satisfies the condition that the reference pixel sample segment of the previous pixel sample segment is located within a predetermined reference region.
  • the operation of reducing the component comprises at least: if the values of the copy parameter components BV0x and/or BV0y and/or Len0 of the previous pixel sample segment indicate the copy parameter component BVx and/or of the current pixel sample segment. If the BVy and/or Len values are not in the same sub-range, the value of the copy parameter component BVx and/or BVy and/or Len of the current pixel sample segment is the value of the copy parameter component of the current pixel sample segment. The range is subtracted from the subrange.
  • the copy parameter component includes at least a copy parameter component of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, a copy length Len; wherein the copy parameter of the current pixel sample segment The range of values of the component satisfies the condition that the reference pixel sample segment of the current pixel sample segment is located within a predetermined reference region;
  • the non-current copy parameter includes at least one of the following: a pixel sample segment preceding the current pixel sample segment A combination of the copy parameter components: a displacement vector horizontal component BV0x, a displacement vector vertical component BV0y, and a copy length Len0; wherein the combined range of values satisfies the condition that the reference pixel sample segment of the previous pixel sample segment is located at a predetermined Within the reference area; the coordinates of the first pixel of the current pixel sample segment: horizontal coordinate X1 and vertical coordinate Y1; the first one directly above the first pixel of the current pixel sample segment does not belong to
  • the range of the copy parameter component BVy of the current pixel sample segment is: 1 ⁇ (BVy - Ydelta) ⁇ (Ymax - Ydelta), where Ymax is the combination of the BVy The maximum value range;
  • the parameter component BVx has a value range of: 1 ⁇ (BVx - Xdelta) ⁇ (Xmax - Xdelta), where Ymax is BVx The maximum value of the range of said combination; BVx-Xdelta used for writing the code stream is encoded.
  • an image decoding method comprising: parsing a code stream to obtain a decoding parameter of a decoding block, wherein the decoding parameter includes at least one of: a copy of the decoding block a parameter, an adjustment indication information of the replication parameter; performing an adjustment operation on the replication parameter according to the adjustment indication information of the replication parameter, to obtain a replication parameter adjustment recovery value; and using the replication parameter to adjust a recovery value to the decoding block Decode.
  • the manner of performing the adjusting operation on the copy parameter to obtain the copy parameter adjustment recovery value includes at least one of the following: component reduction: reducing the copy parameter according to the value of the component of the obtained one or more copy parameters a value range of the component, in the narrowed value range, parsing the copy parameter related field in the code stream, determining the copy parameter adjustment recovery value; component replacement: forming the value of the copy parameter component One-dimensional, or two-dimensional, or three-dimensional, or partial regions in four-dimensional space for permutation; component correlation: parsing the relevant parameters of the replication parameter in the code stream according to the values of components of one or more of the obtained replication parameters Determining the copy parameter adjustment recovery value; the component multiple sets of binarization: parsing the copy parameter related field in the code stream according to the obtained value of the component of the one or more copy parameters, and selecting the multiple sets A set of binarization maps the field to the value of the component of the copy parameter.
  • the component reduction operation includes: determining, according to a value of one or more of the copy parameter components, a range of values to be reduced that does not include the value within a default value range of the copy parameter component; The value range obtained by removing the range of the value to be reduced in the default value range is taken as the value range of the copy parameter component outside the one or more of the copy parameter components.
  • the operation of the component replacement operation includes at least one of: mapping a value range of the copy parameter component obtained by the component reduction operation to a value range of consecutive values; changing a positive of the copy parameter component Negative sign; maps the range of values of the copied parameter components to different values.
  • the component correlation operation comprises: performing differential operation processing on the copy parameter component.
  • the component multiple sets of binarization operations include: selecting a corresponding binary symbol string among the plurality of candidate 2-value symbol strings according to a value of a component of the one or more copy parameters for the component of the copy parameter.
  • the method includes: the decoding block is a decoding area of an image, where the decoding area includes at least one of: a maximum decoding unit LCU, a decoding tree unit CTU, a decoding unit CU, a sub-area of a CU, and a prediction unit.
  • PU transform unit TU, pixel string, pixel group, pixel microblock, pixel strip.
  • the copy parameter component includes at least a copy parameter component of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, a copy length Len; wherein the copy parameter of the current pixel sample segment The component value range satisfies the condition that the reference pixel sample segment of the current pixel sample segment is located within a predetermined reference region;
  • the non-current copy parameter includes at least: a copy parameter component of a pixel sample segment preceding the current pixel sample segment a combination: a displacement vector horizontal component BV0x, a displacement vector vertical component BV0y, a copy length Len0; wherein the non-current copy parameter value range satisfies the condition that the reference pixel sample segment of the previous pixel sample segment is located at a predetermined Within the reference area.
  • the operation of reducing the component comprises at least: if the values of the copy parameter components BV0x and/or BV0y and/or Len0 of the previous pixel sample segment indicate the copy parameter component BVx and/or of the current pixel sample segment.
  • BVy and / or Len can not take values in the same sub-range, then the copy parameter components BVx and / or BVy and / or Len of the current pixel sample segment
  • the value range is the value range of the copy parameter component of the current pixel sample segment minus the sub-range.
  • the copy parameter component includes at least a copy parameter component of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, a copy length Len; wherein the copy parameter of the current pixel sample segment The range of values of the component satisfies the condition that the reference pixel sample segment of the current pixel sample segment is located within a predetermined reference region;
  • the non-current copy parameter includes at least one of the following: a pixel sample segment preceding the current pixel sample segment A combination of the copy parameter components: a displacement vector horizontal component BV0x, a displacement vector vertical component BV0y, and a copy length Len0; wherein the combined range of values satisfies the condition that the reference pixel sample segment of the previous pixel sample segment is located at a predetermined Within the reference area; the coordinates of the first pixel of the current pixel sample segment: horizontal coordinate X1 and vertical coordinate Y1; the first one directly above the first pixel of the current pixel sample segment does not belong to
  • the range of the copy parameter component BVy of the current pixel sample segment is: 1 ⁇ (BVy - Ydelta) ⁇ (Ymax - Ydelta), where Ymax is the combination of the BVy The maximum value range;
  • the parameter component BVx has a value range of: 1 ⁇ (BVx - Xdelta) ⁇ (Xmax - Xdelta), where Ymax is BVx The maximum value of the range of said combination; BVx-Xdelta used for writing the code stream is decoded.
  • an image encoding apparatus including: a first adjusting module, configured to perform an adjustment operation on an original value of a copy parameter of a coded block using a copy coding mode, to obtain the copy parameter An adjustment value; an encoding processing module, configured to write the encoded bit obtained by encoding the adjustment value into the code stream; wherein the adjusting operation comprises at least one of: component reduction: a component according to one or more copy parameters Value The range of values of components of one or more copy parameters other than the copy parameters; component permutation: one-dimensional, or two-dimensional, or three-dimensional, or partial regions in four-dimensional space composed of the values of the components of the replicated parameter Substitution; component de-correlation: independent or intersecting decorrelation of components of a replica parameter or components of multiple replica parameters; multi-set binarization of components: selection of values based on components of one or more replica parameters A set of multiple sets of binarization performs binarization operations on one or more copy parameter components
  • an image decoding apparatus comprising: a parsing module configured to parse a code stream to obtain a decoding parameter of a decoding block, wherein the decoding parameter includes at least one of the following parameters: Decoding a copy parameter of the block, the adjustment indication information of the copy parameter; the second adjustment module is configured to perform an adjustment operation on the copy parameter according to the adjustment indication information of the copy parameter, to obtain a copy parameter adjustment recovery value; and decoding processing A module, configured to decode the decoded block with the copy parameter adjusted recovery value.
  • the original value of the copy parameter of the coding block using the copy coding mode is adjusted to obtain an adjustment value of the copy parameter; and the coded bit write code obtained by encoding the adjustment value is further used.
  • the stream solves the problem that there is a redundant component in the value of the copy parameter of the write code stream in the related art, and the effect of improving the coding efficiency is achieved.
  • FIG. 1 is a flowchart 1 of an image encoding method according to an embodiment of the present invention.
  • FIG. 2 is a flowchart 1 of an image decoding method according to an embodiment of the present invention.
  • FIG. 3 is a second flowchart of an image encoding method according to an embodiment of the present invention.
  • FIG. 4 is a second flowchart of an image decoding method according to an embodiment of the present invention.
  • FIG. 5 is a block diagram showing the structure of an image encoding apparatus according to an embodiment of the present invention.
  • FIG. 6 is a block diagram showing the structure of an image decoding apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of comprehensive adjustment of copy parameter components in accordance with an embodiment of the present invention.
  • FIG. 1 is a flow of an image encoding method according to an embodiment of the present invention. As shown in Figure 1, the process includes the following steps:
  • Step S102 When encoding the current coding block, comprehensively adjusting the original value of the replication parameter of the copy coding mode to obtain an adjustment value of the replication parameter;
  • Step S104 After the adjustment value is encoded, the video code stream is written;
  • the comprehensive adjustment operation includes at least one of the following:
  • Component reduction narrowing the range of values of components of one or more copy parameters other than the copy parameters according to the values of the components of the one or more copy parameters;
  • Component permutation a one-dimensional, or two-dimensional, or three-dimensional, or partial region in a four-dimensional space composed of numerical values of components of a replication parameter;
  • Component decorrelation independent or intersecting decorrelation operations on components of a replica parameter or components of multiple replica parameters
  • Multiple sets of binarization of components Select one of a plurality of sets of binarizations to perform binarization operations on one or more copy parameter components other than the copy parameters according to the values of the components of one or more copy parameters.
  • step S102 and step S104 of the embodiment of the present invention the original value of the copy parameter of the coding block using the copy coding mode is adjusted to obtain an adjustment value of the copy parameter; and the coded bit obtained by encoding the adjustment value is further written.
  • the code stream solves the problem that there is a redundant component in the value of the copy parameter of the write code stream in the related art, and the effect of improving the coding efficiency is achieved.
  • the coding block in this embodiment is an coding region of an image, where the coding region includes at least one of: a maximum coding unit LCU, a coding tree unit CTU, a coding unit CU, a sub-region of a CU, and a prediction unit.
  • PU transform unit TU, pixel string, pixel group, pixel microblock, pixel strip.
  • the copy parameter component includes at least: component 1, component 2, component 3, and component 4; wherein component 1, component 2, component 3, and component 4 have ranges of range 1, range 2, range 3, and range 4, respectively;
  • the sub-range of 1 includes at least sub-range 11; the sub-range of range 2 includes at least sub-range 21; the sub-range of range 3 includes at least sub-range 31; the sub-range of range 4 includes at least sub-range 41;
  • the component reduction operation includes at least a basic operation (X, Y) composed of the cause component X and the result component Y, wherein when the value of the cause component X is in the sub-range X1, the value range of the result component Y is The range Y1; X, Y are one of 1, 2, 3, 4, respectively, and X and Y are not equal to each other;
  • the copy parameter component includes at least: component 1, component 2, component 3, and component 4; wherein component 1, component 2, component 3, and component 4 have ranges of range 1, range 2, range 3, and range 4, respectively;
  • the sub-range of 1 includes at least sub-range 11; the sub-range of range 2 includes at least sub-range 21; the sub-range of range 3 includes at least sub-range 31; the sub-range of range 4 includes at least sub-range 41;
  • the other encoding parameters other than the copy parameter include at least: non-current copy parameter A, non-current copy parameter B, non-current copy parameter C, non-current copy parameter D; wherein, non-current copy parameter A, non-current copy parameter B, non The current copy parameter C, the non-current copy parameter D ranges from the range A, the range B, the range C, and the range D, respectively;
  • the sub-range of the range A includes at least the sub-range A1; the sub-range of the range B includes at least the sub-range B1; the sub-range of the range C includes at least the sub-range C1; the sub-range of the range D includes at least the sub-range D1;
  • the component reduction operation includes at least: a basic operation (X, Y) consisting of a cause parameter X and a result component Y that are not the current copy parameter X;
  • the value range of the result component Y is the sub-range Y1;
  • the X is one of A, B, C, D;
  • the Y is 1, 2 One of 3, 4;
  • the copy parameter component includes at least the following copy parameter components of the current pixel sample segment: component 1, component 2, component 3, component 4;
  • the range of the components 1, the component 2, the component 3, and the component 4 are respectively the range 1, the range 2, the range 3, and the range 4;
  • the sub-range of the range 1 includes at least the sub-range 11;
  • the sub-range of the range 2 includes at least the sub-range Range 21;
  • the subrange of range 3 includes at least subrange 31;
  • the subrange of range 4 includes at least subrange 41;
  • the non-current copy parameter includes at least: a non-current copy parameter A, a non-current copy parameter B, a non-current copy parameter C, and a non-current copy parameter D;
  • the non-current copy parameter A is a combination of the copy parameter components of a pixel sample segment before the current pixel sample segment.
  • the non-current copy parameter B is a combination B of the copy parameter components of a pixel sample segment before the current pixel sample segment
  • the non-current copy parameter C is a combination of the copy parameter components of a pixel sample segment before the current pixel sample segment.
  • the non-current copy parameter D is a combination D of the copy parameter components of a pixel sample segment before the current pixel sample segment;
  • the non-current copy parameter A, the non-current copy parameter B, the non-current copy parameter C, and the non-current copy parameter D have a range of values A, a range B, a range C, and a range D, respectively;
  • the sub-range of the range A includes at least a sub-range A1;
  • the sub-range of the range B includes at least the sub-range B1;
  • the sub-range of the range C includes at least the sub-range C1;
  • the sub-range of the range D includes at least the sub-range D1;
  • the component reduction operation includes at least: a basic operation (X, Y) consisting of a cause parameter and a result component Y that are not the current copy parameter X;
  • the value range of the result component Y is the sub-range Y1;
  • the X is one of A, B, C, D;
  • the Y is 1, 2 One of 3, 4;
  • the copy parameter component includes at least the following copy parameter component of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, a copy length Len; wherein, the current pixel sample The value range of the copy parameter component of the value segment satisfies the following condition: the reference pixel sample segment of the current pixel sample segment is located in a predetermined reference region; the non-current copy parameter includes at least: a pixel sample segment before the current pixel sample segment A combination of the copy parameter components: a displacement vector horizontal component BV0x, a displacement vector vertical component BV0y, and a copy length Len0; wherein, the non-current copy parameter value range satisfies the following condition: a reference pixel sample segment of the previous pixel sample segment Located in a predetermined reference area; the operation of component reduction includes at least: if the values of the copy parameter components BV0x and/or BV0y and/or Len0 of the previous pixel sample
  • the copy parameter component includes at least the following copy parameter components of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, and a copy length Len; wherein, the copy parameter component of the current pixel sample segment The range of values satisfies the following condition: the reference pixel sample segment of the current pixel sample segment is located in a predetermined reference region; the non-current copy parameter includes at least one of the following: copy of a pixel segment segment before the current pixel sample segment A combination of parameter components: displacement vector horizontal component BV0x, displacement vector vertical component BV0y, copy length Len0; wherein the combined range of values satisfies the condition that the reference pixel sample segment of the previous pixel sample segment is located at a predetermined Within the reference area; the coordinates of the first pixel of the current pixel sample segment: horizontal coordinate X1 and vertical coordinate Y1; the first one directly above the first pixel of the current pixel sample segment does not belong to the previous pixel sample segment
  • the component reduction operation includes at least one of the following:
  • the value range of the copy parameter of the current pixel sample segment is the combined value range minus the second undesirable range.
  • BVx is equal to an integer multiple of BV0x or BV0x
  • BVx ⁇ Xdelta is the second undesirable range
  • the operation of component reduction includes at least one of the following:
  • the range of the copy parameter component BVy of the current pixel sample segment is: 1 ⁇ (BVy–Ydelta) ⁇ (Ymax) – Ydelta), where Ymax is the maximum value range of the combination of BVy; BVy–Ydelta is used to be encoded and written to the code stream;
  • the range of the copy parameter component BVx of the current pixel sample segment is: 1 ⁇ (BVx ⁇ Xdelta) ⁇ (Xmax) – Xdelta), where Ymax is the maximum value range of the combination of BVx; BVx–Xdelta is used to be encoded and written to the code stream.
  • one copy parameter component corresponds to multiple sets of binarization schemes; wherein, in the code stream, the video parameter set VPS and/or the sequence parameter set SPS and/or the image parameter set PPS and/or the strip header and/or There is a direct or indirect proprietary binarization mode in the CTU header and/or CU header and/or codec block header; the proprietary binarization mode specifies that the coding block or the decoding block adopts one of multiple sets of binarization schemes.
  • the indirect proprietary binarization mode includes at least one of: a binarization mode derived from the depth of the coded block; a binarization mode derived from the coded block quantization factor; Whether the block performs quantization-derived binarization mode; a binarization mode derived from whether or not the coding block is transformed.
  • the operation of the component permutation includes at least: if one copy parameter component and/or the non-current copy parameter value is equal to a predetermined value, component replacement is performed on the other copy parameter component.
  • FIG. 2 is a flowchart 1 of an image decoding method according to an embodiment of the present invention. As shown in FIG. 2, the steps of the method include:
  • Step S202 Parsing the code stream to obtain a decoding parameter of the decoding block, where the decoding parameter includes at least the following parameters: One of: a copy parameter of the decoding block, and an adjustment indication information of the copy parameter;
  • Step S204 Perform an adjustment operation on the replication parameter according to the adjustment indication information of the replication parameter, to obtain a replication parameter adjustment recovery value;
  • Step S206 Decoding the decoded block by using the copy parameter adjustment recovery value
  • the adjustment operation of the replication parameter includes at least one of the following:
  • Component reduction narrowing the value range of the component of the copy parameter according to the value of the component of the one or more copy parameters that have been obtained, and parsing the copy parameter in the code stream within the reduced value range Correlating a field, determining the copy parameter adjustment recovery value;
  • Component permutation replacement of one-dimensional, or two-dimensional, or three-dimensional, or partial regions in four-dimensional space composed of numerical values of replicated parameter components;
  • Component correlation parsing the copy parameter related field in the code stream according to a value of a component of the obtained one or more copy parameters, and determining the copy parameter adjustment recovery value;
  • Multiple sets of binarization of components parsing the copy parameter related field in the code stream according to the value of the component of the one or more copy parameters that have been obtained, and selecting one of the sets of binarizations to be The field is mapped to the value of the component of the copy parameter.
  • the decoding block in this embodiment is a decoding area of an image, where the decoding area includes at least one of: a maximum decoding unit LCU, a decoding tree unit CTU, a decoding unit CU, a sub-area of the CU, and a prediction unit.
  • PU transform unit TU, pixel string, pixel group, pixel microblock, pixel strip.
  • the copy parameter component includes at least: component 1, component 2, component 3, and component 4; wherein component 1, component 2, component 3, and component 4 have ranges of range 1, range 2, range 3, and range 4, respectively;
  • the sub-range of 1 includes at least sub-range 11; the sub-range of range 2 includes at least sub-range 21; the sub-range of range 3 includes at least sub-range 31; the sub-range of range 4 includes at least sub-range 41;
  • the component reduction operation includes at least a basic operation (X, Y) composed of the cause component X and the result component Y, wherein when the value of the cause component X is in the sub-range X1, the value range of the result component Y is The range Y1; X, Y are one of 1, 2, 3, 4, respectively, and X and Y are not equal to each other;
  • the copy parameter component includes at least: component 1, component 2, component 3, and component 4; wherein component 1, component 2, component 3, and component 4 have ranges of range 1, range 2, range 3, and range 4, respectively;
  • the sub-range of 1 includes at least sub-range 11; the sub-range of range 2 includes at least sub-range 21; the sub-range of range 3 includes at least sub-range 31; the sub-range of range 4 includes at least sub-range 41;
  • the decoding parameters other than the copy parameters include at least: a non-current copy parameter A, a non-current copy parameter B, a non-current copy parameter C, and a non-current copy parameter D; wherein, the non-current copy parameter A, the non-current copy parameter B, The current copy parameter C, the non-current copy parameter D ranges from the range A, the range B, the range C, and the range D, respectively;
  • the sub-range of the range A includes at least the sub-range A1; the sub-range of the range B includes at least the sub-range B1; the sub-range of the range C includes at least the sub-range C1; the sub-range of the range D includes at least the sub-range D1;
  • the component reduction operation includes at least: a basic operation (X, Y) consisting of a cause parameter X and a result component Y that are not the current copy parameter X;
  • the value range of the result component Y is the sub-range Y1;
  • the X is one of A, B, C, D;
  • the Y is 1, 2 One of 3, 4;
  • the copy parameter component includes at least the following copy parameter components of the current pixel sample segment: component 1, component 2, component 3, component 4;
  • the range of the components 1, the component 2, the component 3, and the component 4 are respectively the range 1, the range 2, the range 3, and the range 4;
  • the sub-range of the range 1 includes at least the sub-range 11;
  • the sub-range of the range 2 includes at least the sub-range Range 21;
  • the subrange of range 3 includes at least subrange 31;
  • the subrange of range 4 includes at least subrange 41;
  • the non-current copy parameter includes at least: a non-current copy parameter A, a non-current copy parameter B, a non-current copy parameter C, and a non-current copy parameter D;
  • the non-current copy parameter A is a combination A of the copy parameter components of a pixel sample segment before the current pixel sample segment;
  • the non-current copy parameter B is a combination of the copy parameter components of a pixel sample segment before the current pixel sample segment.
  • B the non-current copy parameter C is a combination C of copy parameter components of a pixel sample segment before the current pixel sample segment;
  • the non-current copy parameter D is a combination of copy parameter components of a pixel sample segment before the current pixel sample segment D;
  • the non-current copy parameter A, the non-current copy parameter B, the non-current copy parameter C, and the non-current copy parameter D have a range of values A, a range B, a range C, and a range D, respectively;
  • the sub-range of the range A includes at least a sub-range A1;
  • the sub-range of the range B includes at least the sub-range B1;
  • the sub-range of the range C includes at least the sub-range C1;
  • the sub-range of the range D includes at least the sub-range D1;
  • the component reduction operation includes at least: a basic operation (X, Y) consisting of a cause parameter and a result component Y that are not the current copy parameter X;
  • the value range of the result component Y is the sub-range Y1;
  • the X is one of A, B, C, D;
  • the Y is 1, 2 One of 3, 4;
  • the copy parameter component includes at least the following copy parameter component of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, a copy length Len; wherein, the current pixel sample The value range of the copy parameter component of the value segment satisfies the following condition: the reference pixel sample segment of the current pixel sample segment is located in a predetermined reference region; the non-current copy parameter includes at least: a pixel sample segment before the current pixel sample segment A combination of the copy parameter components: a displacement vector horizontal component BV0x, a displacement vector vertical component BV0y, and a copy length Len0; wherein, the non-current copy parameter value range satisfies the following condition: a reference pixel sample segment of the previous pixel sample segment Located in a predetermined reference area; the operation of component reduction includes at least: if the values of the copy parameter components BV0x and/or BV0y and/or Len0 of the previous pixel sample
  • the copy parameter component includes at least the following copy parameter components of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, and a copy length Len; wherein, the copy parameter component of the current pixel sample segment The range of values satisfies the following condition: the reference pixel sample segment of the current pixel sample segment is located in a predetermined reference region; the non-current copy parameter includes at least one of the following: copy of a pixel segment segment before the current pixel sample segment A combination of parameter components: displacement vector horizontal component BV0x, displacement vector vertical component BV0y, copy length Len0; wherein the combined range of values satisfies the condition that the reference pixel sample segment of the previous pixel sample segment is located at a predetermined Within the reference area; the coordinates of the first pixel of the current pixel sample segment: horizontal coordinate X1 and vertical coordinate Y1; the first one directly above the first pixel of the current pixel sample segment does not belong to the previous pixel sample segment
  • the component reduction operation includes at least one of the following:
  • the value range of the copy parameter of the current pixel sample segment is the combined value range minus the second undesirable range.
  • BVx is equal to an integer multiple of BV0x or BV0x
  • BVx ⁇ Xdelta is the second undesirable range
  • the operation of component reduction includes at least one of the following:
  • the range of the copy parameter component BVy of the current pixel sample segment is: 1 ⁇ (BVy–Ydelta) ⁇ (Ymax) – Ydelta), where Ymax is the maximum value range of the combination of BVy; BVy–Ydelta is used to be decoded and written to the code stream;
  • the range of the copy parameter component BVx of the current pixel sample segment is: 1 ⁇ (BVx ⁇ Xdelta) ⁇ (Xmax) – Xdelta), where Ymax is the maximum value range of the combination of BVx; BVx–Xdelta is used to be decoded and written to the code stream.
  • one copy parameter component corresponds to multiple sets of binarization schemes; wherein, in the code stream, the video parameter set VPS and/or the sequence parameter set SPS and/or the image parameter set PPS and/or the strip header and/or There is a direct or indirect proprietary binarization mode in the CTU header and/or CU header and/or codec block header; the proprietary binarization mode specifies that the decoding block or the decoding block adopts one of multiple sets of binarization schemes.
  • the indirect proprietary binarization mode includes at least one of: a binarization mode derived from the depth of the decoded block; a binarization mode derived from the decoded block quantization factor; Whether the block performs quantization-derived binarization mode; a binarization mode derived from whether or not the decoded block is transformed.
  • the operation of the component permutation includes at least: if one copy parameter component and/or the non-current copy parameter value is equal to a predetermined value, component replacement is performed on the other copy parameter component.
  • FIG. 3 is a second flowchart of an image encoding method according to an embodiment of the present invention. As shown in FIG. 3, the steps of the method include:
  • Step S302 performing an adjustment operation on the original value of the copy parameter of the coding block using the copy coding mode, to obtain an adjustment value of the copy parameter;
  • Step S304 writing coded bits obtained by encoding the adjustment value into the code stream
  • the adjustment operation includes at least one of the following:
  • Component reduction narrowing the range of values of components of one or more copy parameters other than the copy parameters according to the values of the components of the one or more copy parameters;
  • Component permutation a one-dimensional, or two-dimensional, or three-dimensional, or partial region in a four-dimensional space composed of numerical values of components of a replication parameter;
  • Component decorrelation independent or intersecting decorrelation operations on components of a replica parameter or components of multiple replica parameters
  • Multiple sets of binarization of components Select one of a plurality of sets of binarizations to perform binarization operations on one or more copy parameter components other than the copy parameters according to the values of the components of one or more copy parameters.
  • the component reduction operation includes: determining, according to the value of one or more replication parameter components, a range of values to be reduced that does not include a value within a default value range of the replication parameter component; The value range obtained by removing the range of values to be narrowed out in the default value range is taken as the range of values of the copy parameter components outside the one or more copy parameter components.
  • the operation of the component replacement operation includes at least one of: mapping the value range of the copy parameter component obtained after the component reduction operation to a value range of the continuous value; changing the sign of the copy parameter component; copying the parameter component
  • the range of values is mapped to different ranges of values.
  • the component decorrelation operation includes: parsing the code stream, obtaining a value of one or more component correspondence fields of the copy parameter; setting a value of one or more components of the copy parameter adjustment recovery value to the The difference or sum of the values of the corresponding components of the one or more copy parameters that have been obtained and the one or more components of the copy parameter.
  • the multi-set binarization operation of the component comprises: mapping one or more components of the copy parameter in the code stream to a 2-value symbol string field according to a value of a component of the obtained one or more copy parameters Is the value.
  • the coding block is one coding region of an image, where the coding region includes at least one of: a maximum coding unit LCU, a coding tree unit CTU, a coding unit CU, a sub-region of a CU, a prediction unit PU, a transformation unit TU, a pixel string , pixel groups, pixel microblocks, pixel strips.
  • the copy parameter component includes at least the following copy parameter components of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, and a copy length Len; wherein the copy parameter component value range of the current pixel sample segment satisfies the following Condition: the reference pixel sample segment of the current pixel sample segment is located in a predetermined reference region;
  • the non-current copy parameter includes at least: a combination of the copy parameter components of the pixel segment before the current pixel sample segment: the displacement vector horizontal component BV0x, the displacement vector vertical component BV0y, and the copy length Len0; wherein, the non-current copy parameter takes values The range satisfies the condition that the reference pixel sample segment of the previous pixel sample segment is within a predetermined reference region.
  • the operation of reducing the component at least includes: if the values of the copy parameter components BV0x and/or BV0y and/or Len0 of the previous pixel sample segment indicate the copy parameter components BVx and / of the current pixel sample segment. Or BVy and / Or the Len is not worth the same sub-range, the value of the copy parameter component BVx and/or BVy and/or Len of the current pixel sample segment is the range of the copy parameter component of the current pixel sample segment minus the sub-range .
  • the copy parameter component may include at least the following copy parameter components of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, and a copy length Len; wherein the copy parameter component of the current pixel sample segment is taken The value range satisfies the condition that the reference pixel sample segment of the current pixel sample segment is located within a predetermined reference region;
  • the non-current replication parameters include at least one of the following:
  • a combination of the copy parameter components of a pixel sample segment before the current pixel sample segment a displacement vector horizontal component BV0x, a displacement vector vertical component BV0y, and a copy length Len0; wherein the range of values of the combination satisfies the following condition:
  • the reference pixel sample segment of the pixel sample segment is located within a predetermined reference region;
  • the coordinates of the first pixel of the current pixel sample segment horizontal coordinate X1 and vertical coordinate Y1;
  • the operation of component reduction includes at least one of the following:
  • the value range of the copy parameter of the current pixel sample segment is the combined value range minus the second undesirable range.
  • BVx is equal to an integer multiple of BV0x or BV0x
  • BVx ⁇ Xdelta is the second undesirable range
  • the operation of reducing the component includes at least one of the following:
  • the range of the copy parameter component BVy of the current pixel sample segment is: 1 ⁇ (BVy–Ydelta) ⁇ (Ymax) – Ydelta), where Ymax is the maximum value range of the combination of BVy; BVy–Ydelta is used to be encoded and written to the code stream;
  • the range of the copy parameter component BVx of the segment is: 1 ⁇ (BVx - Xdelta) ⁇ (Xmax - Xdelta), where Ymax is the maximum value range of the combination of BVx; BVx - Xdelta is used for encoding and writing Into the stream.
  • FIG. 4 is a second flowchart of an image decoding method according to an embodiment of the present invention. As shown in FIG. 4, the steps of the method include:
  • Step S402 Parsing the code stream to obtain a decoding parameter of the decoding block, where the decoding parameter includes at least one of the following parameters: a copy parameter of the decoding block, and an adjustment indication information of the copy parameter;
  • Step S04 performing an adjustment operation on the copy parameter according to the adjustment indication information of the copy parameter, and obtaining a copy parameter adjustment recovery value;
  • Step S406 Decoding the decoded block by using the copy parameter adjustment recovery value.
  • the adjusting operation of the copy parameter includes at least one of the following: component reduction: reducing the value range of the component of the copy parameter according to the value of the component of the one or more copy parameters that have been obtained, Within the value range, the parameter field is copied in the parsing stream, and the copy parameter adjustment recovery value is determined; the component permutation: one-dimensional, or two-dimensional, or three-dimensional, or partial region in four-dimensional space composed of the values of the copied parameter component Substitution; component correlation: according to the value of the component of the obtained one or more copy parameters, parsing the relevant parameters of the copy parameter in the code stream, determining the copy parameter adjustment recovery value; the multi-set binarization of the component: according to one or more obtained The value of the component of the copy parameter, the parsing parameter related field in the parsing stream, and selecting one of the sets of binarizations to map the field to the value of the component of the copy parameter.
  • component reduction reducing the value range of the component of the copy parameter according to the value of the component of the one or
  • the component reduction operation includes: determining, according to the value of one or more copy parameter components, a range of values to be reduced that does not include a value within a default value range of the copy parameter component; The range of values obtained after the value range is to be reduced is taken as the range of values of the copy parameter components outside the one or more copy parameter components.
  • the operation of the component replacement operation includes at least one of: mapping the value range of the copy parameter component obtained after the component reduction operation to a value range of the continuous value; changing the sign of the copy parameter component; copying the parameter component The value range is mapped to a different range of values.
  • the component related operation includes: performing differential operation processing on the copy parameter components.
  • the component multi-set binarization operation includes selecting a corresponding 2-value symbol string among the plurality of candidate 2-value symbol strings according to the value of the component of the one or more copy parameters as the component of the copy parameter.
  • the decoding block involved in this embodiment is a decoding area of an image, where the decoding area includes at least one of: a maximum decoding unit LCU, a decoding tree unit CTU, a decoding unit CU, a sub-area of the CU, and a prediction unit PU. , transform unit TU, pixel string, pixel group, pixel microblock, pixel strip.
  • the copy parameter component includes at least the following copy parameter components of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, and a copy length Len; wherein the copy parameter component of the current pixel sample segment is taken The value range satisfies the condition that the reference pixel sample segment of the current pixel sample segment is located within a predetermined reference region;
  • the non-current copy parameter includes at least: a combination of the copy parameter components of the pixel segment before the current pixel sample segment: the displacement vector horizontal component BV0x, the displacement vector vertical component BV0y, and the copy length Len0; wherein, the non-current copy parameter takes values The range satisfies the condition that the reference pixel sample segment of the previous pixel sample segment is located in a predetermined reference region Inside.
  • the component reduction operation may further include at least: if the values of the copy parameter components BV0x and/or BV0y and/or Len0 of the previous pixel sample segment indicate the copy parameter components BVx and/or BVy and/or of the current pixel sample segment. Or the Len is not worth the same sub-range, the value of the copy parameter component BVx and/or BVy and/or Len of the current pixel sample segment is the range of the copy parameter component of the current pixel sample segment minus the sub-range .
  • the copy parameter component includes at least the following copy parameter components of the current pixel sample segment: a displacement vector horizontal component BVx, a displacement vector vertical component BVy, and a copy length Len; wherein the value range of the copy parameter component of the current pixel sample segment satisfies The following condition is: the reference pixel sample segment of the current pixel sample segment is located in a predetermined reference region; the non-current copy parameter includes at least one of the following: a combination of the copy parameter components of the pixel segment before the current pixel sample segment a displacement vector horizontal component BV0x, a displacement vector vertical component BV0y, and a copy length Len0; wherein the combined value range satisfies the condition that the reference pixel sample segment of the previous pixel sample segment is located within a predetermined reference region; The coordinates of the first pixel of the pixel sample segment: horizontal coordinate X1 and vertical coordinate Y1;
  • the component reduction operation comprises at least one of the following:
  • the value range of the copy parameter of the current pixel sample segment is the combined value range minus the second undesirable range.
  • BVx is equal to an integer multiple of BV0x or BV0x
  • BVx ⁇ Xdelta is the second undesirable range
  • the operation of reducing the component includes at least one of the following:
  • the range of the copy parameter component BVy of the current pixel sample segment is: 1 ⁇ (BVy–Ydelta) ⁇ (Ymax) – Ydelta), where Ymax is the maximum value range of the combination of BVy; BVy–Ydelta is used to be decoded and written to the code stream;
  • the range of the copy parameter component BVx of the current pixel sample segment is: 1 ⁇ (BVx ⁇ Xdelta) ⁇ (Xmax) – Xdelta), where Ymax is the maximum value range of the combination of BVx; BVx–Xdelta is used to be decoded and written to the code stream.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • an image encoding device and a decoding device are provided, which are used to implement the above-mentioned embodiments and preferred embodiments, and are not described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 5 is a structural block diagram of an image encoding apparatus according to an embodiment of the present invention.
  • the apparatus includes: a first adjusting module 52 configured to adjust an original value of a copy parameter of a coded block using a copy encoding mode Operation, the adjustment value of the copy parameter is obtained; the encoding processing module 54 is coupled to the first adjustment module 52, and is configured to write the coded bit obtained by encoding the adjustment value into the code stream; wherein the adjustment operation comprises at least one of the following components: Reduction: a range of values of components of one or more copy parameters other than the copy parameter, according to the value of one or more components of the copy parameter; component permutation: one dimension of the value of the component of the copy parameter, or Two-dimensional, or three-dimensional, or partial regions in four-dimensional space for permutation; component decorrelation: independent or intersecting decorrelation operations on components of one copy parameter or components of multiple replicated parameters; multiple sets of binarization of components: Select one of a plurality of sets of
  • FIG. 6 is a structural block diagram of an image decoding apparatus according to an embodiment of the present invention.
  • the apparatus includes: a parsing module 62 configured to parse a code stream to obtain a decoding parameter of a decoding block, where the decoding parameter includes at least the following parameters: One: decoding parameter of the decoding block, and adjusting the indication information of the parameter; the second adjusting module 64 is coupled with the parsing module 62, and is set to adjust the copy parameter according to the adjustment instruction information of the copy parameter to obtain the copy parameter adjustment.
  • the recovery processing module 66 is coupled to the second skip frame optical module 64 and configured to decode the decoded block by using the copy parameter adjustment recovery value.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • the present optional embodiment provides a method for image encoding and decoding of redundant components in which the copy parameters are comprehensively adjusted before entropy encoding.
  • the block in the block copy mode, the micro block in the micro block copy mode, the bar in the strip copy mode, the string in the string copy mode, and the rectangle in the rectangular copy mode The pixel index string in the palette index mode is collectively referred to as a pixel sample segment, which is referred to as a sample segment.
  • the basic constituent elements of a sample segment are pixel or pixel components or pixel indices.
  • a sample segment has a copy parameter that represents the relationship between the current pixel sample segment and the reference pixel sample segment.
  • a copy parameter includes a plurality of copy parameter components, and the copy parameter component includes at least: a displacement vector horizontal component, a displacement vector vertical component, a copy length, a copy width, a copy height, a rectangle width, a rectangle length, and an unmatched pixel (also referred to as no reference pixel, That is, non-replicated pixels that are copied from other places).
  • various other coding parameters or decoding parameters including at least: the current, adjacent coded block or the sequence number of the decoded block, various modes, The replication parameters of the pixel segments of the neighboring (before the current pixel sample segment), the adjacent coded block, or the copy parameters of several selected sample segments in the decoded block in the various states, the current coded block or the decoded block.
  • various other coding parameters or decoding parameters are collectively referred to as non-current replication parameters.
  • Component reduction narrowing (ie limiting) one or more other replication parameters based on the value of one or several replicate parameter components and/or the value of one or several other coding parameters (ie, non-current replication parameters) other than the replication parameters
  • the value range of the component the purpose is to reduce the number of bits required to encode the other one or several copy parameter components, and improve coding efficiency
  • FIG. 7 is a schematic diagram of comprehensive adjustment of the copy parameter components according to an embodiment of the present invention.
  • a means for component reduction includes at least subtracting (removing) a certain condition from the default value range of the component (eg, other components and/or non-current copy parameters take some The range of values of the specific value), the range of values after the component is reduced;
  • Component permutation replacement of a partial region (one component) or a two-dimensional (two component) or three-dimensional (three-component) or four-dimensional (four-component) space composed of numerical values of a copy parameter component; It is not limited to the swapping of two regions, the rotation of partial regions, the point symmetry, the axis symmetry, and the plane symmetry exchange of partial regions. The purpose is to make the region with high frequency of occurrence in the encoding process correspond to the shorter binary code, and improve the coding efficiency;
  • Example 1 of component replacement as shown in FIG. 7, the component replacement is used together with the component reduction, and the component is reduced.
  • Subsequences of the separated values are replaced by sub-ranges of consecutive values;
  • Example 2 of component permutation changing the sign of a component within one of its sub-ranges;
  • Example 3 of component permutation The value sub-range with a higher frequency of occurrence of the component is replaced by a sub-range of values having a lower frequency of occurrence;
  • Component decorrelation Independent or intersecting decorrelation operations on a replicated parameter component or multiple replicated parameter components.
  • De-correlation operations include, but are not limited to, first-order or higher-order difference operations. The purpose is to convert the copy parameter component into a smaller and more concentrated form, corresponding to a shorter binary code, and improve coding efficiency.
  • Multiple sets of binarization of components Select a set of pairs of binarization schemes based on the values of one or several replicated parameter components and/or values of other coding parameters other than the replicated parameters (ie, non-current replicated parameters) The other one or several copy parameter components are binarized. The goal is to use the most efficient binarization scheme to improve coding efficiency.
  • the copy parameter when the current decoding block is decoded, the copy parameter is parsed and obtained from the video code stream in a comprehensive adjustment manner, that is, the adjustment value of the copy parameter is first parsed and obtained from the code stream.
  • the original value of the copy parameter is obtained after comprehensive adjustment (the inverse of the operation of the integrated adjustment in the encoding method and the device); the manner of the comprehensive adjustment includes but is not limited to part or all of the following operations:
  • Component reduction according to the value of one or several copy parameter components that have been parsed and retrieved and/or the value of one or several other decoding parameters (ie, non-current copy parameters) other than the copy parameters, is reduced (ie, restricted) Parsing and obtaining one or more other copy parameter components within the range of values; first obtaining the adjusted value of the copy parameter component from the code stream, and obtaining the copy after the inverse operation of the encoding method or the component shrinking operation in the device The original value of the parameter component; as shown in Figure 7, a means of component reduction includes at least subtracting (removing) from a default value range of the component under certain conditions (eg, other components and/or non-current) The range of the non-pickable value of the copy parameter takes some specific values), and the range of values after the component is reduced;
  • Component permutation one-dimensional (one component) or two-dimensional (two-component) or three-dimensional (three-component) or four-dimensional (four-component) space composed of the values of the replicated parameter components in the process of parsing and obtaining the copy parameters Part of the area is replaced.
  • the permutation includes but is not limited to the swapping of two regions, the rotation of partial regions, the point symmetry, the axis symmetry, and the plane symmetry of the partial regions; the component permutation example 1: as shown in Fig.
  • the component permutation is used together with the component reduction
  • the sub-range of the separated values of the component is reduced to the sub-range of the continuous value
  • the first obtained from the code stream is the adjusted value of the copy parameter in the sub-range of the successive values after the replacement
  • the component The original value of the copy parameter is obtained after the replacement;
  • the case of the component permutation the sign of changing one component within one of the value sub-ranges;
  • the case of component replacement the value of the lower frequency of occurrence of one component
  • the sub-range is replaced by a value sub-range having a higher frequency of occurrence;
  • Component decorrelation In the process of parsing and obtaining the copy parameters, the inverse operation of the independent or intersecting decorrelation operation on a copy parameter component or multiple copy parameter components is the restoration operation of the copy parameter.
  • the restoration operations include, but are not limited to, inverse operations of first-order or higher-order difference operations, that is, first-order or high-order sum operations.
  • Multiple sets of binarization of components Select multiple sets of binarization schemes based on the values of one or several copy parameter components that have been parsed and obtained and/or the values of other coding parameters other than the copy parameters (ie, non-current copy parameters) One of the sets performs binary decoding on one or more other copy parameter components.
  • the copy parameters include, but are not limited to, displacement vectors and/or copy sizes and/or non-replicated pixel samples.
  • the copy size includes, but is not limited to, the copy length.
  • the copy size includes, but is not limited to, two copy parameter components of copy width and copy length or two copy parameter components of copy height and copy length or two copy parameter components of copy width and copy height.
  • displacement vector is the first pixel sample and current encoding of the reference string and/or reference rectangle and/or reference block and/or reference microblock and/or reference strip within the reconstructed reference pixel sample set.
  • Plane (2-dimensional) distance or plane (2D) between the current string and/or the current rectangle and/or the current block and/or the current pixel and/or the first pixel sample of the current bar in the block or decoding block A linear (1-dimensional) distance in which a coordinate or pixel sample is linearly arranged in a scanning manner, the unit of which is a sample or a number of samples.
  • displacement vector is a 2-dimensional (or 1-dimensional) address or index within a set of reconstructed reference pixel samples or a subset thereof, the unit of which is a sample or a number of samples.
  • the displacement vector is sometimes also referred to as an intra motion vector.
  • the copy size is the size of the reference string and/or reference rectangle, and the unit is also a sample or several samples. Obviously, the size of the reference string and/or reference rectangle is also the size of the current string and/or the current rectangle.
  • reconstructed samples and “reference samples” are sometimes collectively referred to as “reconstructed reference pixel samples.”
  • reconstructed reference pixel samples means either “reconstructed samples” or “reference samples” or both. If it is not clear from the context, then it means either of them.
  • reconstructed reference sample set and the “reconstructed reference pixel sample set” are synonymous, and are sometimes referred to simply as “sample set” without causing confusion.
  • the reconstructed reference pixel sample set may be a two-dimensional area that is connected to one piece including at least one CTU area, or may be composed of a plurality of unrelated partial areas or pixels selected according to a predetermined rule.
  • the reconstructed reference pixel sample set can be divided into several subsets, and the pixels of each subset can have mutually different component arrangement formats, color formats, and pixel sample arrangement patterns.
  • the reconstructed reference pixel sample set can be divided into several subsets, and the pixels of each subset can also be completely reconstructed pixels or phased reconstructed pixels of respective unique reconstruction stages of mutually different degrees.
  • the reconstructed reference pixel sample set can be divided into several subsets, and the number of pixels of each subset can be different, and is composed of pixel samples having various special properties.
  • the displacement vector may also use one of the following aliases: copy position, matching position, position, distance, relative distance, displacement amount, movement Volume, motion vector, motion vector, offset, offset vector, block vector, string vector, compensation amount, compensation, linear address, address, 2D coordinates, 1D coordinates, coordinates, index, index, and so on.
  • the copy length can also be referred to as one of the following aliases: copy stroke, copy number, copy count, copy run, match stroke, match number, match count, match run, length, stroke, number, count, run, etc. Wait.
  • String copying is also known as string matching
  • rectangular copying is also called rectangle matching.
  • the present optional embodiment is applicable to encoding and decoding of a stacked format image.
  • this alternative embodiment is equally applicable to the encoding and decoding of component plane format images.
  • the pixels of the current coded block or decoded block and the pixels of the reconstructed reference pixel sample set are all decomposed into three component planes, one component of all pixels forming a plane.
  • the reference block, the reference microblock, the reference strip, the reference string, the reference rectangle and the current block, the current microblock, the current strip, the current string, and the current rectangle are all decomposed into three component planes.
  • Block copying, microblock copying, strip copying, string copying, and rectangular copying are all performed in three planes. However, in order to reduce the copy parameters, and because the three planes have great correlation, the same copy parameters can be shared by the three planes.
  • the copy coding and decoding of the component plane format image of the alternative embodiment if applied to the downsampling of the chrominance components U and V, such as the YUV 4:2:2 pixel color format and the YUV 4:2:0 pixel color format, Then, when the copy parameters of the Y plane are applied to the U plane and the V plane, the copy parameters are correspondingly transformed and adjusted according to the proportion of the downsampling.
  • the copy parameters include, but are not limited to, the following copy parameter components: component 1, component 2, component 3, and component 4.
  • the range of values is range 1, range 2, range 3, and range 4.
  • At least one subrange of range 1 is subrange 11.
  • At least one subrange of range 2 is subrange 21.
  • At least one subrange of range 3 is subrange 31.
  • At least one subrange of range 4 is subrange 41.
  • the component reduction operation includes at least:
  • the range of the component Y is the sub-range Y1
  • X and Y are one of 1, 2, 3, and 4, respectively, and X and Y are not equal to each other.
  • This restricted (restricted) operation is called the basic operation (X, Y).
  • the first component X is called the factor component (cause component), and the second component Y is called the fruit component (result component component).
  • Combination 1 is the basic operation (X, Y) "and" basic operation (Z, Y), equivalent to:
  • the range of the component Y is the sub-range Y1
  • X, Y, and Z are one of 1, 2, 3, and 4, respectively, and X, Y, and Z are not equal to each other.
  • Combination 2 is the basic operation (X, Y) "or" basic operation (Z, Y), equivalent to:
  • the range of the component Y is the sub-range Y1
  • X, Y, and Z are one of 1, 2, 3, and 4, respectively, and X, Y, and Z are not equal to each other.
  • Combination 3 is the basic operation (W, Y) "and” basic operation (X, Y) “and” basic operation (Z, Y), equivalent to:
  • the range of the component Y is the sub-range Y1
  • W, X, Y, and Z are one of 1, 2, 3, and 4, respectively, and W, X, Y, and Z are not equal to each other.
  • Embodiment 3 Several combined examples of basic operations (component reduction)
  • the range of the component Y is the sub-range Y1
  • the range of the component Z is the sub-range Z1
  • X, Y, and Z are one of 1, 2, 3, and 4, respectively, and X, Y, and Z are not equal to each other.
  • the copy parameters include at least the following copy parameter components: component 1, component 2, component 3, and component 4.
  • the range of values is range 1, range 2, range 3, and range 4.
  • At least one subrange of range 1 is subrange 11.
  • At least one subrange of range 2 is subrange 21.
  • At least one subrange of range 3 is subrange 31.
  • At least one subrange of range 4 is subrange 41.
  • Non-current copy parameter A non-current copy parameter B
  • non-current copy parameter C non-current copy parameter D
  • non-current copy parameter D non-current copy parameter D.
  • the range of values is range A, range B, range C, and range D, respectively.
  • At least one subrange of range A is subrange A1.
  • At least one subrange of range B is subrange B1.
  • Range C to One less subrange is the subrange C1.
  • At least one sub-range of the range D is the sub-range D1.
  • the component reduction operation includes at least:
  • the range of the component Y is the sub-range Y1
  • X is one of A, B, C, D.
  • Y is one of 1, 2, 3, 4.
  • This restricted (restricted) operation is called the basic operation (X, Y).
  • the non-current copy parameter X is called the factor (cause parameter), and the component Y is called the fruit component (result component).
  • Embodiment 1 the basic operations in the above Embodiment 1, Embodiment 2, and Embodiment 3 are also applicable to Embodiment 4.
  • the basic operations in Embodiment 1 and Embodiment 4 can also be combined and combined into more combined operations and merge operations.
  • the combined operations and merge operations thus generated can be further combined or combined.
  • the above various basic operations, combined operations, and merge operations can also be combined in any reasonable manner to form a more complicated synthesis operation.
  • the copy parameters include at least the following copy parameter components of the current pixel sample segment: component 1, component 2, component 3, and component 4.
  • the range of values is range 1, range 2, range 3, and range 4.
  • At least one subrange of range 1 is subrange 11.
  • At least one subrange of range 2 is subrange 21.
  • At least one subrange of range 3 is subrange 31.
  • At least one subrange of range 4 is subrange 41.
  • the non-current copy parameter includes at least: a combination A of the copy parameter components of a pixel sample segment before the current pixel sample segment, which is recorded as a non-current copy parameter A, and a copy parameter component of a pixel sample segment before the current pixel sample segment Combination B, denoted as non-current copy parameter B, the combination C of the copy parameter components of a pixel sample segment before the current pixel sample segment, denoted as non-current copy parameter C, a pixel sample segment before the current pixel sample segment
  • the combination D of the copied parameter components is recorded as the non-current copy parameter D.
  • the range of values is range A, range B, range C, and range D, respectively. At least one subrange of range A is subrange A1. At least one subrange of range B is subrange B1. At least one subrange of the range C is the subrange C1. At least one sub-range of the range D is the sub-range D1.
  • the component reduction operation includes at least:
  • the range of the component Y is the sub-range Y1
  • X is one of A, B, C, D.
  • Y is one of 1, 2, 3, 4.
  • This restricted (restricted) operation is called the basic operation (X, Y).
  • the non-current copy parameter X is called the factor (cause parameter), and the component Y is called the fruit component (result component).
  • the copy parameters include, but are not limited to, the following copy parameter components: displacement vector horizontal component BVx, displacement vector vertical component BVy, and copy length Len.
  • the range of values is (-PicWidth, PicWidth), (-PicHeight, PicHeight), (0, CuWidth*CuHeight).
  • BVx and BVy are each represented by 1-3 syntax elements:
  • Syntax element 1 Whether it is zero, one bit number
  • encoding or decoding parameters other than the copy parameters include, but are not limited to, the current encoding or decoding CTU sequence number NumCTU, the current encoding block or the decoding block number Zorder.
  • BVy The range of BVy is reduced to (0, PicHeight), and syntax element 1 and syntax element 2 can be omitted.
  • BVx is reduced to [0, PicWidth), and the syntax element 2 can be omitted.
  • BVy The range of BVy is reduced to (0, PicHeight), and syntax element 1 and syntax element 2 can be omitted.
  • Len is always set to zero
  • Operation 4 operation 5, and operation 6 are the dual operations of operation 1, operation 2, and operation 3, respectively, and y, Y, Height, x, and Width are respectively changed to x, X, Width, y, and Height.
  • Operation 7 is a synthesis operation of operation 1, operation 2, operation 3, operation 4, operation 5, operation 6:
  • the indirect private bit includes, but is not limited to, derived by: when the scan mode of the current coded block or the decoded block is the horizontal scan mode, the indirect private bit is set to a value, otherwise, the current coded block or When the scan mode of the decoded block is the vertical scan mode, the indirect private bit is set to another value.
  • the copy parameters include at least the following copy parameter components of the current pixel sample segment: displacement vector horizontal component BVx, displacement vector vertical component BVy, and copy length Len.
  • the default value range satisfies the following condition: the reference pixel sample segment of the current pixel sample segment is located in a predetermined reference region.
  • the non-current copy parameter includes at least one combination of the copy parameter components of one pixel sample segment before the current pixel sample segment: the displacement vector horizontal component BV0x, the displacement vector vertical component BV0y, and the copy length Len0.
  • the default value range satisfies the following condition: the reference pixel sample segment of the previous pixel sample segment is located in a predetermined reference region.
  • the component reduction operation includes at least:
  • the range of values of the copy parameter components BVx and/or BVy and/or Len of the current pixel sample segment is its default range of values minus (removing) the subrange
  • Embodiment 2 of the comprehensive adjustment method 3 (component reduction) (the special case of the above embodiment 1)
  • the copy parameters include at least the following copy parameter components of the current pixel sample segment: displacement vector horizontal component BVx, displacement vector vertical component BVy, and copy length Len.
  • the default value range satisfies the following condition: the reference pixel sample segment of the current pixel sample segment is located in a predetermined reference region.
  • the non-current replication parameters include at least one of the following:
  • a combination of the copy parameter components of a pixel sample segment before the current pixel sample segment the displacement vector horizontal component BV0x, the displacement vector vertical component BV0y, and the copy length Len0.
  • the default value range satisfies the following condition: the reference pixel sample segment of the previous pixel sample segment is located in a predetermined reference region;
  • the component reduction operation includes at least one of the following operations:
  • the value range of the copy parameter of the current pixel sample segment is its default value range minus (removing) the following non-missable range:
  • the value range of the copy parameter of the current pixel sample segment is its default value range minus (removing) the following non-missable range:
  • Embodiment 3 of the comprehensive adjustment method 3 (component reduction) (the special case of the above embodiment 2)
  • the component reduction operation includes at least one of the following operations:
  • the value range of the copy parameter of the current pixel sample segment is its default value range minus (removing) the following non-missable range:
  • the value range of the copy parameter of the current pixel sample segment is its default value range minus (removing) the following non-missable range:
  • BVy 0 and 1 ⁇ BVx ⁇ Xdelta
  • the component reduction operation includes at least one of the following operations:
  • the value range of the copy parameter component BVy of the current pixel sample segment is:
  • BVy-Ydelta is encoded and written into the code stream
  • BVy-Ydelta is read out from the code stream, and after Ydelta, BVy is obtained;
  • the range of the copy parameter component BVx of the current pixel sample segment is:
  • BVx-Xdelta is encoded and written into the code stream
  • BVx-Xdelta is read out from the code stream, and after adding Ydelta, BVx is obtained;
  • the BVy - Ydelta and BVx - Xdelta operations in this embodiment are also examples of component permutation of the copy parameter components.
  • a copy parameter component there is more than one set of binarization scheme; video parameter set VPS and/or sequence parameters in the code stream a set of SPS and/or image parameter sets PPS and/or slice headers and/or CTU headers and/or CU headers and/or codec block headers, having a direct or indirect proprietary binarization mode; said proprietary 2 The valued mode specifies that the coded block or the decoded block binarizes the copy parameter component using one of a plurality of sets of binarization schemes.
  • the indirect proprietary binarization mode includes, but is not limited to, derived by one or a combination of: a binarization mode derived from a depth of the coding block or a decoding block; a binarization mode by the coding block or Deriving a quantization factor of the decoded block; the binarization mode is derived by whether the coded block or the decoded block is quantized; and the binarization mode is derived by whether the coded block or the decoded block is transformed.
  • Embodiment of comprehensive adjustment method 4 (multiple sets of binarization)
  • Each set of binarization of the copy length consists of a prefix and a suffix.
  • the sets of binarized prefixes of the copy length are different.
  • the set of binary suffixes of the copy length are different.
  • At least one suffix in each set of binarization uses a truncated binary code.
  • the truncated binary codes used for each set of binarization have different cutoff values.
  • copy parameters include the following copy parameter components of the current pixel sample segment: displacement vector horizontal component BVx, displacement vector vertical component BVy, copy length Len, and the like;
  • non-current replication parameters examples include:
  • the operation of component replacement includes at least:
  • the component permutation may be static or dynamic, for example, different depending on the value of the one copy parameter component and/or the non-current copy parameter.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • an adjustment operation is performed on the original value of the copy parameter of the coding block using the copy coding mode, and an adjustment value of the copy parameter is obtained; and the adjustment value is further encoded.
  • the coded bits are written into the code stream, thereby solving the problem of redundant components in the values of the copy parameters of the write code stream in the related art. The problem is achieved by improving the coding efficiency.

Abstract

本发明提供了一种图像编码方法及装置、图像解码方法及装置,其中,该方法包括:对使用复制编码方式的编码块的复制参数的原始值进行调整操作,得到所述复制参数的调整值;进而将所述调整值进行编码得到的编码比特写入码流;通过本发明,解决了相关技术中写入码流的复制参数的数值中存在冗余成分的问题,达到了提高编码效率的效果。

Description

图像编码方法及装置、图像解码方法及装置 技术领域
本发明涉及图像编解码领域,具体而言,涉及一种图像编码方法及装置、图像解码方法及装置。
背景技术
随着电视机和显示器进入超高清(4K)和特超高清(8K)的分辨率,以及以远程桌面为典型表现形式的新一代云计算与信息处理模式及平台的发展和普及,对视频图像数据压缩的需求也走向更高分辨率和包含摄像机摄取图像和计算机屏幕图像的复合图像。对视频图像进行超高压缩比和极高质量的数据压缩成为必不可少的技术。
充分利用4K/8K图像和计算机屏幕图像的特点,对视频图像进行超高效率的压缩,也是正在制定中的最新国际视频压缩标准HEVC(High Efficiency Video Coding)和其他若干国际标准、国内标准、行业标准的一个主要目标。
图像的数字视频信号的自然形式是图像的序列。一帧图像通常是由若干像素组成的矩形区域,而数字视频信号就是由几十帧至成千上万帧图像组成的视频图像序列,有时也简称为视频序列或序列。对数字视频信号进行编码就是对一帧一帧图像进行编码。在任一时刻,正在编码中的那一帧图像称为当前编码图像。同样,对数字视频信号的压缩后的视频码流(简称码流也称为比特流)进行解码就是对一帧一帧图像的码流进行解码。在任一时刻,正在解码中的那一帧图像称为当前解码图像。当前编码图像或当前解码图像都统称为当前图像。
在几乎所有视频图像编码的国际标准如MPEG-1/2/4,H.264/AVC以及HEVC中,对一帧图像进行编码(以及相应的解码)时,把一帧图像划分成若干块MxM像素的子图像,称为编码块(从解码的角度也就是解码块,统称为编解码块)或“编码单元(Coding Unit简称CU)”,以CU为基本编码单位,对子图像一块一块进行编码。常用的M的大小是4,8,16,32,64。因此,对一个视频图像序列进行编码就是对各帧图像的各个编码单元即CU依次一个一个CU进行编码。在任一时刻,正在编码中的CU称为当前编码CU。同样,对一个视频图像序列的码流进行解码也是对各帧图像的各个CU依次一个一个CU进行解码,最终重构出整个视频图像序列。在任一时刻,正在解码中的CU称为当前解码CU。当前编码CU或当前解码CU统称为当前CU。
为适应一帧图像内各部分图像内容与性质的不同,有针对性地进行最有效的编码,一帧图像内各CU的大小可以是不同的,有的是8x8,有的是64x64,等等。为了使不同大小的CU能够无缝拼接起来,一帧图像通常先划分成大小完全相同具有NxN像素的“最大编码单元(Largest Coding Unit简称LCU)”,然后每个LCU再进一步划分成树状结构的多个大小不一定相同的CU。因此,LCU也称为“编码树单元(Coding Tree Unit简称CTU)”。例如,一帧 图像先划分成大小完全相同的64x64像素的LCU(N=64)。其中某个LCU由3个32x32像素的CU和4个16x16像素的CU构成,这样7个成树状结构的CU构成一个CTU。而另一个LCU由2个32x32像素的CU、3个16x16像素的CU和20个8x8像素的CU构成。这样25个成树状结构的CU构成另一个CTU。对一帧图像进行编码,就是依次对一个一个CTU中的一个一个CU进行编码。在HEVC国际标准中,LCU与CTU是同义词。大小等于CTU的CU称为深度为0的CU。深度为0的CU上下左右四等分得到的CU称为深度为1的CU。深度为1的CU上下左右四等分得到的CU称为深度为2的CU。深度为2的CU上下左右四等分得到的CU称为深度为3的CU。
CU也可以再进一步被划分成若干子区域。子区域包括但不限于预测单元(PU),变换单元(TU),不对称划分(AMP)的区域。
一个彩色像素通常有3个分量(component)组成。最常用的两种像素色彩格式(pixel color format)是由绿色分量、蓝色分量、红色分量组成的GBR色彩格式和由一个亮度(luma)分量及两个色度(chroma)分量组成的YUV色彩格式。通称为YUV的色彩格式实际包括多种色彩格式,如YCbCr色彩格式。因此,对一个CU进行编码时,可以把一个CU分成3个分量平面(G平面、B平面、R平面或Y平面、U平面、V平面),对3个分量平面分别进行编码;也可以把一个像素的3个分量捆绑组合成一个3元组,对由这些3元组组成的CU整体进行编码。前一种像素及其分量的排列方式称为图像(及其CU)的平面格式(planar format),而后一种像素及其分量的排列方式称为图像(及其CU)的叠包格式(packed format)。像素的GBR色彩格式和YUV色彩格式都是像素的3分量表现格式。
除了像素的3分量表现格式,像素的另一种常用的现有技术的表现格式是调色板索引表现格式。在调色板索引表现格式中,一个像素的数值也可以用调色板的索引来表现。调色板空间中存储了需要被表现的像素的3个分量的数值或近似数值,调色板的地址被称为这个地址中存储的像素的索引。一个索引可以表现像素的一个分量,一个索引也可以表现像素的3个分量。调色板可以是一个,也可以是多个。在多个调色板的情形,一个完整的索引实际上由调色板编号和该编号的调色板的索引两部分组成。像素的索引表现格式就是用索引来表现这个像素。像素的索引表现格式在现有技术中也被称为像素的索引颜色(indexed color)或仿颜色(pseudo color)表现格式,或者常常被直接称为索引像素(indexed pixel)或仿像素(pseudo pixel)或像素索引或索引。索引有时也被称为指数。把像素用其索引表现格式来表现也称为索引化或指数化。
其他的常用的现有技术的像素表现格式包括CMYK表现格式和灰度表现格式。
YUV色彩格式又可根据是否对色度分量进行下采样再细分成若干种子格式:1个像素由1个Y分量、1个U分量、1个V分量组成的YUV4:4:4像素色彩格式;左右相邻的2个像素由2个Y分量、1个U分量、1个V分量组成的YUV4:2:2像素色彩格式;左右上下相邻按2x2空间位置排列的4个像素由4个Y分量、1个U分量、1个V分量组成的YUV4:2:0像素色彩格式。一个分量一般用1个8~16比特的数字来表示。YUV4:2:2像素色彩格式和YUV4:2:0像素色彩格式都是对YUV4:4:4像素色彩格式施行色度分量的下采样得到。一个像素分量也称为 一个像素样值(pixel sample)或简单地称为一个样值(sample)。
编码或解码时的最基本元素可以是一个像素,也可以是一个像素分量,也可以是一个像素索引(即索引像素)。作为编码或解码的最基本元素的一个像素或一个像素分量或一个索引像素统称为一个像素样值,有时也通称为一个像素值,或简单地称为一个样值。
在本发明和本发明专利申请中,“像素样值”、“像素值”、“样值”、“索引像素”、“像素索引”是同义词,根据上下文,可以明确是表示“像素”还是表示“一个像素分量”还是表示“索引像素”或者同时表示三者之任一。如果从上下文不能明确,那么就是同时表示三者之任一。
在本发明和本发明专利申请中,编码块或解码块(统称为编解码块)是由若干像素值组成的一个区域。编解码块的形状可以是矩形、正方形、平行四边形、梯形、多边形、圆形、椭圆形及其他各种形状。矩形也包括宽度或高度为一个像素值的退化为线(即线段或线形)的矩形。一帧图像中,各个编解码块可以具有各不相同的形状和大小。一帧图像中,某些或全部编解码块可以有互相重叠部分,也可以所有编解码块都互不重叠。一个编解码块,可以由“像素”组成,也可以由“像素的分量”组成,也可以由“索引像素”组成,也可以由这3者混合组成,也可以由这3者中之任意2种混合组成。从视频图像编码或解码的角度,编解码块是指一帧图像中对其施行编码或解码的一个区域,包括但不限于以下至少一种:最大编码单元LCU、编码树单元CTU、编码单元CU、CU的子区域、预测单元PU、变换单元TU。
计算机屏幕图像的一个显著特点是同一帧图像内通常会有很多相似甚至完全相同的像素图样(pixel pattern)。例如,计算机屏幕图像中常出现的中文或外文文字,都是由少数几种基本笔划所构成,同一帧图像内可以找到很多相似或相同的笔划。计算机屏幕图像中常见的菜单、图标等,也具有很多相似或相同的图样。因此,现有的图像和视频压缩技术中通常采用的编码方式包括下列各种复制方式:
1)帧内块复制即帧内块匹配或称帧内运动补偿或称块匹配或称块复制。块复制编码或解码的基本运算是对一个当前编码块或当前解码块(简称为当前块),从重构参考像素样值集内复制一个与当前块同样大小(同样像素样值的数目)的参考块,并将所述参考块的数值赋值予当前块作为当前块的预测块或重构块。块复制方式的复制参数包括当前块的位移矢量,表示参考块与当前块之间的相对位置。一个当前块有一个位移矢量。
2)微块复制即微块匹配或称微块匹配或称微块复制。在微块复制中,把一个当前块(如8x8像素样值)分成几个微块(如4x2像素样值的微块或8x2像素样值的微块或2x4像素样值的微块或2x8像素样值的微块),微块复制编码或解码的基本运算是对当前块中的每一个编码微块或解码微块(简称为当前微块),从重构参考像素样值集内复制一个参考微块,并将所述参考微块的数值赋值予当前微块作为当前微块的预测块或重构块。微块复制方式的复制参数包括以下参数的至少之一:当前微块的位移矢量,表示参考微块与当前微块之间的相对位置;重构参考像素样值集的指示参数,指示参考微块所在的重构像素样值集。一个当前微块有一个位移矢量。一个当前块分成多少个微块就有多少个位移矢量。同一个编码块中的微块可以 使用相同或不同的重构参考像素样值集。
3)线条(简称条)复制即条匹配或称条匹配或称条复制。条是高度为1或宽度为1的微块,如4x1或8x1或1x4或1x8像素样值的微块。条复制编码或解码的基本运算是对当前块中的每一个编码条或解码条(简称为当前条),从重构参考像素样值集内复制一个参考条,并将所述参考条的数值赋值予当前条作为当前条的预测条或重构条。显然,条复制是微块复制的一种特殊情况。条复制方式的复制参数包括以下参数的至少之一:当前条的位移矢量,表示参考条与当前条之间的相对位置;重构参考像素样值集的指示参数,指示参考条所在的重构像素样值集。一个当前条有一个位移矢量。一个当前块分成多少个条就有多少个位移矢量。同一个编码块中的条可以使用相同或不同的重构参考像素样值集。
4)串复制即串匹配或称串匹配或称串复制。在串复制中,把一个当前编码块或一个当前解码块(简称为当前块)分成几个长度可变的像素样值串。这里的串是指把一个任意形状的二维区域内的像素样值排列成一个长度远大于宽度的串(如宽度为1个像素样值而长度为37个像素样值的串或宽度为2个像素样值而长度为111个像素样值的串,通常但不限于长度是一个独立编码或解码参数而宽度是一个预定的或由其他编码或解码参数导出的参数)。串复制编码或解码的基本运算是对当前块中的每一个编码串或解码串(简称为当前串),从重构参考像素样值集内复制一个参考串,并将所述参考串的数值赋值予当前串作为当前串的预测串或重构串。串复制方式的复制参数包括以下参数的至少之一:当前串的位移矢量,表示参考串与当前串之间的相对位置;复制长度即复制大小,当前串的长度即像素样值的数目;重构参考像素样值集的指示参数,指示参考串所在的重构像素样值集。当前串的长度也是参考串的长度。一个当前串有一个位移矢量和一个复制长度。一个当前块分成多少个串就有多少个位移矢量和多少个复制长度。同一个编码块中的串可以使用相同或不同的重构参考像素样值集。串复制方式根据串的路径形状,又可分为下列子类型:
4.1)一维水平扫描串复制。参考串和当前串都是在CTU或CU内按照水平扫描的顺序排列形成的一维像素样值串,具有相等的长度,但这两个串各自形成的二维区域不一定有相同的二维形状。
4.2)一维垂直扫描串复制。参考串和当前串都是在CTU或CU内按照垂直扫描的顺序排列形成的一维像素样值串,具有相等的长度,但这两个串各自形成的二维区域不一定有相同的二维形状。
4.3)仿二维水平扫描保形等宽串复制简称仿二维水平串复制。参考串和当前串具有相等的长度,都是按照水平扫描的顺序排列成完全相同的二维形状,形成的二维区域的宽度与当前编码块或解码块的宽度相等。
4.4)仿二维垂直扫描保形等高串复制简称仿二维垂直串复制。参考串和当前串具有相等的长度,都是按照垂直扫描的顺序排列成完全相同的二维形状,形成的二维区域的高度与当前编码块或解码块的高度相等。
4.5)二维水平扫描保形变宽串复制简称二维水平串复制。参考串和当前串具有相等的长 度,都是按照水平扫描的顺序排列成完全相同的二维形状,但形成的二维区域的宽度不一定与当前编码块或解码块的宽度相等,而是不大于当前编码块或解码块的宽度的可变宽度。在这种子类型的串复制方式中,复制参数还包括当前串形成的二维区域的复制宽度。所述宽度复制是一个独立参数或一个由其他编码或解码参数导出的从属参数。
4.6)二维垂直扫描保形变高串复制简称二维垂直串复制。参考串和当前串具有相等的长度,都是按照垂直扫描的顺序排列成完全相同的二维形状,但形成的二维区域的高度不一定与当前编码块或解码块的高度相等,而是不大于当前编码块或解码块的高度的可变高度。在这种子类型的串复制方式中,复制参数还包括当前串形成的二维区域的复制高度。所述复制高度是一个独立参数或一个由其他编码或解码参数导出的从属参数。
以上的水平扫描都包括Z字形扫描和弓形扫描(即奇数行和偶数行的扫描方向相反)。以上的垂直扫描也都包括Z字形扫描和弓形扫描(即奇数列和偶数列的扫描方向相反)。
5)帧内矩形复制即帧内矩形匹配或称矩形匹配或称矩形复制。在矩形复制中,把一个当前编码块或一个当前解码块(简称为当前块)分成几个由可变宽度和可变高度的像素样值组成的矩形。这里的矩形是指一个用一个宽度和一个高度来表征的任意大小的二维区域。矩形复制编码或解码的基本运算是对当前块中的每一个编码矩形或解码矩形(简称为当前矩形),从重构参考像素样值集内复制一个参考矩形,并将所述参考矩形的数值赋值予当前矩形作为当前矩形的预测矩形或重构矩形。参考矩形和当前矩形具有相等的宽度,也具有相等的高度,因而具有完全相同的二维矩形形状。这样的矩形也是一个像素样值串形成的,这个串的长度是矩形的高与矩形的宽的乘积,也就是串的长度正好是串所形成的二维区域的宽度的倍数(这个倍数就是这个二维区域的高度),又正好是串所形成的二维区域的高度的倍数(这个倍数就是这个二维区域的宽度)。显然,矩形复制是以上串复制子类型4.5)或4.6)的一种特殊情况,即串的长度正好是矩形的高与矩形的宽的乘积的特殊情况。属于串复制子类型4.5)的特殊情况的矩形复制称为水平扫描矩形复制。属于串复制子类型4.6)的特殊情况的矩形复制称为垂直扫描矩形复制。矩形复制方式的复制参数包括以下参数的至少之一:当前矩形的位移矢量,表示参考矩形与当前矩形之间的相对位置;矩形大小即复制大小,表示当前矩形的水平方向(即宽度)和垂直方向(即高度)的像素样值的数目;重构参考像素样值集的指示参数,指示参考矩形所在的重构像素样值集。当前矩形的大小也是参考矩形的大小。一个当前矩形有一个位移矢量和一个矩形大小。一个当前块分成多少个矩形就有多少个位移矢量和多少个矩形大小。同一个编码块中的矩形可以使用相同或不同的重构参考像素样值集。
现有的图像和视频压缩技术中通常采用的另一种技术是调色板编码方式和对应的解码方式,也称索引复制方式。在调色板编码和对应的解码方式中,首先构造或获取一个调色板,然后将当前编码块或当前解码块的部分或全部像素用调色板的索引来表示,再对索引进行编码和解码,包括但不限于对索引进行各种复制方式的编码和解码,特别是串复制方式的编码和解码或者矩形复制方式的编码和解码。
由于屏幕图像通常有各种不同性质的区域,有的具有比较大的或形状较规则的互相相似或相同的图样,而有的则具有很小的或形状不规则的互相相似或相同的图样。因此,在一帧 图像中,通常采用多种复制方式。
在相关技术中,对块复制、微块复制、条复制的复制参数,仅进行简单的预测(即差分)编码后即经过熵编码写入码流;对串复制和矩形复制的复制参数,则是直接经过熵编码写入码流。因此,写入码流的复制参数的数值中还存在相当的冗余成分,编码效率不高。针对相关技术中的上述问题,目前尚未存在有效的解决方案。
发明内容
本发明实施例提供了一种图像编码方法及装置、图像解码方法及装置,以至少解决相关技术中写入码流的复制参数的数值中存在冗余成分的问题。
根据本发明实施例的一个方面,提供了一种图像编码方法,包括:在对当前编码块进行编码时,对复制编码方式的复制参数的原始值进行综合调整得到复制参数的调整值;将所述调整值经过编码后写入视频码流;其中,所述综合调整的操作包括以下至少之一:分量缩小:根据一个或多个复制参数的分量的数值,缩小所述复制参数之外的一个或多个复制参数的分量的取值范围;分量置换:对由复制参数的分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;分量去相关:对一个复制参数的分量或多个复制参数的分量进行独立或相交的去相关性运算;分量多套2值化:根据一个或多个复制参数的分量的数值,选择所述多套2值化中的一套对所述复制参数之外的一个或多个复制参数分量进行2值化操作。
可选地,所述编码块是图像的一个编码区域,其中,所述编码区域包括以下至少之一:最大编码单元LCU、编码树单元CTU、编码单元CU、CU的子区域、预测单元PU、变换单元TU、像素串、像素组、像素微块、像素条。
可选地,所述复制参数分量至少包括:分量1,分量2,分量3,分量4;其中,所述分量1,所述分量2,所述分量3,所述分量4的取值范围分别是范围1,范围2,范围3,范围4;所述范围1的子范围至少包括子范围11;所述范围2的子范围至少包括子范围21;所述范围3的子范围至少包括子范围31;所述范围4的子范围至少包括子范围41;所述分量缩小的操作至少包括:由原因分量X和结果分量Y组成的基本操作(X,Y),其中,在原因分量X的取值在子范围X1中时,结果分量Y的取值范围是子范围Y1;X,Y分别是1,2,3,4之一,且X与Y互不相等;其中,根据多个所述基本操作原因分量的任意合理的逻辑关系将多个所述基本操作组合构成一个组合操作;根据多个所述基本操作结果分量的任意地合理逻辑关系将多个所述基本操作合并构成一个合并操作;多个所述组合操作和所述合并操作组合或合并。
可选地,所述复制参数分量至少包括:分量1,分量2,分量3,分量4;其中,所述分量1,所述分量2,所述分量3,所述分量4的取值范围分别是范围1,范围2,范围3,范围4;所述范围1的子范围至少包括子范围11;所述范围2的子范围至少包括子范围21;所述范围3的子范围至少包括子范围31;所述范围4的子范围至少包括子范围41;所述复制参数之 外的其他编码参数至少包括:非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D;其中,所述非当前复制参数A,所述非当前复制参数B,所述非当前复制参数C,所述非当前复制参数D的取值范围分别是范围A,范围B,范围C,范围D;所述范围A的子范围至少包括子范围A1;所述范围B的子范围至少包括子范围B1;所述范围C的子范围至少包括子范围C1;所述范围D的子范围至少包括子范围D1;所述分量缩小的操作至少包括:由为非当前复制参数X的原因参数X和结果分量Y组成的基本操作(X,Y);其中,在非当前复制参数X的取值在子范围X1中时,结果分量Y的取值范围为子范围Y1;该X是A,B,C,D其中之一;该Y是1,2,3,4其中之一;其中,根据多个所述基本操作原因分量的任意合理的逻辑关系将多个所述基本操作组合构成一个组合操作;根据多个所述基本操作结果分量的任意地合理逻辑关系将多个所述基本操作合并构成一个合并操作;多个所述组合操作和所述合并操作组合或合并。
可选地,所述复制参数分量至少包括以下当前像素样值段的复制参数分量:分量1,分量2,分量3,分量4;其中,所述分量1,所述分量2,所述分量3,所述分量4的取值范围分别是范围1,范围2,范围3,范围4;所述范围1的子范围至少包括子范围11;所述范围2的子范围至少包括子范围21;所述范围3的子范围至少包括子范围31;所述范围4的子范围至少包括子范围41;非当前复制参数至少包括:非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D;其中,所述非当前复制参数A为当前像素样值段之前一个像素样值段的复制参数分量的组合A;所述非当前复制参数B为当前像素样值段之前一个像素样值段的复制参数分量的组合B;所述非当前复制参数C为当前像素样值段之前一个像素样值段的复制参数分量的组合C;所述非当前复制参数D为当前像素样值段之前一个像素样值段的复制参数分量的组合D;所述非当前复制参数A,所述非当前复制参数B,所述非当前复制参数C,所述非当前复制参数D的取值范围分别是范围A,范围B,范围C,范围D;所述范围A的子范围至少包括子范围A1;所述范围B的子范围至少包括子范围B1;所述范围C的子范围至少包括子范围C1;所述范围D的子范围至少包括子范围D1;所述分量缩小的操作至少包括:由为非当前复制参数X的原因参数和结果分量Y组成的基本操作(X,Y);其中,在非当前复制参数X的取值在子范围X1中时,所述结果分量Y的取值范围为子范围Y1;该X是A,B,C,D其中之一;该Y是1,2,3,4其中之一;其中,根据多个所述基本操作原因分量的任意合理的逻辑关系将多个所述基本操作组合构成一个组合操作;根据多个所述基本操作结果分量的任意地合理逻辑关系将多个所述基本操作合并构成一个合并操作;多个所述组合操作和所述合并操作组合或合并。
可选地,所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;非当前复制参数至少包括:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,所述非当前复制参数取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;所述分量缩小的操作至少包括:如果前一个像素样值段的复制参数分量BV0x和/或BV0y和/ 或Len0的取值表明当前像素样值段的复制参数分量BVx和/或BVy和/或Len不可取值于同一个子范围,则当前像素样值段的复制参数分量BVx和/或BVy和/或Len的取值范围为所述当前像素样值段的复制参数分量取值范围减去所述子范围。
可选地,所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量的取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;非当前复制参数至少包括下列之一:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,该组合的取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;当前像素样值段的首像素的坐标:水平坐标X1和垂直坐标Y1;位于当前像素样值段的首像素的正上方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1和垂直坐标Y1+Ydelta,其中,Ydelta是所述坐标垂直方向分量与所述首像素的坐标的垂直分量Y1之间的偏移量;位于当前像素样值段的首像素的正左方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1+Xdelta和垂直坐标Y1,其中,Xdelta是所述坐标水平方向分量与所述首像素的坐标的水平分量X1之间的偏移量;所述分量缩小的操作包括以下至少之一:在BV0x=0且1≤BV0y≤Ymax,Ymax是BV0y的取值范围的最大值时,当前像素样值段的复制参数的取值范围为所述组合的取值范围减去第一不可取范围,其中,所述不可取范围为BVx=0、且BVy等于BV0y或BV0y的整数倍、且BVy≤Ydelta;在BV0y=0且1≤BV0x≤Xmax,其中,Xmax是BV0x的取值范围的最大值时,当前像素样值段的复制参数的取值范围为所述组合的取值范围减去第二不可取范围,其中,所述第二不可取范围为BVy=0、且BVx等于BV0x或BV0x的整数倍、且BVx≤Xdelta。
可选地,在BV0y等于1时,所述分量缩小的操作包括以下至少之一:在BV0x=0且BV0y=1时,当前像素样值段的复制参数的取值范围所述组合的取值范围减去第三不可取范围,其中,所述第三不可取范围为BVx=0且1≤BVy≤Ydelta;在BV0y=0且BV0x=1时,当前像素样值段的复制参数的取值范围是所述组合的取值范围减去第四不可取范围,其中第四不可取范围为:BVy=0且1≤BVx≤Xdelta;在BV0x=0且BV0y=1,且当前像素样值段的复制参数分量BVx=0时,当前像素样值段的复制参数分量BVy的取值范围为:1≤(BVy–Ydelta)≤(Ymax–Ydelta),其中,Ymax是BVy的所述组合的取值范围的最大值;BVy–Ydelta用于被编码后写入码流;在BV0y=0且BV0x=1,且当前像素样值段的复制参数分量BVy=0时,当前像素样值段的复制参数分量BVx的取值范围为:1≤(BVx–Xdelta)≤(Xmax–Xdelta),其中,Ymax是BVx的所述组合的取值范围的最大值;BVx–Xdelta用于被编码后写入码流。
可选地:一个复制参数分量对应于多套2值化方案;其中,在码流中视频参数集VPS和/或序列参数集SPS和/或图像参数集PPS和/或条带头和/或CTU头和/或CU头和/或编解码块头中,存在一个直接或间接的专有2值化模式;所述专有2值化模式指定所述编码块或解码块采用多套2值化方案中的一套对所述复制参数分量进行2值化;所述间接的专有2值化模 式包括以下至少之:一由所述编码块的深度导出的2值化模式;由所述编码块量化因子导出的2值化模式;由所述编码块是否进行量化导出的2值化模式;由所述编码块是否进行变换导出的2值化模式。
可选地,所述分量置换的操作至少包括:如果一个复制参数分量和/或非当前复制参数取值等于预定的数值,则对另一个复制参数分量进行分量置换。
根据本发明实施例的又一个方面,提供了一种图像解码方法,包括:解析码流,获得解码块的解码参数,其中,所述解码参数包括以下参数至少之一:所述解码块的复制参数,所述复制参数的调整指示信息;根据所述复制参数的调整指示信息,对所述复制参数进行调整操作,得到复制参数调整恢复值;使用所述复制参数调整恢复值对所述解码块进行解码;其中,对所述复制参数进行调整操作包括以下至少之一:分量缩小:根据已获得的一个或多个复制参数的分量的数值,缩小所述复制参数的分量的取值范围,在所述缩小的取值范围内,解析所述码流中所述复制参数相关字段,确定所述复制参数调整恢复值;分量置换:对由复制参数分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;分量相关:根据已获得的一个或多个复制参数的分量的数值,解析所述码流中所述复制参数相关字段,确定所述复制参数调整恢复值;分量多套2值化:根据已获得的一个或多个复制参数的分量的数值,解析所述码流中所述复制参数相关字段,选择所述多套2值化中的一套将所述字段映射为所述复制参数的分量的数值。
可选地,所述解码块是图像的一个解码区域,其中,所述解码区域包括以下至少之一:最大解码单元LCU、解码树单元CTU、解码单元CU、CU的子区域、预测单元PU、变换单元TU、像素串、像素组、像素微块、像素条。
可选地,所述复制参数分量至少包括:分量1,分量2,分量3,分量4;其中,所述分量1,所述分量2,所述分量3,所述分量4的取值范围分别是范围1,范围2,范围3,范围4;所述范围1的子范围至少包括子范围11;所述范围2的子范围至少包括子范围21;所述范围3的子范围至少包括子范围31;所述范围4的子范围至少包括子范围41;所述分量缩小的操作至少包括:由原因分量X和结果分量Y组成的基本操作(X,Y),其中,在原因分量X的取值在子范围X1中时,结果分量Y的取值范围是子范围Y1;X,Y分别是1,2,3,4之一,且X与Y互不相等;其中,根据多个所述基本操作原因分量的任意合理的逻辑关系将多个所述基本操作组合构成一个组合操作;根据多个所述基本操作结果分量的任意地合理逻辑关系将多个所述基本操作合并构成一个合并操作;多个所述组合操作和所述合并操作组合或合并。
可选地,所述复制参数分量至少包括:分量1,分量2,分量3,分量4;其中,所述分量1,所述分量2,所述分量3,所述分量4的取值范围分别是范围1,范围2,范围3,范围4;所述范围1的子范围至少包括子范围11;所述范围2的子范围至少包括子范围21;所述范围3的子范围至少包括子范围31;所述范围4的子范围至少包括子范围41;所述复制参数之外的其他解码参数至少包括:非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D;其中,所述非当前复制参数A,所述非当前复制参数B,所述非当前复制参 数C,所述非当前复制参数D的取值范围分别是范围A,范围B,范围C,范围D;所述范围A的子范围至少包括子范围A1;所述范围B的子范围至少包括子范围B1;所述范围C的子范围至少包括子范围C1;所述范围D的子范围至少包括子范围D1;所述分量缩小的操作至少包括:由为非当前复制参数X的原因参数X和结果分量Y组成的基本操作(X,Y);其中,在非当前复制参数X的取值在子范围X1中时,结果分量Y的取值范围为子范围Y1;该X是A,B,C,D其中之一;该Y是1,2,3,4其中之一;其中,根据多个所述基本操作原因分量的任意合理的逻辑关系将多个所述基本操作组合构成一个组合操作;根据多个所述基本操作结果分量的任意地合理逻辑关系将多个所述基本操作合并构成一个合并操作;多个所述组合操作和所述合并操作组合或合并。
可选地,所述复制参数分量至少包括以下当前像素样值段的复制参数分量:分量1,分量2,分量3,分量4;其中,所述分量1,所述分量2,所述分量3,所述分量4的取值范围分别是范围1,范围2,范围3,范围4;所述范围1的子范围至少包括子范围11;所述范围2的子范围至少包括子范围21;所述范围3的子范围至少包括子范围31;所述范围4的子范围至少包括子范围41;非当前复制参数至少包括:非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D;其中,所述非当前复制参数A为当前像素样值段之前一个像素样值段的复制参数分量的组合A;所述非当前复制参数B为当前像素样值段之前一个像素样值段的复制参数分量的组合B;所述非当前复制参数C为当前像素样值段之前一个像素样值段的复制参数分量的组合C;所述非当前复制参数D为当前像素样值段之前一个像素样值段的复制参数分量的组合D;所述非当前复制参数A,所述非当前复制参数B,所述非当前复制参数C,所述非当前复制参数D的取值范围分别是范围A,范围B,范围C,范围D;所述范围A的子范围至少包括子范围A1;所述范围B的子范围至少包括子范围B1;所述范围C的子范围至少包括子范围C1;所述范围D的子范围至少包括子范围D1;所述分量缩小的操作至少包括:由为非当前复制参数X的原因参数和结果分量Y组成的基本操作(X,Y);其中,在非当前复制参数X的取值在子范围X1中时,所述结果分量Y的取值范围为子范围Y1;该X是A,B,C,D其中之一;该Y是1,2,3,4其中之一;其中,根据多个所述基本操作原因分量的任意合理的逻辑关系将多个所述基本操作组合构成一个组合操作;根据多个所述基本操作结果分量的任意地合理逻辑关系将多个所述基本操作合并构成一个合并操作;多个所述组合操作和所述合并操作组合或合并。
可选地,所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;非当前复制参数至少包括:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,所述非当前复制参数取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;所述分量缩小的操作至少包括:如果前一个像素样值段的复制参数分量BV0x和/或BV0y和/或Len0的取值表明当前像素样值段的复制参数分量BVx和/或BVy和/或Len不可取值于同一个子范围,则当前像素样值段的复制参数分量BVx和/或BVy和/或Len的取值范围为所述当 前像素样值段的复制参数分量取值范围减去所述子范围。
可选地,所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量的取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;非当前复制参数至少包括下列之一:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,该组合的取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;当前像素样值段的首像素的坐标:水平坐标X1和垂直坐标Y1;位于当前像素样值段的首像素的正上方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1和垂直坐标Y1+Ydelta,其中,Ydelta是所述坐标垂直方向分量与所述首像素的坐标的垂直分量Y1之间的偏移量;位于当前像素样值段的首像素的正左方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1+Xdelta和垂直坐标Y1,其中,Xdelta是所述坐标水平方向分量与所述首像素的坐标的水平分量X1之间的偏移量;所述分量缩小的操作包括以下至少之一:在BV0x=0且1≤BV0y≤Ymax,Ymax是BV0y的取值范围的最大值时,当前像素样值段的复制参数的取值范围为所述组合的取值范围减去第一不可取范围,其中,所述不可取范围为BVx=0、且BVy等于BV0y或BV0y的整数倍、且BVy≤Ydelta;在BV0y=0且1≤BV0x≤Xmax,其中,Xmax是BV0x的取值范围的最大值时,当前像素样值段的复制参数的取值范围为所述组合的取值范围减去第二不可取范围,其中,所述第二不可取范围为BVy=0、且BVx等于BV0x或BV0x的整数倍、且BVx≤Xdelta。
可选地,在BV0y等于1时,所述分量缩小的操作包括以下至少之一:在BV0x=0且BV0y=1时,当前像素样值段的复制参数的取值范围所述组合的取值范围减去第三不可取范围,其中,所述第三不可取范围为BVx=0且1≤BVy≤Ydelta;
在BV0y=0且BV0x=1时,当前像素样值段的复制参数的取值范围是所述组合的取值范围减去第四不可取范围,其中第四不可取范围为:BVy=0且1≤BVx≤Xdelta;
在BV0x=0且BV0y=1,且当前像素样值段的复制参数分量BVx=0时,当前像素样值段的复制参数分量BVy的取值范围为:1≤(BVy–Ydelta)≤(Ymax–Ydelta),其中,Ymax是BVy的所述组合的取值范围的最大值;BVy–Ydelta用于被解码后写入码流;
在BV0y=0且BV0x=1,且当前像素样值段的复制参数分量BVy=0时,当前像素样值段的复制参数分量BVx的取值范围为:1≤(BVx–Xdelta)≤(Xmax–Xdelta),其中,Ymax是BVx的所述组合的取值范围的最大值;BVx–Xdelta用于被解码后写入码流。
可选地,一个复制参数分量对应于多套2值化方案;其中,在码流中视频参数集VPS和/或序列参数集SPS和/或图像参数集PPS和/或条带头和/或CTU头和/或CU头和/或编解码块头中,存在一个直接或间接的专有2值化模式;所述专有2值化模式指定所述解码块或解码块采用多套2值化方案中的一套对所述复制参数分量进行2值化;所述间接的专有2值化模 式包括以下至少之:一由所述解码块的深度导出的2值化模式;由所述解码块量化因子导出的2值化模式;由所述解码块是否进行量化导出的2值化模式;由所述解码块是否进行变换导出的2值化模式。
可选地,所述分量置换的操作至少包括:如果一个复制参数分量和/或非当前复制参数取值等于预定的数值,则对另一个复制参数分量进行分量置换。
根据本发明实施例的另一个方面,提供了一种图像编码方法,包括:对使用复制编码方式的编码块的复制参数的原始值进行调整操作,得到所述复制参数的调整值;将所述调整值进行编码得到的编码比特写入码流;其中,所述调整操作包括以下至少之一:分量缩小:根据一个或多个复制参数的分量的数值,缩小所述复制参数之外的一个或多个复制参数的分量的取值范围;分量置换:对由复制参数的分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;分量去相关:对一个复制参数的分量或多个复制参数的分量进行独立或相交的去相关性运算;分量多套2值化:根据一个或多个复制参数的分量的数值,选择所述多套2值化中的一套对所述复制参数之外的一个或多个复制参数分量进行2值化操作。
可选地,所述分量缩小操作包括:根据一个或多个所述复制参数分量的数值,确定在所述复制参数分量的缺省取值范围内没有包含所述数值的待缩小取值范围;将缺省取值范围内去掉所述待缩小取值范围后得到的取值范围作为一个或多个所述复制参数分量外的复制参数分量的取值范围。
可选地,所述分量置换操作的操作包括以下至少之一:将经所述分量缩小操作后得到的复制参数分量的取值范围映射成为连续取值的取值范围;改变复制参数分量的正负号;将复制参数分量的取值范围映射为不同的取值范围。
可选地,解析所述码流,获得所述复制参数的一个或多个分量对应字段的取值;将所述复制参数调整恢复值的一个或多个分量的数值设置为所述已获得的一个或多个复制参数的对应分量与所述复制参数的一个或多个分量对应字段的取值的差值或和值。
可选地,所述分量多套2值化操作包括:根据所述已获得的一个或多个复制参数的分量的数值,将所述码流中所述复制参数的一个或多个分量对应2值符号串字段映射为数值。
可选地,包括:所述编码块是图像的一个编码区域,其中,所述编码区域包括以下至少之一:最大编码单元LCU、编码树单元CTU、编码单元CU、CU的子区域、预测单元PU、变换单元TU、像素串、像素组、像素微块、像素条。
可选地,所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;非当前复制参数至少包括:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,所述非当前复制 参数取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内。
可选地,所述分量缩小的操作至少包括:如果前一个像素样值段的复制参数分量BV0x和/或BV0y和/或Len0的取值表明当前像素样值段的复制参数分量BVx和/或BVy和/或Len不可取值于同一个子范围,则当前像素样值段的复制参数分量BVx和/或BVy和/或Len的取值范围为所述当前像素样值段的复制参数分量取值范围减去所述子范围。
可选地,所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量的取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;非当前复制参数至少包括下列之一:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,该组合的取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;当前像素样值段的首像素的坐标:水平坐标X1和垂直坐标Y1;位于当前像素样值段的首像素的正上方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1和垂直坐标Y1+Ydelta,其中,Ydelta是所述坐标垂直方向分量与所述首像素的坐标的垂直分量Y1之间的偏移量;位于当前像素样值段的首像素的正左方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1+Xdelta和垂直坐标Y1,其中,Xdelta是所述坐标水平方向分量与所述首像素的坐标的水平分量X1之间的偏移量。
可选地,所述分量缩小的操作包括以下至少之一:在BV0x=0且1≤BV0y≤Ymax,Ymax是BV0y的取值范围的最大值时,当前像素样值段的复制参数的取值范围为所述组合的取值范围减去第一不可取范围,其中,所述不可取范围为BVx=0、且BVy等于BV0y或BV0y的整数倍、且BVy≤Ydelta;在BV0y=0且1≤BV0x≤Xmax,其中,Xmax是BV0x的取值范围的最大值时,当前像素样值段的复制参数的取值范围为所述组合的取值范围减去第二不可取范围,其中,所述第二不可取范围为BVy=0、且BVx等于BV0x或BV0x的整数倍、且BVx≤Xdelta。
可选地,在BV0y等于1时,所述分量缩小的操作包括以下至少之一:在BV0x=0且BV0y=1时,当前像素样值段的复制参数的取值范围所述组合的取值范围减去第三不可取范围,其中,所述第三不可取范围为BVx=0且1≤BVy≤Ydelta;在BV0y=0且BV0x=1时,当前像素样值段的复制参数的取值范围是所述组合的取值范围减去第四不可取范围,其中第四不可取范围为:BVy=0且1≤BVx≤Xdelta;在BV0x=0且BV0y=1,且当前像素样值段的复制参数分量BVx=0时,当前像素样值段的复制参数分量BVy的取值范围为:1≤(BVy–Ydelta)≤(Ymax–Ydelta),其中,Ymax是BVy的所述组合的取值范围的最大值;BVy–Ydelta用于被编码后写入码流;在BV0y=0且BV0x=1,且当前像素样值段的复制参数分量BVy=0时,当前像素样值段的复制参数分量BVx的取值范围为:1≤(BVx–Xdelta)≤(Xmax–Xdelta),其中,Ymax是BVx的所述组合的取值范围的最大值;BVx–Xdelta用于被编码后写入码流。
根据本发明实施例的再一个方面,提供了一种图像解码方法,包括:解析码流,获得解码块的解码参数,其中,所述解码参数包括以下参数至少之一:所述解码块的复制参数,所述复制参数的调整指示信息;根据所述复制参数的调整指示信息,对所述复制参数进行调整操作,得到复制参数调整恢复值;使用所述复制参数调整恢复值对所述解码块进行解码。
可选地,对所述复制参数进行调整操作得到复制参数调整恢复值的方式包括以下至少之一:分量缩小:根据已获得的一个或多个复制参数的分量的数值,缩小所述复制参数的分量的取值范围,在所述缩小的取值范围内,解析所述码流中所述复制参数相关字段,确定所述复制参数调整恢复值;分量置换:对由复制参数分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;分量相关:根据已获得的一个或多个复制参数的分量的数值,解析所述码流中所述复制参数相关字段,确定所述复制参数调整恢复值;分量多套2值化:根据已获得的一个或多个复制参数的分量的数值,解析所述码流中所述复制参数相关字段,选择所述多套2值化中的一套将所述字段映射为所述复制参数的分量的数值。
可选地,所述分量缩小操作包括:根据一个或多个所述复制参数分量的数值,确定在所述复制参数分量的缺省取值范围内没有包含所述数值的待缩小取值范围;将缺省取值范围内去掉所述待缩小取值范围后得到的取值范围作为一个或多个所述复制参数分量外的复制参数分量的取值范围。
可选地,所述分量置换操作的操作包括以下至少之一:将经所述分量缩小操作后得到的复制参数分量的取值范围映射成为连续取值的取值范围;改变复制参数分量的正负号;将复制参数分量的取值范围映射为不同的取值范围。
可选地,所述分量相关操作包括:对所述复制参数分量进行差分运算处理。
可选地,所述分量多套2值化操作包括:根据一个或多个复制参数的分量的数值为所述复制参数的分量在多个候选2值符号串中选择对应的2值符号串。
可选地,包括:所述解码块是图像的一个解码区域,其中,所述解码区域包括以下至少之一:最大解码单元LCU、解码树单元CTU、解码单元CU、CU的子区域、预测单元PU、变换单元TU、像素串、像素组、像素微块、像素条。
可选地,所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;非当前复制参数至少包括:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,所述非当前复制参数取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内。
可选地,所述分量缩小的操作至少包括:如果前一个像素样值段的复制参数分量BV0x和/或BV0y和/或Len0的取值表明当前像素样值段的复制参数分量BVx和/或BVy和/或Len不可取值于同一个子范围,则当前像素样值段的复制参数分量BVx和/或BVy和/或Len的取 值范围为所述当前像素样值段的复制参数分量取值范围减去所述子范围。
可选地,所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量的取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;非当前复制参数至少包括下列之一:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,该组合的取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;当前像素样值段的首像素的坐标:水平坐标X1和垂直坐标Y1;位于当前像素样值段的首像素的正上方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1和垂直坐标Y1+Ydelta,其中,Ydelta是所述坐标垂直方向分量与所述首像素的坐标的垂直分量Y1之间的偏移量;位于当前像素样值段的首像素的正左方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1+Xdelta和垂直坐标Y1,其中,Xdelta是所述坐标水平方向分量与所述首像素的坐标的水平分量X1之间的偏移量。
可选地,所述分量缩小的操作包括以下至少之一:在BV0x=0且1≤BV0y≤Ymax,Ymax是BV0y的取值范围的最大值时,当前像素样值段的复制参数的取值范围为所述组合的取值范围减去第一不可取范围,其中,所述不可取范围为BVx=0、且BVy等于BV0y或BV0y的整数倍、且BVy≤Ydelta;在BV0y=0且1≤BV0x≤Xmax,其中,Xmax是BV0x的取值范围的最大值时,当前像素样值段的复制参数的取值范围为所述组合的取值范围减去第二不可取范围,其中,所述第二不可取范围为BVy=0、且BVx等于BV0x或BV0x的整数倍、且BVx≤Xdelta。
可选地,在BV0y等于1时,所述分量缩小的操作包括以下至少之一:在BV0x=0且BV0y=1时,当前像素样值段的复制参数的取值范围所述组合的取值范围减去第三不可取范围,其中,所述第三不可取范围为BVx=0且1≤BVy≤Ydelta;在BV0y=0且BV0x=1时,当前像素样值段的复制参数的取值范围是所述组合的取值范围减去第四不可取范围,其中第四不可取范围为:BVy=0且1≤BVx≤Xdelta;在BV0x=0且BV0y=1,且当前像素样值段的复制参数分量BVx=0时,当前像素样值段的复制参数分量BVy的取值范围为:1≤(BVy–Ydelta)≤(Ymax–Ydelta),其中,Ymax是BVy的所述组合的取值范围的最大值;BVy–Ydelta用于被解码后写入码流;在BV0y=0且BV0x=1,且当前像素样值段的复制参数分量BVy=0时,当前像素样值段的复制参数分量BVx的取值范围为:1≤(BVx–Xdelta)≤(Xmax–Xdelta),其中,Ymax是BVx的所述组合的取值范围的最大值;BVx–Xdelta用于被解码后写入码流。
根据本发明实施例的再一个方面,提供了一种图像编码装置,包括:第一调整模块,设置为对使用复制编码方式的编码块的复制参数的原始值进行调整操作,得到所述复制参数的调整值;编码处理模块,设置为将所述调整值进行编码得到的编码比特写入码流;其中,所述调整操作包括以下至少之一:分量缩小:根据一个或多个复制参数的分量的数值,缩小所 述复制参数之外的一个或多个复制参数的分量的取值范围;分量置换:对由复制参数的分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;分量去相关:对一个复制参数的分量或多个复制参数的分量进行独立或相交的去相关性运算;分量多套2值化:根据一个或多个复制参数的分量的数值,选择所述多套2值化中的一套对所述复制参数之外的一个或多个复制参数分量进行2值化操作。
根据本发明实施例的再一个方面,提供了一种图像解码装置,包括:解析模块,设置为解析码流获得解码块的解码参数,其中,所述解码参数包括以下参数至少之一:所述解码块的复制参数,所述复制参数的调整指示信息;第二调整模块,设置为根据所述复制参数的调整指示信息,对所述复制参数进行调整操作,得到复制参数调整恢复值;解码处理模块,设置为用所述复制参数调整恢复值对所述解码块进行解码。
在本发明实施例中,采用对使用复制编码方式的编码块的复制参数的原始值进行调整操作,得到所述复制参数的调整值;进而将所述调整值进行编码得到的编码比特写入码流,从而解决了相关技术中写入码流的复制参数的数值中存在冗余成分的问题,达到了提高编码效率的效果。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的图像编码方法的流程图一;
图2是根据本发明实施例的图像解码方法的流程图一;
图3是根据本发明实施例的图像编码方法的流程图二;
图4是根据本发明实施例的图像解码方法的流程图二;
图5是根据本发明实施例的图像编码装置的结构框图;
图6是根据本发明实施例的图像解码装置的结构框图;
图7是根据本发明实施例的对复制参数分量进行综合调整的示意图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
在本实施例中提供了一种图像编码方法,图1是根据本发明实施例的图像编码方法的流 程图一,如图1所示,该流程包括如下步骤:
步骤S102:在对当前编码块进行编码时,对复制编码方式的复制参数的原始值进行综合调整得到复制参数的调整值;
步骤S104:将调整值经过编码后写入视频码流;
其中,综合调整的操作包括以下至少之一:
分量缩小:根据一个或多个复制参数的分量的数值,缩小复制参数之外的一个或多个复制参数的分量的取值范围;
分量置换:对由复制参数的分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;
分量去相关:对一个复制参数的分量或多个复制参数的分量进行独立或相交的去相关性运算;
分量多套2值化:根据一个或多个复制参数的分量的数值,选择多套2值化中的一套对复制参数之外的一个或多个复制参数分量进行2值化操作。
通过本发明实施例的步骤S102和步骤S104,采用对使用复制编码方式的编码块的复制参数的原始值进行调整操作,得到复制参数的调整值;进而将调整值进行编码得到的编码比特写入码流,从而解决了相关技术中写入码流的复制参数的数值中存在冗余成分的问题,达到了提高编码效率的效果。
需要说明的是,本实施例中的编码块是图像的一个编码区域,其中,编码区域包括以下至少之一:最大编码单元LCU、编码树单元CTU、编码单元CU、CU的子区域、预测单元PU、变换单元TU、像素串、像素组、像素微块、像素条。
下面结合本实施例中的复制参数分量的几种不同情况进行相应的说明;
情况1:
复制参数分量至少包括:分量1,分量2,分量3,分量4;其中,分量1,分量2,分量3,分量4的取值范围分别是范围1,范围2,范围3,范围4;范围1的子范围至少包括子范围11;范围2的子范围至少包括子范围21;范围3的子范围至少包括子范围31;范围4的子范围至少包括子范围41;
分量缩小的操作至少包括:由原因分量X和结果分量Y组成的基本操作(X,Y),其中,在原因分量X的取值在子范围X1中时,结果分量Y的取值范围是子范围Y1;X,Y分别是1,2,3,4之一,且X与Y互不相等;
其中,根据多个基本操作原因分量的任意合理的逻辑关系将多个基本操作组合构成一个组合操作;
根据多个基本操作结果分量的任意地合理逻辑关系将多个基本操作合并构成一个合并操作;
多个组合操作和合并操作组合或合并。
情况2:
复制参数分量至少包括:分量1,分量2,分量3,分量4;其中,分量1,分量2,分量3,分量4的取值范围分别是范围1,范围2,范围3,范围4;范围1的子范围至少包括子范围11;范围2的子范围至少包括子范围21;范围3的子范围至少包括子范围31;范围4的子范围至少包括子范围41;
复制参数之外的其他编码参数至少包括:非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D;其中,非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D的取值范围分别是范围A,范围B,范围C,范围D;
范围A的子范围至少包括子范围A1;范围B的子范围至少包括子范围B1;范围C的子范围至少包括子范围C1;范围D的子范围至少包括子范围D1;
分量缩小的操作至少包括:由为非当前复制参数X的原因参数X和结果分量Y组成的基本操作(X,Y);
其中,在非当前复制参数X的取值在子范围X1中时,结果分量Y的取值范围为子范围Y1;该X是A,B,C,D其中之一;该Y是1,2,3,4其中之一;
其中,根据多个基本操作原因分量的任意合理的逻辑关系将多个基本操作组合构成一个组合操作;
根据多个基本操作结果分量的任意地合理逻辑关系将多个基本操作合并构成一个合并操作;
多个组合操作和合并操作组合或合并。
情况3:
复制参数分量至少包括以下当前像素样值段的复制参数分量:分量1,分量2,分量3,分量4;
其中,分量1,分量2,分量3,分量4的取值范围分别是范围1,范围2,范围3,范围4;范围1的子范围至少包括子范围11;范围2的子范围至少包括子范围21;范围3的子范围至少包括子范围31;范围4的子范围至少包括子范围41;
非当前复制参数至少包括:非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D;
其中,非当前复制参数A为当前像素样值段之前一个像素样值段的复制参数分量的组合 A;非当前复制参数B为当前像素样值段之前一个像素样值段的复制参数分量的组合B;非当前复制参数C为当前像素样值段之前一个像素样值段的复制参数分量的组合C;非当前复制参数D为当前像素样值段之前一个像素样值段的复制参数分量的组合D;
非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D的取值范围分别是范围A,范围B,范围C,范围D;范围A的子范围至少包括子范围A1;范围B的子范围至少包括子范围B1;范围C的子范围至少包括子范围C1;范围D的子范围至少包括子范围D1;
分量缩小的操作至少包括:由为非当前复制参数X的原因参数和结果分量Y组成的基本操作(X,Y);
其中,在非当前复制参数X的取值在子范围X1中时,结果分量Y的取值范围为子范围Y1;该X是A,B,C,D其中之一;该Y是1,2,3,4其中之一;
其中,根据多个基本操作原因分量的任意合理的逻辑关系将多个基本操作组合构成一个组合操作;
根据多个基本操作结果分量的任意地合理逻辑关系将多个基本操作合并构成一个合并操作;
多个组合操作和合并操作组合或合并。
在本实施例的另一个可选实施方式中,复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,当前像素样值段的复制参数分量取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;非当前复制参数至少包括:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,非当前复制参数取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;分量缩小的操作至少包括:如果前一个像素样值段的复制参数分量BV0x和/或BV0y和/或Len0的取值表明当前像素样值段的复制参数分量BVx和/或BVy和/或Len不可取值于同一个子范围,则当前像素样值段的复制参数分量BVx和/或BVy和/或Len的取值范围为当前像素样值段的复制参数分量取值范围减去子范围。
而在本实施例中,复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,当前像素样值段的复制参数分量的取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;非当前复制参数至少包括下列之一:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,该组合的取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;当前像素样值段的首像素的坐标:水平坐标X1和垂直坐标Y1;位于当前像素样值段的首像素的正上方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像 素样值段的像素的坐标:水平坐标X1和垂直坐标Y1+Ydelta,其中,Ydelta是坐标垂直方向分量与首像素的坐标的垂直分量Y1之间的偏移量;位于当前像素样值段的首像素的正左方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1+Xdelta和垂直坐标Y1,其中,Xdelta是坐标水平方向分量与首像素的坐标的水平分量X1之间的偏移量;
分量缩小的操作包括以下至少之一:
在BV0x=0且1≤BV0y≤Ymax,Ymax是BV0y的取值范围的最大值时,当前像素样值段的复制参数的取值范围为组合的取值范围减去第一不可取范围,其中,不可取范围为BVx=0、且BVy等于BV0y或BV0y的整数倍、且BVy≤Ydelta;
在BV0y=0且1≤BV0x≤Xmax,其中,Xmax是BV0x的取值范围的最大值时,当前像素样值段的复制参数的取值范围为组合的取值范围减去第二不可取范围,其中,第二不可取范围为BVy=0、且BVx等于BV0x或BV0x的整数倍、且BVx≤Xdelta。
基于此,在BV0y等于1时,分量缩小的操作包括以下至少之一:
在BV0x=0且BV0y=1时,当前像素样值段的复制参数的取值范围组合的取值范围减去第三不可取范围,其中,第三不可取范围为BVx=0且1≤BVy≤Ydelta;
在BV0y=0且BV0x=1时,当前像素样值段的复制参数的取值范围是组合的取值范围减去第四不可取范围,其中第四不可取范围为:BVy=0且1≤BVx≤Xdelta;
在BV0x=0且BV0y=1,且当前像素样值段的复制参数分量BVx=0时,当前像素样值段的复制参数分量BVy的取值范围为:1≤(BVy–Ydelta)≤(Ymax–Ydelta),其中,Ymax是BVy的组合的取值范围的最大值;BVy–Ydelta用于被编码后写入码流;
在BV0y=0且BV0x=1,且当前像素样值段的复制参数分量BVy=0时,当前像素样值段的复制参数分量BVx的取值范围为:1≤(BVx–Xdelta)≤(Xmax–Xdelta),其中,Ymax是BVx的组合的取值范围的最大值;BVx–Xdelta用于被编码后写入码流。
需要说明的是,一个复制参数分量对应于多套2值化方案;其中,在码流中视频参数集VPS和/或序列参数集SPS和/或图像参数集PPS和/或条带头和/或CTU头和/或CU头和/或编解码块头中,存在一个直接或间接的专有2值化模式;专有2值化模式指定编码块或解码块采用多套2值化方案中的一套对复制参数分量进行2值化;间接的专有2值化模式包括以下至少之:一由编码块的深度导出的2值化模式;由编码块量化因子导出的2值化模式;由编码块是否进行量化导出的2值化模式;由编码块是否进行变换导出的2值化模式。
另外,分量置换的操作至少包括:如果一个复制参数分量和/或非当前复制参数取值等于预定的数值,则对另一个复制参数分量进行分量置换。
图2是根据本发明实施例的图像解码方法的流程图一,如图2所示,该方法的步骤包括:
步骤S202:解析码流,获得解码块的解码参数,其中,所述解码参数包括以下参数至少 之一:所述解码块的复制参数,所述复制参数的调整指示信息;
步骤S204:根据所述复制参数的调整指示信息,对所述复制参数进行调整操作,得到复制参数调整恢复值;
步骤S206:使用所述复制参数调整恢复值对所述解码块进行解码;
其中,对复制参数进行调整操作包括以下至少之一:
分量缩小:根据已获得的一个或多个复制参数的分量的数值,缩小所述复制参数的分量的取值范围,在所述缩小的取值范围内,解析所述码流中所述复制参数相关字段,确定所述复制参数调整恢复值;
分量置换:对由复制参数分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;
分量相关:根据已获得的一个或多个复制参数的分量的数值,解析所述码流中所述复制参数相关字段,确定所述复制参数调整恢复值;
分量多套2值化:根据已获得的一个或多个复制参数的分量的数值,解析所述码流中所述复制参数相关字段,选择所述多套2值化中的一套将所述字段映射为所述复制参数的分量的数值。
需要说明的是,本实施例中的解码块是图像的一个解码区域,其中,解码区域包括以下至少之一:最大解码单元LCU、解码树单元CTU、解码单元CU、CU的子区域、预测单元PU、变换单元TU、像素串、像素组、像素微块、像素条。
下面结合本实施例中的复制参数分量的几种不同情况进行相应的说明;
情况1:
复制参数分量至少包括:分量1,分量2,分量3,分量4;其中,分量1,分量2,分量3,分量4的取值范围分别是范围1,范围2,范围3,范围4;范围1的子范围至少包括子范围11;范围2的子范围至少包括子范围21;范围3的子范围至少包括子范围31;范围4的子范围至少包括子范围41;
分量缩小的操作至少包括:由原因分量X和结果分量Y组成的基本操作(X,Y),其中,在原因分量X的取值在子范围X1中时,结果分量Y的取值范围是子范围Y1;X,Y分别是1,2,3,4之一,且X与Y互不相等;
其中,根据多个基本操作原因分量的任意合理的逻辑关系将多个基本操作组合构成一个组合操作;
根据多个基本操作结果分量的任意地合理逻辑关系将多个基本操作合并构成一个合并操作;
多个组合操作和合并操作组合或合并。
情况2:
复制参数分量至少包括:分量1,分量2,分量3,分量4;其中,分量1,分量2,分量3,分量4的取值范围分别是范围1,范围2,范围3,范围4;范围1的子范围至少包括子范围11;范围2的子范围至少包括子范围21;范围3的子范围至少包括子范围31;范围4的子范围至少包括子范围41;
复制参数之外的其他解码参数至少包括:非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D;其中,非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D的取值范围分别是范围A,范围B,范围C,范围D;
范围A的子范围至少包括子范围A1;范围B的子范围至少包括子范围B1;范围C的子范围至少包括子范围C1;范围D的子范围至少包括子范围D1;
分量缩小的操作至少包括:由为非当前复制参数X的原因参数X和结果分量Y组成的基本操作(X,Y);
其中,在非当前复制参数X的取值在子范围X1中时,结果分量Y的取值范围为子范围Y1;该X是A,B,C,D其中之一;该Y是1,2,3,4其中之一;
其中,根据多个基本操作原因分量的任意合理的逻辑关系将多个基本操作组合构成一个组合操作;
根据多个基本操作结果分量的任意地合理逻辑关系将多个基本操作合并构成一个合并操作;
多个组合操作和合并操作组合或合并。
情况3:
复制参数分量至少包括以下当前像素样值段的复制参数分量:分量1,分量2,分量3,分量4;
其中,分量1,分量2,分量3,分量4的取值范围分别是范围1,范围2,范围3,范围4;范围1的子范围至少包括子范围11;范围2的子范围至少包括子范围21;范围3的子范围至少包括子范围31;范围4的子范围至少包括子范围41;
非当前复制参数至少包括:非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D;
其中,非当前复制参数A为当前像素样值段之前一个像素样值段的复制参数分量的组合A;非当前复制参数B为当前像素样值段之前一个像素样值段的复制参数分量的组合B;非当前复制参数C为当前像素样值段之前一个像素样值段的复制参数分量的组合C;非当前复制参数D为当前像素样值段之前一个像素样值段的复制参数分量的组合D;
非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D的取值范围分别是范围A,范围B,范围C,范围D;范围A的子范围至少包括子范围A1;范围B的子范围至少包括子范围B1;范围C的子范围至少包括子范围C1;范围D的子范围至少包括子范围D1;
分量缩小的操作至少包括:由为非当前复制参数X的原因参数和结果分量Y组成的基本操作(X,Y);
其中,在非当前复制参数X的取值在子范围X1中时,结果分量Y的取值范围为子范围Y1;该X是A,B,C,D其中之一;该Y是1,2,3,4其中之一;
其中,根据多个基本操作原因分量的任意合理的逻辑关系将多个基本操作组合构成一个组合操作;
根据多个基本操作结果分量的任意地合理逻辑关系将多个基本操作合并构成一个合并操作;
多个组合操作和合并操作组合或合并。
在本实施例的另一个可选实施方式中,复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,当前像素样值段的复制参数分量取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;非当前复制参数至少包括:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,非当前复制参数取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;分量缩小的操作至少包括:如果前一个像素样值段的复制参数分量BV0x和/或BV0y和/或Len0的取值表明当前像素样值段的复制参数分量BVx和/或BVy和/或Len不可取值于同一个子范围,则当前像素样值段的复制参数分量BVx和/或BVy和/或Len的取值范围为当前像素样值段的复制参数分量取值范围减去子范围。
而在本实施例中,复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,当前像素样值段的复制参数分量的取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;非当前复制参数至少包括下列之一:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,该组合的取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;当前像素样值段的首像素的坐标:水平坐标X1和垂直坐标Y1;位于当前像素样值段的首像素的正上方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1和垂直坐标Y1+Ydelta,其中,Ydelta是坐标垂直方向分量与首像素的坐标的垂直分量Y1之间的偏移量;位于当前像素样值段的首像素的正左方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1+Xdelta和垂直坐标Y1,其中,Xdelta是坐标水平方向分量与首像素的坐标 的水平分量X1之间的偏移量;
分量缩小的操作包括以下至少之一:
在BV0x=0且1≤BV0y≤Ymax,Ymax是BV0y的取值范围的最大值时,当前像素样值段的复制参数的取值范围为组合的取值范围减去第一不可取范围,其中,不可取范围为BVx=0、且BVy等于BV0y或BV0y的整数倍、且BVy≤Ydelta;
在BV0y=0且1≤BV0x≤Xmax,其中,Xmax是BV0x的取值范围的最大值时,当前像素样值段的复制参数的取值范围为组合的取值范围减去第二不可取范围,其中,第二不可取范围为BVy=0、且BVx等于BV0x或BV0x的整数倍、且BVx≤Xdelta。
基于此,在BV0y等于1时,分量缩小的操作包括以下至少之一:
在BV0x=0且BV0y=1时,当前像素样值段的复制参数的取值范围组合的取值范围减去第三不可取范围,其中,第三不可取范围为BVx=0且1≤BVy≤Ydelta;
在BV0y=0且BV0x=1时,当前像素样值段的复制参数的取值范围是组合的取值范围减去第四不可取范围,其中第四不可取范围为:BVy=0且1≤BVx≤Xdelta;
在BV0x=0且BV0y=1,且当前像素样值段的复制参数分量BVx=0时,当前像素样值段的复制参数分量BVy的取值范围为:1≤(BVy–Ydelta)≤(Ymax–Ydelta),其中,Ymax是BVy的组合的取值范围的最大值;BVy–Ydelta用于被解码后写入码流;
在BV0y=0且BV0x=1,且当前像素样值段的复制参数分量BVy=0时,当前像素样值段的复制参数分量BVx的取值范围为:1≤(BVx–Xdelta)≤(Xmax–Xdelta),其中,Ymax是BVx的组合的取值范围的最大值;BVx–Xdelta用于被解码后写入码流。
需要说明的是,一个复制参数分量对应于多套2值化方案;其中,在码流中视频参数集VPS和/或序列参数集SPS和/或图像参数集PPS和/或条带头和/或CTU头和/或CU头和/或编解码块头中,存在一个直接或间接的专有2值化模式;专有2值化模式指定解码块或解码块采用多套2值化方案中的一套对复制参数分量进行2值化;间接的专有2值化模式包括以下至少之:一由解码块的深度导出的2值化模式;由解码块量化因子导出的2值化模式;由解码块是否进行量化导出的2值化模式;由解码块是否进行变换导出的2值化模式。
另外,分量置换的操作至少包括:如果一个复制参数分量和/或非当前复制参数取值等于预定的数值,则对另一个复制参数分量进行分量置换。
图3是根据本发明实施例的图像编码方法的流程图二,如图3所示,该方法的步骤包括:
步骤S302:对使用复制编码方式的编码块的复制参数的原始值进行调整操作,得到复制参数的调整值;
步骤S304:将调整值进行编码得到的编码比特写入码流;
其中,调整操作包括以下至少之一:
分量缩小:根据一个或多个复制参数的分量的数值,缩小复制参数之外的一个或多个复制参数的分量的取值范围;
分量置换:对由复制参数的分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;
分量去相关:对一个复制参数的分量或多个复制参数的分量进行独立或相交的去相关性运算;
分量多套2值化:根据一个或多个复制参数的分量的数值,选择多套2值化中的一套对复制参数之外的一个或多个复制参数分量进行2值化操作。
需要说明的是,在具体应用场景中该分量缩小操作包括:根据一个或多个复制参数分量的数值,确定在复制参数分量的缺省取值范围内没有包含数值的待缩小取值范围;将缺省取值范围内去掉待缩小取值范围后得到的取值范围作为一个或多个复制参数分量外的复制参数分量的取值范围。
而分量置换操作的操作包括以下至少之一:将经分量缩小操作后得到的复制参数分量的取值范围映射成为连续取值的取值范围;改变复制参数分量的正负号;将复制参数分量的取值范围映射为不同的取值范围。
该分量去相关操作包括:解析所述码流,获得所述复制参数的一个或多个分量对应字段的取值;将所述复制参数调整恢复值的一个或多个分量的数值设置为所述已获得的一个或多个复制参数的对应分量与所述复制参数的一个或多个分量对应字段的取值的差值或和值。
该分量多套2值化操作包括:根据所述已获得的一个或多个复制参数的分量的数值,将所述码流中所述复制参数的一个或多个分量对应2值符号串字段映射为数值。
另外,编码块是图像的一个编码区域,其中,编码区域包括以下至少之一:最大编码单元LCU、编码树单元CTU、编码单元CU、CU的子区域、预测单元PU、变换单元TU、像素串、像素组、像素微块、像素条。
此外,复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,当前像素样值段的复制参数分量取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;
非当前复制参数至少包括:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,非当前复制参数取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内。
而在本实施例中,分量缩小的操作至少包括:如果前一个像素样值段的复制参数分量BV0x和/或BV0y和/或Len0的取值表明当前像素样值段的复制参数分量BVx和/或BVy和/ 或Len不可取值于同一个子范围,则当前像素样值段的复制参数分量BVx和/或BVy和/或Len的取值范围为当前像素样值段的复制参数分量取值范围减去子范围。
此外,还可以是复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,当前像素样值段的复制参数分量的取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;
非当前复制参数至少包括下列之一:
当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,该组合的取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;
当前像素样值段的首像素的坐标:水平坐标X1和垂直坐标Y1;
位于当前像素样值段的首像素的正上方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1和垂直坐标Y1+Ydelta,其中,Ydelta是坐标垂直方向分量与首像素的坐标的垂直分量Y1之间的偏移量;位于当前像素样值段的首像素的正左方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1+Xdelta和垂直坐标Y1,其中,Xdelta是坐标水平方向分量与首像素的坐标的水平分量X1之间的偏移量。
基于此,分量缩小的操作包括以下至少之一:
在BV0x=0且1≤BV0y≤Ymax,Ymax是BV0y的取值范围的最大值时,当前像素样值段的复制参数的取值范围为组合的取值范围减去第一不可取范围,其中,不可取范围为BVx=0、且BVy等于BV0y或BV0y的整数倍、且BVy≤Ydelta;
在BV0y=0且1≤BV0x≤Xmax,其中,Xmax是BV0x的取值范围的最大值时,当前像素样值段的复制参数的取值范围为组合的取值范围减去第二不可取范围,其中,第二不可取范围为BVy=0、且BVx等于BV0x或BV0x的整数倍、且BVx≤Xdelta。
以及,在BV0y等于1时,分量缩小的操作包括以下至少之一:
在BV0x=0且BV0y=1时,当前像素样值段的复制参数的取值范围组合的取值范围减去第三不可取范围,其中,第三不可取范围为BVx=0且1≤BVy≤Ydelta;
在BV0y=0且BV0x=1时,当前像素样值段的复制参数的取值范围是组合的取值范围减去第四不可取范围,其中第四不可取范围为:BVy=0且1≤BVx≤Xdelta;
在BV0x=0且BV0y=1,且当前像素样值段的复制参数分量BVx=0时,当前像素样值段的复制参数分量BVy的取值范围为:1≤(BVy–Ydelta)≤(Ymax–Ydelta),其中,Ymax是BVy的组合的取值范围的最大值;BVy–Ydelta用于被编码后写入码流;
在BV0y=0且BV0x=1,且当前像素样值段的复制参数分量BVy=0时,当前像素样值 段的复制参数分量BVx的取值范围为:1≤(BVx–Xdelta)≤(Xmax–Xdelta),其中,Ymax是BVx的组合的取值范围的最大值;BVx–Xdelta用于被编码后写入码流。
图4是根据本发明实施例的图像解码方法的流程图二,如图4所示,该方法的步骤包括:
步骤S402:解析码流获得解码块的解码参数,其中,解码参数包括以下参数至少之一:解码块的复制参数,复制参数的调整指示信息;
步骤S04:根据复制参数的调整指示信息,对复制参数进行调整操作,得到复制参数调整恢复值;
步骤S406:使用复制参数调整恢复值对解码块进行解码。
在本实施例中,对复制参数进行调整操作包括以下至少之一:分量缩小:根据已获得的一个或多个复制参数的分量的数值,缩小复制参数的分量的取值范围,在缩小的取值范围内,解析码流中复制参数相关字段,确定复制参数调整恢复值;分量置换:对由复制参数分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;分量相关:根据已获得的一个或多个复制参数的分量的数值,解析码流中复制参数相关字段,确定复制参数调整恢复值;分量多套2值化:根据已获得的一个或多个复制参数的分量的数值,解析码流中复制参数相关字段,选择多套2值化中的一套将字段映射为复制参数的分量的数值。
需要说明的是,该分量缩小操作包括:根据一个或多个复制参数分量的数值,确定在复制参数分量的缺省取值范围内没有包含数值的待缩小取值范围;将缺省取值范围内去掉待缩小取值范围后得到的取值范围作为一个或多个复制参数分量外的复制参数分量的取值范围。
分量置换操作的操作包括以下至少之一:将经分量缩小操作后得到的复制参数分量的取值范围映射成为连续取值的取值范围;改变复制参数分量的正负号;将复制参数分量的取值范围映射为不同的取值范围。
分量相关操作包括:对复制参数分量进行差分运算处理。
分量多套2值化操作包括:根据一个或多个复制参数的分量的数值为复制参数的分量在多个候选2值符号串中选择对应的2值符号串。
此外,本实施例中涉及到的解码块是图像的一个解码区域,其中,解码区域包括以下至少之一:最大解码单元LCU、解码树单元CTU、解码单元CU、CU的子区域、预测单元PU、变换单元TU、像素串、像素组、像素微块、像素条。
在本实施例中,复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,当前像素样值段的复制参数分量取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;
非当前复制参数至少包括:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,非当前复制参数取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域 内。
而分量缩小的操作还可以至少包括:如果前一个像素样值段的复制参数分量BV0x和/或BV0y和/或Len0的取值表明当前像素样值段的复制参数分量BVx和/或BVy和/或Len不可取值于同一个子范围,则当前像素样值段的复制参数分量BVx和/或BVy和/或Len的取值范围为当前像素样值段的复制参数分量取值范围减去子范围。
以及,复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,当前像素样值段的复制参数分量的取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;非当前复制参数至少包括下列之一:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,该组合的取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;当前像素样值段的首像素的坐标:水平坐标X1和垂直坐标Y1;
位于当前像素样值段的首像素的正上方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1和垂直坐标Y1+Ydelta,其中,Ydelta是坐标垂直方向分量与首像素的坐标的垂直分量Y1之间的偏移量;位于当前像素样值段的首像素的正左方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1+Xdelta和垂直坐标Y1,其中,Xdelta是坐标水平方向分量与首像素的坐标的水平分量X1之间的偏移量。
可选地,分量缩小的操作包括以下至少之一:
在BV0x=0且1≤BV0y≤Ymax,Ymax是BV0y的取值范围的最大值时,当前像素样值段的复制参数的取值范围为组合的取值范围减去第一不可取范围,其中,不可取范围为BVx=0、且BVy等于BV0y或BV0y的整数倍、且BVy≤Ydelta;
在BV0y=0且1≤BV0x≤Xmax,其中,Xmax是BV0x的取值范围的最大值时,当前像素样值段的复制参数的取值范围为组合的取值范围减去第二不可取范围,其中,第二不可取范围为BVy=0、且BVx等于BV0x或BV0x的整数倍、且BVx≤Xdelta。
可选地,在BV0y等于1时,分量缩小的操作包括以下至少之一:
在BV0x=0且BV0y=1时,当前像素样值段的复制参数的取值范围组合的取值范围减去第三不可取范围,其中,第三不可取范围为BVx=0且1≤BVy≤Ydelta;
在BV0y=0且BV0x=1时,当前像素样值段的复制参数的取值范围是组合的取值范围减去第四不可取范围,其中第四不可取范围为:BVy=0且1≤BVx≤Xdelta;
在BV0x=0且BV0y=1,且当前像素样值段的复制参数分量BVx=0时,当前像素样值段的复制参数分量BVy的取值范围为:1≤(BVy–Ydelta)≤(Ymax–Ydelta),其中,Ymax是BVy的组合的取值范围的最大值;BVy–Ydelta用于被解码后写入码流;
在BV0y=0且BV0x=1,且当前像素样值段的复制参数分量BVy=0时,当前像素样值段的复制参数分量BVx的取值范围为:1≤(BVx–Xdelta)≤(Xmax–Xdelta),其中,Ymax是BVx的组合的取值范围的最大值;BVx–Xdelta用于被解码后写入码流。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
在本实施例中还提供了一种图像编码装置以及解码装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图5是根据本发明实施例的图像编码装置的结构框图,如图5所示,该装置包括:第一调整模块52,设置为对使用复制编码方式的编码块的复制参数的原始值进行调整操作,得到复制参数的调整值;编码处理模块54,与第一调整模块52耦合连接,设置为将调整值进行编码得到的编码比特写入码流;其中,调整操作包括以下至少之一:分量缩小:根据一个或多个复制参数的分量的数值,缩小复制参数之外的一个或多个复制参数的分量的取值范围;分量置换:对由复制参数的分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;分量去相关:对一个复制参数的分量或多个复制参数的分量进行独立或相交的去相关性运算;分量多套2值化:根据一个或多个复制参数的分量的数值,选择多套2值化中的一套对复制参数之外的一个或多个复制参数分量进行2值化操作。
图6是根据本发明实施例的图像解码装置的结构框图,如图6所示,该装置包括:解析模块62,设置为解析码流获得解码块的解码参数,其中,解码参数包括以下参数至少之一:解码块的复制参数,复制参数的调整指示信息;第二调整模块64,与解析模块62耦合连接,设置为根据复制参数的调整指示信息,对复制参数进行调整操作,得到复制参数调整恢复值;解码处理模块66,与第二跳帧光模块64耦合连接,设置为用复制参数调整恢复值对解码块进行解码。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。
下面结合本发明的可选实施例对本发明进行举例说明;
本可选实施例提供了一种对复制参数在进行熵编码前进行综合调整以去除其中的冗余成分的图像编码与解码的方法。
需要说明的是,在本可选实施例中,块复制方式中的块,微块复制方式中的微块,条复制方式中的条,串复制方式中的串,矩形复制方式中的矩形,调色板索引方式中的像素索引串,统称为像素样值段,简称样值段。样值段的基本组成元素是像素或像素分量或像素索引。一个样值段有一个复制参数,用来表示当前像素样值段与参考像素样值段之间的关系。一个复制参数包括若干复制参数分量,复制参数分量至少包括:位移矢量水平分量、位移矢量垂直分量、复制长度、复制宽度、复制高度、矩形宽度、矩形长度、未匹配像素(又称无参考像素,即不是从其他地方复制过来的非复制像素)。
在复制编码或复制解码过程中,除当前像素样值段的复制参数之外,还有各种其他编码参数或解码参数,至少包括:当前、邻近编码块或解码块的序号、各种模式、各种状态、当前编码块或解码块中邻近(当前像素样值段之前)像素样值段的复制参数、邻近编码块或解码块中的若干特选样值段的复制参数。为区别起见,各种其他编码参数或解码参数统称为非当前复制参数。
本可选实施例的编码方法中,在对当前编码块进行编码时,对复制编码方式的复制参数的原始值进行综合调整,再把综合调整后的复制参数的调整值经过编码后写入压缩视频码流(简称码流)。综合调整包括但不限于下列操作的部分或全部:
分量缩小:根据一个或几个复制参数分量的数值和/或复制参数之外的一个或几个其他编码参数(即非当前复制参数)的数值,缩小(即限制)其他一个或几个复制参数分量的取值范围;目的是减少对所述其他一个或几个复制参数分量进行编码所需要的比特数,提高编码效率;图7是根据本发明实施例的对复制参数分量进行综合调整的示意图,如图7所示,分量缩小的一种手段至少包括在分量的缺省取值范围内减去(除去)在某个特定条件下(如:其他分量和/或非当前复制参数取某些特定的数值)的不可取值范围,得到分量缩小后的取值范围;
分量置换:对复制参数分量的数值构成的一维(一个分量)或二维(二个分量)或三维(三个分量)或四维(四个分量)空间中的部分区域进行置换;置换包括但不限于两个区域的对换,部分区域的旋转,部分区域的点对称、轴对称、平面对称的交换。目的是使在编码过程中出现频度高的区域对应于较短的2值化码,提高编码效率;分量置换的例1:如图7所示,分量置换与分量缩小一起使用,把分量缩小后的分离的几个取值子范围置换为连续取值的子范围;分量置换的例2:改变一个分量在其一个取值子范围内时的正负号;分量置换的例3:把一个分量的出现频度较高的取值子范围置换成出现频度较低的取值子范围;
分量去相关:对一个复制参数分量或多个复制参数分量进行独立或相交的去相关性运算。去相关性运算包括但不限于一阶或高阶差分运算。目的是把复制参数分量转换成取值范围较小较集中的形式,对应于较短的2值化码,提高编码效率。
分量多套2值化:根据一个或几个复制参数分量的数值和/或复制参数之外的其他编码参数(即非当前复制参数)的数值,选择多套2值化方案中的一套对其他一个或几个复制参数分量进行2值化操作。目的是选用最有效的2值化方案,提高编码效率。
此外,在本可选实施例中,在对当前解码块进行解码时,以综合调整的方式从视频码流中解析和获取复制参数,即从码流中首先解析和获取复制参数的调整值,经过综合调整(编码方法和装置中的综合调整的操作的逆操作)后获取复制参数的原始值;所述综合调整的方式包括但不限于下列操作的部分或全部:
分量缩小:根据已经解析和获取的一个或几个复制参数分量的数值和/或复制参数之外的一个或几个其他解码参数(即非当前复制参数)的数值,在缩小(即受限)的取值范围内解析和获取其他一个或几个复制参数分量;从码流中首先获取的是复制参数分量的调整值,经编码方法或装置中分量缩小的操作的逆操作后获取所述复制参数分量的原始值;如图7所示,分量缩小的一种手段至少包括在分量的缺省取值范围内减去(除去)在某个特定条件下(如:其他分量和/或非当前复制参数取某些特定的数值)的不可取值范围,得到分量缩小后的取值范围;
分量置换:在解析和获取复制参数的过程中,对复制参数分量的数值构成的一维(一个分量)或二维(二个分量)或三维(三个分量)或四维(四个分量)空间中的部分区域进行置换。置换包括但不限于两个区域的对换,部分区域的旋转,部分区域的点对称、轴对称、平面对称的交换;分量置换的例1:如图7所示,分量置换与分量缩小一起使用,把分量缩小后的分离的几个取值子范围置换为连续取值的子范围,从码流中首先获取的是置换后的连续取值的子范围内的复制参数的调整值,经过分量置换后获取复制参数的原始值;分量置换的例2:改变一个分量在其一个取值子范围内时的正负号;分量置换的例3:把一个分量的出现频度较低的取值子范围置换成出现频度较高的取值子范围;
分量去相关:在解析和获取复制参数的过程中,对一个复制参数分量或多个复制参数分量进行独立或相交的去相关性运算的逆运算即复制参数的复原运算。复原运算包括但不限于一阶或高阶差分运算的逆运算即一阶或高阶求和运算。
分量多套2值化:根据已经解析和获取的一个或几个复制参数分量的数值和/或复制参数之外的其他编码参数(即非当前复制参数)的数值,选择多套2值化方案中的一套对其他一个或几个复制参数分量进行2值化解码。
在本可选实施例中,复制参数包括但不限于位移矢量和/或复制大小和/或非复制像素样值。对串复制,复制大小包括但不限于复制长度。对矩形复制,复制大小包括但不限于复制宽度和复制长度这两个复制参数分量或者复制高度和复制长度这两个复制参数分量或者复制宽度和复制高度这两个复制参数分量。
位移矢量的一种形式是在重构参考像素样值集内的参考串和/或参考矩形和/或参考块和/或参考微块和/或参考条的第一个像素样值与当前编码块或解码块中当前串和/或当前矩形和/或当前块和/或当前微块和/或当前条的第一个像素样值之间的平面(2维)距离或平面(2维)坐标或像素样值按照一种扫描方式线性排列后的线性(1维)距离,其单位是样值或若干样值。位移矢量的还有一种形式是在重构参考像素样值集内或其一个子集内的2维(或1维)地址或索引,其单位是样值或若干样值。位移矢量有时也称为帧内运动矢量。
对串复制和/或矩形复制,复制大小是参考串和/或参考矩形的大小,其单位也是样值或若干样值。显然,参考串和/或参考矩形的大小也是当前串和/或当前矩形的大小。
需要说明的是,在本实施例中,“重构样值”和“参考样值”有时被统称为“重构参考像素样值”。根据上下文,可以明确“重构参考像素样值”是表示“重构样值”还是“参考样值”还是同时表示两者之任一。如果从上下文不能明确,那么就是同时表示两者之任一。
另外,“重构参考样值集”和“重构参考像素样值集”是同义词,在不引起混淆的情况下,有时也被简称为“样值集”。
其中,重构参考像素样值集可以是含有至少一个CTU区域的连成一片的二维区域,也可以是由按照预先规定的规则选择的若干互不关联的部分区域或像素组成。
重构参考像素样值集可以分成若干子集,各子集的像素可以具有互不相同的分量排列格式、色彩格式和像素样值排列方式。
重构参考像素样值集可以分成若干子集,各子集的像素也可以处于互不相同程度的各自特有的重构阶段的完全重构像素或阶段性重构像素。
重构参考像素样值集可以分成若干子集,各子集的像素数目可以不同,由具有各种特殊性质的像素样值组成。
本发明实施例中使用的术语也可以用其他来自物理学或数学的名词来表示,如位移矢量也可以使用以下别名之一:复制位置,匹配位置,位置,距离,相对距离,位移量,移动量,移动矢量,运动矢量、偏移量,偏移矢量,块矢量,串矢量,补偿量,补偿,线性地址,地址,2维坐标,1维坐标,坐标,索引,指数,等等。复制长度也可以被称为以下别名之一:复制行程,复制个数,复制计数,复制游程,匹配行程,匹配个数,匹配计数,匹配游程,长度,行程,个数,计数,游程,等等。串复制也称为串匹配,矩形复制也称为矩形匹配等等。
需要说明的是,本可选实施例适用于叠包格式图像的编码和解码。
此外,本可选实施例也同样适用于分量平面格式图像的编码和解码。当前编码块或解码块的像素和重构参考像素样值集的像素都分解成3个分量平面,所有像素的一个分量形成一个平面。参考块,参考微块,参考条,参考串,参考矩形和当前块,当前微块,当前条,当前串,当前矩形都分解成3个分量平面。块复制,微块复制,条复制,串复制,矩形复制都在3个平面内分别进行。但为了减少复制参数,同时由于3个平面有很大相关性,故也可以3个平面共享同样的复制参数。
本可选实施例的分量平面格式图像的复制编码和解码,如果应用于YUV4:2:2像素色彩格式和YUV4:2:0像素色彩格式等对色度分量U和V进行下采样的情形,那么Y平面的复制参数应用到U平面和V平面时,要根据下采样的比例对复制参数进行相应的变换和调整。
下面结合本发明可选实施例的具体实施例对本发明进行详细说明;
实施例1
综合调整方式1(分量缩小)
复制参数包括但不限于下列复制参数分量:分量1,分量2,分量3,分量4。其取值范围分别是范围1,范围2,范围3,范围4。范围1的至少一个子范围是子范围11。范围2的至少一个子范围是子范围21。范围3的至少一个子范围是子范围31。范围4的至少一个子范围是子范围41。
分量缩小的操作至少包括:
如果分量X的取值在子范围X1中,则
{
分量Y的取值范围是子范围Y1
}
其中X,Y分别是1,2,3,4之一,X,Y互不相等。这个限制(受限)操作称为基本操作(X,Y)。其中第一个分量X称为因分量(原因分量),第二个分量Y称为果分量(结果分量)。
若干个基本操作可以用因分量的任意的合理的逻辑关系组合起来构成一个组合操作。
若干个基本操作可以任意地合理地把果分量合并起来构成一个合并操作。
若干个组合操作和合并操作可以进一步组合或合并。
实施例2
基本操作的若干种组合的例(分量缩小)
组合1是基本操作(X,Y)“和”基本操作(Z,Y),等价于:
如果分量X的取值在子范围X1中并且分量Z的取值在子范围Z1中,则
{
分量Y的取值范围是子范围Y1
}
其中X,Y,Z分别是1,2,3,4之一,X,Y,Z互不相等。
组合2是基本操作(X,Y)“或”基本操作(Z,Y),等价于:
如果分量X的取值在子范围X1中或者分量Z的取值在子范围Z1中,则
{
分量Y的取值范围是子范围Y1
}
其中X,Y,Z分别是1,2,3,4之一,X,Y,Z互不相等。
组合3是基本操作(W,Y)“和”基本操作(X,Y)“和”基本操作(Z,Y),等价于:
如果分量W的取值在子范围W1中并且分量X的取值在子范围X1中并且分量Z的取值在子范围Z1中,则
{
分量Y的取值范围是子范围Y1
}
其中W,X,Y,Z分别是1,2,3,4之一,W,X,Y,Z互不相等。
实施例3 基本操作的若干种合并的例(分量缩小)
基本操作(X,Y)合并基本操作(X,Z),等价于:
如果分量X的取值在子范围X1,则
{
分量Y的取值范围是子范围Y1
分量Z的取值范围是子范围Z1
}
其中X,Y,Z分别是1,2,3,4之一,X,Y,Z互不相等。
实施例4
综合调整方式2(分量缩小)
复制参数至少包括下列复制参数分量:分量1,分量2,分量3,分量4。其取值范围分别是范围1,范围2,范围3,范围4。范围1的至少一个子范围是子范围11。范围2的至少一个子范围是子范围21。范围3的至少一个子范围是子范围31。范围4的至少一个子范围是子范围41。
复制参数之外的其他编码或解码参数至少包括:非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D。其取值范围分别是范围A,范围B,范围C,范围D。范围A的至少一个子范围是子范围A1。范围B的至少一个子范围是子范围B1。范围C的至 少一个子范围是子范围C1。范围D的至少一个子范围是子范围D1。
分量缩小的操作至少包括:
如果非当前复制参数X的取值在子范围X1中,则
{
分量Y的取值范围是子范围Y1
}
其中X是A,B,C,D之一。Y是1,2,3,4之一。这个限制(受限)操作称为基本操作(X,Y)。其中非当前复制参数X称为因参数(原因参数),分量Y称为果分量(结果分量)。
若干个基本操作可以用因参数的任意的合理的逻辑关系组合起来构成一个组合操作。
若干个基本操作可以任意地合理地把果分量合并起来构成一个合并操作。
若干个组合操作和合并操作可以进一步组合或合并。
需要说明的是,以上实施例1、实施例2、实施例3中的基本操作的组合和合并也适用于实施例4。实施例1和实施例4中的基本操作也可以互相组合和合并成更多的组合操作和合并操作。这样产生的组合操作和合并操作可以进一步组合或合并。以上各种基本操作、组合操作、合并操作也可以用任意的合理的方式合成起来构成更为复杂的合成操作。
实施例5
综合调整方式3(分量缩小)
复制参数至少包括下列当前像素样值段的复制参数分量:分量1,分量2,分量3,分量4。其取值范围分别是范围1,范围2,范围3,范围4。范围1的至少一个子范围是子范围11。范围2的至少一个子范围是子范围21。范围3的至少一个子范围是子范围31。范围4的至少一个子范围是子范围41。
非当前复制参数至少包括:当前像素样值段之前一个像素样值段的复制参数分量的组合A,记为非当前复制参数A,当前像素样值段之前一个像素样值段的复制参数分量的组合B,记为非当前复制参数B,当前像素样值段之前一个像素样值段的复制参数分量的组合C,记为非当前复制参数C,当前像素样值段之前一个像素样值段的复制参数分量的组合D,记为非当前复制参数D。其取值范围分别是范围A,范围B,范围C,范围D。范围A的至少一个子范围是子范围A1。范围B的至少一个子范围是子范围B1。范围C的至少一个子范围是子范围C1。范围D的至少一个子范围是子范围D1。
分量缩小的操作至少包括:
如果非当前复制参数X的取值在子范围X1中,则
{
分量Y的取值范围是子范围Y1
}
其中X是A,B,C,D之一。Y是1,2,3,4之一。这个限制(受限)操作称为基本操作(X,Y)。其中非当前复制参数X称为因参数(原因参数),分量Y称为果分量(结果分量)。
若干个基本操作可以用因参数的任意的合理的逻辑关系组合起来构成一个组合操作。
若干个基本操作可以任意地合理地把果分量合并起来构成一个合并操作。
若干个组合操作和合并操作可以进一步组合或合并。
实施例6
综合调整方式1(分量缩小)的实施例
复制参数包括但不限于下列复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len。其取值范围分别是(-PicWidth,PicWidth),(-PicHeight,PicHeight),(0,CuWidth*CuHeight]。BVx和BVy分别各用1-3个语法元素来表示:
语法元素1:是否为零,一个比特数;
语法元素2:符号,一个比特数;
语法元素3:绝对值,可变比特数;
复制参数之外的其他编码或解码参数包括但不限于:当前编码或解码CTU序号NumCTU,当前编码块或解码块序号Zorder。
综合调整包括如下操作的部分或全部。
操作1:如果BVx等于0,则
{
BVy的取值范围缩小为(0,PicHeight),可省略语法元素1和语法元素2
}
操作2:如果NumCTU和Zorder的取值表明当前编码块或解码块在一帧图像的最上方,则
{
BVx的取值范围缩小为[0,PicWidth),可省略语法元素2
}
操作3:如果BVx大于0,则
{
BVy的取值范围缩小为(0,PicHeight),可省略语法元素1和语法元素2
并且
从BVy中减去min(Len+curYinCU,CuHeight)-1得到新的BVy,其中curYinCU表示当前像素样值段的首像素样值在当前编码块或解码块中的垂直位移
其中,可选地,Len总是设置为零
}
操作4、操作5、操作6分别是操作1、操作2、操作3的对偶操作,把其中的y,Y,Height,x,Width分别改为x,X,Width,y,Height即可。
操作7是操作1、操作2、操作3、操作4、操作5、操作6的合成操作:
在一个编码块或解码块的码流的编码块或解码块头中有一个直接或间接的专有比特,
如果所述专有比特取一个值,则
{
执行操作O和/或操作P和/或操作Q
}
否则,所述专有比特取另一个值,则
{
执行操作R和/或操作S和/或操作T
}
其中O,P,Q,R,S,T分别是1,2,3,4,5,6之一,O,P,Q,R,S,T互不相等。所述间接的专有比特包括但不限于由下列方式导出:当前编码块或解码块的扫描模式是水平扫描模式时,所述间接的专有比特被设为一个值,否则,当前编码块或解码块的扫描模式是垂直扫描模式时,所述间接的专有比特被设为另一个值。
实施例7
综合调整方式3(分量缩小)的实施例1
复制参数至少包括下列当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len。其缺省取值范围满足下列条件:使当前像素样值段的参考像素样值段位于预定的参考区域内。
非当前复制参数至少包括:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0。其缺省取值范围满足下列条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内。
分量缩小的操作至少包括:
如果前一个像素样值段的复制参数分量BV0x和/或BV0y和/或Len0的取值表明当前像素样值段的复制参数分量BVx和/或BVy和/或Len不可取值于一个子范围,则
{
当前像素样值段的复制参数分量BVx和/或BVy和/或Len的取值范围是其缺省取值范围减去(除去)所述子范围
}。
实施例8
综合调整方式3(分量缩小)的实施例2(以上实施例1的特例)
复制参数至少包括下列当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len。其缺省取值范围满足下列条件:使当前像素样值段的参考像素样值段位于预定的参考区域内。
非当前复制参数至少包括下列之一:
1)当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0。其缺省取值范围满足下列条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;
2)当前像素样值段的首像素的坐标:水平坐标X1和垂直坐标Y1;
3)位于当前像素样值段的首像素的正上方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1和垂直坐标Y1+Ydelta;位于当前像素样值段的首像素的正左方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1+Xdelta和垂直坐标Y1;
分量缩小的操作至少包括下列操作之一:
操作1:如果前一个像素样值段的复制参数的取值表明所述前一个像素样值段是复制上方像素样值段,即BV0x=0且1≤BV0y≤Ymax,Ymax是BV0y的缺省取值范围的最大值,则
{
当前像素样值段的复制参数的取值范围是其缺省取值范围减去(除去)下面不可取范围:
BVx=0且BVy等于BV0y或BV0y的整数倍(即BVy=k×BV0y其中k是正整数)且BVy≤Ydelta;
}
操作2(操作1的对偶操作):如果前一个像素样值段的复制参数的取值表明所述前一个像素样值段是复制左方像素样值段,即BV0y=0且1≤BV0x≤Xmax,Xmax是BV0x的缺省取值范围的最大值,则
{
当前像素样值段的复制参数的取值范围是其缺省取值范围减去(除去)下面不可取范围:
BVy=0且BVx等于BV0x或BV0x的整数倍(即BVx=k×BV0x其中k是正整数)且BVx≤Xdelta;
}。
实施例9
综合调整方式3(分量缩小)的实施例3(以上实施例2的特例)
分量缩小的操作至少包括下列操作之一:
操作1:如果前一个像素样值段的复制参数的取值表明所述前一个像素样值段是复制直接邻接上方像素样值段,即BV0x=0且BV0y=1,则
{
当前像素样值段的复制参数的取值范围是其缺省取值范围减去(除去)下面不可取范围:
BVx=0且1≤BVy≤Ydelta;
}
操作2(操作1的对偶操作):如果前一个像素样值段的复制参数的取值表明所述前一个像素样值段是复制直接邻接左方像素样值段,即BV0y=0且BV0x=1,则
{
当前像素样值段的复制参数的取值范围是其缺省取值范围减去(除去)下面不可取范围:
BVy=0且1≤BVx≤Xdelta;
}
实施例10
综合调整方式3(分量缩小和的实施例4(与以上实施例3等价)
分量缩小的操作至少包括下列操作之一:
操作1:如果前一个像素样值段的复制参数的取值表明所述前一个像素样值段是复制直接邻接上方像素样值段,即BV0x=0且BV0y=1,当前像素样值段的复制参数分量BVx=0,则
{
当前像素样值段的复制参数分量BVy的取值范围是:
1≤(BVy–Ydelta)≤(Ymax–Ydelta),其中Ymax是BVy的缺省取值范围的最大值;
}
编码方法中将BVy–Ydelta经编码后写入码流;
解码方法中将BVy–Ydelta从码流中读出,加上Ydelta后获得BVy;
操作2(操作1的对偶操作):如果前一个像素样值段的复制参数的取值表明所述前一个像素样值段是复制直接邻接左方像素样值段,即BV0y=0且BV0x=1,当前像素样值段的复制参数分量BVy=0,则
{
当前像素样值段的复制参数分量BVx的取值范围是:
1≤(BVx–Xdelta)≤(Xmax–Xdelta),其中Ymax是BVx的缺省取值范围的最大值;
}
编码方法中将BVx–Xdelta经编码后写入码流;
解码方法中将BVx–Xdelta从码流中读出,加上Ydelta后获得BVx;
本实施例中的BVy–Ydelta和BVx–Xdelta运算也是对复制参数分量进行分量置换的例。
实施例11
综合调整方式4(分量多套2值化)
对一个复制参数分量,有多于一套2值化方案;在码流中视频参数集VPS和/或序列参数 集SPS和/或图像参数集PPS和/或条带头和/或CTU头和/或CU头和/或编解码块头中,有一个直接或间接的专有2值化模式;所述专有2值化模式指定所述编码块或解码块采用多套2值化方案中的一套对所述复制参数分量进行2值化。
所述间接的专有2值化模式包括但不限于由下列方式之一或其组合导出:2值化模式由所述编码块或解码块的深度导出;2值化模式由所述编码块或解码块的量化因子导出;2值化模式由所述编码块或解码块是否进行量化导出;2值化模式由所述编码块或解码块是否进行变换导出。
实施例12
综合调整方式4(分量多套2值化)的实施例
复制长度有四套2值化方案。当编码块或解码块的深度为0,1,2,3时,分别采用第一、第二、第三、第四套2值化方案。
复制长度的每套2值化由前缀和后缀组成。
复制长度的各套2值化的前缀各不相同。
复制长度的各套2值化的后缀各不相同。
每套2值化中至少有一个后缀采用截断的二进制码。各套2值化采用的截断的二进制码的截断值各不相同。
实施例13
综合调整方式5(分量置换)
复制参数的例包括下列当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len,等;
非当前复制参数的例包括:
1)当前编解码块的扫描方式;
2)当前编解码块的深度;
3)当前像素样值段在当前编解码块中的顺序号;
4)当前编解码块中还没有编码或解码的像素的数目;
分量置换的操作至少包括:
如果一个复制参数分量和/或非当前复制参数取值于预定的数值,则
{
对另一个复制参数分量进行分量置换;
}
所述分量置换可以是静态的也可以是动态的,如,根据所述一个复制参数分量和/或非当前复制参数取值的不同而不同。
所述分量置换的例:
1)如果一个复制参数分量和/或非当前复制参数取值于预定的数值,则把另一个复制参数分量的出现频度较高的取值子范围置换成出现频度较低的取值子范围;
2)如果当前像素样值段的一个复制参数分量取值于预定的子区间,则对当前像素样值段的另一个复制参数分量进行预定的置换操作,如改变在其一个取值子范围内时的正负号;
3)根据当前编解码块中还没有编码或解码的像素的数目,对当前像素样值段的复制长度进行动态的分量置换;
4)如果当前像素样值段在当前编解码块中的顺序号表明该像素样值段是当前编解码块中的第一个像素样值段,则将复制长度的最大值与最小值进行置换。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1:在对当前编码块进行编码时,对复制编码方式的复制参数的原始值进行综合调整得到复制参数的调整值;
S2:将调整值经过编码后写入视频码流。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
在本发明实施例的图像编码和解码过程中,采用对使用复制编码方式的编码块的复制参数的原始值进行调整操作,得到所述复制参数的调整值;进而将所述调整值进行编码得到的编码比特写入码流,从而解决了相关技术中写入码流的复制参数的数值中存在冗余成分的问 题,达到了提高编码效率的效果。

Claims (45)

  1. 一种图像编码方法,包括:
    在对当前编码块进行编码时,对复制编码方式的复制参数的原始值进行综合调整得到复制参数的调整值;
    将所述调整值经过编码后写入视频码流;
    其中,所述综合调整的操作包括以下至少之一:
    分量缩小:根据一个或多个复制参数的分量的数值,缩小所述复制参数之外的一个或多个复制参数的分量的取值范围;
    分量置换:对由复制参数的分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;
    分量去相关:对一个复制参数的分量或多个复制参数的分量进行独立或相交的去相关性运算;
    分量多套2值化:根据一个或多个复制参数的分量的数值,选择所述多套2值化中的一套对所述复制参数之外的一个或多个复制参数分量进行2值化操作。
  2. 根据权利要求1所述的方法,其中,
    所述编码块是图像的一个编码区域,其中,所述编码区域包括以下至少之一:最大编码单元LCU、编码树单元CTU、编码单元CU、CU的子区域、预测单元PU、变换单元TU、像素串、像素组、像素微块、像素条。
  3. 根据权利要求1所述的方法,其中,
    所述复制参数分量至少包括:分量1,分量2,分量3,分量4;其中,所述分量1,所述分量2,所述分量3,所述分量4的取值范围分别是范围1,范围2,范围3,范围4;所述范围1的子范围至少包括子范围11;所述范围2的子范围至少包括子范围21;所述范围3的子范围至少包括子范围31;所述范围4的子范围至少包括子范围41;
    所述分量缩小的操作至少包括:由原因分量X和结果分量Y组成的基本操作(X,Y),其中,在原因分量X的取值在子范围X1中时,结果分量Y的取值范围是子范围Y1;X,Y分别是1,2,3,4之一,且X与Y互不相等;
    其中,根据多个所述基本操作原因分量的任意合理的逻辑关系将多个所述基本操作组合构成一个组合操作;
    根据多个所述基本操作结果分量的任意地合理逻辑关系将多个所述基本操作合并构成一个合并操作;
    多个所述组合操作和所述合并操作组合或合并。
  4. 根据权利要求1所述的方法,其中,
    所述复制参数分量至少包括:分量1,分量2,分量3,分量4;其中,所述分量1,所述分量2,所述分量3,所述分量4的取值范围分别是范围1,范围2,范围3,范围4;所述范围1的子范围至少包括子范围11;所述范围2的子范围至少包括子范围21;所述范围3的子范围至少包括子范围31;所述范围4的子范围至少包括子范围41;
    所述复制参数之外的其他编码参数至少包括:非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D;其中,所述非当前复制参数A,所述非当前复制参数B,所述非当前复制参数C,所述非当前复制参数D的取值范围分别是范围A,范围B,范围C,范围D;
    所述范围A的子范围至少包括子范围A1;所述范围B的子范围至少包括子范围B1;所述范围C的子范围至少包括子范围C1;所述范围D的子范围至少包括子范围D1;
    所述分量缩小的操作至少包括:由为非当前复制参数X的原因参数X和结果分量Y组成的基本操作(X,Y);
    其中,在非当前复制参数X的取值在子范围X1中时,结果分量Y的取值范围为子范围Y1;该X是A,B,C,D其中之一;该Y是1,2,3,4其中之一;
    其中,根据多个所述基本操作原因分量的任意合理的逻辑关系将多个所述基本操作组合构成一个组合操作;
    根据多个所述基本操作结果分量的任意地合理逻辑关系将多个所述基本操作合并构成一个合并操作;
    多个所述组合操作和所述合并操作组合或合并。
  5. 根据权利要求1所述的方法,其中,
    所述复制参数分量至少包括以下当前像素样值段的复制参数分量:分量1,分量2,分量3,分量4;
    其中,所述分量1,所述分量2,所述分量3,所述分量4的取值范围分别是范围1,范围2,范围3,范围4;所述范围1的子范围至少包括子范围11;所述范围2的子范围至少包括子范围21;所述范围3的子范围至少包括子范围31;所述范围4的子范围至少包括子范围41;
    非当前复制参数至少包括:非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D;
    其中,所述非当前复制参数A为当前像素样值段之前一个像素样值段的复制参数分量的组合A;所述非当前复制参数B为当前像素样值段之前一个像素样值段的复制参数分量的组合B;所述非当前复制参数C为当前像素样值段之前一个像素样值段的复制参 数分量的组合C;所述非当前复制参数D为当前像素样值段之前一个像素样值段的复制参数分量的组合D;
    所述非当前复制参数A,所述非当前复制参数B,所述非当前复制参数C,所述非当前复制参数D的取值范围分别是范围A,范围B,范围C,范围D;所述范围A的子范围至少包括子范围A1;所述范围B的子范围至少包括子范围B1;所述范围C的子范围至少包括子范围C1;所述范围D的子范围至少包括子范围D1;
    所述分量缩小的操作至少包括:由为非当前复制参数X的原因参数和结果分量Y组成的基本操作(X,Y);
    其中,在非当前复制参数X的取值在子范围X1中时,所述结果分量Y的取值范围为子范围Y1;该X是A,B,C,D其中之一;该Y是1,2,3,4其中之一;
    其中,根据多个所述基本操作原因分量的任意合理的逻辑关系将多个所述基本操作组合构成一个组合操作;
    根据多个所述基本操作结果分量的任意地合理逻辑关系将多个所述基本操作合并构成一个合并操作;
    多个所述组合操作和所述合并操作组合或合并。
  6. 根据权利要求1所述的方法,其中,
    所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;
    非当前复制参数至少包括:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,所述非当前复制参数取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;
    所述分量缩小的操作至少包括:如果前一个像素样值段的复制参数分量BV0x和/或BV0y和/或Len0的取值表明当前像素样值段的复制参数分量BVx和/或BVy和/或Len不可取值于同一个子范围,则当前像素样值段的复制参数分量BVx和/或BVy和/或Len的取值范围为所述当前像素样值段的复制参数分量取值范围减去所述子范围。
  7. 根据权利要求1所述的方法,其中,
    所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量的取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;
    非当前复制参数至少包括下列之一:
    当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,该组合的取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;
    当前像素样值段的首像素的坐标:水平坐标X1和垂直坐标Y1;
    位于当前像素样值段的首像素的正上方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1和垂直坐标Y1+Ydelta,其中,Ydelta是所述坐标垂直方向分量与所述首像素的坐标的垂直分量Y1之间的偏移量;位于当前像素样值段的首像素的正左方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1+Xdelta和垂直坐标Y1,其中,Xdelta是所述坐标水平方向分量与所述首像素的坐标的水平分量X1之间的偏移量;
    所述分量缩小的操作包括以下至少之一:
    在BV0x=0且1≤BV0y≤Ymax,Ymax是BV0y的取值范围的最大值时,当前像素样值段的复制参数的取值范围为所述组合的取值范围减去第一不可取范围,其中,所述不可取范围为BVx=0、且BVy等于BV0y或BV0y的整数倍、且BVy≤Ydelta;
    在BV0y=0且1≤BV0x≤Xmax,其中,Xmax是BV0x的取值范围的最大值时,当前像素样值段的复制参数的取值范围为所述组合的取值范围减去第二不可取范围,其中,所述第二不可取范围为BVy=0、且BVx等于BV0x或BV0x的整数倍、且BVx≤Xdelta。
  8. 根据权利要求7所述的方法,其中,
    在BV0y等于1时,所述分量缩小的操作包括以下至少之一:
    在BV0x=0且BV0y=1时,当前像素样值段的复制参数的取值范围所述组合的取值范围减去第三不可取范围,其中,所述第三不可取范围为BVx=0且1≤BVy≤Ydelta;
    在BV0y=0且BV0x=1时,当前像素样值段的复制参数的取值范围是所述组合的取值范围减去第四不可取范围,其中第四不可取范围为:BVy=0且1≤BVx≤Xdelta;
    在BV0x=0且BV0y=1,且当前像素样值段的复制参数分量BVx=0时,当前像素样值段的复制参数分量BVy的取值范围为:1≤(BVy–Ydelta)≤(Ymax–Ydelta),其中,Ymax是BVy的所述组合的取值范围的最大值;BVy–Ydelta用于被编码后写入码流;
    在BV0y=0且BV0x=1,且当前像素样值段的复制参数分量BVy=0时,当前像素样值段的复制参数分量BVx的取值范围为:1≤(BVx–Xdelta)≤(Xmax–Xdelta),其中,Ymax是BVx的所述组合的取值范围的最大值;BVx–Xdelta用于被编码后写入码流。
  9. 根据权利要求1所述的方法,其中,
    一个复制参数分量对应于多套2值化方案;其中,在码流中视频参数集VPS和/或序列参数集SPS和/或图像参数集PPS和/或条带头和/或CTU头和/或CU头和/或编解码块头中,存在一个直接或间接的专有2值化模式;
    所述专有2值化模式指定所述编码块或解码块采用多套2值化方案中的一套对所述复制参数分量进行2值化;
    所述间接的专有2值化模式包括以下至少之:一由所述编码块的深度导出的2值化模式;由所述编码块量化因子导出的2值化模式;由所述编码块是否进行量化导出的2值化模式;由所述编码块是否进行变换导出的2值化模式。
  10. 根据权利要求1所述的方法,其中,
    所述分量置换的操作至少包括:如果一个复制参数分量和/或非当前复制参数取值等于预定的数值,则对另一个复制参数分量进行分量置换。
  11. 一种图像解码方法,包括:
    解析码流,获得解码块的解码参数,其中,所述解码参数包括以下参数至少之一:所述解码块的复制参数,所述复制参数的调整指示信息;
    根据所述复制参数的调整指示信息,对所述复制参数进行调整操作,得到复制参数调整恢复值;
    使用所述复制参数调整恢复值对所述解码块进行解码;
    其中,对所述复制参数进行调整操作包括以下至少之一:
    分量缩小:根据已获得的一个或多个复制参数的分量的数值,缩小所述复制参数的分量的取值范围,在所述缩小的取值范围内,解析所述码流中所述复制参数相关字段,确定所述复制参数调整恢复值;
    分量置换:对由复制参数分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;
    分量相关:根据已获得的一个或多个复制参数的分量的数值,解析所述码流中所述复制参数相关字段,确定所述复制参数调整恢复值;
    分量多套2值化:根据已获得的一个或多个复制参数的分量的数值,解析所述码流中所述复制参数相关字段,选择所述多套2值化中的一套将所述字段映射为所述复制参数的分量的数值。
  12. 根据权利要求11所述的方法,其中,
    所述解码块是图像的一个解码区域,其中,所述解码区域包括以下至少之一:最大 解码单元LCU、解码树单元CTU、解码单元CU、CU的子区域、预测单元PU、变换单元TU、像素串、像素组、像素微块、像素条。
  13. 根据权利要求11所述的方法,其中,
    所述复制参数分量至少包括:分量1,分量2,分量3,分量4;其中,所述分量1,所述分量2,所述分量3,所述分量4的取值范围分别是范围1,范围2,范围3,范围4;所述范围1的子范围至少包括子范围11;所述范围2的子范围至少包括子范围21;所述范围3的子范围至少包括子范围31;所述范围4的子范围至少包括子范围41;
    所述分量缩小的操作至少包括:由原因分量X和结果分量Y组成的基本操作(X,Y),其中,在原因分量X的取值在子范围X1中时,结果分量Y的取值范围是子范围Y1;X,Y分别是1,2,3,4之一,且X与Y互不相等;
    其中,根据多个所述基本操作原因分量的任意合理的逻辑关系将多个所述基本操作组合构成一个组合操作;
    根据多个所述基本操作结果分量的任意地合理逻辑关系将多个所述基本操作合并构成一个合并操作;
    多个所述组合操作和所述合并操作组合或合并。
  14. 根据权利要求11所述的方法,其中,
    所述复制参数分量至少包括:分量1,分量2,分量3,分量4;其中,所述分量1,所述分量2,所述分量3,所述分量4的取值范围分别是范围1,范围2,范围3,范围4;所述范围1的子范围至少包括子范围11;所述范围2的子范围至少包括子范围21;所述范围3的子范围至少包括子范围31;所述范围4的子范围至少包括子范围41;
    所述复制参数之外的其他解码参数至少包括:非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D;其中,所述非当前复制参数A,所述非当前复制参数B,所述非当前复制参数C,所述非当前复制参数D的取值范围分别是范围A,范围B,范围C,范围D;
    所述范围A的子范围至少包括子范围A1;所述范围B的子范围至少包括子范围B1;所述范围C的子范围至少包括子范围C1;所述范围D的子范围至少包括子范围D1;
    所述分量缩小的操作至少包括:由为非当前复制参数X的原因参数X和结果分量Y组成的基本操作(X,Y);
    其中,在非当前复制参数X的取值在子范围X1中时,结果分量Y的取值范围为子范围Y1;该X是A,B,C,D其中之一;该Y是1,2,3,4其中之一;
    其中,根据多个所述基本操作原因分量的任意合理的逻辑关系将多个所述基本操作组合构成一个组合操作;
    根据多个所述基本操作结果分量的任意地合理逻辑关系将多个所述基本操作合并构成一个合并操作;
    多个所述组合操作和所述合并操作组合或合并。
  15. 根据权利要求11所述的方法,其中,
    所述复制参数分量至少包括以下当前像素样值段的复制参数分量:分量1,分量2,分量3,分量4;
    其中,所述分量1,所述分量2,所述分量3,所述分量4的取值范围分别是范围1,范围2,范围3,范围4;所述范围1的子范围至少包括子范围11;所述范围2的子范围至少包括子范围21;所述范围3的子范围至少包括子范围31;所述范围4的子范围至少包括子范围41;
    非当前复制参数至少包括:非当前复制参数A,非当前复制参数B,非当前复制参数C,非当前复制参数D;
    其中,所述非当前复制参数A为当前像素样值段之前一个像素样值段的复制参数分量的组合A;所述非当前复制参数B为当前像素样值段之前一个像素样值段的复制参数分量的组合B;所述非当前复制参数C为当前像素样值段之前一个像素样值段的复制参数分量的组合C;所述非当前复制参数D为当前像素样值段之前一个像素样值段的复制参数分量的组合D;
    所述非当前复制参数A,所述非当前复制参数B,所述非当前复制参数C,所述非当前复制参数D的取值范围分别是范围A,范围B,范围C,范围D;所述范围A的子范围至少包括子范围A1;所述范围B的子范围至少包括子范围B1;所述范围C的子范围至少包括子范围C1;所述范围D的子范围至少包括子范围D1;
    所述分量缩小的操作至少包括:由为非当前复制参数X的原因参数和结果分量Y组成的基本操作(X,Y);
    其中,在非当前复制参数X的取值在子范围X1中时,所述结果分量Y的取值范围为子范围Y1;该X是A,B,C,D其中之一;该Y是1,2,3,4其中之一;
    其中,根据多个所述基本操作原因分量的任意合理的逻辑关系将多个所述基本操作组合构成一个组合操作;
    根据多个所述基本操作结果分量的任意地合理逻辑关系将多个所述基本操作合并构成一个合并操作;
    多个所述组合操作和所述合并操作组合或合并。
  16. 根据权利要求11所述的方法,其中,
    所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分 量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;
    非当前复制参数至少包括:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,所述非当前复制参数取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;
    所述分量缩小的操作至少包括:如果前一个像素样值段的复制参数分量BV0x和/或BV0y和/或Len0的取值表明当前像素样值段的复制参数分量BVx和/或BVy和/或Len不可取值于同一个子范围,则当前像素样值段的复制参数分量BVx和/或BVy和/或Len的取值范围为所述当前像素样值段的复制参数分量取值范围减去所述子范围。
  17. 根据权利要求11所述的方法,其中,
    所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量的取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;
    非当前复制参数至少包括下列之一:
    当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,该组合的取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;
    当前像素样值段的首像素的坐标:水平坐标X1和垂直坐标Y1;
    位于当前像素样值段的首像素的正上方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1和垂直坐标Y1+Ydelta,其中,Ydelta是所述坐标垂直方向分量与所述首像素的坐标的垂直分量Y1之间的偏移量;位于当前像素样值段的首像素的正左方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1+Xdelta和垂直坐标Y1,其中,Xdelta是所述坐标水平方向分量与所述首像素的坐标的水平分量X1之间的偏移量;
    所述分量缩小的操作包括以下至少之一:
    在BV0x=0且1≤BV0y≤Ymax,Ymax是BV0y的取值范围的最大值时,当前像素样值段的复制参数的取值范围为所述组合的取值范围减去第一不可取范围,其中,所述不可取范围为BVx=0、且BVy等于BV0y或BV0y的整数倍、且BVy≤Ydelta;
    在BV0y=0且1≤BV0x≤Xmax,其中,Xmax是BV0x的取值范围的最大值时,当 前像素样值段的复制参数的取值范围为所述组合的取值范围减去第二不可取范围,其中,所述第二不可取范围为BVy=0、且BVx等于BV0x或BV0x的整数倍、且BVx≤Xdelta。
  18. 根据权利要求17所述的方法,其中,
    在BV0y等于1时,所述分量缩小的操作包括以下至少之一:
    在BV0x=0且BV0y=1时,当前像素样值段的复制参数的取值范围所述组合的取值范围减去第三不可取范围,其中,所述第三不可取范围为BVx=0且1≤BVy≤Ydelta;
    在BV0y=0且BV0x=1时,当前像素样值段的复制参数的取值范围是所述组合的取值范围减去第四不可取范围,其中第四不可取范围为:BVy=0且1≤BVx≤Xdelta;
    在BV0x=0且BV0y=1,且当前像素样值段的复制参数分量BVx=0时,当前像素样值段的复制参数分量BVy的取值范围为:1≤(BVy–Ydelta)≤(Ymax–Ydelta),其中,Ymax是BVy的所述组合的取值范围的最大值;BVy–Ydelta用于被解码后写入码流;
    在BV0y=0且BV0x=1,且当前像素样值段的复制参数分量BVy=0时,当前像素样值段的复制参数分量BVx的取值范围为:1≤(BVx–Xdelta)≤(Xmax–Xdelta),其中,Ymax是BVx的所述组合的取值范围的最大值;BVx–Xdelta用于被解码后写入码流。
  19. 根据权利要求11所述的方法,其中,
    一个复制参数分量对应于多套2值化方案;其中,在码流中视频参数集VPS和/或序列参数集SPS和/或图像参数集PPS和/或条带头和/或CTU头和/或CU头和/或编解码块头中,存在一个直接或间接的专有2值化模式;
    所述专有2值化模式指定所述解码块或解码块采用多套2值化方案中的一套对所述复制参数分量进行2值化;
    所述间接的专有2值化模式包括以下至少之:一由所述解码块的深度导出的2值化模式;由所述解码块量化因子导出的2值化模式;由所述解码块是否进行量化导出的2值化模式;由所述解码块是否进行变换导出的2值化模式。
  20. 根据权利要求11所述的方法,其中,
    所述分量置换的操作至少包括:如果一个复制参数分量和/或非当前复制参数取值等于预定的数值,则对另一个复制参数分量进行分量置换。
  21. 一种图像编码方法,包括:
    对使用复制编码方式的编码块的复制参数的原始值进行调整操作,得到所述复制参数的调整值;
    将所述调整值进行编码得到的编码比特写入码流;
    其中,所述调整操作包括以下至少之一:
    分量缩小:根据一个或多个复制参数的分量的数值,缩小所述复制参数之外的一个或多个复制参数的分量的取值范围;
    分量置换:对由复制参数的分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;
    分量去相关:对一个复制参数的分量或多个复制参数的分量进行独立或相交的去相关性运算;
    分量多套2值化:根据一个或多个复制参数的分量的数值,选择所述多套2值化中的一套对所述复制参数之外的一个或多个复制参数分量进行2值化操作。
  22. 根据权利要求21所述的方法,其中,所述分量缩小操作包括:
    根据一个或多个所述复制参数分量的数值,确定在所述复制参数分量的缺省取值范围内没有包含所述数值的待缩小取值范围;
    将缺省取值范围内去掉所述待缩小取值范围后得到的取值范围作为一个或多个所述复制参数分量外的复制参数分量的取值范围。
  23. 根据权利要求21所述的方法,其中,所述分量置换操作的操作包括以下至少之一:
    将经所述分量缩小操作后得到的复制参数分量的取值范围映射成为连续取值的取值范围;
    改变复制参数分量的正负号;
    将复制参数分量的取值范围映射为不同的取值范围。
  24. 根据权利要求21所述的方法,其中,所述分量去相关操作包括:
    对所述复制参数分量进行差分运算处理。
  25. 根据权利要求21所述的方法,其中,所述分量多套2值化操作包括:
    根据一个或多个复制参数的分量的数值为所述复制参数的分量在多个候选2值符号串中选择对应的2值符号串。
  26. 根据权利要求21所述的方法,其中,包括:
    所述编码块是图像的一个编码区域,其中,所述编码区域包括以下至少之一:最大编码单元LCU、编码树单元CTU、编码单元CU、CU的子区域、预测单元PU、变换单元TU、像素串、像素组、像素微块、像素条。
  27. 根据权利要求11所述的方法,其中,
    所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;
    非当前复制参数至少包括:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,所述非当前复制参数取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内。
  28. 根据权利要求27所述的方法,其中,
    所述分量缩小的操作至少包括:如果前一个像素样值段的复制参数分量BV0x和/或BV0y和/或Len0的取值表明当前像素样值段的复制参数分量BVx和/或BVy和/或Len不可取值于同一个子范围,则当前像素样值段的复制参数分量BVx和/或BVy和/或Len的取值范围为所述当前像素样值段的复制参数分量取值范围减去所述子范围。
  29. 根据权利要求21所述的方法,其中,
    所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量的取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;
    非当前复制参数至少包括下列之一:
    当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,该组合的取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;
    当前像素样值段的首像素的坐标:水平坐标X1和垂直坐标Y1;
    位于当前像素样值段的首像素的正上方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1和垂直坐标Y1+Ydelta,其中,Ydelta是所述坐标垂直方向分量与所述首像素的坐标的垂直分量Y1之间的偏移量;位于当前像素样值段的首像素的正左方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1+Xdelta和垂直坐标Y1,其中,Xdelta是所述坐标水平方向分量与所述首像素的坐标的水平分量X1之间的偏移量。
  30. 根据权利要求29所述的方法,其中,
    所述分量缩小的操作包括以下至少之一:
    在BV0x=0且1≤BV0y≤Ymax,Ymax是BV0y的取值范围的最大值时,当前像素 样值段的复制参数的取值范围为所述组合的取值范围减去第一不可取范围,其中,所述不可取范围为BVx=0、且BVy等于BV0y或BV0y的整数倍、且BVy≤Ydelta;
    在BV0y=0且1≤BV0x≤Xmax,其中,Xmax是BV0x的取值范围的最大值时,当前像素样值段的复制参数的取值范围为所述组合的取值范围减去第二不可取范围,其中,所述第二不可取范围为BVy=0、且BVx等于BV0x或BV0x的整数倍、且BVx≤Xdelta。
  31. 根据权利要求29所述的方法,其中,
    在BV0y等于1时,所述分量缩小的操作包括以下至少之一:
    在BV0x=0且BV0y=1时,当前像素样值段的复制参数的取值范围所述组合的取值范围减去第三不可取范围,其中,所述第三不可取范围为BVx=0且1≤BVy≤Ydelta;
    在BV0y=0且BV0x=1时,当前像素样值段的复制参数的取值范围是所述组合的取值范围减去第四不可取范围,其中第四不可取范围为:BVy=0且1≤BVx≤Xdelta;
    在BV0x=0且BV0y=1,且当前像素样值段的复制参数分量BVx=0时,当前像素样值段的复制参数分量BVy的取值范围为:1≤(BVy–Ydelta)≤(Ymax–Ydelta),其中,Ymax是BVy的所述组合的取值范围的最大值;BVy–Ydelta用于被编码后写入码流;
    在BV0y=0且BV0x=1,且当前像素样值段的复制参数分量BVy=0时,当前像素样值段的复制参数分量BVx的取值范围为:1≤(BVx–Xdelta)≤(Xmax–Xdelta),其中,Ymax是BVx的所述组合的取值范围的最大值;BVx–Xdelta用于被编码后写入码流。
  32. 一种图像解码方法,包括:
    解析码流,获得解码块的解码参数,其中,所述解码参数包括以下参数至少之一:所述解码块的复制参数,所述复制参数的调整指示信息;
    根据所述复制参数的调整指示信息,对所述复制参数进行调整操作,得到复制参数调整恢复值;
    使用所述复制参数调整恢复值对所述解码块进行解码。
  33. 根据权利要求32所述方法,其中,对所述复制参数进行调整操作得到复制参数调整恢复值的方式包括以下至少之一:
    分量缩小:根据已获得的一个或多个复制参数的分量的数值,缩小所述复制参数的分量的取值范围,在所述缩小的取值范围内,解析所述码流中所述复制参数相关字段,确定所述复制参数调整恢复值;
    分量置换:对由复制参数分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;
    分量相关:根据已获得的一个或多个复制参数的分量的数值,解析所述码流中所述复制参数相关字段,确定所述复制参数调整恢复值;
    分量多套2值化:根据已获得的一个或多个复制参数的分量的数值,解析所述码流中所述复制参数相关字段,选择所述多套2值化中的一套将所述字段映射为所述复制参数的分量的数值。
  34. 根据权利要求33所述的方法,其中,所述分量缩小操作包括:
    根据一个或多个所述复制参数分量的数值,确定在所述复制参数分量的缺省取值范围内没有包含所述数值的待缩小取值范围;
    将缺省取值范围内去掉所述待缩小取值范围后得到的取值范围作为一个或多个所述复制参数分量外的复制参数分量的取值范围。
  35. 根据权利要求33所述的方法,其中,所述分量置换操作的操作包括以下至少之一:
    将经所述分量缩小操作后得到的复制参数分量的取值范围映射成为连续取值的取值范围;
    改变复制参数分量的正负号;
    将复制参数分量的取值范围映射为不同的取值范围。
  36. 根据权利要求33所述的方法,其中,所述分量相关操作包括:
    解析所述码流,获得所述复制参数的一个或多个分量对应字段的取值;
    将所述复制参数调整恢复值的一个或多个分量的数值设置为所述已获得的一个或多个复制参数的对应分量与所述复制参数的一个或多个分量对应字段的取值的差值或和值。
  37. 根据权利要求33所述的方法,其中,所述分量多套2值化操作包括:
    根据所述已获得的一个或多个复制参数的分量的数值,将所述码流中所述复制参数的一个或多个分量对应2值符号串字段映射为数值。
  38. 根据权利要求32所述的方法,其中,包括:
    所述解码块是图像的一个解码区域,其中,所述解码区域包括以下至少之一:最大解码单元LCU、解码树单元CTU、解码单元CU、CU的子区域、预测单元PU、变换单元TU、像素串、像素组、像素微块、像素条。
  39. 根据权利要求32所述的方法,其中,
    所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参 数分量取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;
    非当前复制参数至少包括:当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,所述非当前复制参数取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内。
  40. 根据权利要求39所述的方法,其中,
    所述分量缩小的操作至少包括:如果前一个像素样值段的复制参数分量BV0x和/或BV0y和/或Len0的取值表明当前像素样值段的复制参数分量BVx和/或BVy和/或Len不可取值于同一个子范围,则当前像素样值段的复制参数分量BVx和/或BVy和/或Len的取值范围为所述当前像素样值段的复制参数分量取值范围减去所述子范围。
  41. 根据权利要求32所述的方法,其中,
    所述复制参数分量至少包括以下当前像素样值段的复制参数分量:位移矢量水平分量BVx、位移矢量垂直分量BVy、复制长度Len;其中,所述当前像素样值段的复制参数分量的取值范围满足以下条件:使当前像素样值段的参考像素样值段位于预定的参考区域内;
    非当前复制参数至少包括下列之一:
    当前像素样值段之前一个像素样值段的复制参数分量的一个组合:位移矢量水平分量BV0x、位移矢量垂直分量BV0y、复制长度Len0;其中,该组合的取值范围满足以下条件:使前一个像素样值段的参考像素样值段位于预定的参考区域内;
    当前像素样值段的首像素的坐标:水平坐标X1和垂直坐标Y1;
    位于当前像素样值段的首像素的正上方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1和垂直坐标Y1+Ydelta,其中,Ydelta是所述坐标垂直方向分量与所述首像素的坐标的垂直分量Y1之间的偏移量;位于当前像素样值段的首像素的正左方的第一个既不属于前一个像素样值段也不属于前一个像素样值段的参考像素样值段的像素的坐标:水平坐标X1+Xdelta和垂直坐标Y1,其中,Xdelta是所述坐标水平方向分量与所述首像素的坐标的水平分量X1之间的偏移量。
  42. 根据权利要求41所述的方法,其中,
    所述分量缩小的操作包括以下至少之一:
    在BV0x=0且1≤BV0y≤Ymax,Ymax是BV0y的取值范围的最大值时,当前像素样值段的复制参数的取值范围为所述组合的取值范围减去第一不可取范围,其中,所述不可取范围为BVx=0、且BVy等于BV0y或BV0y的整数倍、且BVy≤Ydelta;
    在BV0y=0且1≤BV0x≤Xmax,其中,Xmax是BV0x的取值范围的最大值时,当前像素样值段的复制参数的取值范围为所述组合的取值范围减去第二不可取范围,其中,所述第二不可取范围为BVy=0、且BVx等于BV0x或BV0x的整数倍、且BVx≤Xdelta。
  43. 根据权利要求41所述的方法,其中,
    在BV0y等于1时,所述分量缩小的操作包括以下至少之一:
    在BV0x=0且BV0y=1时,当前像素样值段的复制参数的取值范围所述组合的取值范围减去第三不可取范围,其中,所述第三不可取范围为BVx=0且1≤BVy≤Ydelta;
    在BV0y=0且BV0x=1时,当前像素样值段的复制参数的取值范围是所述组合的取值范围减去第四不可取范围,其中第四不可取范围为:BVy=0且1≤BVx≤Xdelta;
    在BV0x=0且BV0y=1,且当前像素样值段的复制参数分量BVx=0时,当前像素样值段的复制参数分量BVy的取值范围为:1≤(BVy–Ydelta)≤(Ymax–Ydelta),其中,Ymax是BVy的所述组合的取值范围的最大值;BVy–Ydelta用于被解码后写入码流;
    在BV0y=0且BV0x=1,且当前像素样值段的复制参数分量BVy=0时,当前像素样值段的复制参数分量BVx的取值范围为:1≤(BVx–Xdelta)≤(Xmax–Xdelta),其中,Ymax是BVx的所述组合的取值范围的最大值;BVx–Xdelta用于被解码后写入码流。
  44. 一种图像编码装置,包括:
    第一调整模块,设置为对使用复制编码方式的编码块的复制参数的原始值进行调整操作,得到所述复制参数的调整值;
    编码处理模块,设置为将所述调整值进行编码得到的编码比特写入码流;
    其中,所述调整操作包括以下至少之一:
    分量缩小:根据一个或多个复制参数的分量的数值,缩小所述复制参数之外的一个或多个复制参数的分量的取值范围;
    分量置换:对由复制参数的分量的数值构成的一维,或二维,或三维,或四维空间中的部分区域进行置换;
    分量去相关:对一个复制参数的分量或多个复制参数的分量进行独立或相交的去相关性运算;
    分量多套2值化:根据一个或多个复制参数的分量的数值,选择所述多套2值化中的一套对所述复制参数之外的一个或多个复制参数分量进行2值化操作。
  45. 一种图像解码装置,包括:
    解析模块,设置为解析码流获得解码块的解码参数,其中,所述解码参数包括以下参数至少之一:所述解码块的复制参数,所述复制参数的调整指示信息;
    第二调整模块,设置为根据所述复制参数的调整指示信息,对所述复制参数进行调整操作,得到复制参数调整恢复值;
    解码处理模块,设置为用所述复制参数调整恢复值对所述解码块进行解码。
PCT/CN2016/072790 2015-01-29 2016-01-29 图像编码方法及装置、图像解码方法及装置 WO2016119746A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP16742808.5A EP3253061A4 (en) 2015-01-29 2016-01-29 Image coding method and apparatus, and image decoding method and apparatus

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201510045993 2015-01-29
CN201510045993.9 2015-01-29
CN201610058685.4 2016-01-28
CN201610058685.4A CN105847842B (zh) 2015-01-29 2016-01-28 图像编码方法及装置、图像解码方法及装置

Publications (1)

Publication Number Publication Date
WO2016119746A1 true WO2016119746A1 (zh) 2016-08-04

Family

ID=56542467

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/072790 WO2016119746A1 (zh) 2015-01-29 2016-01-29 图像编码方法及装置、图像解码方法及装置

Country Status (1)

Country Link
WO (1) WO2016119746A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770553A (zh) * 2016-08-21 2018-03-06 上海天荷电子信息有限公司 采用多类匹配参数及参数存储地址的数据压缩方法和装置
CN113795870A (zh) * 2019-10-10 2021-12-14 腾讯美国有限责任公司 用于点云属性编解码的信道间预测和变换的技术和装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2424240A2 (en) * 2009-04-22 2012-02-29 LG Electronics Inc. Reference picture list changing method of multi-view video
CN103370935A (zh) * 2011-02-10 2013-10-23 索尼公司 图像处理装置和图像处理方法
CN103561270A (zh) * 2013-11-08 2014-02-05 武汉大学 一种用于hevc的编码控制方法及装置
WO2014052249A1 (en) * 2012-09-30 2014-04-03 Microsoft Corporation Conditional signalling of reference picture list modification information
CN103959776A (zh) * 2011-06-28 2014-07-30 三星电子株式会社 根据像素分类使用偏移调整的视频编码方法及其设备、视频解码方法及其设备
CN104244007A (zh) * 2013-06-13 2014-12-24 上海天荷电子信息有限公司 基于任意形状匹配的图像压缩方法和装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2424240A2 (en) * 2009-04-22 2012-02-29 LG Electronics Inc. Reference picture list changing method of multi-view video
CN103370935A (zh) * 2011-02-10 2013-10-23 索尼公司 图像处理装置和图像处理方法
CN103959776A (zh) * 2011-06-28 2014-07-30 三星电子株式会社 根据像素分类使用偏移调整的视频编码方法及其设备、视频解码方法及其设备
WO2014052249A1 (en) * 2012-09-30 2014-04-03 Microsoft Corporation Conditional signalling of reference picture list modification information
CN104244007A (zh) * 2013-06-13 2014-12-24 上海天荷电子信息有限公司 基于任意形状匹配的图像压缩方法和装置
CN103561270A (zh) * 2013-11-08 2014-02-05 武汉大学 一种用于hevc的编码控制方法及装置

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
See also references of EP3253061A4 *
ZHANG, PEIJUN ET AL.: "Screen Content Coding By Combined Full-Chroma LZMAAnd Subsampled-Chroma HEVC", JOURNAL OF ELECTRONICS & INFORMATION TECHNOLOGY, vol. 35, no. 1, 31 January 2013 (2013-01-31), XP055264482 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770553A (zh) * 2016-08-21 2018-03-06 上海天荷电子信息有限公司 采用多类匹配参数及参数存储地址的数据压缩方法和装置
CN107770553B (zh) * 2016-08-21 2023-06-27 上海天荷电子信息有限公司 采用多类匹配参数及参数存储地址的数据压缩方法和装置
CN113795870A (zh) * 2019-10-10 2021-12-14 腾讯美国有限责任公司 用于点云属性编解码的信道间预测和变换的技术和装置
CN113795870B (zh) * 2019-10-10 2023-12-22 腾讯美国有限责任公司 一种对点云属性编解码的方法、装置及存储介质

Similar Documents

Publication Publication Date Title
CN105704491B (zh) 图像编码方法、解码方法、编码装置和解码装置
CN111512628B (zh) 视频信号处理方法和设备
CN105491376B (zh) 图像编码、解码方法及装置
CN105847842B (zh) 图像编码方法及装置、图像解码方法及装置
CN112383780B (zh) 点匹配参考集和索引来回扫描串匹配的编解码方法和装置
KR20220165694A (ko) 타일 구조의 구성 방법 및 이의 장치
KR101946598B1 (ko) 이미지 코딩, 디코딩 방법 및 장치
CN113785566A (zh) 基于帧内预测处理视频信号的方法和设备
CN110087090B (zh) 采用混合串匹配和帧内预测的数据编码、解码方法
CN104754362B (zh) 使用精细划分块匹配的图像压缩方法
CN110622511A (zh) 图像编码/解码方法及其设备
US10575022B2 (en) Image encoding and decoding method, image processing device and computer storage medium
EP3306931A1 (en) Image encoding and decoding method, image processing device, and computer storage medium
CN106254878B (zh) 一种图像编码及解码方法、图像处理设备
WO2016202189A1 (zh) 图像编码及解码方法、图像处理设备、计算机存储介质
JP2018509069A (ja) 画像符号化方法及び装置並びに画像復号方法及び装置
WO2016119746A1 (zh) 图像编码方法及装置、图像解码方法及装置
CN106303535B (zh) 参考像素取自不同程度重构像素的图像压缩方法和装置
CN106303534B (zh) 多种索引串与像素串融合复制方式的图像压缩方法和装置
WO2016197893A1 (zh) 图像编码及解码方法、图像处理设备、计算机存储介质
WO2016124154A1 (zh) 图像编码方法和装置及图像解码方法和装置
WO2016197898A1 (zh) 图像编码及解码方法、图像处理设备、计算机存储介质
KR20240021173A (ko) 비디오 코딩에서의 기하학적 파티셔닝 모드에 대한 모션 벡터 후보 구축
KR20230012218A (ko) 신경망 기반의 인-루프 필터를 이용한 영상 부호화/복호화 방법, 장치 및 비트스트림을 저장한 기록 매체
CN117461313A (zh) 视频译码中用于几何划分模式的运动矢量候选构建

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16742808

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2016742808

Country of ref document: EP