WO2013075639A1 - 视频图像编解码的方法及装置 - Google Patents

视频图像编解码的方法及装置 Download PDF

Info

Publication number
WO2013075639A1
WO2013075639A1 PCT/CN2012/085026 CN2012085026W WO2013075639A1 WO 2013075639 A1 WO2013075639 A1 WO 2013075639A1 CN 2012085026 W CN2012085026 W CN 2012085026W WO 2013075639 A1 WO2013075639 A1 WO 2013075639A1
Authority
WO
WIPO (PCT)
Prior art keywords
motion information
current block
block
candidate
motion
Prior art date
Application number
PCT/CN2012/085026
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
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013075639A1 publication Critical patent/WO2013075639A1/zh

Links

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
    • H04N19/513Processing of motion vectors
    • H04N19/517Processing of motion vectors by encoding
    • H04N19/52Processing of motion vectors by encoding by predictive encoding

Definitions

  • Video image coding and decoding method and device
  • Embodiments of the present invention relate to communication technologies, and in particular, to a video image codec processing method and apparatus. Background technique
  • Inter-prediction coding techniques include a variety of coding techniques based on alternative motion information sets, such as fusion mode coding techniques and advanced motion vector prediction techniques. Common to these techniques is to construct an alternative motion information set for the image block currently being encoded and decoded (referred to as the current block for short), and select a motion information from the candidate motion information set as the motion information of the current block or as The predicted value of the current block motion information.
  • the motion information may include motion vectors as well as other information such as prediction directions and reference image indices.
  • the decoding end needs to transmit the selection information to the decoding end.
  • the codec terminal constructs the alternative motion information set in the same way as the encoding end, so the decoding end can select the same motion information as the encoding end from the candidate motion information set for the motion compensation operation according to the received motion information selection information. Because the motion information of the spatial neighboring block is used when constructing the candidate motion information set of the current block, in other words, the candidate motion information set of the current block can be constructed only after the spatial neighboring block has determined its motion information, so The encoding technique based on the candidate motion information set is used for more than one image block at the same time. Summary of the invention
  • Embodiments of the present invention provide a method for encoding and decoding a video signal, which can perform encoding or decoding processing on multiple image blocks in a parallel motion processing domain in parallel.
  • a method of encoding a video signal comprising:
  • the spatial proximity motion information of the parallel motion processing domain PR and the location information of the current block Determining an alternative motion information set of the current block, wherein the current block is located in the parallel motion processing domain PR;
  • a method of decoding a video signal comprising:
  • an embodiment of the present invention further provides a codec or device that implements the foregoing method.
  • a device for encoding a video signal comprising:
  • a motion information determining unit configured to determine spatial proximity motion information of the parallel motion processing domain PR
  • an alternative motion information set construction unit configured to determine, according to the spatial neighboring motion information of the parallel motion processing domain PR and the location information of the current block, the candidate motion information set of the current block, where the current block is located in the parallel Motion processing domain PR;
  • a motion information selection unit configured to select motion information of the current block from the candidate motion information set
  • a coding unit configured to perform motion compensation coding on the current block according to motion information of the current block, and input the selected motion information of the motion information into the coded code stream
  • a device for decoding a video signal comprising: And an alternative motion information set construction unit, configured to determine, according to the spatial proximity motion information of the parallel motion processing domain PR and the location information of the current block, the candidate motion information set of the current block, where the current block is located in the parallel motion Processing domain PR;
  • a receiving unit configured to receive an indication of motion information sent by the encoding end
  • a motion information selection unit configured to select motion information of the current block from the candidate motion information set according to the motion information indication
  • a decoding unit configured to perform motion compensation processing on the current block according to motion information of the current block.
  • the current block uses spatially adjacent motion information in the candidate motion information set of the parallel motion processing domain in which the current block is located, multiple image blocks in the parallel motion processing domain may be parallel or simultaneously
  • the codec processing is performed to improve the efficiency of the codec.
  • FIG. 1 is a flowchart of a method for video encoding in an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a method for constructing an alternative motion information set according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a spatially adjacent block of a parallel motion processing domain according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for video decoding according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus for encoding a video signal according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an apparatus for encoding a video signal according to an embodiment of the present invention. detailed description
  • Embodiments of the present invention describe embodiments that are capable of encoding or decoding multiple image blocks in a video signal in parallel or simultaneously.
  • the video signal is processed by an encoder or decoder to enable the video signal to communicate or transmit better.
  • An encoder or a video processing device that encodes or decodes a received video signal Processing may be the processor encoding or decoding the video signal.
  • 1 is a flowchart of a method for video encoding in an embodiment of the present invention.
  • Parallel motion processing domain PR is an area of the image in the video signal. It can be set by parameters. All image blocks in each parallel motion processing domain can be encoded and processed simultaneously using fusion technology. Or the parallel processing field PR is a rectangular image block including the current block, and its size and shape are preset or determined by information transmitted by the encoding end.
  • S103 Determine, according to the spatial neighboring motion information of the parallel motion processing domain PR and the location information of the current block, the candidate motion information set of the current block, where the current block is located in the parallel motion processing domain PR.
  • the image block currently undergoing encoding and decoding processing is an area of the image in the parallel motion processing domain PR.
  • the adjacent motion information of the same parallel motion processing domain is the same, but when the specific image block is used as the current block, it needs to be based on its specific position in the parallel motion processing domain PR, and then from the adjacent motion information of the parallel motion processing domain.
  • the candidate motion information of the current block is selected and an alternative motion information set of the current block is formed.
  • the motion information indication described in the actual application may be an index value (index value) of the selection motion information in the alternative motion information set. Since the encoding end and the decoding end construct the alternative motion information set in the same way, the decoding end can determine the motion information of the current block consistent with the encoding end by the index. As another implementation, specific motion information may also be transmitted as a motion information indication to the decoding end.
  • the current block is an image block of the parallel motion processing domain, and the parallel motion processing domain includes a plurality of image blocks as described above, and the image blocks in a parallel motion processing domain may be concurrently processed during the actual processing of the video signal. Or both as the current block.
  • the motion information indication of the current block is transmitted to the decoding end by the motion information indication to be written to the encoded code stream to assist the decoding end to determine the motion information of the current block.
  • the motion information may include motion vectors and prediction directions, and may also include other information such as reference image indices.
  • Embodiments of the present invention describe an example of encoding a video signal in a fused mode. It will be apparent that the techniques of the present invention are directly applicable to other coding techniques based on alternative motion information sets. Further, in the specific implementation, the temporal neighboring motion information may also be added in the candidate motion information set of the current block, and the increase or decrease of the neighboring motion information is an optional operation.
  • the fusion mode derives motion information of the current coded image block based on motion information of the peripheral reconstructed image block.
  • the motion information may include a motion vector and a prediction direction, and may also include other information such as a reference image index.
  • motion information such as motion vectors and prediction directions may not be transmitted for image blocks using the fused mode.
  • the fusion mode is constructed based on the motion information of the peripheral reconstructed image block to obtain an alternative motion information set.
  • FIG. 2 illustrates an alternative motion information set construction method.
  • the current block is an image block being processed during encoding of the current image
  • the same position block refers to an image block having the same spatial size as the current block in the time reference image of the current block
  • the image blocks A, B, C, D, E represent spatially adjacent image blocks that can be used to construct a set of alternative motion information
  • image blocks 1, 2 represent temporally adjacent image blocks that can be used to construct a set of alternative motion information.
  • the motion information of the spatial neighboring image block and any one of the temporally adjacent image blocks may be used as one element motion information in the candidate motion information set.
  • a maximum of seven adjacent image blocks are selected, and motion information of the adjacent image blocks is used to form an alternative.
  • Sports information collection In the process of constructing the candidate motion information set, it is necessary to ensure that the obtained candidate motion information set does not contain the same motion information. Specifically, the motion information of the corresponding spatial neighboring block may be sequentially checked in the order of A, B, C, D, and the available motion information is added to the candidate motion information set. At this point, if the amount of motion information in the set can be increased, then the motion of the block £, F or G is added. Information.
  • the basic motion information unit is a minimum image block that stores and represents independent motion information, and may be, for example, a 4x4 size image block.
  • the encoding end selects the optimal motion information from the candidate motion information set as the motion information of the current block based on the rate distortion criterion, and transmits the index value of the selected motion information in the candidate motion information set to the decoding end.
  • the decoding end can construct an alternative motion information set according to the same method, and select the correct motion information from the decoded index value to perform motion compensation operation on the current block.
  • a square area is divided into four square sub-areas, each of which is a parallel motion processing domain, denoted as PRO, PR1, PR2 and PR3.
  • the size of these four square sub-areas can be preset by parameters, or the fixed size can be used in setting the codec system.
  • the set of alternative motion information used for each of the image blocks is from the parallel motion processing domain PR of the image block. Proximity to sports information.
  • the image block is divided by the encoding end, which may be a square image block or a non-square image block.
  • the image block can be independently encoded or decoded using a fused mode. Taking the HEVC scheme as an example, the image block can be a prediction unit.
  • Spatial proximity motion information is determined for each parallel motion processing domain (the square sub-region). For example, for the parallel motion processing domain PRO, it is sequentially checked whether the spatial neighboring image blocks SA1, SB1, SC1, SD1, SE1, SF1, SG1 are available, and then it is checked whether the motion information in the available image block is available, and finally available. The motion information is used as the spatial proximity motion information. If some space is adjacent The near image block is located within the current encoded image and can be used to assist in the encoding or decoding operation of the current block, and the spatially adjacent image block is considered to be available.
  • a spatial neighboring image block is encoded using an interframe predictive coding mode, that is, the coded information of the spatial neighboring image block includes motion information
  • the spatial neighboring image block is considered to be available, and the motion information of the spatial neighboring block is added.
  • the same method detects whether the image blocks SA3, SB3, SC3, SD3, SE3, SF3, SG3 can determine the spatial proximity motion information of the PR3.
  • the PR domain spatial neighboring image block is an image block that has been encoded or decoded in the vicinity of the PR domain, and may be an image block above the PR domain, which may be an image block on the left side of the PR domain, and may be an image block on the upper left side of the PR domain.
  • the spatial proximity motion information may be determined for each square sub-area using the same method, or the spatial neighbor motion information may be determined for each square sub-area using different methods.
  • the number of adjacent motion information selected may also be more or less, such as selecting SA, SB, SC, SD, SE or selecting SA, SB, SC, SD, SE, SF, SG. Selecting more neighbor information can provide better candidate motion information, which improves coding efficiency, but the complexity is also improved. Different proximity information can be selected according to different needs.
  • each image block in the parallel motion processing domain when used as the current block, its temporal proximity motion information is determined.
  • the co-located block of the current block is determined in a reference image of the current block, and the motion information of the basic motion information unit of the position of the lower right corner (image block 1) outside the co-located block is selected as the temporal neighboring motion information of the current block. If the motion information of the basic motion information unit at the position of the lower right corner outside the same position block does not exist, the center position of the same position block is selected (image block)
  • the motion information of the basic motion information unit is used as the temporal neighbor motion information of the current block.
  • the motion information of the basic motion information unit of the other location may also be selected from the same location block or the outer location of the block as the temporal neighbor motion information of the current block.
  • an alternative motion information set is constructed for the current block.
  • the elements in the set of alternative motion information include spatially adjacent motion information of the parallel motion processing domain PR and temporal neighbor motion information of the current block, or only spatial proximity information.
  • the candidate motion information set of the image block is determined from the adjacent motion information of the parallel motion processing domain according to the position information of the image block in the parallel motion processing domain, and each image block determines its respective temporally adjacent motion information. In the implementation, determining the candidate motion information set of the current block according to the location information of the current block, for each block in the PR domain, and when an image block is used as the current block, selecting the PR neighboring block closest to the lower left corner of the current block.
  • the motion information is used as the left neighboring motion information of the current block, and the motion information of the neighboring block below the neighboring block of the current block is used as the lower left neighboring motion information of the current block, and the motion information of the PR neighboring block closest to the upper right corner of the current block is selected as the motion information.
  • the upper side of the current block is adjacent to the motion information, and the motion information of the right neighboring block of the upper neighboring block of the current block is used as the upper right adjacent motion information of the current block, and the motion information of the neighboring block closest to the upper left corner of the current block is selected as the upper left of the current block. Proximity to sports information. As shown in FIG.
  • the candidate motion information set is motion information from spatial neighboring blocks ⁇ SA3, SD3, SG3, SG3, SF3 ⁇ and temporal neighboring blocks; the spatial candidate motion information set of block 2 ⁇ SF3, SF3, SG3, SG3, SE3 ⁇ ; spatial alternative motion information set of block 3 ⁇ SF3, SF3, SB3, SC3, SG3 ⁇ ; spatial alternative motion information set of block 4 ⁇ SF3, SF3, SB3, SC3, SG3 ⁇ ; Spatial alternative motion information set for blocks 6, 7, 8, 9 ⁇ SA3, SD3, SB3, SC3, SG3 ⁇ .
  • the parallel motion processing domain PR has a width of 2M pixels and a length of 2N pixels, respectively, the image block at the upper left of the (0, 0) position is taken, and the image block at the upper left of the ( ⁇ , ⁇ ) position, (2 ⁇ , 0) upper left.
  • the upper left and lower left image blocks have a total of 7 image blocks as adjacent blocks.
  • the implementation manner of selecting the adjacent motion information according to the current block position may be implemented by calculating the distance between the current block and the neighboring block of the PR domain, but is not limited to using the distance calculation method. Any implementation that embodies the present invention utilizing the current block positional relationship can be implemented, such as by looking up a table or by other means.
  • Each of the image blocks in the parallel motion processing domain PR may become the current block, selecting one or more temporal neighboring image blocks for the current block; determining the motion of each of the one or more temporally adjacent image blocks adjacent to the image block Whether the information exists, if present, the motion information of each of the temporal neighboring image blocks is used as an element of the candidate motion information set, and the motion information of the temporal neighboring image block of the current block is added to the candidate motion Information concentration. Therefore, the candidate motion information set of each current block includes two parts, one part is the motion information of the temporal neighboring image block of the current block, and the other part is the spatial neighboring motion information of the parallel motion processing domain PR where the current block is located.
  • the candidate motion information set of the current block may further add an element, that is, if the candidate motion information set of the current block can accommodate more elements than the calculated motion information element, the available structure obtains one. Or multiple methods of new sports information.
  • a method for constructing one or more new motion information based on spatial motion information of the parallel motion processing domain PR and temporal motion information of the current block is given below: from the spatial motion information or time or time motion information Selecting the first motion information and the second motion information, wherein the first motion information includes a forward motion vector and a corresponding forward reference image index, and the second motion information includes a backward motion vector and a corresponding rear Index to the reference image.
  • the bidirectional motion information Combining the first motion information with the second motion information to obtain a new motion information, the bidirectional motion information, wherein the forward motion vector in the bidirectional motion information is a forward motion vector of the first motion information, where the bidirectional motion information is The forward reference image index is a forward reference image index of the first motion information; the backward motion vector in the bidirectional motion information is a backward motion vector of the first motion information, and the backward motion vector The reference image is indexed as a backward reference image index of the first motion information.
  • determining the candidate motion information set of the current block according to the location information of the current block may also be performed as follows: determining left and upper side adjacent motions of the current block in the PR domain. In the case of information, if the left side of the current block is the boundary of the PR domain, when the left side and the upper left side are adjacent to the motion information, the nearest one is selected according to the principle of the current block position.
  • the motion is selected according to the principle that the current block position is closest; when the current block is not at the boundary of the PR domain, the fixed PR domain neighbor motion information is selected as the candidate motion information of the current block.
  • the fixed PR domain neighbor motion information is ⁇ SA3, SD3, SE3, SB3, SC3 ⁇ .
  • the candidate motion information set is motion information from spatial neighboring blocks ⁇ SA3, SD3, SB3, SC3, SF3 ⁇ and temporal neighboring blocks; the spatial candidate motion information set of block 2 ⁇ SF3, SF3, SG3, SG3, SE3 ⁇ ; spatial alternative motion information set for block 3 ⁇ SA3, SD3, SB3, SC3, SG3 ⁇ ; spatial alternative motion information set for blocks 4, 6, 7, 8, 9 SA3, SD3, SB3, SC3, SG3 ⁇ .
  • each image block in the parallel motion processing domain PR3, such as block 2 to block 9 in PR3, can continue the encoding process in parallel or simultaneously as follows:
  • the process of calculating the rate distortion cost may be: performing motion compensation on the image block by using the motion information, and calculating a motion compensation error signal; performing spatial transformation, quantization, and entropy coding on the error signal, and calculating the image block. a coding rate; reconstructing the image block signal, calculating signal distortion; calculating a rate distortion penalty based on signal distortion and coding rate of the image block signal.
  • other coding information of the current block may be sent to the decoding end, where the other coding information includes coding information of the error signal of the current block, coding mode information of the current block, and the like.
  • the entire codec system can agree or fix the codec system of the system, and the other coded information described above can be sent without being transmitted.
  • Other encoding information may also be transmitted in a particular scenario such that the decoding end uses the same video signal processing mode.
  • the candidate motion information sets used for all image blocks in the parallel motion processing domain are all from the parallel motion processing domain, so all image blocks in the current parallel motion processing domain can be
  • the spatial proximity motion information obtained is determined at the same time. All motion information in the current image block candidate motion information set is obtained from the temporal neighboring image block or the spatial neighboring image block outside the square sub-region, and does not include the motion information of the image block in the square sub-region, so there is no need to judge
  • the spatial neighboring image block corresponding to each piece of motion information in the candidate motion information set is located in the same parallel motion processing domain as the current image block. From a hardware point of view, the judgment operation when processing each image block can be reduced, and the system delay and circuit cost can be reduced.
  • the embodiment of the present invention introduces a video signal decoding method at the decoding end of the opposite end of the above encoding method.
  • FIG. 4 a flowchart of a method for video decoding in an embodiment of the present invention.
  • the encoding end does not send the motion information indication, so the decoding end does not need to receive the motion information indication.
  • the embodiment of the present invention is a process of decoding a video signal obtained by the foregoing encoding method. At the decoding end, an alternative motion information set is constructed for each current block in the same manner as the above-described encoding end. If the motion information of the current block indicates an index value of the element including the motion information of the current block in the candidate motion information set, the motion information of the current block is selected from the candidate motion information set according to the motion information indication.
  • the method includes: searching, according to the index value, a corresponding element in the candidate motion information set, where the motion information represented by the element is used as motion information of the current block. If the motion information of the current block indicates an element that is directly the motion information of the current block, the selecting, according to the motion information, the motion information of the current block from the candidate motion information set includes: in the candidate motion information set The element is found, and the motion information represented by the element is used as motion information of the current block.
  • the temporal neighboring motion information and the spatial neighboring motion information are respectively determined in a process of specifically constructing the candidate motion information set, wherein the spatial proximity motion information may be determined in various embodiments.
  • the decoding end may determine the candidate motion information of each block in the domain before processing the image block of one parallel motion processing domain PR, and use the determined parallel in each parallel image processing block in the parallel motion processing domain as the current block.
  • the spatial proximity motion information of the motion processing domain PR It is also possible to determine candidate spatial proximity motion information for each block in the parallel motion processing domain PR when processing the image block of the fusion mode within the parallel motion processing domain for the first time, in the subsequent parallel motion processing domain.
  • the corresponding spatial proximity motion information that has been determined is directly used when processing the image block in the fused mode.
  • each image block in the parallel motion processing domain uses the image block of the merge mode as the current block to determine the spatial proximity motion information of the parallel motion processing domain in which the image block is located.
  • all motion information in the current image block candidate motion information set is obtained from a temporal neighboring image block or a spatial neighboring image block outside the square sub-region, without including the The motion information of the image block in the square sub-area, so there is no need to judge the spatial neighboring image block corresponding to each motion information in the candidate motion information set and the current Whether the image blocks are located in the same parallel motion processing domain. From a hardware point of view, the judgment operation when processing each image block can be reduced, and the system delay and circuit cost can be reduced.
  • the embodiment of the present invention further provides an apparatus for implementing the foregoing method for encoding and decoding.
  • the apparatus may be an encoding or decoding processor, and may be a mobile phone or a computer or a set top box including a codec processing unit, or even a processing.
  • Processor processor
  • the encoding or decoding apparatus of the present invention is used to implement the above-described encoding method and decoding method.
  • the various steps and functional implementations of the method can be implemented in the device, and the specific step details can be performed in the device. Therefore, the details of the process performed by the specific device can be fully referred to the method embodiment section.
  • an apparatus 50 for encoding a video signal includes: a motion information determining unit 507, configured to determine spatial proximity motion information of a parallel motion processing domain PR;
  • the candidate motion information set construction unit 501 is configured to determine, according to the spatial proximity motion information of the parallel motion processing domain PR and the location information of the current block, the candidate motion information set of the current block, where the current block is located in the Parallel motion processing domain PR;
  • a motion information selecting unit 503, configured to select motion information of the current block from the candidate motion information set
  • the coding unit 505 is configured to perform motion compensation coding on the current block according to the motion information of the current block, and input the selected motion information of the motion information into the encoded code stream.
  • the motion information determining unit 507 selects one or more spatial neighboring image blocks for the parallel motion processing domain PR, and determines whether motion information of each spatial neighboring image block in the one or more spatial neighboring image blocks is Presence, if present, to constitute PR neighboring motion information; selecting one or more temporal neighboring image blocks for the current block PR; determining whether motion information of each of the one or more temporal neighboring image blocks is adjacent to the image block Exist, if present, the motion information of each of the temporal neighboring image blocks is taken as an element of the candidate motion information set.
  • the candidate motion information set construction unit 501 is configured to construct, for the current block, the candidate motion information set required by the current block by using the PR spatial neighboring motion information and the temporal motion information and the location information of the current block, and is also used to remove the standby
  • the repeating elements in the set of motion information are selected such that the elements of the set of candidate motion information are different.
  • the determining, by the motion information determining unit 507, when the motion information of each spatial neighboring image block in the one or more spatial neighboring image blocks is present includes: if the spatial neighboring image block is located in an encoding of the current block The image may be used to assist the encoding operation of the current block, and the spatial neighboring image block is available.
  • the motion information determining unit 507 detects the motion information of the spatial neighboring image block to determine the motion information of the spatial neighboring image block. . If the temporal neighboring image block is located within a reference image of the current block and can be used to assist the encoding operation of the current block, the temporally adjacent image block is available, and the motion information determining unit 507 detects the temporally adjacent image block.
  • Motion information determines that motion information of adjacent temporal image blocks exists
  • the selecting, by the motion information selecting unit 503, the motion information of the current block from the candidate motion information set comprises: performing motion compensation coding on the current block by using motion information represented by each element in the candidate motion information set. Calculating a rate distortion cost; selecting motion information having a minimum rate distortion cost element representation as motion information of the current block.
  • the motion information of the current block in which the encoding unit 505 writes the code stream indicates an index value of the element including the motion information of the current block in the candidate motion information set, and is used to send the motion information indication of the current block.
  • the method includes: sending an index value of an element of the motion information including the current block in the candidate motion information set to the decoding end for The auxiliary is determined to determine motion information of the current block at the decoding end.
  • the selecting, by the motion information determining unit 503, the one or more spatial neighboring image blocks for the parallel motion processing domain PR includes: the neighboring image block selected by the motion information determining unit 503 is a neighboring image block adjacent to the parallel motion processing domain PR;
  • the portion of the adjacent image block includes: the parallel motion processing domain PR has a width of 2M pixels, and the length is 2N pixels, and the image block at the upper left position of the (0, 0) position is respectively taken.
  • the image blocks are adjacent blocks. Or a portion of the adjacent image blocks includes: taking the image blocks of the left and upper sides of the parallel motion processing domain PR by W pixels as adjacent blocks, where W is an integer multiple of 4.
  • the encoding device 50 further includes a sending unit (not shown) for transmitting the encoding information of the error signal of the current block and the encoding mode information of the current block to the decoding end, so that the decoding end can be recovered.
  • a sending unit (not shown) for transmitting the encoding information of the error signal of the current block and the encoding mode information of the current block to the decoding end, so that the decoding end can be recovered.
  • FIG. 6 is a schematic diagram of an apparatus 60 for decoding a video signal according to the present invention.
  • the device includes:
  • a motion information determining unit 609 configured to determine spatial proximity motion information of the parallel motion processing domain PR;
  • the candidate motion information set construction unit 601 is configured to determine, according to the spatial proximity motion information of the parallel motion processing domain PR and the location information of the current block, the candidate motion information set of the current block, where the current block is located in the parallel Motion processing domain PR;
  • the receiving unit 603 is configured to receive an indication of the motion information sent by the encoding end.
  • the motion information selecting unit 605 is configured to select, according to the motion information, motion information of the current block from the candidate motion information set;
  • the decoding unit 607 is configured to perform motion compensation processing on the current block according to the motion information of the current block.
  • the motion information determining unit 609 selects one or more spatial neighboring image blocks for the parallel motion processing domain PR, and determines whether motion information of each spatial neighboring image block in the one or more spatial neighboring image blocks exists. And if present, forming PR neighboring motion information; selecting one or more temporal neighboring image blocks for the current block; determining whether motion information of each of the one or more temporal neighboring image blocks is adjacent to the image block, If present, the motion information of each of the temporal neighboring image blocks is taken as an element of the candidate motion information set.
  • the candidate motion information set construction unit 601 is configured to utilize the PR space for the current block.
  • the adjacent motion information and the temporal motion information and the position information of the current block construct an optional motion information set required by the current block, and are also used to remove the repeated elements in the candidate motion information set, so that the candidate motion information is concentrated The elements are different.
  • the determining, by the motion information determining unit 609, whether the motion information of each spatial neighboring image block in the one or more spatial neighboring image blocks is present includes: if the spatial neighboring image block is located in a decoding where the current block is located The image may be used to assist the decoding operation of the current block, and the spatial neighboring image block is available. When the motion information of the spatial neighboring image block is detected, the motion information of the spatial neighboring image block is determined to exist.
  • the motion information determining unit 609 selects one or more temporal neighboring image blocks for the current block; determines whether motion information of each temporal neighboring image block in the one or more temporal neighboring image blocks exists, if present, The motion information determining unit uses the motion information of each of the temporal neighboring image blocks as one of the temporal neighboring motion information.
  • the candidate motion information set construction unit uses each of the spatial proximity motion information as one element in the current block candidate motion information set, and uses each of the temporal neighbor motion information as an alternative motion of the current block. An element of the information set.
  • the selecting, by the motion information determining unit 609, the one or more spatial neighboring image blocks for the parallel motion processing domain PR includes: the neighboring image blocks selected by the motion information determining unit 609 are adjacent image blocks adjacent to the parallel motion processing domain PR;
  • the partial adjacent image block includes: the parallel motion processing domain PR has a width of 2M pixels and a length of 2N pixels, and respectively takes a (0, 0) position to the upper left image block, and ( ⁇ , ⁇ ) positions the upper left image.
  • the upper left and lower left image blocks have a total of 7 image blocks as adjacent blocks.
  • a portion of the adjacent image blocks includes: taking the parallel motion processing domain.
  • the image blocks of the left and upper sides of the PR are separated by W pixels, wherein W is an integer multiple of 4.
  • the motion information of the current block received by the receiving unit 603 indicates an index value of an element of the motion information of the current block in the candidate motion information set
  • the motion information selecting unit 605 is configured to use the motion information according to the motion information. Instructing to select motion information of the current block from the candidate motion information set includes: the motion information selection unit is in the candidate motion according to the index value
  • the information set searches for a corresponding element, and the motion information represented by the element is used as motion information of the current block.
  • all motion information in the current image block candidate motion information set is obtained from a temporal neighboring image block or a spatially adjacent image block outside the square sub-region, without including
  • the motion information of the image block in the square sub-area is not required to determine whether the spatial neighboring image block corresponding to each motion information in the candidate motion information set and the current image block are located in the same parallel motion processing domain. From a hardware point of view, the judgment operation when processing each image block can be reduced, and the system delay and circuit cost can be reduced.
  • the device embodiments described above are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located in one place. , or it can be distributed to at least two network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明涉及视频信号编解码的方法,提供一种对视频信号进行编码的方法,包括:确定并行运动处理域PR的空间邻近运动信息;确定当前块的时间邻近运动信息,其中所述当前块位于所述并行运动处理域PR;根据所述并行运动处理域PR的空间邻近运动信息和所述当前块的时间邻近运动信息以及当前块的位置信息确定所述当前块的备选运动信息集;从所述备选运动信息集中选择当前块的运动信息,并将所述当前块的运动信息指示发送到解码端以辅助所述解码端确定所述当前块的运动信息;根据所述当前块的运动信息对所述当前块进行运动补偿编码。同时还有与之对应的解码方法及实现编解码的装置。

Description

视频图像编解码的方法及装置 技术领域
本发明实施例涉及通信技术, 特别涉及一种视频图像编解码处理的方法 及装置。 背景技术
帧间预测编码技术中包括多种基于备选运动信息集的编码技术, 例如融 合模式编码技术与先进的运动矢量预测技术。 这些技术的共同点是为当前正 在进行编码与解码处理的图像块(简称当前块)构造一个备选运动信息集, 并从该备选运动信息集中选择一个运动信息作为当前块的运动信息或作为当 前块运动信息的预测值。 所述运动信息可包括运动矢量以及预测方向与参考 图像索引等其它信息。 为使解码端获得编码端所选择的运动信息, 编码端需 要将选择信息传输到解码端。 编解码端釆用与编码端相同的方法构造备选运 动信息集, 所以解码端可以根据接收到的运动信息选择信息从备选运动信息 集中选取与编码端相同的运动信息用于运动补偿操作。 因为在构造当前块的 备选运动信息集时会使用到空间邻近块的运动信息, 换言之, 只有当空间邻 近块已经确定其运动信息后才可以构造当前块的备选运动信息集, 所以不能 够同时对多于一个图像块使用所述基于备选运动信息集的编码技术。 发明内容
本发明实施例提供一种对视频信号进行编码及解码的方法, 可以并行对 并行运动处理域中的多个图像块进行编码或者解码的处理。
一种对视频信号进行编码的方法, 包括:
确定并行运动处理域 PR的空间邻近运动信息;
根据所述并行运动处理域 PR的空间邻近运动信息和当前块的位置信 息确定所述当前块的备选运动信息集, 其中所述当前块位于所述并行运动 处理域 PR中;
从所述当前块的备选运动信息集中选择当前块的运动信息; 根据所述当前块的运动信息对所述当前块进行运动补偿编码, 并将选 择出的所述运动信息的运动信息指示写入编码后码流。
一种对视频信号进行解码的方法, 包括:
确定并行运动处理域 PR的空间邻近运动信息;
根据所述并行运动处理域 PR的空间邻近运动信息与当前块的位置信 息确定所述当前块的备选运动信息集, 所述当前块位于所述并行运动处理 域 PR中;
接收编码端发送的运动信息指示;
根据所述运动信息指示从所述备选运动信息集中选择当前块的运动 信息;
根据所述当前块的运动信息对所述当前块进行运动补偿处理。
进一步, 本发明实施例还提供实现上述方法的编解码器或者装置。 一种对视频信号进行编码的装置, 包括:
运动信息确定单元,用于确定并行运动处理域 PR的空间邻近运动信 息, ;
备选运动信息集构建单元, 用于根据所述并行运动处理域 PR的空间 邻近运动信息和当前块的位置信息确定所述当前块的备选运动信息集, 其 中所述当前块位于所述并行运动处理域 PR中;
运动信息选择单元, 用于从所述备选运动信息集中选择当前块的运动 信息;
编码单元, 用于根据所述当前块的运动信息对所述当前块进行运动补 偿编码, 并将选择出的所述运动信息的运动信息指示写入编码后码流
一种对视频信号进行解码的装置, 包括: 备选运动信息集构建单元, 用于根据所述并行运动处理域 PR的空间 邻近运动信息与当前块的位置信息确定所述当前块的备选运动信息集, 所 述当前块位于所述并行运动处理域 PR中;
接收单元, 用于接收编码端发送的运动信息指示;
运动信息选择单元, 用于根据所述运动信息指示从所述备选运动信息 集中选择当前块的运动信息;
解码单元, 用于根据所述当前块的运动信息对所述当前块进行运动补 偿处理。
釆用本发明实施的方法或装置, 由于当前块釆用当前块所在的并行运 动处理域的备选运动信息集中的空间邻近运动信息, 则并行运动处理域中 的多个图像块可以并行或同时的进行编解码处理, 提高了编解码的效率。 附图说明
图 1为本发明实施例中视频编码的方法流程图。
图 2为本发明实施例一种备选运动信息集合构造方法示意图。
图 3为本发明实施例并行运动处理域的与空间邻近块的示意图。 图 4为本发明实施例中视频解码的方法流程图。
图 5为本发明实施例中对视频信号进行编码装置的结构示意图。 图 6为本发明实施例中对视频信号进行编码装置的结构示意图。 具体实施方式
本发明的实施例介绍能够并行或者同时对视频信号中的多个图像块 进行编码或者解码的实施方式。 视频信号被编码器或者解码器处理, 使得 视频信号能够更好的进行通信或传输。
编码器或者一种视频处理设备,对接收到的视频信号进行编码或解码 处理,一般情况具体的时候可能是处理器对视频信号进行编码或解码处理。 参阅图 1为本发明实施例中视频编码的方法流程图。
S 101 , 确定并行运动处理域( Parallel Region, PR )的空间邻近运动信 息。
并行运动处理域 PR是视频信号中图像的一块区域, 可以通过参数设 定, 每一个并行运动处理域内的所有图像块可以同时使用融合技术进行编 解码处理。 或者说所述并行处理域 PR为包含所述当前块的矩形图像块, 其大小与形状预先设定或由编码端发送的信息确定。
S103, 根据所述并行运动处理域 PR的空间邻近运动信息和当前块的 位置信息确定所述当前块的备选运动信息集, 其中所述当前块位于所述并 行运动处理域 PR中。
当前正在进行编码与解码处理的图像块,简称当前块,是并行运动处理 域 PR中图像的一块区域。 同一并行运动处理域的邻近运动信息是相同的 , 但是其中具体的图像块作为当前块的时候, 需要根据其在并行运动处理域 PR中的具体位置,再从并行运动处理域的邻近运动信息中选择当前块的备 选运动信息并形成当前块的备选运动信息集。
S107 , 从所述当前块的备选运动信息集中选择当前块的运动信息。 在实际的应用中所述的运动信息指示可以是选择运动信息在所述备 选运动信息集中的索引数值 (索引值) 。 由于编码端和解码端釆用同样的 方法构造备选运动信息集, 所以解码端可以通过索引确定出与在编码端一 致的对所述当前块的运动信息。 作为另一中实现方式也可以将具体的运动 信息作为运动信息指示发送到解码端。 当前块是所述并行运动处理域一个 图像块, 如前所述所述并行运动处理域中包括多个图像块, 实际对视频信 号进行处理过程中在一个并行运动处理域中的图像块可以并行或者同时作 为当前块。
S109 , 根据所述当前块的运动信息对所述当前块进行运动补偿编码, 并将选择出的所述运动信息的运动信息指示写入编码后码流。
通过将运动信息指示写入编码后的码流, 将所述当前块的运动信息指 示发送到解码端以辅助所述解码端确定所述当前块的运动信息。 所述运动 信息可包括运动矢量以及预测方向,还可以包括参考图像索引等其它信息。
本发明实施例介绍在融合模式下的对视频信号进行编码的例子。显然 本发明技术可直接用于其它基于备选运动信息集的编码技术。 进一步, 在 具体实施中还可以在当前块的备选运动信息集中增加时间邻近运动信息, 该时间邻近运动信息的增加与否是可选的操作。
融合模式基于周边重建图像块的运动信息推导当前编码图像块的运 动信息。 所述运动信息可包括运动矢量以及预测方向, 还可以包括参考图 像索引等其它信息。 对视频处理的过程中可以不用为使用融合模式的图像 块传输运动矢量与预测方向等运动信息。
融合模式基于周边重建图像块的运动信息构造得到一个备选运动信 息集合, 图 2示意了一种备选运动信息集合构造方法。 其中当前块为编码 当前图像过程中正在处理的图像块, 同位置块指在当前块的时间参考图像 中与当前块大小相同且具有相同空间位置坐标的图像块, 图像块 A、 B、 C、 D、 E表示可用于构造备选运动信息集合的空间邻近图像块, 图像块 1、 2 表示可用于构造备选运动信息集合的时间邻近图像块。 所述空间邻近图像 块与所述时间邻近图像块中任一个图像块的运动信息都可以作为备选运动 信息集合中的一个元素运动信息。 在本发明实施例中基于所述邻近图像块 的存在与否, 以及所述邻近图像块的运动信息存在与否, 选择最多 7个邻 近图像块, 并使用这些邻近图像块的运动信息构成备选运动信息集合。 在 构造备选运动信息集的过程中需保证得到的备选运动信息集中不包含相同 的运动信息。 具体地说, 可按照 A, B , C, D的顺序依次检查对应空间邻 近块的运动信息是否存在, 并将可得的运动信息添加备选运动信息集中。 此时, 如果集合中运动信息数量还可以增加, 则加入块£、 F或 G的运动 信息。 在添加时间邻近块的运动信息时, 按照 1、 2的顺序依次检查对应时 间邻近块的运动信息是否存在, 并将第一个可得的运动信息添加到备选运 动信息集中, 在当前图像的一个参考图像中确定当前块的同位置块, 选择 该同位置块外右下角位置 (例如图 2中的图象块 1 ) 的基本运动信息单元的 运动信息作为当前块的时间邻近运动信息。 如果该同位置块外右下角位置 的基本运动信息单元的运动信息不存在,则选取该同位置块中心位置(例如 图 2中的图象块 2 ) 的基本运动信息单元的运动信息作为当前块的时间邻 近运动信息。 所述基本运动信息单元是存储与表示独立运动信息的最小图 像块, 例如可以是 4x4大小的图像块。
编码端基于率失真准则从备选运动信息集中选择最优的运动信息作 为当前块的运动信息, 并将所选择运动信息在备选运动信息集中的索引值 传输到解码端。 解码端则可依照相同的方法构造备选运动信息集, 并根据 解码得到的索引值从中选择正确的运动信息对当前块进行运动补偿操作。
参阅图 3图像中一个方形区域被划分为 4个方形子区域,每一个方形 子区域为一个并行运动处理域, 记作 PRO , PR1 , PR2与 PR3。 这 4个方 形子区域的大小可以通过参数预先设定, 也可以在设定编解码系统釆用固 定的大小。 为使每一个方形子区域内的所有图像块能够同时使用融合模式 进行编码或解码操作, 为每一个所述图像块使用的备选运动信息集均来自 所述图像块所在并行运动处理域 PR的邻近运动信息。 所述图像块由编码 端划分得到, 它可以是一个方形图像块, 也可以是一个非方形图像块。 所 述图像块可以独立的使用融合模式进行编码或解码操作。 以 HEVC方案为 例, 所述图像块可以是一个预测单元。
为每一个并行运动处理域(所述方形子区域)确定空间邻近运动信息。 例如对并行运动处理域 PRO , 依次检查空间邻近图像块 SA1 , SB1 , SC1 , SD1 , SE1 , SF1 , SG1是否可得, 接着检查可得图像块中的运动信息是否 可得, 最后将可得的运动信息作为所述空间邻近运动信息。 如果某空间邻 近图像块位于当前编码图像内并可用于辅助当前块的编码或解码操作, 则 认为该空间邻近图像块可得。 如果某空间邻近图像块使用帧间预测编码模 式进行编码, 即所述空间邻近图像块的编码信息中包含运动信息, 则认为 该空间邻近图像块可得, 并将该空间邻近块的运动信息添作为所述空间邻 近运动信息。 同样的方法检测图像块 SA3 , SB3 , SC3 , SD3 , SE3 , SF3 , SG3是否可得确定 PR3的空间邻近运动信息。 PR域空间邻近图像块是 PR 域邻近位置已经过编码或解码处理的图像块, 可以是 PR域上方的图像块, 可以是 PR域左侧的图像块, 可以是 PR域左上方的图像块, 可以是 PR域 左下方的图像块, 可以是 PR域右上方的图像块, 也可以是 PR域邻近其它 位置的图像块。 应用中, 可以使用相同的方法为每一个方形子区域确定所 述空间邻近运动信息, 也可使用不同的方法为每一个方形子区域确定所述 空间邻近运动信息。 选取的邻近运动信息的数量也可以更多或者更少, 比 如选取 SA、 SB、 SC、 SD、 SE或者选取 SA、 SB、 SC、 SD、 SE、 SF、 SG。 选取更多邻近信息可以提供更好的候选运动信息, 从而提升编码效率, 但 复杂度也会提高一些。 可以根据不同需求选取不同的邻近信息。
参阅图 2 , 在并行运动处理域中的每一个图像块作为当前块的时候, 确定其时间邻近运动信息。 在当前块的一个参考图像中确定当前块的同位 置块, 选择该同位置块外右下角位置(图象块 1 ) 的基本运动信息单元的运 动信息作为当前块的时间邻近运动信息。 如果该同位置块外右下角位置的 基本运动信息单元的运动信息不存在,则选取该同位置块中心位置(图象块
2 )的基本运动信息单元的运动信息作为当前块的时间邻近运动信息。还可 以从同位置块内或块外邻近区域中选取其他位置的基本运动信息单元的运 动信息作为当前块的时间邻近运动信息。
根据上述方法确定当前块的时间邻近运动信息及并行运动处理域 PR 的空间邻近运动信息组成初步备选运动信息集, 其中时间的邻近运行信息 是可选的, 即可以构建一个只包括并行运动处理域 PR的空间邻近运动信 息的初步备选运动信息集。 之后再根据当前块的位置, 从初步备选运动信 息集中选择备选信息构建当前块的备选运动信息集。
在本发明实施例中, 为所述当前块构造备选运动信息集。 所述备选运 动信息集中的元素包括所述并行运动处理域 PR的空间邻近运动信息与所 述当前块的时间邻近运动信息, 或者仅包括空间邻近信息。 根据并行运动 处理域内的图像块的位置信息从并行运动处理域的邻近运动信息中确定图 像块的备选运动信息集, 各图像块确定其各自的时间邻近的运动信息。 实 施中, 根据当前块的位置信息确定当前块的备选运动信息集, 对于 PR域 中的每一个块, 及当一个图像块作为当前块的时候, 选择距离当前块左下 角最近的 PR邻近块的运动信息作为当前块的左侧邻近运动信息, 当前块 左侧邻近块的下方邻近块的运动信息作为当前块的左下邻近运动信息, 选 择距离当前块右上角最近的 PR邻近块的运动信息作为当前块的上侧邻近 运动信息, 当前块的上侧邻近块的右侧邻近块的运动信息作为当前块右上 邻近运动信息, 选取距当前块左上角最近的邻近块的运动信息作为当前块 的左上邻近运动信息。 如图 3所示, 对于块 5, 其备选运动信息集为来自 空间邻近块 {SA3, SD3, SG3, SG3, SF3}和时间邻近块的运动信息; 块 2 的空间备选运动信息集 {SF3, SF3, SG3, SG3, SE3}; 块 3的空间备选运 动信息集 {SF3, SF3, SB3, SC3, SG3 }; 块 4的空间备选运动信息集 {SF3 , SF3, SB3, SC3, SG3 }; 块 6、 7、 8、 9的空间备选运动信息集 {SA3 , SD3, SB3, SC3, SG3 }。 如果并行运动处理域 PR的宽度为 2M个像素,长度为 2N个像素,则分别取(0,0)位置左上方图像块, (Μ,Ο)位置左上方图像 块, (2Μ,0)左上方和右上方两个图像块, (0, Ν)左上方图像块, (0,2Ν) 左上方和左下方图像块共 7个图像块为邻近块。或者取并行运动处理域 PR 左侧和上侧相隔 W个像素的图像块为相邻块, 其中 W为 4的整数倍。
以上根据当前块位置选取临近运动信息的实施方式, 可以通过计算当 前块和 PR域临近块的距离来实现, 但不限于使用距离计算的方法实现, 任何能够体现本发明利用当前块位置关系的实现均可以釆用, 比如通过查 表或其他方式实现。
每一个并行运动处理域 PR中的图像块都可能成为当前块, 为当前 块选择一个或多个时间邻近图像块; 确定所述一个或多个时间邻近图像块 中每一个时间邻近图像块的运动信息是否存在, 如果存在, 则将所述每一 个时间邻近图像块的运动信息作为所述备选运动信息集的一个元素, 将该 当前块的时间邻近图像块的运动信息增加到其备选运动信息集中。 所以每 一个当前块的备选运动信息集中包括两部分, 一部分是当前块的时间邻近 图像块的运动信息, 另一部分是该当前块所在并行运动处理域 PR的空间 邻近运动信息。
进一步, 如果上述两部分确定完成后, 当前块的备选运动信息集还可 以增加元素, 即如果当前块的备选运动信息集可以容纳的元素数量大于计 算出的运动信息元素, 可用构造得到一个或多个新运动信息的方法。 下面 给出一种基于所述并行运动处理域 PR的空间运动信息与所述当前块的时 间运动信息构造得到一个或多个新运动信息的方法: 从所述空间运动信息 或时间或时间运动信息中选择第一运动信息与第二运动信息, 所述第一运 动信息包含一个前向运动矢量与对应的前向参考图象索引, 所述第二运动 信息包含一个后向运动矢量与对应的后向参考图象索引。 将第一运动信息 与第二运动信息组合得到一个新的运动信息, 双向运动信息, 该双向运动 信息中的前向运动矢量为所述第一运动信息的前向运动矢量, 该双向运动 信息中的前向参考图像索引为所述第一运动信息的前向参考图像索引; 该 双向运动信息中的后向运动矢量为所述第一运动信息的后向运动矢量, 该 双向运动信息中的后向参考图像索引为所述第一运动信息的后向参考图像 索引。 除上述方法外, 还可直接添加零运动信息方式构造新的运动信息。
进一步, 还可以去除所述备选运动信息集中的重复元素, 以使得所述 在本发明的另一个实施例中, 所述根据当前块的位置信息确定当前块 的备选运动信息集还可以按照如下方式进行: 在确定 PR域中的当前块的 左侧和上侧邻近运动信息时, 如果当前块左侧为 PR域的边界, 则在选取 左侧、 左上侧邻近运动信息时, 按照距离当前块位置最近的原则来选取, 如果当前快上侧为 PR域的边界, 则在选取上侧和左上侧邻近运动信息时, 按照距离当前块位置最近的原则来选取; 对于当前块不在 PR域的边界时, 选取固定的 PR域邻运动信息作为当前块的备选运动信息,固定的 PR域邻 运动信息为 {SA3, SD3, SE3, SB3, SC3}。 以图 3为例, 对于块 5, 其备 选运动信息集为来自空间邻近块 {SA3, SD3, SB3, SC3, SF3}和时间邻近 块的运动信息; 块 2的空间备选运动信息集 {SF3, SF3, SG3, SG3, SE3}; 块 3的空间备选运动信息集 {SA3, SD3, SB3, SC3, SG3 }; 块 4、 6、 7、 8、 9的空间备选运动信息集 {SA3, SD3, SB3, SC3, SG3 }。
例如并行运动处理域 PR3内的每一个图像块, 例如 PR3中的块 2到 块 9 , 可以并行或者同时进行如下操作继续进行编码处理:
51021, 计算使用当前块的备选运动信息集中的每一个元素表示的运 动信息对所属的图像块进行运动补偿编码得到的率失真代价, 最小率失真 代价 RdCost可以按照 RdCost = D + lamda*R计算得到, 其中 R是运动补 偿编码带来的比特开销, D是编码重建图像块信号与原始图像块信号的误 差, lambda为一个预先设定的编码参数。 或者说, 上述计算率失真代价的 过程可以为, 使用所述运动信息对所述图像块进行运动补偿, 计算运动补 偿误差信号; 对误差信号进行空间变换、 量化与熵编码, 计算所述图像块 的编码速率; 重建所述图像块信号, 计算信号失真; 根据所述图像块信号 的信号失真与编码速率计算率失真代价。
51022, 选择具有最小率失真代价的运动信息作为所述当前块的最优 运动信息。
51023 , 将该最优运动信息在备选运动信息集中的索引值写入到编码 后的码流中以传输到解码端。
进一步, 还可以将所述当前块的其它编码信息发送到解码端, 所述其 它编码信息包含所述当前块的误差信号的编码信息以及所述当前块的编码 模式信息等。 整个编解码系统可以约定或者固定系统的编解码制式, 则上 述的其它编码信息可以不用发送。 也可以在具体的场景下发送其它编码信 息以使得所述解码端釆用相同的视频信号处理模式。
釆用本发明实施例对视频信号进行编码的方法, 为并行运动处理域内 的所有图像块釆用的备选运动信息集均来自并行运动处理域外, 因此当前 并行运动处理域内的所有图像块都可以同时使用确定得到的空间邻近运动 信息。 当前图像块备选运动信息集中所有运动信息都从时间邻近图像块或 所述方形子区域外的空间邻近图像块取得, 而不包含所述方形子区域内的 图像块的运动信息, 因此无需判断备选运动信息集中每一个运动信息所对 应的空间邻近图像块与当前图像块是否位于同一根据并行运动处理域内。 从硬件的角度来说, 可以减少处理每个图像块时的判断操作, 降低系统的 时延和电路成本。
同时本发明实施例介绍在上述编码方法对端的解码端的视频信号解 码方法。 参阅图 4 , 本发明实施例中视频解码的方法流程图。
S197 , 确定并行运动处理域 PR的空间邻近运动信息。
5201 , 根据并行运动处理域 PR的空间邻近图像块和当前块的位置信 息确定当前块的备选运动信息集, 其中所述当前块位于所述并行运动处理 域 PR中;
5202 , 接收编码端发送的运动信息指示;
如果所述备选运动信息集中仅包含一个元素或为空时, 编码端不会发 送所述运动信息指示, 因此解码端也无需接收所述运动信息指示。
5203 ,根据所述运动信息指示从所述备选运动信息集中选择当前块的 运动信息; S204 , 根据所述当前块的运动信息对所述当前块进行运动补偿处理。 本发明实施例是对前述编码方法获得的视频信号进行解码处理的过 程。 在解码端釆用上述编码端同样的方法为每一个当前块构建备选运动信 息集。 如果所述当前块的运动信息指示包括当前块的运动信息的元素在所 述备选运动信息集中的索引值, 则根据所述运动信息指示从所述备选运动 信息集中选择当前块的运动信息包括: 根据所述索引值在所述备选运动信 息集中查找对应的元素, 所述元素表示的运动信息作为所述当前块的运动 信息。 如果所述当前块的运动信息指示直接为当前块的运动信息的元素, 则根据所述运动信息指示从所述备选运动信息集中选择当前块的运动信息 包括: 在所述备选运动信息集中查找到所述元素, 所述元素表示的运动信 息作为所述当前块的运动信息。
在具体构建备选运动信息集的过程中分别确定时间邻近运动信息和 空间邻近运动信息, 其中确定空间邻近运动信息可以有多种实施方式。 解 码端可用在对一个并行运动处理域 PR的图像块处理之前确定域内每个块 的备选运动信息, 并行运动处理域内每一个釆用融合模式的图像块作为当 前块时都使用已经确定的并行运动处理域 PR的空间邻近运动信息。 还可 以在第一次对并行运动处理域内釆用融合模式的图像块进行处理的时候确 定并行运动处理域 PR内每个块的备选空间邻近运动信息, 在后续该并行 运动处理域的其它釆用融合模式的图像块处理时直接使用已经确定的对应 的空间邻近运动信息。 还有一种实现方式是并行运动处理域内每一个釆用 融合模式的图像块作为当前块时都确定一次该图像块所在并行运动处理域 的空间邻近运动信息。
釆用本发明实施例对视频信号进行解码的方法, 当前图像块备选运动 信息集中所有运动信息都从时间邻近图像块或所述方形子区域外的空间邻 近图像块取得, 而不包含所述方形子区域内的图像块的运动信息, 因此无 需判断备选运动信息集中每一个运动信息所对应的空间邻近图像块与当前 图像块是否位于同一根据并行运动处理域内。 从硬件的角度来说, 可以减 少处理每个图像块时的判断操作, 降低系统的时延和电路成本。
同时本发明实施例还提供实现上述编码和解码的方法的装置, 该装置 可以为一个编码或者解码处理器, 可以是包括编解码处理单元的手机或者 电脑或者机顶盒等装置, 甚至还可以是一个处理器 (processor ) 。 本发明 的编码或者解码装置用于实现上述编码的方法及解码的方法。 方法中的各 步骤及功能实现都可以在装置中实现, 具体的步骤细节均可以在装置中执 行。 所以具体装置所执行的流程细节完全可以参阅方法实施例部分。
参阅图 5 ,本发明实施例的一种对视频信号进行编码的装置 50 ,包括: 运动信息确定单元 507,用于确定并行运动处理域 PR的空间邻近运动 信息;
备选运动信息集构建单元 501 , 用于根据所述并行运动处理域 PR的 空间邻近运动信息及当前块的位置信息确定所述当前块的备选运动信息 集, 其中所述当前块位于所述并行运动处理域 PR中;
运动信息选择单元 503 , 用于从所述备选运动信息集中选择当前块的 运动信息;
编码单元 505 , 用于根据所述当前块的运动信息对所述当前块进行运 动补偿编码, 并将选择出的所述运动信息的运动信息指示写入编码后码 流。
进一步, 所述运动信息确定单元 507,为所述并行运动处理域 PR选择 一个或多个空间邻近图像块, 确定所述一个或多个空间邻近图像块中每一 个空间邻近图像块的运动信息是否存在, 如果存在, 则构成 PR邻近运动 信息; 为所述当前块 PR选择一个或多个时间邻近图像块; 确定所述一个 或多个时间邻近图像块中每一个时间邻近图像块的运动信息是否存在, 如 果存在, 则将所述每一个时间邻近图像块的运动信息作为所述备选运动信 息集的一个元素。 所述备选运动信息集构建单元 501用于为当前块利用 PR空间邻近运 动信息和时间运动信息以及当前块的位置信息构建当前块所需的备选运动 信息集, 还用于去除所述备选运动信息集中的重复元素, 以使得所述备选 运动信息集中的元素互异。
进一步, 所述运动信息确定单元 507用于确定所述一个或多个空间邻 近图像块中每一个空间邻近图像块的运动信息是否存在时包括: 如果所述 空间邻近图像块位于当前块所在的编码图像内并可用于辅助当前块的编码 操作, 则所述空间邻近图像块可得, 运动信息确定单元 507检测到所述空 间邻近图像块的运动信息则确定所述空间邻近图像块的运动信息存在。 如 果所述时间邻近图像块位于当前块的一个参考图像内并可用于辅助当前块 的编码操作, 则所述时间邻近图像块可得, 所述运动信息确定单元 507检 测到所述时间邻近图像块的运动信息则确定所述时间邻近图像块的运动信 息存在
所述运动信息选择单元 503用于从所述备选运动信息集中选择当前块 的运动信息时包括:使用所述备选运动信息集中每一个元素表示的运动信 息对所述当前块进行运动补偿编码, 计算率失真代价; 选择具有最小率失 真代价元素表示的运动信息作为所述当前块的运动信息。 所述编码单元 505写入码流的所述当前块的运动信息指示包括当前块的运动信息的元素 在所述备选运动信息集中的索引值, 用于将所述当前块的运动信息指示发 送到解码端以辅助所述解码端确定所述当前块的运动信息时包括: 将包含 所述当前块的运动信息的元素在所述备选运动信息集中的索引值发送到所 述解码端用于辅助所述在解码端确定所述当前块的运动信息。 所述运动信 息确定单元 503为所述并行运动处理域 PR选择一个或多个空间邻近图像 块包括: 运动信息确定单元 503选择的邻近图像块为并行运动处理域 PR 相邻部分相邻图像块;部分相邻图像块包括: 所述并行运动处理域 PR的宽 度为 2M个像素,长度为 2N个像素,则分别取(0,0 )位置左上方图像块, ( M,0 )位置左上方图像块, (2Μ,0)左上方和右上方两个图像块, (0 , Ν ) 左上方图像块, (0,2Ν ) 左上方和左下方图像块共 7个图像块为邻近块。 或者部分相邻图像块包括: 取并行运动处理域 PR左侧和上侧相隔 W个像 素的图像块为相邻块, 其中 W为 4的整数倍。
在编码装置 50中还包括发送单元 (图未示) 用于向所述解码端发送 所述当前块的误差信号的编码信息以及所述当前块的编码模式信息以使得 所述解码端能够恢复得到所述当前块的重建信号
进一步, 本发明实施例还揭示一种对视频信号进行解码的装置, 参阅 图 6本发明实施对视频信号进行解码的装置 60的示意图。 装置包括:
运动信息确定单元 609,用于确定并行运动处理域 PR的空间邻近运动 信息;
备选运动信息集构建单元 601 , 用于根据所述并行运动处理域 PR 的空间邻近运动信息与当前块的位置信息确定所述当前块的备选运动信息 集, 所述当前块位于所述并行运动处理域 PR中;
接收单元 603 , 用于接收编码端发送的运动信息指示;
运动信息选择单元 605 , 用于根据所述运动信息指示从所述备选运动 信息集中选择当前块的运动信息;
解码单元 607 , 用于根据所述当前块的运动信息对所述当前块进行运 动补偿处理。
进一步, 所述运动信息确定单元 609为所述并行运动处理域 PR选择 一个或多个空间邻近图像块, 确定所述一个或多个空间邻近图像块中每一 个空间邻近图像块的运动信息是否存在, 如果存在, 则构成 PR邻近运动 信息; 为所述当前块选择一个或多个时间邻近图像块; 确定所述一个或多 个时间邻近图像块中每一个时间邻近图像块的运动信息是否存在, 如果存 在, 则将所述每一个时间邻近图像块的运动信息作为所述备选运动信息集 的一个元素。 所述备选运动信息集构建单元 601用于为当前块利用 PR空 间邻近运动信息和时间运动信息以及当前块的位置信息构建当前块所需的 备选运动信息集, 还用于去除所述备选运动信息集中的重复元素, 以使得 所述备选运动信息集中的元素互异。
进一步, 所述运动信息确定单元 609用于确定所述一个或多个空间邻 近图像块中每一个空间邻近图像块的运动信息是否存在时包括: 如果所述 空间邻近图像块位于当前块所在的解码图像内并可用于辅助当前块的解码 操作, 则所述空间邻近图像块可得, 检测到所述空间邻近图像块的运动信 息则确定所述空间邻近图像块的运动信息存在。 所述运动信息确定单元 609为所述当前块选择一个或多个时间邻近图像块; 确定所述一个或多个 时间邻近图像块中每一个时间邻近图像块的运动信息是否存在,如果存在, 所述运动信息确定单元将所述每一个时间邻近图像块的运动信息作为一个 所述时间邻近运动信息。 所述备选运动信息集构建单元将每一个所述空间 邻近运动信息作为所述当前块备选运动信息集中的一个元素, 将每一个所 述时间邻近运动信息作为所述当前块的备选运动信息集中的一个元素。 所 述运动信息确定单元 609为所述并行运动处理域 PR选择一个或多个空间 邻近图像块包括: 运动信息确定单元 609选择的邻近图像块为并行运动处 理域 PR相邻部分相邻图像块;部分相邻图像块包括: 所述并行运动处理域 PR的宽度为 2M个像素,长度为 2N个像素,则分别取(0,0 )位置左上方图 像块, (Μ,Ο )位置左上方图像块,(2M,0)左上方和右上方两个图像块, (0, N ) 左上方图像块, (0,2N ) 左上方和左下方图像块共 7个图像块为邻近 块。 或者部分相邻图像块包括: 取并行运动处理域 PR左侧和上侧相隔 W 个像素的图像块为相邻块, 其中 W为 4的整数倍。
所述接收单元 603接收的所述当前块的运动信息指示包括当前块的运 动信息的元素在所述备选运动信息集中的索引值, 则所述运动信息选择单 元 605用于根据所述运动信息指示从所述备选运动信息集中选择当前块的 运动信息时包括: 所述运动信息选择单元根据所述索引值在所述备选运动 信息集中查找对应的元素, 所述元素表示的运动信息作为所述当前块的运 动信息。
釆用本发明实施例对视频信号进行编解码的装置, 当前图像块备选运 动信息集中所有运动信息都从时间邻近图像块或所述方形子区域外的空间 邻近图像块取得, 而不包含所述方形子区域内的图像块的运动信息, 因此 无需判断备选运动信息集中每一个运动信息所对应的空间邻近图像块与当 前图像块是否位于同一根据并行运动处理域内。 从硬件的角度来说, 可以 减少处理每个图像块时的判断操作, 降低系统的时延和电路成本。
以上所描述的装置实施例仅仅是示意性的, 其中作为分离部件说明的 单元可以是或者也可以不是物理上分开的, 作为单元显示的部件可以是或 者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到至少两 个网络单元上。 可以根据实际的需要选择其中的部分或者全部模块来实现 本实施例方案的目的。

Claims

1、 一种对视频信号进行编码的方法, 其特征在于, 所述方法包括: 确定并行运动处理域 PR的空间邻近运动信息; 根据所述并行运动处理域 PR 的空间邻近运动信息和当前块的位置信息确 定所述当前块的备选运动信息集, 其中所述当前块位于所述并行运动处理域 PR 中;
从所述当前块的备选运动信息集中选择当前块的运动信息; 根据所述当前块的运动信息对所述当前块进行运动补偿编码, 并将选择出 的所述运动信息的运动信息指示写入编码后码流。
2、 根据权利要求 1所述的方法, 其特征在于, 所述确定并行运动处理域 PR 的空间邻近运动信息包括:
为所述并行运动处理域 PR选择一个或多个空间邻近图像块, 确定所述一个 或多个空间邻近图像块中每一个空间邻近图像块的运动信息是否存在, 如果存 在, 则将所述每一个空间邻近图像块的运动信息作为一个所述空间邻近运动信 息。
3、 根据权利要求 2 所述的方法, 其特征在于, 所述为所述并行运动处理域 PR选择一个或多个空间邻近图像块包括:
选择的邻近图像块为并行运动处理域 PR相邻部分相邻图像块;
所述部分相邻图像块包括: 所述并行运动处理域 PR的宽度为 2M个像素,长 度为 2N个像素,则分别取( 0,0 )位置左上方图像块, ( Μ,Ο )位置左上方图像块, (2Μ,0)左上方和右上方两个图像块, (0 , Ν )左上方图像块, (0,2Ν )左上方 和左下方图像块共 7个图像块为邻近块。
4、 根据权利要求 2 所述的方法, 其特征在于, 所述为所述并行运动处理域 PR选择一个或多个空间邻近图像块包括:
选择的邻近图像块为并行运动处理域 PR相邻部分相邻图像块;
所述部分相邻图像块包括:
取并行运动处理域 PR左侧和上侧相隔 W个像素的图像块为相邻块,其中 W 为 4的整数倍。
5、根据权利要求 1-4中任一权利要求所述的方法, 其特征在于, 所述根据所 述并行运动处理域 PR的空间邻近运动信息与当前块的位置信息确定所述当 前块的备选运动信息集包括:
选取距所述当前块左下角最近的邻近运动信息作为所述当前块的左侧空间备 选运动信息, 选取距所述当前块右上角最近的邻近运动信息作为所述当前块的 上侧空间备选运动信息, 选取距所述当前块左上角最近的邻近运动信息作为所 述当前块的左上侧空间备选运动信息; 将选取的所述备选运动信息组成所述当 前块的备选运动信息集,每一个所述备选运动信息为所述当前块的备选运动 信息集中的一个元素。
6、 根据权利要求 5所述的方法, 其特征在于, 所述根据所述并行运动处理 域 PR的空间邻近运动信息与当前块的位置信息确定所述当前块的备选运动 信息集还包括:
从所述空间备选运动信息集中选取当前块左侧备选运动信息的下方相邻运 动信息作为当前块的左下侧备选运动信息,选取当前块上侧备选运动信息的右侧 相邻运动信息作为当前块的右上侧备选运动信息, 将所述备选运动信息增加到 所述当前块的备选运动信息集中。
7、 根据权利要求 1所述的方法, 其特征在于, 当前块的备选运动信息集还 包括所述当前块的时间邻近运动信息, 其中确定所述时间邻近运动信息包 括:
为当前块选择一个或多个时间邻近图像块; 确定所述一个或多个时间邻近图 像块中每一个时间邻近图像块的运动信息是否存在, 如果存在, 则将所述每一 个时间邻近图像块的运动信息作为一个所述时间邻近运动信息。
8、根据权利要求 1-6中任一权利要求所述的方法, 其特征在于, 所述从所述 备选运动信息集中选择当前块的运动信息包括:
使用所述备选运动信息集中每一个元素表示的运动信息对所述当前块进行运 动补偿编码, 计算率失真代价;
选择具有最小率失真代价元素表示的运动信息作为所述当前块的运动信息。
9、根据权利要求 2所述的方法, 其特征在于, 确定所述一个或多个空间邻近 图像块中每一个空间邻近图像块的运动信息是否存在包括: 如果所述空间邻近图像块位于当前块所在的编码图像内并可用于辅助当前块 的编码操作, 则所述空间邻近图像块可得, 检测到所述空间邻近图像块的运动 信息则确定所述空间邻近图像块的运动信息存在。
10、 根据权利要求 1-9中任一权利要求所述的方法, 其特征在于, 所述当前 块的运动信息指示包括当前块的运动信息的元素在所述备选运动信息集中的索 引值,
则所述将选择出的所述运动信息的运动信息指示写入编码后码流包括:将 表示所述当前块的运动信息的元素在所述备选运动信息集中的索引值写入编码 后码流中以发送到所述解码端用于所述辅助所述解码端确定所述当前块的运动 信息。
11、 根据权利要求 1-10所述的方法,其特征在于所述方法还包括: 去除所述备选运动信息集中的重复元素, 以使得所述备选运动信息集中的元 素互异。
12、 一种对视频信号进行解码的方法, 其特征在于, 所述方法包括: 确定并行运动处理域 PR的空间邻近运动信息; 根据所述并行运动处理域 PR 的空间邻近运动信息与当前块的位置信息确 定所述当前块的备选运动信息集, 所述当前块位于所述并行运动处理域 PR中; 接收编码端发送的运动信息指示; 根据所述运动信息指示从所述备选运动信息集中选择当前块的运动信息; 才艮据所述当前块的运动信息对所述当前块进行运动补偿处理。
13、根据权利要求 12所述方法, 其特征在于, 所述确定并行运动处理域 PR 的空间邻近运动信息包括:
为所述并行运动处理域 PR选择一个或多个空间邻近图像块, 确定所述一个 或多个空间邻近图像块中每一个空间邻近图像块的运动信息是否存在, 如果存 在, 则将所述每一个空间邻近图像块的运动信息作为一个所述空间邻近运动信 息。
14、 根据权利要求 13所述的方法, 其特征在于, 所述并行运动处理域 PR选 择一个或多个空间邻近图像块包括: 选择的邻近图像块为并行运动处理域 PR相邻部分相邻图像块, 所述部分相 邻图像块包括:所述并行运动处理域 PR的宽度为 2M个像素,长度为 2N个像素, 则分别取(0,0 )位置左上方图像块, (Μ,Ο )位置左上方图像块, (2Μ,0)左上方 和右上方两个图像块, (0, Ν )左上方图像块, (0,2Ν )左上方和左下方图像 块共 7个图像块为邻近块。
15、 根据权利要求 13所述的方法, 其特征在于, 所述并行运动处理域 PR选 择一个或多个空间邻近图像块包括:
选择的邻近图像块为并行运动处理域 PR相邻部分相邻图像块, 所述部分相 邻图像块包括:
取所述并行运动处理域 PR左侧和上侧相隔 W个像素的图像块为相邻块, 其 中 W为 4的整数倍。
16、 根据权利要求 12-15 中任一权利要求所述的方法, 其特征在于, 所述备 选运动信息集还包括所述当前块的时间邻近运动信息,确定所述当前块的时 间邻近运动信息包括:
为所述当前块选择一个或多个时间邻近图像块; 确定所述一个或多个时间邻 近图像块中每一个时间邻近图像块的运动信息是否存在, 如果存在, 则将所述 每一个时间邻近图像块的运动信息作为一个所述时间邻近运动信息。
17、 根据权利要求 12-16中任一权利要求所述的方法, 其特征在于, 所述根 据所述并行运动处理域 PR的空间邻近运动信息与当前块的位置信息确定所 述当前块的备选运动信息集包括:
选取距所述当前块左下角最近的邻近运动信息作为所述当前块的左侧空间备 选运动信息, 选取距所述当前块右上角最近的邻近运动信息作为所述当前块的 上侧空间备选运动信息, 选取距所述当前块左上角最近的邻近运动信息作为所 述当前块的左上侧空间备选运动信息; 将选取的所述备选运动信息组成所述当 前块的备选运动信息集,每一个所述备选运动信息为所述当前块的备选运动 信息集中的一个元素。
18、 根据权利要求 17所述的方法, 其特征在于, 根据所述并行运动处理域 PR的空间邻近运动信息与当前块的位置信息确定所述当前块的备选运动信 从所述空间备选运动信息集中选取当前块左侧备选运动信息的下方相邻运 动信息作为当前块的左下侧备选运动信息,选取当前块上侧备选运动信息的右侧 相邻运动信息作为当前块的右上侧备选运动信息, 将所述备选运动信息增加到 所述当前块的备选运动信息集中。
19、 根据权利要求 12-18所述的方法,其特征在于所述方法还包括: 去除所述备选运动信息集中的重复元素, 以使得所述备选运动信息集中的元 素互异。
20、根据权利要求 13所述的方法, 其特征在于, 所述确定所述一个或多个空 间邻近图像块中每一个空间邻近图像块的运动信息是否存在包括:
如果某空间邻近图像块使用帧间预测解码模式进行解码, 则所述空间邻近图 像块的解码信息中包含运动信息, 则确定所述空间邻近图像块的运动信息存在。
21、 根据权利要求 12-20所述的任一方法, 其特征在于, 所述当前块的运动 信息指示包括当前块的运动信息的元素在所述备选运动信息集中的索引值, 则 根据所述运动信息指示从所述备选运动信息集中选择当前块的运动信息包 括:
根据所述索引值在所述备选运动信息集中查找对应的元素, 所述元素表示 的运动信息作为所述当前块的运动信息。
22、 一种对视频信号进行编码的装置, 其特征在于, 所述装置包括: 运动信息确定单元, 用于确定并行运动处理域 PR的空间邻近运动信息; 备选运动信息集构建单元,用于根据所述并行运动处理域 PR的空间邻近运 动信息和当前块的位置信息确定所述当前块的备选运动信息集, 其中所述当 前块位于所述并行运动处理域 PR中;
运动信息选择单元, 用于从所述备选运动信息集中选择当前块的运动信息; 编码单元,用于根据所述当前块的运动信息对所述当前块进行运动补偿编码, 并将选择出的所述运动信息的运动信息指示写入编码后码流。
23、根据权利要求 22所述的装置, 其特征在于, 所述运动信息确定单元用于 确定并行运动处理域 PR的空间邻近运动信息时包括:
所述运动信息确定单元为所述并行运动处理域 PR选择一个或多个空间邻近 图像块, 确定所述一个或多个空间邻近图像块中每一个空间邻近图像块的运动 信息是否存在, 如果存在, 则将所述每一个空间邻近图像块的运动信息作为一 个所述空间邻近运动信息。
24、根据权利要求 23所述的装置, 其特征在于, 所述运动信息确定单元为所 述并行运动处理域 PR选择一个或多个空间邻近图像块包括:
所述运动信息确定单元选择的邻近图像块为并行运动处理域 PR相邻部分相 邻图像块;
所述部分相邻图像块包括: 所述并行运动处理域 PR的宽度为 2M个像素,长 度为 2N个像素,则分别取( 0,0 )位置左上方图像块, ( Μ,Ο )位置左上方图像块, (2Μ,0)左上方和右上方两个图像块, (0 , Ν )左上方图像块, (0,2Ν )左上方 和左下方图像块共 7个图像块为邻近块。
25、根据权利要求 23所述的装置, 其特征在于, 所述运动信息确定单元为所 述并行运动处理域 PR选择一个或多个空间邻近图像块包括:
所述运动信息确定单元选择的邻近图像块为并行运动处理域 PR相邻部分相 邻图像块;
所述部分相邻图像块包括: :
取并行运动处理域 PR左侧和上侧相隔 W个像素的图像块为相邻块,其中 W 为 4的整数倍。
26、根据权利要求 23所述的装置, 其特征在于, 所述备选运动信息集构建单 元用于确定所述一个或多个空间邻近图像块中每一个空间邻近图像块的运动信 息是否存在时包括: 如果所述空间邻近图像块位于当前块所在的编码图像内并 可用于辅助当前块的编码操作, 则所述空间邻近图像块可得, 所述备选运动信 息集构建单元检测到所述空间邻近图像块的运动信息则确定所述空间邻近图像 块的运动信息存在。
27、 根据权利要求 22-26中任一权利要求所述的装置, 其特征在于, 所述备 选运动信息集构建单元用于用于根据所述并行运动处理域 PR的空间邻近运动 信息和当前块的位置信息确定所述当前块的备选运动信息集,包括:
所述备选运动信息集构建单元选取距所述当前块左下角最近的邻近运动信息 作为所述当前块的左侧空间备选运动信息, 选取距所述当前块右上角最近的邻 近运动信息作为所述当前块的上侧空间备选运动信息, 选取距所述当前块左上 角最近的邻近运动信息作为所述当前块的左上侧空间备选运动信息; 将选取的 所述备选运动信息组成所述当前块的备选运动信息集,每一个所述备选运动信 息为所述当前块的备选运动信息集中的一个元素。
28、 根据权利要求 22-26中任一权利要求所述的装置, 其特征在于, 所述备 选运动信息集构建单元用于用于根据所述并行运动处理域 PR的空间邻近运动 信息和当前块的位置信息确定所述当前块的备选运动信息集还包括:
所述备选运动信息集从所述空间备选运动信息集中选取当前块左侧备选运 动信息的下方相邻运动信息作为当前块的左下侧备选运动信息,选取当前块上侧 备选运动信息的右侧相邻运动信息作为当前块的右上侧备选运动信息, 将所述 备选运动信息增加到所述当前块的备选运动信息集中
29、 根据权利要求 22-27任一权利要求所述的装置, 其特征在于, 所述运动 信息选择单元用于从所述备选运动信息集中选择当前块的运动信息,包括: 使用所述备选运动信息集中每一个元素表示的运动信息对所述当前块进行运 动补偿编码, 计算率失真代价; 选择具有最小率失真代价元素表示的运动信息 作为所述当前块的运动信息。
30、 根据权利要求 22-29所述的任一权利要求所述的装置, 其特征在于, 当 前块的运动信息的元素在所述备选运动信息集中的索引值, 编码单元将选择出 的所述运动信息的运动信息指示写入编码后码流包括:
将包含所述当前块的运动信息的元素在所述备选运动信息集中的索引值写入 编码后码流中以发送到所述解码端用于辅助所述在解码端确定所述当前块的运 动信息。
31、 一种对视频信号进行解码的装置, 其特征在于, 所述装置包括: 运动信息确定单元,用于确定并行运动处理域 PR的空间邻近运动信息; 备选运动信息集构建单元,用于根据所述并行运动处理域 PR的空间邻近运 动信息与当前块的位置信息确定所述当前块的备选运动信息集, 所述当前块位 于所述并行运动处理域 PR中;
接收单元, 用于接收编码端发送的运动信息指示; 运动信息选择单元, 用于根据所述运动信息指示从所述备选运动信息集中 选择当前块的运动信息; 解码单元, 用于根据所述当前块的运动信息对所述当前块进行运动补偿处 理。
32、 根据权利要求 31 所述的装置, 其特征在于所述运动信息确定单元确定 并行运动处理域 PR的空间邻近运动信息时包括:
所述运动信息确定单元为所述并行运动处理域 PR选择一个或多个空间邻 近图像块, 确定所述一个或多个空间邻近图像块中每一个空间邻近图像块的运 动信息是否存在, 如果存在, 则将所述每一个空间邻近图像块的运动信息作为 一个所述空间邻近运动信息。
33、根据权利要求 32所述的装置, 其特征在于, 所述运动信息确定单元为所 述并行运动处理域 PR选择一个或多个空间邻近图像块包括:
所述运动信息确定单元选择的邻近图像块为并行运动处理域 PR相邻部分相 邻图像块;
所述部分相邻图像块包括: 所述并行运动处理域 PR的宽度为 2M个像素,长 度为 2N个像素,则分别取( 0,0 )位置左上方图像块, ( Μ,Ο )位置左上方图像块, (2Μ,0)左上方和右上方两个图像块, (0 , Ν )左上方图像块, (0,2Ν )左上方 和左下方图像块共 7个图像块为邻近块。
34、根据权利要求 32所述的装置, 其特征在于, 所述运动信息确定单元为所 述并行运动处理域 PR选择一个或多个空间邻近图像块包括:
所述运动信息确定单元选择的邻近图像块为并行运动处理域 PR相邻部分相 邻图像块;
所述部分相邻图像块包括: :
取并行运动处理域 PR左侧和上侧相隔 W个像素的图像块为相邻块,其中 W 为 4的整数倍。
35、根据权利要求 32所述的装置, 其特征在于, 所述备选运动信息集构建单 元用于确定所述一个或多个空间邻近图像块中每一个空间邻近图像块的运动信 息是否存在时包括: 如果所述空间邻近图像块位于当前块所在的编码图像内并 可用于辅助当前块的编码操作, 则所述空间邻近图像块可得, 所述备选运动信 息集构建单元检测到所述空间邻近图像块的运动信息则确定所述空间邻近图像 块的运动信息存在。
36、 根据权利要求 31-35中任一权利要求所述的装置, 其特征在于, 所述备 选运动信息集构建单元用于用于根据所述并行运动处理域 PR的空间邻近运动 信息和当前块的位置信息确定所述当前块的备选运动信息集,包括:
所述备选运动信息集构建单元选取距所述当前块左下角最近的邻近运动信息 作为所述当前块的左侧空间备选运动信息, 选取距所述当前块右上角最近的邻 近运动信息作为所述当前块的上侧空间备选运动信息, 选取距所述当前块左上 角最近的邻近运动信息作为所述当前块的左上侧空间备选运动信息; 将选取的 所述备选运动信息组成所述当前块的备选运动信息集,每一个所述备选运动信 息为所述当前块的备选运动信息集中的一个元素。
37、 根据权利要求 31-36中任一权利要求所述的装置, 其特征在于, 所述备 选运动信息集构建单元用于用于根据所述并行运动处理域 PR的空间邻近运动 信息和当前块的位置信息确定所述当前块的备选运动信息集还包括:
所述备选运动信息集从所述空间备选运动信息集中选取当前块左侧备选运 动信息的下方相邻运动信息作为当前块的左下侧备选运动信息,选取当前块上侧 备选运动信息的右侧相邻运动信息作为当前块的右上侧备选运动信息, 将所述 备选运动信息增加到所述当前块的备选运动信息集中
38、 根据权利要求 31-37所述的任一装置, 其特征在于所述接收单元接收的 所述当前块的运动信息指示包括当前块的运动信息的元素在所述备选运动信息 集中的索引值, 则所述运动信息选择单元用于根据所述运动信息指示从所述 备选运动信息集中选择当前块的运动信息时包括:
所述运动信息选择单元根据所述索引值在所述备选运动信息集中查找对 应的元素, 所述元素表示的运动信息作为所述当前块的运动信息。
PCT/CN2012/085026 2011-11-23 2012-11-22 视频图像编解码的方法及装置 WO2013075639A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110376608.0A CN103139556B (zh) 2011-11-23 2011-11-23 视频图像编解码的方法及装置
CN201110376608.0 2011-11-23

Publications (1)

Publication Number Publication Date
WO2013075639A1 true WO2013075639A1 (zh) 2013-05-30

Family

ID=48469120

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/085026 WO2013075639A1 (zh) 2011-11-23 2012-11-22 视频图像编解码的方法及装置

Country Status (2)

Country Link
CN (1) CN103139556B (zh)
WO (1) WO2013075639A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072356A (zh) * 2006-05-12 2007-11-14 中国科学院计算技术研究所 一种运动矢量预测方法
CN101686393A (zh) * 2008-09-28 2010-03-31 华为技术有限公司 应用于模板匹配的快速运动搜索方法及装置
WO2010078212A1 (en) * 2008-12-31 2010-07-08 Advanced Micro Devices, Inc. Multiple-candidate motion estimation with advanced spatial filtering of differential motion vectors
CN102148990A (zh) * 2011-04-28 2011-08-10 北京大学 一种运动矢量预测装置和方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072356A (zh) * 2006-05-12 2007-11-14 中国科学院计算技术研究所 一种运动矢量预测方法
CN101686393A (zh) * 2008-09-28 2010-03-31 华为技术有限公司 应用于模板匹配的快速运动搜索方法及装置
WO2010078212A1 (en) * 2008-12-31 2010-07-08 Advanced Micro Devices, Inc. Multiple-candidate motion estimation with advanced spatial filtering of differential motion vectors
CN102148990A (zh) * 2011-04-28 2011-08-10 北京大学 一种运动矢量预测装置和方法

Also Published As

Publication number Publication date
CN103139556A (zh) 2013-06-05
CN103139556B (zh) 2016-12-28

Similar Documents

Publication Publication Date Title
JP6821730B2 (ja) 符号化装置、符号化方法、復号装置、復号方法、及びプログラム
TWI619374B (zh) 利用仿射運動補償的視訊編碼方法與裝置
US10097850B2 (en) Method and apparatus for removing redundancy in motion vector predictors
KR101422422B1 (ko) Dmvd 처리 향상을 위한 시스템 및 방법
KR101239567B1 (ko) 움직임 추정에 대한 검색 범위 선택 방법과 그의 시스템 및 컴퓨터 판독가능 저장 매체
JP2021528896A (ja) 部分的コスト計算
JP2024001175A (ja) 候補リスト枝刈りの方法及び装置
BR112020015246A2 (pt) refinamento de vetor de movimento restrito de hardware acessível
EP3643070A1 (en) Motion-based priority for the construction of candidate lists in video coding
JP6945654B2 (ja) 低減されたメモリアクセスを用いてfrucモードでビデオデータを符号化又は復号する方法及び装置
JP7224005B2 (ja) 映像処理方法、装置、不揮発性記憶媒体、コンピュータプログラム
JP4663792B2 (ja) 多視点動映像を符号化及び復号化する装置及び方法
TW201424399A (zh) 視訊編碼及解碼方法及使用該方法之裝置
KR20190143496A (ko) 픽쳐 예측 방법 및 관련 장치
WO2014173092A1 (zh) 一种图像预测编码方法及图像编码器
KR20130119465A (ko) 블록 기반의 샘플링 코딩 시스템
CN103370934A (zh) 多视点视频编码/解码装置和方法
CN112887732B (zh) 一种权值可配置的帧间帧内联合预测编解码的方法及装置
WO2013067899A1 (zh) 视频图像编解码的方法及装置
US9077996B2 (en) Predicted motion vectors
WO2013075639A1 (zh) 视频图像编解码的方法及装置
WO2013064092A1 (zh) 视频图像编解码的方法及装置
WO2011137816A1 (zh) 视频图像编码方法、解码方法和装置
TW201501511A (zh) 框內預測方法及系統
JP2011091498A (ja) 動画像符号化装置、動画像復号化装置、動画像符号化方法、及び動画像復号化方法

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: 12850782

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12850782

Country of ref document: EP

Kind code of ref document: A1