TWI694713B - Method and apparatus for processing video data - Google Patents

Method and apparatus for processing video data Download PDF

Info

Publication number
TWI694713B
TWI694713B TW107129127A TW107129127A TWI694713B TW I694713 B TWI694713 B TW I694713B TW 107129127 A TW107129127 A TW 107129127A TW 107129127 A TW107129127 A TW 107129127A TW I694713 B TWI694713 B TW I694713B
Authority
TW
Taiwan
Prior art keywords
coding unit
information
motion information
sub
encoding
Prior art date
Application number
TW107129127A
Other languages
Chinese (zh)
Other versions
TW201921934A (en
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 TW201921934A publication Critical patent/TW201921934A/en
Application granted granted Critical
Publication of TWI694713B publication Critical patent/TWI694713B/en

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/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • H04N19/139Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • 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

Landscapes

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

Abstract

The embodiment of the present invention provides a method and apparatus for processing video data, which relate to the field of data processing. The method includes: determining whether the information of the current coding unit satisfies the coding and decoding condition of the sub coding unit; if the information of the current coding unit satisfies the coding and decoding condition of the sub coding unit, acquiring motion information of each of the at least two sub coding units, and determining a first candidate motion information list of the current coding unit according to the motion information of each of the at least two sub coding units; and obtaining prediction information of the current coding unit according to the first candidate motion information list; wherein the at least two sub-coding units are sub-coding unit obtained after dividing the current coding unit, and the first candidate motion information list includes motion information of each of the at least two sub-coding units and candidate motion information of the current coding unit.

Description

處理視頻資料的方法和裝置Method and device for processing video data

本發明實施例涉及資料處理領域,尤其涉及一種處理視頻資料的方法和裝置。Embodiments of the present invention relate to the field of data processing, and in particular, to a method and device for processing video data.

隨著資訊技術的發展,視頻資料越來越成為日常生活中使用者獲取資訊的主要方式,通常視頻資料的資料量比較大(尤其是高清視頻等),為了減小視頻資料佔用的存儲空間,並且減少傳輸視頻資料的過程中佔用的傳輸頻寬,可以將視頻資料壓縮編碼後存儲或者傳輸,在播放該視頻資料時,再將視頻資料解碼並播放。With the development of information technology, video data has increasingly become the main way for users to obtain information in daily life. Generally, the amount of video data is relatively large (especially high-definition video, etc.). In order to reduce the storage space occupied by video data, In addition, the transmission bandwidth occupied during the transmission of video data can be reduced. The video data can be compressed and stored or transmitted. When the video data is played, the video data can be decoded and played again.

目前,在對視頻資料編解碼的過程中,視頻資料的編碼和解碼為兩個互逆的過程,以對視頻資料編碼為例,在一種編碼方法中,可以以編碼單元為單位對視頻資料的每一幀進行編碼。具體的,將一個視頻幀(即一幅圖像)分為至少兩個圖像塊(每一個圖像塊可以稱為一個編碼單元),然後針對每一個編碼單元,確定該編碼單元的運動資訊,並根據該編碼單元的運動資訊確定該編碼單元的預測值(即該編碼單元的圖元值),以及將該編碼單元預測資訊,對該編碼單元編碼,如此,錄影設備對視頻資料的每一個視頻幀的所有編碼單元均按照上述的方法編碼,從而完成對該視頻資料的編碼。在另一種編碼方法中,由於上述基於編碼單元的編碼方法中,一個編碼單元中的所有圖元值都採用了同一個運動資訊,而在該編碼單元中,可能並不是所有的圖元值具有相同的運動資訊,在這種情況下,可以將一個編碼單元再劃分為至少兩個子編碼單元,然後採用子編碼單元運動向量預測(sub-coding unit based motion vector prediction,SMVP)技術、解碼端運動向量匯出(decoder motion vector derivation,DMVD)技術,或非平動運動模型,得到該編碼單元的每一個子編碼單元的運動資訊,進一步,根據每一個子編碼單元的運動資訊確定出每一個子編碼單元的預測值,從而得到該編碼單元的預測值,最後根據編碼單元的預測值,對該編碼單元編碼,如此,錄影設備對視頻資料的每一個視頻幀的所有編碼單元均按照上述方法編碼,從而完成對該視頻資料的編碼。At present, in the process of encoding and decoding video materials, the encoding and decoding of video materials are two reciprocal processes. Taking the encoding of video materials as an example, in an encoding method, the encoding unit can be used to encode the video data. Encode every frame. Specifically, a video frame (that is, an image) is divided into at least two image blocks (each image block may be called a coding unit), and then for each coding unit, the motion information of the coding unit is determined , And determine the prediction value of the coding unit (that is, the primitive value of the coding unit) according to the motion information of the coding unit, and the prediction information of the coding unit, and encode the coding unit. All coding units of a video frame are coded according to the method described above, thereby completing coding of the video material. In another coding method, since the above coding method based on coding units, all the primitive values in one coding unit use the same motion information, and in this coding unit, not all primitive values may have For the same motion information, in this case, one coding unit can be subdivided into at least two sub-coding units, and then sub-coding unit based motion vector prediction (SMVP) technology and decoding end are used. Decoder motion vector derivation (DMVD) technology, or non-translational motion model, obtains the motion information of each sub-coding unit of the coding unit, and further determines each one according to the motion information of each sub-coding unit The prediction value of the sub-coding unit, thereby obtaining the prediction value of the coding unit, and finally coding the coding unit according to the prediction value of the coding unit. In this way, the video recording device performs the above method on all coding units of each video frame of the video material Encoding to complete the encoding of the video material.

然而,在上述方法中,在編碼單元的尺寸較小時,可能無需將編碼單元劃分為子編碼單元進行編碼或解碼,而錄影設備仍將編碼單元劃分為子編碼單元,並對子編碼單元編碼或解碼,以完成該編碼單元的編解碼,因此可能導致視頻資料編解碼比較複雜。However, in the above method, when the size of the coding unit is small, it may not be necessary to divide the coding unit into sub-coding units for encoding or decoding, but the video recording device still divides the coding unit into sub-coding units and encodes the sub-coding units Or decoding, to complete the coding and decoding of the coding unit, which may lead to more complicated coding and decoding of video materials.

本申請提供一種處理視頻資料的方法和裝置,能夠降低視頻資料編解碼的複雜度。The present application provides a method and device for processing video data, which can reduce the complexity of video data encoding and decoding.

為達到上述目的,本申請採用如下技術方案:In order to achieve the above purpose, this application adopts the following technical solutions:

第一方面,本申請提供一種處理視頻資料的方法,該方法可以包括:確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件;若當前編碼單元的資訊滿足子編碼單元編解碼條件,則獲取至少兩個子編碼單元各自的運動資訊;並且根據該至少兩個子編碼單元各自的運動資訊,確定當前編碼單元的第一候選運動資訊清單,以及根據第一候選運動資訊清單,得到當前編碼單元的預測資訊。其中,當前編碼單元的資訊滿足子編碼單元編解碼條件包括當前編碼單元的資訊滿足下述條件中的至少一項:In the first aspect, the present application provides a method for processing video data. The method may include: determining whether the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit; if the information of the current coding unit meets the coding and decoding conditions of the sub-coding unit, obtain The respective motion information of at least two sub-coding units; and according to the respective motion information of the at least two sub-coding units, determine the first candidate motion information list of the current coding unit, and obtain the current coding unit according to the first candidate motion information list Forecast information. Wherein, the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit includes that the information of the current coding unit satisfies at least one of the following conditions:

當前編碼單元的尺寸資訊滿足子編碼單元編解碼尺寸條件;The size information of the current coding unit meets the coding and decoding size conditions of the sub-coding unit;

至少一個與當前編碼單元相鄰的編碼單元的預測資訊根據相鄰的編碼單元的子編碼單元的運動資訊得到。The prediction information of at least one coding unit adjacent to the current coding unit is obtained according to the motion information of the sub-coding units of the adjacent coding unit.

當前編碼單元包括編碼塊,編碼塊包括第一視頻幀中的一個圖像塊,至少兩個子編碼單元為當前編碼單元經劃分後獲得的子編碼單元,子編碼單元包括子編碼塊,第一候選運動資訊清單包括至少兩個子編碼單元各自的運動資訊和當前編碼單元的候選運動資訊。The current coding unit includes a coding block. The coding block includes an image block in the first video frame. At least two sub-coding units are sub-coding units obtained by dividing the current coding unit. The sub-coding unit includes a sub-coding block. The first The candidate motion information list includes motion information of each of the at least two sub-coding units and candidate motion information of the current coding unit.

本申請提供的處理視頻資料的方法,由於可以根據當前編碼單元的資訊是否滿足子編碼單元編解碼條件,根據當前編碼單元的實際情況確定是否將當前編碼單元分為子編碼單元進行編碼或解碼,在當前編碼單元的尺寸較小時,無需再將當前編碼單元分為子編碼單元,再進行編碼或解碼,因此,能夠降低視頻資料編解碼的複雜度。The method for processing video data provided by this application can determine whether to divide the current coding unit into sub-coding units for encoding or decoding according to the actual conditions of the current coding unit according to whether the information of the current coding unit satisfies the coding and decoding conditions of the sub coding unit, When the size of the current coding unit is small, there is no need to divide the current coding unit into sub-coding units, and then encode or decode. Therefore, the complexity of encoding and decoding of video materials can be reduced.

在第一方面的第一種可選的實現方式中,本申請提供的處理視頻資料的方法可以應用於解碼設備,上述根據第一候選運動資訊清單,得到當前編碼單元的預測資訊的方法可以包括:獲取用於指示第一候選運動資訊清單中的第一目標候選運動資訊的指示資訊,並且根據第一候選運動資訊清單和第一目標候選運動資訊的指示資訊,確定第一目標候選運動資訊,以及根據第一目標候選運動資訊,確定當前編碼單元的預測資訊。In a first optional implementation manner of the first aspect, the method for processing video data provided by the present application may be applied to a decoding device. The above method for obtaining prediction information of a current coding unit according to the first candidate motion information list may include: : Acquire instruction information for indicating the first target candidate sports information in the first candidate sports information list, and determine the first target candidate sports information based on the first candidate sports information list and the indication information of the first target candidate sports information, And according to the first target candidate motion information, the prediction information of the current coding unit is determined.

本申請中,解碼設備獲取第一候選運動資訊清單之後,該解碼設備可以從其接收的當前編碼單元的碼流中獲取第一目標候選運動資訊的指示資訊,如此,解碼設備可以根據第一候選運動資訊清單和第一目標候選運動資訊的指示資訊準確地確定第一目標候選運動資訊。In the present application, after the decoding device obtains the first candidate motion information list, the decoding device may obtain indication information of the first target candidate motion information from the code stream of the current coding unit it receives, so that the decoding device may use the first candidate The sports information list and the indication information of the first target candidate sports information accurately determine the first target candidate sports information.

在第一方面的第二種可選的實現方式中,本申請提供的處理視頻資料的方法可以應用於解碼設備,若當前編碼單元的資訊不滿足子編碼單元編解碼條件,則本申請提供的處理視頻資料的方法還可以包括:確定當前編碼單元的第二候選運動資訊清單,並且獲取用於指示第二候選運動資訊清單中的第二目標候選運動資訊的指示資訊,以及根據第二候選運動資訊清單和第二目標候選運動資訊的指示資訊,確定第二目標候選運動資訊,最後根據第二目標候選運動資訊,確定當前編碼單元的預測資訊,該第二候選運動資訊清單包括當前編碼單元的候選運動資訊,不包括至少兩個子編碼單元各自的運動資訊。In a second optional implementation manner of the first aspect, the method for processing video data provided by the present application may be applied to a decoding device. If the information of the current encoding unit does not satisfy the encoding and decoding conditions of the sub-encoding unit, the The method for processing video data may further include: determining a second candidate motion information list of the current coding unit, and acquiring indication information for indicating the second target candidate motion information in the second candidate motion information list, and according to the second candidate motion The information list and the indication information of the second target candidate motion information determine the second target candidate motion information, and finally determine the prediction information of the current coding unit according to the second target candidate motion information. The second candidate motion information list includes the current coding unit's The candidate motion information does not include motion information of at least two sub-coding units.

本申請中,在當前編碼單元的資訊不滿足子編碼單元編解碼條件的情況下,無需獲取至少兩個子編碼單元各自的運動資訊(即無需將當前編碼單元劃分為子編碼單元編解碼),可以直接根據第二候選運動資訊清單中的第二目標候選運動資訊確定當前編碼單元的預測資訊,如此,能夠降低視頻資料編解碼的複雜度。In this application, when the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, there is no need to obtain the motion information of at least two sub-coding units (that is, there is no need to divide the current coding unit into sub-coding units). The prediction information of the current coding unit can be directly determined according to the second target candidate motion information in the second candidate motion information list, so that the complexity of video data encoding and decoding can be reduced.

在第一方面的第二種可選的實現方式中,本申請提供的處理視頻資料的方法可以應用於解碼設備,該方法還可以包括:解碼設備解碼其接收到當前編碼單元編碼之後的碼流,得到第一殘差資訊,並且根據當前編碼單元的預測資訊和第一殘差資訊,確定當前編碼單元的重建資訊。In a second optional implementation manner of the first aspect, the method for processing video data provided by the present application may be applied to a decoding device, and the method may further include: the decoding device decodes the code stream after receiving the current encoding unit encoding To obtain the first residual information, and determine the reconstruction information of the current coding unit based on the prediction information of the current coding unit and the first residual information.

本申請中,解碼設備根據當前編碼單元的預測資訊和第一殘差資訊,確定當前編碼單元的重建資訊,即該解碼設備可以獲取當前編碼單元的完整資訊,進而解碼設備可以通過確定所有編碼單元的重建資訊,得到待解碼的視頻資料的完整資訊,如此,解碼設備可以順利地播放視頻資料。In this application, the decoding device determines the reconstruction information of the current coding unit based on the prediction information of the current coding unit and the first residual information, that is, the decoding device can obtain the complete information of the current coding unit, and then the decoding device can determine all the coding units by Reconstruction information, get the complete information of the video data to be decoded, so that the decoding device can play the video data smoothly.

在第一方面的第四種可選的實現方式中,本申請提供的處理視頻資料的方法可以應用於編碼設備,上述根據第一候選運動資訊清單,得到當前編碼單元的預測資訊的方法可以包括:在第一候選運動資訊清單中確定第一目標候選運動資訊,並且根據第一目標候選運動資訊,確定當前編碼單元的預測資訊。In a fourth optional implementation manner of the first aspect, the method for processing video data provided by the present application may be applied to an encoding device. The above method for obtaining prediction information of the current encoding unit according to the first candidate motion information list may include: : Determine the first target candidate motion information in the first candidate motion information list, and determine the prediction information of the current coding unit according to the first target candidate motion information.

本申請中,編碼設備可以根據至少兩個子編碼單元各自的運動資訊,並結合當前編碼單元的運動資訊確定當前編碼單元的候選運動資訊清單,然後採用率失真優化技術,從候選運動資訊清單中確定最優的運行資訊,從而根據該最優的運動資訊確定當前編碼單元的預測資訊,可以使得確定的當前編碼單元的預測資訊更加準確。In this application, the coding device can determine the candidate motion information list of the current coding unit according to the motion information of at least two sub-coding units and combine the motion information of the current coding unit, and then use rate distortion optimization technology to select from the candidate motion information list Determining the optimal operating information, thereby determining the prediction information of the current coding unit according to the optimal motion information, can make the determined prediction information of the current coding unit more accurate.

在第一方面的第五種可選的實現方式中,本申請提供的處理視頻資料的方法可以應用於編碼設備,若當前編碼單元的資訊不滿足子編碼單元編解碼條件,本申請提供的處理視頻資料的方法還可以包括:確定當前編碼單元的第二候選運動資訊清單,並且在第二候選運動資訊清單中確定第二目標候選運動資訊,以及根據第二目標候選運動資訊,確定當前編碼單元的預測資訊,該第二候選運動資訊清單包括當前編碼單元的候選運動資訊,不包括至少兩個子編碼單元各自的運動資訊。In a fifth optional implementation manner of the first aspect, the method for processing video data provided by the present application may be applied to an encoding device. If the information of the current encoding unit does not satisfy the encoding and decoding conditions of the sub-encoding unit, the processing provided by the present application The video data method may further include: determining a second candidate motion information list of the current coding unit, and determining second target candidate motion information in the second candidate motion information list, and determining the current coding unit based on the second target candidate motion information The prediction information of the second candidate motion information list includes candidate motion information of the current coding unit, but does not include motion information of at least two sub-coding units.

本申請中,在當前編碼單元的資訊不滿足子編碼單元編解碼條件的情況下,無需獲取至少兩個子編碼單元各自的運動資訊(即無需將當前編碼單元劃分為子編碼單元編碼),編碼設備可以直接根據第二候選運動資訊清單中的第二目標候選運動資訊(該第二目標候選運動資訊為當前編碼單元的候選運動資訊)直接確定當前編碼單元的預測資訊,如此,能夠降低視頻資料編解碼的複雜度。In this application, when the information of the current coding unit does not meet the coding and decoding conditions of the sub-coding unit, it is not necessary to obtain the motion information of at least two sub-coding units (that is, there is no need to divide the current coding unit into sub-coding units) and encode The device can directly determine the prediction information of the current coding unit based on the second target candidate motion information in the second candidate motion information list (the second target candidate motion information is the candidate motion information of the current coding unit), so that the video data can be reduced Codec complexity.

在第一方面的第六種可選的實現方式中,本申請提供的處理視頻資料的方法可以應用於編碼設備,該方法還可以包括:將用於指示目標候選運動資訊的指示資訊編入當前編碼單元的碼流。In a sixth optional implementation manner of the first aspect, the method for processing video data provided by the present application may be applied to an encoding device, and the method may further include: incorporating indication information for indicating target candidate motion information into the current encoding The code stream of the unit.

本申請中,編碼設備完成對當前編碼單元的編碼後,編碼設備可以將其確定的第一目標候選運動資訊的指示資訊或第二目標候選運動資訊的指示資訊編入碼流,如此,在解碼編碼接收到當前編碼單元編碼後的碼流時,解碼設備可以從碼流中獲取當前編碼單元的第一目標候選運動資訊的指示資訊或第二目標候選運動資訊的指示資訊。In the present application, after the encoding device finishes encoding the current encoding unit, the encoding device may encode the indication information of the first target candidate motion information or the second target candidate motion information it determines into the code stream. When receiving the code stream encoded by the current coding unit, the decoding device may obtain the indication information of the first target candidate motion information or the second target candidate motion information of the current coding unit from the code stream.

在第一方面的第七種可選的實現方式中,本申請提供的處理視頻資料的方法可以應用於編碼設備,該方法可以包括:編碼設備獲取當前編碼單元的原始資訊,並且根據當前編碼單元的預測資訊和當前編碼單元的原始資訊,對當前編碼單元編碼。In a seventh optional implementation manner of the first aspect, the method for processing video data provided in this application may be applied to an encoding device. The method may include: the encoding device obtains the original information of the current encoding unit, and according to the current encoding unit Prediction information and the original information of the current coding unit, encoding the current coding unit.

本申請中,根據當前編碼單元的預測資訊和當前編碼單元的原始資訊,對該當前編碼單元編碼,進而編碼設備可以通過對所有編碼單元編碼,得到編碼後的視頻資料,如此,編碼設備可以將該視頻資料壓縮,從而存儲該視頻資料時,無需佔用較大的存儲空間,編碼設備將該視頻資料發送給其他設備時,無需佔用較大的傳輸頻寬,如此,對視頻資料編碼有利於視頻資料的存儲和快速傳輸。In this application, according to the prediction information of the current coding unit and the original information of the current coding unit, the current coding unit is coded, and then the coding device can obtain the encoded video data by coding all the coding units. The video data is compressed so that when the video data is stored, there is no need to occupy a large storage space. When the encoding device sends the video data to other devices, there is no need to occupy a large transmission bandwidth. Thus, encoding the video data is beneficial to the video Data storage and fast transmission.

第二方面,本申請提供一種處理視頻資料的方法,該方法可以包括:確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件,若當前編碼單元的資訊滿足子編碼單元編解碼條件,獲取至少兩個子編碼單元各自的運動資訊,至少兩個子編碼單元為當前編碼單元經劃分後獲得的子編碼單元,並且根據至少兩個子編碼單元各自的運動資訊,得到當前編碼單元的預測資訊。In a second aspect, the present application provides a method for processing video data. The method may include: determining whether the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit, and if the information of the current coding unit meets the coding and decoding conditions of the sub-coding unit, obtain at least The motion information of the two sub-coding units, at least two sub-coding units are sub-coding units obtained by dividing the current coding unit, and the prediction information of the current coding unit is obtained according to the motion information of the at least two sub-coding units.

其中,當前編碼單元的資訊滿足子編碼單元編解碼條件包括當前編碼單元的資訊滿足下述條件中的至少一項:Wherein, the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit includes that the information of the current coding unit satisfies at least one of the following conditions:

當前編碼單元的尺寸資訊滿足子編碼單元編解碼尺寸條件;The size information of the current coding unit meets the coding and decoding size conditions of the sub-coding unit;

至少一個與當前編碼單元相鄰的編碼單元的預測資訊根據相鄰的編碼單元的子編碼單元的運動資訊得到。The prediction information of at least one coding unit adjacent to the current coding unit is obtained according to the motion information of the sub-coding units of the adjacent coding unit.

本申請提供的處理視頻資料的方法,由於可以確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件,並且根據當前編碼單元的實際情況確定是否將當前編碼單元分為子編碼單元進行編解碼,在當前編碼單元的尺寸較小時,無需再將當前編碼單元分為子編碼單元,再進行編解碼,因此,能夠降低視頻資料編解碼的複雜度。The method for processing video data provided by this application can determine whether the information of the current coding unit meets the coding and decoding conditions of the sub-coding unit, and determines whether to divide the current coding unit into sub-coding units for coding and decoding according to the actual situation of the current coding unit, When the size of the current coding unit is small, there is no need to divide the current coding unit into sub-coding units and then perform coding and decoding. Therefore, the complexity of video data coding and decoding can be reduced.

在第二方面的第一種可選的實現方式中,上述獲取至少兩個子編碼單元各自的運動資訊的方法可以包括:獲取當前編碼單元的運動資訊,並且分別以當前編碼單元的運動資訊為至少兩個子編碼單元各自的初始運動資訊進行運動搜索,從而得到至少兩個子編碼單元各自的運動資訊。In a first optional implementation manner of the second aspect, the foregoing method for acquiring motion information of at least two sub-coding units may include: acquiring motion information of a current coding unit, and using the motion information of the current coding unit as Each initial motion information of at least two sub-coding units performs a motion search, so as to obtain respective motion information of at least two sub-coding units.

本申請中,可以採用搜索演算法,確定當前編碼單元的運動資訊,然後再確定至少兩個子編碼單元各自的運動資訊,可以準確地確定至少兩個子編碼單元各自的運動資訊。In this application, a search algorithm can be used to determine the motion information of the current coding unit, and then determine the motion information of each of the at least two sub-coding units, so that the motion information of the at least two sub-coding units can be accurately determined.

在第二方面的第二種可選的實現方式中,若當前編碼單元的資訊不滿足子編碼單元編解碼條件,本申請提供的視頻資料的方法還可以包括:獲取當前編碼單元的運動資訊,並且根據當前編碼單元的運動資訊,確定當前編碼單元的預測資訊。In a second optional implementation manner of the second aspect, if the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, the method of video data provided by the present application may further include: obtaining the motion information of the current coding unit, And according to the motion information of the current coding unit, the prediction information of the current coding unit is determined.

本申請中,在當前編碼單元的資訊不滿足子編碼單元編解碼條件的情況下,無需獲取至少兩個子編碼單元各自的運動資訊(即無需將當前編碼單元劃分為子編碼單元編解碼),可以直接根據當前編碼單元的運動資訊,確定當前編碼單元的預測資訊,如此,能夠降低視頻資料編解碼的複雜度。In this application, when the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, there is no need to obtain the motion information of at least two sub-coding units (that is, there is no need to divide the current coding unit into sub-coding units). The prediction information of the current coding unit can be directly determined according to the motion information of the current coding unit. In this way, the complexity of video data encoding and decoding can be reduced.

在第二方面的第三種可選的實現方式中,本申請提供的處理視頻資料的方法可以應用於解碼設備,上述獲取至少兩個子編碼單元各自的運動資訊的方法可以包括:獲取預測模式指示資訊,該預測模式指示資訊的值用於指示預測模式是否為仿射變換模式,若預測模式指示資訊的值指示當前預測模式為仿射變換模式,獲取當前編碼單元的至少兩個圖元位置的運動資訊,並且根據至少兩個圖元位置的運動資訊,確定至少兩個子編碼單元各自的運動資訊。In a third optional implementation manner of the second aspect, the method for processing video data provided in this application may be applied to a decoding device, and the above method for acquiring motion information of at least two sub-coding units may include: acquiring a prediction mode Indication information, the value of the prediction mode indication information is used to indicate whether the prediction mode is an affine transformation mode, and if the value of the prediction mode indication information indicates that the current prediction mode is an affine transformation mode, at least two primitive positions of the current coding unit are obtained And the motion information of at least two sub-coding units according to the motion information of at least two picture element positions.

本申請中,由於編碼設備可以將預測模式指示資訊編入當前編碼單元的碼流,因此解碼設備可以從其接收的當前編碼單元編碼之後的碼流中獲取當前編碼單元的預測模式指示資訊,並根據預測模式指示資訊確定是否採用非平動運動模型的仿射變換模式確定當前編碼單元的預測資訊。In this application, since the encoding device can encode the prediction mode indication information into the code stream of the current encoding unit, the decoding device can obtain the prediction mode indication information of the current encoding unit from the code stream after encoding the current encoding unit it receives, and according to The prediction mode indication information determines whether to use the affine transformation mode of the non-translational motion model to determine the prediction information of the current coding unit.

在第二方面的第四種可選的實現方式中,本申請提供的處理視頻資料的方法可以應用於編碼設備,上述獲取至少兩個子編碼單元各自的運動資訊的方法可以包括:獲取當前編碼單元的至少兩個圖元位置的運動資訊,並且根據至少兩個圖元位置的運動資訊,確定至少兩個子編碼單元各自的運動資訊。In a fourth optional implementation manner of the second aspect, the method for processing video data provided by the present application may be applied to an encoding device, and the above method for acquiring motion information of at least two sub-encoding units may include: acquiring the current encoding The motion information of at least two primitive positions of the unit, and according to the motion information of the at least two primitive positions, determine the respective motion information of the at least two sub-coding units.

在第二方面的第五種可選的實現方式中,本申請提供的處理視頻資料的方法可以應用於編碼設備,該方法還可以包括:根據當前編碼單元的預測資訊,確定當前編碼單元的預測模式,並且將預測模式指示資訊編入當前編碼單元的碼流,該預測模式指示資訊的值用於指示預測模式是否為仿射變換模式。In a fifth optional implementation manner of the second aspect, the method for processing video data provided in this application may be applied to an encoding device, and the method may further include: determining the prediction of the current coding unit according to the prediction information of the current coding unit Mode, and the prediction mode indication information is coded into the code stream of the current coding unit. The value of the prediction mode indication information is used to indicate whether the prediction mode is an affine transformation mode.

本申請中,編碼設備將當前編碼單元的預測模式指示資訊編入當前編碼單元的碼流,如此,解碼設備接收到當前編碼單元的碼流之後,解碼設備可以根據預測模式指示資訊,獲知當前編碼單元的預測模式是否為仿射變換模式。In this application, the encoding device encodes the prediction mode indication information of the current coding unit into the code stream of the current coding unit. Thus, after the decoding device receives the code stream of the current coding unit, the decoding device can learn the current coding unit according to the prediction mode indication information Whether the prediction mode of is the affine transformation mode.

在第二方面的第六種可選的實現方式中,本申請提供的處理視頻資料的方法可以應用於編碼設備。若當前編碼單元的資訊不滿足子編碼單元編解碼條件,本申請提供的處理視頻資料的方法還可以包括:根據候選預測模式集合,確定當前編碼單元的預測資訊,該候選預測模式集合不包括仿射變換模式。In a sixth optional implementation manner of the second aspect, the method for processing video materials provided in this application may be applied to an encoding device. If the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, the method for processing video data provided in this application may further include: determining the prediction information of the current coding unit according to the set of candidate prediction modes, which does not include the simulation Shot transformation mode.

本申請中,由於非平動運動模型僅用於獲取子編碼單元的運動資訊,因此,若當前編碼單元的資訊不滿足子編碼單元編解碼條件,則編碼設備不能採用非平動運動模型的方法確定當前編碼單元的運動資訊,該編碼設備採用候選預測模式集合中的某一種方法,確定當前編碼單元的預測資訊。In this application, since the non-translational motion model is only used to obtain the motion information of the sub-coding unit, if the information of the current coding unit does not meet the coding and decoding conditions of the sub-coding unit, the encoding device cannot use the method of the non-translational motion model To determine the motion information of the current coding unit, the coding device uses one of the methods in the set of candidate prediction modes to determine the prediction information of the current coding unit.

協力廠商面,本申請提供一種處理視頻資料的裝置,該裝置可以包括確定模組和獲取模組。其中,確定模組可以用於確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件;獲取模組可以用於在確定模組確定當前編碼單元的資訊滿足子編碼單元編解碼條件的情況下,獲取至少兩個子編碼單元各自的運動資訊;該確定模組還可以用於根據獲取模組獲取的至少兩個子編碼單元各自的運動資訊,確定當前編碼單元的第一候選運動資訊清單,並且根據第一候選運動資訊清單,得到當前編碼單元的預測資訊。In terms of third-party vendors, this application provides a device for processing video data. The device may include a determination module and an acquisition module. Among them, the determination module can be used to determine whether the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit; the acquisition module can be used to determine whether the information of the current coding unit meets the coding and decoding conditions of the sub-coding unit, Acquiring motion information of each of the at least two sub-coding units; the determining module can also be used to determine the first candidate motion information list of the current coding unit based on the respective motion information of the at least two sub-coding units acquired by the acquiring module, and According to the first candidate motion information list, the prediction information of the current coding unit is obtained.

其中,當前編碼單元的資訊滿足子編碼單元編解碼條件包括當前編碼單元的資訊滿足下述條件中的至少一項:Wherein, the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit includes that the information of the current coding unit satisfies at least one of the following conditions:

當前編碼單元的尺寸資訊滿足子編碼單元編解碼尺寸條件;The size information of the current coding unit meets the coding and decoding size conditions of the sub-coding unit;

至少一個與當前編碼單元相鄰的編碼單元的預測資訊根據相鄰的編碼單元的子編碼單元的運動資訊得到。The prediction information of at least one coding unit adjacent to the current coding unit is obtained according to the motion information of the sub-coding units of the adjacent coding unit.

當前編碼單元包括編碼塊,編碼塊包括第一視頻幀中的一個圖像塊,至少兩個子編碼單元為當前編碼單元經劃分後獲得的子編碼單元,子編碼單元包括子編碼塊,第一候選運動資訊清單包括至少兩個子編碼單元各自的運動資訊和當前編碼單元的候選運動資訊。The current coding unit includes a coding block. The coding block includes an image block in the first video frame. At least two sub-coding units are sub-coding units obtained by dividing the current coding unit. The sub-coding unit includes a sub-coding block. The first The candidate motion information list includes motion information of each of the at least two sub-coding units and candidate motion information of the current coding unit.

在協力廠商面的第一種可選的實現方式中,本申請提供的處理視頻資料的裝置可以為解碼設備,上述獲取模組,還可以用於獲取用於指示第一候選運動資訊清單中的第一目標候選運動資訊的指示資訊;上述確定模組,具體用於根據第一候選運動資訊清單和第一目標候選運動資訊的指示資訊,確定第一目標候選運動資訊,以及根據第一目標候選運動資訊,確定當前編碼單元的預測資訊。In a first optional implementation manner of a third-party vendor, the device for processing video data provided by this application may be a decoding device, and the above acquisition module may also be used to acquire The indication information of the first target candidate sports information; the above determination module is specifically used to determine the first target candidate sports information according to the first candidate motion information list and the indication information of the first target candidate sports information, and according to the first target candidate Motion information, to determine the prediction information of the current coding unit.

在協力廠商面的第二種可選的實現方式中,本申請提供的處理視頻資料的裝置可以為解碼設備,該解碼設備還可以包括解碼模組,該解碼模組可以用於解碼其接收到當前編碼單元編碼之後的碼流,得到第一殘差資訊,上述確定模組還可以用於根據當前編碼單元的預測資訊和第一殘差資訊,確定當前編碼單元的重建資訊。In a second optional implementation manner of a third-party vendor, the apparatus for processing video data provided by this application may be a decoding device, and the decoding device may further include a decoding module, which may be used to decode the received The code stream after the current coding unit is encoded to obtain the first residual information. The above determination module can also be used to determine the reconstruction information of the current coding unit according to the prediction information and the first residual information of the current coding unit.

在協力廠商面的第三種可選的實現方式中,本申請提供的處理視頻資料的裝置可以為解碼設備,上述確定模組,還可以用於在當前編碼單元的資訊不滿足子編碼單元編解碼條件的情況下,確定當前編碼單元的第二候選運動資訊清單;上述獲取模組,還可以用於獲取用於指示第二候選運動資訊清單中的第二目標候選運動資訊的指示資訊;上述確定模組,還可以用於根據第二候選運動資訊清單和獲取模組獲取的第二目標候選運動資訊的指示資訊,確定第二目標候選運動資訊,並且根據第二目標候選運動資訊,確定當前編碼單元的預測資訊,該第二候選運動資訊清單包括當前編碼單元的候選運動資訊,不包括至少兩個子編碼單元各自的運動資訊。In a third optional implementation of the third-party vendor, the device for processing video data provided in this application may be a decoding device, and the above-mentioned determination module may also be used when the information of the current coding unit does not satisfy the coding of the sub-coding unit. In the case of decoding conditions, determine the second candidate motion information list of the current coding unit; the above acquisition module can also be used to obtain indication information for indicating the second target candidate motion information in the second candidate motion information list; The determination module can also be used to determine the second target candidate motion information based on the second candidate motion information list and the indication information of the second target candidate motion information acquired by the acquisition module, and determine the current based on the second target candidate motion information For the prediction information of the coding unit, the second candidate motion information list includes candidate motion information of the current coding unit, but does not include motion information of at least two sub-coding units.

在協力廠商面的第四種可選的實現方式中,本申請提供的處理視頻資料的裝置可以為編碼設備,上述確定模組,具體用於在獲取模組獲取的第一候選運動資訊清單中確定第一目標候選運動資訊,並且根據第一目標候選運動資訊,確定當前編碼單元的預測資訊。In a fourth optional implementation of the third-party vendor, the device for processing video data provided by this application may be an encoding device, and the above-mentioned determination module is specifically used in the first candidate sports information list acquired by the acquisition module The first target candidate motion information is determined, and based on the first target candidate motion information, the prediction information of the current coding unit is determined.

在協力廠商面的第五種可選的實現方式中,本申請提供的處理視頻資料的裝置可以為編碼設備,上述確定模組,還可以用於在當前編碼單元的資訊不滿足子編碼單元編解碼條件的情況下,確定當前編碼單元的第二候選運動資訊清單,並且在第二候選運動資訊清單中確定第二目標候選運動資訊,以及根據第二目標候選運動資訊,確定當前編碼單元的預測資訊,該第二候選運動資訊清單包括當前編碼單元的候選運動資訊,不包括至少兩個子編碼單元各自的運動資訊。In a fifth optional implementation of the third-party vendor, the device for processing video data provided by this application may be an encoding device, and the above-mentioned determination module may also be used when the information of the current encoding unit does not satisfy the encoding of the sub-encoding unit. In the case of decoding conditions, determine the second candidate motion information list of the current coding unit, and determine the second target candidate motion information in the second candidate motion information list, and determine the prediction of the current coding unit based on the second target candidate motion information Information, the second candidate motion information list includes candidate motion information of the current coding unit, and does not include motion information of at least two sub-coding units.

在協力廠商面的第六種可選的實現方式中,本申請提供的處理視頻資料的裝置可以為編碼設備,該編碼設備還包括編碼模組,該編碼模組可以用於將用於指示第一目標候選運動資訊的指示資訊或第二目標候選運動資訊的指示資訊編入當前編碼單元的碼流。In a sixth optional implementation manner of a third-party vendor, the device for processing video data provided by this application may be an encoding device, and the encoding device further includes an encoding module, and the encoding module may be used to indicate The indication information of the target candidate motion information or the indication information of the second target candidate motion information is incorporated into the code stream of the current coding unit.

在協力廠商面的第六種可選的實現方式中,本申請提供的處理視頻資料的裝置可以為編碼設備,上述獲取模組,還可以用於獲取當前編碼單元的原始資訊;上述編碼模組,還可以用於根據當前編碼單元的預測資訊和當前編碼單元的原始資訊,對當前編碼單元編碼。In a sixth optional implementation manner of a third-party vendor, the device for processing video data provided by this application may be an encoding device, and the above acquiring module may also be used to acquire the original information of the current encoding unit; the above encoding module , Can also be used to encode the current coding unit based on the prediction information of the current coding unit and the original information of the current coding unit.

協力廠商面及其各種可選的實現方式的技術效果可以參見上述對第一方面及其各種可選的實現方式的技術效果的相關描述,此處不再贅述。For the technical effects of the third-party vendor and various optional implementations thereof, reference may be made to the above related description of the technical effects of the first aspect and its various optional implementations, which will not be repeated here.

第四方面,本申請提供一種處理視頻資料的裝置,該裝置可以包括確定模組和獲取模組。其中,確定模組可以用於確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件;獲取模組可以用於在確定模組確定當前編碼單元的資訊滿足子編碼單元編解碼條件的情況下,獲取至少兩個子編碼單元各自的運動資訊;該確定模組,還可以用於根據獲取模組獲取的至少兩個子編碼單元各自的運動資訊,得到當前編碼單元的預測資訊。In a fourth aspect, the present application provides an apparatus for processing video data. The apparatus may include a determination module and an acquisition module. Among them, the determination module can be used to determine whether the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit; the acquisition module can be used to determine whether the information of the current coding unit meets the coding and decoding conditions of the sub-coding unit, Obtaining the motion information of at least two sub-coding units; the determination module can also be used to obtain the prediction information of the current coding unit according to the motion information of the at least two sub-coding units obtained by the obtaining module.

其中,當前編碼單元的資訊滿足子編碼單元編解碼條件包括當前編碼單元的資訊滿足下述條件中的至少一項:Wherein, the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit includes that the information of the current coding unit satisfies at least one of the following conditions:

當前編碼單元的尺寸資訊滿足子編碼單元編解碼尺寸條件;The size information of the current coding unit meets the coding and decoding size conditions of the sub-coding unit;

至少一個與當前編碼單元相鄰的編碼單元的預測資訊根據相鄰的編碼單元的子編碼單元的運動資訊得到。The prediction information of at least one coding unit adjacent to the current coding unit is obtained according to the motion information of the sub-coding units of the adjacent coding unit.

當前編碼單元包括編碼塊,編碼塊包括第一視頻幀中的一個圖像塊,至少兩個子編碼單元為當前編碼單元經劃分後獲得的子編碼單元,子編碼單元包括子編碼塊。The current coding unit includes a coding block, and the coding block includes one image block in the first video frame. At least two sub coding units are sub coding units obtained after the current coding unit is divided. The sub coding units include sub coding blocks.

在第四方面的第一種可選的實現方式中,上述獲取模組,具體用於獲取當前編碼單元的運動資訊,並且分別以當前編碼單元的運動資訊為至少兩個子編碼單元各自的初始運動資訊進行運動搜索,從而得到至少兩個子編碼單元各自的運動資訊。In a first optional implementation manner of the fourth aspect, the above acquisition module is specifically configured to acquire the motion information of the current coding unit, and use the motion information of the current coding unit as the initial value of each of the at least two sub-coding units respectively The motion information is searched by motion, so as to obtain the motion information of at least two sub-coding units.

在第四方面的第二種可選的實現方式中,上述獲取模組,還可以用於在當前編碼單元的資訊不滿足子編碼單元編解碼條件,獲取當前編碼單元的運動資訊;上述確定模組,還可以用於根據獲取模組獲取的當前編碼單元的運動資訊,確定當前編碼單元的預測資訊。In a second optional implementation manner of the fourth aspect, the above acquiring module may also be used to acquire the motion information of the current encoding unit when the information of the current encoding unit does not satisfy the encoding and decoding conditions of the sub-encoding unit; The group can also be used to determine the prediction information of the current coding unit based on the motion information of the current coding unit acquired by the acquisition module.

在第四方面的第三種可選的實現方式中,本申請提供的處理視頻資料的裝置可以為解碼設備,上述獲取模組,具體用於獲取預測模式指示資訊,並且在預測模式指示資訊的值指示當前預測模式為仿射變換模式的情況下,獲取當前編碼單元的至少兩個圖元位置的運動資訊,以及根據至少兩個圖元位置的運動資訊,確定至少兩個子編碼單元各自的運動資訊,該預測模式指示資訊的值用於指示預測模式是否為仿射變換模式。In a third optional implementation manner of the fourth aspect, the apparatus for processing video data provided in this application may be a decoding device. The above acquisition module is specifically used to acquire prediction mode indication information, and indicate information in the prediction mode. The value indicates that when the current prediction mode is an affine transformation mode, the motion information of at least two primitive positions of the current coding unit is obtained, and according to the motion information of the at least two primitive positions, each of the at least two sub-coding units is determined Motion information. The value of the prediction mode indicator information is used to indicate whether the prediction mode is an affine transformation mode.

在第四方面的第四種可選的實現方式中,本申請提供的處理視頻資料的裝置可以為編碼設備,上述獲取模組,還用於獲取當前編碼單元的至少兩個圖元位置的運動資訊,並且根據至少兩個圖元位置的運動資訊,確定至少兩個子編碼單元各自的運動資訊。In a fourth optional implementation manner of the fourth aspect, the apparatus for processing video data provided by the present application may be an encoding device, and the above acquiring module is further used to acquire the motion of at least two picture element positions of the current encoding unit Information, and determine the motion information of at least two sub-coding units according to the motion information of at least two picture element positions.

在第四方面的第五種可選的實現方式中,本申請提供的處理視頻資料的裝置可以為編碼設備,該編碼設備還可以包括編碼模組,上述確定模組,還用於根據當前編碼單元的預測資訊,確定當前編碼單元的預測模式;該編碼模組可以用於將確定模組確定的預測模式指示資訊編入當前編碼單元的碼流,該預測模式指示資訊的值用於指示預測模式是否為仿射變換模式。In a fifth optional implementation manner of the fourth aspect, the apparatus for processing video data provided by the present application may be an encoding device, and the encoding device may further include an encoding module, and the above-mentioned determining module is also used for encoding according to the current encoding. The prediction information of the unit determines the prediction mode of the current coding unit; the coding module can be used to program the prediction mode indication information determined by the determination module into the code stream of the current coding unit, and the value of the prediction mode indication information is used to indicate the prediction mode Whether it is an affine transformation mode.

在第四方面的第六種可選的實現方式中,本申請提供的處理視頻資料的裝置可以為編碼設備;上述確定模組,還可以用於在當前編碼單元的資訊不滿足子編碼單元編解碼條件的情況下,根據候選預測模式集合,確定當前編碼單元的預測資訊,該候選預測模式集合不包括仿射變換模式。In a sixth optional implementation manner of the fourth aspect, the apparatus for processing video data provided by this application may be an encoding device; the above determination module may also be used when the information of the current encoding unit does not satisfy the encoding of the sub-encoding unit In the case of decoding conditions, the prediction information of the current coding unit is determined according to the set of candidate prediction modes, which does not include the affine transformation mode.

第四方面及其各種可選的實現方式的技術效果可以參見上述對第二方面及其各種可選的實現方式的技術效果的相關描述,此處不再贅述。For the technical effects of the fourth aspect and various optional implementation manners thereof, reference may be made to the foregoing related description of the technical effects of the second aspect and various optional implementation manners, and details are not described herein again.

在第一方面至第四方面中,當前編碼單元的尺寸資訊滿足子編碼單元編解碼尺寸條件包括當前編碼單元的尺寸資訊滿足下述條件中的任意一項:In the first aspect to the fourth aspect, the size information of the current coding unit satisfies the codec size condition of the sub-coding unit includes that the size information of the current coding unit satisfies any one of the following conditions:

當前編碼單元的圖元數量大於或者等於第一閾值;The number of picture elements of the current coding unit is greater than or equal to the first threshold;

當前編碼單元的圖元數量與第一子編碼單元的圖元數量的比值大於或者等於第二閾值,第一子編碼單元為至少兩個子編碼單元中的一個子編碼單元;The ratio of the number of picture elements of the current coding unit to the number of picture elements of the first sub-coding unit is greater than or equal to the second threshold, and the first sub-coding unit is one of at least two sub-coding units;

當前編碼單元的寬大於或者等於第三閾值,或當前編碼單元的高大於或者等於第四閾值。The width of the current coding unit is greater than or equal to the third threshold, or the height of the current coding unit is greater than or equal to the fourth threshold.

本申請中,解碼設備或編碼設備確定當前編碼單元的資訊滿足上述子編碼單元編解碼條件,解碼設備或編碼設備即可確定採用將當前編碼單元劃分為子編碼單元的方式解碼或編碼當前編碼單元,上述子編碼單元編解碼條件可以包括多種,從而該解碼設備或編碼設備可以根據多種可選的子編碼單元編解碼條件確定是否將當前編碼單元劃分為子編碼單元,並選擇合適的解碼方法或編碼方法完成對當前編碼單元的解碼或編碼。In this application, the decoding device or the encoding device determines that the information of the current coding unit satisfies the above-mentioned encoding and decoding conditions of the sub-encoding unit, and the decoding device or the encoding device can determine to decode or encode the current encoding unit by dividing the current encoding unit into sub-encoding units , The above encoding and decoding conditions of the sub-encoding unit may include multiple types, so that the decoding device or encoding device may determine whether to divide the current encoding unit into sub-encoding units according to a variety of optional encoding and decoding conditions of the sub-encoding unit, and select an appropriate decoding method or The coding method completes the decoding or coding of the current coding unit.

第五方面,本申請提供一種處理視頻資料的裝置,該裝置可以包括處理器和與該處理器耦合連接的記憶體。該記憶體用於存儲電腦指令,當該裝置運行時,處理器執行該記憶體存儲的電腦指令,以使得該裝置執行上述第一方面及其各種可選的實現方式中任意之一所述的處理視頻資料的方法。In a fifth aspect, the present application provides an apparatus for processing video data. The apparatus may include a processor and a memory coupled to the processor. The memory is used to store computer instructions. When the device is running, the processor executes the computer instructions stored in the memory, so that the device executes any one of the first aspect and various optional implementations described above Method of processing video data.

第六方面,本申請提供一種電腦可讀存儲介質,該電腦可讀存儲介質中包括電腦指令,當該電腦指令在處理視頻資料的裝置上運行時,使得該裝置執行第一方面及其各種可選的實現方式中任意之一所述的處理視頻資料的方法。In a sixth aspect, the present application provides a computer-readable storage medium that includes computer instructions, and when the computer instructions run on a device that processes video data, causes the device to perform the first aspect and its various The method for processing video materials described in any one of the selected implementation modes.

第七方面,本申請提供一種包含指令的電腦程式產品,當該電腦程式產品在處理視頻資料的裝置上運行時,使得該裝置執行第一方面及其各種可選的實現方式中任意之一所述的處理視頻資料的方法。In a seventh aspect, the present application provides a computer program product containing instructions that, when the computer program product runs on a device that processes video data, causes the device to perform any of the first aspect and any of its various optional implementations. The method of processing video data described.

第五方面至第七方面的相關內容和技術效果的描述可以參見上述對第一方面及其各種可選的實現方式的相關內容和技術效果的相關描述,此處不再贅述。For descriptions of the related content and technical effects of the fifth aspect to the seventh aspect, reference may be made to the related descriptions of the related content and technical effects of the first aspect and its various optional implementation manners, and details are not described herein.

第八方面,本申請提供一種處理視頻資料的裝置,該裝置包括處理器和與該處理器耦合連接的記憶體。該記憶體用於存儲電腦指令,當處理視頻資料的裝置運行時,處理器執行該記憶體存儲的電腦指令,以使得該裝置執行上述第二方面及其各種可選的實現方式中任意之一所述的處理視頻資料的方法。In an eighth aspect, the present application provides an apparatus for processing video data. The apparatus includes a processor and a memory coupled to the processor. The memory is used to store computer instructions. When the device for processing video data is running, the processor executes the computer instructions stored in the memory to cause the device to perform any one of the second aspect and various optional implementations thereof The method of processing video data.

第九方面,本申請提供一種電腦可讀存儲介質,該電腦可讀存儲介質包括電腦指令,當該電腦指令在處理視頻資料的裝置上運行時,使得該裝置執行第二方面及其各種可選的實現方式中任意之一所述的處理視頻資料的方法。In a ninth aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium including computer instructions, when the computer instructions run on a device for processing video data, the device is allowed to perform the second aspect and various optional The method for processing video materials described in any one of the

第十方面,本申請提供一種包含指令的電腦程式產品,當該電腦程式產品在處理視頻資料的裝置上運行時,使得該裝置執行第二方面及其各種可選的實現方式中任意之一所述的處理視頻資料的方法。According to a tenth aspect, the present application provides a computer program product containing instructions that, when the computer program product runs on a device that processes video data, causes the device to perform any of the second aspect and any of its various optional implementations. The method of processing video data described.

第八方面至第十方面的相關內容和技術效果的描述可以參見上述對第二方面及其各種可選的實現方式的相關內容和技術效果的相關描述,此處不再贅述。For the description of the related content and technical effects of the eighth aspect to the tenth aspect, reference may be made to the related description of the related content and technical effects of the second aspect and its various optional implementation manners, and details are not described herein again.

本文中術語“和/或”,僅僅是一種描述關聯物件的關聯關係,表示可以存在三種關係,例如,A和/或B,可以表示:單獨存在A,同時存在A和B,單獨存在B這三種情況。The term "and/or" in this article is just an association relationship describing related objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone. three situations.

本發明實施例的說明書和申請專利範圍中的術語“第一”和“第二”等是用於區別不同的物件,而不是用於描述物件的特定順序。例如,第一閾值和第二閾值等是用於區別不同的閾值,而不是用於描述閾值的特定順序。The terms “first” and “second” in the description and patent application scope of the embodiments of the present invention are used to distinguish different objects, rather than describing a specific order of objects. For example, the first threshold and the second threshold are used to distinguish different thresholds, rather than describing a specific order of the thresholds.

在本發明實施例中,“示例性的”或者“例如”等詞用於表示作例子、例證或說明。本發明實施例中被描述為“示例性的”或者“例如”的任何實施例或設計方案不應被解釋為比其它實施例或設計方案更優選或更具優勢。確切而言,使用“示例性的”或者“例如”等詞旨在以具體方式呈現相關概念。In the embodiments of the present invention, the words "exemplary" or "for example" are used as examples, illustrations or explanations. Any embodiments or design schemes described as “exemplary” or “for example” in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific manner.

在本發明實施例的描述中,除非另有說明,“多個”的含義是指兩個或兩個以上。例如,多個編碼單元是指兩個或兩個以上的編碼單元;多個處理單元是指兩個或兩個以上的處理單元。In the description of the embodiments of the present invention, unless otherwise stated, the meaning of "plurality" refers to two or more. For example, multiple coding units refer to two or more coding units; multiple processing units refer to two or more processing units.

首先對本發明實施例提供的一種處理視頻資料的方法和裝置中涉及的一些概念做解釋說明。First, some concepts involved in a method and apparatus for processing video data provided by embodiments of the present invention are explained.

編碼單元:包括編碼塊,指的是將待編碼的一個視頻幀(即一副圖像),劃分為多個圖像塊,一個編碼塊包括視頻幀中的一個圖像塊,例如,如圖1所示的視頻幀,假設該視頻幀的大小為128*128,將該視頻幀平均分為64*64大小的4個圖像塊,則該視頻幀可以包括4個編碼塊,例如,其中一個編碼塊包括圖1中的圖像塊1。Coding unit: includes coding blocks, which refers to dividing a video frame (that is, an image) to be coded into multiple image blocks, and one coding block includes one image block in the video frame, for example, as shown in the figure The video frame shown in 1 assumes that the size of the video frame is 128*128, and the video frame is divided into 4 image blocks of 64*64 size on average, then the video frame may include 4 encoding blocks, for example, where One coding block includes image block 1 in FIG. 1.

子編碼單元:包括子編碼塊,指的是將上述視頻幀的一個編碼單元劃分為多個子塊,每一個子塊可以稱為一個子編碼塊,例如,如圖2所示,將該視頻幀平均分為4個編碼塊,對於一個編碼塊,將該編碼塊再平均分為4個子塊,每一個子塊為一個子編碼塊(如圖2中子編碼塊1和子編碼塊2為編碼塊1的子編碼塊)。Sub-coding unit: includes sub-coding blocks, which refers to dividing one coding unit of the above video frame into multiple sub-blocks, and each sub-block may be called a sub-coding block. For example, as shown in FIG. 2, the video frame It is divided into 4 coding blocks on average. For one coding block, the coding block is divided into 4 sub-blocks, each sub-block is a sub-coding block (as shown in FIG. 2 sub-coding block 1 and sub-coding block 2 are coding blocks 1 sub-coding block).

在視頻資料編碼過程中,以待編碼的視頻資料的一個編碼單元為例,編碼設備或可以首先確定該編碼單元的預測資訊,然後根據編碼單元的預測資訊對該編碼單元編碼。在視頻資料解碼的過程中,以待解碼的視頻資料的一個編碼單元為例,解碼設備可以首先確定該編碼單元的預測資訊,然後根據編碼單元的預測資訊確定編碼單元的重建資訊。綜上,在視頻資料編解碼的過程中,確定編碼單元的預測資訊的方法可以包括幀內預測和幀間預測。下面分別說明幀內預測和幀間預測的。In the video data encoding process, taking an encoding unit of the video data to be encoded as an example, the encoding device may first determine the prediction information of the encoding unit, and then encode the encoding unit according to the prediction information of the encoding unit. In the process of decoding video data, taking a coding unit of the video data to be decoded as an example, the decoding device may first determine the prediction information of the coding unit, and then determine the reconstruction information of the coding unit according to the prediction information of the coding unit. In summary, in the process of encoding and decoding video data, methods for determining prediction information of coding units may include intra prediction and inter prediction. The following describes intra prediction and inter prediction.

編碼單元的殘差資訊:指的是編碼單元的真實資訊(即原始資訊)與編碼單元的預測資訊之間的差值,即編碼單元的真實資訊與編碼單元的預測資訊之間的區別。Residual information of coding unit: refers to the difference between the real information of the coding unit (that is, the original information) and the prediction information of the coding unit, that is, the difference between the real information of the coding unit and the prediction information of the coding unit.

編碼單元的重建資訊:指的是根據編碼單元的預測資訊與編碼單元的殘差資訊確定的編碼單元的圖元值的重建值,具體的,編碼單元的預測資訊加上編碼單元的殘差資訊,然後對二者之和做相關濾波操作,以消除塊效應,得到編碼單元的重建資訊。Coding unit reconstruction information: refers to the reconstruction value of the coding unit primitive value determined based on the coding unit prediction information and the coding unit residual information. Specifically, the coding unit prediction information plus the coding unit residual information Then, the correlation filtering operation is performed on the sum of the two to eliminate the blockiness and obtain the reconstruction information of the coding unit.

對於一個待編碼的視頻幀,在待編碼的視頻幀內,通常將該視頻幀劃分為多個編碼單元之後,以編碼單元為單位,按照從左到右,從上到下的順序對該待編碼的視頻幀編碼,例如,如圖3所示的視頻幀中,將該視頻幀劃分為9個編碼單元,記為CU1-CU9,可以按照CU1-CU9的位置順序,依次對CU1-CU9編碼,完成第一視頻幀的編碼。For a video frame to be encoded, within the video frame to be encoded, the video frame is usually divided into multiple coding units, and the coding unit is used as the unit, from left to right, from top to bottom in order The encoded video frame is encoded, for example, in the video frame shown in FIG. 3, the video frame is divided into 9 coding units, denoted as CU1-CU9, and CU1-CU9 can be encoded in sequence according to the position order of CU1-CU9 To complete the encoding of the first video frame.

幀內預測:指的是對於當前的編碼單元(可以稱為當前編碼單元)編碼時,可以在當前編碼單元所在的視頻幀(可以稱為第一視頻幀)內,通過與該當前編碼單元相鄰(即空域相鄰)的編碼單元(該與當前編碼單元相鄰的編碼單元已完成編碼)的重建資訊,確定當前編碼單元的預測資訊,即預測的當前編碼單元的圖元值,例如,如圖4所示,在圖4所示的第一視頻幀中,CU5為待編碼的一個圖像塊,可以通過CU5的上方的CU1、CU2、CU3,以及CU5左側的CU4中的至少一個圖像塊預測CU5的圖元值。Intra-frame prediction: when encoding the current coding unit (which can be called the current coding unit), it can be compared with the current coding unit in the video frame where the current coding unit is located (which can be called the first video frame). Reconstruction information of neighboring (that is, adjacent to the spatial domain) coding unit (the coding unit adjacent to the current coding unit has completed coding) determines the prediction information of the current coding unit, that is, the predicted primitive value of the current coding unit, for example, As shown in FIG. 4, in the first video frame shown in FIG. 4, CU5 is an image block to be encoded, which can pass through at least one of CU1, CU2, CU3 above CU5, and CU4 on the left of CU5 The block predicts the pixel value of CU5.

幀間預測:指的是對於當前編碼單元(例如當前編碼單元)編碼時,可以根據與該當前編碼單元所在的視頻幀(可以稱為第一視頻幀)相鄰的視頻幀確定當前編碼單元的預測資訊(即與第一視頻幀相鄰的視頻幀作為第一視頻幀的參考幀,然後再在第二視頻幀中確定與當前編碼單元最相似的圖像塊(可以稱為參考塊),並將該參考塊作為當前編碼單元的預測資訊)。具體的,幀間預測包括前向預測、後向預測和雙向預測等預測模式,前向預測指的是在第一視頻幀的前一幀中確定當前編碼單元的預測資訊,例如,如圖5(a)所示,第一視頻幀記為F1,第一視頻幀的前一幀記為F0,在F0中,圖像塊C0為當前編碼單元C1的預測資訊;後向預測指的是在第一視頻幀的後一幀中確定當前編碼單元的預測資訊,例如,如圖5(b)所示,第一視頻幀記為F0,第一視頻幀的後一幀記為F2中,在F2中,圖像塊C2為當前編碼單元的預測資訊;雙向預測指的是在第一視頻幀的前一幀中確定一個當前編碼單元的預測資訊,在當前編碼單元的後一幀中也確定一個當前編碼單元的預測資訊,然後再根據這兩個預測資訊確定當前編碼單元的預測資訊,如圖5(c)所示,第一視頻幀記為F1,第一視頻幀的前一幀記為F0,第一視頻幀的後一幀記為F2,F0中的圖像塊C0為當前編碼單元的一個預測資訊,F2中的圖像塊C2也為當前編碼單元的一個預測資訊,最後,根據C0和C2確定當前編碼單元的預測資訊。Inter-frame prediction: when encoding the current coding unit (for example, the current coding unit), the current coding unit can be determined according to the video frame adjacent to the video frame where the current coding unit is located (which can be referred to as the first video frame). Prediction information (that is, the video frame adjacent to the first video frame is used as the reference frame of the first video frame, and then the image block (which may be referred to as a reference block) that is most similar to the current coding unit is determined in the second video frame, And use the reference block as prediction information of the current coding unit). Specifically, inter prediction includes prediction modes such as forward prediction, backward prediction, and bidirectional prediction. Forward prediction refers to determining the prediction information of the current coding unit in the previous frame of the first video frame, for example, as shown in FIG. 5 (A), the first video frame is denoted as F1, and the previous frame of the first video frame is denoted as F0. In F0, image block C0 is the prediction information of the current coding unit C1; backward prediction refers to The prediction information of the current coding unit is determined in the frame after the first video frame. For example, as shown in FIG. 5(b), the first video frame is denoted as F0, and the frame after the first video frame is denoted as F2, in In F2, image block C2 is the prediction information of the current coding unit; bidirectional prediction refers to determining the prediction information of a current coding unit in the previous frame of the first video frame, and also in the subsequent frame of the current coding unit Prediction information of a current coding unit, and then determine the prediction information of the current coding unit according to these two prediction information, as shown in FIG. 5(c), the first video frame is marked as F1, and the previous frame of the first video frame is marked Is F0, the next frame of the first video frame is denoted as F2, the image block C0 in F0 is a prediction information of the current coding unit, the image block C2 in F2 is also a prediction information of the current coding unit, and finally, The prediction information of the current coding unit is determined according to C0 and C2.

編碼單元的運動向量:在採用幀間預測的方法進行視頻資料編碼和解碼的情況下,對於一個編碼單元(例如當前編碼單元),該當前編碼單元所在的視頻幀為第一視頻幀,在第一視頻幀的參考幀(第一視頻幀的前一幀和\或第一視頻幀的後一幀)中,若與當前編碼單元對應位置的圖像塊(稱為第一圖像塊),與當前編碼單元最為匹配(即與當前編碼單元最為相似)的圖像塊為第二圖像塊,則當前編碼單元的運動向量指的是從第一圖像塊移動至第二圖像塊的運動位移。如圖6所示,F1表示第一視頻幀,F2表示第一視頻幀的參考幀,假設CU1為當前編碼單元,CU1在F2中對應位置的圖像塊為CU2,F2中的CU3為與CU1最為匹配的圖像塊,以圖像塊的中心圖元點的運動向量作為該圖像快的運動向量,若CU2的運動向量為(0,0),CU2左下方,距離CU2縱向距離為1,橫向距離為1的左下方位置處為CU3,則CU2與CU3的相對運動位移為(-1,1),則CU1的運動向量為(-1,1)。Motion vector of coding unit: In the case of video encoding and decoding using inter prediction, for a coding unit (such as the current coding unit), the video frame where the current coding unit is located is the first video frame, and the In the reference frame of a video frame (the previous frame of the first video frame and/or the next frame of the first video frame), if the image block at the position corresponding to the current coding unit (called the first image block), The image block that most closely matches the current coding unit (that is, most similar to the current coding unit) is the second image block, and the motion vector of the current coding unit refers to the one that moves from the first image block to the second image block Movement displacement. As shown in Fig. 6, F1 represents the first video frame, F2 represents the reference frame of the first video frame, assuming that CU1 is the current coding unit, the image block at the corresponding position of CU1 in F2 is CU2, and CU3 in F2 is the same as CU1 For the most matching image block, the motion vector of the center primitive point of the image block is used as the fast motion vector of the image. If the motion vector of CU2 is (0, 0), the lower left of CU2 is 1 longitudinal distance from CU2 , The lower left position with a lateral distance of 1 is CU3, the relative motion displacement of CU2 and CU3 is (-1, 1), and the motion vector of CU1 is (-1, 1).

基於背景技術中的視頻資料編碼和解碼存在的問題,本發明實施例提供一種處理視頻資料的方法和裝置,編碼設備可以根據編碼單元的實際情況,即確定編碼單元的資訊是否滿足子編碼單元編解碼條件,然後採用相應的編碼方法對視頻資料編碼,同理,解碼設備也可以確定編碼單元的資訊是否滿足子編碼單元編解碼條件,然後採用相應的解碼方法對視頻資料解碼,能夠降低視頻資料編解碼的複雜度。Based on the problems existing in the encoding and decoding of video data in the background art, embodiments of the present invention provide a method and apparatus for processing video data. The encoding device can determine whether the information of the encoding unit satisfies the encoding of the sub-encoding unit according to the actual situation of the encoding unit Decoding conditions, and then use the corresponding encoding method to encode the video data. Similarly, the decoding device can also determine whether the information of the encoding unit meets the encoding and decoding conditions of the sub-encoding unit, and then use the corresponding decoding method to decode the video data, which can reduce the video data. Codec complexity.

本發明實施例提供的處理視頻資料的方法和裝置可以應用於對視頻資料編碼或者對視頻資料解碼的場景中,該該方法可以應用於具有編碼和\或解碼功能的設備,本發明實施例中,將對視頻資料編碼的設備稱為編碼設備,將對視頻資料解碼的設備稱為解碼設備,編碼設備獲取到視頻資料之後,編碼設備對該視頻資料編碼,可以將該視頻資料壓縮,從而存儲該視頻資料時,無需佔用較大的存儲空間,將該視頻資料發送給其他設備時,無需佔用較大的傳輸頻寬,如此,對視頻資料編碼有利於視頻資料的存儲和快速傳輸;解碼設備獲取到編碼後的視頻資料,該編碼設備可以對該視頻資料解碼,恢復該視頻資料的完整資訊,如此能夠保證該視頻資料的順利播放。The method and apparatus for processing video data provided by the embodiments of the present invention can be applied to the scenario of encoding or decoding video materials. The method can be applied to devices with encoding and/or decoding functions, in embodiments of the present invention , The device that encodes the video material is called an encoding device, and the device that decodes the video material is called a decoding device. After the encoding device obtains the video material, the encoding device encodes the video material and can compress the video material for storage The video material does not need to occupy a large storage space, and when the video material is sent to other devices, there is no need to occupy a large transmission bandwidth. In this way, encoding the video material is conducive to the storage and rapid transmission of the video material; decoding equipment After obtaining the encoded video data, the encoding device can decode the video data and restore the complete information of the video data, so as to ensure the smooth playback of the video data.

本發明實施例提供的處理視頻資料的方法可以應用於編碼設備和解碼設備中,編碼設備和解碼設備均可以為臺式電腦、移動計算裝置、筆記本(例如膝上型)電腦、平板電腦、機上盒、智慧型電話等手持機、電視、相機、顯示裝置、數位媒體播放機、視頻遊戲控制台、車載電腦,或其他類似的設備。The method for processing video data provided by the embodiments of the present invention may be applied to an encoding device and a decoding device. The encoding device and the decoding device may be desktop computers, mobile computing devices, notebook (such as laptop) computers, tablet computers, and computers. Handsets such as set-top boxes, smart phones, televisions, cameras, display devices, digital media players, video game consoles, in-vehicle computers, or other similar devices.

下面結合圖7具體介紹本發明實施例提供的編碼設備的各個構成部件。如圖7所示,本發明實施例提供的編碼設備包括:視頻源10、視訊轉碼器11和輸出介面12等部件。本領域技術人員可以理解,圖7中示出的編碼設備的結構並不構成對編碼設備的限定,其可以包括比如圖7所示的部件更多或更少的部件,或者可以組合如圖7所示的部件中的某些部件,或者可以與如圖7所示的部件佈置不同。The following describes in detail each component of the encoding device provided by the embodiment of the present invention with reference to FIG. 7. As shown in FIG. 7, the encoding device provided by the embodiment of the present invention includes: a video source 10, a video transcoder 11, an output interface 12, and other components. Those skilled in the art may understand that the structure of the encoding device shown in FIG. 7 does not constitute a limitation on the encoding device, and it may include more or less components such as those shown in FIG. 7 or may be combined as shown in FIG. 7 Some of the components shown may be arranged differently than the components shown in FIG. 7.

視頻源10可以包括視頻俘獲裝置(例如視頻相機)、含有先前俘獲的視頻資料的視頻存檔、用以從視頻內容提供者接收視頻資料的視頻輸入介面,及/或用於產生視頻資料的電腦圖形系統,或上述視頻資料來源的組合。The video source 10 may include a video capture device (such as a video camera), a video archive containing previously captured video data, a video input interface to receive video data from a video content provider, and/or computer graphics for generating video data System, or a combination of the above video sources.

視訊轉碼器11可以根據編碼標準(例如H.264)將編碼設備獲取的視頻資料經過編碼後轉化為機器可以識別的代碼,以將視頻資料壓縮,有利於視頻資料的傳輸和存儲。視訊轉碼器11可以為中央處理器(central processing unit,CPU),通用處理器,數位訊號處理器(digital signal processor,DSP),專用積體電路(application-specific integrated circuit,ASIC),現場可程式設計閘陣列(field programmable gate array,FPGA)或者其他可程式設計邏輯器件、電晶體邏輯器件、硬體部件或者其任意組合,其可以實現或執行本發明實施例公開的內容所描述的各種示例性的邏輯方框,模組和電路;視訊轉碼器11也可以是實現計算功能的組合,例如包含一個或多個微處理器組合,DSP和微處理器的組合等。The video transcoder 11 can encode the video data obtained by the encoding device into a code that can be recognized by the machine according to the encoding standard (for example, H.264), so as to compress the video data, which is beneficial to the transmission and storage of the video data. The video transcoder 11 may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or on-site. Field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof, which can implement or execute various examples described in the contents disclosed in the embodiments of the present invention Logical blocks, modules and circuits; the video transcoder 11 can also be a combination of computing functions, for example, including one or more microprocessor combinations, DSP and microprocessor combinations, etc.

輸出介面12用於向其他設備發送資料的介面電路,輸出介面12可以為收發器、收發電路等具有收發功能的結構,包括調製器/解調器(數據機)及/或發射器,在視頻編解碼系統中,輸出介面12可以將編碼後的視頻資料發送給解碼設備。The output interface 12 is an interface circuit for sending data to other devices. The output interface 12 may be a transceiver, a transceiver circuit, or other structure with a transceiver function, including a modulator/demodulator (data modem) and/or a transmitter. In the codec system, the output interface 12 can send the encoded video data to the decoding device.

可選的,如圖7所示的編碼設備還可以包括無線保真(wireless gidelity,WiFi)模組、藍牙模組等,在此不再贅述。Optionally, the encoding device shown in FIG. 7 may further include a wireless fidelity (WiFi) module, a Bluetooth module, and so on, and details are not described herein again.

下面結合圖8具體介紹本發明實施例提供的解碼設備的各個構成部件。如圖8所示,本發明實施例提供的解碼設備包括:輸入介面20、視頻解碼器21和顯示裝置22等部件。本領域技術人員可以理解,圖8中示出的編碼設備的結構並不構成對編碼設備的限定,其可以包括比如圖8所示的部件更多或更少的部件,或者可以組合如圖8所示的部件中的某些部件,或者可以與如圖8所示的部件佈置不同。The following describes in detail each component of the decoding device provided by the embodiment of the present invention with reference to FIG. 8. As shown in FIG. 8, the decoding device provided by the embodiment of the present invention includes an input interface 20, a video decoder 21, a display device 22, and other components. Those skilled in the art may understand that the structure of the encoding device shown in FIG. 8 does not constitute a limitation on the encoding device, and it may include more or less components such as those shown in FIG. 8 or may be combined as shown in FIG. 8 Some of the components shown may be arranged differently than the components shown in FIG. 8.

輸入介面20用於接收其他設備(例如編碼設備)發送的資料,輸入介面20可以為接收器及/或數據機。在視頻編解碼系統中,輸入介面20可以接收編碼設備發送的編碼後的視頻資料。The input interface 20 is used to receive data sent by other devices (such as encoding devices). The input interface 20 may be a receiver and/or a modem. In the video codec system, the input interface 20 can receive the encoded video material sent by the encoding device.

視頻解碼器21可以將其接收的編碼後的視頻資料還原解碼,即解壓縮,從而可以使得解碼後的視頻資料在顯示裝置中播放。視頻解碼器21可以為CPU,通用處理器,DSP,ASIC,FPGA或者其他可程式設計邏輯器件、電晶體邏輯器件、硬體部件或者其任意組合,其可以實現或執行本發明實施例公開的內容所描述的各種示例性的邏輯方框,模組和電路;視頻解碼器21也可以是實現計算功能的組合,例如包含一個或多個微處理器組合,DSP和微處理器的組合等。The video decoder 21 can restore and decode the encoded video data it receives, that is, decompresses, so that the decoded video data can be played on the display device. The video decoder 21 may be a CPU, general-purpose processor, DSP, ASIC, FPGA, or other programmable logic device, transistor logic device, hardware component, or any combination thereof, which may implement or execute the content disclosed in the embodiments of the present invention The various exemplary logical blocks, modules and circuits described; the video decoder 21 may also be a combination of computing functions, for example, including one or more microprocessor combinations, DSP and microprocessor combinations, and so on.

顯示裝置22用於顯示解碼後的視頻資料,顯示裝置可以包括多種顯示裝置,例如液晶顯示器(liquid crystal display,LCD)、等離子體顯示器、有機發光二極體(organic light-emitting diode,OLED)顯示器或其它類型的顯示裝置。可選的,顯示裝置22可以整合在解碼設備中,顯示裝置22也可以與解碼設備獨立,設置於解碼設備外部。The display device 22 is used to display decoded video data. The display device may include various display devices, such as a liquid crystal display (LCD), a plasma display, and an organic light-emitting diode (OLED) display Or other types of display devices. Optionally, the display device 22 may be integrated in the decoding device, or the display device 22 may be independent of the decoding device and provided outside the decoding device.

結合上述應用場景和通信系統,本發明實施例提供一種處理視頻資料的方法,該方法可以包括對視頻資料編碼和對視頻資料解碼,下面分別介紹視頻資料編碼的方法和視頻資料解碼的方法。Combining the above application scenarios and the communication system, an embodiment of the present invention provides a method for processing video data. The method may include encoding and decoding video data. The following describes a video data encoding method and a video data decoding method.

可選的,本發明實施例中,對當前編碼單元編解碼時,可以採用運動向量預測方法(例如SMVP技術)、DMVD技術或非平動運動模型等不同的方法對當前編碼單元編解碼,下面分別以這三種方法為例,示例性的說明對當前編碼單元的編解碼過程。Optionally, in the embodiment of the present invention, when encoding and decoding the current coding unit, different methods such as a motion vector prediction method (for example, SMVP technology), DMVD technology, or non-translational motion model may be used to encode and decode the current coding unit. Taking these three methods as examples, the coding and decoding process of the current coding unit is exemplarily described.

方法一:採用SMVP技術編解碼Method 1: Use SMVP technology to encode and decode

本發明實施例中,分別描述採用SMVP技術編碼和解碼的方法,在採用SMVP技術編碼時,本發明實施例提供的處理視頻資料的方法可以應用於編碼設備,在採用SMVP技術解碼時,本發明實施例提供的處理視頻資料的方法可以應用於解碼設備。In the embodiments of the present invention, methods for encoding and decoding using SMVP technology are described separately. When encoding using SMVP technology, the method for processing video data provided by the embodiments of the present invention can be applied to an encoding device. When decoding using SMVP technology, the present invention The method for processing video materials provided in the embodiments can be applied to a decoding device.

首先,採用SMVP技術編碼時,如圖9所示,本發明實施例提供的處理視頻資料的方法可以包括S101-S104:First, when encoding using SMVP technology, as shown in FIG. 9, the method for processing video data provided by the embodiment of the present invention may include S101-S104:

S101、編碼設備確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件。S101. The encoding device determines whether the information of the current encoding unit meets the encoding and decoding conditions of the sub-encoding unit.

其中,當前編碼單元包括編碼塊,該編碼塊包括當前編碼的視頻幀中的一個圖像塊,當前編碼的視頻幀為待編碼的視頻資料的一幀。Wherein, the current coding unit includes a coding block, and the coding block includes an image block in the currently coded video frame, and the currently coded video frame is a frame of the video material to be coded.

本發明實施例中,編碼設備獲取視頻資料之後,該編碼設備對該視頻資料編碼,編碼設備對視頻資料編碼是指對視頻資料的每一幀進行編碼,具體的,以待編碼的視頻資料(即編碼設備獲取的視頻資料)中的一幀(例如第一視頻幀)為例,編碼設備將第一視頻幀劃分為多個編碼單元,然後對每一個編碼單元編碼,以完成對第一視頻幀編碼。In the embodiment of the present invention, after the encoding device obtains the video data, the encoding device encodes the video data. Encoding the video data refers to encoding each frame of the video data. Specifically, the video data to be encoded ( That is, one frame (such as the first video frame) in the video material acquired by the encoding device as an example. The encoding device divides the first video frame into multiple coding units, and then encodes each coding unit to complete the first video. Frame encoding.

需要說明的是,本發明實施例中,對於編碼單元的相關描述,可以參見上述實施例對於本發明實施例涉及的一些概念的介紹中關於編碼單元的相關描述,編碼單元的大小可以根據實際情況確定,例如,對於256*256的視頻幀,可以將該視頻幀劃分為4個大小為128*128的編碼單元,也可以將該視頻幀劃分為16個64*64的編碼單元,還可以將該視頻幀劃分為64個大小為32*32的編碼單元,本發明實施例不作具體限定。It should be noted that, in the embodiment of the present invention, for the relevant description of the coding unit, refer to the relevant description of the coding unit in the introduction of some concepts involved in the embodiment of the present invention in the above embodiment, and the size of the coding unit can be based on the actual situation Determine, for example, for a 256*256 video frame, the video frame may be divided into 4 coding units of size 128*128, or the video frame may be divided into 16 64*64 coding units, or The video frame is divided into 64 coding units with a size of 32*32, which is not specifically limited in the embodiment of the present invention.

本發明實施例中,由於視頻幀的尺寸通常比較大,編碼設備直接處理視頻幀的所有資料,可能佔用編碼設備較多的資源,可能導致該編碼設備無法處理其他業務,因此,在對視頻幀編碼時,將每一個視頻幀劃分為多個編碼單元之後,編碼設備可以通過對每一個編碼單元編碼,完成對整個視頻幀編碼,如此,能夠保證編碼設備順利完成視頻資料的編碼。In the embodiment of the present invention, since the size of the video frame is usually relatively large, the encoding device directly processes all the data of the video frame, which may occupy more resources of the encoding device, which may cause the encoding device to be unable to process other services. When encoding, after each video frame is divided into multiple coding units, the encoding device can encode the entire video frame by encoding each encoding unit, so that the encoding device can successfully complete the encoding of the video material.

上述編碼設備將一個視頻幀劃分的多個編碼單元之後,編碼設備對一個編碼單元(例如上述的當前編碼單元)編碼的過程中,由於當前編碼單元的各個圖元點的運動方向可能不相同,如果直接對當前編碼單元編碼,可能會導致確定的當前編碼單元的預測資訊不準確,從而造成對當前編碼單元的編碼結果不準確,因此編碼設備首先可以確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件,然後根據確定的結果,確定是否將當前編碼單元再分為至少兩個子編碼單元,然後再選擇合適的編碼方法,對至少兩個子編碼單元編碼,以完成對當前編碼單元的編碼。After the above coding device divides a video frame into multiple coding units, during the coding device's coding of one coding unit (such as the above-mentioned current coding unit), since the motion direction of each pixel point of the current coding unit may be different, If the current coding unit is directly encoded, the prediction information of the determined current coding unit may be inaccurate, resulting in an inaccurate encoding result of the current coding unit, so the encoding device may first determine whether the information of the current coding unit satisfies the sub-coding unit Encoding and decoding conditions, and then according to the determined result, determine whether to subdivide the current coding unit into at least two sub-coding units, and then select an appropriate coding method to encode at least two sub-coding units to complete the current coding unit coding.

本發明實施例中,上述當前編碼單元的資訊滿足子編碼單元編解碼條件可以包括當前編碼單元的資訊滿足下述條件A1和A2中的至少一項:In the embodiment of the present invention, the information of the current coding unit meeting the coding and decoding conditions of the sub-coding unit may include that the information of the current coding unit satisfies at least one of the following conditions A1 and A2:

A1、當前編碼單元的尺寸資訊滿足子編碼單元編解碼尺寸條件。A1. The size information of the current coding unit meets the coding and decoding size conditions of the sub-coding unit.

本發明實施例中,當前編碼單元的尺寸資訊滿足子編碼單元編解碼尺寸條件,包括當前編碼單元的尺寸資訊滿足下述條件B1-B3中的任意一項:In the embodiment of the present invention, the size information of the current coding unit satisfies the coding and decoding size conditions of the sub-coding unit, including that the size information of the current coding unit satisfies any one of the following conditions B1-B3:

B1、當前編碼單元的圖元數量大於或者等於第一閾值。B1. The number of picture elements of the current coding unit is greater than or equal to the first threshold.

本發明實施例中,當前編碼單元的圖元數量大於或者等於預設的第一閾值時,說明當前編碼單元的尺寸比較大,編碼設備對該編碼單元編碼可能佔用較多該編碼設備的資源。In the embodiment of the present invention, when the number of picture elements of the current coding unit is greater than or equal to the preset first threshold, it means that the size of the current coding unit is relatively large, and the coding device may consume more resources of the coding device when coding the coding unit.

B2、當前編碼單元的圖元數量與第一子編碼單元的圖元數量的比值大於或者等於第二閾值。B2. The ratio of the number of picture elements of the current coding unit to the number of picture elements of the first sub-coding unit is greater than or equal to the second threshold.

本發明實施例中,上述第一子編碼單元為將當前編碼單元劃分為至少兩個子編碼單元之後,該至少兩個子編碼單元中的一個子編碼單元,子編碼單元的尺寸大小可以預先設置。當前編碼單元的圖元數量與第一子編碼單元的圖元數量的比值大於或者等於預設的第二閾值,同樣,說明當前編碼單元的尺寸比較大。In the embodiment of the present invention, after the first sub-coding unit is divided into at least two sub-coding units, one of the at least two sub-coding units, the size of the sub-coding unit may be preset . The ratio of the number of picture elements of the current coding unit to the number of picture elements of the first sub-coding unit is greater than or equal to a preset second threshold value. Similarly, it means that the size of the current coding unit is relatively large.

B3、當前編碼單元的寬大於或者第三閾值,或當前編碼單元的高大於或者等於第四閾值。B3. The width of the current coding unit is greater than or equal to the third threshold, or the height of the current coding unit is greater than or equal to the fourth threshold.

本發明實施例中,當前編碼單元的寬大於預設的第三閾值,說明當前編碼單元的尺寸較大,或者當前編碼單元的高大於或者等於第四閾值,說明當前編碼單元的尺寸較大。In the embodiment of the present invention, the width of the current coding unit is greater than the preset third threshold, indicating that the size of the current coding unit is larger, or the height of the current coding unit is greater than or equal to the fourth threshold, indicating that the size of the current coding unit is large.

需要說明的是,本發明實施例中,可以根據實際情況設置上述第一閾值、第二閾值、第三閾值和第四閾值,本發明實施例不作具體限定。其中,第三閾值可以與第四閾值相等。It should be noted that, in the embodiment of the present invention, the first threshold, the second threshold, the third threshold, and the fourth threshold may be set according to actual conditions, and the embodiment of the present invention is not specifically limited. The third threshold may be equal to the fourth threshold.

A2、至少一個與當前編碼單元相鄰的編碼單元的預測資訊根據該相鄰編碼單元的子編碼單元的運動資訊得到。A2. The prediction information of at least one coding unit adjacent to the current coding unit is obtained according to the motion information of the sub-coding units of the adjacent coding unit.

本發明實施例中,錄影設備對當前編碼單元編碼時,若該錄影設備確定已經編碼的編碼單元中與該當前編碼單元相鄰的編碼單元的預測資訊是根據該相鄰的編碼單元的子編碼單元的運動資訊得到的,則該錄影設備確定該當前編碼單元的預測資訊也可以根據該當前編碼單元的子編碼單元的運動資訊得到。In the embodiment of the present invention, when the video recording device encodes the current coding unit, if the video recording device determines that the prediction information of the coding unit adjacent to the current coding unit among the already coded coding units is based on the sub-coding of the adjacent coding unit If the motion information of the unit is obtained, the video recording device determines that the prediction information of the current coding unit can also be obtained according to the motion information of the sub-coding unit of the current coding unit.

S102、若當前編碼單元的資訊滿足子編碼單元編解碼條件,編碼設備獲取至少兩個子編碼單元各自的運動資訊。S102. If the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit, the coding device obtains the motion information of at least two sub-coding units.

其中,至少兩個子編碼單元為當前編碼單元經劃分後獲得的子編碼單元,子編碼單元包括子編碼塊。The at least two sub-coding units are sub-coding units obtained after the current coding unit is divided, and the sub-coding units include sub-coding blocks.

可以理解的是,由於運動資訊可以表徵當前的一個編碼單元或者一個子編碼單元可以由已經編碼的編碼單元或者子編碼單元經過偏移得到,因此,只要確定出編碼單元或者子編碼單元的運動資訊,就可以根據運動資訊快速地確定當前編碼單元的預測資訊。It can be understood that, since the motion information can represent a current coding unit or a sub-coding unit can be obtained by offsetting the already coded coding unit or sub-coding unit, as long as the motion information of the coding unit or sub-coding unit is determined , You can quickly determine the prediction information of the current coding unit based on the motion information.

本發明實施例中,如果當前編碼單元的資訊滿足上述A1和A2中的至少一項,則編碼設備可以將當前編碼單元劃分為至少兩個子編碼單元,然後獲取至少兩個子編碼單元各自的運動資訊。In the embodiment of the present invention, if the information of the current coding unit satisfies at least one of the above A1 and A2, the encoding device may divide the current coding unit into at least two sub-coding units, and then obtain the respective Sports information.

需要說明的是,本發明實施例中,編碼設備可以根據實際情況確定子編碼單元的大小,例如,當前編碼單元的大小為64*64,編碼設備可以將當前編碼單元劃分為4個大小為32*32的子編碼單元,編碼設備也可以將當前編碼單元劃分為16個大小為16*16的子編碼單元,還可以將當前編碼單元劃分為32個大小為8*8的子編碼單元,本發明實施例不作具體限定。It should be noted that in the embodiment of the present invention, the encoding device may determine the size of the sub-encoding unit according to the actual situation, for example, the current encoding unit size is 64*64, and the encoding device may divide the current encoding unit into 4 sizes of 32 *32 sub-coding units, the encoding device can also divide the current coding unit into 16 sub-coding units with a size of 16*16, and can also divide the current coding unit into 32 sub-coding units with a size of 8*8. The embodiments of the invention are not specifically limited.

本發明實施例中,上述一個子編碼單元的運動資訊包括該子編碼單元的預測方向指示資訊、該子編碼單元的運動向量和該子編碼單元的參考塊指示資訊中的至少一項。In the embodiment of the present invention, the motion information of the one sub-coding unit includes at least one of the prediction direction indication information of the sub-coding unit, the motion vector of the sub-coding unit, and the reference block indication information of the sub-coding unit.

本發明實施例中,在編碼當前編碼單元時,確定該當前編碼單元的預測資訊的方法可以包括前向預測、後向預測或者雙向預測等,則上述子編碼單元的預測方向指示資訊用於指示確定當前編碼單元的預測資訊的方法是前向預測、後向預測、雙向預測或其他預測方向;關於子編碼單元的運動向量的描述可以參見上述實施例中對於編碼單元的運動向量的相關描述,此處不再贅述;子編碼單元的參考塊指示資訊指的是與該子編碼單元最相似的圖像塊(可以稱為參考塊)所在的視頻幀的索引,可以根據該視頻幀的索引可以獲知該參考塊為待編碼的視頻資料的哪一幀中的圖像塊。In the embodiment of the present invention, when encoding the current coding unit, the method for determining the prediction information of the current coding unit may include forward prediction, backward prediction, or bidirectional prediction. Then, the prediction direction indication information of the sub-coding unit is used to indicate The method for determining the prediction information of the current coding unit is forward prediction, backward prediction, bidirectional prediction, or other prediction directions; for the description of the motion vector of the sub-coding unit, please refer to the relevant description of the motion vector of the coding unit in the above embodiment, It is not repeated here; the reference block indication information of the sub-coding unit refers to the index of the video frame where the image block (which may be referred to as a reference block) that is most similar to the sub-coding unit can be based on the index of the video frame. It is known in which frame of the video material to be encoded that the reference block is an image block.

示例性的,本發明實施例中,假設上述子編碼單元的運動資訊中,一個子編碼單元(可以稱為第一子編碼單元)的預測指示方向為前向預測,第一子編碼單元的運動向量為(1,0),第一子編碼單元的參考塊指示資訊為10,那麼編碼設備確定在該第一子編碼單元所在的視頻幀(即當前編碼單元所在的視頻幀,即第一視頻幀)的前面,且索引為10的視頻幀(可以稱為第二視頻幀)中,確定與該第一子編碼單元的位置對應的子編碼單元(可以稱為第二子編碼單元),然後在該第二視頻幀中,與該第二子編碼單元的距離為(1,0)的子編碼單元(可以稱為第三子編碼單元)為與第一子編碼單元最相似的子編碼單元,則將第三子編碼單元的圖元值作為第一子編碼單元的圖元值,即將第三子編碼單元作為第一子編碼單元的預測資訊。Exemplarily, in the embodiment of the present invention, it is assumed that in the motion information of the above sub-coding units, the prediction indication direction of one sub-coding unit (which may be called a first sub-coding unit) is forward prediction, and the motion of the first sub-coding unit The vector is (1, 0) and the reference block indication information of the first sub-coding unit is 10, then the encoding device determines the video frame where the first sub-coding unit is located (that is, the video frame where the current coding unit is located, that is, the first video Frame) and the video frame with index 10 (which can be called the second video frame), determine the sub-coding unit (which can be called the second sub-coding unit) corresponding to the position of the first sub-coding unit, and then In the second video frame, the sub-coding unit with a distance of (1, 0) from the second sub-coding unit (which may be referred to as a third sub-coding unit) is the sub-coding unit most similar to the first sub-coding unit Then, the primitive value of the third sub-coding unit is used as the primitive value of the first sub-coding unit, that is, the third sub-coding unit is used as the prediction information of the first sub-coding unit.

需要說明的是,本發明實施例中,對於獲取至少兩個子編碼單元各自的運動資訊的方法,在下述S103中做詳細介紹。It should be noted that, in the embodiment of the present invention, a method for acquiring motion information of at least two sub-coding units will be described in detail in S103 below.

S103、編碼設備根據至少兩個子編碼單元各自的運動資訊,確定當前編碼單元的第一候選運動資訊清單。S103. The coding device determines the first candidate motion information list of the current coding unit according to the motion information of at least two sub-coding units.

其中,第一候選運動資訊清單包括至少兩個子編碼單元各自的運動資訊和當前編碼單元。The first candidate motion information list includes motion information and current coding units of at least two sub-coding units.

本發明實施例中,S103具體可以通過S103a-S103e實現:In the embodiment of the present invention, S103 may be specifically implemented through S103a-S103e:

S103a、編碼設備獲取與該當前編碼單元空域相鄰的多個圖像塊的運動資訊,並檢查該多個圖像塊的運動資訊的可用性和重複情況,以及根據檢查結果向第一候選運動資訊清單中添加運動資訊。S103a. The encoding device acquires motion information of multiple image blocks adjacent to the current coding unit airspace, and checks the availability and repetition of the motion information of the multiple image blocks, and sends the first candidate motion information according to the inspection result. Add sports information to the list.

本發明實施例中,編碼設備獲取與該當前編碼單元空域相鄰的多個圖像塊的運動資訊,得到多個運動資訊,將該多個運動資訊作為當前編碼單元的候選運動資訊,由於當前編碼單元的候選運動資訊中可能存在不可用的運動資訊,例如未編碼的圖像塊不存在運動資訊;當前編碼單元的候選運動資訊中也可能存在重複的運動資訊,以編碼設備確定了4個空域相鄰的圖像塊的運動資訊為例,在編碼設備獲取的4個運動資訊中,其中有2個運動資訊相同,則這2個運動資訊重複。編碼設備確定出不可用的運動資訊和重複的運動資訊之後,編碼設備刪除候選運動中不可用的運動資訊和重複的運動資訊(重複的運動資訊中保留一個運動資訊,剩餘的重複的運動資訊均刪除),然後編碼設備將剩餘的運動資訊(候選運動資訊中除不可用和重複的運動資訊之外的運動資訊)添加到第一候選運動資訊清單中。In the embodiment of the present invention, the encoding device acquires motion information of multiple image blocks adjacent to the current coding unit spatial domain, obtains multiple motion information, and uses the multiple motion information as candidate motion information of the current coding unit. There may be unusable motion information in the candidate motion information of the coding unit, for example, there is no motion information in the uncoded image block; there may also be duplicate motion information in the current motion information of the coding unit, and the coding device determines 4 For example, the motion information of adjacent image blocks in the spatial domain. Among the four pieces of motion information acquired by the encoding device, two of the motion information are the same, and the two motion information are repeated. After the encoding device determines the unavailable sports information and the repeated sports information, the encoding device deletes the unavailable sports information and the repeated sports information in the candidate sports (a sports information is retained in the repeated sports information, and the remaining repeated sports information are both Delete), and then the encoding device adds the remaining sports information (sport information other than unavailable and repeated sports information in the candidate sports information) to the first candidate sports information list.

可選的,本發明實施例中,上述當前編碼單元的空域相鄰的圖像塊的數量可以包括多個,具體的,當前編碼單元的空域相鄰的圖像塊的數量可以根據實際情況確定,本發明實施例不作具體限定。Optionally, in the embodiment of the present invention, the number of image blocks adjacent to the spatial domain of the current coding unit may include multiple, specifically, the number of image blocks adjacent to the spatial domain of the current coding unit may be determined according to actual conditions The embodiments of the present invention are not specifically limited.

需要說明的是,本發明實施例中,上述當前編碼單元的空域相鄰的圖像塊的大小可以與當前編碼單元的大小相同,也可以與當前編碼單元的大小不同,即當前編碼單元的空域相鄰的圖像塊的大小可以小於當前編碼單元的大小,也可以等於當前編碼單元的大小,還可以大於當前編碼單元的大小,本發明實施例不作具體限定。It should be noted that in the embodiment of the present invention, the size of the image block adjacent to the spatial domain of the current coding unit may be the same as the size of the current coding unit, or may be different from the size of the current coding unit, that is, the spatial domain of the current coding unit The size of the adjacent image block may be smaller than the size of the current coding unit, may be equal to the size of the current coding unit, or may be larger than the size of the current coding unit, which is not specifically limited in this embodiment of the present invention.

S103b、編碼設備獲取至少兩個子編碼單元各自的運動資訊,並檢查至少兩個子編碼單元各自的運動資訊的可用性和重複情況,以及根據檢查結果向第一候選運動資訊清單中添加子編碼單元的運動資訊。S103b. The encoding device acquires the motion information of each of the at least two sub-coding units, and checks the availability and repetition of the motion information of the at least two sub-coding units, and adds the sub-coding unit to the first candidate motion information list according to the check result. Sports information.

本發明實施例中,對於至少兩個子編碼單元中的所有子編碼單元均可以採用高級時域運動向量預測(advanced temporal motion vector prediction,ATMVP)方法,獲取每一個子編碼單元的運動資訊,以下均稱為子編碼單元的ATMVP運動資訊,和\或採用空域時域運動向量預測(spatial-temporal motion vector prediction,STMVP)方法獲取每一個子編碼單元的運動資訊,以下均稱為子編碼單元的STMVP運動資訊。In the embodiment of the present invention, for all sub-coding units in at least two sub-coding units, an advanced temporal motion vector prediction (ATMVP) method may be used to obtain motion information of each sub-coding unit. All are called ATMVP motion information of sub-coding units, and/or spatial-temporal motion vector prediction (STMVP) method is used to obtain the motion information of each sub-coding unit. STMVP sports information.

需要說明的是,下述實施例中,均以編碼設備獲取的子編碼單元的運動資訊為ATMVP運動資訊和STMVP運動資訊為例介紹確定當前編碼單元的候選運動資訊清單的方法。在實際應用中,可以根據實際情況選擇獲取ATMVP運動資訊和\或STMVP運動資訊,本發明實施例不作具體限定。It should be noted that, in the following embodiments, the method of determining the candidate motion information list of the current coding unit is described by taking the motion information of the sub-coding units acquired by the coding device as ATMVP motion information and STMVP motion information as examples. In practical applications, ATMVP sports information and/or STMVP sports information may be selected and obtained according to the actual situation, which is not specifically limited in the embodiments of the present invention.

本發明實施例中,以至少兩個子編碼單元中的一個子編碼單元(例如,稱為第一子編碼單元)為例,編碼設備獲取第一子編碼單元的ATMVP運動資訊的方法為:編碼設備獲取第一子編碼單元所在的第一視頻幀的參考幀中對應位置的圖像塊(簡稱為第一子編碼單元的對應塊)的運動資訊,並進行縮放,得到第一子編碼單元的運動資訊。In the embodiment of the present invention, taking one of the at least two sub-coding units (for example, called the first sub-coding unit) as an example, the method for the encoding device to obtain the ATMVP motion information of the first sub-coding unit is: encoding The device obtains the motion information of the image block at the corresponding position in the reference frame of the first video frame where the first sub-encoding unit is located (referred to as the corresponding block of the first sub-encoding unit), and performs scaling to obtain the Sports information.

示例性的,第一子編碼單元所在的視頻幀(即第一視頻幀)的圖序計數(picture order count,POC)記為D1,第一視頻幀的參考幀的POC記為D2,第一子編碼單元的對應塊所在的視頻幀(例如稱為第二視頻幀)的POC記為D3,第二視頻幀(即第一子編碼單元的對應塊所在的視頻幀)的參考幀的POC記為D4,第一子編碼單元的對應塊的運動資訊記為MV,則第一子編碼單元的運動資訊MVs可以由公式(1)得到:

Figure 02_image001
Figure 02_image003
(1)Exemplarily, the picture order count (POC) of the video frame where the first sub-coding unit is located (ie, the first video frame) is denoted as D1, and the POC of the reference frame of the first video frame is denoted as D2, the first The POC of the video frame (for example, called the second video frame) where the corresponding block of the sub-coding unit is located is recorded as D3, and the POC of the reference frame of the second video frame (that is, the video frame where the corresponding block of the first sub-coding unit is located) As D4, the motion information of the corresponding block of the first sub-coding unit is recorded as MV, then the motion information MVs of the first sub-coding unit can be obtained by formula (1):
Figure 02_image001
,
Figure 02_image003
(1)

其中,

Figure 02_image005
表示縮放因數,縮放因數可以表徵MVs相對於MV來說,縮放的程度。among them,
Figure 02_image005
Represents a scaling factor, which can characterize the degree of scaling of MVs relative to MV.

本發明實施例中,以至少兩個子編碼單元中的一個子編碼單元(例如,上述第一子編碼單元)為例,編碼設備獲取第一子編碼單元的STMVP運動資訊的方法為:編碼設備獲取第一子編碼單元空域相鄰(例如,第一子編碼單元的上方和左方)的圖像塊的運動資訊,並獲取第一子編碼單元的時域相鄰(例如,第一子編碼單元左下角的時域相鄰)的圖像塊的運動資訊,然後將空域相鄰的圖像塊的運動資訊與時域相鄰的圖像塊的運動資訊求平均,得到該第一子編碼單元的運動資訊。In the embodiment of the present invention, taking one of the at least two sub-coding units (for example, the above-mentioned first sub-coding unit) as an example, the method for the encoding device to obtain the STMVP motion information of the first sub-coding unit is: the encoding device Obtain the motion information of the image blocks adjacent to the spatial domain of the first sub-coding unit (for example, above and to the left of the first sub-coding unit), and obtain the temporal domain of the first sub-coding unit (for example, the first sub-coding The motion information of image blocks adjacent to the time domain in the lower left corner of the unit, and then averaging the motion information of image blocks adjacent to the spatial domain and the motion information of image blocks adjacent to the time domain to obtain the first sub-code Unit sports information.

示例性的,如圖10所示,圖像塊1表示第一子編碼單元,圖像塊2和圖像塊3為第一子編碼單元的空域相鄰的圖像塊,圖像塊4為與第一子編碼單元時域相鄰的圖像塊,編碼設備確定該圖像塊1的空域相鄰的圖像塊2和圖像塊3的運動資訊,和時域相鄰的圖像塊3的運動資訊,然後編碼設備求圖像塊2、圖像塊3和圖像塊4的運動資訊的平均值。Exemplarily, as shown in FIG. 10, image block 1 represents a first sub-coding unit, image block 2 and image block 3 are image blocks adjacent to the spatial domain of the first sub-coding unit, and image block 4 is The image block adjacent to the first sub-coding unit in the time domain, the encoding device determines the motion information of the image block 2 and the image block 3 adjacent to the spatial domain of the image block 1, and the image block adjacent to the time domain 3 motion information, and then the encoding device averages the motion information of image block 2, image block 3, and image block 4.

本發明實施例中,編碼設備獲取到當前編碼單元的所有子編碼單元的運動資訊(即ATMVP運動資訊和STMVP運動資訊)之後,編碼設備檢查所有子編碼單元的運動資訊的可用性和重複情況,並刪除不可用的運動資訊和重複的運動資訊,然後編碼設備將剩餘的運動資訊(除不可用和重複的運動資訊之外的運動資訊)添加到第一候選運動資訊清單中。In the embodiment of the present invention, after the encoding device obtains the motion information (that is, ATMVP motion information and STMVP motion information) of all the sub coding units of the current coding unit, the coding device checks the availability and repetition of the motion information of all the sub coding units, and Delete the unavailable sports information and the repeated sports information, and then the encoding device adds the remaining sports information (sport information other than the unavailable and repeated sports information) to the first candidate sports information list.

S103c、若第一候選運動資訊清單中的運動資訊的長度小於第一長度閾值,則編碼設備繼續獲取當前編碼單元的空域相鄰的圖像塊的運動資訊,並檢查其可用性和重複情況,以及根據檢查結果向第一候選運動資訊清單中添加運動資訊,否則直接執行S103d。S103c. If the length of the motion information in the first candidate motion information list is less than the first length threshold, the encoding device continues to obtain motion information of image blocks adjacent to the spatial domain of the current coding unit, and checks its availability and repetition, and Add sports information to the first candidate sports information list according to the check result, otherwise directly execute S103d.

本發明實施例中,編碼設備的第一候選運動資訊清單中包括當前編碼單元的候選運動資訊,也包括當前編碼單元的所有子編碼單元的運動資訊,第一候選運動資訊清單中的運動資訊的長度為該第一候選運動資訊清單中運動資訊的數量,第一長度閾值為在不考慮刪除不可用和重複的運動資訊的前提下,第一候選運動資訊數量與子編碼單元的運動資訊的數量,例如,上述編碼設備獲取當前編碼單元的4個空域相鄰的圖像塊的運動資訊,那麼當前編碼單元的候選運動資訊數量為4,編碼設備獲取的子編碼單元的運動資訊包括ATMVP和STMVP,則子編碼單元的運動資訊的數量為2,如此,第一候選運動資訊清單的第一長度閾值為6,如果在S103a中,編碼設備將當前編碼單元的4個候選運動資訊中的一個運動資訊刪除,那麼第一候選運動資訊清單的長度為3,然後,在S103b中,編碼設備未刪除運動資訊,將子編碼單元的2個運動資訊(即ATMVP運動資訊和STMVP運動資訊)加入第一候選運動資訊清單中,那麼第一候選運動資訊清單的長度為5。In the embodiment of the present invention, the first candidate motion information list of the coding device includes candidate motion information of the current coding unit, and also includes motion information of all sub-coding units of the current coding unit, and the motion information in the first candidate motion information list The length is the amount of motion information in the first candidate motion information list, and the first length threshold is the number of the first candidate motion information and the number of sub-coding unit motion information without considering the deletion of unusable and repeated motion information For example, if the above coding device obtains motion information of the image blocks adjacent to the four spatial domains of the current coding unit, the number of candidate motion information of the current coding unit is 4, and the motion information of the sub coding units obtained by the coding device includes ATMVP and STMVP , The number of motion information of the sub-coding unit is 2, so, the first length threshold of the first candidate motion information list is 6, if in S103a, the encoding device uses one of the four candidate motion information of the current coding unit Delete, then the length of the first candidate sports information list is 3, and then, in S103b, the encoding device does not delete the sports information, and adds the 2 sports information of the sub-coding unit (ie, ATMVP sports information and STMVP sports information) to the first candidate In the sports information list, the length of the first candidate sports information list is 5.

本發明實施例中,第一候選運動資訊清單中的運動資訊的長度小於第一長度閾值,表明第一候選運動資訊清單中的運動資訊的數量比較少,然後編碼設備可以繼續向第一候選運動資訊清單中添加新的運動資訊。In the embodiment of the present invention, the length of the motion information in the first candidate motion information list is less than the first length threshold, indicating that the amount of motion information in the first candidate motion information list is relatively small, and then the encoding device may continue to move to the first candidate Add new sports information to the information list.

S103d、編碼設備獲取當前編碼單元的時域相鄰的圖像塊的運動資訊,並將其進行縮放之後添加至第一候選運動資訊清單。S103d. The encoding device obtains the motion information of the image blocks adjacent to the time domain of the current coding unit, scales it, and adds it to the first candidate motion information list.

可選的,本發明實施例中,上述S103d中當前編碼單元的時域相鄰的圖像塊(即第一視頻幀的參考幀中的圖像塊)可以為具體某一個指定位置的圖像塊,若該圖像塊的運動資訊不存在,可以在第一視頻幀的參考幀中,選擇與當前編碼單元的位置對應的參考塊中的一個圖像塊,並將該圖像塊的運動資訊添加至第一候選運動資訊清單。Optionally, in the embodiment of the present invention, the image block adjacent to the time domain of the current coding unit in S103d (that is, the image block in the reference frame of the first video frame) may be an image at a specific specified position Block, if the motion information of the image block does not exist, you can select an image block in the reference block corresponding to the position of the current coding unit in the reference frame of the first video frame and move the motion of the image block The information is added to the first candidate sports information list.

需要說明的是,本發明實施例中,上述當前編碼單元的時域相鄰的圖像塊的大小可以與當前編碼單元的大小相同,也可以與當前編碼單元的大小不同,本發明實施例不作限定。It should be noted that, in the embodiment of the present invention, the size of the image block adjacent to the current coding unit in the time domain may be the same as the size of the current coding unit, or may be different from the size of the current coding unit. limited.

S103e、若第一候選運動資訊清單中的運動資訊的長度小於第二長度閾值,則編碼設備填充該第一候選運動資訊清單。S103e. If the length of the motion information in the first candidate motion information list is less than the second length threshold, the encoding device fills the first candidate motion information list.

本發明實施例中,第二長度閾值指的是在不考慮刪除當前編碼單元的候選運動資訊和至少兩個子編碼單元各自的運動資訊,在S103d之後,第一候選運動資訊清單的長度。示例性的,在上述S103a中當前編碼單元的候選運動資訊的數量為4,在S103b中至少兩個子編碼單元各自的運動資訊的數量為2,那麼第二長度閾值為7。In the embodiment of the present invention, the second length threshold refers to the length of the first candidate motion information list after S103d without considering the deletion of the candidate motion information of the current coding unit and the motion information of at least two sub-coding units. Exemplarily, in the above S103a, the number of candidate motion information of the current coding unit is 4, and in S103b, the number of motion information of each of the at least two sub-coding units is 2, then the second length threshold is 7.

本發明實施例中,編碼設備確定第一候選運動資訊清單中的運動資訊的長度小於第二長度閾值,則編碼設備向第一候選運動資訊清單中填充新的運動資訊,使得第一候選運動資訊清單的長度等於第二長度閾值。In the embodiment of the present invention, the encoding device determines that the length of the motion information in the first candidate motion information list is less than the second length threshold, then the coding device fills the first candidate motion information list with new motion information so that the first candidate motion information The length of the list is equal to the second length threshold.

可選的,本發明實施例中,編碼設備可以用運動向量為(0,0)的運動資訊填充第一候選運動資訊清單,編碼設備還可以根據當前編碼單元的所在的第一視頻幀的前後視頻幀確定待填充的運動資訊。對於運動資訊的填充的方法是常用的現有技術,此處不再贅述。Optionally, in the embodiment of the present invention, the encoding device may fill the first candidate motion information list with the motion information whose motion vector is (0,0), and the encoding device may also according to the context of the first video frame where the current coding unit is located. The video frame determines the motion information to be filled. The method of filling the sports information is a commonly used existing technology, which will not be repeated here.

至此,編碼設備獲取到當前編碼單元的第一候選運動資訊清單,從而該編碼設備可以根據第一候選運動資訊清單中的運動資訊,確定當前編碼單元的預測資訊。At this point, the encoding device obtains the first candidate motion information list of the current coding unit, so that the encoding device can determine the prediction information of the current coding unit according to the motion information in the first candidate motion information list.

S104、編碼設備根據第一候選運動資訊清單,得到當前編碼單元的預測資訊。S104. The encoding device obtains prediction information of the current encoding unit according to the first candidate motion information list.

可選的,結合圖9,如圖11所示,本發明實施例中,S104可以通過S104a-S104b實現:Optionally, with reference to FIG. 9 and FIG. 11, in the embodiment of the present invention, S104 may be implemented through S104a-S104b:

S104a、編碼設備在第一候選運動資訊清單中確定第一目標候選運動資訊。S104a. The encoding device determines the first target candidate motion information in the first candidate motion information list.

本發明實施例中,編碼設備獲取到第一候選運動資訊清單之後,該編碼設備可以從該第一候選運動資訊清單中,確定出最優的運動資訊(稱為第一目標候選運動資訊),該第一目標候選運動資訊為根據第一候選運動資訊清單中的所有候選運動資訊確定的當前編碼單元的預測資訊的殘差(即上述的第一殘差資訊)最小的一個候選運動資訊。In the embodiment of the present invention, after the encoding device obtains the first candidate motion information list, the encoding device may determine the optimal motion information (referred to as the first target candidate motion information) from the first candidate motion information list, The first target candidate motion information is the candidate motion information with the smallest residual (that is, the aforementioned first residual information) of the prediction information of the current coding unit determined from all candidate motion information in the first candidate motion information list.

可選的,本發明實施例中,編碼設備可以採用率失真優化的技術,從第一候選運動資訊清單中確定出第一目標候選運動資訊。具體的,編碼設備可以根據第一候選運動清單中的所有候選運動資訊,採用下面的公式(2),計算率失真代價,然後選擇率失真代價最小的運動資訊作為第一目標候選運動資訊:

Figure 02_image007
(2)Optionally, in the embodiment of the present invention, the encoding device may use a rate-distortion optimization technique to determine the first target candidate motion information from the first candidate motion information list. Specifically, the encoding device may calculate the rate-distortion cost according to all candidate motion information in the first candidate motion list using the following formula (2), and then select the motion information with the lowest rate-distortion cost as the first target candidate motion information:
Figure 02_image007
(2)

其中,J表示率失真代價,RAD表示當前編碼單元的預測資訊與原始資訊之間的絕對誤差和,

Figure 02_image009
表示拉格朗日乘子(
Figure 02_image011
可以為預設的常量),R表示視頻資料的碼率。Among them, J represents the rate distortion cost, RAD represents the sum of the absolute error between the prediction information of the current coding unit and the original information,
Figure 02_image009
Means Lagrange multiplier (
Figure 02_image011
Can be a preset constant), R represents the bit rate of video data.

本發明實施例中,編碼設備根據第一候選運動資訊清單中的每個候選運動資訊,估計當前編碼單元的預測資訊。具體的,編碼設備根據第一候選運動資訊清單中的當前編碼單元的候選運動資訊,確定出當前編碼單元的預測資訊,並且編碼設備根據第一候選運動資訊中的子編碼單元的運動資訊,例如根據當前編碼單元的所有子編碼單元的運動該資訊,確定出各個子編碼單元的預測資訊,從而得到當前編碼單元的預測資訊,然後編碼設備根據公式(2)計算多個預測資訊率失真代價,選擇率失真代價最小的候選運動資訊作為第一目標候選運動資訊。In the embodiment of the present invention, the encoding device estimates the prediction information of the current coding unit according to each candidate motion information in the first candidate motion information list. Specifically, the encoding device determines the prediction information of the current coding unit based on the candidate motion information of the current coding unit in the first candidate motion information list, and the encoding device uses the motion information of the sub-coding unit in the first candidate motion information, for example According to the motion information of all the sub-coding units of the current coding unit, the prediction information of each sub-coding unit is determined to obtain the prediction information of the current coding unit, and then the encoding device calculates multiple prediction information rate distortion costs according to formula (2), The candidate motion information with the lowest rate-distortion cost is selected as the first target candidate motion information.

S104b、編碼設備根據第一目標候選運動資訊,確定當前編碼單元的預測資訊。S104b. The encoding device determines prediction information of the current coding unit according to the first target candidate motion information.

本發明實施例中,編碼設備根據第一目標候選運動資訊確定當前編碼單元的預測資訊具體可以為:編碼設備將第一目標候選運動資訊對應的圖像塊的圖元值作為當前編碼單元的預測資訊。In the embodiment of the present invention, the coding device determining the prediction information of the current coding unit according to the first target candidate motion information may specifically be: the coding device uses the primitive value of the image block corresponding to the first target candidate motion information as the prediction of the current coding unit News.

可選的,本發明實施例中,結合圖11,如圖12所示,在上述S104之後,本發明實施例提供的處理視頻資料的方法還可以包括S105:Optionally, in the embodiment of the present invention, referring to FIG. 11 and as shown in FIG. 12, after the above S104, the method for processing video data provided by the embodiment of the present invention may further include S105:

S105、編碼設備將用於指示第一目標候選運動資訊的指示資訊編入當前編碼單元的碼流。S105. The encoding device encodes the indication information used to indicate the first target candidate motion information into the code stream of the current encoding unit.

本發明實施例中,編碼設備完成對當前編碼單元的編碼後,編碼設備可以將其確定的第一目標候選運動資訊的指示資訊編入碼流,如此,在解碼編碼接收到當前編碼單元編碼後的碼流時,解碼設備可以從碼流中獲取當前編碼單元的第一目標候選運動資訊的指示資訊。In the embodiment of the present invention, after the encoding device finishes encoding the current encoding unit, the encoding device may encode the indication information of the first target candidate motion information determined by the encoding device into the code stream. Thus, after decoding and encoding, the current encoding unit encodes During the code stream, the decoding device may obtain the indication information of the first target candidate motion information of the current coding unit from the code stream.

可選的,本發明實施例中,上述第一目標候選運動資訊的指示資訊可以為該第一目標候選運動資訊在第一候選運動資訊清單中的索引,當然,第一目標候選運動資訊的指示資訊也設置為其他滿足使用需求的指示資訊,本發明實施例不作具體限定。Optionally, in the embodiment of the present invention, the indication information of the first target candidate sports information may be an index of the first target candidate sports information in the first candidate sports information list. Of course, the indication of the first target candidate sports information The information is also set to other instruction information that meets the usage requirements, and the embodiment of the present invention is not specifically limited.

本發明實施例中,結合圖9,在上述S104之後,本發明實施例提供的處理視頻資料的方法還可以包括S106:In the embodiment of the present invention, referring to FIG. 9, after the above S104, the method for processing video data provided by the embodiment of the present invention may further include S106:

S106、編碼設備獲取當前編碼單元的原始資訊。S106. The encoding device obtains the original information of the current encoding unit.

S107、編碼設備根據當前編碼單元的預測資訊和當前編碼單元的原始資訊,對當前編碼單元編碼。S107. The encoding device encodes the current coding unit according to the prediction information of the current coding unit and the original information of the current coding unit.

本發明實施例中,在視頻資料編碼的過程中,當前編碼單元的原始資訊為已知的資訊(即為當前編碼單元中的真實圖元值),編碼設備獲取到當前編碼單元的原始資訊之後,將當前編碼單元的原始資訊與當前編碼單元的預測資訊相減,得到當前編碼單元的殘差資訊(以下均稱為第一殘差資訊),然後編碼設備對該第一殘差資訊編碼,得到第二殘差資訊,即當前編碼單元經編碼之後的碼流。In the embodiment of the present invention, in the process of encoding video data, the original information of the current coding unit is known information (that is, the real primitive value in the current coding unit), and the encoding device obtains the original information of the current coding unit , The original information of the current coding unit and the prediction information of the current coding unit are subtracted to obtain the residual information of the current coding unit (hereinafter referred to as the first residual information), and then the encoding device encodes the first residual information, The second residual information is obtained, that is, the code stream after the current coding unit is coded.

具體的,上述編碼設備對第一殘差資訊編碼包括對該第一殘差資訊進行變換(例如離散余弦變換(discrete cosine transformation,DCT)等)、量化以及熵編碼,得到第二殘差資訊,即得到編碼後的當前編碼單元。Specifically, the encoding device encodes the first residual information by transforming the first residual information (such as discrete cosine transformation (DCT), etc.), quantizing, and entropy encoding to obtain the second residual information, The current coding unit after coding is obtained.

可選的,本發明實施例中,編碼設備將編碼後的當前編碼單元的資訊(即碼流)發送給解碼設備,如此,解碼設備接收到編碼設備發送的第二殘差資訊之後,解碼設備可以解碼該第二殘差資訊,恢復第二殘差資訊對應的當前編碼單元的完整資訊。Optionally, in the embodiment of the present invention, the encoding device sends the encoded information (ie, code stream) of the current encoding unit to the decoding device. In this way, after the decoding device receives the second residual information sent by the encoding device, the decoding device The second residual information can be decoded to recover the complete information of the current coding unit corresponding to the second residual information.

可選的,本發明實施例中,編碼設備確定出當前編碼單元的預測資訊和第一殘差資訊之後,編碼設備可以確定當前編碼單元的重建資訊。Optionally, in the embodiment of the present invention, after the encoding device determines the prediction information and the first residual information of the current coding unit, the encoding device may determine the reconstruction information of the current coding unit.

本發明實施例中,編碼設備將當前編碼單元的預測資訊與上述編碼設備確定的第一殘差資訊相加,得到當前編碼單元的重建資訊,該當前編碼單元的重建資訊用於編碼設備對其他待編碼單元編碼(例如待編碼單元為第一編碼單元),該第一編碼單元為待編碼的視頻幀中的一個編碼單元。例如,若第一編碼單元為當前編碼單元的下一個編碼單元,編碼設備對第一編碼單元編碼的過程中,編碼設備確定第一編碼單元的預測資訊時,可以將當前編碼單元的重建資訊作為第一編碼單元的參考資訊。In the embodiment of the present invention, the encoding device adds the prediction information of the current encoding unit to the first residual information determined by the encoding device to obtain reconstruction information of the current encoding unit. The reconstruction information of the current encoding unit is used by the encoding device to The unit to be encoded is encoded (for example, the unit to be encoded is a first encoding unit), and the first encoding unit is one encoding unit in the video frame to be encoded. For example, if the first coding unit is the next coding unit of the current coding unit, during the process of coding the first coding unit by the coding device, when the coding device determines the prediction information of the first coding unit, it may use the reconstruction information of the current coding unit as Reference information of the first coding unit.

本發明實施例中,在視頻資料編碼的過程中,通過上述S101,若編碼設備確定當前編碼單元的資訊不滿足子編碼單元編解碼條件,則說明當前編碼單元的尺寸較小,編碼設備無需將當前編碼單元劃分為至少兩個子編碼單元,再根據子編碼單元的運動資訊來確定當前編碼單元的預測資訊,編碼設備可以根據當前編碼單元的運動資訊,確定該當前編碼單元的預測資訊,如此可以降低編碼設備對視頻資料編碼的複雜度。In the embodiment of the present invention, in the process of encoding video data, through the above S101, if the encoding device determines that the information of the current encoding unit does not meet the encoding and decoding conditions of the sub-encoding unit, it means that the size of the current encoding unit is small, and the encoding device does not need to The current coding unit is divided into at least two sub-coding units, and then the prediction information of the current coding unit is determined according to the motion information of the sub-coding unit. The encoding device can determine the prediction information of the current coding unit according to the motion information of the current coding unit. It can reduce the complexity of encoding video data by the encoding device.

具體的,本發明實施例中,結合圖9,如圖13所示,若當前編碼單元的資訊不滿足子編碼單元編解碼條件,則本發明實施例提供的處理視頻資料的方法還可以包括S108-S110:Specifically, in the embodiment of the present invention, referring to FIG. 9, as shown in FIG. 13, if the information of the current encoding unit does not satisfy the encoding and decoding conditions of the sub-encoding unit, the method for processing video data provided by the embodiment of the present invention may further include S108 -S110:

S108、若當前編碼單元的資訊不滿足子編碼單元編解碼條件,編碼設備確定當前編碼單元的第二運動資訊清單,該第二候選運動資訊清單包括當前編碼單元的候選運動資訊。S108. If the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, the encoding device determines a second list of motion information of the current coding unit. The second list of candidate motion information includes candidate motion information of the current coding unit.

其中,第二運動資訊清單中不包括至少兩個子編碼單元各自的運動資訊。The second motion information list does not include the motion information of at least two sub-coding units.

本發明實施例中,解碼設備確定當前編碼單元的資訊滿足子編碼單元編解碼條件,則解碼設備可以獲知當前解碼單元的候選運動資訊清單的長度,例如,通常,一個編碼單元的資訊滿足子編碼單元編解碼條件時,其候選運動資訊清單的長度可以為7,一個編碼單元的資訊不滿足子編碼單元編解碼條件時,其候選運動資訊清單的長度可以為5。In the embodiment of the present invention, if the decoding device determines that the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit, the decoding device can learn the length of the candidate motion information list of the current decoding unit. For example, generally, the information of one coding unit satisfies the sub-coding When the unit coding and decoding conditions, the length of the candidate motion information list can be 7, and when the information of one coding unit does not meet the coding and decoding conditions of the sub coding unit, the length of the candidate motion information list can be 5.

具體的,編碼設備確定第二候選運動資訊清單包括獲取當前編碼單元的至少一個候選運動資訊,然後將該至少一個候選運動資訊添加至第一候選運動資訊清單,上述S108可以通過S108a-S108d實現:Specifically, the encoding device determines that the second candidate motion information list includes acquiring at least one candidate motion information of the current coding unit, and then adding the at least one candidate motion information to the first candidate motion information list. The above S108 may be implemented through S108a-S108d:

S108a、編碼設備獲取與該當前編碼單元空域相鄰的多個圖像塊的運動資訊,並檢查該多個圖像塊的運動資訊的可用性和重複情況,以及根據檢查結果向當前編碼單元的第二候選運動資訊清單中添加運動資訊。S108a. The encoding device acquires motion information of multiple image blocks adjacent to the current coding unit airspace, and checks the availability and repetition of the motion information of the multiple image blocks, and sends Add sports information to the candidate sports information list.

對於S108a的具體描述可以參見上述實施例中對於S103a的相關描述,此處不再贅述。For a specific description of S108a, reference may be made to the related description of S103a in the foregoing embodiment, and details are not described herein again.

S108b、若第二候選運動資訊清單中的運動資訊的長度小於第三長度閾值,則編碼設備繼續獲取當前編碼單元的空域相鄰的圖像塊的運動資訊,並檢查其可用性和重複情況,以及根據檢查結果向第二候選運動資訊清單中添加運動資訊,否則直接執行S108c。S108b. If the length of the motion information in the second candidate motion information list is less than the third length threshold, the encoding device continues to acquire motion information of image blocks adjacent to the spatial domain of the current coding unit, and checks its availability and repetition, and Add sports information to the second candidate sports information list according to the check result, otherwise directly execute S108c.

本發明實施例中,第三長度閾值指的是在不考慮刪除S108a中編碼設備獲取的候選運動資訊中的運動資訊的情況下,當前編碼單元的候選運動資訊的數量。In the embodiment of the present invention, the third length threshold refers to the number of candidate motion information of the current coding unit without considering the deletion of the motion information in the candidate motion information acquired by the encoding device in S108a.

對於S108b的其他描述具體可以參見上述實施例中對於S103c的相關描述,此處不再贅述。For other descriptions of S108b, reference may be made to the related description of S103c in the foregoing embodiment, and details are not described herein again.

S108c、編碼設備獲取當前編碼單元的時域相鄰的圖像塊的運動資訊,並進行縮放之後添加至第二候選運動資訊清單。S108c. The encoding device acquires the motion information of the image blocks adjacent to the time domain of the current coding unit, performs scaling, and adds it to the second candidate motion information list.

對於S108c的具體描述可以參見上述實施例中對於S103d的相關描述,此處不再贅述。For a specific description of S108c, reference may be made to the related description of S103d in the foregoing embodiment, and details are not described herein again.

S108d、若第二候選運動資訊清單中的運動資訊的長度小於第四長度閾值,則編碼設備填充該第二候選運動資訊清單。S108d. If the length of the motion information in the second candidate motion information list is less than the fourth length threshold, the encoding device fills the second candidate motion information list.

本發明實施例中,第四長度閾值指的是在不考慮刪除S108a和S108b中確定的當前編碼單元的候選運動資訊,在S108c之後,第二候選運動資訊清單的長度。若編碼設備確定第二候選運動資訊清單中的運動資訊的長度小於第四長度閾值,則編碼設備向第二候選運動資訊清單中填充新的運動資訊,使得第二候選運動資訊清單的長度等於第四長度閾值。In the embodiment of the present invention, the fourth length threshold refers to the length of the second candidate motion information list after S108c without considering the deletion of the candidate motion information of the current coding unit determined in S108a and S108b. If the encoding device determines that the length of the motion information in the second candidate motion information list is less than the fourth length threshold, the encoding device fills the second candidate motion information list with new motion information so that the length of the second candidate motion information list is equal to the Four length thresholds.

通過上述S108a-S108d可以獲取到第二候選運動資訊,從而該編碼設備可以根據第二候選運動資訊清單中的運動資訊,確定當前編碼單元的預測資訊。The second candidate motion information can be obtained through the above S108a-S108d, so that the encoding device can determine the prediction information of the current coding unit according to the motion information in the second candidate motion information list.

需要說明的是,本發明實施例中,S108d中第二候選運動資訊清單與S103e中候選運動資訊清單不同,S103e中描述的第一候選運動資訊清單中包括S108d中第二候選運動資訊清單的運動資訊,S103e中的候選運動資訊清單包括至少兩個子編碼單元各自的運動資訊和當前編碼單元的運動資訊。It should be noted that in the embodiment of the present invention, the second candidate sports information list in S108d is different from the candidate sports information list in S103e, and the first candidate sports information list described in S103e includes the sports in the second candidate sports information list in S108d Information, the candidate motion information list in S103e includes motion information of at least two sub-coding units and motion information of the current coding unit.

S109、編碼設備在第二候選運動資訊清單中確定第二目標候選運動資訊。S109. The encoding device determines second target candidate motion information in the second candidate motion information list.

S110、編碼設備根據第二目標候選運動資訊,確定當前編碼單元的預測資訊。S110. The encoding device determines the prediction information of the current coding unit according to the second target candidate motion information.

對於S109-S110的其他描述,具體可以參見上述實施例中對於S104中的104a-S104b的相關描述,此處不再贅述。For other descriptions of S109-S110, reference may be made to the related descriptions of 104a-S104b in S104 in the foregoing embodiment, and details are not described herein again.

可選的,本發明實施例中,結合圖13,在S110之後,本發明實施例提供的處理視頻資料的方法還可以包括S111:Optionally, in the embodiment of the present invention, with reference to FIG. 13, after S110, the method for processing video data provided by the embodiment of the present invention may further include S111:

S111、編碼設備將用於指示第二目標候選運動資訊的指示資訊編入當前編碼單元的碼流。S111. The encoding device encodes the indication information for indicating the second target candidate motion information into the code stream of the current encoding unit.

需要說明的是,本發明實施例中,在當前編碼單元的資訊不滿足子編碼單元編解碼條件的情況下,通過S108-S110可以確定出當前編碼單元的預測資訊,並且可以執行上述S106-S107,以對當前編碼單元編碼。It should be noted that, in the embodiment of the present invention, when the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, the prediction information of the current coding unit can be determined through S108-S110, and the above-mentioned S106-S107 can be executed To encode the current coding unit.

本發明實施例中,編碼設備將視頻資料編碼(即壓縮)後發送解碼設備,該解碼設備在播放該視頻資料時,先將編碼後的視頻資料解碼,得到解碼後的視頻資料(即原始的視頻資料),然後該解碼設備可以播放該視頻資料。In the embodiment of the present invention, the encoding device encodes (ie compresses) the video material and sends it to the decoding device. When the decoding device plays the video material, it decodes the encoded video material first to obtain the decoded video material (ie, the original Video material), then the decoding device can play the video material.

採用SMVP技術解碼時,如圖14所示,本發明實施例提供的處理視頻資料的方法可以包括S201-S204:When decoding using SMVP technology, as shown in FIG. 14, the method for processing video data provided by the embodiment of the present invention may include S201-S204:

S201、解碼設備確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件。S201. The decoding device determines whether the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit.

需要說明的是,本發明實施例中,在解碼視頻資料的過程中,上述子編碼單元編解碼條件可以為與編碼視頻資料的過程中的子編碼單元編解碼條件相同,即與S101中的子編碼單元編解碼條件相同,因此,對於S201的具體描述可以參見上述實施例中對於S101的相關描述,此處不再贅述。It should be noted that in the embodiment of the present invention, in the process of decoding video materials, the above-mentioned sub-coding unit codec conditions may be the same as the sub-coding unit codec conditions in the process of encoding video materials, that is, the sub-coding unit in S101 The coding and decoding conditions of the coding unit are the same. Therefore, for the specific description of S201, reference may be made to the related description of S101 in the foregoing embodiment, and details are not described herein again.

S202、若當前編碼單元的資訊滿足子編碼單元編解碼條件,解碼設備獲取至少兩個子編碼單元各自的運動資訊。S202. If the information of the current coding unit meets the coding and decoding conditions of the sub-coding unit, the decoding device obtains the motion information of each of the at least two sub-coding units.

S203、解碼設備根據至少兩個子編碼單元各自的運動資訊,確定當前編碼單元的第一候選運動資訊清單。S203. The decoding device determines the first candidate motion information list of the current coding unit according to the motion information of at least two sub-coding units.

本發明實施例中,對於S201-S203的具體描述可以參見上述實施例中對於S101-S102的相關描述,此處不再贅述。In the embodiments of the present invention, for specific descriptions of S201-S203, refer to the related descriptions of S101-S102 in the foregoing embodiments, and details are not described herein again.

S204、解碼設備根據第一候選運動資訊清單,得到當前編碼單元的預測資訊。S204. The decoding device obtains prediction information of the current coding unit according to the first candidate motion information list.

本發明實施例中,結合圖14,如圖15所示,S204具體可以通過S204a-S204c實現:In the embodiment of the present invention, referring to FIG. 14 and as shown in FIG. 15, S204 may be specifically implemented through S204a-S204c:

S204a、解碼設備獲取用於指示第一候選運動資訊清單中第一目標候選運動資訊的指示資訊。S204a. The decoding device acquires instruction information for indicating the first target candidate motion information in the first candidate motion information list.

可以理解的是,在上述編碼的過程中,編碼設備從第一候選運動資訊清單中確定出第一目標候選運動資訊之後,編碼設備可以將用於指示第一目標候選運動資訊的指示資訊編入當前編碼單元的碼流(即編入編碼後的當前編碼單元的碼流),然後發送給解碼設備,如此,解碼設備接收到當前編碼單元的碼流之後,解碼設備可以從當前編碼單元的碼流中獲取第一目標候選運動資訊的指示資訊,以在該第一目標候選運動資訊的指示資訊的指示下,確定第一目標候選運動資訊。It can be understood that, in the above-mentioned encoding process, after the encoding device determines the first target candidate motion information from the first candidate motion information list, the encoding device may incorporate indication information for indicating the first target candidate motion information into the current The code stream of the coding unit (that is, the code stream encoded into the current coding unit after encoding), and then sent to the decoding device. In this way, after the decoding device receives the code stream of the current coding unit, the decoding device can extract the code stream from the current coding unit. The indication information of the first target candidate motion information is acquired to determine the first target candidate motion information under the indication of the first target candidate motion information.

對於第一目標候選運動資訊的指示資訊的具體描述可以參見上述實施例中對於S105的相關描述,此處不再贅述。For a specific description of the indication information of the first target candidate motion information, reference may be made to the related description of S105 in the foregoing embodiment, and details are not described herein again.

S204b、解碼設備根據第一候選運動資訊清單和第一目標候選運動資訊的指示資訊,確定第一目標候選運動資訊。S204b. The decoding device determines the first target candidate motion information according to the first candidate motion information list and the indication information of the first target candidate motion information.

S204c、解碼設備根據第一目標候選運動資訊,確定當前編碼單元的預測資訊。S204c. The decoding device determines prediction information of the current coding unit according to the first target candidate motion information.

本發明實施例中,解碼設備在第一目標候選運動資訊的指示資訊的指示下,可以在第一候選運動資訊清單中確定第一目標候選運動資訊,從而根據第一目標候選運動資訊,確定當前編碼單元的運動資訊。In the embodiment of the present invention, the decoding device can determine the first target candidate motion information in the first candidate motion information list under the instruction information of the first target candidate motion information, thereby determining the current according to the first target candidate motion information The motion information of the coding unit.

對於S204c的具體描述可以參見上述實施例中對於S104b的相關描述,此處不再贅述。For a specific description of S204c, reference may be made to the related description of S104b in the foregoing embodiment, and details are not described herein again.

可選的,本發明實施例中,在上述S204之後,本發明實施例提供的處理視頻資料的方法還可以包括S205-S206:Optionally, in the embodiment of the present invention, after the above S204, the method for processing video data provided by the embodiment of the present invention may further include S205-S206:

S205、解碼設備解碼其接收到當前編碼單元編碼之後的碼流,得到第一殘差資訊。S205. The decoding device decodes the code stream after it receives the current encoding unit encoding to obtain the first residual information.

本發明實施例中,在視頻資料的編碼過程中,編碼設備對當前編碼單元編碼,即對上述S107中的第一殘差資訊編碼,得到第二殘差資訊(即當前編碼單元編碼之後的碼流),編碼設備將當前編碼編碼之後的碼流發送給解碼設備,解碼設備對該當前編碼單元編碼之後的碼流解碼,即對第二殘差資訊解碼(包括對第二殘差資訊進行熵解碼、反量化以及反變換),得到第一殘差資訊。In the embodiment of the present invention, in the encoding process of the video data, the encoding device encodes the current encoding unit, that is, encodes the first residual information in S107 above, to obtain second residual information (that is, the code after the current encoding unit is encoded Stream), the encoding device sends the code stream after the current encoding to the decoding device, and the decoding device decodes the code stream after the current encoding unit is encoded, that is, decoding the second residual information (including entropy of the second residual information) Decoding, inverse quantization, and inverse transform) to obtain the first residual information.

S206、解碼設備根據當前編碼單元的預測資訊和第一殘差資訊,確定當前編碼單元的重建資訊。S206. The decoding device determines reconstruction information of the current coding unit according to the prediction information of the current coding unit and the first residual information.

本發明實施例中,解碼設備將當前編碼單元的預測資訊與第一殘差資訊相加,然後再對二者之和進行相關濾波操作,即可獲得當前編碼單元的重建資訊,即該解碼設備可以獲取當前編碼單元的完整圖元資訊,進而解碼設備可以通過確定所有編碼單元的重建資訊,得到待解碼的視頻資料的完整圖元資訊,如此,解碼設備可以順利地播放視頻資料。In the embodiment of the present invention, the decoding device adds the prediction information of the current coding unit to the first residual information, and then performs a relevant filtering operation on the sum of the two to obtain the reconstruction information of the current coding unit, that is, the decoding device The complete primitive information of the current coding unit can be obtained, and then the decoding device can obtain the complete primitive information of the video data to be decoded by determining the reconstruction information of all coding units, so that the decoding device can play the video data smoothly.

本發明實施例中,結合圖15,如圖16所示,通過上述S201,若解碼設備確定當前編碼單元的資訊不滿足子編碼單元編解碼條件,則本發明實施例提供的處理視頻資料的方法還可以包括S207-S210:In the embodiment of the present invention, referring to FIG. 15, as shown in FIG. 16, through the above S201, if the decoding device determines that the information of the current coding unit does not meet the coding and decoding conditions of the sub-coding unit, the method for processing video data provided by the embodiment of the present invention It can also include S207-S210:

S207、解碼設備確定當前編碼單元的第二候選運動資訊清單,第二候選運動資訊清單包括當前編碼單元的候選運動資訊。S207. The decoding device determines a second candidate motion information list of the current coding unit. The second candidate motion information list includes candidate motion information of the current coding unit.

其中,第二候選運動資訊清單不包括至少兩個子編碼單元各自的運動資訊。The second candidate motion information list does not include motion information of at least two sub-coding units.

本發明實施例中,對於確定第二候選運動資訊清單的方法,可以參見上述S108中對於確定第二候選運動資訊清單的方法的相關描述,此處不再贅述。In the embodiment of the present invention, for the method for determining the second candidate motion information list, reference may be made to the related description of the method for determining the second candidate motion information list in S108 above, and details are not described herein again.

S208、若當前編碼單元的資訊不滿足子編碼單元編解碼條件,解碼設備獲取用於指示第二候選運動資訊清單中的第二目標候選運動資訊的指示資訊。S208. If the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, the decoding device obtains indication information for indicating the second target candidate motion information in the second candidate motion information list.

可以理解的是,上述編碼視頻資料的過程中,編碼設備從第二候選運動資訊清單中確定出第二目標候選運動資訊之後,編碼設備可以將用於指示第二目標候選運動資訊的指示資訊編入當前編碼單元的碼流(即編入編碼後的當前編碼單元的碼流),然後發送給解碼設備,如此,解碼設備接收到當前編碼單元的碼流之後,解碼設備可以從當前編碼單元的碼流中獲取第二目標候選運動資訊的指示資訊,以在該第二目標候選運動資訊的指示資訊的指示下,確定第二目標候選運動資訊。It can be understood that in the above-mentioned process of encoding video data, after the encoding device determines the second target candidate motion information from the second candidate motion information list, the encoding device may program the instruction information for indicating the second target candidate motion information The code stream of the current coding unit (that is, the code stream of the current coding unit after being encoded), and then sent to the decoding device. In this way, after the decoding device receives the code stream of the current coding unit, the decoding device can select the code stream of the current coding unit. The instruction information of the second target candidate motion information is acquired in order to determine the second target candidate motion information under the instruction of the second target candidate motion information.

S209、解碼設備根據第二候選運動資訊清單和第二目標候選運動資訊的指示資訊,確定第二目標候選運動資訊。S209. The decoding device determines the second target candidate motion information according to the second candidate motion information list and the indication information of the second target candidate motion information.

S210、解碼設備根據第二目標候選運動資訊,確定當前編碼單元的預測資訊。S210. The decoding device determines prediction information of the current coding unit according to the second target candidate motion information.

本發明實施例中,由於解碼設備確定第二目標候選運動資訊,以及根據第二目標候選運動資訊確定當前編碼單元的預測資訊與上述編碼過程中,編碼設備確定第二目標候選運動資訊,以及根據第二目標候選運動資訊確定當前編碼單元的預測資訊的方法類似,因此,對於S209-S210的具體描述可以參見上述實施例中對於S109-S110的相關描述,此處不再贅述。In the embodiment of the present invention, since the decoding device determines the second target candidate motion information, and determines the prediction information of the current coding unit according to the second target candidate motion information, and in the above encoding process, the encoding device determines the second target candidate motion information, and based on The method for determining the prediction information of the current coding unit by the second target candidate motion information is similar. Therefore, for the specific description of S209-S210, reference may be made to the related description of S109-S110 in the foregoing embodiment, and details are not described here.

需要說明的是,本發明實施例中,在當前編碼單元的資訊不滿足子編碼單元編解碼條件的情況下,通過S207-210可以確定出當前編碼單元的預測資訊,並且可以執行上述S205-S206,以對當前編碼單元解碼。It should be noted that, in the embodiment of the present invention, in the case where the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, the prediction information of the current coding unit can be determined through S207-210, and the above S205-S206 can be executed To decode the current coding unit.

本發明實施例中,在當前編碼單元的資訊滿足子編碼單元編解碼條件的情況下,可以確定包括至少兩個子編碼單元各自的運動資訊和當前編碼單元的運動資訊的第一候選運動資訊清單,並根據第一候選運動資訊清單確定當前編碼單元的預測資訊,已完成對當前編碼單元的編解碼;在當前編碼單元的資訊不滿足子編碼單元編解碼條件的情況下,可以確定包括當前編碼單元的運動資訊的第一候選運動資訊清單,並根據第一候選運動資訊清單確定當前編碼單元的預測資訊,已完成對當前編碼單元的編解碼。In the embodiment of the present invention, when the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit, the first candidate motion information list including the motion information of at least two sub-coding units and the motion information of the current coding unit may be determined , And determine the prediction information of the current coding unit according to the first candidate motion information list, and the coding and decoding of the current coding unit has been completed; in the case that the information of the current coding unit does not meet the coding and decoding conditions of the sub coding unit, it can be determined that the current coding is included The first candidate motion information list of the unit's motion information, and the prediction information of the current coding unit is determined according to the first candidate motion information list, and the coding and decoding of the current coding unit has been completed.

本發明實施例提供的處理視頻資料的方法,可以應用於視頻資料編解碼的過程中,首先可以確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件,若當前編碼單元的資訊滿足子編碼單元編解碼條件,則獲取至少兩個子編碼單元各自的運動資訊,然後根據至少兩個子編碼單元各自的運動資訊,確定包括至少兩個子編碼單元各自的運動資訊和當前編碼單元的運動資訊的第一候選運動資訊清單,再根據第一候選運動資訊清單,確定當前編碼單元的預測資訊。與現有技術相比,本發明實施例中,由於可以根據當前編碼單元的資訊是否滿足子編碼單元編解碼條件,根據當前編碼單元的實際情況確定是否將當前編碼單元分為子編碼單元進行編碼或者解碼,在當前編碼單元的尺寸較小時,無需再將當前編碼單元分為子編碼單元,再進行編碼或者解碼,因此,能夠降低視頻資料編解碼的複雜度。The method for processing video data provided by the embodiment of the present invention can be applied to the process of encoding and decoding video data. First, it can be determined whether the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit, and if the information of the current coding unit satisfies the sub-coding unit Encoding and decoding conditions, then obtain the motion information of at least two sub-coding units, and then determine the motion information including the motion information of at least two sub-coding units and the current coding unit according to the motion information of the at least two sub-coding units The first candidate motion information list, and then the prediction information of the current coding unit is determined according to the first candidate motion information list. Compared with the prior art, in the embodiment of the present invention, since the information of the current coding unit meets the coding and decoding conditions of the sub-coding unit, it can be determined whether to divide the current coding unit into sub-coding units for coding according to the actual situation of the current coding unit or For decoding, when the size of the current coding unit is small, there is no need to divide the current coding unit into sub-coding units, and then encode or decode. Therefore, the complexity of encoding and decoding of video materials can be reduced.

方法二:採用DMVD技術編解碼Method 2: Use DMVD technology to encode and decode

本發明實施例中,分別描述採用DMVD技術編碼和解碼的方法,在採用DMVD技術編碼時,本發明實施例提供的處理視頻資料的方法可以應用於編碼設備,在採用DMVD技術解碼時,本發明實施例提供的處理視頻資料的方法可以應用於解碼設備。In the embodiments of the present invention, methods for encoding and decoding using DMVD technology are described separately. When encoding using DMVD technology, the method for processing video data provided by embodiments of the present invention can be applied to encoding devices. When decoding using DMVD technology, the present invention The method for processing video materials provided in the embodiments can be applied to a decoding device.

首先,採用DMVD技術編碼時,如圖17所示,若當前編碼單元的資訊滿足子編碼單元編解碼條件,編碼設備也可以採用DMVD技術,獲取至少兩個子編碼單元各自的運動資訊,以確定當前編碼單元的預測資訊。具體的,採用DMVD技術,確定當前編碼單元的預測資訊的方法可以包括S301-S303:First, when encoding with DMVD technology, as shown in Figure 17, if the information of the current encoding unit meets the encoding and decoding conditions of the sub-encoding unit, the encoding device can also use DMVD technology to obtain the motion information of at least two sub-encoding units to determine The prediction information of the current coding unit. Specifically, using DMVD technology, the method for determining the prediction information of the current coding unit may include S301-S303:

S301、編碼設備確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件。S301. The encoding device determines whether the information of the current encoding unit satisfies the encoding and decoding conditions of the sub-encoding unit.

對於S301的具體描述,可以參見上述對於S101或S201的相關描述,此處不再贅述。For a specific description of S301, reference may be made to the above related description of S101 or S201, which will not be repeated here.

S302、若當前編碼單元的資訊滿足子編碼單元編解碼條件,編碼設備獲取至少兩個子編碼單元各自的運動資訊。S302. If the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit, the encoding device obtains the motion information of each of the at least two sub-coding units.

本發明實施例中,結合圖17如圖18所示,S302具體可以通過S3021-S3022實現:In the embodiment of the present invention, as shown in FIG. 18 in conjunction with FIG. 17, S302 may be specifically implemented through S3021-S3022:

S3021、編碼設備獲取當前編碼單元的運動資訊。S3021: The encoding device obtains the motion information of the current encoding unit.

S3021具體可以通過S3021a-S3021c實現:S3021 can be specifically implemented through S3021a-S3021c:

S3021a、編碼設備構建當前編碼單元的初始搜索清單。S3021a. The encoding device constructs an initial search list of the current encoding unit.

S3021b、編碼設備根據當前編碼單元的初始搜索清單確定初始搜索點。S3021b. The encoding device determines the initial search point according to the initial search list of the current encoding unit.

本發明實施例中,編碼設備可以將與當前編碼單元相鄰的一些圖像塊的運動資訊作為當前編碼單元的初始搜索清單,然後編碼設備從初始搜索清單中確定一個運動資訊作為當前編碼單元的初始搜索點。In the embodiment of the present invention, the encoding device may use the motion information of some image blocks adjacent to the current coding unit as the initial search list of the current coding unit, and then the encoding device determines a motion information from the initial search list as the current coding unit's The initial search point.

具體的,編碼設備從初始搜索清單中確定一個運動資訊作為當前編碼單元的初始搜索點的方法可以包括:編碼設備根據初始搜索清單中的所有運動資訊和搜索範本,採用運動估計匹配的方法,選擇匹配誤差最小的範本對應的運動資訊,並將該匹配誤差最小的範本對應的運動資訊作為初始搜索點。具體的,搜索起始清單中的每一個運動資訊可以對應一個範本,並且根據所有範本估計地當前編碼單元的資訊,將估計的當前編碼單元的資訊與當前編碼單元原始資訊之間的誤差最小的範本對應的運動資訊作為初始搜索點。Specifically, the method for the encoding device to determine a motion information from the initial search list as the initial search point of the current coding unit may include: the encoding device uses a motion estimation matching method based on all the motion information and search templates in the initial search list to select The motion information corresponding to the template with the smallest matching error, and using the motion information corresponding to the template with the smallest matching error as the initial search point. Specifically, each motion information in the search starting list can correspond to a template, and according to the estimated current coding unit information of all the templates, the error between the estimated current coding unit information and the original information of the current coding unit is minimized. The motion information corresponding to the template serves as the initial search point.

S3021c、編碼設備以初始搜索點為起點,採用相關的搜索演算法,確定當前編碼單元的運動資訊。S3021c. The encoding device uses the initial search point as a starting point and uses a relevant search algorithm to determine the motion information of the current encoding unit.

本發明實施例中,編碼設備可以採用相關搜索演算法(例如菱形搜索演算法),確定當前編碼單元的運動資訊。In the embodiment of the present invention, the encoding device may use a related search algorithm (for example, a diamond search algorithm) to determine the motion information of the current encoding unit.

示例性的,如圖19所示,初始搜索點為O,以初始搜索點O為菱形的中心點,沿水準方向和豎直方向以預設的步長(包括水準方向的步長和豎直方向的步長)延伸,可以確定出四個點,分別為D1、D2、D3和D4,然後將這四個點依次連接起來,得到菱形D1D2D3D4,並且確定該菱形D1D2D3D4的四個邊的中點,即邊D1D2的中點D5,邊D2D3的中點D6,邊D3D4的中點D7和邊D4D1的中點D8,如此,可以得到D1、D2、D3、D4、D5、D6、D7、D8和O這9個點,這9個點表示9個運動資訊,從而編碼設備從這9個運動資訊中確定一個運動資訊,作為當前編碼單元的運動資訊。Exemplarily, as shown in FIG. 19, the initial search point is O, and the initial search point O is the center point of the diamond, with a preset step length in the horizontal direction and the vertical direction (including the horizontal step length and vertical Direction step) extension, you can determine four points, namely D1, D2, D3 and D4, and then connect these four points in sequence to get the diamond D1D2D3D4, and determine the midpoint of the four sides of the diamond D1D2D3D4 , That is, the midpoint D5 of the edge D1D2, the midpoint D6 of the edge D2D3, the midpoint D7 of the edge D3D4 and the midpoint D8 of the edge D4D1, so that D1, D2, D3, D4, D5, D6, D7, D8 and O these 9 points, these 9 points represent 9 pieces of motion information, so that the encoding device determines one piece of motion information from these 9 pieces of motion information as the motion information of the current coding unit.

需要說明的是,本發明實施例中,編碼設備從上述菱形搜索演算法中搜索到的運動資訊(例如上述如圖19所示的示例中確定搜索到的9個運動資訊)中確定出一個運動資訊的方法與上述編碼設備從初始搜索清單中確定一個運動資訊的方法相同,具體可以參見上述實施例中對於S3021b的相關描述,此處不再贅述。It should be noted that, in the embodiment of the present invention, the encoding device determines a motion from the motion information searched in the above diamond search algorithm (for example, the above 9 motion information determined in the example shown in FIG. 19 above) The method for information is the same as the method for the encoding device to determine a piece of motion information from the initial search list. For details, reference may be made to the related description of S3021b in the foregoing embodiment, and details are not described here.

S3022、編碼設備分別以當前編碼單元的運動資訊為至少兩個子編碼單元各自的初始運動資訊進行運動搜索,從而得到至少兩個子編碼單元各自的運動資訊。S3022. The encoding device performs motion search using the motion information of the current coding unit as the initial motion information of at least two sub-coding units, respectively, so as to obtain the motion information of at least two sub-coding units.

本發明實施例中,編碼設備可以根據當前編碼單元的運動資訊,確定該當前編碼單元的所有子編碼單元各自的運動資訊。以當前編碼單元的一個子編碼單元(例如第一子編碼單元)為例,編碼設備獲取第一子編碼單元的運動資訊的方法可以包括:In the embodiment of the present invention, the encoding device may determine the respective motion information of all sub-coding units of the current coding unit according to the motion information of the current coding unit. Taking a sub-coding unit of the current coding unit (for example, the first sub-coding unit) as an example, the method for the encoding device to obtain motion information of the first sub-coding unit may include:

S3022a、編碼設備以當前編碼單元的運動資訊為初始搜索點,採用相關的搜索演算法(例如正十字搜索演算法),確定第一子編碼單元的運動資訊。S3022a. The encoding device uses the motion information of the current coding unit as an initial search point, and uses a relevant search algorithm (such as a positive cross search algorithm) to determine the motion information of the first sub-coding unit.

示例性的,如圖20所示,初始搜索點為O1,以初始搜索點O1為中心點,沿水準方向和豎直方向以預設的步長(包括水準方向的步長和豎直方向的步長)延伸,可以確定出四個點,分別為E1、E2、E3和E4,如此,可以得到E1、E2、E3、E4和O這5個點,這5個點表示5個運動資訊,從而編碼設備從這5個運動向量中確定一個運動向量,作為第一子編碼單元的運動向量。Exemplarily, as shown in FIG. 20, the initial search point is O1, with the initial search point O1 as the center point, and a preset step length (including the horizontal step length and the vertical direction) along the horizontal direction and the vertical direction Step length) extension, you can determine four points, namely E1, E2, E3 and E4, so you can get 5 points E1, E2, E3, E4 and O, these 5 points represent 5 sports information, Therefore, the encoding device determines a motion vector from the five motion vectors as the motion vector of the first sub-coding unit.

可以理解的是,編碼設備可以通過上述S3022a確定當前編碼單元的所有子編碼單元各自的運動資訊,即確定上述至少兩個子編碼單元各自的運動資訊。It can be understood that the encoding device may determine the respective motion information of all sub-coding units of the current coding unit through S3022a, that is, determine the respective motion information of the at least two sub-coding units.

需要說明的是,本發明實施例中,編碼設備採用某一個搜索演算法,確定一個編碼單元的運動資訊,或者根據某一個搜索演算法,確定一個子編碼單元的運動資訊,則解碼設備也採用相應的搜索演算法,確定編碼單元的運動資訊,或者確定子編碼單元的運動資訊。It should be noted that in the embodiment of the present invention, the encoding device uses a certain search algorithm to determine the motion information of a coding unit, or according to a certain search algorithm, determines the motion information of a sub-coding unit, the decoding device also uses The corresponding search algorithm determines the motion information of the coding unit, or the motion information of the sub-coding unit.

S303、編碼設備根據至少兩個子編碼單元各自的運動資訊,確定當前編碼單元的預測資訊。S303. The coding device determines the prediction information of the current coding unit according to the motion information of at least two sub-coding units.

本發明實施例中,編碼設備獲取至少兩個子編碼單元各自的運動資訊之後,編碼設備可以根據當前編碼單元的每一個子編碼單元的運動資訊,確定每一個子編碼單元的預測資訊,從而可以確定該當前編碼單元的預測資訊。In the embodiment of the present invention, after the encoding device obtains the motion information of at least two sub-coding units, the encoding device may determine the prediction information of each sub-coding unit according to the motion information of each sub-coding unit of the current coding unit, so that Determine the prediction information of the current coding unit.

需要說明的是,本發明實施例中,編碼設備確定出當前編碼單元的預測資訊之後,該編碼設備可以執行上述S106-S107,以對當前編碼單元編碼。It should be noted that, in the embodiment of the present invention, after the encoding device determines the prediction information of the current encoding unit, the encoding device may execute the above-mentioned S106-S107 to encode the current encoding unit.

本發明實施例中,結合圖17,如圖21所示,通過上述S301,若當前編碼單元的資訊不滿足子編碼單元編解碼條件,則本發明實施例提供的處理視頻資料的方法還可以包括S304-S305:In the embodiment of the present invention, referring to FIG. 17, as shown in FIG. 21, through the above S301, if the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, the method for processing video data provided by the embodiment of the present invention may further include S304-S305:

S304、若當前編碼單元的資訊不滿足子編碼單元編解碼條件,編碼設備獲取當前編碼單元的運動資訊。S304. If the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, the encoding device obtains the motion information of the current coding unit.

對於S304的具體描述可以參見上述實施例中對於S3021的相關描述,此處不再贅述。For a specific description of S304, reference may be made to the related description of S3021 in the foregoing embodiment, and details are not described herein again.

S305、編碼設備根據當前編碼單元的運動資訊,確定當前編碼單元的預測資訊。S305. The coding device determines the prediction information of the current coding unit according to the motion information of the current coding unit.

同理,在當前編碼單元的資訊不滿足子編碼單元編解碼條件的情況下,編碼設備確定出當前編碼單元的預測資訊之後,可以執行上述S103-S107,以對當前編碼單元編碼。Similarly, in the case that the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, after the encoding device determines the prediction information of the current coding unit, it may perform the above S103-S107 to encode the current coding unit.

採用DMVD技術解碼時,本發明實施例提供的處理視頻資料的方法可以包括S401-S403:When using DMVD technology for decoding, the method for processing video data provided by the embodiments of the present invention may include S401-S403:

S401、解碼設備確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件。S401. The decoding device determines whether the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit.

對於S401的具體描述可以參見上述實施例中對於S101、S201或S301的相關描述,此處不再贅述。For a specific description of S401, reference may be made to the related description of S101, S201, or S301 in the foregoing embodiment, and details are not described herein again.

S402、若當前編碼單元的資訊滿足子編碼單元編解碼條件,解碼設備獲取至少兩個子編碼單元各自的運動資訊。S402. If the information of the current coding unit meets the coding and decoding conditions of the sub-coding unit, the decoding device obtains the motion information of each of the at least two sub-coding units.

S403、解碼設備根據至少兩個子編碼單元各自的運動資訊,確定當前編碼單元的預測資訊。S403. The decoding device determines the prediction information of the current coding unit according to the motion information of at least two sub-coding units.

本發明實施例中,在採用DMVD技術進行視頻資料編碼和解碼的過程中,解碼設備確定當前編碼單元的預測資訊的方法與編碼設備確定當前編碼單元預測資訊的方法類似,因此,對於S401-S403的具體描述可以參見對於S301-S303的相關描述,此處不再贅述。In the embodiment of the present invention, in the process of encoding and decoding video data by using DMVD technology, the method for the decoding device to determine the prediction information of the current coding unit is similar to the method for the coding device to determine the prediction information of the current coding unit. Therefore, for S401-S403 For the detailed description, please refer to the relevant descriptions of S301-S303, which will not be repeated here.

需要說明的是,本發明實施例中,通過S401-403可以確定出當前編碼單元的預測資訊,並且可以執行上述S205-S206,以對當前編碼單元解碼。It should be noted that, in the embodiment of the present invention, the prediction information of the current coding unit can be determined through S401-403, and the above S205-S206 can be executed to decode the current coding unit.

本發明實施例中,通過上述S401,若解碼設備確定當前編碼單元的資訊不滿足子編碼單元編解碼條件,則本發明實施例提供的處理視頻資料的方法還可以包括S404-S405:In the embodiment of the present invention, through the above S401, if the decoding device determines that the information of the current coding unit does not meet the coding and decoding conditions of the sub-coding unit, the method for processing video data provided in the embodiment of the present invention may further include S404-S405:

S404、解碼設備獲取當前編碼單元的運動資訊。S404. The decoding device obtains the motion information of the current coding unit.

S405、解碼設備根據當前編碼單元的運動資訊,確定當前編碼單元的預測資訊。S405. The decoding device determines the prediction information of the current coding unit according to the motion information of the current coding unit.

對於S404-S405的具體描述可以參見上述實施例中對於S304-305的相關描述,此處不再贅述。For the specific descriptions of S404-S405, please refer to the related descriptions of S304-305 in the above embodiments, which will not be repeated here.

同理,在當前編碼單元的資訊不滿足子編碼單元編解碼條件的情況下,解碼設備確定出當前編碼單元的預測資訊之後,可以執行上述S205-S206,以對當前編碼單元解碼。Similarly, in the case that the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, after the decoding device determines the prediction information of the current coding unit, it may perform the above S205-S206 to decode the current coding unit.

方法三:採用非平動運動模型編解碼Method 3: Use non-translational motion model codec

本發明實施例中,若當前編碼單元的資訊滿足子編碼單元編解碼條件,則編碼設備還可以採用非平動運動模型的方法獲取至少兩個子編碼單元各自的運動資訊,以確定當前編碼單元的運動資訊。常用的非平動運動模型包括6參數仿射變換型和4參數仿射變換模型,本發明實施例以4參數仿射變換模型為例說明確定當前編碼單元的預測資訊的方法。In the embodiment of the present invention, if the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit, the encoding device may also use the non-translational motion model method to obtain the motion information of each of the at least two sub-coding units to determine the current coding unit Sports information. Commonly used non-translational motion models include a 6-parameter affine transformation type and a 4-parameter affine transformation model. The embodiment of the present invention uses a 4-parameter affine transformation model as an example to describe a method of determining prediction information of a current coding unit.

本發明實施例中,採用非平動運動模型編碼時,本發明實施例提供的處理視頻資料的方法可以包括S501-S503:In the embodiment of the present invention, when non-translational motion model coding is adopted, the method for processing video data provided in the embodiment of the present invention may include S501-S503:

S501、編碼設備確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件。S501. The encoding device determines whether the information of the current encoding unit satisfies the encoding and decoding conditions of the sub-encoding unit.

對於S501的具體描述可以參見上述實施例中對於S101、S201、S301或S401的相關描述,此處不再贅述。For a specific description of S501, reference may be made to the related description of S101, S201, S301, or S401 in the foregoing embodiment, and details are not described herein again.

S502、若當前編碼單元的資訊滿足子編碼單元編解碼條件,編碼設備獲取至少兩個子編碼單元各自的運動資訊。S502. If the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit, the coding device obtains the motion information of each of the at least two sub-coding units.

本發明實施例中,如圖22所示,上述S502具體可以通過S502a-S502b實現:In the embodiment of the present invention, as shown in FIG. 22, the above S502 may be specifically implemented through S502a-S502b:

S502a、編碼設備獲取當前編碼單元的至少兩個圖元位置的運動資訊。S502a. The encoding device acquires motion information of at least two picture element positions of the current encoding unit.

本發明實施例中,編碼設備可以根據與該當前編碼單元相鄰(空域相鄰)的圖像塊所在的編碼單元的運動資訊確定該當前編碼單元的每一個子編碼單元的運動資訊。具體的,編碼單元首先根據與當前編碼單元相鄰的圖像塊所在的編碼單元的運動資訊,確定當前編碼單元的至少兩個圖元位置的運動資訊。下面以確定當前編碼單元的左上角和右上角的兩個圖元位置的運動資訊為例說明編碼設備確定當前編碼單元的至少兩個圖元位置的運動資訊的方法。In the embodiment of the present invention, the encoding device may determine the motion information of each sub-coding unit of the current coding unit according to the motion information of the coding unit where the image block adjacent to the current coding unit (adjacent to the spatial domain) is located. Specifically, the coding unit first determines the motion information of at least two picture element positions of the current coding unit according to the motion information of the coding unit where the image block adjacent to the current coding unit is located. The following determines the motion information of the two picture element positions in the upper left corner and the upper right corner of the current coding unit as an example to describe a method for the coding device to determine the motion information of at least two picture element positions of the current coding unit.

示例性的,如圖23所示,圖23中圖像塊m1為當前編碼單元的相鄰圖像塊,M為圖像塊m1所在的已編碼的編碼單元,該M1的左上角的圖元的座標為

Figure 02_image012
,該圖元點的運動向量為
Figure 02_image014
,M1的右上角的圖元的座標為
Figure 02_image016
,該圖元點的運動向量為
Figure 02_image018
,M1的左下角的圖元的座標為
Figure 02_image020
,該圖元點的運動向量為
Figure 02_image022
;當前編碼單元的編碼單元左上角的圖元的座標為
Figure 02_image024
,當前編碼單元的編碼單元右上角的圖元的座標為
Figure 02_image026
,可以根據下面的公式(3)確定當前編碼單元的左上角的圖元的運動向量
Figure 02_image028
和根據公式(4)當前編碼單元的右上角的圖元的運動向量
Figure 02_image030
Figure 02_image032
(3)Exemplarily, as shown in FIG. 23, the image block m1 in FIG. 23 is the adjacent image block of the current coding unit, M is the coded coding unit where the image block m1 is located, and the picture element in the upper left corner of the M1 The coordinates are
Figure 02_image012
, The motion vector of the primitive point is
Figure 02_image014
, The coordinates of the primitive in the upper right corner of M1 are
Figure 02_image016
, The motion vector of the primitive point is
Figure 02_image018
, The coordinates of the primitive in the lower left corner of M1 are
Figure 02_image020
, The motion vector of the primitive point is
Figure 02_image022
; The coordinates of the picture element in the upper left corner of the coding unit of the current coding unit are:
Figure 02_image024
, The coordinates of the primitive in the upper right corner of the coding unit of the current coding unit are
Figure 02_image026
, The motion vector of the primitive in the upper left corner of the current coding unit can be determined according to the following formula (3)
Figure 02_image028
And the motion vector of the primitive in the upper right corner of the current coding unit according to formula (4)
Figure 02_image030
:
Figure 02_image032
(3)

其中,h為M1的高,w為M1的寬。

Figure 02_image034
(4)Where h is the height of M1 and w is the width of M1.
Figure 02_image034
(4)

其中,

Figure 02_image036
為當前編碼單元的寬。among them,
Figure 02_image036
Is the width of the current coding unit.

S502b、編碼設備根據當前編碼單元的至少兩個圖元位置的運動資訊,確定至少兩個子編碼單元各自的運動資訊。S502b. The encoding device determines the motion information of at least two sub-coding units according to the motion information of at least two picture element positions of the current coding unit.

本發明實施例中,仍以當前編碼單元的左上角和右上角的兩個圖元位置的運動資訊為例,根據上述公式(3)和公式(4)確定出當前編碼單元的左上角的圖元點

Figure 02_image024
的運動向量和當前編碼單元的右上角的圖元點
Figure 02_image026
的運動向量之後,可以根據公式(5)確定至少兩個子編碼單元各自的運動向量:
Figure 02_image038
(5)In the embodiment of the present invention, still taking the motion information of the two picture element positions of the upper left corner and the upper right corner of the current coding unit as an example, the picture of the upper left corner of the current coding unit is determined according to the above formula (3) and formula (4) Meta point
Figure 02_image024
The motion vector and the primitive point in the upper right corner of the current coding unit
Figure 02_image026
After the motion vector of, the motion vector of each of the at least two sub-coding units can be determined according to formula (5):
Figure 02_image038
(5)

其中,(x,y)為一個子編碼單元的座標。Among them, (x, y) is the coordinate of a sub-coding unit.

可選的,本發明實施例中,可以將子編碼單元的中心圖元點的座標作為該子編碼單元的座標。Optionally, in the embodiment of the present invention, the coordinates of the central primitive point of the sub-coding unit may be used as the coordinates of the sub-coding unit.

可以理解的是,通過將至少兩個子編碼單元中每一個子編碼單元的座標分別代入到公式(5)中,可以確定出至少兩個子編碼單元各自的運動資訊。It can be understood that by substituting the coordinates of each of the at least two sub-coding units into formula (5), the motion information of the at least two sub-coding units can be determined.

S503、編碼設備根據至少兩個子編碼單元各自的運動資訊,確定當前編碼單元的預測資訊。S503. The coding device determines the prediction information of the current coding unit according to the motion information of at least two sub-coding units.

對於S503的具體描述可以參見上述實施例中對於S303的相關描述,此處不再贅述。For a specific description of S503, reference may be made to the related description of S303 in the foregoing embodiment, and details are not described herein again.

可選的,本發明實施例中,結合圖22,如圖24所示,在上述S503之後,本發明實施例提供的處理視頻資料的方法還可以包括S504-S505:Optionally, in the embodiment of the present invention, referring to FIG. 22 and as shown in FIG. 24, after the above S503, the method for processing video data provided by the embodiment of the present invention may further include S504-S505:

S504、編碼設備根據當前編碼單元的預測資訊,確定當前編碼單元的預測模式。S504. The encoding device determines the prediction mode of the current coding unit according to the prediction information of the current coding unit.

本發明實施例中,編碼設備對視頻資料編碼時,當前編碼單元的資訊滿足子編碼單元編解碼條件,該編碼單元將當前編碼單元劃分為至少兩個子編碼單元之後,編碼設備首先可以分別採用上述SMVP技術、DMVD技術和非平動運動模型等方法(可以稱為預測模式)分別預測當前編碼單元的預測資訊,再根據率失真優化技術確定三種編碼方法中哪一種方法的率失真代價最小,則採用率失真代價最小的一種編碼方法編碼視頻資料,並將率失真代價最小的預測模式確定為當前編碼單元的預測模式。In the embodiment of the present invention, when the encoding device encodes the video data, the information of the current encoding unit satisfies the encoding and decoding conditions of the sub-encoding unit. After the encoding unit divides the current encoding unit into at least two sub-encoding units, the encoding device may first separately adopt The above SMVP technology, DMVD technology and non-translational motion model (can be called prediction mode) respectively predict the prediction information of the current coding unit, and then determine which of the three coding methods has the lowest rate distortion cost according to the rate distortion optimization technology, Then, an encoding method with the lowest rate-distortion cost is used to encode the video data, and the prediction mode with the lowest rate-distortion cost is determined as the prediction mode of the current coding unit.

S505、編碼設備將預測模式指示資訊編入當前編碼單元的碼流,該預測模式指示資訊的值用於指示當前編碼單元的預測模式是否為仿射變換模式。S505. The encoding device encodes the prediction mode indication information into the code stream of the current coding unit. The value of the prediction mode indication information is used to indicate whether the prediction mode of the current coding unit is an affine transformation mode.

本發明實施例中,編碼設備將當前編碼單元的預測模式指示資訊編入當前編碼單元的碼流,如此,解碼設備接收到當前編碼單元的碼流之後,解碼設備可以根據預測模式指示資訊,獲知當前編碼單元的預測模式是否為仿射變換模式。In the embodiment of the present invention, the encoding device encodes the prediction mode indication information of the current coding unit into the code stream of the current coding unit. Thus, after the decoding device receives the code stream of the current coding unit, the decoding device can learn the current according to the prediction mode indication information. Whether the prediction mode of the coding unit is an affine transformation mode.

可以理解的是,本發明實施例中,編碼設備確定出當前編碼單元的預測資訊之後,該編碼設備可以執行上述S106-S107,以對當前編碼單元編碼。It can be understood that, in the embodiment of the present invention, after the encoding device determines the prediction information of the current encoding unit, the encoding device may execute the above-mentioned S106-S107 to encode the current encoding unit.

需要說明的是,本發明實施例中,由於非平動運動模型僅用於獲取子編碼單元的運動資訊,因此,若當前編碼單元的資訊不滿足子編碼單元編解碼條件,則編碼設備不能採用非平動運動模型的方法確定當前編碼單元的運動資訊,該編碼設備可以採用其他的確定編碼單元的運動資訊的方法確定當前編碼單元的運動資訊。It should be noted that, in the embodiment of the present invention, since the non-translational motion model is only used to obtain the motion information of the sub-coding unit, if the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, the coding device cannot use The method of the non-translational motion model determines the motion information of the current coding unit. The encoding device may use other methods of determining the motion information of the coding unit to determine the motion information of the current coding unit.

可選的,結合圖22,如圖25所示,在當前編碼單元的資訊不滿足子編碼單元編解碼條件的情況下,本發明實施例提供的處理視頻資料的方法還可以包括S506:Optionally, with reference to FIG. 22 and as shown in FIG. 25, in a case where the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, the method for processing video data provided by the embodiment of the present invention may further include S506:

S506、編碼設備根據候選預測模式集合,確定當前編碼單元的預測資訊,該候選預測模式集合不包括仿射變換模式。S506. The encoding device determines the prediction information of the current coding unit according to the set of candidate prediction modes, which does not include the affine transformation mode.

本發明實施例中,上述候選預測模式集合可以包括採用SMVP技術編碼的預測模式、採用DMVD技術編碼的預測模式,還以包括其他用於預測當前編碼單元的預測資訊的預測模式,本發明實施例不作具體限定。在當前編碼單元的資訊不滿足子編碼單元編解碼條件的情況下,編碼設備可以採用候選預測模式集合中的某一種方法,確定當前編碼單元的預測資訊,並且可以執行上述S106-S107,以對當前編碼單元編碼。In the embodiment of the present invention, the set of candidate prediction modes may include a prediction mode coded using SMVP technology, a prediction mode coded using DMVD technology, and other prediction modes used to predict the prediction information of the current coding unit. No specific restrictions. In the case where the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, the encoding device may use one of the methods in the set of candidate prediction modes to determine the prediction information of the current coding unit, and may execute the above S106-S107 to Current encoding unit encoding.

採用非平動運動模型解碼時,本發明實施例提供的處理視頻資料的方法可以包括S601-S603:When decoding using a non-translational motion model, the method for processing video data provided by the embodiment of the present invention may include S601-S603:

S601、解碼設備確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件。S601. The decoding device determines whether the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit.

對於S601的具體描述可以參見上述實施例中,對於S101、S201、S301、S401或S501的相關描述,此處不再贅述。For the specific description of S601, reference may be made to the related description of S101, S201, S301, S401, or S501 in the foregoing embodiment, and details are not described herein again.

S602、若當前編碼單元的資訊滿足子編碼單元編解碼條件,解碼獲取至少兩個子編碼單元各自的運動資訊。S602: If the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit, decode and obtain the motion information of at least two sub-coding units.

本發明實施例中,如圖26所示,上述S602具體可以通過S602a-S602c實現:In the embodiment of the present invention, as shown in FIG. 26, the above S602 may be specifically implemented through S602a-S602c:

S602a、解碼設備獲取預測模式指示資訊,該預測模式指示資訊的值用於指示當前編碼單元的預測模式是否為仿射變換模式。S602a. The decoding device obtains prediction mode indication information. The value of the prediction mode indication information is used to indicate whether the prediction mode of the current coding unit is an affine transformation mode.

本發明實施例中,在上述實施例中,由於編碼設備可以將預測模式指示資訊編入當前編碼單元的碼流,因此解碼設備可以從其接收的當前編碼單元編碼之後的碼流中獲取當前編碼單元的預測模式指示資訊,並根據預測模式指示資訊確定是否採用非平動運動模型的仿射變換模式確定當前編碼單元的預測資訊。In the embodiment of the present invention, in the above embodiment, since the encoding device can encode the prediction mode indication information into the code stream of the current encoding unit, the decoding device can obtain the current encoding unit from the code stream after encoding the current encoding unit it receives Prediction information of the prediction mode, and determine whether to use the affine transformation mode of the non-translational motion model to determine the prediction information of the current coding unit according to the prediction mode instruction information.

S602b、若預測模式指示資訊的值指示當前預測模式為仿射變換模式,解碼設備獲取當前編碼單元的至少兩個圖元位置的運動資訊。S602b. If the value of the prediction mode indication information indicates that the current prediction mode is an affine transformation mode, the decoding device obtains motion information of at least two picture element positions of the current coding unit.

S602c、解碼設備根據至少兩個圖元位置的運動資訊,確定至少兩個子編碼單元各自的運動資訊。S602c. The decoding device determines the motion information of at least two sub-coding units according to the motion information of at least two picture element positions.

對於S602b-S602c的具體描述可以參見上述實施例中對於S502a-S502b的相關描述,此處不再贅述。For specific descriptions of S602b-S602c, please refer to the related descriptions of S502a-S502b in the above embodiment, which will not be repeated here.

S603、解碼設備根據至少兩個子編碼單元各自的運動資訊,確定當前編碼單元的預測資訊。S603. The decoding device determines the prediction information of the current coding unit according to the motion information of the at least two sub-coding units.

對於S603的具體描述可以參見上述實施例中對於S403的相關描述,此處不再贅述。For a specific description of S603, reference may be made to the related description of S403 in the foregoing embodiment, and details are not described herein again.

需要說明的是,本發明實施例中,解碼設備確定當前編碼單元的資訊不滿足子編碼單元編解碼條件時,解碼設備可以採用除非平動運動模型之外的其他方法(與編碼設備編碼過程相對應的解碼方法),獲取當前編碼單元的運動資訊,並確定當前編碼單元的預測資訊。It should be noted that, in the embodiment of the present invention, when the decoding device determines that the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, the decoding device may adopt other methods than the translational motion model (corresponding to the coding process of the coding device Corresponding decoding method), obtain the motion information of the current coding unit, and determine the prediction information of the current coding unit.

本發明實施例提供的處理視頻資料的方法,可以應用於視頻資料編解碼的過程中,首先確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件,若該當前編碼單元的資訊滿足子編碼單元編解碼條件,則獲取至少兩個子編碼單元各自的運動資訊,然後再根據至少兩個子編碼單元各自的運動資訊,確定當前編碼單元的預測資訊,以及完成當前編碼單元的編碼或解碼。與現有技術相比,本發明實施例中,由於可以確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件,並根據當前編碼單元的實際情況確定是否將當前編碼單元分為子編碼單元進行編碼或者解碼,在當前編碼單元的尺寸較小時,無需再將當前編碼單元分為子編碼單元,再進行編碼或者解碼,因此,能夠降低視頻資料編解碼的複雜度。The method for processing video data provided by the embodiment of the present invention can be applied to the process of encoding and decoding video data. First, it is determined whether the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit, and if the information of the current coding unit satisfies the sub-coding unit Under the condition of coding and decoding, the motion information of at least two sub-coding units is acquired, and then the prediction information of the current coding unit is determined according to the motion information of the at least two sub-coding units, and the encoding or decoding of the current coding unit is completed. Compared with the prior art, in the embodiment of the present invention, since it can be determined whether the information of the current coding unit meets the coding and decoding conditions of the sub-coding unit, and according to the actual situation of the current coding unit, it is determined whether to divide the current coding unit into sub-coding units for coding Or decoding. When the size of the current coding unit is small, there is no need to divide the current coding unit into sub-coding units, and then encode or decode. Therefore, the complexity of encoding and decoding of video materials can be reduced.

上述主要從各個網元的角度對本發明實施例提供的方案進行了介紹。可以理解的是,各個網元,例如處理視頻資料的裝置等為了實現上述功能,其包含了執行各個功能相應的硬體結構和/或軟體模組。本領域技術人員應該很容易意識到,結合本文中所公開的實施例描述的各示例的單元及演算法步驟,本發明實施例能夠以硬體或硬體和電腦軟體的結合形式來實現。某個功能究竟以硬體還是電腦軟體驅動硬體的方式來執行,取決於技術方案的特定應用和設計約束條件。專業技術人員可以對每個特定的應用來使用不同方法來實現所描述的功能,但是這種實現不應認為超出本申請的範圍。The above mainly introduces the solutions provided by the embodiments of the present invention from the perspective of each network element. It can be understood that, in order to realize the above-mentioned functions, each network element, such as a device for processing video data, includes a hardware structure and/or a software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the exemplary units and algorithm steps described in the embodiments disclosed herein, the embodiments of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed by hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

本發明實施例可以根據上述方法示例對處理視頻資料的裝置等進行功能模組的劃分,例如,可以對應各個功能劃分各個功能模組,也可以將兩個或兩個以上的功能集成在一個處理模組中。上述集成的模組既可以採用硬體的形式實現,也可以採用軟體功能模組的形式實現。需要說明的是,本發明實施例中對模組的劃分是示意性的,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式。The embodiments of the present invention may divide the functional modules of the device for processing video data according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated in one process In the module. The above integrated modules can be implemented in the form of hardware or software function modules. It should be noted that the division of the modules in the embodiment of the present invention is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.

在採用對應各個功能劃分各個功能模組的情況下,圖27示出了上述實施例中所涉及的處理視頻資料的裝置的一種可能的結構示意圖,如圖27所示,該裝置可以包括:確定模組30和獲取模組31。確定模組30可以用於支援處理視頻資料的裝置執行上述方法實施例中的S101、S103、S104(包括S104a-S104b)、S108、S109、S110、S201、S203、S204(包括S204b-S204c)、S206、S207、S209、210、S301、S303、S305、S401、S403、S405、S501、S503、S504、S506、S601和S603;獲取模組31可以用於支援處理視頻資料的裝置執行上述方法實施例中的S102、S106、S202、S204a、S208、S302(包括S3021-S3022)、S304、S402、S404、S502(包括S502a-S502b)和S602(包括S602a-S602c)。可選的,如圖19所示,該處理視頻資料的裝置還可以包括編碼模組32和解碼模組。編碼模組32可以用於支援處理視頻資料的裝置執行上述方法實施例中的S105、S107、S111和S505。解碼模組可以用於支援處理視頻資料的裝置執行上述方法實施例中的S205、S107和S111其中,上述方法實施例涉及的各步驟的所有相關內容均可以援引到對應功能模組的功能描述,在此不再贅述。In the case where each functional module is divided corresponding to each function, FIG. 27 shows a possible structural schematic diagram of the apparatus for processing video data involved in the above embodiment. As shown in FIG. 27, the apparatus may include: Module 30 and acquisition module 31. The determination module 30 can be used to support the device for processing video data to execute S101, S103, S104 (including S104a-S104b), S108, S109, S110, S201, S203, S204 (including S204b-S204c) in the above method embodiments, S206, S207, S209, 210, S301, S303, S305, S401, S403, S405, S501, S503, S504, S506, S601, and S603; the acquisition module 31 can be used to support devices that process video data to perform the above method embodiments S102, S106, S202, S204a, S208, S302 (including S3021-S3022), S304, S402, S404, S502 (including S502a-S502b) and S602 (including S602a-S602c). Optionally, as shown in FIG. 19, the apparatus for processing video data may further include an encoding module 32 and a decoding module. The encoding module 32 may be used to support a device for processing video data to execute S105, S107, S111, and S505 in the foregoing method embodiments. The decoding module can be used to support devices that process video data to execute S205, S107, and S111 in the above method embodiments. All relevant content of the steps involved in the above method embodiments can be referred to the function description of the corresponding function module. I will not repeat them here.

在採用集成的單元的情況下,圖28示出了上述實施例中所涉及的處理視頻資料的裝置的一種可能的結構示意圖。如圖28所示,該裝置可以包括:處理模組40和通信模組41。處理模組40可以用於對處理視頻資料的裝置的動作進行控制管理,處理模組40可以用於支援處理視頻資料的裝置執行上述方法實施例中的各個編碼設備或者解碼設備執行的各個步驟,和/或用於本文所描述的技術的其它過程。通信模組41可以用於支援處理視頻資料的裝置與其他網路實體的通信。可選的,如圖28所示,該處理視頻資料的裝置還可以包括存儲模組42,用於存儲編碼設備的程式碼和資料。In the case of using an integrated unit, FIG. 28 shows a possible structural schematic diagram of the apparatus for processing video materials involved in the foregoing embodiment. As shown in FIG. 28, the device may include a processing module 40 and a communication module 41. The processing module 40 can be used to control and manage the operation of the device that processes video data. The processing module 40 can be used to support the device that processes video data to perform each step performed by each encoding device or decoding device in the foregoing method embodiment. And/or other processes for the techniques described herein. The communication module 41 can be used to support communication between the device for processing video data and other network entities. Optionally, as shown in FIG. 28, the apparatus for processing video data may further include a storage module 42 for storing code and data of the encoding device.

其中,處理模組40可以是處理器或控制器(例如可以是上述如圖7所示的視訊轉碼器11和如圖8所示的視頻解碼器21),例如可以是CPU、通用處理器、DSP、ASIC、FPGA或者其他可程式設計邏輯器件、電晶體邏輯器件、硬體部件或者其任意組合。其可以實現或執行結合本發明實施例公開內容所描述的各種示例性的邏輯方框、模組和電路。上述處理器也可以是實現計算功能的組合,例如包含一個或多個微處理器組合,DSP和微處理器的組合等等。通信模組51可以是收發器、收發電路或通信介面等(例如可以是上述如圖7所示的輸出介面12和如圖8所示的輸入介面20)。存儲模組42可以是記憶體。The processing module 40 may be a processor or a controller (for example, the video transcoder 11 shown in FIG. 7 and the video decoder 21 shown in FIG. 8 above), for example, a CPU or a general-purpose processor. , DSP, ASIC, FPGA or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of the present invention. The above processor may also be a combination that realizes a calculation function, for example, including one or more microprocessor combinations, a combination of DSP and microprocessor, and so on. The communication module 51 may be a transceiver, a transceiver circuit, or a communication interface (for example, the output interface 12 shown in FIG. 7 and the input interface 20 shown in FIG. 8). The storage module 42 may be a memory.

當處理模組40為處理器,通信模組41為收發器,存儲模組42為記憶體時,處理器、收發器和記憶體可以通過匯流排連接。匯流排可以是外設部件互連標準(peripheral component interconnect,PCI)匯流排或延伸工業標準架構(extended Industry standard architecture,EISA)匯流排等。匯流排可以分為位址匯流排、資料匯流排、控制匯流排等。When the processing module 40 is a processor, the communication module 41 is a transceiver, and the storage module 42 is a memory, the processor, the transceiver, and the memory can be connected by a bus. The bus bar may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into address bus, data bus, control bus, etc.

在上述實施例中,可以全部或部分地通過軟體、硬體、固件或者其任意組合來實現。當使用軟體程式實現時,可以全部或部分地以電腦程式產品的形式實現。該電腦程式產品包括一個或多個電腦指令。在電腦上載入和執行該電腦指令時,全部或部分地產生按照本發明實施例中的流程或功能。該電腦可以是通用電腦、專用電腦、電腦網路或者其他可程式設計裝置。該電腦指令可以存儲在電腦可讀存儲介質中,或者從一個電腦可讀存儲介質向另一個電腦可讀存儲介質傳輸,例如,該電腦指令可以從一個網站網站、電腦、伺服器或資料中心通過有線(例如同軸電纜、光纖、數位用戶線路(digital subscriber line,DSL))方式或無線(例如紅外、無線、微波等)方式向另一個網站網站、電腦、伺服器或資料中心傳輸。該電腦可讀存儲介質可以是電腦能夠存取的任何可用介質或者是包括一個或多個可用介質集成的伺服器、資料中心等資料存放裝置。該可用介質可以是磁性介質(例如,軟碟、磁片、磁帶)、光介質(例如,數位視訊光碟(digital video disc,DVD))、或者半導體介質(例如固態硬碟(solid state drives,SSD))等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software programs, it can be implemented in whole or in part in the form of computer program products. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, all or part of the processes or functions according to the embodiments of the present invention are generated. The computer can be a general-purpose computer, a dedicated computer, a computer network, or other programmable device. The computer instruction can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction can be passed from a website, computer, server or data center Wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (for example, a floppy disk, a magnetic disk, a magnetic tape), an optical medium (for example, a digital video disc (DVD)), or a semiconductor medium (for example, solid state drives (SSD) ))Wait.

通過以上的實施方式的描述,所屬領域的技術人員可以清楚地瞭解到,為描述的方便和簡潔,僅以上述各功能模組的劃分進行舉例說明,實際應用中,可以根據需要而將上述功能分配由不同的功能模組完成,即將裝置的內部結構劃分成不同的功能模組,以完成以上描述的全部或者部分功能。上述描述的系統,裝置和單元的具體工作過程,可以參考前述方法實施例中的對應過程,在此不再贅述。Through the description of the above embodiments, those skilled in the art can clearly understand that, for convenience and conciseness of description, only the above-mentioned division of each functional module is used as an example for illustration. In actual applications, the above-mentioned functions can be used as needed The allocation is performed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working processes of the system, device and unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在本申請所提供的幾個實施例中,應該理解到,所揭露的系統,裝置和方法,可以通過其它的方式實現。例如,以上所描述的裝置實施例僅僅是示意性的,例如,所述模組或單元的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式,例如多個單元或元件可以結合或者可以集成到另一個系統,或一些特徵可以忽略,或不執行。另一點,所顯示或討論的相互之間的耦合或直接耦合或通信連接可以是通過一些介面,裝置或單元的間接耦合或通信連接,可以是電性,機械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a division of logical functions. In actual implementation, there may be other divisions, for example, multiple units or elements may be The combination can either be integrated into another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.

所述作為分離部件說明的單元可以是或者也可以不是物理上分開的,作為單元顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部單元來實現本實施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed on multiple network units . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申請各個實施例中的各功能單元可以集成在一個處理單元中,也可以是各個單元單獨物理存在,也可以兩個或兩個以上單元集成在一個單元中。上述集成的單元既可以採用硬體的形式實現,也可以採用軟體功能單元的形式實現。 以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software function unit. The above are only the preferred embodiments of the present invention, and all changes and modifications made in accordance with the scope of the patent application of the present invention shall fall within the scope of the present invention.

CU1~CU9‧‧‧編碼單元 C0~C3‧‧‧圖像塊 F0~F2‧‧‧視頻幀 10‧‧‧視頻源 11‧‧‧視訊轉碼器 12‧‧‧輸出介面 20‧‧‧輸入介面 21‧‧‧視頻解碼器 22‧‧‧顯示裝置 S101-S110、S201~S210、S301~S305、S501~S506、S601~S603‧‧‧步驟 30‧‧‧確定模組 31‧‧‧獲取模組 32‧‧‧編碼模組 40‧‧‧處理模組 41‧‧‧通信模組 42‧‧‧存儲模組 CU1~CU9‧‧‧Coding unit C0~C3‧‧‧Image block F0~F2‧‧‧Video frame 10‧‧‧Video source 11‧‧‧Video transcoder 12‧‧‧Output interface 20‧‧‧Input interface 21‧‧‧Video decoder 22‧‧‧Display device S101-S110, S201~S210, S301~S305, S501~S506, S601~S603 30‧‧‧ Confirm module 31‧‧‧Get Module 32‧‧‧Coding module 40‧‧‧Processing module 41‧‧‧Communication module 42‧‧‧storage module

圖1為本發明實施例提供的一種將視頻幀劃分為編碼單元的示意圖一; 圖2為本發明實施例提供的一種將編碼單元劃分為子編碼單元的示意圖; 圖3為本發明實施例提供的一種將視頻幀劃分為編碼單元的示意圖二; 圖4為本發明實施例提供的一種幀內預測的方法示意圖; 圖5(a)為本發明實施例提供的一種幀間預測的方法示意圖一; 圖5(b)為本發明實施例提供的一種幀間預測的方法示意圖二; 圖5(c)為本發明實施例提供的一種幀間預測的方法示意圖三; 圖6為本發明實施例提供的一種編碼單元的運動向量的示意圖; 圖7為本發明實施例提供的一種編碼設備的硬體示意圖; 圖8為本發明實施例提供的一種解碼設備的硬體示意圖; 圖9為本發明實施例提供的一種處理視頻資料的方法示意圖一; 圖10為本發明實施例提供的一種獲取子編碼單元的運動資訊的方法示意圖一; 圖11為本發明實施例提供的一種處理視頻資料的方法示意圖二; 圖12為本發明實施例提供的一種處理視頻資料的方法示意圖三; 圖13為本發明實施例提供的一種處理視頻資料的方法示意圖四; 圖14為本發明實施例提供的一種處理視頻資料的方法示意圖五; 圖15為本發明實施例提供的一種處理視頻資料的方法示意圖六; 圖16為本發明實施例提供的一種處理視頻資料的方法示意圖七; 圖17為本發明實施例提供的一種處理視頻資料的方法示意圖八; 圖18為本發明實施例提供的一種處理視頻資料的方法示意圖九; 圖19為本發明實施例提供的一種確定編碼單元的運動資訊的方法示意圖一; 圖20為本發明實施例提供的一種確定子編碼單元的運動資訊的方法示意圖一; 圖21為本發明實施例提供的一種處理視頻資料的方法示意圖十; 圖22為本發明實施例提供的一種處理視頻資料的方法示意圖十一; 圖23為本發明實施例提供的一種確定子編碼單元的運動資訊的方法示意圖二; 圖24為本發明實施例提供的一種處理視頻資料的方法示意圖十二; 圖25為本發明實施例提供的一種處理視頻資料的方法示意圖十三; 圖26為本發明實施例提供的一種處理視頻資料的方法示意圖十四; 圖27為本發明實施例提供的處理視頻資料的裝置的結構示意圖一; 圖28為本發明實施例提供的處理視頻資料的裝置的結構示意圖二。1 is a schematic diagram 1 of dividing a video frame into coding units according to an embodiment of the present invention; FIG. 2 is a schematic diagram of dividing a coding unit into sub-coding units according to an embodiment of the present invention; FIG. 3 is provided by an embodiment of the present invention FIG. 4 is a schematic diagram of dividing a video frame into coding units; FIG. 4 is a schematic diagram of an intra prediction method provided by an embodiment of the present invention; FIG. 5(a) is a schematic diagram 1 of an inter prediction method provided by an embodiment of the present invention FIG. 5(b) is a schematic diagram 2 of an inter prediction method according to an embodiment of the present invention; FIG. 5(c) is a schematic diagram 3 of an inter prediction method according to an embodiment of the present invention; FIG. 6 is an embodiment of the present invention A schematic diagram of a motion vector of an encoding unit provided; FIG. 7 is a schematic hardware diagram of an encoding device according to an embodiment of the present invention; FIG. 8 is a schematic hardware diagram of a decoding device according to an embodiment of the present invention; FIG. 9 is an embodiment of the present invention A schematic diagram 1 of a method for processing video data provided by an embodiment; FIG. 10 is a schematic diagram 1 of a method for acquiring motion information of a sub-coding unit provided by an embodiment of the present invention; FIG. 11 is a method of processing video data provided by an embodiment of the present invention Schematic diagram two; Figure 12 is a schematic diagram three of a method for processing video data provided by an embodiment of the present invention; Figure 13 is a schematic diagram four of a method for processing video data provided by an embodiment of the present invention; Figure 14 is a processing method provided by an embodiment of the present invention Schematic diagram 5 of the method of video data; FIG. 15 is a diagram 6 of the method for processing video data provided by the embodiment of the present invention; FIG. 16 is a diagram 7 of the method of processing video data provided by the embodiment of the present invention; FIG. 17 is an embodiment of the present invention Schematic diagram 8 of a method for processing video data provided; FIG. 18 is a diagram 9 of a method for processing video data provided by an embodiment of the present invention; FIG. 19 is a schematic diagram 1 of a method for determining motion information of a coding unit provided by an embodiment of the present invention; 20 is a schematic diagram 1 of a method for determining motion information of a sub-coding unit provided by an embodiment of the present invention; FIG. 21 is a schematic diagram 10 of a method for processing video data provided by an embodiment of the present invention; FIG. 22 is a method provided by an embodiment of the present invention Schematic diagram 11 of a method for processing video data; FIG. 23 is a schematic diagram 2 of a method for determining motion information of sub-coding units according to an embodiment of the present invention; FIG. 24 is a schematic diagram 12 of a method for processing video data according to an embodiment of the present invention; 25 is a schematic diagram 13 of a method for processing video data provided by an embodiment of the present invention; FIG. 26 is a schematic diagram 14 of a method for processing video data provided by an embodiment of the present invention; FIG. 27 is a method of processing video data provided by an embodiment of the present invention Schematic structure 1 of the device; FIG. 28 is a second structure diagram of the device for processing video data provided by an embodiment of the present invention.

S101-S104‧‧‧步驟 S101-S104‧‧‧Step

Claims (30)

一種處理視頻資料的方法,其特徵在於, 確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件,所述當前編碼單元的資訊滿足所述子編碼單元編解碼條件包括所述當前編碼單元的資訊滿足下述條件中的至少一項: 所述當前編碼單元的尺寸資訊滿足子編碼單元編解碼尺寸條件; 至少一個與所述當前編碼單元相鄰的編碼單元的預測資訊根據所述相鄰的編碼單元的子編碼單元的運動資訊得到; 若確定當前編碼單元的資訊滿足所述子編碼單元編解碼條件,獲取至少兩個子編碼單元各自的運動資訊,所述至少兩個子編碼單元為所述當前編碼單元經劃分後獲得的子編碼單元; 根據所述至少兩個子編碼單元各自的運動資訊,確定所述當前編碼單元的第一候選運動資訊清單,所述第一候選運動資訊清單包括至少兩個子編碼單元各自的運動資訊和所述當前編碼單元的候選運動資訊; 根據所述第一候選運動資訊清單,得到所述當前編碼單元的預測資訊。A method for processing video data, characterized in that whether the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit, and the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit includes the information of the current coding unit At least one of the following conditions is met: the size information of the current coding unit satisfies the codec size condition of the sub-coding unit; the prediction information of at least one coding unit adjacent to the current coding unit is based on the adjacent coding The motion information of the sub-coding unit of the unit is obtained; if it is determined that the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit, the respective motion information of at least two sub-coding units is obtained, and the at least two sub-coding units are the A sub-coding unit obtained by dividing the current coding unit; based on the motion information of the at least two sub-coding units, determining a first candidate motion information list of the current coding unit, the first candidate motion information list including at least The motion information of the two sub-coding units and the candidate motion information of the current coding unit; according to the first candidate motion information list, the prediction information of the current coding unit is obtained. 根據請求項1所述的方法,其特徵在於, 所述當前編碼單元的尺寸資訊滿足子編碼單元編解碼尺寸條件包括所述當前編碼單元的尺寸資訊滿足下述條件中的任意一項: 所述當前編碼單元的圖元數量大於或者等於第一閾值; 所述當前編碼單元的圖元數量與第一子編碼單元的圖元數量的比值大於或者等於第二閾值,所述第一子編碼單元為所述至少兩個子編碼單元中的一個子編碼單元; 所述當前編碼單元的寬大於或者等於第三閾值,或所述當前編碼單元的高大於或者等於第四閾值。The method according to claim 1, wherein the size information of the current coding unit satisfies the codec size condition of the sub-coding unit includes that the size information of the current coding unit satisfies any one of the following conditions: The number of picture elements of the current coding unit is greater than or equal to the first threshold; the ratio of the number of picture elements of the current coding unit to the number of picture elements of the first sub-coding unit is greater than or equal to the second threshold, the first sub-coding unit is One of the at least two sub-coding units; the width of the current coding unit is greater than or equal to a third threshold, or the height of the current coding unit is greater than or equal to a fourth threshold. 根據請求項1或2所述的方法,其特徵在於,所述方法應用於解碼設備,所述根據所述第一候選運動資訊清單,得到所述當前編碼單元的預測資訊,包括: 獲取用於指示所述第一候選運動資訊清單中的第一目標候選運動資訊的指示資訊; 根據所述第一候選運動資訊清單和所述第一目標候選運動資訊的指示資訊,確定第一目標候選運動資訊; 根據所述第一目標候選運動資訊,確定所述當前編碼單元的預測資訊。The method according to claim 1 or 2, wherein the method is applied to a decoding device, and the obtaining prediction information of the current coding unit according to the first candidate motion information list includes: obtaining Indication information indicating the first target candidate sports information in the first candidate sports information list; determining the first target candidate sports information based on the first candidate sports information list and the indication information of the first target candidate sports information ; Determine the prediction information of the current coding unit according to the first target candidate motion information. 根據請求項1或2所述的方法,其特徵在於,所述方法應用於解碼設備,若所述當前編碼單元的資訊不滿足所述子編碼單元編解碼條件,所述方法還包括: 確定所述當前編碼單元的第二候選運動資訊清單,所述第二候選運動資訊清單包括所述當前編碼單元的候選運動資訊; 獲取用於指示所述第二候選運動資訊清單中的第二目標候選運動資訊的指示資訊; 根據所述第二候選運動資訊清單和所述第二目標候選運動資訊的指示資訊,確定第二目標候選運動資訊; 根據所述第二目標候選運動資訊,確定所述當前編碼單元的預測資訊。The method according to claim 1 or 2, wherein the method is applied to a decoding device, and if the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit, the method further includes: determining A second candidate motion information list of the current coding unit, the second candidate motion information list including candidate motion information of the current coding unit; acquiring a second target candidate motion for indicating the second candidate motion information list Information indicative information; based on the second candidate sports information list and the indication information of the second target candidate sports information, determine the second target candidate sports information; based on the second target candidate information, determine the current encoding Forecast information for the unit. 根據請求項1所述的方法,其特徵在於,所述方法應用於編碼設備,所述根據所述第一候選運動資訊清單,得到所述當前編碼單元的預測資訊,包括: 在所述第一候選運動資訊清單中確定所述第一目標候選運動資訊; 根據所述第一目標候選運動資訊,確定所述當前編碼單元的預測資訊。The method according to claim 1, wherein the method is applied to an encoding device, and the obtaining prediction information of the current coding unit according to the first candidate motion information list includes: in the first The first target candidate motion information is determined in the candidate motion information list; the prediction information of the current coding unit is determined according to the first target candidate motion information. 根據請求項1所述的方法,其特徵在於,所述方法應用於編碼設備,若所述當前編碼單元的資訊不滿足所述子編碼單元編解碼條件,所述方法還包括: 確定所述當前編碼單元的第二候選運動資訊清單,所述第二候選運動資訊清單包括所述當前編碼單元的候選運動資訊; 在所述第二候選運動資訊清單中確定第二目標候選運動資訊; 根據所述第二目標候選運動資訊,確定所述當前編碼單元的預測資訊。The method according to claim 1, wherein the method is applied to an encoding device, and if the information of the current encoding unit does not satisfy the encoding and decoding conditions of the sub-encoding unit, the method further includes: determining the current A second candidate motion information list of the coding unit, the second candidate motion information list including the candidate motion information of the current coding unit; determining a second target candidate motion information in the second candidate motion information list; according to the The second target candidate motion information determines the prediction information of the current coding unit. 根據請求項5或6所述的方法,其特徵在於,所述方法應用於編碼設備,所述方法還包括: 將用於指示目標候選運動資訊的指示資訊編入所述當前編碼單元的碼流。The method according to claim 5 or 6, characterized in that the method is applied to an encoding device, and the method further comprises: encoding indication information for indicating target candidate motion information into the code stream of the current encoding unit. 一種處理視頻資料的方法,其特徵在於, 確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件,所述當前編碼單元的資訊滿足所述子編碼單元編解碼條件包括所述當前編碼單元的資訊滿足下述條件中的至少一項: 所述當前編碼單元的尺寸資訊滿足子編碼單元編解碼尺寸條件; 至少一個與所述當前編碼單元相鄰的編碼單元的預測資訊根據所述相鄰的編碼單元的子編碼單元的運動資訊得到; 若所述當前編碼單元的資訊滿足所述子編碼單元編解碼條件,獲取至少兩個子編碼單元各自的運動資訊,所述至少兩個子編碼單元為所述當前編碼單元經劃分後獲得的子編碼單元; 根據所述至少兩個子編碼單元各自的運動資訊,得到所述當前編碼單元的預測資訊。A method for processing video data, characterized in that whether the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit, and the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit includes the information of the current coding unit At least one of the following conditions is met: the size information of the current coding unit satisfies the codec size condition of the sub-coding unit; the prediction information of at least one coding unit adjacent to the current coding unit is based on the adjacent coding The motion information of the sub-coding unit of the unit is obtained; if the information of the current coding unit satisfies the coding and decoding conditions of the sub-coding unit, the motion information of at least two sub-coding units is acquired, and the at least two sub-coding units are A sub-coding unit obtained by dividing the current coding unit; obtaining prediction information of the current coding unit according to respective motion information of the at least two sub-coding units. 根據請求項8所述的方法,其特徵在於,所述獲取至少兩個子編碼單元各自的運動資訊,包括: 獲取所述當前編碼單元的運動資訊; 分別以所述當前編碼單元的運動資訊為所述至少兩個子編碼單元各自的初始運動資訊進行運動搜索,從而得到所述至少兩個子編碼單元各自的運動資訊。The method according to claim 8, wherein the acquiring motion information of each of the at least two sub-coding units includes: acquiring motion information of the current coding unit; using the motion information of the current coding unit as Each initial motion information of the at least two sub-coding units performs a motion search, so as to obtain respective motion information of the at least two sub-coding units. 根據請求項8或9所述的方法,其特徵在於,若所述當前編碼單元的資訊不滿足所述子編碼單元編解碼條件,所述方法還包括: 獲取所述當前編碼單元的運動資訊; 根據所述當前編碼單元的運動資訊,確定所述當前編碼單元的預測資訊。The method according to claim 8 or 9, wherein if the information of the current coding unit does not satisfy the encoding and decoding conditions of the sub-coding unit, the method further comprises: acquiring motion information of the current coding unit; The prediction information of the current coding unit is determined according to the motion information of the current coding unit. 根據請求項8所述的方法,其特徵在於,所述方法應用於解碼設備,所述獲取至少兩個子編碼單元各自的運動資訊,包括: 獲取預測模式指示資訊,所述預測模式指示資訊的值用於指示所述預測模式是否為仿射變換模式; 若所述預測模式指示資訊的值指示當前預測模式為仿射變換模式,獲取所述當前編碼單元的至少兩個圖元位置的運動資訊; 根據所述至少兩個圖元位置的運動資訊,確定所述至少兩個子編碼單元各自的運動資訊。The method according to claim 8, wherein the method is applied to a decoding device, and the acquiring motion information of at least two sub-encoding units includes: acquiring prediction mode indication information, the prediction mode indication information The value is used to indicate whether the prediction mode is an affine transformation mode; if the value of the prediction mode indication information indicates that the current prediction mode is an affine transformation mode, acquiring motion information of at least two primitive positions of the current coding unit ; Determining the motion information of the at least two sub-coding units according to the motion information of the at least two primitive positions. 根據請求項8所述的方法,其特徵在於,所述方法應用於編碼設備,所述獲取至少兩個子編碼單元各自的運動資訊,包括: 獲取所述當前編碼單元的至少兩個圖元位置的運動資訊; 根據所述至少兩個圖元位置的運動資訊,確定所述至少兩個子編碼單元各自的運動資訊。The method according to claim 8, wherein the method is applied to an encoding device, and the acquiring motion information of at least two sub-encoding units includes: acquiring at least two image element positions of the current encoding unit Based on the motion information of the at least two primitive positions, determine the respective motion information of the at least two sub-coding units. 根據請求項8或12所述的方法,其特徵在於,所述方法應用於編碼設備,所述方法還包括: 根據所述當前編碼單元的預測資訊,確定所述當前編碼單元的預測模式; 將所述預測模式指示資訊編入所述當前編碼單元的碼流,所述預測模式指示資訊的值用於指示所述預測模式是否為仿射變換模式。The method according to claim 8 or 12, wherein the method is applied to an encoding device, the method further comprising: determining a prediction mode of the current coding unit according to prediction information of the current coding unit; The prediction mode indication information is incorporated into the code stream of the current coding unit, and the value of the prediction mode indication information is used to indicate whether the prediction mode is an affine transformation mode. 根據請求項8或12所述的方法,其特徵在於,所述方法應用於編碼設備,若所述當前編碼單元的資訊不滿足所述子編碼單元編解碼條件,所述方法還包括: 根據候選預測模式集合,確定所述當前編碼單元的預測資訊,所述候選預測模式集合不包括所述仿射變換模式。The method according to claim 8 or 12, wherein the method is applied to an encoding device, and if the information of the current encoding unit does not satisfy the encoding and decoding conditions of the sub-encoding unit, the method further includes: The prediction mode set determines the prediction information of the current coding unit, and the candidate prediction mode set does not include the affine transformation mode. 一種處理視頻資料的裝置,其特徵在於,包括確定模組和獲取模組; 所述確定模組,用於確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件,所述當前編碼單元的資訊滿足所述子編碼單元編解碼條件包括所述當前編碼單元的資訊滿足下述條件中的至少一項: 所述當前編碼單元的尺寸資訊滿足子編碼單元編解碼尺寸條件; 至少一個與所述當前編碼單元相鄰的編碼單元的預測資訊根據所述相鄰的編碼單元的子編碼單元的運動資訊得到; 所述獲取模組,用於在所述確定模組確定當前編碼單元的資訊滿足所述子編碼單元編解碼條件的情況下,獲取至少兩個子編碼單元各自的運動資訊,所述至少兩個子編碼單元為所述當前編碼單元經劃分後獲得的子編碼單元; 所述確定模組,還用於根據所述獲取模組獲取的所述至少兩個子編碼單元各自的運動資訊,確定所述當前編碼單元的第一候選運動資訊清單,所述第一候選運動資訊清單包括至少兩個子編碼單元各自的運動資訊和所述當前編碼單元的候選運動資訊,並且根據所述第一候選運動資訊清單,得到所述當前編碼單元的預測資訊。An apparatus for processing video data is characterized by comprising a determination module and an acquisition module; the determination module is used to determine whether the information of the current coding unit meets the coding and decoding conditions of the sub-coding unit, and the information of the current coding unit Satisfying the encoding and decoding conditions of the sub-encoding unit includes that the information of the current encoding unit satisfies at least one of the following conditions: the size information of the current encoding unit satisfies the encoding and decoding size condition of the sub-encoding unit; at least one Prediction information of coding units adjacent to the coding unit is obtained according to the motion information of sub-coding units of the adjacent coding unit; the acquiring module is configured to determine in the determining module that the information of the current coding unit satisfies the In the case of the encoding and decoding conditions of the sub-encoding unit, acquiring motion information of at least two sub-encoding units, the at least two sub-encoding units being sub-encoding units obtained by dividing the current encoding unit; the determining module , Also used to determine the first candidate motion information list of the current coding unit according to the motion information of the at least two sub-coding units obtained by the obtaining module, the first candidate motion information list includes at least two The motion information of each sub-coding unit and the candidate motion information of the current coding unit, and according to the first candidate motion information list, the prediction information of the current coding unit is obtained. 根據請求項15所述的裝置,其特徵在於,所述當前編碼單元的尺寸資訊滿足子編碼單元編解碼尺寸條件包括所述當前編碼單元的尺寸資訊滿足下述條件中的任意一項: 所述當前編碼單元的圖元數量大於或者等於第一閾值; 所述當前編碼單元的圖元數量與第一子編碼單元的圖元數量的比值大於或者等於第二閾值,所述第一子編碼單元為所述至少兩個子編碼單元中的一個子編碼單元; 所述當前編碼單元的寬大於或者等於第三閾值,或所述當前編碼單元的高大於或者等於第四閾值。The apparatus according to claim 15, wherein the size information of the current coding unit satisfies the codec size condition of the sub-coding unit includes that the size information of the current coding unit satisfies any one of the following conditions: The number of picture elements of the current coding unit is greater than or equal to the first threshold; the ratio of the number of picture elements of the current coding unit to the number of picture elements of the first sub-coding unit is greater than or equal to the second threshold, the first sub-coding unit is One of the at least two sub-coding units; the width of the current coding unit is greater than or equal to a third threshold, or the height of the current coding unit is greater than or equal to a fourth threshold. 根據請求項15或16所述的裝置,其特徵在於,所述裝置為解碼設備; 所述獲取模組,還用於獲取用於指示所述第一候選運動資訊清單中的第一目標候選運動資訊的指示資訊; 所述確定模組,具體用於根據所述第一候選運動資訊清單和所述第一目標候選運動資訊的指示資訊,確定第一目標候選運動資訊,以及根據所述第一目標候選運動資訊,確定所述當前編碼單元的預測資訊。The device according to claim 15 or 16, wherein the device is a decoding device; and the acquiring module is further configured to acquire a first target candidate motion for indicating the first candidate motion information list Information indicating information; the determining module is specifically configured to determine the first target candidate sports information based on the first candidate motion information list and the indication information of the first target candidate motion information, and according to the first The target candidate motion information determines the prediction information of the current coding unit. 根據請求項15或16所述的裝置,其特徵在於,所述裝置為解碼設備; 所述確定模組,還用於在所述當前編碼單元的資訊不滿足所述子編碼單元編解碼條件的情況下,確定所述當前編碼單元的第二候選運動資訊清單,所述第二候選運動資訊清單包括所述當前編碼單元的候選運動資訊; 所述獲取模組,還用於獲取用於指示所述第二候選運動資訊清單中的第二目標候選運動資訊的指示資訊; 所述確定模組,還用於根據所述第二候選運動資訊清單和所述獲取模組獲取的所述第二目標候選運動資訊的指示資訊,確定第二目標候選運動資訊,並且根據所述第二目標候選運動資訊,確定所述當前編碼單元的預測資訊。The device according to claim 15 or 16, characterized in that the device is a decoding device; and the determining module is further used when the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit In the case, a second candidate motion information list of the current coding unit is determined, the second candidate motion information list includes candidate motion information of the current coding unit; the acquisition module is also used to acquire The indication information of the second target candidate sports information in the second candidate sports information list; the determining module is further used to obtain the second target according to the second candidate sports information list and the acquiring module The indication information of the candidate motion information determines the second target candidate motion information, and determines the prediction information of the current coding unit based on the second target candidate motion information. 根據請求項15所述的裝置,其特徵在於,所述裝置為編碼設備; 所述確定模組,具體用於在所述獲取模組獲取的第一候選運動資訊清單中確定所述第一目標候選運動資訊,並且根據所述第一目標候選運動資訊,確定所述當前編碼單元的預測資訊。The device according to claim 15, wherein the device is an encoding device; the determining module is specifically configured to determine the first target in the first candidate sports information list acquired by the acquiring module Candidate motion information, and based on the first target candidate motion information, determine prediction information of the current coding unit. 根據請求項15所述的裝置,其特徵在於,所述裝置為編碼設備; 所述確定模組,還用於在所述當前編碼單元的資訊不滿足所述子編碼單元編解碼條件的情況下,確定所述當前編碼單元的第二候選運動資訊清單,並且在所述第二候選運動資訊清單中確定第二目標候選運動資訊,以及根據所述第二目標候選運動資訊,確定所述當前編碼單元的預測資訊,所述第二候選運動資訊清單包括所述當前編碼單元的候選運動資訊。The device according to claim 15, characterized in that the device is an encoding device; and the determining module is further used when the information of the current encoding unit does not satisfy the encoding and decoding conditions of the sub-encoding unit , Determine the second candidate motion information list of the current coding unit, and determine the second target candidate motion information in the second candidate motion information list, and determine the current encoding based on the second target candidate motion information Prediction information of the unit, the second candidate motion information list includes candidate motion information of the current coding unit. 根據請求項19或20所述的裝置,其特徵在於,所述裝置為編碼設備,所述編碼設備還包括編碼模組; 所述編碼模組,用於將用於指示目標候選運動資訊的指示資訊編入所述當前編碼單元的碼流。The device according to claim 19 or 20, characterized in that the device is an encoding device, and the encoding device further includes an encoding module; the encoding module is used for indicating an indication of target candidate motion information The information is compiled into the code stream of the current coding unit. 一種處理視頻資料的裝置,其特徵在於,包括確定模組和獲取模組; 所述確定模組,用於確定當前編碼單元的資訊是否滿足子編碼單元編解碼條件,所述當前編碼單元的資訊滿足所述子編碼單元編解碼條件包括所述當前編碼單元的資訊滿足下述條件中的至少一項: 所述當前編碼單元的尺寸資訊滿足子編碼單元編解碼尺寸條件; 至少一個與所述當前編碼單元相鄰的編碼單元的預測資訊根據所述相鄰的編碼單元的子編碼單元的運動資訊得到; 所述獲取模組,用於在所述確定模組確定所述當前編碼單元的資訊滿足所述子編碼單元編解碼條件的情況下,獲取至少兩個子編碼單元各自的運動資訊,所述至少兩個子編碼單元為所述當前編碼單元經劃分後獲得的子編碼單元; 所述確定模組,還用於根據所述獲取模組獲取的所述至少兩個子編碼單元各自的運動資訊,得到所述當前編碼單元的預測資訊。An apparatus for processing video data is characterized by comprising a determination module and an acquisition module; the determination module is used to determine whether the information of the current coding unit meets the coding and decoding conditions of the sub-coding unit, and the information of the current coding unit Satisfying the encoding and decoding conditions of the sub-encoding unit includes that the information of the current encoding unit satisfies at least one of the following conditions: the size information of the current encoding unit satisfies the encoding and decoding size condition of the sub-encoding unit; at least one Prediction information of coding units adjacent to the coding unit is obtained according to the motion information of the sub-coding units of the adjacent coding unit; the acquisition module is used to determine that the information of the current coding unit is satisfied by the determination module In the case of the encoding and decoding conditions of the sub-encoding unit, acquiring motion information of at least two sub-encoding units, the at least two sub-encoding units being sub-encoding units obtained after the current encoding unit is divided; the determining The module is also used to obtain the prediction information of the current coding unit according to the motion information of the at least two sub-coding units obtained by the obtaining module. 根據請求項22所述的裝置,其特徵在於, 所述獲取模組,具體用於獲取所述當前編碼單元的運動資訊,並且分別以所述當前編碼單元的運動資訊為所述至少兩個子編碼單元各自的初始運動資訊進行運動搜索,從而得到所述至少兩個子編碼單元各自的運動資訊。The device according to claim 22, wherein the acquiring module is specifically configured to acquire the motion information of the current coding unit, and respectively use the motion information of the current coding unit as the at least two sub-components The initial motion information of each coding unit performs a motion search to obtain the motion information of each of the at least two sub-coding units. 根據請求項22或23所述的裝置,其特徵在於, 所述獲取模組,還用於在所述當前編碼單元的資訊不滿足所述子編碼單元編解碼條件,獲取所述當前編碼單元的運動資訊; 所述確定模組,還用於根據所述獲取模組獲取的所述當前編碼單元的運動資訊,確定所述當前編碼單元的預測資訊。The device according to claim 22 or 23, wherein the acquisition module is further configured to acquire information about the current coding unit when the information of the current coding unit does not satisfy the coding and decoding conditions of the sub-coding unit Motion information; the determination module is also used to determine the prediction information of the current coding unit based on the motion information of the current coding unit acquired by the acquisition module. 根據請求項22所述的裝置,其特徵在於,所述裝置為解碼設備; 所述獲取模組,具體用於獲取預測模式指示資訊,並且在所述預測模式指示資訊的值指示當前預測模式為仿射變換模式的情況下,獲取所述當前編碼單元的至少兩個圖元位置的運動資訊,以及根據所述至少兩個圖元位置的運動資訊,確定所述至少兩個子編碼單元各自的運動資訊,所述預測模式指示資訊的值用於指示所述預測模式是否為仿射變換模式。The device according to claim 22, wherein the device is a decoding device; the acquisition module is specifically configured to acquire prediction mode indication information, and the value of the prediction mode indication information indicates that the current prediction mode is In the case of the affine transformation mode, acquiring the motion information of at least two primitive positions of the current coding unit, and determining the respective motion of the at least two sub-coding units according to the motion information of the at least two primitive positions For motion information, the value of the prediction mode indication information is used to indicate whether the prediction mode is an affine transformation mode. 根據請求項22所述的裝置,其特徵在於,所述裝置為編碼設備; 所述獲取模組,還用於獲取所述當前編碼單元的至少兩個圖元位置的運動資訊,並且根據所述至少兩個圖元位置的運動資訊,確定所述至少兩個子編碼單元各自的運動資訊。The device according to claim 22, wherein the device is an encoding device; the acquiring module is further used to acquire motion information of at least two primitive positions of the current encoding unit, and according to the The motion information of at least two picture element positions determines the motion information of each of the at least two sub-coding units. 根據請求項22或26所述的裝置,其特徵在於,所述裝置為編碼設備,所述編碼設備還包括編碼模組; 所述確定模組,還用於根據所述當前編碼單元的預測資訊,確定所述當前編碼單元的預測模式; 所述編碼模組,用於將所述確定模組確定的所述預測模式指示資訊編入所述當前編碼單元的碼流,所述預測模式指示資訊的值用於指示所述預測模式是否為仿射變換模式。The device according to claim 22 or 26, characterized in that the device is an encoding device, and the encoding device further includes an encoding module; the determining module is further used for predicting information based on the current encoding unit To determine the prediction mode of the current coding unit; the coding module is used to program the prediction mode indication information determined by the determination module into the code stream of the current coding unit, and the prediction mode indicates information The value is used to indicate whether the prediction mode is an affine transformation mode. 根據請求項22或26所述的裝置,其特徵在於,所述裝置為編碼設備; 所述確定模組,還用於在所述當前編碼單元的資訊不滿足所述子編碼單元編解碼條件的情況下,根據候選預測模式集合,確定所述當前編碼單元的預測資訊,所述候選預測模式集合不包括所述仿射變換模式。The device according to claim 22 or 26, characterized in that the device is an encoding device; and the determining module is further used when the information of the current encoding unit does not satisfy the encoding and decoding conditions of the sub-encoding unit In this case, the prediction information of the current coding unit is determined according to a set of candidate prediction modes that does not include the affine transformation mode. 一種處理視頻資料的裝置,其特徵在於,包括處理器和與所述處理器耦合連接的記憶體; 所述記憶體用於存儲電腦指令,當所述裝置運行時,所述處理器執行所述記憶體存儲的所述電腦指令,以使得所述裝置執行如請求項1至7任意一項所述的處理視頻資料的方法,或使得所述裝置執行如請求項8至14任意一項所述的處理視頻資料的方法。An apparatus for processing video data is characterized by comprising a processor and a memory coupled to the processor; the memory is used to store computer instructions, and when the apparatus is running, the processor executes the The computer instructions stored in the memory to cause the device to execute the method for processing video data according to any one of the items 1 to 7 or to execute the device according to any one of the items 8 to 14 The method of processing video data. 一種電腦可讀存儲介質,其特徵在於,包括電腦指令,當所述電腦指令在處理視頻資料的裝置上運行時,使得所述裝置執行如請求項1至7任意一項所述的處理視頻資料的方法,或使得所述裝置執行如請求項8至14任意一項所述的處理視頻資料的方法。A computer-readable storage medium, characterized by including computer instructions, when the computer instructions run on a device for processing video data, causing the device to perform processing of video data according to any one of request items 1 to 7 The method of causing the device to execute the method of processing video data as described in any one of the items 8 to 14.
TW107129127A 2017-08-22 2018-08-21 Method and apparatus for processing video data TWI694713B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201710725341.9A CN109429064B (en) 2017-08-22 2017-08-22 Video data coding and decoding method, device and medium
??201710725341.9 2017-08-22
CN201710725341.9 2017-08-22

Publications (2)

Publication Number Publication Date
TW201921934A TW201921934A (en) 2019-06-01
TWI694713B true TWI694713B (en) 2020-05-21

Family

ID=65438407

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107129127A TWI694713B (en) 2017-08-22 2018-08-21 Method and apparatus for processing video data

Country Status (3)

Country Link
CN (1) CN109429064B (en)
TW (1) TWI694713B (en)
WO (1) WO2019037533A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021056220A1 (en) * 2019-09-24 2021-04-01 北京大学 Video coding and decoding method and apparatus
CN111314778B (en) * 2020-03-02 2021-09-07 北京小鸟科技股份有限公司 Coding and decoding fusion processing method, system and device based on multiple compression modes
CN112218092B (en) * 2020-10-17 2022-09-06 浙江大华技术股份有限公司 Encoding method, apparatus and storage medium for string encoding technique
CN112532974B (en) * 2020-11-24 2024-07-12 浙江大华技术股份有限公司 Encoding method, apparatus and storage medium for string encoding technique
WO2023220970A1 (en) * 2022-05-18 2023-11-23 Oppo广东移动通信有限公司 Video coding method and apparatus, and device, system and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102835113A (en) * 2010-04-09 2012-12-19 Lg电子株式会社 Method and apparatus for processing video signal
CN104602000A (en) * 2014-12-30 2015-05-06 北京奇艺世纪科技有限公司 Partition method and device for coding unit

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101373814B1 (en) * 2010-07-31 2014-03-18 엠앤케이홀딩스 주식회사 Apparatus of generating prediction block
GB2501517A (en) * 2012-04-27 2013-10-30 Canon Kk Scalable Encoding and Decoding of a Digital Image
CN103327327B (en) * 2013-06-03 2016-03-30 电子科技大学 For the inter prediction encoding unit selection method of high-performance video coding HEVC
US10244253B2 (en) * 2013-09-13 2019-03-26 Qualcomm Incorporated Video coding techniques using asymmetric motion partitioning
KR101519557B1 (en) * 2013-12-27 2015-05-13 연세대학교 산학협력단 Apparatus and method for fast Intra Prediction Algorithm
CN103763570B (en) * 2014-01-20 2017-02-01 华侨大学 Rapid HEVC intra-frame prediction method based on SATD
CN104602017B (en) * 2014-06-10 2017-12-26 腾讯科技(北京)有限公司 Video encoder, method and apparatus and its inter-frame mode selecting method and device
JP6459761B2 (en) * 2015-05-01 2019-01-30 富士通株式会社 Moving picture coding apparatus, moving picture coding method, and moving picture coding computer program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102835113A (en) * 2010-04-09 2012-12-19 Lg电子株式会社 Method and apparatus for processing video signal
CN104602000A (en) * 2014-12-30 2015-05-06 北京奇艺世纪科技有限公司 Partition method and device for coding unit

Also Published As

Publication number Publication date
WO2019037533A1 (en) 2019-02-28
TW201921934A (en) 2019-06-01
CN109429064B (en) 2021-03-30
CN109429064A (en) 2019-03-05

Similar Documents

Publication Publication Date Title
TWI694713B (en) Method and apparatus for processing video data
JP7216351B2 (en) Point cloud coding structure
TWI622288B (en) Video decoding method
KR101874100B1 (en) Method and apparatus for encoding and decoding image
TWI786790B (en) Method and apparatus of frame inter prediction of video data
WO2020248889A1 (en) Method, apparatus and electronic device for video quality prediction
WO2020140915A1 (en) Video processing method and apparatus
JP7143435B2 (en) Bi-directional inter-prediction method and apparatus
WO2020048205A1 (en) Method and apparatus for acquiring reference frame applied to bidirectional inter-frame prediction
WO2020042604A1 (en) Video encoder, video decoder and corresponding method
US11483561B2 (en) Transform method in picture block encoding, inverse transform method in picture block decoding, and apparatus
US20230239494A1 (en) Video encoder, video decoder, and corresponding method
WO2019114294A1 (en) Image coding and encoding method, device and system, and storage medium
CN110876065A (en) Construction method of candidate motion information list, and inter-frame prediction method and device
WO2020181504A1 (en) Video encoding method and apparatus, and video decoding method and apparatus
US20170013262A1 (en) Rate control encoding method and rate control encoding device using skip mode information
JP2023134524A (en) Method for constructing candidate motion information list, inter prediction method, and apparatus
WO2022198465A1 (en) Coding method and apparatus
CN115442617A (en) Video processing method and device based on video coding
JP2022546774A (en) Interpolation filtering method and device, computer program and electronic device for intra prediction
CN110971899B (en) Method for determining motion information, and inter-frame prediction method and device
WO2020042724A1 (en) Inter-frame prediction method and device, and video encoder and video decoder
WO2019227297A1 (en) Interframe prediction method, device, and codec for video image
CN110677645A (en) Image prediction method and device