WO2016149663A1 - Method, apparatus and coder for selecting optimal reference frame in hevc coding - Google Patents
Method, apparatus and coder for selecting optimal reference frame in hevc coding Download PDFInfo
- Publication number
- WO2016149663A1 WO2016149663A1 PCT/US2016/023250 US2016023250W WO2016149663A1 WO 2016149663 A1 WO2016149663 A1 WO 2016149663A1 US 2016023250 W US2016023250 W US 2016023250W WO 2016149663 A1 WO2016149663 A1 WO 2016149663A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- optimal reference
- prediction unit
- reference frame
- adjacent
- reference frames
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/17—Methods 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/176—Methods 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/105—Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods 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/146—Data rate or code amount at the encoder output
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/187—Methods 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 a scalable video layer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N19/96—Tree coding, e.g. quad-tree coding
Definitions
- the present disclosure relates to the field of video image processing, and in particular, to methods, apparatuses, and coders for selecting an optimal reference frame in H EVC (High Efficiency Video Coding) coding. Background
- HEVC is a new generation of video coding standard, which adopts a flexible block structure division technology for encoding coded images.
- a block structure includes a coding unit (CU), a prediction unit (PU) and a transform unit (TU).
- the H EVC conducts coding using the CU as a basic coding unit during a coding process.
- An H EVC coder firstly divides a video image into a plurality of non-overlapping largest coding units (LCUs), and then divides the LCUs into smaller CUs according to a tree structure, with sizes of CUs ranging from the LCUs to smallest coding units (SCUs).
- Each CU includes one or more PUs, and each CU needs to perform an inter-frame prediction or an intra-frame prediction using a PU as a unit.
- a problem of selecting an optimal reference frame exists in a process of inter-frame prediction.
- a method for selecting an optimal reference frame in a conventional process of PU inter-frame prediction includes predicting all candidate reference frames one by one for a current PU, individually calculating a rate distortion cost corresponding to each candidate reference frame, and selecting a candidate reference frame having the minimum rate distortion cost as the optimal reference frame for the current PL).
- Such an ergodic selection method has a very large amount of computation.
- one LCU may be divided into a plurality of CUs and one CU may have multiple inter-frame prediction division modes, each CU of an inter-frame prediction division mode includes one or more PUs.
- each PL corresponding to each inter-frame prediction division mode of each CU needs to traverse all candidate reference frames in order to select a corresponding optimal reference frame, this incurs a large amount of computation and a long time on a coding process, thereby seriously affecting the coding efficiency.
- a technical problem to be solved by the present disclosure is to provide a method for selecting an optimal reference frame in HEVC coding, which is used to solve a technical problem of a large computation cost and a long computation time in existing technologies that affect a coding efficiency due to a need of individual testing of candidate reference frames in a ergodic manner.
- the present disclosure further provides an apparatus and a coder for selecting an optimal reference frame in HEVC coding, which are used to ensure implementations and applications of the foregoing method in practice.
- a method for selecting an optimal reference frame in H EVC coding may include at least obtaini ng optimal reference frames of prediction units that are spatially adjacent to a current prediction unit, a nd determining an optimal reference frame of the current prediction unit based on a correlation between optimal reference frames of prediction units that are spatially adjacent in a same layer depth for prediction unit(s) that is/are in a minimum layer depth.
- the method may include obtaining optimal reference frames of prediction units that is spatially adjacent to a current prediction unit, a nd determining an optimal reference frame of the current prediction unit based on a correlation between optimal reference frames of prediction units that are spatially adjacent in a same layer depth.
- determining the optimal reference frame of the current prediction unit based on the correlation between the optimal reference frames of the prediction units that are spatially adjacent in the same layer depth may include determining the optimal reference frame corresponding to the current prediction unit from the optimal reference frames that are obtained according to a strategy that the optimal reference frames of the prediction units that are spatially adjacent in the same layer depth are the same.
- determining the optimal reference frame of the current prediction unit based on the correlation between the optimal reference frames of the prediction units that are spatially adjacent in the same layer depth includes determining whether the optimal reference frames that are obtained are equal to each other, and determining equal optimal reference frames to be the optimal reference frame of the current prediction unit if affirmative.
- the method may include obtaining optimal reference frames of prediction units that are located in an upper layer depth and have a spatial location that is equal and adjacent to the current prediction unit; or obtaining optimal reference frames of prediction units that are located in an upper layer depth and have a spatial location that is equal and/or adjacent to the current prediction unit, and obtaining the optimal reference frames of the prediction units that are spatially adjacent to the current prediction unit; and determining the optimal reference frame of the current prediction unit based on correlations between optimal reference frames of prediction units which spatial locations are equal and/or adjacent to each other in different layer depths.
- determining the optimal reference frame of the current prediction unit based on the correlations between the optimal reference frames of the prediction units which spatial locations are equal and/or adjacent to each other in the different layer depths may include determining the optimal reference frame of the current prediction unit from the optimal reference frames that are obtained according to a strategy that the optimal reference frames of the prediction units which spatial locations are equal and/or adjacent to each other in the different layer depths are the same.
- determining the optimal reference frame of the current prediction unit according to the correlations between the optimal reference frames of the prediction units which spatial locations are equal and/or adjacent to each other in the different layer depths may include determining whether all the obtained optimal reference frames are equal to each other; or determining whether all the obtained optimal reference frames are equal to each other and determining whether motions of the obtained predication units having the spatial location the same as the current prediction unit in the upper layer depth are not severe; and determining equal optimal reference frames to be the optimal reference frame of the current prediction unit if affirmative.
- obtaining the optimal reference frames of the prediction units that are spatially adjacent to the current prediction unit may include obtaining optimal reference frames of left and upper adjacent prediction units of the current prediction unit; or obtai ni ng optimal reference frames of left adjacent, upper adjacent and upper-left adjacent prediction units of the current prediction unit; or obtaining optimal reference frames of left adjacent, upper adjacent and upper-right adjacent prediction units of the current prediction unit; or obtaining optimal reference frames of left adjacent, upper adjacent, upper-left adjacent and upper-right adjacent prediction units of the current prediction unit.
- an apparatus for selecting an optimal reference frame in HEVC coding may include a first control unit to control a first acquisition unit and a first determination unit to at least perform corresponding processing for prediction unit(s) of a minimum layer depth.
- the first acquisition unit is configured to obtain optimal reference frames of prediction units that are spatially adjacent to a current prediction unit.
- the first determination unit is configured to determine an optimal reference frame of the current prediction unit based on a correlation between optimal reference frames of prediction units that are spatially adjacent in a same layer depth.
- the first control unit may be configured to control the first acquisition unit and the first determination unit to perform corresponding processing for prediction unit(s) of each layer depth.
- the first determination unit may be configured to determine the optimal reference frame corresponding to the current prediction unit from optimal reference frames that are obtained according to a strategy that the optimal reference frames of the prediction units that are spatially adjacent in the same layer depth are the same.
- the first determination unit may include a first judgment sub-unit to determine whether all the optimal reference frames that are obtained are equal to each other and trigger a first determination sub-unit if affirmative; and the first determination sub-unit to determine the optimal reference frames that are equal to each other as the optimal reference frame of the current prediction unit.
- the first control unit may be configured to control the first acquisition unit and the first determination unit to perform corresponding processing for the prediction unit(s) of the minimum layer depth.
- the apparatus may further include a second control unit to control a second acquisition unit a nd a second determination unit to perform corresponding processing for prediction unit(s) that is/are not of the minimum layer depth.
- the second acquisition unit may obtain optimal reference frames of prediction units that are located in an upper layer depth and have a spatial location that is equal and adjacent to the current prediction unit; or obtain optimal reference frames of prediction units that are located in an upper layer depth and have a spatial location that is equal and/or adjacent to the current prediction unit, and obtain the optimal reference frames of the prediction units that are spatially adjacent to the current prediction unit.
- the second determination unit may determine the optimal reference frame of the current prediction unit based on correlations between optimal reference frames of prediction units which spatial locations are equal and/or adjacent to each other in different layer depths. In implementations, the second determination unit may determine the optimal reference frame of the current prediction unit from the optimal reference frames that are obtained according to a strategy that the optimal reference frames of the prediction units which spatial locations are equal and/or adjacent to each other in the different layer depths are the same.
- the second determination unit may include a second judgment sub-unit and a second determination sub-unit.
- the second judgment sub-unit may determine whether all the obtained optimal reference frames are equal to each other, or determine whether all the obtained optimal reference frames are equal to each other and whether motions of the obtained predication units having the spatial location the same as the current prediction unit in the upper layer depth are not severe.
- the second judgment sub-unit may trigger a second determination sub-unit if affirmative.
- the second determination sub-unit may determine the optimal reference frames that are equal to each other as the optimal reference frame of the current prediction unit.
- the first acquisition unit may obtain optimal reference frames of left and upper adjacent prediction units of the current prediction unit.
- the first acquisition unit may obtain optimal reference frames of left adjacent, upper adjacent and upper-left adjacent prediction units of the current prediction unit.
- the first acquisition unit may obtain optimal reference frames of left adjacent, upper adjacent and upper-right adjacent prediction units of the current prediction unit.
- the first acquisition unit may obtain optimal reference frames of left adjacent, upper adjacent, upper-left adjacent and upper-right adjacent prediction units of the current prediction unit.
- the present disclosure provides a coder.
- the coder may include the foregoing apparatus of selecting an optimal reference frame in HEVC coding.
- the present disclosure has the following beneficial effects. At least for prediction unit(s) in a layer corresponding to the minimum coding layer depth, the present disclosure is able to directly determine an optimal reference frame of a prediction unit in at least one layer based on a correlation between optimal reference frames of prediction units that are spatially adjacent in a same layer depth. Therefore, at least for the prediction unit(s) in the layer corresponding to the minimum layer depth, performing an ergodic rate distortion cost calculation for all corresponding candidate reference frames thereof is not needed, which can save a corresponding computation cost of at least half of the prediction units, and improve the coding efficiency. Moreover, as the requirements for the quality of coded images become higher, the number of candidate reference frames increases. A larger amount of computation can be saved using the present disclosure.
- FIG. 1 is a schematic diagram illustrating a CU recursive division mode and a number of inter-frame prediction division modes and corresponding PUs thereof in H EVC coding in existing technologies.
- FIG. 2 is a flowchart illustrating a first method for selecting an optimal reference frame in H EVC coding according to the present disclosure.
- FIG. 3 is a schematic diagram illustrating a spatial adjacency relationship between PUs according to the present disclosure.
- FIG. 4 is a flowchart illustrating a second method for selecting an optimal reference frame in H EVC coding according to the present disclosure.
- FIG. 5 is a schematic diagram illustrating a n adjacent layer relationship of a layer depth in which a predication unit is located according to the present disclosure.
- FIG. 6 is a structural diagram illustrating a first apparatus for selecting an optimal reference frame in H EVC coding according to the present disclosure.
- FIG. 7 is a structural diagram illustrating a second apparatus for selecting an optimal reference frame in H EVC coding according to the present disclosure.
- FIG. 8 is a structural diagram illustrating a coder according to the present disclosure.
- the present disclosure is applicable in a variety of universal or dedicated computing system environments or configurations. Examples include personal computers, server computers, handheld devices or portable devices, tablet devices, multiprocessor systems, and distributed computing environments that include any of the above systems or devices, etc.
- the present disclosure may be described in a general context of computer executable instructions executed by a computing device, such as program module(s).
- the program module(s) may include routines, procedures, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types.
- the present disclosure can also be implemented in distributed computing environments, and a task may be performed by a remote processing device connected through a communication network in these distributed computing environments.
- the program module(s) may be located in local and remote computer storage media which include storage device(s).
- a video image is first divided into multiple non-overlapping largest coding units (LCUs) in a H EVC coding process.
- the LCUs are then divided into smaller CUs according to a tree structure with sizes of the CUs ranging from the LCUs to the smallest coding units (SCUs).
- Each coding unit has a plurality of inter-frame prediction division modes, and each inter-frame prediction division mode consists of one or more prediction units.
- Each prediction unit corresponds to a plurality of candidate reference frames. By traversing the plurality of candidate reference frames corresponding to each prediction unit, each inter-frame prediction division mode is traversed.
- An optimal reference frame corresponding to each prediction unit and an optimal inter-frame prediction division mode are determined according to a principle of a minimum rate distortion cost, thus achieving an optimal prediction.
- a residual signal is obtained from a difference between a predicted signal and an original signal.
- the residual signal is transformed, quantized, entropy coded, and added with other prediction information a nd additional code flow information to form a final coding stream.
- a most important section in a process of determining an optimal inter-frame prediction division mode corresponding to a CU is to determine an optimal reference frame corresponding to each PU of the CU in each type of inter-frame prediction division mode.
- FIG. 1 which shows a schematic diagram of a CU recursive division mode, inter-frame prediction division modes and corresponding PUs in a HEVC coding, is used as a n exa m ple for explaining a nd il l ustrating a relationshi p among a CU a nd a n inter-fra me prediction division mode thereof a nd corresponding PU(s).
- the largest coding unit LCU is 64 x 64
- the smallest coding unit SCU is 8 x 8.
- a single LCU of 64 x 64 may be divided into four CUs of 32 x 32.
- Each CU of 32 x 32 may be further divided into four CUs of 16 x 16, and each CU of 16 x 16 may be further divided into four SCUs of 8 x 8.
- a size of a CU is expressed as a power of two, i.e., a value of N in the figure, or may be described using a layer depth, Depth, with a layer depth of the largest coding unit LCU is zero, and a layer depth is increased by one after each division on such basis.
- Respective inter-frame prediction division modes for CUs corresponding to each layer depth are different, as shown in the rightmost block of FIG. 1.
- each CU When a layer depth is less than 3 (0, 1, 2), each CU has seven inter-frame prediction division modes: inter 2N x 2N, inter 2N x N, inter N x 2N, inter 2N x nU, inter 2N x nD, inter nL x 2N, and inter nR x 2N.
- the inter 2N x 2N contains one PL), and each of the remaining six division modes contains two PUs. Accordingly, a CU of a depth of less than 3 has a total of 13 PUs.
- each CU has three inter-frame prediction division modes: inter 2N x 2N, inter 2N x N, and inter N x 2N.
- the inter 2N x 2N contains one PU, and each of the remaining two division modes contains two PUs. Accordingly, a CU of a depth of 3 has a total of 5 PUs.
- a layer depth thereof is only the depth of a minimum layer.
- Some CUs may need to be divided for two or more times according to the coding requirements.
- an optimal reference frame of each PU in each layer is determined in an ascending order of layer depths.
- the optimal reference frame corresponding to each PU in each layer depth is determined in an order of a layer depth being "0", a layer depth being "1", a layer depth being "2", and higher layer depth(s).
- the solution of the existing technologies needs to calculate a rate distortion cost of each candidate reference frame for each prediction unit of each layer depth in an ergodic manner, and select a candidate reference frame having the minimum rate distortion cost as an optimal reference frame of a respective prediction unit.
- Such selection method has a high computation complexity and a large computation cost, which affect the coding efficiency.
- a technical solution of a first embodiment of the present disclosure no longer performs the ergodic rate distortion cost calculation of each candidate reference frame (typically, the num ber of candidate reference frames is greater than one) at least for prediction unit(s) in a layer corresponding to the minimum layer depth, and directly determines an optimal reference frame of a prediction unit through a correlation between optimal reference frames of prediction units that are spatially adjacent in a same layer. This saves a computation cost of at least half of prediction units, and may improve the coding efficiency. Moreover, as requirements for the quality of coded images become higher, the number of candidate reference frames increases. A larger amount of computation can then be saved using the present disclosure.
- FIG. 2 is a flowchart illustrating a first example method 200 for selecting an optimal reference frame in H EVC coding according to the present disclosure.
- the method 200 may include the following.
- S201 performs the following processing at least for prediction unit(s) of a minimum layer depth: selecting optimal reference frames of prediction units that are spatially adjacent to a current prediction unit.
- optimal reference frames of PUs that are spatially adjacent to the current PU need to be obtained first.
- the PUs that are spatially adjacent to the current PU include at least left adjacent and upper adjacent PUs of the current PU, and may also include a PU that is upper-left adjacent to the current PU and/or a PU that is upper-right adjacent to the current PU.
- the optimal reference frames of these adjacent PUs can be taken as s data basis for determining the optimal reference frame of the current PU.
- FIG. 3 is used herein as an example to provide a more intuitive description 300 for PUs that are spatially adjacent to a current PU 301.
- FIG. 3 shows a schematic diagram illustrating a spatial adjacency relationship 300 between PUs. I n FIG. 3, al 302 represents a left adjacent prediction unit, b2 303 represents an upper-left adjacent prediction unit, bl 304 represents an upper adjacent prediction unit, and bO 305 represents an upper-right adjacent prediction unit.
- S201 may be implemented in the following four approaches, which respectively include:
- a first approach obtaining optimal reference frames of the left adjacent and upper adjacent prediction units of the current prediction unit;
- a fourth approach obtaining optimal reference frames of the left adjacent, upper adjacent, upper-left adjacent and upper-right adjacent prediction units of the current prediction unit.
- an optimal reference frame of each PU in each layer needs to be successively determined in an order of small to large layer depths.
- at least prediction unit(s) of the minimum layer depth is/are processed in accordance with the above method blocks.
- processing is performed directly according to S201 and S202 to determine an optimal reference frame of the PU, the essence of which is to determine the optimal reference frame of the instant PU according to a correlation between optimal reference frames of adjacent PUs.
- processing may be conducted in accorda nce with the a bove method blocks or other methods.
- S202 may include determining the optimal reference frame of the current prediction unit from the obtained optimal reference frames according to a strategy that the optimal reference frames of the prediction units that are spatially adjacent in the same layer depth are the same.
- S202 may include determining whether all the obtained optimal reference frames are equal to each other; and determining the optimal reference frames that are equal to each other as the optimal reference frame of the current prediction unit if affirmative.
- a reference frame having the minimum rate distortion cost may be determined as the optimal reference frame of the current PL) using a conventional approach of performing an ergodic rate distortion cost calculation based on all the acquired obtained reference frames or all candidate reference frames.
- the present disclosure is able to directly determine an optimal reference frame of a current PL) according to a correlation between optimal reference frames by using optimal reference frames of PUs that are adjacent to the current PL) as a data basis. As such, performing an ergodic rate distortion cost calculation for the current PL) is not needed, thus saving a large amount of data calculations.
- an optimal reference frame of a PL may be determined using a traditional method of ergodic rate distortion cost calculation, or using the above methods for processing PU(s) that is/are in the minimum layer depth.
- the present disclosure further provides another technical solution.
- FIG. 4 shows a schematic flowchart of a second example method 400 for selecting an optimal reference frame in HEVC coding according to the present disclosure.
- the method 400 may process a layer that is of a minimum depth and a layer that is not of the minimum depth in different manners, and may include the following method blocks.
- S401 obtains optimal reference frames of prediction units that are spatially adjacent to a current prediction unit.
- 5402 determines an optimal reference frame of the current prediction unit based on a correlation between optimal reference frames of prediction units that are spatially adjacent in a same layer depth.
- S404 determines the optimal reference frame of the current prediction unit based on correlations between optimal reference frames of prediction units which spatial locations are equal and/or adjacent to each other in different layer depths.
- an optimal reference frame of the instant PL may be directly determined based on a correlation between the optimal reference frames of the instant PL) and PUs that are located in an upper layer depth and have a spatial location that is equal and adjacent to the insta nt PL). As such, performing an ergodic rate distortion cost calculation for the instant PL) is not needed.
- an upper layer depth that is adjacent to the PL) or is separated from the PL) by a gap apparently exists.
- An upper layer depth may be an upper layer depth that is adjacent to a layer depth in which a current prediction unit is located or an upper layer depth that is separated from the layer depth in which the current prediction unit is located by a gap of two or more layers.
- FIG. 5 shows a schematic diagram of an adjacent layer relationship 500 associated with a layer depth in which a predication unit is located.
- a current layer depth is d
- an upper layer depth may be d-1 layer depth or d-2 layer depth.
- Obtained optimal reference frames of PUs that are located in an upper layer depth and have a spatial location that is the same as a current PL) are optimal reference frames of PUs that are marked in a gray color.
- Obtained optimal reference frames of PUs that are located in an upper layer depth and have a spatial location adjacent to a current PU are optimal reference frames of adjacent PUs of the PUs marked in the gray color.
- a layer depth in which a current PU is located is two, this indicates that corresponding optimal reference frames have been determined for all PUs in an adjacent upper layer depth of one and a gapped upper layer depth of zero. If a layer depth in which a current PU is located is one, this indicates that corresponding optimal reference frames have been determined for all PUs having an upper layer depth of zero.
- S404 determines the optimal reference frame of the current prediction unit from the obtained optimal reference frames according to a strategy that optimal reference frames of prediction units which spatial locations are equal and/or adjacent to each other in different layer depths are the same.
- S404 may include determining whether all the obtained optimal reference frames are equal to each other; determining that equal optimal reference frames as the optimal reference frame of the current prediction unit if affirmative; or individually performing a rate distortion cost calculation for all the obtained optimal reference frames or all candidate reference frames, and determining a reference frame having the minimum rate distortion cost as the optimal reference frame of the current prediction unit if not.
- S404 may also include determining whether all the obtained optimal reference frames are equal to each other, and determining whether a motion of an obtained prediction unit that is located in the upper layer depth and has the spatial location that is the same as the current prediction unit are not severe; determining that equal optimal reference frames as the optimal reference frame of the current prediction unit if affirmative; or individually performing a rate distortion cost calculation for all the obtained optimal reference frames or all candidate reference frames, and determining a reference frame having the minimum rate distortion cost to be the optimal reference frame of the current prediction unit.
- mv_dist is com pa red with a preset threshold. If mv_dist is less tha n the preset th reshold, this indicates that a motion thereof is not severe. Otherwise, mv_dist indicates that the motion is severe.
- the present disclosure provides an apparatus for selecting an optimal reference frame in HEVC coding.
- FIG. 6 shows a structural diagram of a first example apparatus 600 for selecting an optimal reference frame in HEVC coding according to the present disclosure.
- the apparatus 600 for selecting an optimal reference frame in HEVC coding may include a first control unit 601 that controls a first acquisition unit 602 and a first determination unit 603 to perform corresponding processing at least for prediction unit(s) that is/are in a minimum layer depth; the first acquisition unit 602 that obtains optimal reference frames of prediction units that are spatially adjacent to a current prediction unit; and the first determination unit 603 that determines an optimal reference frame of the current prediction unit based on a correlation between optimal reference frames of spatially adjacent prediction units in a same layer depth.
- the first control unit 601 may control the first acquisition unit 602 and the first determination unit 603 to perform corresponding processing for the prediction unit(s) of the minimum layer depth.
- the first control unit 601 may control the first acquisition unit 602 and the first determination unit 603 to perform corresponding processing for prediction unit(s) of each layer depth.
- the first control unit 301 may control the fi rst acquisition u nit 602 a nd the first determination u nit 603 to perform correspondi ng processing for prediction u nit(s) that is/a re in the minimu m layer depth a nd prediction u nit(s) that is/a re not in the minimum layer depth.
- the first determination unit 603 may include a first judgment sub-unit 604 to determine whether all the acquired optimal reference frames are equal to each other, and trigger a first determination sub-unit 605 if affirmative; and the first determination sub-unit 605 to determine optimal reference frames that are equal to each other as the optimal reference frame of the current prediction unit.
- a rate distortion cost calculation sub-unit 606 may be further triggered. I n im plementations, If a determination of the first judgment sub-unit 604 is negative, the rate distortion cost calculation sub-unit 606 may be triggered to perform rate distortion cost calculations for all the obtained optimal reference frames or all candidate reference frames individually, and determine a reference frame having the minimum rate distortion cost as the optimal reference frame of the current prediction unit.
- the first acquisition unit 602 may obtain optimal reference frames of left adjacent and upper adjacent prediction units of the current prediction unit. Alternatively, the first acquisition unit 602 may obtain optimal reference frames of left adjacent, upper adjacent, and upper-left adjacent prediction units of the current prediction unit. Alternatively, the first acquisition unit 602 may obtain optimal reference frames of left adjacent, upper adjacent, and upper-right adjacent prediction units of the current prediction unit. Alternatively, the first acquisition unit 602 may obtain optimal reference frames of left adjacent, upper adjacent, upper-left adjacent, and upper-right adjacent prediction units of the current prediction unit.
- the apparatus 600 may include one or more computing devices. In implementations, the apparatus 600 may further include, but is not limited to, one or more processors 607, an input/output (I/O) interface 608, a network interface 609 and memory 610.
- processors 607 an input/output (I/O) interface 608
- network interface 609 a network interface 609 and memory 610.
- the memory 610 may include a form of computer-readable media, e.g., a non-permanent storage device, random-access memory (RAM) and/or a nonvolatile internal storage, such as read-only memory (ROM) or flash RAM.
- RAM random-access memory
- ROM read-only memory
- flash RAM flash random-access memory
- the computer-readable media may include a permanent or non-permanent type, a removable or non-removable media, which may achieve storage of information using any method or technology.
- the information may include a computer-readable instruction, a data structure, a program module or other data.
- Examples of computer storage media include, but not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random-access memory (RAM), read-only memory (ROM), electronically erasable programmable read-only memory (EEPROM), quick flash memory or other internal storage technology, compact disk read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission media, which may be used to store information that may be accessed by a computing device.
- the computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
- the memory 610 may include program units 611 and program data 612.
- the program units 611 may include one or more units and/or sub-units as described in the foregoing description.
- FIG. 7 shows a structural diagram of a second example apparatus 700 for selecting an optimal reference frame in HEVC coding according to the present disclosure.
- the apparatus 700 for selecting an optimal reference frame in H EVC coding may include one or more processors 701, an input/output (I/O) interface 702, a network interface 703 and memory 704.
- the memory 704 may include a form of computer-reada ble media, e.g., a non-permanent storage device, random-access memory (RAM) and/or a nonvolatile internal storage, such as read-only memory (ROM) or flash RAM.
- RAM random-access memory
- ROM read-only memory
- flash RAM flash random-access memory
- the memory 704 may include program units 705 and program data 706.
- the program units 705 may include a first control unit 707 to control a first acquisition unit 708 and a first determination unit 709 to perform corresponding processing for prediction unit(s) that is/are in a minimum layer depth.
- the first acquisition unit 708 may obtain optimal reference frames of prediction units that are spatially adjacent to a current prediction unit.
- the first determination unit 709 may determine an optimal reference frame of the current prediction unit based on a correlation between optimal reference frames of spatially adjacent prediction units in a same layer depth.
- a second control unit 710 may control a second acquisition unit 711 and a second determination unit 712 to perform corresponding processing for prediction unit(s) that is/are not in the minimum layer depth.
- the second acquisition unit 711 may obtain optimal reference frames of respective prediction units having a spatial location the same as and adjacent to that of the current prediction unit in an upper layer depth, or obtain the optimal reference frames of the respective prediction units having a spatial location the same as and/or adjacent to that of the current prediction unit in the upper layer depth and obtain the optimal reference frames of the prediction units spatially adjacent to the current prediction unit.
- the second determination unit 712 may determine the optimal reference frame of the current prediction unit based on respective correlations between optimal reference frames of prediction units having the same and/or adjacent spatial location in different layer depths.
- the second determination unit 712 may determine the optimal reference frame of the current prediction unit from the obtained optimal reference frames according to a strategy that the optimal reference frames of the prediction units having the same and/or adjacent spatial location in different layer depths are the same.
- the second determination unit 712 may include a second judgment sub-unit 713 that determines whether all the obtained optimal reference frames are equal to each other, or determines whether all the obtained optimal reference frames are equal to each other and determines whether a motion of an obtained predication unit having the same spatial location as the current prediction unit in the upper layer depth is not severe. If affirmative, the second judgment sub-unit 713 may trigger a second determination sub-unit 714. The second determination sub-unit 714 may determine equal optimal reference frames as the optimal reference frame of the current prediction unit.
- a rate distortion cost calculation sub-unit 715 may also be triggered, which individually performs a rate distortion cost calculation for all the obtained optimal reference frames or all candidate reference frames, and determines a reference frame having a minimum rate distortion cost to be the optimal reference frame of the current prediction unit.
- FIG. 8 is a structural diagram of a coder 800 according to the present disclosure.
- the coder 800 may include a built-in apparatus 801 for selecting an optimal reference frame in HEVC coding.
- a structure of the apparatus 801 for selecting an optimal reference frame in H EVC coding can be found by referring to the structure and description in FIG. 6 and FIG. 7, and thus is not repeatedly described herein.
- an optimal reference frame of a current prediction unit may be determined directly based on optimal reference frames of prediction units adjacent thereto when the prediction unit(s) of the minimum layer depth is processed. In this way, the rate distortion cost calculation is not needed, thereby simplifying a hand ling process and saving a processing time.
- the present disclosure may further determine a corresponding optimal reference frame for a prediction unit that is not in a minimum layer depth based on respective correlation(s) between optimal reference frames of prediction units having the same or adjacent spatial location in different layer depths, which can further reduce the amount of calculation and save the processing time, so as to improve the coding efficiency.
- each embodiment in the present disclosure is described in a progressive manner. Each embodiment emphasizes on a portion that may be different from those of other embodiments. A portion that is similar or the same between embodiments can be found by making reference to each other. Due to basic similarities to the method embodiments, the description of the apparatus embodiments is relatively simple, and a related portion thereof can be found by referring to the description of the method embodiments.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Discrete Mathematics (AREA)
- General Physics & Mathematics (AREA)
Abstract
A method, an apparatus and a coder for selecting an optimal reference frame in HEVC coding are disclosed. The method includes obtaining optimal reference frames of prediction units spatially adjacent to a current prediction unit, and determining a n optimal reference frame of the current prediction unit based on a correlation between optimal reference frames of the spatially adjacent prediction units in a same layer depth for prediction unit(s) of a minimum layer depth. In this way, an ergodic rate distortion cost calculation is not needed to be performed at least for the prediction unit(s) of the minimum layer depth, and the corresponding optimal reference frame is directly determined using the correlation, thus reducing the amount of calculations and enhancing the coding efficiency.
Description
METHOD, APPARATUS AND CODER FOR SELECTING OPTIMAL REFERENCE FRAME IN HEVC CODING
Cross Reference to Related Patent Application
This application claims foreign priority to Chinese Patent Application No.
201510122717.8 filed on March 19, 2015, entitled "Method, Apparatus and Coder for Selecting an Optimal Reference Frame in H EVC Coding", which is hereby incorporated by reference in its entirety. Technical Field
The present disclosure relates to the field of video image processing, and in particular, to methods, apparatuses, and coders for selecting an optimal reference frame in H EVC (High Efficiency Video Coding) coding. Background
HEVC is a new generation of video coding standard, which adopts a flexible block structure division technology for encoding coded images. I n H EVC, a block structure includes a coding unit (CU), a prediction unit (PU) and a transform unit (TU). The H EVC conducts coding using the CU as a basic coding unit during a coding process. An H EVC coder firstly divides a video image into a plurality of non-overlapping largest coding units (LCUs), and then divides the LCUs into smaller CUs according to a tree structure, with sizes of CUs ranging from the LCUs to smallest coding units (SCUs). Each CU includes one or more PUs, and each CU needs to perform an inter-frame prediction or an intra-frame prediction using a PU as a unit. A problem of selecting an optimal reference frame exists in a process of inter-frame prediction.
A method for selecting an optimal reference frame in a conventional process of PU inter-frame prediction includes predicting all candidate reference frames one by one for a current PU, individually calculating a rate distortion cost corresponding to each candidate reference frame, and selecting a candidate reference frame having the minimum rate
distortion cost as the optimal reference frame for the current PL). Such an ergodic selection method has a very large amount of computation. In addition, because one LCU may be divided into a plurality of CUs and one CU may have multiple inter-frame prediction division modes, each CU of an inter-frame prediction division mode includes one or more PUs. As each PL) corresponding to each inter-frame prediction division mode of each CU needs to traverse all candidate reference frames in order to select a corresponding optimal reference frame, this incurs a large amount of computation and a long time on a coding process, thereby seriously affecting the coding efficiency. Summary
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify all key features or essential features of the claimed subject matter, nor is it intended to be used alone as an aid in determining the scope of the claimed subject matter. The term "techniques," for instance, may refer to device(s), system(s), method(s) and/or computer-readable instructions as permitted by the context above and throughout the present disclosure.
A technical problem to be solved by the present disclosure is to provide a method for selecting an optimal reference frame in HEVC coding, which is used to solve a technical problem of a large computation cost and a long computation time in existing technologies that affect a coding efficiency due to a need of individual testing of candidate reference frames in a ergodic manner.
The present disclosure further provides an apparatus and a coder for selecting an optimal reference frame in HEVC coding, which are used to ensure implementations and applications of the foregoing method in practice.
According to an aspect of the present disclosure, a method for selecting an optimal reference frame in H EVC coding is provided. In implementations, the method may include at least obtaini ng optimal reference frames of prediction units that are spatially adjacent to a current prediction unit, a nd determining an optimal reference frame of the current prediction unit based on a correlation between optimal reference frames of prediction units
that are spatially adjacent in a same layer depth for prediction unit(s) that is/are in a minimum layer depth.
In implementations, for prediction unit(s) that is/are not in the minimum layer depth, the method may include obtaining optimal reference frames of prediction units that is spatially adjacent to a current prediction unit, a nd determining an optimal reference frame of the current prediction unit based on a correlation between optimal reference frames of prediction units that are spatially adjacent in a same layer depth.
In implementations, determining the optimal reference frame of the current prediction unit based on the correlation between the optimal reference frames of the prediction units that are spatially adjacent in the same layer depth may include determining the optimal reference frame corresponding to the current prediction unit from the optimal reference frames that are obtained according to a strategy that the optimal reference frames of the prediction units that are spatially adjacent in the same layer depth are the same.
In implementations, determining the optimal reference frame of the current prediction unit based on the correlation between the optimal reference frames of the prediction units that are spatially adjacent in the same layer depth includes determining whether the optimal reference frames that are obtained are equal to each other, and determining equal optimal reference frames to be the optimal reference frame of the current prediction unit if affirmative.
In implementations, for the prediction unit(s) that is/are not in the minimum layer depth, the method may include obtaining optimal reference frames of prediction units that are located in an upper layer depth and have a spatial location that is equal and adjacent to the current prediction unit; or obtaining optimal reference frames of prediction units that are located in an upper layer depth and have a spatial location that is equal and/or adjacent to the current prediction unit, and obtaining the optimal reference frames of the prediction units that are spatially adjacent to the current prediction unit; and determining the optimal reference frame of the current prediction unit based on correlations between optimal reference frames of prediction units which spatial locations are equal and/or adjacent to each other in different layer depths.
In implementations, determining the optimal reference frame of the current prediction unit based on the correlations between the optimal reference frames of the prediction units which spatial locations are equal and/or adjacent to each other in the different layer depths may include determining the optimal reference frame of the current prediction unit from the optimal reference frames that are obtained according to a strategy that the optimal reference frames of the prediction units which spatial locations are equal and/or adjacent to each other in the different layer depths are the same.
In implementations, determining the optimal reference frame of the current prediction unit according to the correlations between the optimal reference frames of the prediction units which spatial locations are equal and/or adjacent to each other in the different layer depths may include determining whether all the obtained optimal reference frames are equal to each other; or determining whether all the obtained optimal reference frames are equal to each other and determining whether motions of the obtained predication units having the spatial location the same as the current prediction unit in the upper layer depth are not severe; and determining equal optimal reference frames to be the optimal reference frame of the current prediction unit if affirmative.
In implementations, obtaining the optimal reference frames of the prediction units that are spatially adjacent to the current prediction unit may include obtaining optimal reference frames of left and upper adjacent prediction units of the current prediction unit; or obtai ni ng optimal reference frames of left adjacent, upper adjacent and upper-left adjacent prediction units of the current prediction unit; or obtaining optimal reference frames of left adjacent, upper adjacent and upper-right adjacent prediction units of the current prediction unit; or obtaining optimal reference frames of left adjacent, upper adjacent, upper-left adjacent and upper-right adjacent prediction units of the current prediction unit.
According to another aspect of the present disclosure, an apparatus for selecting an optimal reference frame in HEVC coding is provided. In implementations, the apparatus may include a first control unit to control a first acquisition unit and a first determination unit to at least perform corresponding processing for prediction unit(s) of a minimum layer depth.
The first acquisition unit is configured to obtain optimal reference frames of prediction units that are spatially adjacent to a current prediction unit.
The first determination unit is configured to determine an optimal reference frame of the current prediction unit based on a correlation between optimal reference frames of prediction units that are spatially adjacent in a same layer depth.
In implementations, the first control unit may be configured to control the first acquisition unit and the first determination unit to perform corresponding processing for prediction unit(s) of each layer depth.
In implementations, the first determination unit may be configured to determine the optimal reference frame corresponding to the current prediction unit from optimal reference frames that are obtained according to a strategy that the optimal reference frames of the prediction units that are spatially adjacent in the same layer depth are the same.
In implementations, the first determination unit may include a first judgment sub-unit to determine whether all the optimal reference frames that are obtained are equal to each other and trigger a first determination sub-unit if affirmative; and the first determination sub-unit to determine the optimal reference frames that are equal to each other as the optimal reference frame of the current prediction unit.
In implementations, the first control unit may be configured to control the first acquisition unit and the first determination unit to perform corresponding processing for the prediction unit(s) of the minimum layer depth. The apparatus may further include a second control unit to control a second acquisition unit a nd a second determination unit to perform corresponding processing for prediction unit(s) that is/are not of the minimum layer depth.
In implementations, the second acquisition unit may obtain optimal reference frames of prediction units that are located in an upper layer depth and have a spatial location that is equal and adjacent to the current prediction unit; or obtain optimal reference frames of prediction units that are located in an upper layer depth and have a spatial location that is equal and/or adjacent to the current prediction unit, and obtain the optimal reference frames of the prediction units that are spatially adjacent to the current prediction unit.
The second determination unit may determine the optimal reference frame of the current prediction unit based on correlations between optimal reference frames of prediction units which spatial locations are equal and/or adjacent to each other in different layer depths.
In implementations, the second determination unit may determine the optimal reference frame of the current prediction unit from the optimal reference frames that are obtained according to a strategy that the optimal reference frames of the prediction units which spatial locations are equal and/or adjacent to each other in the different layer depths are the same.
In implementations, the second determination unit may include a second judgment sub-unit and a second determination sub-unit. The second judgment sub-unit may determine whether all the obtained optimal reference frames are equal to each other, or determine whether all the obtained optimal reference frames are equal to each other and whether motions of the obtained predication units having the spatial location the same as the current prediction unit in the upper layer depth are not severe. The second judgment sub-unit may trigger a second determination sub-unit if affirmative. The second determination sub-unit may determine the optimal reference frames that are equal to each other as the optimal reference frame of the current prediction unit.
In implementations, the first acquisition unit may obtain optimal reference frames of left and upper adjacent prediction units of the current prediction unit.
Alternatively, the first acquisition unit may obtain optimal reference frames of left adjacent, upper adjacent and upper-left adjacent prediction units of the current prediction unit.
Alternatively, the first acquisition unit may obtain optimal reference frames of left adjacent, upper adjacent and upper-right adjacent prediction units of the current prediction unit.
Alternatively, the first acquisition unit may obtain optimal reference frames of left adjacent, upper adjacent, upper-left adjacent and upper-right adjacent prediction units of the current prediction unit.
According to another aspect of the present disclosure, the present disclosure provides a coder. I n implementations, the coder may include the foregoing apparatus of selecting an optimal reference frame in HEVC coding.
As com pared with existing technologies, the present disclosure has the following beneficial effects.
At least for prediction unit(s) in a layer corresponding to the minimum coding layer depth, the present disclosure is able to directly determine an optimal reference frame of a prediction unit in at least one layer based on a correlation between optimal reference frames of prediction units that are spatially adjacent in a same layer depth. Therefore, at least for the prediction unit(s) in the layer corresponding to the minimum layer depth, performing an ergodic rate distortion cost calculation for all corresponding candidate reference frames thereof is not needed, which can save a corresponding computation cost of at least half of the prediction units, and improve the coding efficiency. Moreover, as the requirements for the quality of coded images become higher, the number of candidate reference frames increases. A larger amount of computation can be saved using the present disclosure.
Brief Description of the Drawings
In order to describe the technical solutions of exemplary embodiments of the present disclosure more clearly, accompanying drawings used for describing the embodiments are briefly described herein. Apparently, the accompanying drawings merely represent a few embodiments of the present disclosure. One of ordinary skill in the art may still derive other drawings from these accompanying drawings without contributing a ny creative effort.
FIG. 1 is a schematic diagram illustrating a CU recursive division mode and a number of inter-frame prediction division modes and corresponding PUs thereof in H EVC coding in existing technologies.
FIG. 2 is a flowchart illustrating a first method for selecting an optimal reference frame in H EVC coding according to the present disclosure.
FIG. 3 is a schematic diagram illustrating a spatial adjacency relationship between PUs according to the present disclosure.
FIG. 4 is a flowchart illustrating a second method for selecting an optimal reference frame in H EVC coding according to the present disclosure.
FIG. 5 is a schematic diagram illustrating a n adjacent layer relationship of a layer depth in which a predication unit is located according to the present disclosure.
FIG. 6 is a structural diagram illustrating a first apparatus for selecting an optimal reference frame in H EVC coding according to the present disclosure.
FIG. 7 is a structural diagram illustrating a second apparatus for selecting an optimal reference frame in H EVC coding according to the present disclosure.
FIG. 8 is a structural diagram illustrating a coder according to the present disclosure.
Detailed Description
The technical solutions of the embodiments of the present disclosure are described clearly and completely herein with reference to the accompanying drawings of the embodiments of the present disclosure. Apparently, the described embodiments merely represent a part of, and not all of, the embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments derived by one of ordinary skill in the art without making any creative effort shall fall within the scope of protection of the present disclosure.
The present disclosure is applicable in a variety of universal or dedicated computing system environments or configurations. Examples include personal computers, server computers, handheld devices or portable devices, tablet devices, multiprocessor systems, and distributed computing environments that include any of the above systems or devices, etc.
The present disclosure may be described in a general context of computer executable instructions executed by a computing device, such as program module(s). In general, the program module(s) may include routines, procedures, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. The present disclosure can also be implemented in distributed computing environments, and a task may be performed by a remote processing device connected through a communication network in these distributed computing environments. In a distributed computing environment, the program module(s) may be located in local and remote computer storage media which include storage device(s).
In order to facilitate explanation and illustration of the technical solutions of the present disclosure, some basic technical knowledge of the H EVC coding is first briefly described herein.
Under normal circumstances, a video image is first divided into multiple non-overlapping largest coding units (LCUs) in a H EVC coding process. The LCUs are then divided into smaller CUs according to a tree structure with sizes of the CUs ranging from the LCUs to the smallest coding units (SCUs). Each coding unit has a plurality of inter-frame prediction division modes, and each inter-frame prediction division mode consists of one or more prediction units. Each prediction unit corresponds to a plurality of candidate reference frames. By traversing the plurality of candidate reference frames corresponding to each prediction unit, each inter-frame prediction division mode is traversed. An optimal reference frame corresponding to each prediction unit and an optimal inter-frame prediction division mode are determined according to a principle of a minimum rate distortion cost, thus achieving an optimal prediction. A residual signal is obtained from a difference between a predicted signal and an original signal. The residual signal is transformed, quantized, entropy coded, and added with other prediction information a nd additional code flow information to form a final coding stream. A most important section in a process of determining an optimal inter-frame prediction division mode corresponding to a CU is to determine an optimal reference frame corresponding to each PU of the CU in each type of inter-frame prediction division mode.
FIG. 1, which shows a schematic diagram of a CU recursive division mode, inter-frame prediction division modes and corresponding PUs in a HEVC coding, is used as a n exa m ple for explaining a nd il l ustrating a relationshi p among a CU a nd a n inter-fra me prediction division mode thereof a nd corresponding PU(s).
In FIG. 1, the largest coding unit LCU is 64 x 64, and the smallest coding unit SCU is 8 x 8.
First, a single LCU of 64 x 64 may be divided into four CUs of 32 x 32. Each CU of 32 x 32 may be further divided into four CUs of 16 x 16, and each CU of 16 x 16 may be further divided into four SCUs of 8 x 8. I n an implementation process, a size of a CU is expressed as a power of two, i.e., a value of N in the figure, or may be described using a layer depth, Depth, with a
layer depth of the largest coding unit LCU is zero, and a layer depth is increased by one after each division on such basis.
Respective inter-frame prediction division modes for CUs corresponding to each layer depth are different, as shown in the rightmost block of FIG. 1.
When a layer depth is less than 3 (0, 1, 2), each CU has seven inter-frame prediction division modes: inter 2N x 2N, inter 2N x N, inter N x 2N, inter 2N x nU, inter 2N x nD, inter nL x 2N, and inter nR x 2N. The inter 2N x 2N contains one PL), and each of the remaining six division modes contains two PUs. Accordingly, a CU of a depth of less than 3 has a total of 13 PUs.
When a layer depth is equal to 3, each CU has three inter-frame prediction division modes: inter 2N x 2N, inter 2N x N, and inter N x 2N. The inter 2N x 2N contains one PU, and each of the remaining two division modes contains two PUs. Accordingly, a CU of a depth of 3 has a total of 5 PUs.
It should be noted that some CUs may satisfy coding requirements only after being divided once in practical application scenarios. Therefore, a layer depth thereof is only the depth of a minimum layer. Some CUs may need to be divided for two or more times according to the coding requirements. For each CU, an optimal reference frame of each PU in each layer is determined in an ascending order of layer depths. In other words, the optimal reference frame corresponding to each PU in each layer depth is determined in an order of a layer depth being "0", a layer depth being "1", a layer depth being "2", and higher layer depth(s).
The solution of the existing technologies needs to calculate a rate distortion cost of each candidate reference frame for each prediction unit of each layer depth in an ergodic manner, and select a candidate reference frame having the minimum rate distortion cost as an optimal reference frame of a respective prediction unit. Such selection method has a high computation complexity and a large computation cost, which affect the coding efficiency.
From the perspective of layer depths, a technical solution of a first embodiment of the present disclosure no longer performs the ergodic rate distortion cost calculation of each candidate reference frame (typically, the num ber of candidate reference frames is greater than one) at least for prediction unit(s) in a layer corresponding to the minimum layer depth,
and directly determines an optimal reference frame of a prediction unit through a correlation between optimal reference frames of prediction units that are spatially adjacent in a same layer. This saves a computation cost of at least half of prediction units, and may improve the coding efficiency. Moreover, as requirements for the quality of coded images become higher, the number of candidate reference frames increases. A larger amount of computation can then be saved using the present disclosure.
First Embodiment
With reference to FIG. 2, FIG. 2 is a flowchart illustrating a first example method 200 for selecting an optimal reference frame in H EVC coding according to the present disclosure. In implementations, the method 200 may include the following.
S201 performs the following processing at least for prediction unit(s) of a minimum layer depth: selecting optimal reference frames of prediction units that are spatially adjacent to a current prediction unit.
In order to determine an optimal reference frame of a current PU, optimal reference frames of PUs that are spatially adjacent to the current PU need to be obtained first. The PUs that are spatially adjacent to the current PU include at least left adjacent and upper adjacent PUs of the current PU, and may also include a PU that is upper-left adjacent to the current PU and/or a PU that is upper-right adjacent to the current PU. As a process of determining an optimal reference frame of a PU is performed in an order from left to right and from up to down, and the optimal reference frames of these PUs that are adjacent to the current PU have already been determined. Therefore, the optimal reference frames of these adjacent PUs can be taken as s data basis for determining the optimal reference frame of the current PU.
FIG. 3 is used herein as an example to provide a more intuitive description 300 for PUs that are spatially adjacent to a current PU 301. FIG. 3 shows a schematic diagram illustrating a spatial adjacency relationship 300 between PUs. I n FIG. 3, al 302 represents a left adjacent prediction unit, b2 303 represents an upper-left adjacent prediction unit, bl 304 represents an upper adjacent prediction unit, and bO 305 represents an upper-right adjacent prediction unit.
In an exemplary implementation, S201 may be implemented in the following four approaches, which respectively include:
a first approach: obtaining optimal reference frames of the left adjacent and upper adjacent prediction units of the current prediction unit;
a second approach: obtaining optimal reference frames of the left adjacent, upper adjacent and upper-left adjacent prediction units of the current prediction unit;
a third approach: obtaining optimal reference frames of the left adjacent, upper adjacent and upper-right adjacent prediction units of the current prediction unit; and
a fourth approach: obtaining optimal reference frames of the left adjacent, upper adjacent, upper-left adjacent and upper-right adjacent prediction units of the current prediction unit.
S202 determines an optimal reference frame of the current prediction unit based on a correlation between optimal reference frames of prediction units that are spatially adjacent in a same layer depth.
I n a n exem pla ry im plementation, an optimal reference frame of each PU in each layer needs to be successively determined in an order of small to large layer depths. What is emphasized in this embodiment is that at least prediction unit(s) of the minimum layer depth is/are processed in accordance with the above method blocks. In other words, when a PU of the minimum layer depth is processed, processing is performed directly according to S201 and S202 to determine an optimal reference frame of the PU, the essence of which is to determine the optimal reference frame of the instant PU according to a correlation between optimal reference frames of adjacent PUs. When a PU that is not i n the mini mum layer depth is processed, processing may be conducted in accorda nce with the a bove method blocks or other methods.
In an exemplary implementation, S202 may include determining the optimal reference frame of the current prediction unit from the obtained optimal reference frames according to a strategy that the optimal reference frames of the prediction units that are spatially adjacent in the same layer depth are the same.
In an exemplary implementation, S202 may include determining whether all the obtained optimal reference frames are equal to each other; and determining the optimal
reference frames that are equal to each other as the optimal reference frame of the current prediction unit if affirmative.
If all the obtained optimal reference frames are not equal to each other, a reference frame having the minimum rate distortion cost may be determined as the optimal reference frame of the current PL) using a conventional approach of performing an ergodic rate distortion cost calculation based on all the acquired obtained reference frames or all candidate reference frames.
At least for prediction unit(s) of a minimum layer depth, the present disclosure is able to directly determine an optimal reference frame of a current PL) according to a correlation between optimal reference frames by using optimal reference frames of PUs that are adjacent to the current PL) as a data basis. As such, performing an ergodic rate distortion cost calculation for the current PL) is not needed, thus saving a large amount of data calculations.
For PU(s) that is/are not in the minimum layer depth, a number of ways may exist to determine an optimal reference frame thereof. For example, an optimal reference frame of a PL) may be determined using a traditional method of ergodic rate distortion cost calculation, or using the above methods for processing PU(s) that is/are in the minimum layer depth.
In order to further improve the coding efficiency, the present disclosure further provides another technical solution.
Second Embodiment
FIG. 4 shows a schematic flowchart of a second example method 400 for selecting an optimal reference frame in HEVC coding according to the present disclosure. In implementations, the method 400 may process a layer that is of a minimum depth and a layer that is not of the minimum depth in different manners, and may include the following method blocks.
The following processes are performed for prediction unit(s) of a minimum layer depth in accordance with S201 and S202.
S401 obtains optimal reference frames of prediction units that are spatially adjacent to a current prediction unit.
5402 determines an optimal reference frame of the current prediction unit based on a correlation between optimal reference frames of prediction units that are spatially adjacent in a same layer depth.
Details of processing of prediction unit(s) of the minimum layer depth can be known by referring to relevant description of the first flowchart, and are not repeated ly described herein.
The following processes are performed for prediction unit(s) that is/are not in the minimum layer depth in accordance with S403 and S404.
5403 obtains optimal reference frames of prediction units that are located in an upper layer depth and have a spatial location that is equal a nd adjacent to the current prediction unit; or obtains the optimal reference frames of the prediction units that are located in the upper layer depth and have the spatial location that is equal and/or adjacent to the current prediction unit, and obtains the optimal reference frames of the prediction units that are spatially adjacent to the current prediction unit.
S404 determines the optimal reference frame of the current prediction unit based on correlations between optimal reference frames of prediction units which spatial locations are equal and/or adjacent to each other in different layer depths.
For a PL) that is not in the minimum layer depth, an optimal reference frame of the instant PL) may be directly determined based on a correlation between the optimal reference frames of the instant PL) and PUs that are located in an upper layer depth and have a spatial location that is equal and adjacent to the insta nt PL). As such, performing an ergodic rate distortion cost calculation for the instant PL) is not needed.
For a PL) that is not in the minimum layer depth, an upper layer depth that is adjacent to the PL) or is separated from the PL) by a gap apparently exists. An upper layer depth may be an upper layer depth that is adjacent to a layer depth in which a current prediction unit is located or an upper layer depth that is separated from the layer depth in which the current prediction unit is located by a gap of two or more layers.
FIG. 5 shows a schematic diagram of an adjacent layer relationship 500 associated with a layer depth in which a predication unit is located. A current layer depth is d, and an upper layer depth may be d-1 layer depth or d-2 layer depth. Obtained optimal reference frames of
PUs that are located in an upper layer depth and have a spatial location that is the same as a current PL) are optimal reference frames of PUs that are marked in a gray color. Obtained optimal reference frames of PUs that are located in an upper layer depth and have a spatial location adjacent to a current PU are optimal reference frames of adjacent PUs of the PUs marked in the gray color. Since the optimal reference frames corresponding to all the PUs in the upper layer depth have been determined, the adjacent PUs in the upper layer depth may include PUs at any adjacent locations, such as upper-left adjacent, left adjacent, upper adjacent, and upper-right adjacent locations. I n an exemplary implementation, an optimal reference frame of a single adjacent PU may be obtained. Alternatively, optimal reference frames of multiple adjacent PUs may be obtained.
For example, if a layer depth in which a current PU is located is two, this indicates that corresponding optimal reference frames have been determined for all PUs in an adjacent upper layer depth of one and a gapped upper layer depth of zero. If a layer depth in which a current PU is located is one, this indicates that corresponding optimal reference frames have been determined for all PUs having an upper layer depth of zero. By taking advantage of correlations between optimal reference frames of PUs of an adjacent layer depth or a gapped layer depth, the present embodiment determines an optimal reference frame corresponding to a current PU, thus saving a large amount of calculations.
In an exemplary implementation, S404 determines the optimal reference frame of the current prediction unit from the obtained optimal reference frames according to a strategy that optimal reference frames of prediction units which spatial locations are equal and/or adjacent to each other in different layer depths are the same.
In an exemplary implementation, S404 may include determining whether all the obtained optimal reference frames are equal to each other; determining that equal optimal reference frames as the optimal reference frame of the current prediction unit if affirmative; or individually performing a rate distortion cost calculation for all the obtained optimal reference frames or all candidate reference frames, and determining a reference frame having the minimum rate distortion cost as the optimal reference frame of the current prediction unit if not.
In an exemplary implementation, S404 may also include determining whether all the obtained optimal reference frames are equal to each other, and determining whether a motion of an obtained prediction unit that is located in the upper layer depth and has the spatial location that is the same as the current prediction unit are not severe; determining that equal optimal reference frames as the optimal reference frame of the current prediction unit if affirmative; or individually performing a rate distortion cost calculation for all the obtained optimal reference frames or all candidate reference frames, and determining a reference frame having the minimum rate distortion cost to be the optimal reference frame of the current prediction unit.
An example approach of determining whether the motion of the obtained prediction unit that is located in the upper layer depth and has the spatial location that is the same as the current prediction unit is not severe may include calculating a motion severe degree of the prediction unit that is located in the upper layer depth and has the spatial location that is the same as the current prediction unit, the motion severe degree being equal to a modulus value of a motion vector; and determining whether the motion severe degree is less than a preset threshold, indicating that the motion is not severe if affirmative, and indicating that the motion is severe otherwise.
For example, if a motion vector of the prediction unit that has the same spatial location as the current prediction unit in the upper layer depth is mv, which includes mv_x in a direction X and mv_y in a direction Y, a motion severe degree mv_dist may be obtained by ca lculating according to a n equation mv_dist = a bs(mv_x) + a bs(mv_y), where a bs represents a n a bsolute val ue ca lcu lation. After ca lcu lation, mv_dist is com pa red with a preset threshold. If mv_dist is less tha n the preset th reshold, this indicates that a motion thereof is not severe. Otherwise, mv_dist indicates that the motion is severe.
As can be seen from the above process, a technical solution in this embodiment individually determines corresponding optimal reference frames for prediction unit(s) that is/are in a minimum layer depth and prediction unit(s) that is/are not in the minimum layer depth in accordance with different correlations, processing prediction units of different layer depths in accordance with different correlations. This type of correlation-based approach mainly employs optimal reference frames of adjacent prediction units in a same layer depth
as a data basis, or uses optimal reference frames of prediction units having a same or adjacent location in an adjacent layer depth or a gapped layer depth as a data basis, to directly determine an optimal reference frame of a current prediction unit rather than performing an ergodic rate distortion cost calculation, thus further improving the efficiency of determining an optimal reference frame and hence improving the coding efficiency.
The methods of the present disclosure are described in detail above. Correspondingly, the present disclosure provides an apparatus for selecting an optimal reference frame in HEVC coding.
Third Embodiment
FIG. 6 shows a structural diagram of a first example apparatus 600 for selecting an optimal reference frame in HEVC coding according to the present disclosure. As shown in FIG. 6, the apparatus 600 for selecting an optimal reference frame in HEVC coding may include a first control unit 601 that controls a first acquisition unit 602 and a first determination unit 603 to perform corresponding processing at least for prediction unit(s) that is/are in a minimum layer depth; the first acquisition unit 602 that obtains optimal reference frames of prediction units that are spatially adjacent to a current prediction unit; and the first determination unit 603 that determines an optimal reference frame of the current prediction unit based on a correlation between optimal reference frames of spatially adjacent prediction units in a same layer depth.
In an exemplary implementation, the first control unit 601 may control the first acquisition unit 602 and the first determination unit 603 to perform corresponding processing for the prediction unit(s) of the minimum layer depth.
In an exemplary implementation, the first control unit 601 may control the first acquisition unit 602 and the first determination unit 603 to perform corresponding processing for prediction unit(s) of each layer depth. In other words, the first control unit 301 may control the fi rst acquisition u nit 602 a nd the first determination u nit 603 to perform correspondi ng processing for prediction u nit(s) that is/a re in the minimu m layer depth a nd prediction u nit(s) that is/a re not in the minimum layer depth.
In an exemplary implementation, the first determination unit 603 may determine the optimal reference frame corresponding to the current prediction unit from the obtained
optimal reference frames according to a strategy that the optimal reference frames of the spatially adjacent prediction units in the same layer depth are the same.
In an exemplary implementation, the first determination unit 603 may include a first judgment sub-unit 604 to determine whether all the acquired optimal reference frames are equal to each other, and trigger a first determination sub-unit 605 if affirmative; and the first determination sub-unit 605 to determine optimal reference frames that are equal to each other as the optimal reference frame of the current prediction unit.
In addition, if a determination of the first judgment sub-unit 604 is negative, a rate distortion cost calculation sub-unit 606 may be further triggered. I n im plementations, If a determination of the first judgment sub-unit 604 is negative, the rate distortion cost calculation sub-unit 606 may be triggered to perform rate distortion cost calculations for all the obtained optimal reference frames or all candidate reference frames individually, and determine a reference frame having the minimum rate distortion cost as the optimal reference frame of the current prediction unit.
In an exemplary implementation, the first acquisition unit 602 may obtain optimal reference frames of left adjacent and upper adjacent prediction units of the current prediction unit. Alternatively, the first acquisition unit 602 may obtain optimal reference frames of left adjacent, upper adjacent, and upper-left adjacent prediction units of the current prediction unit. Alternatively, the first acquisition unit 602 may obtain optimal reference frames of left adjacent, upper adjacent, and upper-right adjacent prediction units of the current prediction unit. Alternatively, the first acquisition unit 602 may obtain optimal reference frames of left adjacent, upper adjacent, upper-left adjacent, and upper-right adjacent prediction units of the current prediction unit.
In implementations, the apparatus 600 may include one or more computing devices. In implementations, the apparatus 600 may further include, but is not limited to, one or more processors 607, an input/output (I/O) interface 608, a network interface 609 and memory 610.
The memory 610 may include a form of computer-readable media, e.g., a non-permanent storage device, random-access memory (RAM) and/or a nonvolatile internal
storage, such as read-only memory (ROM) or flash RAM. The memory 610 is an example of computer-readable media.
The computer-readable media may include a permanent or non-permanent type, a removable or non-removable media, which may achieve storage of information using any method or technology. The information may include a computer-readable instruction, a data structure, a program module or other data. Examples of computer storage media include, but not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random-access memory (RAM), read-only memory (ROM), electronically erasable programmable read-only memory (EEPROM), quick flash memory or other internal storage technology, compact disk read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission media, which may be used to store information that may be accessed by a computing device. As defined herein, the computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
In implementations, the memory 610 may include program units 611 and program data 612. In implementations, the program units 611 may include one or more units and/or sub-units as described in the foregoing description.
Fourth Embodiment
FIG. 7 shows a structural diagram of a second example apparatus 700 for selecting an optimal reference frame in HEVC coding according to the present disclosure. As shown in FIG. 7, the apparatus 700 for selecting an optimal reference frame in H EVC coding may include one or more processors 701, an input/output (I/O) interface 702, a network interface 703 and memory 704.
The memory 704 may include a form of computer-reada ble media, e.g., a non-permanent storage device, random-access memory (RAM) and/or a nonvolatile internal storage, such as read-only memory (ROM) or flash RAM. The memory 704 is an example of computer-readable media.
In implementations, the memory 704 may include program units 705 and program data 706. In implementations, the program units 705 may include a first control unit 707 to
control a first acquisition unit 708 and a first determination unit 709 to perform corresponding processing for prediction unit(s) that is/are in a minimum layer depth. The first acquisition unit 708 may obtain optimal reference frames of prediction units that are spatially adjacent to a current prediction unit. The first determination unit 709 may determine an optimal reference frame of the current prediction unit based on a correlation between optimal reference frames of spatially adjacent prediction units in a same layer depth. A second control unit 710 may control a second acquisition unit 711 and a second determination unit 712 to perform corresponding processing for prediction unit(s) that is/are not in the minimum layer depth. The second acquisition unit 711 may obtain optimal reference frames of respective prediction units having a spatial location the same as and adjacent to that of the current prediction unit in an upper layer depth, or obtain the optimal reference frames of the respective prediction units having a spatial location the same as and/or adjacent to that of the current prediction unit in the upper layer depth and obtain the optimal reference frames of the prediction units spatially adjacent to the current prediction unit. The second determination unit 712 may determine the optimal reference frame of the current prediction unit based on respective correlations between optimal reference frames of prediction units having the same and/or adjacent spatial location in different layer depths.
In an exemplary implementation, the second determination unit 712 may determine the optimal reference frame of the current prediction unit from the obtained optimal reference frames according to a strategy that the optimal reference frames of the prediction units having the same and/or adjacent spatial location in different layer depths are the same.
In an exemplary implementation, the second determination unit 712 may include a second judgment sub-unit 713 that determines whether all the obtained optimal reference frames are equal to each other, or determines whether all the obtained optimal reference frames are equal to each other and determines whether a motion of an obtained predication unit having the same spatial location as the current prediction unit in the upper layer depth is not severe. If affirmative, the second judgment sub-unit 713 may trigger a second determination sub-unit 714. The second determination sub-unit 714 may determine equal
optimal reference frames as the optimal reference frame of the current prediction unit.
If a determination of the second judgment su b-u nit 713 is negative, a rate distortion cost calculation sub-unit 715 may also be triggered, which individually performs a rate distortion cost calculation for all the obtained optimal reference frames or all candidate reference frames, and determines a reference frame having a minimum rate distortion cost to be the optimal reference frame of the current prediction unit.
I nteractions among the above units can be found by referring to the foregoing method flowcharts, and thus are not repeated ly described herein.
FIG. 8 is a structural diagram of a coder 800 according to the present disclosure. As shown in FIG. 8, the coder 800 may include a built-in apparatus 801 for selecting an optimal reference frame in HEVC coding. A structure of the apparatus 801 for selecting an optimal reference frame in H EVC coding can be found by referring to the structure and description in FIG. 6 and FIG. 7, and thus is not repeatedly described herein.
In short, since the present disclosure determines a corresponding optimal reference frame at least for prediction unit(s) of a minimum layer depth based on a correlation between optimal reference frames of adjacent prediction units in a same layer depth, an optimal reference frame of a current prediction unit may be determined directly based on optimal reference frames of prediction units adjacent thereto when the prediction unit(s) of the minimum layer depth is processed. In this way, the rate distortion cost calculation is not needed, thereby simplifying a hand ling process and saving a processing time. In addition, the present disclosure may further determine a corresponding optimal reference frame for a prediction unit that is not in a minimum layer depth based on respective correlation(s) between optimal reference frames of prediction units having the same or adjacent spatial location in different layer depths, which can further reduce the amount of calculation and save the processing time, so as to improve the coding efficiency.
It should be noted that each embodiment in the present disclosure is described in a progressive manner. Each embodiment emphasizes on a portion that may be different from those of other embodiments. A portion that is similar or the same between embodiments can be found by making reference to each other. Due to basic similarities to the method embodiments, the description of the apparatus embodiments is relatively simple, and a
related portion thereof can be found by referring to the description of the method embodiments.
Finally, it should be noted that relational terms described herein, such as "first" and "second", etc., are used solely to distinguish one entity or operation from another entity or operation without necessarily requiring or implying any existence of such relationship or ordering between these entities or operations in reality. Moreover, terms such as "comprise", "include" and any other variants thereof are intended to cover a non-exclusive inclusion. A process, method, product or device that includes a series of elements not only includes those elements, but also includes other elements that are not explicitly listed, or further includes elements that already existed in such process, method, product or device. In a condition without further limitations, an element defined by a phrase "include a/an ..." does not exclude any other similar elements from existing in the process, method, product or device.
The methods, apparatuses, and the coder for selecting a n optima l reference fra me in H EVC coding according to the present disclosure are described in details above. Exemplary embodiments are used in the present disclosure illustrating the principles and implementations of the present disclosure. The foregoing embodiments are merely used for facilitating the understanding of the methods of the present disclosure and corresponding core concepts. One of ordinary skill in the art may make changes to the exemplary implementations and scopes of application based on the concepts of the present disclosure. In view of the above, the content of the present disclosure should not be construed as a limitation to the present disclosure.
Claims
1. A method comprising:
obtaining optimal reference frames of a plurality of prediction units that are spatially adjacent to a first prediction unit that is located in a minimum layer depth; a nd
determining an optimal reference frame of the first prediction unit based on a correlation between optimal reference frames of spatially adjacent prediction units in a same layer depth.
2. The method of claim 1, comprising:
obtaining optimal reference frames of a second plurality of prediction units that are spatially adjacent to a second prediction unit that is not located in the minimum layer depth; a nd
determining an optimal reference frame of the second prediction unit based on the correlation between the optimal reference frames of the spatially adjacent prediction units in the same layer depth.
3. The method of claim 1, wherein determining the optimal reference frame of the first prediction unit comprises determining the optimal reference frame of the first prediction unit from the obtained optimal reference frames according to a strategy that the optimal reference frames of the spatially adjacent prediction units in the same layer depth are equal.
4. The method of claim 1, wherein determining the optimal reference frame of the first prediction unit comprises:
determining whether the obtained optimal reference frames are equal to each other; and
determining the optimal reference frames that are equal to each other as the optimal reference frame of the first prediction unit in response to determining that the obtained optimal reference frames are equal to each other.
5. The method of claim 1, further comprising:
obtaining an optimal reference frame of a prediction unit which spatial location is equal to the first prediction unit in an upper layer depth and respective one or more optimal reference frames of one or more prediction units which spatial location is adjacent to the first prediction unit in the upper layer depth; or
obtaining the optimal reference frames of the prediction unit which spatial location is equal to the first prediction unit in the upper layer depth and/or the respective one or more optimal reference frames of the one or more prediction units which spatial location is adjacent to the first prediction unit in the upper layer depth, and obtaining the optimal reference frames of the prediction units that are spatially adjacent to the first prediction unit; and
determining the optimal reference frame of the first prediction unit based further on correlations between optimal reference frames of prediction units which spatial location is equal to and/or adjacent to each other in different layer depths.
6. The method of claim 5, wherein determining the optimal reference frame of the first prediction unit based on the correlations between the optimal reference frames of the prediction units which spatial location is equal to and/or adjacent to each other in the different layer depths comprises determining the optimal reference frame of the first prediction unit from the obtained optimal reference frames according to a strategy that the optimal reference frames of the prediction units which spatial location is equal to and/or adjacent to each other in the different layer depths are equal to each other.
7. The method of claim 5, wherein determining the optimal reference frame of the first prediction unit based on the correlations between the optimal reference frames of the prediction units which spatial location is equal to and/or adjacent to each other in the different layer depths comprises:
determining whether the obtained optimal reference frames are equal to each other; or determining whether the obtained optimal reference frames are equal to each other, and
determining whether a motion of the predication unit which spatial location is equal to the first prediction unit in the upper layer depth is not severe; and
determining the obtained optimal reference frames as the optimal reference frame of the current prediction unit in response to determining that the obtained optimal reference frames are equal to each other.
8. The method of claim 1, wherein obtaining the optimal reference frames of the plurality of prediction units that are spatially adjacent to the first prediction unit comprises: obtaining an optimal reference frame of a prediction unit that is left adjacent to the first prediction unit and an optimal reference frame of a prediction unit that is upper adjacent to the first prediction unit;
obtaining the optimal reference frame of the prediction unit that is left adjacent to the first prediction unit, the optimal reference frame of the prediction unit that is upper adjacent to the first prediction unit and an optimal reference frame of a prediction unit that is upper-left adjacent to the first prediction unit;
obtaining the optimal reference frame of the prediction unit that is left adjacent to the first prediction unit, the optimal reference frame of the prediction unit that is upper adjacent to the first prediction unit and an optimal reference frame of a prediction unit that is upper-right adjacent to the first prediction unit; or
obtaining the optimal reference frame of the prediction unit that is left adjacent to the first prediction unit, the optimal reference frame of the prediction unit that is upper adjacent to the first prediction unit, the optimal reference frame of the prediction unit that is upper-left adjacent to the first prediction unit, and the optimal reference frame of the prediction unit that is upper-right adjacent to the first prediction unit.
9. An apparatus comprising:
one or more processors;
memory;
a first acquisition unit stored in the memory and executable by the one or more processors to obtain optimal reference frames of a plurality of prediction units that are spatially adjacent to a first prediction unit that is located in a minimum layer depth; and a first determination unit stored in the memory and executable by the one or more processors to determine an optimal reference frame of the first prediction unit based on a correlation between optimal reference frames of spatially adjacent prediction units in a same layer depth.
10. The apparatus of claim 9, wherein:
the first acquisition unit further obtains optimal reference frames of a second plurality of prediction units that are spatially adjacent to a second prediction unit that is not located in the minimum layer depth; and
the first determination unit further determines an optimal reference frame of the second prediction unit based on the correlation between the optimal reference frames of the spatially adjacent prediction units in the same layer depth.
11. The apparatus of claim 9, wherein the first determination unit determines the optimal reference frame of the first prediction unit from the obtained optimal reference frames according to a strategy that the optimal reference frames of the spatially adjacent prediction units in the same layer depth are equal.
12. The apparatus of claim 9, wherein the first determination unit comprises:
a first judgment sub-unit to determine whether the obtained optimal reference frames are equal to each other, and to trigger a first determination sub-unit in response to determining that the obtained optimal reference frames are equal to each other;
the first determination sub-unit to determine the optimal reference frames that are equal to each other as the optimal reference frame of the first prediction unit.
13. The apparatus of claim 9, further comprising:
a second acquisition unit stored in the memory and executable by the one or more processors to obtain an optimal reference frame of a prediction unit which spatial location is equal to the first prediction unit in an upper layer depth and respective one or more optimal reference frames of one or more prediction units which spatial location is adjacent to the first prediction unit in the upper layer depth; and
a second determination unit stored in the memory and executable by the one or more processors to determine the optimal reference frame of the first prediction unit based on correlations between optimal reference frames of prediction units which spatial location is equal to and/or adjacent to each other in different layer depths.
14. The apparatus of claim 13, wherein the second determination unit determines the optimal reference frame of the first prediction unit from the obtained optimal reference frames according to a strategy that the optimal reference frames of the prediction units which spatial location is equal to and/or adjacent to each other in the different layer depths are equal to each other.
15. The apparatus of claim 13, wherein the second determination unit comprises:
a second judgment sub-unit to:
determine whether the obtained optimal reference frames are equal to each other or determine whether the obtained optimal reference frames are equal to each other and determine whether a motion of the predication unit which spatial location is equal to the first prediction unit in the upper layer depth is not severe, and
trigger a second determination sub-unit in response to determining that the obtained optimal reference frames are equal to each other and/or determining that the motion of the predication unit which spatial location is equal to the first prediction unit in the upper layer depth is not severe; and
the second determination sub-unit to determine the optimal reference frames that are equal to each other as the optimal reference frame of the first prediction unit.
16. The apparatus of claim 9, wherein the first acquisition unit obtains: an optimal reference frame of a prediction unit that is left adjacent to the first prediction unit and an optimal reference frame of a prediction unit that is upper adjacent to the first prediction unit;
the optimal reference frame of the prediction unit that is left adjacent to the first prediction unit, the optimal reference frame of the prediction unit that is upper adjacent to the first prediction unit and an optimal reference frame of a prediction unit that is upper-left adjacent to the first prediction unit;
the optimal reference frame of the prediction unit that is left adjacent to the first prediction unit, the optimal reference frame of the prediction unit that is upper adjacent to the first prediction unit and an optimal reference frame of a prediction unit that is upper-right adjacent to the first prediction unit; or
the optimal reference frame of the prediction unit that is left adjacent to the first prediction unit, the optimal reference frame of the prediction unit that is upper adjacent to the first prediction unit, the optimal reference frame of the prediction unit that is upper-left adjacent to the first prediction unit, and the optimal reference frame of the prediction unit that is upper-right adjacent to the first prediction unit.
17. One or more computer-readable media storing executable instructions that, when executed by one or more processors, cause the one or more processors to perform acts comprising:
obtaining optimal reference frames of a plurality of prediction units that are spatially adjacent to a first prediction unit that is located in a minimum layer depth; a nd
determining an optimal reference frame of the first prediction unit based on a correlation between optimal reference frames of spatially adjacent prediction units in a same layer depth.
18. The one or more computer-readable media of claim 17, wherein determining the optimal reference frame of the first prediction unit comprises determining the optimal reference frame of the first prediction unit from the obtained optimal reference frames
according to a strategy that the optimal reference frames of the spatially adjacent prediction units in the same layer depth are equal.
19. The one or more computer-readable media of claim 17, wherein determining the optimal reference frame of the first prediction unit comprises:
determining whether the obtained optimal reference frames are equal to each other; and
determining the optimal reference frames that are equal to each other as the optimal reference frame of the first prediction unit in response to determining that the obtained optimal reference frames are equal to each other.
20. The one or more computer-readable media of claim 17, the acts further comprising: obtaining an optimal reference frame of a prediction unit which spatial location is equal to the first prediction unit in an upper layer depth and respective one or more optimal reference frames of one or more prediction units which spatial location is adjacent to the first prediction unit in the upper layer depth; or
obtaining the optimal reference frames of the prediction unit which spatial location is equal to the first prediction unit in the upper layer depth and/or the respective one or more optimal reference frames of the one or more prediction units which spatial location is adjacent to the first prediction unit in the upper layer depth, and obtaining the optimal reference frames of the prediction units that are spatially adjacent to the first prediction unit; and
determining the optimal reference frame of the first prediction unit based on correlations between optimal reference frames of prediction units which spatial location is equal to and/or adjacent to each other in different layer depths.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510122717.8A CN106034236B (en) | 2015-03-19 | 2015-03-19 | A kind of selection method, device and the encoder of HEVC coding optimal reference frame |
| CN201510122717.8 | 2015-03-19 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016149663A1 true WO2016149663A1 (en) | 2016-09-22 |
Family
ID=56919659
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/US2016/023250 Ceased WO2016149663A1 (en) | 2015-03-19 | 2016-03-18 | Method, apparatus and coder for selecting optimal reference frame in hevc coding |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US10158864B2 (en) |
| CN (1) | CN106034236B (en) |
| TW (1) | TWI685250B (en) |
| WO (1) | WO2016149663A1 (en) |
Families Citing this family (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108989799B (en) * | 2017-06-02 | 2022-03-08 | 阿里巴巴集团控股有限公司 | Method and device for selecting reference frame of coding unit and electronic equipment |
| CN109688407B (en) * | 2017-10-18 | 2020-11-06 | 北京金山云网络技术有限公司 | Reference block selection method, apparatus, electronic device and storage medium for coding unit |
| CN109905713B (en) * | 2017-12-07 | 2022-05-10 | 腾讯科技(深圳)有限公司 | Coding acceleration method for HEVC (high efficiency video coding), related device and equipment |
| CN109905702B (en) * | 2017-12-11 | 2021-12-21 | 腾讯科技(深圳)有限公司 | Method, device and storage medium for determining reference information in video coding |
| US10880554B2 (en) * | 2018-06-06 | 2020-12-29 | Alibaba Group Holding Limited | Bit stream management in video communication |
| CN110839155B (en) * | 2018-08-17 | 2021-12-03 | 北京金山云网络技术有限公司 | Method and device for motion estimation, electronic equipment and computer-readable storage medium |
| CN110958452B (en) * | 2018-09-27 | 2023-11-03 | 华为技术有限公司 | Video decoding method and video decoder |
| US11363306B2 (en) * | 2019-04-05 | 2022-06-14 | Comcast Cable Communications, Llc | Methods, systems, and apparatuses for processing video by adaptive rate distortion optimization |
| CN112584148B (en) * | 2020-12-08 | 2025-01-28 | 腾讯科技(深圳)有限公司 | Reference frame determination method, device and computer readable storage medium |
| CN112312131B (en) * | 2020-12-31 | 2021-04-06 | 腾讯科技(深圳)有限公司 | Inter-frame prediction method, device, equipment and computer readable storage medium |
| CN114422797B (en) * | 2021-12-28 | 2024-07-19 | 重庆邮电大学 | H.264 to H.265 transcoding method based on time-dependent rate distortion optimization |
| CN116567267A (en) * | 2022-01-28 | 2023-08-08 | 腾讯科技(深圳)有限公司 | A motion estimation method in encoding process and related products |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140056356A1 (en) * | 2012-08-21 | 2014-02-27 | Motorola Mobility Llc | Method and apparatus for efficient signaling of weighted prediction in advanced coding schemes |
| CN103813166A (en) * | 2014-01-28 | 2014-05-21 | 浙江大学 | Low-complexity method for selecting HEVC coding multiple reference frames |
| US20140140399A1 (en) * | 2012-11-21 | 2014-05-22 | Qualcomm Incorporated | Low-complexity support of multiple layers for hevc extensions in video coding |
| US20140198846A1 (en) * | 2013-01-16 | 2014-07-17 | Qualcomm Incorporated | Device and method for scalable coding of video information |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1225127C (en) | 2003-09-12 | 2005-10-26 | 中国科学院计算技术研究所 | A coding/decoding end bothway prediction method for video coding |
| KR20110050283A (en) | 2009-11-06 | 2011-05-13 | 삼성전자주식회사 | Fast Motion Estimation Using Multiple Reference Images |
| US20130101029A1 (en) | 2011-10-21 | 2013-04-25 | Texas Instruments Incorporated | Multimedia data encoding |
| WO2014072571A1 (en) * | 2012-10-01 | 2014-05-15 | Nokia Corporation | Method and apparatus for scalable video coding |
| US10602155B2 (en) | 2013-04-29 | 2020-03-24 | Intellectual Discovery Co., Ltd. | Intra prediction method and apparatus |
| US20150016516A1 (en) | 2013-07-15 | 2015-01-15 | Samsung Electronics Co., Ltd. | Method for intra prediction improvements for oblique modes in video coding |
| TWI536811B (en) | 2013-12-27 | 2016-06-01 | 財團法人工業技術研究院 | Method and system for image processing, decoding method, encoder and decoder |
-
2015
- 2015-03-19 CN CN201510122717.8A patent/CN106034236B/en active Active
- 2015-08-28 TW TW104128411A patent/TWI685250B/en active
-
2016
- 2016-03-18 WO PCT/US2016/023250 patent/WO2016149663A1/en not_active Ceased
- 2016-03-18 US US15/074,822 patent/US10158864B2/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140056356A1 (en) * | 2012-08-21 | 2014-02-27 | Motorola Mobility Llc | Method and apparatus for efficient signaling of weighted prediction in advanced coding schemes |
| US20140140399A1 (en) * | 2012-11-21 | 2014-05-22 | Qualcomm Incorporated | Low-complexity support of multiple layers for hevc extensions in video coding |
| US20140198846A1 (en) * | 2013-01-16 | 2014-07-17 | Qualcomm Incorporated | Device and method for scalable coding of video information |
| CN103813166A (en) * | 2014-01-28 | 2014-05-21 | 浙江大学 | Low-complexity method for selecting HEVC coding multiple reference frames |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201635797A (en) | 2016-10-01 |
| CN106034236A (en) | 2016-10-19 |
| CN106034236B (en) | 2019-07-19 |
| US20160277756A1 (en) | 2016-09-22 |
| US10158864B2 (en) | 2018-12-18 |
| TWI685250B (en) | 2020-02-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10158864B2 (en) | Method, apparatus and coder for selecting optimal reference frame in HEVC coding | |
| CN108882020B (en) | Video information processing method, device and system | |
| US20150016521A1 (en) | Video encoder for images | |
| JP6605581B2 (en) | Arrangement of adaptive search windows for video coding | |
| US10631006B2 (en) | Encoding apparatus and decoding apparatus for depth image, and encoding method and decoding method | |
| US20160309145A1 (en) | Hevc encoding device and method for determining intra-prediction mode using the same | |
| US20170302958A1 (en) | Method, device and electronic equipment for coding/decoding | |
| CN106534850B (en) | Image processing device, image interpolation method, and image coding method | |
| CN108989799B (en) | Method and device for selecting reference frame of coding unit and electronic equipment | |
| US9712828B2 (en) | Foreground motion detection in compressed video data | |
| CN112261413B (en) | Video encoding method, encoding device, electronic device, and storage medium | |
| AU2023425553A1 (en) | Neural video coding | |
| CN105898296A (en) | Video coding frame selection method and device | |
| Hu et al. | Optimized spatial recurrent network for intra prediction in video coding | |
| US20250280158A1 (en) | Video coding method and apparatus, electronic device, storage medium, and program product | |
| CN103491371B (en) | Encoding method, device and equipment based on hierarchy | |
| WO2017214920A1 (en) | Intra-frame prediction reference pixel point filtering control method and device, and coder | |
| US11395002B2 (en) | Prediction direction selection method and apparatus in image encoding, and storage medium | |
| CN110876082A (en) | Method and device for determining complexity of video frame | |
| EP3888366A1 (en) | Block-based picture fusion for contextual segmentation and processing | |
| US20200104623A1 (en) | Region of interest recognition | |
| CN118592029A (en) | Improved local illumination compensation for inter-frame prediction | |
| WO2018205781A1 (en) | Method for use in achieving motion estimation and electronic device | |
| KR20210133844A (en) | Systems and methods of motion estimation using monocular event-based sensor | |
| CN114040204B (en) | Processing methods, apparatus, equipment and storage media for encoding units |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16765861 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16765861 Country of ref document: EP Kind code of ref document: A1 |