US20180376148A1 - Combination of inter-prediction and intra-prediction in video coding - Google Patents

Combination of inter-prediction and intra-prediction in video coding Download PDF

Info

Publication number
US20180376148A1
US20180376148A1 US16/015,005 US201816015005A US2018376148A1 US 20180376148 A1 US20180376148 A1 US 20180376148A1 US 201816015005 A US201816015005 A US 201816015005A US 2018376148 A1 US2018376148 A1 US 2018376148A1
Authority
US
United States
Prior art keywords
prediction
block
intra
weight
inter
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.)
Abandoned
Application number
US16/015,005
Inventor
Kai Zhang
Jianle Chen
Li Zhang
Xiang Li
Marta Karczewicz
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qualcomm Inc
Original Assignee
Qualcomm Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qualcomm Inc filed Critical Qualcomm Inc
Priority to US16/015,005 priority Critical patent/US20180376148A1/en
Priority to PCT/US2018/039051 priority patent/WO2018237295A1/en
Priority to CN201880040753.1A priority patent/CN110771164B/en
Assigned to QUALCOMM INCORPORATED reassignment QUALCOMM INCORPORATED ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: KARCZEWICZ, MARTA, LI, XIANG, ZHANG, KAI, ZHANG, LI, CHEN, JIANLE
Publication of US20180376148A1 publication Critical patent/US20180376148A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/103Selection of coding mode or of prediction mode
    • H04N19/107Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • H04N19/139Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods 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 pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/463Embedding additional information in the video signal during the compression process by compressing encoding parameters before transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods 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 colour or a chrominance component

Definitions

  • This disclosure relates to video encoding and video decoding.
  • Digital video capabilities can be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video gaming devices, video game consoles, cellular or satellite radio telephones, so-called “smart phones,” video teleconferencing devices, video streaming devices, and the like.
  • PDAs personal digital assistants
  • laptop or desktop computers tablet computers
  • e-book readers digital cameras
  • digital recording devices digital media players
  • video gaming devices video game consoles
  • cellular or satellite radio telephones so-called “smart phones”
  • video teleconferencing devices video streaming devices, and the like.
  • Digital video devices implement video coding techniques, such as those described in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264/MPEG-4, Part 10, Advanced Video Coding (AVC), the High Efficiency Video Coding (HEVC) standard, ITU-T H.265/High Efficiency Video Coding (HEVC), and extensions of such standards.
  • the video devices may transmit, receive, encode, decode, and/or store digital video information more efficiently by implementing such video coding techniques.
  • Video coding techniques include spatial (intra-picture) prediction and/or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences.
  • a video slice e.g., a video picture or a portion of a video picture
  • video blocks may also be referred to as coding tree units (CTUs), coding units (CUs) and/or coding nodes.
  • Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction with respect to reference samples in neighboring blocks in the same picture.
  • Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction with respect to reference samples in neighboring blocks in the same picture or temporal prediction with respect to reference samples in other reference pictures.
  • Pictures may be referred to as frames, and reference pictures may be referred to as reference frames.
  • a video coder may be configured to perform inter-intra-prediction (e.g., prediction in which inter-prediction and intra-prediction are combined).
  • inter-intra-prediction the video coder generates a first prediction block based on intra-prediction techniques, and a second prediction block based on inter-prediction techniques.
  • the video coder generates a final prediction block based on a weighted combination of the first and second prediction blocks.
  • One or more examples described in this disclosure relate to techniques for how to determine the weighting applied to generate the final prediction block.
  • one or more examples described in this disclosure relate to techniques for constructing a merge candidate list that includes a final prediction block, also called an inter-intra candidate.
  • the final prediction block may be generated with a weighted combination of the first and second prediction blocks, but the example techniques do not require use of a weighted combination of the first and second prediction blocks for constructing the merge candidate list.
  • the disclosure describes a method of decoding, the method comprising determining an intra-prediction mode for a current block of a picture, determining a first weight and a second weight based on the determined intra-prediction mode, generating a first prediction block for the current block of the picture according to the intra-prediction mode, generating a second prediction block for the current block of the picture according to an inter-prediction mode, applying the first weight to the first prediction block to generate a first weighted block, applying the second weight to the second prediction block to generate a second weighted block, generating a final prediction block for the current block of the picture based on the first weighted block and second weighed block, and reconstructing the current block of the picture based on the final prediction block and a residual between the final prediction block and the current block of the picture.
  • the disclosure describes a method of encoding, the method comprising determining an intra-prediction mode for a current block of a picture, determining a first weight and a second weight based on the determined intra-prediction mode, generating a first prediction block for the current block of the picture according to the intra-prediction mode, generating a second prediction block for the current block of the picture according to an inter-prediction mode, applying the first weight to the first prediction block to generate a first weighted block, applying the second weight to the second prediction block to generate a second weighted block, generating a final prediction block for the current block of the picture based on the first weighted block and second weighed block, generating a residual based on the final prediction block and the current block of the picture, and signaling information indicative of the residual.
  • the disclosure describes a device for coding, the device comprising a memory configured to store sample values neighboring a current block of a picture and reference pictures for the current block of the picture, and a video coder comprising processing circuitry.
  • the video coder is configured to determine an intra-prediction mode for the current block of the picture, determine a first weight and a second weight based on the determined intra-prediction mode, generate a first prediction block for the current block of the picture according to the intra-prediction mode based on the sample values stored in the memory, generate a second prediction block for the current block of the picture according to an inter-prediction mode based on a reference picture of the reference pictures stored in the memory, apply the first weight to the first prediction block to generate a first weighted block, apply the second weight to the second prediction block to generate a second weighted block, generate a final prediction block for the current block of the picture based on the first weighted block and second weighed block, and at least one of reconstruct the current block of the picture based on the final prediction
  • the disclosure describes a computer-readable storage medium storing instructions thereon that when executed cause one or more processors to determine an intra-prediction mode for a current block of a picture, determine a first weight and a second weight based on the determined intra-prediction mode, generate a first prediction block for the current block of the picture according to the intra-prediction mode, generate a second prediction block for the current block of the picture according to an inter-prediction mode, apply the first weight to the first prediction block to generate a first weighted block, apply the second weight to the second prediction block to generate a second weighted block, generate a final prediction block for the current block of the picture based on the first weighted block and second weighed block, and at least one of reconstruct the current block of the picture based on the final prediction block and a residual between the final prediction block and the current block of the picture, or generate the residual, and signal information indicative of the residual.
  • the disclosure describes a method of decoding, the method comprising constructing a list of candidate motion vector predictors for a current block, wherein constructing the list of candidate motion vector predictors comprises including an inter-prediction candidate in the list of candidate motion vector predictors, wherein the inter-prediction candidate comprises motion information of a neighboring or collocated block of the current block, and including an inter-intra candidate in the list of candidate motion vector predictors, wherein the inter-intra candidate comprises information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode.
  • the method also includes determining that the inter-intra candidate is to be used, generating an inter-intra-prediction block based on the first prediction block and the second prediction block, and reconstructing the current block based on the inter-intra-prediction block.
  • the disclosure describes a method of encoding, the method comprising constructing a list of candidate motion vector predictors for a current block, wherein constructing the list of candidate motion vector predictors comprises including an inter-prediction candidate in the list of candidate motion vector predictors, wherein the inter-prediction candidate comprises motion information of a neighboring or collocated block of the current block, and including an inter-intra candidate in the list of candidate motion vector predictors, wherein the inter-intra candidate comprises information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode.
  • the method also includes determining that the inter-intra candidate is to be used, and signaling an index value into the list of candidate motion vector predictors that identifies the inter-intra candidate in the list of candidate motion vector predictors based on the determination.
  • the disclosure describes a device for coding, the device comprising a memory, and a video coder comprising processing circuitry.
  • the video coder is configured to construct a list of candidate motion vector predictors, for storage in the memory, for a current block, wherein to construct the list of candidate motion vector predictors, the video coder is configured to include an inter-prediction candidate in the list of candidate motion vector predictors, wherein the inter-prediction candidate comprises motion information of a neighboring or collocated block of the current block, and include an inter-intra candidate in the list of candidate motion vector predictors, wherein the inter-intra candidate comprises information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode.
  • the video coder is further configured to determine that the inter-intra candidate is to be used, generate an inter-intra-prediction block based on the first prediction block and the second prediction block, and at least one of reconstruct the current block based on the inter-intra-prediction block, or signal a residual between the current block and the inter-intra-prediction block and an index value into the list of candidate motion vector predictors that identifies the inter-intra candidate in the list of candidate motion vector predictors based on the determination that the inter-intra candidate is to be used.
  • the disclosure describes a computer-readable storage medium storing instructions thereon that when executed cause one or more processors to construct a list of candidate motion vector predictors, for storage in the memory, for a current block, wherein to construct the list of candidate motion vector predictors, the instructions cause the one or more processors to include an inter-prediction candidate in the list of candidate motion vector predictors, wherein the inter-prediction candidate comprises motion information of a neighboring or collocated block of the current block, and include an inter-intra candidate in the list of candidate motion vector predictors, wherein the inter-intra candidate comprises information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode.
  • the instructions also cause the one or more processors to determine that the inter-intra candidate is to be used, generate an inter-intra-prediction block based on the first prediction block and the second prediction block, and at least one of reconstruct the current block based on the inter-intra-prediction block, or signal a residual between the current block and the inter-intra-prediction block and an index value into the list of candidate motion vector predictors that identifies the inter-intra candidate in the list of candidate motion vector predictors based on the determination that the inter-intra candidate is to be used.
  • FIG. 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.
  • FIGS. 2A and 2B are conceptual diagrams illustrating an example quadtree binary tree (QTBT) structure, and a corresponding coding tree unit (CTU).
  • QTBT quadtree binary tree
  • CTU coding tree unit
  • FIG. 3A is a conceptual diagram illustrating an example of blocks of an intra-predicted slice.
  • FIG. 3B is a conceptual diagram illustrating an example of blocks of an inter-predicted slice.
  • FIG. 4 is a conceptual diagram illustrating an example of intra-prediction modes.
  • FIG. 5 is a conceptual diagram illustrating examples of reference frames for inter-prediction.
  • FIG. 6 is a conceptual diagram illustrating examples of neighboring blocks for a current block for coding an intra-prediction mode.
  • FIGS. 7A and 7B are conceptual diagrams illustrating examples of spatial neighboring motion vector candidates for merge and advanced motion vector prediction (AMVP) modes, respectively.
  • FIGS. 8A and 8B are conceptual diagrams illustrating examples of a temporal motion vector predictor (TMVP) candidate and motion vector scaling for TMVP, respectively.
  • TMVP temporal motion vector predictor
  • FIG. 9 is a conceptual diagram illustrating an example of neighboring blocks whose spatial information is used for constructing a merge candidate list.
  • FIG. 10 is a flowchart illustrating an example manner in which to construct a merge candidate list.
  • FIG. 11 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.
  • FIG. 12 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.
  • FIG. 13 is a flowchart illustrating an example manner in which to construct a merge candidate list that includes inter-intra-candidates.
  • FIG. 14 is a flowchart illustrating another example manner in which to construct a merge candidate list that includes inter-intra-candidates.
  • FIG. 15 is a flowchart illustrating an example method of decoding video data.
  • FIG. 16 is a flowchart illustrating an example method of encoding video data.
  • FIG. 17 is a flowchart illustrating an example method of decoding video data.
  • FIG. 18 is a flowchart illustrating an example method of encoding video data.
  • Video coding techniques include an inter-prediction mode and intra-prediction mode for encoding or decoding a current block.
  • a video coder e.g., video encoder or video decoder
  • generates a prediction block in a reference picture identified by motion information e.g., motion vector that points to the prediction block and index into reference picture list for the reference picture.
  • a video encoder determines a residual block between the prediction block and the current block, and signals information inactive of the residual block.
  • a video decoder receives information of the residual block, and reconstructs the current block by adding the residual block to the prediction block.
  • a video coder In an intra-prediction mode, a video coder generates a prediction block based on neighboring sample values. Similar to inter-prediction, a video encoder determines a residual block between the prediction block and the current block, and signals information inactive of the residual block. A video decoder receives information of the residual block, and reconstructs the current block by adding the residual block to the prediction block.
  • the inter-intra-prediction block is based on a weighted combination of the prediction block generated from an inter-prediction mode, and the prediction block generated from an intra-prediction mode.
  • a video coder generates a first prediction block for a block according to an intra-prediction mode, and generates a second prediction block for the block according to an inter-prediction mode.
  • the video coder applies weights to the first and second prediction block to generate respective first and second weighted prediction blocks.
  • the video coder adds the first and second weighted prediction blocks together, i.e., sums the first and second weighted prediction blocks, to generate a final prediction block, also called an inter-intra-prediction block.
  • a video encoder determines a residual between the final prediction block and the current block, and a video decoder adds the residual to the final prediction block to reconstruct the current block.
  • This disclosure describes example ways in which to determine the weights that are applied to the prediction blocks generated according to an intra-prediction mode and an inter-prediction mode.
  • there may be a plurality of intra-prediction modes (e.g., 67 different intra-prediction modes based on angles of the samples used to construct the intra-prediction block).
  • the video coder determines an intra-prediction mode from the plurality of intra-prediction modes.
  • the video coder may determine the weights based on the determined intra-prediction modes. For example, the video coder may determine a first weight (w1) based on the determined intra-prediction mode, and determine a second weight (w2) based on the determined intra-prediction mode.
  • the video coder may multiply the first prediction block by w1 to generate the first weighted prediction block, and multiply the second prediction block by w2 to generate the second weighted prediction block.
  • the video coder constructs a list of candidate reference blocks.
  • the video coder may include an inter-intra candidate in the list of candidate reference blocks.
  • the inter-intra candidate includes information to generate a first prediction block according to an intra-prediction mode and a second prediction block according to an inter-prediction mode. If the video decoder receives an index into the list of candidate reference blocks that identifies the inter-intra candidate, the video decoder generates the inter-intra-prediction block using one or more example techniques described in this disclosure. For instance, the video decoder may generate the inter-intra-prediction block using first and second weights as described above, or use other techniques that do not require weighting or that use weighting in a way other than example above.
  • the video decoder reconstructs the current block using the inter-intra-prediction block.
  • This disclosure describes example techniques for including the inter-intra-prediction block in the list of candidate reference blocks.
  • FIG. 1 is a block diagram illustrating an example video encoding and decoding system 100 that may perform the techniques of this disclosure.
  • the techniques of this disclosure are generally directed to coding (encoding and/or decoding) video data.
  • video data includes any data for processing a video.
  • video data may include raw, uncoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.
  • system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116 , in this example.
  • source device 102 provides the video data to destination device 116 via a computer-readable medium 110 .
  • Source device 102 and destination device 116 may comprise any of a wide range of devices, including desktop computers, notebook (i.e., laptop) computers, tablet computers, set-top boxes, telephone handsets such smartphones, televisions, cameras, display devices, digital media players, video gaming consoles, video streaming device, or the like.
  • source device 102 and destination device 116 may be equipped for wireless communication, and thus may be referred to as wireless communication devices.
  • source device 102 includes video source 104 , memory 106 , video encoder 200 , and output interface 108 .
  • Destination device 116 includes input interface 122 , video decoder 300 , memory 120 , and display device 118 .
  • video encoder 200 of source device 102 and video decoder 300 of destination device 116 may be configured to apply the techniques for applying inter-intra prediction.
  • video encoder 200 and video decoder 300 may each generate an inter-intra-prediction block based on an inter-reference block (e.g., a prediction block generated from an inter-prediction mode) and an intra-reference block (e.g., a prediction block generated from an intra-prediction mode).
  • This inter-inter-prediction block is the reference block with which video encoder 200 subtracts a current block to determine residual data that is signaled to video decoder 300 , and is the reference block to which video decoder 300 adds the residual data to reconstruct the current block.
  • video encoder 200 and video decoder 300 generate the inter-intra-prediction block based on a weighted combination of the two prediction blocks: a first prediction block generated from an inter-prediction mode, and a second prediction block generated from an intra-prediction mode.
  • the weights applied to the first and second prediction blocks, for the weighted combination may be based on the intra-prediction mode.
  • the intra-prediction mode may determine the weight that is applied to the first prediction block, even though the first prediction block is generated from an inter-prediction mode. However, in some examples, the weight applied to the prediction block generated from the inter-prediction mode need not be based on the intra-prediction mode.
  • video encoder 200 and video decoder 300 may construct example list of candidate motion vector predictions that identify whether the inter-intra-prediction block is used for prediction purposes.
  • This disclosure describes one or more example techniques for how video encoder 200 and video decoder 300 may include an inter-intra candidate in one or more of the example list of candidate motion vector predictors, and when the inter-intra candidate is selected, video encoder 200 and video decoder 300 may generate an inter-intra-prediction block as a prediction block for the current block.
  • Source device 102 represents an example of a video encoding device, while destination device 116 represents an example of a video decoding device.
  • a source device and a destination device may include other components or arrangements.
  • source device 102 may receive video data from an external video source, such as an external camera.
  • destination device 116 may interface with an external display device, rather than including an integrated display device.
  • System 100 as shown in FIG. 1 is merely one example.
  • any digital video encoding and/or decoding device may perform techniques for dynamic range adjustment.
  • Source device 102 and destination device 116 are merely examples of such coding devices in which source device 102 generates coded video data for transmission to destination device 116 .
  • This disclosure refers to a “coding” device as a device that performs coding (encoding and/or decoding) of data.
  • video encoder 200 and video decoder 300 represent examples of coding devices, in particular, a video encoder and a video decoder, respectively.
  • devices 102 , 116 may operate in a substantially symmetrical manner such that each of devices 102 , 116 include video encoding and decoding components.
  • system 100 may support one-way or two-way video transmission between video devices 102 , 116 , e.g., for video streaming, video playback, video broadcasting, or video telephony.
  • video source 104 represents a source of video data (i.e., raw, uncoded video data) and provides a sequential series of pictures (also referred to as “frames”) of the video data to video encoder 200 , which encodes data for the pictures.
  • Video source 104 of source device 102 may include a video capture device, such as a video camera, a video archive containing previously captured raw video, and/or a video feed interface to receive video from a video content provider.
  • video source 104 may generate computer graphics-based data as the source video, or a combination of live video, archived video, and computer-generated video.
  • video encoder 200 encodes the captured, pre-captured, or computer-generated video data.
  • Video encoder 200 may rearrange the pictures from the received order (sometimes referred to as “display order”) into a coding order for coding. Video encoder 200 may generate a bitstream including encoded video data. Source device 102 may then output the encoded video data via output interface 108 onto computer-readable medium 110 for reception and/or retrieval by, e.g., input interface 122 of destination device 116 .
  • Memory 106 of source device 102 and memory 120 of destination device 116 represent general purpose memories.
  • memories 106 , 120 may store raw video data, e.g., raw video from video source 104 and raw, decoded video data from video decoder 300 .
  • memories 106 , 120 may store software instructions executable by, e.g., video encoder 200 and video decoder 300 , respectively. Although shown separately from video encoder 200 and video decoder 300 in this example, it should be understood that video encoder 200 and video decoder 300 may also include internal memories for functionally similar or equivalent purposes.
  • memories 106 , 120 may store encoded video data, e.g., output from video encoder 200 and input to video decoder 300 .
  • portions of memories 106 , 120 may be allocated as one or more video buffers, e.g., to store raw, decoded, and/or encoded video data.
  • Computer-readable medium 110 may represent any type of medium or device capable of transporting the encoded video data from source device 102 to destination device 116 .
  • computer-readable medium 110 represents a communication medium to enable source device 102 to transmit encoded video data directly to destination device 116 in real-time, e.g., via a radio frequency network or computer-based network.
  • Output interface 108 may modulate a transmission signal including the encoded video data
  • input interface 122 may modulate the received transmission signal, according to a communication standard, such as a wireless communication protocol.
  • the communication medium may comprise any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines.
  • RF radio frequency
  • the communication medium may form part of a packet-based network, such as a local area network, a wide-area network, or a global network such as the Internet.
  • the communication medium may include routers, switches, base stations, or any other equipment that may be useful to facilitate communication from source device 102 to destination device 116 .
  • source device 102 may output encoded data from output interface 108 to storage device 112 .
  • destination device 116 may access encoded data from storage device 112 via input interface 122 .
  • Storage device 112 may include any of a variety of distributed or locally accessed data storage media such as a hard drive, Blu-ray discs, DVDs, CD-ROMs, flash memory, volatile or non-volatile memory, or any other suitable digital storage media for storing encoded video data.
  • source device 102 may output encoded video data to file server 114 or another intermediate storage device that may store the encoded video generated by source device 102 .
  • Destination device 116 may access stored video data from file server 114 via streaming or download.
  • File server 114 may be any type of server device capable of storing encoded video data and transmitting that encoded video data to the destination device 116 .
  • File server 114 may represent a web server (e.g., for a website), a File Transfer Protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device.
  • Destination device 116 may access encoded video data from file server 114 through any standard data connection, including an Internet connection.
  • This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, etc.), or a combination of both that is suitable for accessing encoded video data stored on file server 114 .
  • File server 114 and input interface 122 may be configured to operate according to a streaming transmission protocol, a download transmission protocol, or a combination thereof.
  • Output interface 108 and input interface 122 may represent wireless transmitters/receiver, modems, wired networking components (e.g., Ethernet cards), wireless communication components that operate according to any of a variety of IEEE 802.11 standards, or other physical components.
  • output interface 108 and input interface 122 may be configured to transfer data, such as encoded video data, according to a cellular communication standard, such as 4G, 4G-LTE (Long-Term Evolution), LTE Advanced, 5G, or the like.
  • output interface 108 comprises a wireless transmitter
  • output interface 108 and input interface 122 may be configured to transfer data, such as encoded video data, according to other wireless standards, such as an IEEE 802.11 specification, an IEEE 802.15 specification (e.g., ZigBeeTM), a BluetoothTM standard, or the like.
  • source device 102 and/or destination device 116 may include respective system-on-a-chip (SoC) devices.
  • SoC system-on-a-chip
  • source device 102 may include an SoC device to perform the functionality attributed to video encoder 200 and/or output interface 108
  • destination device 116 may include an SoC device to perform the functionality attributed to video decoder 300 and/or input interface 122 .
  • the techniques of this disclosure may be applied to video coding in support of any of a variety of multimedia applications, such as over-the-air television broadcasts, cable television transmissions, satellite television transmissions, Internet streaming video transmissions, such as dynamic adaptive streaming over HTTP (DASH), digital video that is encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications.
  • multimedia applications such as over-the-air television broadcasts, cable television transmissions, satellite television transmissions, Internet streaming video transmissions, such as dynamic adaptive streaming over HTTP (DASH), digital video that is encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications.
  • DASH dynamic adaptive streaming over HTTP
  • Input interface 122 of destination device 116 receives an encoded video bitstream from computer-readable medium 110 (e.g., storage device 112 , file server 114 , or the like).
  • the encoded video bitstream computer-readable medium 110 may include signaling information defined by video encoder 200 , which is also used by video decoder 300 , such as syntax elements having values that describe characteristics and/or processing of video blocks or other coded units (e.g., slices, pictures, groups of pictures, sequences, or the like).
  • Display device 118 displays decoded pictures of the decoded video data to a user.
  • Display device 118 may represent any of a variety of display devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
  • CTR cathode ray tube
  • LCD liquid crystal display
  • plasma display a plasma display
  • OLED organic light emitting diode
  • video encoder 200 and video decoder 300 may each be integrated with an audio encoder and/or audio decoder, and may include appropriate MUX-DEMUX units, or other hardware and/or software, to handle multiplexed streams including both audio and video in a common data stream. If applicable, MUX-DEMUX units may conform to the ITU H.223 multiplexer protocol, or other protocols such as the user datagram protocol (UDP).
  • MUX-DEMUX units may conform to the ITU H.223 multiplexer protocol, or other protocols such as the user datagram protocol (UDP).
  • Video encoder 200 and video decoder 300 each may be implemented as any of a variety of suitable encoder and/or decoder circuitry, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware or any combinations thereof.
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • FPGAs field programmable gate arrays
  • a device may store instructions for the software in a suitable, non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to perform the techniques of this disclosure.
  • Each of video encoder 200 and video decoder 300 may be included in one or more encoders or decoders, either of which may be integrated as part of a combined encoder/decoder (CODEC) in a respective device.
  • a device including video encoder 200 and/or video decoder 300 may comprise an integrated circuit, a microprocessor, and/or a wireless communication device, such as a cellular telephone.
  • Video encoder 200 and video decoder 300 may operate according to a video coding standard, such as ITU-T H.265, also referred to as High Efficiency Video Coding (HEVC) or extensions thereto, such as the multi-view and/or scalable video coding extensions.
  • video encoder 200 and video decoder 300 may operate according to other proprietary or industry standards, such as the Joint Exploration Test Model (JEM).
  • JEM Joint Exploration Test Model
  • video encoder 200 and video decoder 300 may perform block-based coding of pictures.
  • the term “block” generally refers to a structure including data to be processed (e.g., encoded, decoded, or otherwise used in the encoding and/or decoding process).
  • a block may include a two-dimensional matrix of samples of luminance and/or chrominance data.
  • video encoder 200 and video decoder 300 may code video data represented in a YUV (e.g., Y, Cb, Cr) format.
  • YUV e.g., Y, Cb, Cr
  • video encoder 200 and video decoder 300 may code luminance and chrominance components, where the chrominance components may include both red hue and blue hue chrominance components.
  • video encoder 200 converts received RGB formatted data to a YUV representation prior to encoding
  • video decoder 300 converts the YUV representation to the RGB format.
  • pre- and post-processing units may perform these conversions.
  • This disclosure may generally refer to coding (e.g., encoding and decoding) of pictures to include the process of encoding or decoding data of the picture.
  • this disclosure may refer to coding of blocks of a picture to include the process of encoding or decoding data for the blocks, e.g., prediction and/or residual coding.
  • An encoded video bitstream generally includes a series of values for syntax elements representative of coding decisions (e.g., coding modes) and partitioning of pictures into blocks.
  • references to coding a picture or a block should generally be understood as coding values for syntax elements forming the picture or block.
  • HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs).
  • a video coder (such as video encoder 200 ) partitions a coding tree unit (CTU) into CUs according to a quadtree structure. That is, the video coder partitions CTUs and CUs into four equal, non-overlapping squares, and each node of the quadtree has either zero or four child nodes. Nodes without child nodes may be referred to as “leaf nodes,” and CUs of such leaf nodes may include one or more PUs and/or one or more TUs.
  • the video coder may further partition PUs and TUs.
  • a residual quadtree represents partitioning of TUs.
  • PUs represent inter-prediction data
  • TUs represent residual data.
  • CUs that are intra-predicted include intra-prediction information, such as an intra-mode indication.
  • video encoder 200 and video decoder 300 may be configured to operate according to JEM.
  • a video coder such as video encoder 200 partitions a picture into a plurality of coding tree units (CTUs).
  • Video encoder 200 may partition a CTU according to a tree structure, such as a quadtree-binary tree (QTBT) structure.
  • the QTBT structure of JEM removes the concepts of multiple partition types, such as the separation between CUs, PUs, and TUs of HEVC.
  • a QTBT structure of JEM includes two levels: a first level partitioned according to quadtree partitioning, and a second level partitioned according to binary tree partitioning.
  • a root node of the QTBT structure corresponds to a CTU.
  • Leaf nodes of the binary trees correspond to coding units (CUs).
  • video encoder 200 and video decoder 300 may use a single QTBT structure to represent each of the luminance and chrominance components, while in other examples, video encoder 200 and video decoder 300 may use two or more QTBT structures, such as one QTBT structure for the luminance component and another QTBT structure for both chrominance components (or two QTBT structures for respective chrominance components).
  • Video encoder 200 and video decoder 300 may be configured to use quadtree partitioning per HEVC, QTBT partitioning according to JEM, or other partitioning structures.
  • quadtree partitioning per HEVC HEVC
  • QTBT partitioning according to JEM JEM
  • partitioning structures HEVC
  • JEM JEM
  • the description of the techniques of this disclosure is presented with respect to QTBT partitioning.
  • the techniques of this disclosure may also be applied to video coders configured to use quadtree partitioning, or other types of partitioning as well.
  • N ⁇ N and N by N interchangeably to refer to the sample dimensions of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, e.g., 16 ⁇ 16 samples or 16 by 16 samples.
  • an N ⁇ N CU generally has N samples in a vertical direction and N samples in a horizontal direction, where N represents a nonnegative integer value.
  • the samples in a CU may be arranged in rows and columns.
  • CUs need not necessarily have the same number of samples in the horizontal direction as in the vertical direction.
  • CUs may comprise N ⁇ M samples, where M is not necessarily equal to N.
  • Video encoder 200 encodes video data for CUs representing prediction and/or residual information, and other information.
  • the prediction information indicates how the CU is to be predicted in order to form a prediction block for the CU.
  • the residual information generally represents sample-by-sample differences between samples of the CU prior to encoding and the prediction block.
  • video encoder 200 may generally form a prediction block for the CU through inter-prediction or intra-prediction.
  • Inter-prediction generally refers to predicting the CU from data of a previously coded picture
  • intra-prediction generally refers to predicting the CU from previously coded data of the same picture.
  • video encoder 200 may generate the prediction block using one or more motion vectors.
  • Video encoder 200 may generally perform a motion search to identify a reference block that closely matches the CU, e.g., in terms of differences between the CU and the reference block.
  • Video encoder 200 may calculate a difference metric using a sum of absolute difference (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared differences (MSD), or other such difference calculations to determine whether a reference block closely matches the current CU.
  • video encoder 200 may predict the current CU using uni-directional prediction or bi-directional prediction.
  • JEM also provides an affine motion compensation mode, which may be considered an inter-prediction mode.
  • affine motion compensation mode video encoder 200 may determine two or more motion vectors that represent non-translational motion, such as zoom in or out, rotation, perspective motion, or other irregular motion types.
  • video encoder 200 may select an intra-prediction mode to generate the prediction block.
  • JEM provides sixty-seven intra-prediction modes, including various directional modes, as well as planar mode and DC mode.
  • video encoder 200 selects an intra-prediction mode that describes neighboring samples to a current block (e.g., a block of a CU) from which to predict samples of the current block. Such samples may generally be above, above and to the left, or to the left of the current block in the same picture as the current block, assuming video encoder 200 codes CTUs and CUs in raster scan order (left to right, top to bottom).
  • Video encoder 200 encodes data representing the prediction mode for a current block. For example, for inter-prediction modes, video encoder 200 may encode data representing which of the various available inter-prediction modes is used, as well as motion information for the corresponding mode. For uni-directional or bi-directional inter-prediction, for example, video encoder 200 may encode motion vectors using advanced motion vector prediction (AMVP) or merge mode. Video encoder 200 may use similar modes to encode motion vectors for affine motion compensation mode.
  • AMVP advanced motion vector prediction
  • Video encoder 200 may use similar modes to encode motion vectors for affine motion compensation mode.
  • video encoder 200 and video decoder 300 may predict a block based on an inter-intra-prediction mode.
  • video encoder 200 generates an inter-intra-prediction block based on a weighted combination of a first prediction block generated from an inter-prediction mode, and a second prediction block generated from an intra-prediction mode.
  • Video encoder 200 may determine weights for each of the first and second prediction blocks based on the intra-prediction mode used to generate the intra-prediction block, as one example.
  • video encoder 200 may include an inter-intra candidate in accordance with AMVP or merge mode, as described in more detail.
  • the inter-intra candidate includes information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode.
  • Video encoder 200 may then generate the inter-intra-prediction block based on the first and second prediction blocks when the inter-intra candidate is selected in the AMVP or merge mode.
  • video encoder 200 may calculate residual data for the block.
  • the residual data such as a residual block, represents sample by sample differences between the block and a prediction block for the block, formed using the corresponding prediction mode (e.g., inter-intra-prediction block for inter-intra-prediction mode).
  • Video encoder 200 may apply one or more transforms to the residual block, to produce transformed data in a transform domain instead of the sample domain.
  • video encoder 200 may apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to residual video data.
  • DCT discrete cosine transform
  • video encoder 200 may apply a secondary transform following the first transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal dependent transform, a Karhunen-Loeve transform (KLT), or the like.
  • Video encoder 200 produces transform coefficients following application of the one or more transforms.
  • video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the coefficients, providing further compression. By performing the quantization process, video encoder 200 may reduce the bit depth associated with some or all of the coefficients. For example, video encoder 200 may round an n-bit value down to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, video encoder 200 may perform a bitwise right-shift of the value to be quantized.
  • video encoder 200 may scan the transform coefficients, producing a one-dimensional vector from the two-dimensional matrix including the quantized transform coefficients.
  • the scan may be designed to place higher energy (and therefore lower frequency) coefficients at the front of the vector and to place lower energy (and therefore higher frequency) transform coefficients at the back of the vector.
  • video encoder 200 may utilize a predefined scan order to scan the quantized transform coefficients to produce a serialized vector, and then entropy encode the quantized transform coefficients of the vector.
  • video encoder 200 may perform an adaptive scan.
  • video encoder 200 may entropy encode the one-dimensional vector, e.g., according to context-adaptive binary arithmetic coding (CABAC).
  • Video encoder 200 may also entropy encode values for syntax elements describing metadata associated with the encoded video data for use by video decoder 300 in decoding the video data.
  • CABAC context-adaptive binary arithmetic coding
  • video encoder 200 may assign a context within a context model to a symbol to be transmitted.
  • the context may relate to, for example, whether neighboring values of the symbol are zero-valued or not.
  • the probability determination may be based on a context assigned to the symbol.
  • Video encoder 200 may further generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, to video decoder 300 , e.g., in a picture header, a block header, a slice header, or other syntax data, such as a sequence parameter set (SPS), picture parameter set (PPS), or video parameter set (VPS).
  • Video decoder 300 may likewise decode such syntax data to determine how to decode corresponding video data.
  • video encoder 200 may generate a bitstream including encoded video data, e.g., syntax elements describing partitioning of a picture into blocks (e.g., CUs) and prediction and/or residual information for the blocks.
  • video decoder 300 may receive the bitstream and decode the encoded video data.
  • video decoder 300 performs a reciprocal process to that performed by video encoder 200 to decode the encoded video data of the bitstream.
  • video decoder 300 may decode values for syntax elements of the bitstream using CABAC in a manner substantially similar to, albeit reciprocal to, the CABAC encoding process of video encoder 200 .
  • the syntax elements may define partitioning information of a picture into CTUs, and partitioning of each CTU according to a corresponding partition structure, such as a QTBT structure, to define CUs of the CTU.
  • the syntax elements may further define prediction and residual information for blocks (e.g., CUs) of video data.
  • the residual information may be represented by, for example, quantized transform coefficients.
  • Video decoder 300 may inverse quantize and inverse transform the quantized transform coefficients of a block to reproduce a residual block for the block.
  • Video decoder 300 uses a signaled prediction mode (intra-prediction, inter-prediction, or inter-intra prediction) and related prediction information (e.g., motion information for inter-prediction) to form a prediction block for the block.
  • Video decoder 300 may then combine the prediction block and the residual block (on a sample-by-sample basis) to reproduce the original block.
  • Video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along boundaries of the block.
  • This disclosure may generally refer to “signaling” certain information, such as syntax elements.
  • the term “signaling” may generally refer to the communication of values syntax elements and/or other data used to decode encoded video data. That is, video encoder 200 may signal values for syntax elements in the bitstream. In general, signaling refers to generating a value in the bitstream.
  • source device 102 may transport the bitstream to destination device 116 substantially in real time, or not in real time, such as might occur when storing syntax elements to storage device 112 for later retrieval by destination device 116 .
  • FIGS. 2A and 2B are conceptual diagrams illustrating an example quadtree binary tree (QTBT) structure 130 , and a corresponding coding tree unit (CTU) 132 .
  • the solid lines represent quadtree splitting, and dotted lines indicate binary tree splitting.
  • each split (i.e., non-leaf) node of the binary tree one flag is signaled to indicate which splitting type (i.e., horizontal or vertical) is used, where 0 indicates horizontal splitting and 1 indicates vertical splitting in this example.
  • splitting type i.e., horizontal or vertical
  • video encoder 200 may encode, and video decoder 300 may decode, syntax elements (such as splitting information) for a region tree level of QTBT structure 130 (i.e., the solid lines) and syntax elements (such as splitting information) for a prediction tree level of QTBT structure 130 (i.e., the dashed lines).
  • Video encoder 200 may encode, and video decoder 300 may decode, video data, such as prediction and transform data, for CUs represented by terminal leaf nodes of QTBT structure 130 .
  • CTU 132 of FIG. 2B may be associated with parameters defining sizes of blocks corresponding to nodes of QTBT structure 130 at the first and second levels. These parameters may include a CTU size (representing a size of CTU 132 in samples), a minimum quadtree size (MinQTSize, representing a minimum allowed quadtree leaf node size), a maximum binary tree size (MaxBTSize, representing a maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, representing a maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, representing the minimum allowed binary tree leaf node size).
  • CTU size representing a size of CTU 132 in samples
  • MinQTSize representing a minimum allowed quadtree leaf node size
  • MaxBTSize representing a maximum binary tree root node size
  • MaxBTDepth representing a maximum allowed binary tree depth
  • MinBTSize representing the minimum allowed binary tree leaf node size
  • the root node of a QTBT structure corresponding to a CTU may have four child nodes at the first level of the QTBT structure, each of which may be partitioned according to quadtree partitioning. That is, nodes of the first level are either leaf nodes (having no child nodes) or have four child nodes.
  • the example of QTBT structure 130 represents such nodes as including the parent node and child nodes having solid lines for branches. If nodes of the first level are not larger than the maximum allowed binary tree root node size (MaxBTSize), they can be further partitioned by respective binary trees.
  • MaxBTSize maximum allowed binary tree root node size
  • the binary tree splitting of one node can be iterated until the nodes resulting from the split reach the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth).
  • MinBTSize minimum allowed binary tree leaf node size
  • MaxBTDepth maximum allowed binary tree depth
  • the example of QTBT structure 130 represents such nodes as having dashed lines for branches.
  • the binary tree leaf node is referred to as a coding unit (CU), which is used for prediction (e.g., intra-picture or inter-picture prediction) and transform, without any further partitioning.
  • CUs may also be referred to as “video blocks” or “blocks.”
  • the CTU size is set as 128 ⁇ 128 (luma samples and two corresponding 64 ⁇ 64 chroma samples), the MinQTSize is set as 16 ⁇ 16, the MaxBTSize is set as 64 ⁇ 64, the MinBTSize (for both width and height) is set as 4, and the MaxBTDepth is set as 4.
  • the quadtree partitioning is applied to the CTU first to generate quad-tree leaf nodes.
  • the quadtree leaf nodes may have a size from 16 ⁇ 16 (i.e., the MinQTSize) to 128 ⁇ 128 (i.e., the CTU size).
  • leaf quadtree node If the leaf quadtree node is 128 ⁇ 128, it will not be further split by the binary tree, since the size exceeds the MaxBTSize (i.e., 64 ⁇ 64, in this example). Otherwise, the leaf quadtree node will be further partitioned by the binary tree. Therefore, the quadtree leaf node is also the root node for the binary tree and has the binary tree depth as 0. When the binary tree depth reaches MaxBTDepth (4, in this example), no further splitting is permitted. When the binary tree node has width equal to MinBTSize (4, in this example), it implies no further horizontal splitting is permitted. Similarly, a binary tree node having a height equal to MinBTSize implies no further vertical splitting is permitted for that binary tree node. As noted above, leaf nodes of the binary tree are referred to as CUs, and are further processed according to prediction and transform without further partitioning.
  • Video coding standards include ITU-T H.261, ISO/IEC MPEG-1 Visual, ITU-T H.262 or ISO/IEC MPEG-2 Visual, ITU-T H.263, ISO/IEC MPEG-4 Visual and ITU-T H.264 (also known as ISO/IEC MPEG-4 AVC), including its Scalable Video Coding (SVC) and Multiview Video Coding (MVC) extensions.
  • SVC Scalable Video Coding
  • MVC Multiview Video Coding
  • HEVC High Efficiency Video Coding
  • JCT-VC Joint Collaboration Team on Video Coding
  • MPEG Motion Picture Experts Group
  • ITU-T Video Coding Experts Group VCEG
  • MPEG Motion Picture Experts Group
  • ITU-T H.265 Series H: Audiovisual and Multimedia Systems, Infrastructure of audiovisual services-Coding of moving video, High efficiency video coding, The International Telecommunication Union, April 2015, 634 pp.
  • FIG. 3A is a conceptual diagram illustrating an example of blocks of an intra-predicted slice.
  • FIG. 3B is a conceptual diagram illustrating an example of blocks of an inter-predicted slice.
  • 3A and 3B show examples of an intra-frame and an inter-frame, and particularly, intra-slices and inter-slices that are part of the respective intra-frame or inter-frame.
  • blocks can refer to a coding unit/block, prediction unit/block, sub-PU, transform unit/block or any other coding structures.
  • a block coded as an intra-block applies intra-prediction, with which the current block is predicted by neighboring pixels in the current frame.
  • a block coded as an inter-block applies inter-prediction, with which the current block is predicted by pixels in previously coded/decoded frames, named “reference frames”.
  • an intra-slice may only include intra-blocks (e.g., blocks predicted using intra-prediction).
  • an inter-slice may include intra-blocks and inter-blocks (e.g., blocks predicted using intra-prediction and blocks predicted using inter-prediction).
  • FIG. 4 is a conceptual diagram illustrating an example of intra-prediction modes.
  • intra-prediction modes representing different prediction directions as shown in FIG. 4 .
  • JEM such as described in J. Chen, E. Alshina, G. J. Sullivan, J.-R. Ohm, J. Boyce, JVET-F1001,” Algorithm Description of Joint Exploration Test Model 6,” April 2017, the number of intra-prediction modes is increased to 67.
  • Each intra-coded block e.g., intra-predicted block
  • FIG. 5 is a conceptual diagram illustrating examples of reference frames for inter-prediction.
  • motion compensation is used from one reference block (uni-prediction) or two reference blocks (bi-prediction) in reference frames as shown in FIG. 5 .
  • block A in the Current Frame utilizes uni-prediction with one reference block (Reference A in Reference Frame 1)
  • block B in the current frame utilizes bi-prediction with two reference blocks (Reference B in Reference Frame 1 and Reference C in Reference Frame 2).
  • Each inter-coded block e.g., inter-predicted block
  • MV motion vectors
  • FIG. 6 is a conceptual diagram illustrating examples of neighboring blocks for a current block for coding an intra-prediction mode.
  • intra-prediction modes of the neighboring blocks are used as prediction modes for the current mode.
  • FIG. 6 shows exemplary neighboring blocks.
  • intra-prediction modes of neighboring block A and B are used as prediction modes for the intra mode of the current block.
  • each intra-prediction mode may be assigned a numerical value.
  • video encoder 200 signals a difference between the intra-prediction mode for the current block and the prediction mode (e.g., the intra-prediction mode determined from one or more neighboring blocks).
  • Video decoder 300 may determine the intra-prediction mode for the current block by adding the prediction mode to the difference value signaled by video encoder 200 .
  • JEM JEM
  • more neighboring blocks A0, A1, B1, B1, B2 are used as prediction modes for the current mode. If a neighboring block does not exist (the current block is at the boundary of a frame), or a neighboring block is not intra-coded (the current frame is an inter-frame but the current block is intra-coded), the neighboring block is marked as “unavailable” and its intra-prediction mode is not used to predict the intra-prediction mode of the current block.
  • the following describes motion information, such as motion information for an inter-predicted block.
  • a set of motion information can be available.
  • the set of motion information contains motion information for forward and backward prediction directions.
  • forward and backward prediction directions are two prediction directions corresponding to reference picture list 0 (RefPicList0) and reference picture list 1 (RefPicList1) of a current picture or slice.
  • the terms “forward” and “backward” do not necessarily have a geometry meaning. Instead, they are used to distinguish which reference picture list a motion vector is based on.
  • Forward prediction means the prediction formed based on reference list 0
  • backward prediction means the prediction formed based on reference list 1 (or vice-versa based on design choice).
  • bi-directional prediction In case both reference list 0 and reference list 1 are used to form a prediction for a given block, it is called bi-directional prediction.
  • every block inside the picture or slice is forward predicted. If both reference picture lists are used for a given picture or slice, a block inside the picture or slice may be forward predicted, or backward predicted, or bi-directionally predicted.
  • the motion information For each prediction direction, the motion information contains a reference index and a motion vector.
  • a reference index is used to identify a reference picture in the corresponding reference picture list (e.g. RefPicList0 or RefPicList1).
  • a motion vector has both a horizontal and a vertical component, with each indicating an offset value along horizontal and vertical direction respectively.
  • the word of “motion vector” may be used interchangeably with motion information, to indicate both the motion vector and its associated reference index.
  • POC picture order count
  • each inter macroblock may be partitioned into four different ways
  • Different MB partitions in one MB may have different reference index values for each direction (RefPicList0 or RefPicList1).
  • RefPicList0 or RefPicList1 When an MB is not partitioned into four 8 ⁇ 8 MB partitions, it has only one motion vector for each MB partition in each direction.
  • each 8 ⁇ 8 MB partition can be further partitioned into sub-blocks, each of which can have a different motion vector in each direction. There are four different ways to get sub-blocks from an 8 ⁇ 8 MB partition:
  • Each sub-block can have a different motion vector in each direction. Therefore, motion vector is present in a level equal to higher than sub-block.
  • temporal direct mode could be enabled in either MB or MB partition level for skip or direct mode in B slices.
  • the motion vectors of the block co-located with the current MB partition in the RefPicList1 [0] of the current block are used to derive the motion vectors.
  • Each motion vector in the co-located block is scaled based on POC distances.
  • a direct mode can also predict motion information from the spatial neighbors.
  • HEVC coding tree block
  • CTU coding tree unit
  • the size of a CTB can be ranges from 16 ⁇ 16 to 64 ⁇ 64 in the HEVC main profile (although technically 8 ⁇ 8 CTB sizes can be supported).
  • a coding unit (CU) could be the same size of a CTB although and as small as 8 ⁇ 8.
  • Each coding unit is coded with one mode. When a CU is inter coded, it may be further partitioned into 2 or 4 prediction units (PUs) or become just one PU when further partition does not apply. When two PUs are present in one CU, they can be half size rectangles or two rectangle size with 1 ⁇ 4 or 3 ⁇ 4 size of the CU.
  • each PU When the CU is inter coded, one set of motion information is present for each PU.
  • each PU is coded with a unique inter-prediction mode to derive the set of motion information.
  • MVP motion vector prediction
  • merge skip is considered as a special case of merge
  • AMVP advanced motion vector prediction
  • PU prediction unit
  • AMVP advanced motion vector prediction
  • MV motion vector candidate list
  • the motion vector(s), as well as reference indices in the merge mode, of the current PU are generated by taking one candidate from the MV candidate list.
  • the MV candidate list may contain up to 5 candidates for the merge mode and only two candidates for the AMVP mode.
  • a merge candidate may contain a set of motion information, e.g., motion vectors corresponding to both reference picture lists (list 0 and list 1) and the reference indices. If a merge candidate is identified by a merge index, the reference pictures are used for the prediction of the current blocks, as well as the associated motion vectors are determined. However, under AMVP mode for each potential prediction direction from either list 0 or list 1, a reference index needs to be explicitly signaled, together with an MVP index to the MV candidate list since the AMVP candidate contains only a motion vector. In AMVP mode, the predicted motion vectors can be further refined.
  • a merge candidate corresponds to a full set of motion information while an AMVP candidate contains just one motion vector for a specific prediction direction and reference index.
  • video encoder 200 may determine motion information from the MV candidate list and signal an index into the MV candidate list.
  • Video decoder 300 may incorporate the motion information from candidate identified by the index into the MV candidate list as the motion information for the current block.
  • video encoder 200 may signal an index into the MV candidate list, an MVD (difference between the motion vector of the motion information identified by the index into the MV candidate list and the actual motion vector for the current block), and information indicating whether reference picture list 0 or reference picture list 1 is used.
  • the candidates for both modes are derived similarly from the same spatial and temporal neighboring blocks.
  • FIGS. 7A and 7B are conceptual diagrams illustrating examples of spatial neighboring motion vector candidates for merge and AMVP mode. Spatial MV candidates are derived from the neighboring blocks shown on in FIGS. 7A and 7B , for a specific PU (PU 0 ), although the methods for generating the candidates from the blocks differ for merge and AMVP modes.
  • up to four spatial MV candidates can be derived with the orders showed on FIG. 7A with numbers, and the order is the following: left (0, A1), above (1, B1), above right (2, B0), below left (3, A0), and above left (4, B2), as shown in FIG. 7A .
  • the arrows illustrate comparisons between motion information of neighboring blocks, and if the motion information is the same, the motion information for a block is pruned as a motion vector candidate. For instance, if above (1, B1) block has the same motion information as left (0, A1) block, then the motion information of above (1, B1) block is not included as a motion vector candidate. If above right (2, B0) block has the same motion information as above (1, B1) block, then the motion information of above right (2, B0) is not included as a motion vector candidate, and so forth.
  • the neighboring blocks are divided into two groups: left group consisting of the block 0 and 1, and above group consisting of the blocks 2, 3, and 4 s shown on FIG. 7B .
  • the potential candidate in a neighboring block referring to the same reference picture as that indicated by the signaled reference index has the highest priority to be chosen to form a final candidate of the group. It is possible that all neighboring blocks do not contain a motion vector pointing to the same reference picture. Therefore, if such a candidate cannot be found, the first available candidate will be scaled to form the final candidate, thus the temporal distance differences can be compensated.
  • TMVP temporal motion vector prediction
  • a temporal motion vector predictor (TMVP) candidate if enabled and available, is added into the MV candidate list after spatial motion vector candidates.
  • the process of motion vector derivation for TMVP candidate is the same for both merge and AMVP modes; however, the target reference index for the TMVP candidate in the merge mode is always set to 0.
  • FIGS. 8A and 8B are conceptual diagrams illustrating examples of a temporal motion vector predictor (TMVP) candidate and motion vector scaling for TMVP, respectively.
  • the primary block location for TMVP candidate derivation is the bottom right block outside of the collocated PU as shown in FIG. 8A as a block “T”, to compensate the bias to the above and left blocks used to generate spatial neighboring candidates. However, if that block is located outside of the current CTB row or motion information is not available, the block is substituted with a center block of the PU.
  • Motion vector for TMVP candidate is derived from the co-located PU of the co-located picture, indicated in the slice level.
  • the motion vector for the co-located PU is called collocated MV.
  • the co-located MV may need to be scaled to compensate the temporal distance differences, as shown in FIG. 8B .
  • motion vector scaling it is assumed that the value of motion vectors is proportional to the distance of pictures in the presentation time.
  • a motion vector associates two pictures, the reference picture, and the picture containing the motion vector (namely the containing picture).
  • POC Picture Order Count
  • the distance of the containing picture and the reference picture is calculated based on the Picture Order Count (POC) values.
  • POC Picture Order Count
  • the motion vector is scaled based on these two POC distances.
  • For a spatial neighboring candidate the containing pictures for the two motion vectors are the same, while the reference pictures are different.
  • motion vector scaling applies to both TMVP and AMVP for spatial and temporal neighboring candidates.
  • candidates from different blocks may happen to be the same, which decreases the efficiency of a merge/AMVP candidate list.
  • a pruning process is applied to solve this problem, as described above with respect to FIG. 7A . It compares one candidate against the others in the current candidate list to avoid inserting identical candidate in certain extent. To reduce the complexity, only limited numbers of pruning process is applied instead of comparing each potential one with all the other existing ones.
  • Each candidate is inserted into the candidate list per a predefined priority.
  • a merge candidate list and AMVP candidate list are constructed by inserting candidates based on a predefined order (or per a predefined priority).
  • FIG. 9 is a conceptual diagram illustrating an example of neighboring blocks whose spatial information is used for constructing a merge candidate list.
  • the merge candidate list is constructed by video encoder 200 or video decoder 300 inserting the spatial merging candidate by a predefined order (A1 ⁇ B1 ⁇ B0 ⁇ A0 ⁇ B2).
  • FIG. 10 is a flowchart illustrating an example manner in which to construct a merge candidate list.
  • FIG. 10 shows the construction process of the merge candidate list in HEVC.
  • Each spatial or temporal neighboring blocks are checked one by one to identify whether the block can provide a valid merge candidate.
  • the term “valid” means the block exists, is inter-coded, the candidate list is not full, and the motion information in the block is not pruned by existing candidates in the current candidate list. It should be noted that one candidate may be only pruned to partial of existing candidates in the current candidate list. For B2, it is only checked if there are less than 4 candidates after checking A1, B1, B0 and A0.
  • blocks e.g. Block0-Block4 and Current Block in FIG. 10
  • blocks can be coding unit/block, prediction unit/block, sub-PU, transform unit/block or any other coding structures.
  • a video coder may check block A1 of FIG. 9 ( 134 ), and determine whether it is valid ( 136 ). If valid (Y of 136 ), the video coder appends motion information of A1 to the merge candidate list ( 138 ), and then proceeds to check B1. If not valid (N of 136 ), the video coder proceeds to check B 1 .
  • the video coder may then check B1 of FIG. 9 ( 140 ), and determine whether it is valid ( 142 ). If valid (Y of 142 ), the video coder appends motion information of B1 to the merge candidate list ( 144 ), and then proceeds to check B0. If not valid (N of 142 ), the video coder proceeds to check B0. The video coder may then check B0 of FIG. 9 ( 146 ), and determine whether it is valid ( 148 ). If valid (Y of 148 ), the video coder appends motion information of B0 to the merge candidate list ( 150 ), and then proceeds to check A0. If not valid (N of 148 ), the video coder proceeds to check A0.
  • the video coder may then check A0 of FIG. 9 ( 152 ), and determine whether it is valid ( 154 ). If valid (Y of 154 ), the video coder appends motion information of A0 to the merge candidate list ( 156 ), and then proceeds to check B2. If not valid (N of 154 ), the video coder proceeds to check B2.
  • the video coder may then check B2 of FIG. 9 ( 158 ), and determine whether it is valid and there are less than four candidates in the list ( 160 ). If valid and less than four candidates in the list (Y of 160 ), the video coder appends motion information of B2 to the merge candidate list ( 162 ), and then proceeds to check TMVP. If not valid or not less than four candidates in the list (N of 160 ), the video coder proceeds to check TMVP.
  • the video coder may then check the TMVP of FIG. 8A ( 164 ), and determine whether it is valid ( 166 ). If valid (Y of 166 ), the video coder appends motion information of the TMVP (based on scaling of FIG. 8B if needed) to the merge candidate list ( 168 ), and determines whether the candidate list full ( 170 ). If not valid (N of 166 ), the video coder determines whether the candidate list is full ( 170 ).
  • the merge candidate list construction process is over. If the candidate list is not full (N of 170 ), the video coder adds the combined bi-candidate ( 172 ), i.e., appends the combined bi-candidate into the candidate list. The video coder may determine if more combined bi-candidates are available ( 174 ). If more bi-candidates are available (Y of 174 ), and the candidate list is not full (N of 170 ), the video coder may add another bi-candidate, and keep repeating until there are no more bi-candidates or the candidate list is not full.
  • the video coder may append one default fixed candidate into candidate list ( 178 ).
  • the video coder may keep adding one default fixed candidate into the merge candidate list until the merge candidate list is full (Y of 176 ).
  • This disclosure describes examples to improve the efficiency of prediction by combining inter-prediction and intra-prediction.
  • the method of combining of inter-prediction and intra-prediction is defined as inter-intra prediction.
  • Video encoder 200 and video decoder 300 may be configured to perform the following methods individually. Alternatively, video encoder 200 and video decoder 300 may be configured to perform any combination of them.
  • Video encoder 200 and video decoder 300 may each generate a prediction block using a particular intra-prediction mode, and generate another prediction block using inter-prediction with specific motion information. Video encoder 200 and video decoder 300 may generate a final prediction block (e.g., inter-intra-prediction block) based on the two prediction block. As one example, a video coder (e.g., video encoder and/or video decoder 300 ) may generate a prediction block P1 for the current block using intra-prediction with a specific Intra-Prediction Mode (IPM), and another prediction block P2 for the current block using inter-prediction with specific Motion Information (MI, including information such as inter-prediction direction, reference lists, reference picture index and motion vectors).
  • IPM Intra-Prediction Mode
  • MI Motion Information
  • Video encoder 200 and video decoder 300 may utilize a weighted prediction to determine the final prediction block.
  • the video coder may generate the final prediction block (e.g., array of sample values) P as the weighted sum of P1 and P2 as the formula shown below:
  • P(x,y) (w1(x,y) ⁇ P1(x,y)+w2(x,y) ⁇ P2 (x,y)+o)>>s, where w1, w2, o and s are integers.
  • video encoder 200 and video decoder 300 determined the values of the weights (w1, w2) applied to the two prediction blocks based on certain constraints on their values. In some examples, video encoder 200 and video decoder 300 may determine the value of the weights (w1, w2) based on other factors.
  • video encoder 200 and video decoder 300 determine w1 and w2 based on the intra-prediction mode (IPM) used to determine the prediction block generated from an intra-prediction mode. In other words, in one example, w1 and w2 depend on IPM. Moreover, in the below examples, the determined weights w1 and w2 may be the same weight for each sample in the two prediction blocks P1 and P2, or two more weights may be different for two or more samples in the two prediction blocks P1 and P2. For instance, in one example, to determine a first weighted prediction block and a second weighted prediction block, video encoder 200 and video decoder 300 may multiply the same w1 with each sample of P1 and multiply the same w2 with each sample of P2.
  • IPM intra-prediction mode
  • video encoder 200 and video decoder 300 may determine a first weight value (e.g., w1_0) for sample P1(0, 0), determine a second weight value (e.g., w1_1) for sample P1(0, 1), and so forth, and multiply each respective weight value with each respective prediction sample value to determine the first weighted prediction block.
  • a first weight value e.g., w1_0
  • a second weight value e.g., w1_1
  • Video encoder 200 and video decoder 300 may similarly determine a second weighted prediction block, but based on P2 and weights associated for P2 (e.g., w2_X).
  • video encoder 200 and video decoder 300 may determine the intra-prediction mode. Then, video encoder 200 and video decoder 300 may parse a table that indicates weight values for each of the intra-prediction modes. Video encoder 200 and video decoder 300 may determine the weight values w1 and w2 based on the weight values associated with the determined intra-prediction mode.
  • a video coder may determine an intra-prediction mode for block of a picture, and determine a first weight and a second weight based on the determined intra-prediction mode.
  • the video coder may generate a first prediction block for the block according to the intra-prediction mode, and generate a second prediction block for the block according to an inter-prediction mode.
  • the video coder may apply the first weight to the first prediction block to generate a first weighted block, and apply the second weight to the second prediction block to generate a second weighted block. For instance, the video coder may multiply the first weight with each sample value (e.g., where the sample value is a luma or chroma value depending on the type of block) in the first prediction block to generate the first weighted prediction block, and multiply the second weight with each sample in the second prediction block to generate the second weighted prediction block.
  • the first weight and the second weight may be the same for each sample in the first and second prediction blocks, respectively.
  • the video coder may determine the first weight and the second weight on a sample-by-sample basis (or plurality of samples-by-plurality of samples basis), such as based on positions of the samples in the respective first and second prediction blocks.
  • the video coder may generate a final prediction block based on the first weighted block and the second weighted block. As one example, the video coder may add the first weighted prediction block and the second weighted prediction block to generate the final prediction block.
  • Video encoder 200 may generate a residual block based on a difference between the final prediction block and the current block, and signal information indicative of the residual block.
  • Video decoder 300 may receive information indicative of the residual block and add the residual block to the final prediction block to reconstruct the block of picture.
  • each intra-prediction mode was assigned its own weights. For instance, for a first intra-prediction mode, there may be a first w1 and a first w2 assigned weights. For a second intra-prediction mode, there may be a second w1 and a second w2 assigned weights, and so forth. The first and second assigned weights may be different. However, rather than assigning weights to each intra-prediction mode, the intra-prediction modes may be classified into groups, and a w1 and w2 weight may be assigned to each of the groups (e.g., for the whole prediction block, on a sample-by-sample basis, or on a plurality of samples-by-plurality of samples basis). In this way, less memory may be needed, as there may be fewer weight values to store.
  • intra-prediction modes are classified into groups.
  • intra-prediction modes are classified by grouping the intra angular prediction modes that have similar directions. For example, there are 67 modes in the JEM software, which can be classified into 16 groups as
  • a video coder may determine an intra-prediction mode classification based on the intra-prediction mode. For example, the video coder may determine, from a plurality of ranges, a range within which the intra-prediction mode resides. The plurality of ranges may be based on angles associated with prediction directions of corresponding intra-prediction modes. The video coder may determine the intra-prediction mode classification based on the determined range. The video coder may determine the first weight for the first prediction block (e.g., prediction block generated from an intra-prediction mode) and the second weight for the second prediction block (e.g., prediction block generated from an inter-prediction block) based on the intra-prediction mode classification.
  • the first weight for the first prediction block e.g., prediction block generated from an intra-prediction mode
  • the second weight for the second prediction block e.g., prediction block generated from an inter-prediction block
  • the video coder may determine that the intra-prediction mode value is within the range of 20 ⁇ IPM ⁇ 25, in the above example where the ranges are based on angles associated with prediction directions.
  • the video coder may determine that the group classification for the intra-prediction mode is 8 because 8 is associated with range of 20 ⁇ IPM ⁇ 25.
  • the video coder may determine the weights w1 and w2 based on the intra-prediction mode classification of 8, and generate the first and second weighted prediction blocks to generate the final prediction block.
  • w1 and w2 are only dependent on the IPM (intra-prediction mode).
  • w1 and w2 are dependent on the IPM and coordinate (i.e., (x,y)).
  • the video coder may determine respective first weights and second weights (e.g., respective values for w1 and w2) for each sample in the respective first and second prediction blocks (e.g., respective ones of P1 and P2) based on the intra-prediction mode and a location of each sample in the respective first and second prediction blocks.
  • w1 and w2 may be dependent on the block size and block shape.
  • the video coder may determine the first weight and the second weight based on a polynomial equation having values defined by the intra-prediction mode and one or more coefficients. For instance, w1 and w2 can be calculated from x, y, using polynomial calculation.
  • Parameters a(Group(IPM)), b(Group(IPM)) and c(Group(IPM)) can be predefined at both video encoder 200 and video decoder 300 . Alternatively, they can be signaled from video encoder 200 to video decoder 300 . Alternatively, there can be several predefined parameters at both video encoder 200 and video decoder 300 . Video encoder 200 can signal an index to video decoder 300 to indicate which parameters are used.
  • o 2 s ⁇ 1 , 0 ⁇ w1(x,y) ⁇ 2 s , 0 ⁇ w2(x,y) ⁇ 2 s , and 0 ⁇ a(Group(IPM)),b(Group(IPM)), c(Group(IPM)) 2 k , where k is an integer.
  • w1(x,y,Group(IPM)) (a(Group(IPM)) ⁇ x 2 +b(Group(IPM)) ⁇ y 2 +c(Group(IPM)) ⁇ x ⁇ y+d(Group(IPM)) ⁇ x+e(Group(IPM)) ⁇ y+f (Group(IPM))+o)>>s
  • w2(x,y,Group(IPM)) 2 s ⁇ w1(x,y,Group(IPM)), where a(Group(IPM)), b(Group(IPM)), c(Group(IPM)), d(Group(IPM)), e(Group(IPM)), f(Group(IPM)), o and s are integers.
  • Parameter a(Group(IPM)), b(Group(IPM)), c(Group(IPM)), d(Group(IPM)), e(Group(IPM)) and f(Group(IPM)) can be predefined at both video encoder 200 and video decoder 300 . Alternatively, they can be signaled from video encoder 200 to video decoder 300 . Alternatively, there can be several predefined parameters at both video encoder 200 and video decoder 300 . Video encoder 200 can signal an index to video decoder 300 to indicate which parameters are used. Some constraints can be made.
  • o 2 s ⁇ 1 , 0 ⁇ w1(x,y) ⁇ 2 s , 0 ⁇ w2(x,y) ⁇ 2 s , and 0 ⁇ a(Group(IPM)),b(Group(IPM)), c(Group(IPM)), d(Group(IPM)), e(Group(IPM)), f(Group(IPM)) ⁇ 2 k , where k is an integer.
  • intra-prediction mode is used to determine the weighting that is applied to generate weighted prediction blocks.
  • video encoder 200 and video decoder 300 may determine motion information (MI) of an inter-intra-prediction block.
  • MI is the MI used to determine the prediction block used to construct the inter-intra-prediction block.
  • MI of an inter-intra-prediction block is signaled or derived as that in an inter-coded block or merge block, and/or IPM of an inter-intra-prediction block is derived in the way of intra-prediction mode propagation as specified in U.S.
  • the intra-prediction mode of the collocated block in the collocated frame will be treated as the intra-prediction mode of the current inter-coded block.
  • the collocated block in the collocated frame can be located in the same way as is done for temporal motion vector prediction (TMVP) in HEVC and JEM, except that the collocated frame is allowed to be an intra-frame.
  • the collocated picture can be selected from the reference pictures of the current picture. In one example, the reference picture with reference index 0 in the reference picture list 0 (or 1) is used as a collocated picture.
  • the selection of collocated frame can be signaled from video encoder 200 to video decoder 300 , or it can be derived implicitly at video decoder 300 .
  • the intra-prediction mode of the reference block in the reference frame will be treated as the intra-prediction mode of the current inter-coded block.
  • the reference block in the reference frame is located with the motion vector (MV) information as used in motion compensation in HEVC, JEM or any existing or video coding system.
  • MV motion vector
  • the intra-prediction mode of a spatially neighboring block will be treated as the intra-prediction mode of the current inter-coded block.
  • IPM of an inter-intra-prediction block is signaled or derived as that in an intra-coded block, and/or MI of an inter-intra-prediction block is derived in the way of motion information propagation as specified in Application Ser. No. 62/525,075, filed Jun. 26, 2017.
  • the IPM of an inter-intra-prediction block refers to the IPM used to determine the prediction block based on an intra-prediction mode that is used to generate the inter-intra-prediction block.
  • embodiments may include propagating motion information to intra-coded blocks in an inter-picture. Then intra-coded blocks can be used for motion vector prediction. For example, intra-coded blocks can be used in the construction of candidate lists such as merging candidate list and AMVP list for a lately coded block.
  • An intra-coded block inherits motion information from spatially and/or temporally neighboring blocks, wherein the neighboring blocks can be intra-coded and/or inter-coded.
  • a priority-based method may be defined to select motion information from neighboring blocks. When an intra-coded block chooses to inherit the motion information from a neighboring block, an inter-coded neighboring block has a higher priority than an intra-coded neighboring block.
  • chroma components as well as the luma component can use inter-intra prediction.
  • chroma components and luma component choose to use inter-intra prediction or not synchronically, i.e., in a block either all components use inter-intra prediction or none of them uses inter-intra prediction.
  • components choose to use inter-intra prediction or not asynchronously, i.e., it is allowed that one component use inter-intra prediction in a block but another component does not use inter-intra prediction in the same block.
  • the block being coded includes a luma component block and chroma component block.
  • the video coder generates both a final luma prediction block and a final chroma prediction block based on first and second weights applied to respective luma and chroma components of the first and second prediction blocks (e.g., of P1 and P2).
  • the video coder generates only a final luma prediction block or a final chroma prediction block based on first and second weights applied to only one of respective luma and chroma components of the first and second prediction blocks.
  • chroma components and luma component may share the same MI and IPM when using inter-intra prediction.
  • chroma components and a luma component may have different MI and IPM when using inter-intra prediction.
  • MI is derived as that in an inter-coded block or merge block and is shared by the luma and chroma components.
  • IPM is derived in the way of intra-prediction mode propagation as specified in application Ser. No. 15/926,550, filed Mar. 20, 2018.
  • IPM is always the LM mode defined in “Algorithm Description of Joint Exploration Test Model 6.”
  • IPM is always the MMLM mode defined in “Algorithm Description of Joint Exploration Test Model 6.”
  • a flag named inter-intra-prediction-flag is signaled from video encoder 200 to video decoder 300 to indicate whether the combination of intra-prediction and inter-prediction is applied in a block.
  • an index of prediction methods may be signaled.
  • the prediction methods may include but are not limited to intra-prediction, inter-prediction, inter-intra prediction.
  • inter-intra-prediction block e.g., inter-intra-prediction block
  • the final prediction block e.g., inter-intra-prediction block
  • no explicit flag is signaled from video encoder 200 to video decoder 300 to indicate whether the combination of intra-prediction and inter-prediction is applied in a block (e.g., no explicit signaling is needed to indicate whether prediction is with an inter-intra-prediction block).
  • video encoder 200 and video decoder 300 can operate in the same way to determine whether the combination of intra-prediction and inter-prediction is applied in a block (e.g., whether inter-intra-prediction block is to be used as the final prediction block).
  • some candidates in a merge candidate list are utilized to indicate the combination of intra-prediction and inter-prediction is used for the current block.
  • additional candidates are added into the merge candidate list in addition to the existing merge candidates (representing inter prediction mode with copied or derived motion information).
  • Candidates representing inter-intra prediction mode refer to information used to generate an inter-intra-prediction block including sample values of the inter-intra-prediction block.
  • video encoder 200 and video decoder 300 include an inter-intra candidate, and the inter-intra candidate includes information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction.
  • Video encoder 200 and video decoder 300 may generate the inter-intra-prediction block using the first and second prediction blocks according to any of the example techniques described above, or may use any other technique to generate an inter-intra-prediction block.
  • an inter-intra candidate when an inter-intra candidate is described as being inserted or added to a list of candidates (e.g., merge candidate list or AMVP candidate list), such description may be considered as meaning that video encoder 200 and video decoder 300 include the motion information and intra-prediction mode used to generate the first and second prediction blocks, and the first and second prediction blocks are used to generate the inter-intra-prediction block.
  • video encoder 200 and video decoder 300 may determine the motion information and intra-prediction mode for the inter-intra candidate.
  • the motion information and/or intra-prediction mode may be signaled, or may be determined (e.g., derived without signaling) based on motion information and/or intra-prediction mode of one or more neighboring blocks.
  • the motion information and intra-prediction mode of the inter-intra candidate may be determined, and the techniques are not limited to the above examples.
  • one or more inter-intra candidates are inserted into merge candidate list.
  • inter-intra prediction is used in the block. For example, assume that the inter-intra candidate is located in index[ 1 ] in the list of candidates.
  • video encoder 200 may signal the index value of 1 into the list of candidates.
  • Video decoder 300 may determine that based on the value of 1 into the list of candidates, the inter-intra-prediction block is used as the prediction block (e.g., video decoder 300 will generate the inter-intra-prediction block using the motion information and the intra-prediction mode information of the inter-intra candidate).
  • FIG. 13 is a flowchart illustrating an example manner in which to construct a merge candidate list that includes inter-intra-candidates.
  • FIG. 14 is a flowchart illustrating another example manner in which to construct a merge candidate list that includes inter-intra-candidates.
  • FIGS. 13 and 14 shows an example of inserting inter-intra candidates into merge candidate list.
  • FIG. 13 shows that a procedure of inserting an inter-intra candidate is invoked after each normal merge candidate is checked.
  • FIG. 13 is similar to FIG. 10 ; however, an inter-intra candidate is appended after each normal merge candidate is checked.
  • a video coder may check block A1 of FIG. 9 ( 400 ), and determine whether it is valid ( 402 ). If valid (Y of 402 ), the video coder appends motion information of A1 to the merge candidate list ( 404 ). If not valid (N of 402 ) or after appending to the merge candidate list ( 404 ), the video coder may insert an inter-intra candidate ( 406 ).
  • the video coder may then check B1 of FIG. 9 ( 408 ), and determine whether it is valid ( 410 ). If valid (Y of 410 ), the video coder appends motion information of B1 to the merge candidate list ( 412 ). If not valid (N of 410 ) or after appending to the merge candidate list ( 412 ), the video coder may insert an inter-intra candidate ( 414 ).
  • the video coder may then check B0 of FIG. 9 ( 416 ), and determine whether it is valid ( 418 ). If valid (Y of 418 ), the video coder appends motion information of B0 to the merge candidate list ( 420 ). If not valid (N of 418 ) or after appending to the merge candidate list ( 420 ), the video coder may insert an inter-intra candidate ( 422 ).
  • the video coder may then check A0 of FIG. 9 ( 424 ), and determine whether it is valid ( 426 ). If valid (Y of 426 ), the video coder appends motion information of A0 to the merge candidate list ( 428 ). If not valid (N of 426 ) or after appending to the merge candidate list ( 428 ), the video coder may insert an inter-intra candidate ( 430 ).
  • the video coder may then check B2 of FIG. 9 ( 432 ), and determine whether it is valid ( 434 ). If valid and there are less than four entries (e.g., due to pruning described above with respect to FIG. 7A ) in the merge candidate list (Y of 434 ), the video coder appends motion information of B2 to the merge candidate list ( 436 ). If not valid or not less than four entries (N of 434 ) or after appending to the merge candidate list ( 436 ), the video coder may insert an inter-intra candidate ( 438 ).
  • the video coder may then check the TMVP of FIG. 8A ( 440 ), and determine whether it is valid ( 442 ). If valid (Y of 442 ), the video coder appends motion information of the TMVP (based on scaling of FIG. 8B if needed) to the merge candidate list ( 444 ). If not valid (N of 442 ) or after appending to the merge candidate list ( 444 ), the video coder may insert an inter-intra candidate ( 446 ).
  • the video may then determine whether the candidate list is full ( 448 ). If the candidate list is full (Y of 448 ), the merge candidate list construction process is over. If the candidate list is not full (N of 448 ), the video coder adds the combined bi-candidate ( 450 ), and may insert an inter-intra candidate ( 452 ). The video coder may determine if more combined bi-candidates are available ( 454 ). If more bi-candidates are available (Y of 454 ), and the candidate list is not full (N of 448 ), the video coder may add another bi-candidate and insert another inter-intra candidate, and keep repeating until there are no more bi-candidates or the candidate list is not full.
  • the video coder may add one default fixed candidate into candidate list ( 458 ) and insert an inter-intra candidate ( 460 ).
  • the video coder may keep adding one default fixed candidate and an inter-intra candidate into the merge candidate list until the merge candidate list is full (Y of 456 ).
  • the inter-intra candidates that are inserted may be the same inter-intra candidates or two or more of the inter-intra candidates may be different.
  • video encoder 200 and video decoder 300 may use different weighting or no weighting, or use different starting prediction blocks generated according to inter-prediction mode and intra-prediction mode that are used to generate the inter-intra-prediction block.
  • FIG. 13 shows that an inter-intra candidate is inserted after every regular candidate is added to the merge candidate list, the techniques are not so limited. For example, if the video coder inserts an inter-intra candidate once, the video coder may not insert another inter-intra candidate.
  • FIG. 14 shows an exemplary procedure of inserting an inter-intra candidate.
  • the variable lastIndexC represents the index of the last merge candidate using inter-intra prediction and it is initialized to be ⁇ 1.
  • CurMergeIdx is the index of merge candidate to be appended into the merge candidate list.
  • CurMergeIdx is set to be CurMergeIdx+1.
  • MinlnterintraIdx represents the allowed smallest merge index for a merge candidate using inter-intra prediction.
  • InterIntraNum represents the allowed number of merge candidates using inter-intra prediction.
  • the video coder may determine whether the merge candidate list is full ( 462 ). If the merge candidate list is full (Y of 462 ), the merge candidate list construction process ends. If the merge candidate list is not full (N of 462 ), the video coder may determine whether CurMergeIdx is less than MinlnterintraIdx and InterintraNum is less than MaxinterintraNum ( 464 ). If CurMergeIdx is not less than MinlnterintraIdx or InterintraNum is not less than MaxinterintraNum (N of 464 ), then the merge candidate list construction process ends.
  • the video coder may find the smallest IndexC that satisfies the following conditions: IndexC is greater than LastIndexC, IndexC is less than CurMergeIdx, and InterintraFlag[IndexC] is equal to 0 ( 466 ). The video coder may determine whether such a value of IndexC that satisfies the above conditions can be found ( 468 ). If IndexC cannot be found (N of 468 ), the merge candidate list construction process ends.
  • the video coder may perform the following operations.
  • the video coder may copy the motion information of candidate[IndexC] to candidate[CurMergeIdx].
  • the video coder may set the value of InterIntraFlag[CurMergeIdx] equal to one.
  • the video coder may set the value of LastIndexC equal to CurMergeIdx, and set the value of InterintraNum equal to InterintraNum plus 1 ( 470 ).
  • the video coder may then append candidate[CurMergeIdx] to the candidate list as the last candidate (i.e., set CurMergeIdx equal to CurMergeIdx plus 1) ( 472 ).
  • the merge candidate construction process may then end, or in some examples, the video coder may again determine whether the merge candidate list is full ( 462 ), and repeat the example operations of FIG. 14 until the merge candidate list is full.
  • a merge candidate using inter-intra prediction can share the same MI as its preceding merge candidate, for instance where the video coder copies motion information as described with respect to reference numeral ( 470 ).
  • a merge candidate using inter-intra prediction copies the MI from a preceding merge candidate not using inter-intra prediction which has not been copied from.
  • video encoder 200 and video decoder 300 may determine motion information of an inter-predicted block identified by a smallest index in the list of candidate motion vector predictors to determine the information to generate a prediction block according to an inter-prediction mode (e.g., copy the motion information of the inter-predicted block identified by the smallest index).
  • Video encoder 200 and video decoder 300 may generate a prediction block based on the motion information.
  • Video encoder 200 and video decoder 300 may then generate an inter-intra-prediction block based on this generated prediction block.
  • MinlnterintraIdx can be a fixed predefined number at both video encoder 200 and video decoder 300 , or it can be signaled from video encoder 200 to video decoder 300 , such as in video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), slice header, coding tree unit (CTU), or coding unit (CU).
  • InterIntraNum can be a fixed predefined number at both video encoder 200 and video decoder 300 , or it can be signaled from video encoder 200 to video decoder 300 , such as in video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), slice header, coding tree unit (CTU), or coding unit (CU).
  • MinlnterintraIdx and/or InterIntraNum may depend on previously coded information.
  • MinlnterintraIdx can depend on the temporal layer of the current picture.
  • MinlnterintraIdx may be larger for a slice with a higher temporal layer.
  • video encoder 200 and video decoder 300 may utilize previously coded information to determine whether to use inter-intra-prediction and/or the way to signal the inter-intra-prediction-flag. For example, if the current block is coded with the Frame-rate-up-conversion (FRUC) mode, inter-intra-prediction-flag is signaled to indicate whether to use inter-intra-prediction or not. If the current block is coded with HEVC-like merge mode, inter-intra-prediction-flag is not signaled, and it is derived from the merge index implicitly whether to use inter-intra-prediction. If the current block is coded with HEVC-like advanced motion vector prediction (AMVP) mode, inter-intra-prediction cannot be used and inter-intra-prediction-flag is not signaled.
  • FRUC Frame-rate-up-conversion
  • AMVP advanced motion vector prediction
  • a flag can be signaled from video encoder 200 to video decoder 300 , such as in video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), slice header, coding tree unit (CTU), or coding unit (CU) to indicate whether inter-intra prediction can be used. If this flag is 0, then block-level inter-intra prediction is disabled (“disabled” means there is no inter-intra prediction flag block-level and no implicitly derived inter-intra prediction such as an inter-intra merge candidate).
  • Inter-intra prediction may be always disabled for blocks with certain coding tools. For example, inter-intra prediction may be disabled when a block uses illumination compensation (IC) prediction. In another example, inter-intra prediction will be disabled when a block uses affine prediction. In this case (e.g., where affine prediction is used), there may be no need for video encoder 200 to signal to video decoder 300 the usage of inter-intra prediction method for those blocks with IC or affine prediction.
  • IC illumination compensation
  • affine prediction e.g., where affine prediction is used
  • inter-intra prediction may be always disabled for blocks with certain sizes.
  • the intra prediction applied in inter-intra prediction can be combined with other coding tools.
  • PDPC can be applied to planar prediction used in inter-intra prediction.
  • a video coder may construct a list of candidate motion vector predictors for a current block.
  • Examples of the list of candidate motion vector predictors include a merge candidate list and an AMVP candidate list.
  • the video coder includes an inter-prediction candidate in the list candidate motion vector predictors.
  • An example of the inter-prediction candidate is motion information of a neighboring or collocated block of the current block.
  • inter-prediction candidate may include the motion information of one of blocks A0, A1, B0, B1, or B2 illustrated in FIG. 9 or a collocated block such as block T illustrated in FIG. 8A .
  • the video coder includes an inter-intra candidate in the list of candidate motion vector predictors.
  • the inter-intra candidate include information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode.
  • the video coder generates the inter-intra-prediction block based on the first and second prediction blocks.
  • the video coder may utilize any of the above example techniques to generate an inter-intra-prediction block (e.g., based on a weighted combination or otherwise).
  • the video coder may determine that the inter-intra candidate is to be used as the prediction block for the current block. For example, video encoder 200 may determine a residual between the current block and the prediction block, and signal information indicative of the residual. Video decoder 300 may add the prediction block to received residual block to reconstruct the current block.
  • video encoder 200 may not need to signal any additional information indicating that the current block is predicted in an inter-intra-prediction mode (e.g., predicted with an inter-intra-prediction block). Rather, by signaling an index into the list of candidate motion vector predictors, video encoder 200 can use the inter-intra-prediction mode. For example, when video decoder 300 accesses the inter-intra candidate in the list of motion vector predictors based on the received index into the list of motion vector predictors, video decoder 300 may determine that the current block is predicted using the inter-intra-prediction block because the inter-intra candidate is identified by the index.
  • an inter-intra-prediction mode e.g., predicted with an inter-intra-prediction block.
  • the list of candidate motion vector predictors is leveraged to also be the way in which video decoder 300 can determine that a current block is predicted using an inter-intra-prediction block without needing any separate signaling from video encoder 200 indicating that inter-intra-prediction mode is enabled for the current block.
  • the video coder may include the inter-prediction candidate in to the list of candidate motion vector predictors after including the inter-prediction candidate. For example, as illustrated in the flowchart of FIG. 13 , the video coder may first append motion information for one of blocks A1, B1, B0, A0, B2, or the TMVP, and after appending motion information of one of these blocks into the list of candidate motion vector predictors, the video coder may insert an inter-intra candidate.
  • the video coder may determine the smallest index where inter-intra candidate can be included (e.g., MinInterIntraIdx), and the video coder may include the inter-intra candidate in the list of candidate motion vector predictors based on the determined smallest index where the inter-intra candidate can be included.
  • the video coder may determine the maximum number of allowable inter-intra candidates (e.g., InterIntraNum), and the video coder may include the inter-intra candidate in the list of candidate motion vector predictors based on the determined maximum number of allowable inter-intra candidates.
  • the video coder may copy motion information of the inter-prediction candidate as motion information of the inter-intra candidate.
  • FIG. 11 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure.
  • FIG. 11 is provided for purposes of explanation and should not be considered limiting of the techniques as broadly exemplified and described in this disclosure.
  • this disclosure describes video encoder 200 in the context of video coding standards such as the HEVC video coding standard and the H.266 video coding standard in development.
  • video encoder 200 is an example of processing circuitry (e.g., fixed-function, programmable, or a combination of fixed-function and programmable) configured to perform one or more example techniques described in this disclosure.
  • video encoder 200 includes video data memory 230 , mode selection unit 202 , residual generation unit 204 , transform processing unit 206 , quantization unit 208 , inverse quantization unit 210 , inverse transform processing unit 212 , reconstruction unit 214 , filter unit 216 , decoded picture buffer (DPB) 218 , and entropy encoding unit 220 .
  • Video data memory 230 may store video data to be encoded by the components of video encoder 200 .
  • Video encoder 200 may receive the video data stored in video data memory 230 from, for example, video source 104 ( FIG. 1 ).
  • DPB 218 may act as a reference picture memory that stores reference video data for use in prediction of subsequent video data by video encoder 200 .
  • Video data memory 230 and DPB 218 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices.
  • Video data memory 230 and DPB 218 may be provided by the same memory device or separate memory devices.
  • video data memory 230 may be on-chip with other components of video encoder 200 , as illustrated, or off-chip relative to those components.
  • reference to video data memory 230 should not be interpreted as being limited to memory internal to video encoder 200 , unless specifically described as such, or memory external to video encoder 200 , unless specifically described as such. Rather, reference to video data memory 230 should be understood as reference memory that stores video data that video encoder 200 receives for encoding (e.g., video data for a current block that is to be encoded). Memory 106 of FIG. 1 may also provide temporary storage of outputs from the various units of video encoder 200 .
  • the various units of FIG. 11 are illustrated to assist with understanding the operations performed by video encoder 200 .
  • the units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof.
  • Fixed-function circuits refer to circuits that provide particular functionality, and are preset on the operations that can be performed.
  • Programmable circuits refer to circuits that can programmed to perform various tasks, and provide flexible functionality in the operations that can be performed.
  • programmable circuits may execute software or firmware that cause the programmable circuits to operate in the manner defined by instructions of the software or firmware.
  • Fixed-function circuits may execute software instructions (e.g., to receive parameters or output parameters), but the types of operations that the fixed-function circuits perform are generally immutable.
  • the one or more of the units may be distinct circuit blocks (fixed-function or programmable), and in some examples, the one or more units may be integrated circuits.
  • Video encoder 200 may include arithmetic logic units (ALUs), elementary function units (EFUs), digital circuits, analog circuits, and/or programmable cores, formed from programmable circuits.
  • ALUs arithmetic logic units
  • EFUs elementary function units
  • digital circuits analog circuits
  • programmable cores formed from programmable circuits.
  • memory 106 FIG. 1
  • memory 106 may store the object code of the software that video encoder 200 receives and executes, or another memory within video encoder 200 (not shown) may store such instructions.
  • Video data memory 230 is configured to store received video data.
  • Video encoder 200 may retrieve a picture of the video data from video data memory 230 and provide the video data to residual generation unit 204 and mode selection unit 202 .
  • Video data in video data memory 230 may be raw video data that is to be encoded.
  • Mode selection unit 202 includes a motion estimation unit 222 , motion compensation unit 224 , and an intra-prediction unit 226 .
  • Mode selection unit 202 may include additional functional units to perform video prediction in accordance with other prediction modes.
  • mode selection unit 202 may include a palette unit, an intra-block copy unit (which may be part of motion estimation unit 222 and/or motion compensation unit 224 ), an affine unit, a linear model (LM) unit, or the like.
  • LM linear model
  • Mode selection unit 202 generally coordinates multiple encoding passes to test combinations of encoding parameters and resulting rate-distortion values for such combinations.
  • the encoding parameters may include partitioning of CTUs into CUs, prediction modes for the CUs, transform types for residual data of the CUs, quantization parameters for residual data of the CUs, and so on.
  • Mode selection unit 202 may ultimately select the combination of encoding parameters having rate-distortion values that are better than the other tested combinations.
  • Video encoder 200 may partition a picture retrieved from video data memory 230 into a series of CTUs, and encapsulate one or more CTUs within a slice.
  • Mode selection unit 202 may partition a CTU of the picture in accordance with a tree structure, such as the QTBT structure or the quad-tree structure of HEVC described above.
  • video encoder 200 may form one or more CUs from partitioning a CTU according to the tree structure.
  • Such a CU may also be referred to generally as a “video block” or “block.”
  • mode selection unit 202 also controls the components thereof (e.g., motion estimation unit 222 , motion compensation unit 224 , and intra-prediction unit 226 ) to generate a prediction block for a current block (e.g., a current CU, or in HEVC, the overlapping portion of a PU and a TU).
  • motion estimation unit 222 may perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously coded pictures stored in DPB 218 ).
  • motion estimation unit 222 may calculate a value representative of how similar a potential reference block is to the current block, e.g., according to sum of absolute difference (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared differences (MSD), or the like. Motion estimation unit 222 may generally perform these calculations using sample-by-sample differences between the current block and the reference block being considered. Motion estimation unit 222 may identify a reference block having a lowest value resulting from these calculations, indicating a reference block that most closely matches the current block.
  • SAD sum of absolute difference
  • SSD sum of squared differences
  • MAD mean absolute difference
  • MSD mean squared differences
  • Motion estimation unit 222 may form one or more motion vectors (MVs) that defines the positions of the reference blocks in the reference pictures relative to the position of the current block in a current picture. Motion estimation unit 222 may then provide the motion vectors to motion compensation unit 224 . For example, for uni-directional inter-prediction, motion estimation unit 222 may provide a single motion vector, whereas for bi-directional inter-prediction, motion estimation unit 222 may provide two motion vectors. Motion compensation unit 224 may then generate a prediction block using the motion vectors. For example, motion compensation unit 224 may retrieve data of the reference block using the motion vector. As another example, if the motion vector has fractional sample precision, motion compensation unit 224 may interpolate values for the prediction block according to one or more interpolation filters. Moreover, for bi-directional inter-prediction, motion compensation unit 224 may retrieve data for two reference blocks identified by respective motion vectors and combine the retrieved data, e.g., through sample-by-sample averaging or weighted averaging.
  • intra-prediction unit 226 may generate the prediction block from samples neighboring the current block. For example, for directional modes, intra-prediction unit 226 may generally mathematically combine values of neighboring samples and populate these calculated values in the defined direction across the current block to produce the prediction block. As another example, for DC mode, intra-prediction unit 226 may calculate an average of the neighboring samples to the current block and generate the prediction block to include this resulting average for each sample of the prediction block.
  • Mode selection unit 202 provides the prediction block to residual generation unit 204 .
  • Residual generation unit 204 receives a raw, uncoded version of the current block from video data memory 230 and the prediction block from mode selection unit 202 .
  • Residual generation unit 204 calculates sample-by-sample differences between the current block and the prediction block. The resulting sample-by-sample differences define a residual block for the current block.
  • residual generation unit 204 may also determine differences between sample values in the residual block to generate a residual block using residual differential pulse code modulation (RDPCM).
  • RPCM residual differential pulse code modulation
  • residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.
  • each PU may be associated with a luma prediction unit and corresponding chroma prediction units.
  • Video encoder 200 and video decoder 300 may support PUs having various sizes. As indicated above, the size of a CU may refer to the size of the luma coding block of the CU and the size of a PU may refer to the size of a luma prediction unit of the PU. Assuming that the size of a particular CU is 2N ⁇ 2N, video encoder 200 may support PU sizes of 2N ⁇ 2N or N ⁇ N for intra prediction, and symmetric PU sizes of 2N ⁇ 2N, 2N ⁇ N, N ⁇ 2N, N ⁇ N, or similar for inter prediction. Video encoder 200 and video decoder 300 may also support asymmetric partitioning for PU sizes of 2N ⁇ nU, 2N ⁇ nD, nL ⁇ 2N, and nR ⁇ 2N for inter prediction.
  • each CU may be associated with a luma coding block and corresponding chroma coding blocks.
  • the size of a CU may refer to the size of the luma coding block of the CU.
  • the video encoder 200 and video decoder 300 may support CU sizes of 2N ⁇ 2N, 2N ⁇ N, or N ⁇ 2N.
  • mode selection unit 202 For other video coding techniques such as inter-intra-prediction mode, an intra-block copy mode coding, an affine-mode coding, and linear model (LM) mode coding, as few examples, mode selection unit 202 , via respective units associated with the coding techniques, generates a prediction block for the current block being encoded. In some examples, such as palette mode coding, mode selection unit 202 may not generate a prediction block, and instead generate syntax elements that indicate the manner in which to reconstruct the block based on a selected palette. In such modes, mode selection unit 202 may provide these syntax elements to entropy encoding unit 220 to be encoded.
  • mode selection unit 202 via respective units associated with the coding techniques, generates a prediction block for the current block being encoded.
  • mode selection unit 202 may not generate a prediction block, and instead generate syntax elements that indicate the manner in which to reconstruct the block based on a selected palette. In such modes, mode selection unit 202 may provide these syntax elements to entropy encoding unit
  • residual generation unit 204 receives the video data for the current block and the corresponding prediction block. Residual generation unit 204 then generates a residual block for the current block. To generate the residual block, residual generation unit 204 calculates sample-by-sample differences between the prediction block and the current block.
  • Transform processing unit 206 applies one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a “transform coefficient block”).
  • Transform processing unit 206 may apply various transforms to a residual block to form the transform coefficient block.
  • transform processing unit 206 may apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to a residual block.
  • transform processing unit 206 may perform multiple transforms to a residual block, e.g., a primary transform and a secondary transform, such as a rotational transform.
  • transform processing unit 206 does not apply transforms to a residual block.
  • Quantization unit 208 may quantize the transform coefficients in a transform coefficient block, to produce a quantized transform coefficient block. Quantization unit 208 may quantize transform coefficients of a transform coefficient block according to a quantization parameter (QP) value associated with the current block. Video encoder 200 (e.g., via mode selection unit 202 ) may adjust the degree of quantization applied to the coefficient blocks associated with the current block by adjusting the QP value associated with the CU. Quantization may introduce loss of information, and thus, quantized transform coefficients may have lower precision than the original transform coefficients produced by transform processing unit 206 .
  • QP quantization parameter
  • Inverse quantization unit 210 and inverse transform processing unit 212 may apply inverse quantization and inverse transforms to a quantized transform coefficient block, respectively, to reconstruct a residual block from the transform coefficient block.
  • Reconstruction unit 214 may produce a reconstructed block corresponding to the current block (albeit potentially with some degree of distortion) based on the reconstructed residual block and a prediction block generated by mode selection unit 202 .
  • reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the prediction block generated by mode selection unit 202 to produce the reconstructed block.
  • Filter unit 216 may perform one or more filter operations on reconstructed blocks. For example, filter unit 216 may perform deblocking operations to reduce blockiness artifacts along edges of CUs. Operations of filter unit 216 may be skipped, in some examples.
  • Video encoder 200 stores reconstructed blocks in DPB 218 .
  • reconstruction unit 214 may store reconstructed blocks to DPB 218 .
  • filter unit 216 may store the filtered reconstructed blocks to DPB 218 .
  • Motion estimation unit 222 and motion compensation unit 224 may retrieve a reference picture from DPB 218 , formed from the reconstructed (and potentially filtered) blocks, to inter-predict blocks of subsequently encoded pictures.
  • intra-prediction unit 226 may use reconstructed blocks in DPB 218 of a current picture to intra-predict other blocks in the current picture.
  • entropy encoding unit 220 may entropy encode syntax elements received from other functional components of video encoder 200 .
  • entropy encoding unit 220 may entropy encode quantized transform coefficient blocks from quantization unit 208 .
  • entropy encoding unit 220 may entropy encode prediction syntax elements (e.g., motion information for inter-prediction or intra-mode information for intra-prediction) from mode selection unit 202 .
  • Entropy encoding unit 220 may perform one or more entropy encoding operations on the syntax elements, which are another example of video data, to generate entropy-encoded data.
  • entropy encoding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable-to-variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a Probability Interval Partitioning Entropy (PIPE) coding operation, an Exponential-Golomb encoding operation, or another type of entropy encoding operation on the data.
  • entropy encoding unit 220 may operate in bypass mode where syntax elements are not entropy encoded.
  • the operations described above are described with respect to a block. Such description should be understood as being operations for a luma coding block and/or chroma coding blocks.
  • the luma coding block and chroma coding blocks are luma and chroma components of a CU.
  • the luma coding block and the chroma coding blocks are luma and chroma components of a PU.
  • operations performed with respect to a luma coding block need not be repeated for the chroma coding blocks.
  • operations to identify a motion vector (MV) and reference picture for a luma coding block need not be repeated for identifying a MV and reference picture for the chroma blocks. Rather, the MV for the luma coding block may be scaled to determine the MV for the chroma blocks, and the reference picture may be the same.
  • the intra-prediction process may be the same for the luma coding blocks and the chroma coding blocks.
  • Video encoder 200 represents an example of a device configured to encode video data including a memory configured to store video data, and one or more processing units implemented in circuitry and configured to perform example techniques described in this disclosure.
  • mode selection unit 202 of video encoder 200 may be configured to perform the example techniques described in this disclosure. However, the example techniques may be performed by other components or other components in combination with mode selection unit 202 .
  • a memory such as video data memory 230 , DPB 218 , and/or memory 106 ( FIG. 1 ), may be configured to store reference pictures and sample values of neighboring samples of a block in a picture.
  • Mode selection unit 202 may be configured to generate an inter-intra-prediction block (e.g., final prediction block) using the reference pictures and neighboring sample values stored in the memory.
  • mode selection unit 202 may determine an intra-prediction mode for the block of the picture (e.g., one of the modes illustrated in FIG. 4 ). Mode selection unit 202 may determine a first weight and a second weight based on the determined intra-prediction mode, to be applied to respective ones of a first prediction block generated according to an intra-prediction mode and a second prediction block generated according to an inter-prediction mode. As one example, the memory may store information indicating the weights associated with each intra-prediction mode, and mode selection unit 202 may parse the memory to determine the first weight and the second weight.
  • the memory may store information indicating the weights associated with a classification of the intra-prediction mode
  • mode selection unit 202 may parse the memory to determine the first weight and the second weight based on the classification. For example, mode selection unit 202 may determine an intra-prediction mode classification based on the intra-prediction mode. To determine the intra-prediction mode, mode selection unit 202 may determine, from a plurality of ranges, a range within which the intra-prediction mode resides. The plurality of ranges may be based on angles associated with prediction directions of corresponding intra-prediction modes. Mode selection unit 202 may then determine the intra-prediction mode classification based on the determined range. Mode selection unit 202 may determine the first weight and the second weight based on the determined intra-prediction mode classification.
  • the first weight and the second weight may be based also on respective locations of sample values of prediction blocks generated from inter- and intra-prediction mode techniques. For instance, in a first prediction block generated according to an intra-prediction mode, a first sample located at (0, 0) may be assigned a corresponding weight value, a second sample located at (0, 1) may be assigned a corresponding weight value, and so forth. The corresponding weight values may also be based on the intra-prediction mode. Similarly, in a second prediction block generated according to an inter-prediction mode, a first sample located at (0, 0) may be assigned a corresponding weight value, a second sample located at (0, 1) may be assigned a corresponding weight value, and so forth. The corresponding weight values may also be based on the intra-prediction mode.
  • mode selection unit 202 may determine the first weight and the second weight based on a polynomial equation having values defined by the intra-prediction mode and one or more coefficients.
  • the one or more coefficients may only be integers. Examples of the polynomial equation are given above.
  • mode selection unit 202 may be configured to construct a candidate list that includes an inter-intra candidate. For example, mode selection unit 202 may construct a list of candidate motion vector predictors, for storage in the memory, for a current block. To construct the list of candidate motion vector predictors, mode selection unit 202 may include an inter-prediction candidate in the list of candidate motion vector predictors. The inter-prediction candidate includes motion information of a neighboring or collocated block of the current block. The flowchart of FIG. 13 illustrates examples of neighboring or collocated blocks that are included in the list of candidate motion vector predictors.
  • Mode selection unit 202 may also include an inter-intra candidate in the list of candidate motion vector predictors.
  • the inter-intra candidate includes information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode.
  • Mode selection unit 202 may determine that the inter-intra candidate is to be used as the prediction block for the current block. Mode selection unit 202 may signal an index value into the list of candidate motion vector predictors that identifies the inter-intra candidate in the list of candidate motion vector predictors.
  • FIG. 12 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure.
  • FIG. 12 is provided for purposes of explanation and is not limiting on the techniques as broadly exemplified and described in this disclosure.
  • Video decoder 300 is an example of processing circuitry (e.g., fixed-function, programmable, or a combination of fixed-function and programmable) configured to perform one or more example techniques described in this disclosure.
  • this disclosure describes video decoder 300 is described according to the techniques of JEM and HEVC. However, the techniques of this disclosure may be performed by video coding devices that are configured to other video coding standards.
  • video decoder 300 includes coded picture buffer (CPB) memory 320 , entropy decoding unit 302 , prediction processing unit 304 , inverse quantization unit 306 , inverse transform processing unit 308 , reconstruction unit 310 , filter unit 312 , and decoded picture buffer (DPB) 314 .
  • Prediction processing unit 304 includes motion compensation unit 316 and intra-prediction unit 318 .
  • Prediction processing unit 304 may include addition units to perform prediction in accordance with other prediction modes.
  • prediction processing unit 304 may include a palette unit, an intra-block copy unit (which may form part of motion compensation unit 316 ), an affine unit, a linear model (LM) unit, or the like.
  • video decoder 300 may include more, fewer, or different functional components.
  • CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by the components of video decoder 300 .
  • the video data stored in CPB memory 320 may be obtained, for example, from computer-readable medium 110 ( FIG. 1 ).
  • CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from an encoded video bitstream.
  • CPB memory 320 may store video data other than syntax elements of a coded picture, such as temporary data representing outputs from the various units of video decoder 300 .
  • DPB 314 generally stores decoded pictures, which video decoder 300 may output and/or use as reference video data when decoding subsequent data or pictures of the encoded video bitstream.
  • CPB memory 320 and DPB 314 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices.
  • DRAM dynamic random access memory
  • SDRAM synchronous DRAM
  • MRAM magnetoresistive RAM
  • RRAM resistive RAM
  • CPB memory 320 and DPB 314 may be provided by the same memory device or separate memory devices.
  • CPB memory 320 may be on-chip with other components of video decoder 300 , or off-chip relative to those components.
  • video decoder 300 may retrieve coded video data from memory 120 ( FIG. 1 ). That is, memory 120 may store data as discussed above with CPB memory 320 . Likewise, memory 120 may store instructions to be executed by video decoder 300 , when some or all of the functionality of video decoder 300 is implemented in software to executed by processing circuitry of video decoder 300 .
  • the various units shown in FIG. 12 are illustrated to assist with understanding the operations performed by video decoder 300 .
  • the units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Similar to FIG. 11 , fixed-function circuits refer to circuits that provide particular functionality, and are preset on the operations that can be performed.
  • Programmable circuits refer to circuits that can programmed to perform various tasks, and provide flexible functionality in the operations that can be performed. For instance, programmable circuits may execute software or firmware that cause the programmable circuits to operate in the manner defined by instructions of the software or firmware.
  • Fixed-function circuits may execute software instructions (e.g., to receive parameters or output parameters), but the types of operations that the fixed-function circuits perform are generally immutable.
  • the one or more of the units may be distinct circuit blocks (fixed-function or programmable), and in some examples, the one or more units may be integrated circuits.
  • Video decoder 300 may include ALUs, EFUs, digital circuits, analog circuits, and/or programmable cores formed from programmable circuits. In examples where the operations of video decoder 300 are performed by software executing on the programmable circuits, on-chip or off-chip memory may store instructions (e.g., object code) of the software that video decoder 300 receives and executes.
  • instructions e.g., object code
  • Entropy decoding unit 302 may receive encoded video data from the CPB and entropy decode the video data to reproduce syntax elements.
  • Prediction processing unit 304 , inverse quantization unit 306 , inverse transform processing unit 308 , reconstruction unit 310 , and filter unit 312 may generate decoded video data based on the syntax elements extracted from the bitstream.
  • video decoder 300 reconstructs a picture on a block-by-block basis.
  • Video decoder 300 may perform a reconstruction operation on each block individually (where the block currently being reconstructed, i.e., decoded, may be referred to as a “current block”).
  • Entropy decoding unit 302 may entropy decode syntax elements defining quantized transform coefficients of a quantized transform coefficient block, as well as transform information, such as a quantization parameter (QP) and/or transform mode indication(s).
  • Inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a degree of quantization and, likewise, a degree of inverse quantization for inverse quantization unit 306 to apply.
  • Inverse quantization unit 306 may, for example, perform a bitwise left-shift operation to inverse quantize the quantized transform coefficients. Inverse quantization unit 306 may thereby form a transform coefficient block including transform coefficients.
  • inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block.
  • inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the coefficient block.
  • KLT Karhunen-Loeve transform
  • prediction processing unit 304 generates a prediction block according to prediction information syntax elements that were entropy decoded by entropy decoding unit 302 .
  • the prediction information syntax elements indicate that the current block is inter-predicted
  • motion compensation unit 316 may generate the prediction block.
  • the prediction information syntax elements may indicate a reference picture in DPB 314 from which to retrieve a reference block, as well as a motion vector identifying a location of the reference block in the reference picture relative to the location of the current block in the current picture.
  • Motion compensation unit 316 may generally perform the inter-prediction process in a manner that is substantially similar to that described with respect to motion compensation unit 224 ( FIG. 11 ).
  • intra-prediction unit 318 may generate the prediction block according to an intra-prediction mode indicated by the prediction information syntax elements. Again, intra-prediction unit 318 may generally perform the intra-prediction process in a manner that is substantially similar to that described with respect to intra-prediction unit 226 ( FIG. 11 ). Intra-prediction unit 318 may retrieve data of neighboring samples to the current block from DPB 314 .
  • Reconstruction unit 310 may reconstruct the current block using the prediction block and the residual block. For example, reconstruction unit 310 may add samples of the residual block to corresponding samples of the prediction block to reconstruct the current block.
  • Filter unit 312 may perform one or more filter operations on reconstructed blocks. For example, filter unit 312 may perform deblocking operations to reduce blockiness artifacts along edges of the reconstructed blocks. Operations of filter unit 312 are not necessarily performed in all examples.
  • Video decoder 300 may store the reconstructed blocks in DPB 314 .
  • DPB 314 may provide reference information, such as samples of a current picture for intra-prediction and previously decoded pictures for subsequent motion compensation, to prediction processing unit 304 .
  • video decoder 300 may output decoded pictures from DPB for subsequent presentation on a display device, such as display device 118 of FIG. 1 .
  • video decoder 300 represents an example of a video decoding device including a memory configured to store video data, and one or more processing units implemented in circuitry and configured to perform the example operations described in this disclosure.
  • prediction processing unit 304 of video decoder 300 may be configured to perform the example techniques described in this disclosure. However, the example techniques may be performed by other components or other components in combination with prediction processing unit 304 .
  • a memory such as CPB memory 320 , DPB 314 , and/or memory 120 ( FIG. 1 ), may be configured to store reference pictures and sample values of neighboring samples of a block in a picture.
  • Prediction processing unit 304 may be configured to generate an inter-intra-prediction block (e.g., final prediction block) using the reference pictures and neighboring sample values stored in the memory.
  • the memory may store information indicating the weights associated with a classification of the intra-prediction mode
  • prediction processing unit 304 may parse the memory to determine the first weight and the second weight based on the classification.
  • prediction processing unit 304 may determine an intra-prediction mode classification based on the intra-prediction mode.
  • prediction processing unit 304 may determine, from a plurality of ranges, a range within which the intra-prediction mode resides. The plurality of ranges may be based on angles associated with prediction directions of corresponding intra-prediction modes.
  • Prediction processing unit 304 may then determine the intra-prediction mode classification based on the determined range.
  • Prediction processing unit 304 may determine the first weight and the second weight based on the determined intra-prediction mode classification.
  • the first weight and the second weight may be based also on respective locations of sample values of prediction blocks generated from inter- and intra-prediction mode techniques. For instance, in a first prediction block generated according to an intra-prediction mode, a first sample located at (0, 0) may be assigned a corresponding weight value, a second sample located at (0, 1) may be assigned a corresponding weight value, and so forth. The corresponding weight values may also be based on the intra-prediction mode. Similarly, in a second prediction block generated according to an inter-prediction mode, a first sample located at (0, 0) may be assigned a corresponding weight value, a second sample located at (0, 1) may be assigned a corresponding weight value, and so forth. The corresponding weight values may also be based on the intra-prediction mode.
  • prediction processing unit 304 may determine the first weight and the second weight based on a polynomial equation having values defined by the intra-prediction mode and one or more coefficients.
  • the one or more coefficients may only be integers. Examples of the polynomial equation are given above.
  • prediction processing unit 304 may be configured to construct a candidate list that includes an inter-intra candidate. In some examples, prediction processing unit 304 may be configured to construct a candidate list that includes an inter-intra candidate. For example, prediction processing unit 304 may construct a list of candidate motion vector predictors, for storage in the memory, for a current block. To construct the list of candidate motion vector predictors, prediction processing unit 304 may include an inter-prediction candidate in the list of candidate motion vector predictors. The inter-prediction candidate includes motion information of a neighboring or collocated block of the current block. The flowchart of FIG. 13 illustrates examples of neighboring or collocated blocks that are included in the list of candidate motion vector predictors.
  • Prediction processing unit 304 may also include an inter-intra candidate in the list of candidate motion vector predictors.
  • the inter-intra candidate includes information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode.
  • Prediction processing unit 304 may reconstruct the current block based on the inter-intra candidate. For example, prediction processing unit 304 may add values of the prediction block (e.g., inter-intra-prediction block) to values of a residual block signaled by video encoder 200 to reconstruct the current block.
  • prediction processing unit 304 may add values of the prediction block (e.g., inter-intra-prediction block) to values of a residual block signaled by video encoder 200 to reconstruct the current block.
  • FIG. 15 is a flowchart illustrating an example method of decoding video data.
  • video decoder 300 may determine an intra-prediction mode for a current block of a picture ( 500 ). For instance, video decoder 300 may receive information from the bitstream that indicates an intra-prediction mode. As another example, video decoder 300 may determine an intra-prediction mode for the current block based on intra-prediction modes of neighboring blocks.
  • Video decoder 300 may determine a first weight and a second weight based on the determined intra-prediction mode ( 502 ). As described above and further below, the first weight and second weight may be for applying to a first prediction block generated according to the intra-prediction mode, or a second prediction block generated according to an inter-prediction mode.
  • video decoder 300 may determine the first weight and second weight based on associated values.
  • video decoder 300 may determine an intra-prediction mode classification based on the intra-prediction mode. For instance, video decoder 300 may determine, from a plurality of ranges, a range within which the intra-prediction mode resides, and determine the intra-prediction mode classification based on the determined range. Video decoder 300 may determine the first weight and the second weight based on the determined intra-prediction mode classification.
  • video decoder 300 may determine respective first weights and second weights for each sample in the respective first and second prediction blocks based on the intra-prediction mode and a location of each sample in the respective first and second prediction blocks. For instance, for each sample in the respective first and second prediction blocks, video decoder 300 may determine respective first and second weights. The respective first and second weights may be based on the location of the respective samples in the first and second prediction blocks and based on the intra-prediction mode. In some examples, the first and second weights may be the same for all samples in the first and second prediction blocks.
  • video decoder 300 may determine the first weight and the second weight based on a polynomial equation having values defined by the intra-prediction mode and one or more coefficients.
  • the one or more coefficients are integers in some examples.
  • Video decoder 300 may generate a first prediction block for the current block of the picture according to the intra-prediction mode ( 504 ). For example, video decoder 300 may generate a prediction block based on the neighboring sample values, stored in memory, where which neighboring sample values to use is defined by the intra-prediction mode.
  • Video decoder 300 may apply the first weight to the first prediction block to generate a first weighted block ( 508 ). For example, video decoder 300 may multiply the first weight with each sample in the first prediction block to generate the first weighted block. As described above, the first weight may be the same for each sample in the first prediction block, or two or more of the samples in the first prediction block may have different first weights (e.g., such as where the value of the first weight is based on the location of the sample in the first prediction block).
  • Video decoder 300 may apply the second weight to the second prediction block to generate a second weighted block ( 510 ). For example, video decoder 300 may multiply the second weight with each sample in the second prediction block to generate the second weighted block. As described above, the second weight may be the same for each sample in the second prediction block, or two or more of the samples in the second prediction block may have different first weights (e.g., such as where the value of the second weight is based on the location of the sample in the second prediction block).
  • Video decoder 300 may generate a final prediction block for the current block of the picture based on the first weighted block and the second weighted block ( 512 ) (e.g., sum of the first and second weighted blocks).
  • the final prediction block may also be referred to as an inter-intra-prediction block.
  • video decoder 300 may add the first weighted block and the second weighted block to generate the final prediction block.
  • the current block may include a luma component and a chroma component.
  • video decoder 300 may generate both a final luma prediction block and a final chroma prediction block based on the first and second weights applied to respective luma and chroma components of the first and second prediction blocks.
  • video decoder 300 may generate only a final luma prediction block or a final chroma prediction block based on the first and second weights applied to only one of respective luma and chroma components of the first and second prediction blocks.
  • Video decoder 300 may reconstruct the current block of the picture based on the final prediction block and a residual between the final prediction block and the current block of the picture ( 514 ). For example, video decoder 300 may generate a residual block based on information received in the bitstream. Video decoder 300 may add the residual block to the final prediction block to reconstruct the current block of the picture.
  • FIG. 16 is a flowchart illustrating an example method of encoding video data.
  • video encoder 200 may determine an intra-prediction mode for a current block of a picture ( 600 ). For instance, video encoder 200 may construct different prediction blocks for respective intra-prediction modes and determine which one of the intra-prediction modes provides the best quality as the intra-prediction mode. As another example, video encoder 200 may determine the intra-prediction mode based on intra-prediction modes of neighboring blocks.
  • Video encoder 200 may determine a first weight and a second weight based on the determined intra-prediction mode ( 602 ). As described above and further below, the first weight and second weight may be for applying to a first prediction block generated according to the intra-prediction mode, or a second prediction block generated according to an inter-prediction mode.
  • video encoder 200 may determine the first weight and second weight based on associated values.
  • video encoder 200 may determine an intra-prediction mode classification based on the intra-prediction mode. For instance, video encoder 200 may determine, from a plurality of ranges, a range within which the intra-prediction mode resides, and determine the intra-prediction mode classification based on the determined range. Video encoder 200 may determine the first weight and the second weight based on the determined intra-prediction mode classification.
  • video encoder 200 may determine respective first weights and second weights for each sample in the respective first and second prediction blocks based on the intra-prediction mode and a location of each sample in the respective first and second prediction blocks. For instance, for each sample in the respective first and second prediction blocks, video encoder 200 may determine respective first and second weights. The respective first and second weights may be based on the location of the respective samples in the first and second prediction blocks and based on the intra-prediction mode. In some examples, the first and second weights may be the same for all samples in the first and second prediction blocks.
  • video encoder 200 may determine the first weight and the second weight based on a polynomial equation having values defined by the intra-prediction mode and one or more coefficients.
  • the one or more coefficients are integers in some examples.
  • Video encoder 200 may generate a first prediction block for the current block of the picture according to the intra-prediction mode ( 604 ). For example, video encoder 200 may generate a prediction block based on the neighboring sample values, stored in memory, where which neighboring sample values to use is defined by the intra-prediction mode.
  • Video encoder 200 may generate a second prediction block for the current block of the picture according to an inter-prediction mode ( 606 ). For example, video encoder 200 may determine a motion vector and a reference picture based on which combination of motion vector and reference picture provides the best quality or based on motion information of neighboring blocks. Video encoder 200 may retrieve, from memory, a prediction block from the reference picture identified by the motion vector.
  • Video encoder 200 may apply the first weight to the first prediction block to generate a first weighted block ( 608 ). For example, video encoder 200 may multiply the first weight with each sample in the first prediction block to generate the first weighted block. As described above, the first weight may be the same for each sample in the first prediction block, or two or more of the samples in the first prediction block may have different first weights (e.g., such as where the value of the first weight is based on the location of the sample in the first prediction block).
  • Video encoder 200 may apply the second weight to the second prediction block to generate a second weighted block ( 610 ). For example, video encoder 200 may multiply the second weight with each sample in the second prediction block to generate the second weighted block. As described above, the second weight may be the same for each sample in the second prediction block, or two or more of the samples in the second prediction block may have different first weights (e.g., such as where the value of the second weight is based on the location of the sample in the second prediction block).
  • the current block may include a luma component and a chroma component.
  • video encoder 200 may generate both a final luma prediction block and a final chroma prediction block based on the first and second weights applied to respective luma and chroma components of the first and second prediction blocks.
  • video encoder 200 may generate only a final luma prediction block or a final chroma prediction block based on the first and second weights applied to only one of respective luma and chroma components of the first and second prediction blocks.
  • Video encoder 200 may generate a residual block based on the final prediction block and the current block ( 614 ). For example, video encoder 200 may subtract the values of the final prediction block from the values of the current block to generate the residual block. Video encoder 200 may then signal information indicative of the residual block ( 616 ). For example, video encoder 200 may DCT transform, quantize, and entropy encode the information indicative of the residual block.
  • FIG. 17 is a flowchart illustrating an example method of decoding video data.
  • video decoder 300 may be configured to construct a list of candidate motion vector predictors, for storage in memory, for a current block ( 700 ).
  • Examples of the list of candidate motion vector predictors include the merge candidate list and the AMVP candidate list.
  • video decoder 300 may include an inter-prediction candidate in the list of candidate motion vector predictors ( 702 ).
  • the inter-prediction candidate may be motion information of a neighboring or collocated block of the current block.
  • Video decoder 300 may also include an inter-intra candidate in the list of candidate motion vector predictors ( 704 ).
  • the inter-intra candidate may include information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode.
  • the inter-prediction candidate is illustrated as being included first, and after including the inter-prediction candidate, video decoder 300 may include the inter-intra candidate in the list of candidate motion vector predictors. However, in some examples, video decoder 300 may first include the inter-intra candidate, and then include the inter-prediction candidate in the list of motion vector predictors.
  • video decoder 300 may determine the motion information for the second prediction block and the intra-prediction mode for the first prediction block. For instance, video decoder 300 may receive information in the bitstream of the motion information and the intra-prediction mode. As another example, video decoder 300 may determine the motion information and the intra-prediction mode based on neighboring blocks. As another example, video decoder 300 may determine motion information of an inter-predicted block identified by a smallest index in the list of candidate motion vector predictors to determine the information to generate the second prediction block, and generate the second prediction block based on the motion information. Video decoder 300 may determine an intra-prediction mode to determine the information to generate the first prediction block, and generate the first prediction block based on the determined intra-prediction mode.
  • video decoder 300 may determine a smallest index (e.g., MinInterIntraIdx) where the inter-intra candidate can be included in the list of candidate motion vector predictors. In such examples, video decoder 300 may include the inter-intra candidate in the list of candidate motion vector predictors based on the determined smallest index where the inter-intra candidate can be included.
  • a smallest index e.g., MinInterIntraIdx
  • video decoder 300 may determine a maximum number of allowable inter-intra candidates (e.g., InterIntraNum). In such examples, video decoder 300 may include the inter-intra candidate in the list of candidate motion vector predictors based on the determined maximum number of allowable inter-intra candidates (e.g., so that the number of inter-intra candidates is not greater than InterIntraNum).
  • a maximum number of allowable inter-intra candidates e.g., InterIntraNum
  • video decoder 300 may include the inter-intra candidate in the list of candidate motion vector predictors based on the determined maximum number of allowable inter-intra candidates (e.g., so that the number of inter-intra candidates is not greater than InterIntraNum).
  • Video decoder 300 may determine that the inter-intra candidate is to be used ( 706 ). For example, video decoder 300 may receive an index into the list of candidate motion vector predictors, and determine that the inter-intra candidate is identified in the list of candidate motion vector predictors by the received index. Video decoder 300 may generate the inter-intra-prediction block using the first and second prediction blocks (e.g., using any of the techniques described above or other techniques) ( 708 ).
  • video decoder 300 may determine that the inter-intra candidate is to be used to generate the inter-intra-prediction block for the current block without receiving any additional signaling indicating that the current block is predicted according to an inter-intra-prediction mode (e.g., that the current block is predicted with the inter-intra-prediction block).
  • an inter-intra-prediction mode e.g., that the current block is predicted with the inter-intra-prediction block.
  • Video decoder 300 may reconstruct the current block based on the inter-intra candidate ( 710 ). For example, video decoder 300 may add values of the prediction block to values of a residual block to reconstruct the current block.
  • FIG. 18 is a flowchart illustrating an example method of encoding video data.
  • video encoder 200 may be configured to construct a list of candidate motion vector predictors, for storage in memory, for a current block ( 800 ).
  • Examples of the list of candidate motion vector predictors include the merge candidate list and the AMVP candidate list.
  • video encoder 200 may include an inter-prediction candidate in the list of candidate motion vector predictors ( 802 ).
  • the inter-prediction candidate may be motion information of a neighboring or collocated block of the current block.
  • Video encoder 200 may also include an inter-intra candidate in the list of candidate motion vector predictors ( 804 ).
  • the inter-intra candidate may include information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode.
  • the inter-intra-prediction block is identified in a list of candidate motion vector predictors, and can be used to predict the current block.
  • the list of candidate motion vector predictors is leveraged to identify an inter-intra-prediction block.
  • the inter-prediction candidate is illustrated as being included first, and after including the inter-prediction candidate, video encoder 200 may include the inter-intra candidate in the list of candidate motion vector predictors. However, in some examples, video encoder 200 may first include the inter-intra candidate, and then include the inter-prediction candidate in the list of motion vector predictors.
  • video encoder 200 may determine the motion information for the second prediction block and the intra-prediction mode for the first prediction block. For instance, video encoder 200 may signal information in the bitstream of the motion information and the intra-prediction mode. As another example, video encoder 200 may determine the motion information and the intra-prediction mode based on neighboring blocks. As another example, video encoder 200 may determine motion information of an inter-predicted block identified by a smallest index in the list of candidate motion vector predictors to determine the information to generate the second prediction block, and generate the second prediction block based on the motion information. Video encoder 200 may determine an intra-prediction mode to determine the information to generate the first prediction block, and generate the first prediction block based on the determined intra-prediction mode.
  • video encoder 200 may determine a smallest index (e.g., MinInterIntraIdx) where the inter-intra candidate can be included in the list of candidate motion vector predictors. In such examples, video encoder 200 may include the inter-intra candidate in the list of candidate motion vector predictors based on the determined smallest index where the inter-intra candidate can be included.
  • a smallest index e.g., MinInterIntraIdx
  • video encoder 200 may determine a maximum number of allowable inter-intra candidates (e.g., InterIntraNum). In such examples, video encoder 200 may include the inter-intra candidate in the list of candidate motion vector predictors based on the determined maximum number of allowable inter-intra candidates (e.g., so that the number of inter-intra candidates is not greater than InterIntraNum).
  • a maximum number of allowable inter-intra candidates e.g., InterIntraNum.
  • Video encoder 200 may determine that the inter-intra candidate is to be used ( 806 ). For example, video encoder 200 may determine that the inter-intra-prediction block provides the best quality. Video encoder 200 may generate the inter-intra-prediction block using the first and second prediction blocks (e.g., using any of the techniques described above or other techniques) ( 808 ). In this manner, video encoder 200 may indicate to video decoder 300 that the inter-intra candidate is to be used as the prediction block for the current block without needing to signal any additional information indicating that the current block is predicted according to an inter-intra-prediction mode (e.g., that the current block is predicted with the inter-intra-prediction block).
  • an inter-intra-prediction mode e.g., that the current block is predicted with the inter-intra-prediction block.
  • Video encoder 200 may signal an index value into the list of candidate motion vector predictors that identifies the inter-intra candidate in the list of candidate motion vector predictors based on the determination ( 810 ). Video encoder 200 may also determine a residual between the current block and the prediction block, and signal information indicative of the residual.
  • Computer-readable media may include computer-readable storage media, which corresponds to a tangible medium such as data storage media, or communication media including any medium that facilitates transfer of a computer program from one place to another, e.g., according to a communication protocol.
  • Computer-readable media generally may correspond to (1) tangible computer-readable storage media which is non-transitory or (2) a communication medium such as a signal or carrier wave.
  • Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, code and/or data structures for implementation of the techniques described in this disclosure.
  • a computer program product may include a computer-readable medium.
  • such computer-readable storage media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage, or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • any connection is properly termed a computer-readable medium.
  • a computer-readable medium For example, if instructions are transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium.
  • DSL digital subscriber line
  • Disk and disc includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
  • processors such as one or more digital signal processors (DSPs), general purpose microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuitry.
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • FPGAs field programmable gate arrays
  • processors may refer to any of the foregoing structure or any other structure suitable for implementation of the techniques described herein.
  • the functionality described herein may be provided within dedicated hardware and/or software modules configured for encoding and decoding, or incorporated in a combined codec. Also, the techniques could be fully implemented in one or more circuits or logic elements.
  • the techniques of this disclosure may be implemented in a wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC) or a set of ICs (e.g., a chip set).
  • IC integrated circuit
  • a set of ICs e.g., a chip set.
  • Various components, modules, or units are described in this disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily require realization by different hardware units. Rather, as described above, various units may be combined in a codec hardware unit or provided by a collection of interoperative hardware units, including one or more processors as described above, in conjunction with suitable software and/or firmware.

Landscapes

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

Abstract

Techniques are described for using an inter-intra-prediction block. A video coder may generate a first prediction block according to an intra-prediction mode and generate a second prediction block according to an inter-prediction mode. The video coder may weighted combine, such as based on the intra-prediction mode, the two prediction blocks to generate an inter-intra-prediction block (e.g., final prediction block). In some examples, an inter-intra candidate is identified in a list of candidate motion vector predictors, and an inter-intra-prediction block is used based on identification of the inter-intra candidate in the list of candidate motion vector predictors.

Description

  • This application claims the benefit of U.S. Provisional Patent Application 62/524,231, filed Jun. 23, 2017, the entire content of which is incorporated by reference.
  • TECHNICAL FIELD
  • This disclosure relates to video encoding and video decoding.
  • BACKGROUND
  • Digital video capabilities can be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video gaming devices, video game consoles, cellular or satellite radio telephones, so-called “smart phones,” video teleconferencing devices, video streaming devices, and the like. Digital video devices implement video coding techniques, such as those described in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264/MPEG-4, Part 10, Advanced Video Coding (AVC), the High Efficiency Video Coding (HEVC) standard, ITU-T H.265/High Efficiency Video Coding (HEVC), and extensions of such standards. The video devices may transmit, receive, encode, decode, and/or store digital video information more efficiently by implementing such video coding techniques.
  • Video coding techniques include spatial (intra-picture) prediction and/or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. For block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs) and/or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction with respect to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction with respect to reference samples in neighboring blocks in the same picture or temporal prediction with respect to reference samples in other reference pictures. Pictures may be referred to as frames, and reference pictures may be referred to as reference frames.
  • SUMMARY
  • This disclosure is related to the field of coding of video signals. For example, some aspects relate to block-based prediction in video coding. In some examples, a video coder may be configured to perform inter-intra-prediction (e.g., prediction in which inter-prediction and intra-prediction are combined). In inter-intra-prediction, the video coder generates a first prediction block based on intra-prediction techniques, and a second prediction block based on inter-prediction techniques. The video coder generates a final prediction block based on a weighted combination of the first and second prediction blocks. One or more examples described in this disclosure relate to techniques for how to determine the weighting applied to generate the final prediction block.
  • Also, one or more examples described in this disclosure relate to techniques for constructing a merge candidate list that includes a final prediction block, also called an inter-intra candidate. In examples for constructing the merge candidate list, the final prediction block may be generated with a weighted combination of the first and second prediction blocks, but the example techniques do not require use of a weighted combination of the first and second prediction blocks for constructing the merge candidate list.
  • In one example, the disclosure describes a method of decoding, the method comprising determining an intra-prediction mode for a current block of a picture, determining a first weight and a second weight based on the determined intra-prediction mode, generating a first prediction block for the current block of the picture according to the intra-prediction mode, generating a second prediction block for the current block of the picture according to an inter-prediction mode, applying the first weight to the first prediction block to generate a first weighted block, applying the second weight to the second prediction block to generate a second weighted block, generating a final prediction block for the current block of the picture based on the first weighted block and second weighed block, and reconstructing the current block of the picture based on the final prediction block and a residual between the final prediction block and the current block of the picture.
  • In one example, the disclosure describes a method of encoding, the method comprising determining an intra-prediction mode for a current block of a picture, determining a first weight and a second weight based on the determined intra-prediction mode, generating a first prediction block for the current block of the picture according to the intra-prediction mode, generating a second prediction block for the current block of the picture according to an inter-prediction mode, applying the first weight to the first prediction block to generate a first weighted block, applying the second weight to the second prediction block to generate a second weighted block, generating a final prediction block for the current block of the picture based on the first weighted block and second weighed block, generating a residual based on the final prediction block and the current block of the picture, and signaling information indicative of the residual.
  • In one example, the disclosure describes a device for coding, the device comprising a memory configured to store sample values neighboring a current block of a picture and reference pictures for the current block of the picture, and a video coder comprising processing circuitry. The video coder is configured to determine an intra-prediction mode for the current block of the picture, determine a first weight and a second weight based on the determined intra-prediction mode, generate a first prediction block for the current block of the picture according to the intra-prediction mode based on the sample values stored in the memory, generate a second prediction block for the current block of the picture according to an inter-prediction mode based on a reference picture of the reference pictures stored in the memory, apply the first weight to the first prediction block to generate a first weighted block, apply the second weight to the second prediction block to generate a second weighted block, generate a final prediction block for the current block of the picture based on the first weighted block and second weighed block, and at least one of reconstruct the current block of the picture based on the final prediction block and a residual between the final prediction block and the current block of the picture, or generate the residual, and signal information indicative of the residual.
  • In one example, the disclosure describes a computer-readable storage medium storing instructions thereon that when executed cause one or more processors to determine an intra-prediction mode for a current block of a picture, determine a first weight and a second weight based on the determined intra-prediction mode, generate a first prediction block for the current block of the picture according to the intra-prediction mode, generate a second prediction block for the current block of the picture according to an inter-prediction mode, apply the first weight to the first prediction block to generate a first weighted block, apply the second weight to the second prediction block to generate a second weighted block, generate a final prediction block for the current block of the picture based on the first weighted block and second weighed block, and at least one of reconstruct the current block of the picture based on the final prediction block and a residual between the final prediction block and the current block of the picture, or generate the residual, and signal information indicative of the residual.
  • In one example, the disclosure describes a method of decoding, the method comprising constructing a list of candidate motion vector predictors for a current block, wherein constructing the list of candidate motion vector predictors comprises including an inter-prediction candidate in the list of candidate motion vector predictors, wherein the inter-prediction candidate comprises motion information of a neighboring or collocated block of the current block, and including an inter-intra candidate in the list of candidate motion vector predictors, wherein the inter-intra candidate comprises information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode. The method also includes determining that the inter-intra candidate is to be used, generating an inter-intra-prediction block based on the first prediction block and the second prediction block, and reconstructing the current block based on the inter-intra-prediction block.
  • In one example, the disclosure describes a method of encoding, the method comprising constructing a list of candidate motion vector predictors for a current block, wherein constructing the list of candidate motion vector predictors comprises including an inter-prediction candidate in the list of candidate motion vector predictors, wherein the inter-prediction candidate comprises motion information of a neighboring or collocated block of the current block, and including an inter-intra candidate in the list of candidate motion vector predictors, wherein the inter-intra candidate comprises information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode. The method also includes determining that the inter-intra candidate is to be used, and signaling an index value into the list of candidate motion vector predictors that identifies the inter-intra candidate in the list of candidate motion vector predictors based on the determination.
  • In one example, the disclosure describes a device for coding, the device comprising a memory, and a video coder comprising processing circuitry. The video coder is configured to construct a list of candidate motion vector predictors, for storage in the memory, for a current block, wherein to construct the list of candidate motion vector predictors, the video coder is configured to include an inter-prediction candidate in the list of candidate motion vector predictors, wherein the inter-prediction candidate comprises motion information of a neighboring or collocated block of the current block, and include an inter-intra candidate in the list of candidate motion vector predictors, wherein the inter-intra candidate comprises information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode. The video coder is further configured to determine that the inter-intra candidate is to be used, generate an inter-intra-prediction block based on the first prediction block and the second prediction block, and at least one of reconstruct the current block based on the inter-intra-prediction block, or signal a residual between the current block and the inter-intra-prediction block and an index value into the list of candidate motion vector predictors that identifies the inter-intra candidate in the list of candidate motion vector predictors based on the determination that the inter-intra candidate is to be used.
  • In one example, the disclosure describes a computer-readable storage medium storing instructions thereon that when executed cause one or more processors to construct a list of candidate motion vector predictors, for storage in the memory, for a current block, wherein to construct the list of candidate motion vector predictors, the instructions cause the one or more processors to include an inter-prediction candidate in the list of candidate motion vector predictors, wherein the inter-prediction candidate comprises motion information of a neighboring or collocated block of the current block, and include an inter-intra candidate in the list of candidate motion vector predictors, wherein the inter-intra candidate comprises information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode. The instructions also cause the one or more processors to determine that the inter-intra candidate is to be used, generate an inter-intra-prediction block based on the first prediction block and the second prediction block, and at least one of reconstruct the current block based on the inter-intra-prediction block, or signal a residual between the current block and the inter-intra-prediction block and an index value into the list of candidate motion vector predictors that identifies the inter-intra candidate in the list of candidate motion vector predictors based on the determination that the inter-intra candidate is to be used.
  • The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims.
  • BRIEF DESCRIPTION OF DRAWINGS
  • FIG. 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.
  • FIGS. 2A and 2B are conceptual diagrams illustrating an example quadtree binary tree (QTBT) structure, and a corresponding coding tree unit (CTU).
  • FIG. 3A is a conceptual diagram illustrating an example of blocks of an intra-predicted slice.
  • FIG. 3B is a conceptual diagram illustrating an example of blocks of an inter-predicted slice.
  • FIG. 4 is a conceptual diagram illustrating an example of intra-prediction modes.
  • FIG. 5 is a conceptual diagram illustrating examples of reference frames for inter-prediction.
  • FIG. 6 is a conceptual diagram illustrating examples of neighboring blocks for a current block for coding an intra-prediction mode.
  • FIGS. 7A and 7B are conceptual diagrams illustrating examples of spatial neighboring motion vector candidates for merge and advanced motion vector prediction (AMVP) modes, respectively.
  • FIGS. 8A and 8B are conceptual diagrams illustrating examples of a temporal motion vector predictor (TMVP) candidate and motion vector scaling for TMVP, respectively.
  • FIG. 9 is a conceptual diagram illustrating an example of neighboring blocks whose spatial information is used for constructing a merge candidate list.
  • FIG. 10 is a flowchart illustrating an example manner in which to construct a merge candidate list.
  • FIG. 11 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.
  • FIG. 12 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.
  • FIG. 13 is a flowchart illustrating an example manner in which to construct a merge candidate list that includes inter-intra-candidates.
  • FIG. 14 is a flowchart illustrating another example manner in which to construct a merge candidate list that includes inter-intra-candidates.
  • FIG. 15 is a flowchart illustrating an example method of decoding video data.
  • FIG. 16 is a flowchart illustrating an example method of encoding video data.
  • FIG. 17 is a flowchart illustrating an example method of decoding video data.
  • FIG. 18 is a flowchart illustrating an example method of encoding video data.
  • DETAILED DESCRIPTION
  • Video coding techniques include an inter-prediction mode and intra-prediction mode for encoding or decoding a current block. In an inter-prediction mode, a video coder (e.g., video encoder or video decoder) generates a prediction block in a reference picture identified by motion information (e.g., motion vector that points to the prediction block and index into reference picture list for the reference picture). A video encoder determines a residual block between the prediction block and the current block, and signals information inactive of the residual block. A video decoder receives information of the residual block, and reconstructs the current block by adding the residual block to the prediction block.
  • In an intra-prediction mode, a video coder generates a prediction block based on neighboring sample values. Similar to inter-prediction, a video encoder determines a residual block between the prediction block and the current block, and signals information inactive of the residual block. A video decoder receives information of the residual block, and reconstructs the current block by adding the residual block to the prediction block.
  • This disclosure describes examples of an inter-intra-prediction block. The inter-intra-prediction block is based on a weighted combination of the prediction block generated from an inter-prediction mode, and the prediction block generated from an intra-prediction mode. For example, a video coder generates a first prediction block for a block according to an intra-prediction mode, and generates a second prediction block for the block according to an inter-prediction mode. The video coder applies weights to the first and second prediction block to generate respective first and second weighted prediction blocks. The video coder adds the first and second weighted prediction blocks together, i.e., sums the first and second weighted prediction blocks, to generate a final prediction block, also called an inter-intra-prediction block. A video encoder determines a residual between the final prediction block and the current block, and a video decoder adds the residual to the final prediction block to reconstruct the current block.
  • This disclosure describes example ways in which to determine the weights that are applied to the prediction blocks generated according to an intra-prediction mode and an inter-prediction mode. As one example, there may be a plurality of intra-prediction modes (e.g., 67 different intra-prediction modes based on angles of the samples used to construct the intra-prediction block). The video coder determines an intra-prediction mode from the plurality of intra-prediction modes. The video coder may determine the weights based on the determined intra-prediction modes. For example, the video coder may determine a first weight (w1) based on the determined intra-prediction mode, and determine a second weight (w2) based on the determined intra-prediction mode. The video coder may multiply the first prediction block by w1 to generate the first weighted prediction block, and multiply the second prediction block by w2 to generate the second weighted prediction block.
  • Moreover, for determining whether to use the inter-intra-prediction block, the video coder constructs a list of candidate reference blocks. In some examples, the video coder may include an inter-intra candidate in the list of candidate reference blocks. The inter-intra candidate includes information to generate a first prediction block according to an intra-prediction mode and a second prediction block according to an inter-prediction mode. If the video decoder receives an index into the list of candidate reference blocks that identifies the inter-intra candidate, the video decoder generates the inter-intra-prediction block using one or more example techniques described in this disclosure. For instance, the video decoder may generate the inter-intra-prediction block using first and second weights as described above, or use other techniques that do not require weighting or that use weighting in a way other than example above.
  • The video decoder reconstructs the current block using the inter-intra-prediction block. This disclosure describes example techniques for including the inter-intra-prediction block in the list of candidate reference blocks.
  • FIG. 1 is a block diagram illustrating an example video encoding and decoding system 100 that may perform the techniques of this disclosure. The techniques of this disclosure are generally directed to coding (encoding and/or decoding) video data. In general, video data includes any data for processing a video. Thus, video data may include raw, uncoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.
  • As shown in FIG. 1, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116, in this example. In particular, source device 102 provides the video data to destination device 116 via a computer-readable medium 110. Source device 102 and destination device 116 may comprise any of a wide range of devices, including desktop computers, notebook (i.e., laptop) computers, tablet computers, set-top boxes, telephone handsets such smartphones, televisions, cameras, display devices, digital media players, video gaming consoles, video streaming device, or the like. In some cases, source device 102 and destination device 116 may be equipped for wireless communication, and thus may be referred to as wireless communication devices.
  • In the example of FIG. 1, source device 102 includes video source 104, memory 106, video encoder 200, and output interface 108. Destination device 116 includes input interface 122, video decoder 300, memory 120, and display device 118. In accordance with this disclosure, video encoder 200 of source device 102 and video decoder 300 of destination device 116 may be configured to apply the techniques for applying inter-intra prediction. For example, video encoder 200 and video decoder 300 may each generate an inter-intra-prediction block based on an inter-reference block (e.g., a prediction block generated from an inter-prediction mode) and an intra-reference block (e.g., a prediction block generated from an intra-prediction mode). This inter-inter-prediction block is the reference block with which video encoder 200 subtracts a current block to determine residual data that is signaled to video decoder 300, and is the reference block to which video decoder 300 adds the residual data to reconstruct the current block.
  • In one or more examples, video encoder 200 and video decoder 300 generate the inter-intra-prediction block based on a weighted combination of the two prediction blocks: a first prediction block generated from an inter-prediction mode, and a second prediction block generated from an intra-prediction mode. In some examples, the weights applied to the first and second prediction blocks, for the weighted combination, may be based on the intra-prediction mode. In some examples, the intra-prediction mode may determine the weight that is applied to the first prediction block, even though the first prediction block is generated from an inter-prediction mode. However, in some examples, the weight applied to the prediction block generated from the inter-prediction mode need not be based on the intra-prediction mode.
  • Furthermore, in some examples, video encoder 200 and video decoder 300 may construct example list of candidate motion vector predictions that identify whether the inter-intra-prediction block is used for prediction purposes. This disclosure describes one or more example techniques for how video encoder 200 and video decoder 300 may include an inter-intra candidate in one or more of the example list of candidate motion vector predictors, and when the inter-intra candidate is selected, video encoder 200 and video decoder 300 may generate an inter-intra-prediction block as a prediction block for the current block.
  • Source device 102 represents an example of a video encoding device, while destination device 116 represents an example of a video decoding device. In other examples, a source device and a destination device may include other components or arrangements. For example, source device 102 may receive video data from an external video source, such as an external camera. Likewise, destination device 116 may interface with an external display device, rather than including an integrated display device.
  • System 100 as shown in FIG. 1 is merely one example. In general, any digital video encoding and/or decoding device may perform techniques for dynamic range adjustment. Source device 102 and destination device 116 are merely examples of such coding devices in which source device 102 generates coded video data for transmission to destination device 116. This disclosure refers to a “coding” device as a device that performs coding (encoding and/or decoding) of data. Thus, video encoder 200 and video decoder 300 represent examples of coding devices, in particular, a video encoder and a video decoder, respectively. In some examples, devices 102, 116 may operate in a substantially symmetrical manner such that each of devices 102, 116 include video encoding and decoding components. Hence, system 100 may support one-way or two-way video transmission between video devices 102, 116, e.g., for video streaming, video playback, video broadcasting, or video telephony.
  • In general, video source 104 represents a source of video data (i.e., raw, uncoded video data) and provides a sequential series of pictures (also referred to as “frames”) of the video data to video encoder 200, which encodes data for the pictures. Video source 104 of source device 102 may include a video capture device, such as a video camera, a video archive containing previously captured raw video, and/or a video feed interface to receive video from a video content provider. As a further alternative, video source 104 may generate computer graphics-based data as the source video, or a combination of live video, archived video, and computer-generated video. In each case, video encoder 200 encodes the captured, pre-captured, or computer-generated video data. Video encoder 200 may rearrange the pictures from the received order (sometimes referred to as “display order”) into a coding order for coding. Video encoder 200 may generate a bitstream including encoded video data. Source device 102 may then output the encoded video data via output interface 108 onto computer-readable medium 110 for reception and/or retrieval by, e.g., input interface 122 of destination device 116.
  • Memory 106 of source device 102 and memory 120 of destination device 116 represent general purpose memories. In some example, memories 106, 120 may store raw video data, e.g., raw video from video source 104 and raw, decoded video data from video decoder 300. Additionally or alternatively, memories 106, 120 may store software instructions executable by, e.g., video encoder 200 and video decoder 300, respectively. Although shown separately from video encoder 200 and video decoder 300 in this example, it should be understood that video encoder 200 and video decoder 300 may also include internal memories for functionally similar or equivalent purposes. Furthermore, memories 106, 120 may store encoded video data, e.g., output from video encoder 200 and input to video decoder 300. In some examples, portions of memories 106, 120 may be allocated as one or more video buffers, e.g., to store raw, decoded, and/or encoded video data.
  • Computer-readable medium 110 may represent any type of medium or device capable of transporting the encoded video data from source device 102 to destination device 116. In one example, computer-readable medium 110 represents a communication medium to enable source device 102 to transmit encoded video data directly to destination device 116 in real-time, e.g., via a radio frequency network or computer-based network. Output interface 108 may modulate a transmission signal including the encoded video data, and input interface 122 may modulate the received transmission signal, according to a communication standard, such as a wireless communication protocol. The communication medium may comprise any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide-area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful to facilitate communication from source device 102 to destination device 116.
  • In some examples, source device 102 may output encoded data from output interface 108 to storage device 112. Similarly, destination device 116 may access encoded data from storage device 112 via input interface 122. Storage device 112 may include any of a variety of distributed or locally accessed data storage media such as a hard drive, Blu-ray discs, DVDs, CD-ROMs, flash memory, volatile or non-volatile memory, or any other suitable digital storage media for storing encoded video data.
  • In some examples, source device 102 may output encoded video data to file server 114 or another intermediate storage device that may store the encoded video generated by source device 102. Destination device 116 may access stored video data from file server 114 via streaming or download. File server 114 may be any type of server device capable of storing encoded video data and transmitting that encoded video data to the destination device 116. File server 114 may represent a web server (e.g., for a website), a File Transfer Protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. Destination device 116 may access encoded video data from file server 114 through any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, etc.), or a combination of both that is suitable for accessing encoded video data stored on file server 114. File server 114 and input interface 122 may be configured to operate according to a streaming transmission protocol, a download transmission protocol, or a combination thereof.
  • Output interface 108 and input interface 122 may represent wireless transmitters/receiver, modems, wired networking components (e.g., Ethernet cards), wireless communication components that operate according to any of a variety of IEEE 802.11 standards, or other physical components. In examples where output interface 108 and input interface 122 comprise wireless components, output interface 108 and input interface 122 may be configured to transfer data, such as encoded video data, according to a cellular communication standard, such as 4G, 4G-LTE (Long-Term Evolution), LTE Advanced, 5G, or the like. In some examples where output interface 108 comprises a wireless transmitter, output interface 108 and input interface 122 may be configured to transfer data, such as encoded video data, according to other wireless standards, such as an IEEE 802.11 specification, an IEEE 802.15 specification (e.g., ZigBee™), a Bluetooth™ standard, or the like. In some examples, source device 102 and/or destination device 116 may include respective system-on-a-chip (SoC) devices. For example, source device 102 may include an SoC device to perform the functionality attributed to video encoder 200 and/or output interface 108, and destination device 116 may include an SoC device to perform the functionality attributed to video decoder 300 and/or input interface 122.
  • The techniques of this disclosure may be applied to video coding in support of any of a variety of multimedia applications, such as over-the-air television broadcasts, cable television transmissions, satellite television transmissions, Internet streaming video transmissions, such as dynamic adaptive streaming over HTTP (DASH), digital video that is encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications.
  • Input interface 122 of destination device 116 receives an encoded video bitstream from computer-readable medium 110 (e.g., storage device 112, file server 114, or the like). The encoded video bitstream computer-readable medium 110 may include signaling information defined by video encoder 200, which is also used by video decoder 300, such as syntax elements having values that describe characteristics and/or processing of video blocks or other coded units (e.g., slices, pictures, groups of pictures, sequences, or the like). Display device 118 displays decoded pictures of the decoded video data to a user. Display device 118 may represent any of a variety of display devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
  • Although not shown in FIG. 1, in some examples, video encoder 200 and video decoder 300 may each be integrated with an audio encoder and/or audio decoder, and may include appropriate MUX-DEMUX units, or other hardware and/or software, to handle multiplexed streams including both audio and video in a common data stream. If applicable, MUX-DEMUX units may conform to the ITU H.223 multiplexer protocol, or other protocols such as the user datagram protocol (UDP).
  • Video encoder 200 and video decoder 300 each may be implemented as any of a variety of suitable encoder and/or decoder circuitry, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware or any combinations thereof. When the techniques are implemented partially in software, a device may store instructions for the software in a suitable, non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to perform the techniques of this disclosure. Each of video encoder 200 and video decoder 300 may be included in one or more encoders or decoders, either of which may be integrated as part of a combined encoder/decoder (CODEC) in a respective device. A device including video encoder 200 and/or video decoder 300 may comprise an integrated circuit, a microprocessor, and/or a wireless communication device, such as a cellular telephone.
  • Video encoder 200 and video decoder 300 may operate according to a video coding standard, such as ITU-T H.265, also referred to as High Efficiency Video Coding (HEVC) or extensions thereto, such as the multi-view and/or scalable video coding extensions. Alternatively, video encoder 200 and video decoder 300 may operate according to other proprietary or industry standards, such as the Joint Exploration Test Model (JEM). The techniques of this disclosure, however, are not limited to any particular coding standard.
  • In general, video encoder 200 and video decoder 300 may perform block-based coding of pictures. The term “block” generally refers to a structure including data to be processed (e.g., encoded, decoded, or otherwise used in the encoding and/or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and/or chrominance data. In general, video encoder 200 and video decoder 300 may code video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, rather than coding red, green, and blue (RGB) data for samples of a picture, video encoder 200 and video decoder 300 may code luminance and chrominance components, where the chrominance components may include both red hue and blue hue chrominance components. In some examples, video encoder 200 converts received RGB formatted data to a YUV representation prior to encoding, and video decoder 300 converts the YUV representation to the RGB format. Alternatively, pre- and post-processing units (not shown) may perform these conversions.
  • This disclosure may generally refer to coding (e.g., encoding and decoding) of pictures to include the process of encoding or decoding data of the picture. Similarly, this disclosure may refer to coding of blocks of a picture to include the process of encoding or decoding data for the blocks, e.g., prediction and/or residual coding. An encoded video bitstream generally includes a series of values for syntax elements representative of coding decisions (e.g., coding modes) and partitioning of pictures into blocks. Thus, references to coding a picture or a block should generally be understood as coding values for syntax elements forming the picture or block.
  • HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video coder (such as video encoder 200) partitions a coding tree unit (CTU) into CUs according to a quadtree structure. That is, the video coder partitions CTUs and CUs into four equal, non-overlapping squares, and each node of the quadtree has either zero or four child nodes. Nodes without child nodes may be referred to as “leaf nodes,” and CUs of such leaf nodes may include one or more PUs and/or one or more TUs. The video coder may further partition PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents partitioning of TUs. In HEVC, PUs represent inter-prediction data, while TUs represent residual data. CUs that are intra-predicted include intra-prediction information, such as an intra-mode indication.
  • As another example, video encoder 200 and video decoder 300 may be configured to operate according to JEM. According to JEM, a video coder (such as video encoder 200) partitions a picture into a plurality of coding tree units (CTUs). Video encoder 200 may partition a CTU according to a tree structure, such as a quadtree-binary tree (QTBT) structure. The QTBT structure of JEM removes the concepts of multiple partition types, such as the separation between CUs, PUs, and TUs of HEVC. A QTBT structure of JEM includes two levels: a first level partitioned according to quadtree partitioning, and a second level partitioned according to binary tree partitioning. A root node of the QTBT structure corresponds to a CTU. Leaf nodes of the binary trees correspond to coding units (CUs).
  • In some examples, video encoder 200 and video decoder 300 may use a single QTBT structure to represent each of the luminance and chrominance components, while in other examples, video encoder 200 and video decoder 300 may use two or more QTBT structures, such as one QTBT structure for the luminance component and another QTBT structure for both chrominance components (or two QTBT structures for respective chrominance components).
  • Video encoder 200 and video decoder 300 may be configured to use quadtree partitioning per HEVC, QTBT partitioning according to JEM, or other partitioning structures. For purposes of explanation, the description of the techniques of this disclosure is presented with respect to QTBT partitioning. However, it should be understood that the techniques of this disclosure may also be applied to video coders configured to use quadtree partitioning, or other types of partitioning as well.
  • This disclosure may use “N×N” and “N by N” interchangeably to refer to the sample dimensions of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, e.g., 16×16 samples or 16 by 16 samples. In general, a 16×16 CU will have 16 samples in a vertical direction (y=16) and 16 samples in a horizontal direction (x=16). Likewise, an N×N CU generally has N samples in a vertical direction and N samples in a horizontal direction, where N represents a nonnegative integer value. The samples in a CU may be arranged in rows and columns. Moreover, CUs need not necessarily have the same number of samples in the horizontal direction as in the vertical direction. For example, CUs may comprise N×M samples, where M is not necessarily equal to N.
  • Video encoder 200 encodes video data for CUs representing prediction and/or residual information, and other information. The prediction information indicates how the CU is to be predicted in order to form a prediction block for the CU. The residual information generally represents sample-by-sample differences between samples of the CU prior to encoding and the prediction block.
  • To predict a CU, video encoder 200 may generally form a prediction block for the CU through inter-prediction or intra-prediction. Inter-prediction generally refers to predicting the CU from data of a previously coded picture, whereas intra-prediction generally refers to predicting the CU from previously coded data of the same picture. To perform inter-prediction, video encoder 200 may generate the prediction block using one or more motion vectors. Video encoder 200 may generally perform a motion search to identify a reference block that closely matches the CU, e.g., in terms of differences between the CU and the reference block. Video encoder 200 may calculate a difference metric using a sum of absolute difference (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared differences (MSD), or other such difference calculations to determine whether a reference block closely matches the current CU. In some examples, video encoder 200 may predict the current CU using uni-directional prediction or bi-directional prediction.
  • JEM also provides an affine motion compensation mode, which may be considered an inter-prediction mode. In affine motion compensation mode, video encoder 200 may determine two or more motion vectors that represent non-translational motion, such as zoom in or out, rotation, perspective motion, or other irregular motion types.
  • To perform intra-prediction, video encoder 200 may select an intra-prediction mode to generate the prediction block. JEM provides sixty-seven intra-prediction modes, including various directional modes, as well as planar mode and DC mode. In general, video encoder 200 selects an intra-prediction mode that describes neighboring samples to a current block (e.g., a block of a CU) from which to predict samples of the current block. Such samples may generally be above, above and to the left, or to the left of the current block in the same picture as the current block, assuming video encoder 200 codes CTUs and CUs in raster scan order (left to right, top to bottom).
  • Video encoder 200 encodes data representing the prediction mode for a current block. For example, for inter-prediction modes, video encoder 200 may encode data representing which of the various available inter-prediction modes is used, as well as motion information for the corresponding mode. For uni-directional or bi-directional inter-prediction, for example, video encoder 200 may encode motion vectors using advanced motion vector prediction (AMVP) or merge mode. Video encoder 200 may use similar modes to encode motion vectors for affine motion compensation mode.
  • As described above, in addition to inter- and intra-prediction modes, in some examples, video encoder 200 and video decoder 300 may predict a block based on an inter-intra-prediction mode. In some examples of the inter-intra-prediction mode, video encoder 200 generates an inter-intra-prediction block based on a weighted combination of a first prediction block generated from an inter-prediction mode, and a second prediction block generated from an intra-prediction mode. Video encoder 200 may determine weights for each of the first and second prediction blocks based on the intra-prediction mode used to generate the intra-prediction block, as one example.
  • Furthermore, video encoder 200 may include an inter-intra candidate in accordance with AMVP or merge mode, as described in more detail. The inter-intra candidate includes information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode. Video encoder 200 may then generate the inter-intra-prediction block based on the first and second prediction blocks when the inter-intra candidate is selected in the AMVP or merge mode.
  • Following prediction, such as intra-prediction or inter-prediction of a block, or inter-intra-prediction, video encoder 200 may calculate residual data for the block. The residual data, such as a residual block, represents sample by sample differences between the block and a prediction block for the block, formed using the corresponding prediction mode (e.g., inter-intra-prediction block for inter-intra-prediction mode). Video encoder 200 may apply one or more transforms to the residual block, to produce transformed data in a transform domain instead of the sample domain. For example, video encoder 200 may apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to residual video data. Additionally, video encoder 200 may apply a secondary transform following the first transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal dependent transform, a Karhunen-Loeve transform (KLT), or the like. Video encoder 200 produces transform coefficients following application of the one or more transforms.
  • Following any transforms to produce transform coefficients, video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the coefficients, providing further compression. By performing the quantization process, video encoder 200 may reduce the bit depth associated with some or all of the coefficients. For example, video encoder 200 may round an n-bit value down to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, video encoder 200 may perform a bitwise right-shift of the value to be quantized.
  • Following quantization, video encoder 200 may scan the transform coefficients, producing a one-dimensional vector from the two-dimensional matrix including the quantized transform coefficients. The scan may be designed to place higher energy (and therefore lower frequency) coefficients at the front of the vector and to place lower energy (and therefore higher frequency) transform coefficients at the back of the vector. In some examples, video encoder 200 may utilize a predefined scan order to scan the quantized transform coefficients to produce a serialized vector, and then entropy encode the quantized transform coefficients of the vector. In other examples, video encoder 200 may perform an adaptive scan. After scanning the quantized transform coefficients to form the one-dimensional vector, video encoder 200 may entropy encode the one-dimensional vector, e.g., according to context-adaptive binary arithmetic coding (CABAC). Video encoder 200 may also entropy encode values for syntax elements describing metadata associated with the encoded video data for use by video decoder 300 in decoding the video data.
  • To perform CABAC, video encoder 200 may assign a context within a context model to a symbol to be transmitted. The context may relate to, for example, whether neighboring values of the symbol are zero-valued or not. The probability determination may be based on a context assigned to the symbol.
  • Video encoder 200 may further generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, to video decoder 300, e.g., in a picture header, a block header, a slice header, or other syntax data, such as a sequence parameter set (SPS), picture parameter set (PPS), or video parameter set (VPS). Video decoder 300 may likewise decode such syntax data to determine how to decode corresponding video data.
  • In this manner, video encoder 200 may generate a bitstream including encoded video data, e.g., syntax elements describing partitioning of a picture into blocks (e.g., CUs) and prediction and/or residual information for the blocks. Ultimately, video decoder 300 may receive the bitstream and decode the encoded video data.
  • In general, video decoder 300 performs a reciprocal process to that performed by video encoder 200 to decode the encoded video data of the bitstream. For example, video decoder 300 may decode values for syntax elements of the bitstream using CABAC in a manner substantially similar to, albeit reciprocal to, the CABAC encoding process of video encoder 200. The syntax elements may define partitioning information of a picture into CTUs, and partitioning of each CTU according to a corresponding partition structure, such as a QTBT structure, to define CUs of the CTU. The syntax elements may further define prediction and residual information for blocks (e.g., CUs) of video data.
  • The residual information may be represented by, for example, quantized transform coefficients. Video decoder 300 may inverse quantize and inverse transform the quantized transform coefficients of a block to reproduce a residual block for the block. Video decoder 300 uses a signaled prediction mode (intra-prediction, inter-prediction, or inter-intra prediction) and related prediction information (e.g., motion information for inter-prediction) to form a prediction block for the block. Video decoder 300 may then combine the prediction block and the residual block (on a sample-by-sample basis) to reproduce the original block. Video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along boundaries of the block.
  • This disclosure may generally refer to “signaling” certain information, such as syntax elements. The term “signaling” may generally refer to the communication of values syntax elements and/or other data used to decode encoded video data. That is, video encoder 200 may signal values for syntax elements in the bitstream. In general, signaling refers to generating a value in the bitstream. As noted above, source device 102 may transport the bitstream to destination device 116 substantially in real time, or not in real time, such as might occur when storing syntax elements to storage device 112 for later retrieval by destination device 116.
  • FIGS. 2A and 2B are conceptual diagrams illustrating an example quadtree binary tree (QTBT) structure 130, and a corresponding coding tree unit (CTU) 132. The solid lines represent quadtree splitting, and dotted lines indicate binary tree splitting. In each split (i.e., non-leaf) node of the binary tree, one flag is signaled to indicate which splitting type (i.e., horizontal or vertical) is used, where 0 indicates horizontal splitting and 1 indicates vertical splitting in this example. For the quadtree splitting, there is no need to indicate the splitting type, since quadtree nodes split a block horizontally and vertically into 4 sub-blocks with equal size. Accordingly, video encoder 200 may encode, and video decoder 300 may decode, syntax elements (such as splitting information) for a region tree level of QTBT structure 130 (i.e., the solid lines) and syntax elements (such as splitting information) for a prediction tree level of QTBT structure 130 (i.e., the dashed lines). Video encoder 200 may encode, and video decoder 300 may decode, video data, such as prediction and transform data, for CUs represented by terminal leaf nodes of QTBT structure 130.
  • In general, CTU 132 of FIG. 2B may be associated with parameters defining sizes of blocks corresponding to nodes of QTBT structure 130 at the first and second levels. These parameters may include a CTU size (representing a size of CTU 132 in samples), a minimum quadtree size (MinQTSize, representing a minimum allowed quadtree leaf node size), a maximum binary tree size (MaxBTSize, representing a maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, representing a maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, representing the minimum allowed binary tree leaf node size).
  • The root node of a QTBT structure corresponding to a CTU may have four child nodes at the first level of the QTBT structure, each of which may be partitioned according to quadtree partitioning. That is, nodes of the first level are either leaf nodes (having no child nodes) or have four child nodes. The example of QTBT structure 130 represents such nodes as including the parent node and child nodes having solid lines for branches. If nodes of the first level are not larger than the maximum allowed binary tree root node size (MaxBTSize), they can be further partitioned by respective binary trees. The binary tree splitting of one node can be iterated until the nodes resulting from the split reach the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example of QTBT structure 130 represents such nodes as having dashed lines for branches. The binary tree leaf node is referred to as a coding unit (CU), which is used for prediction (e.g., intra-picture or inter-picture prediction) and transform, without any further partitioning. As discussed above, CUs may also be referred to as “video blocks” or “blocks.”
  • In one example of the QTBT partitioning structure, the CTU size is set as 128×128 (luma samples and two corresponding 64×64 chroma samples), the MinQTSize is set as 16×16, the MaxBTSize is set as 64×64, the MinBTSize (for both width and height) is set as 4, and the MaxBTDepth is set as 4. The quadtree partitioning is applied to the CTU first to generate quad-tree leaf nodes. The quadtree leaf nodes may have a size from 16×16 (i.e., the MinQTSize) to 128×128 (i.e., the CTU size). If the leaf quadtree node is 128×128, it will not be further split by the binary tree, since the size exceeds the MaxBTSize (i.e., 64×64, in this example). Otherwise, the leaf quadtree node will be further partitioned by the binary tree. Therefore, the quadtree leaf node is also the root node for the binary tree and has the binary tree depth as 0. When the binary tree depth reaches MaxBTDepth (4, in this example), no further splitting is permitted. When the binary tree node has width equal to MinBTSize (4, in this example), it implies no further horizontal splitting is permitted. Similarly, a binary tree node having a height equal to MinBTSize implies no further vertical splitting is permitted for that binary tree node. As noted above, leaf nodes of the binary tree are referred to as CUs, and are further processed according to prediction and transform without further partitioning.
  • With the above understanding, the following further describes video coding standards, especially motion vector prediction related techniques. The following also provides further description of video coding.
  • The following is a description of some video coding standards. Video coding standards include ITU-T H.261, ISO/IEC MPEG-1 Visual, ITU-T H.262 or ISO/IEC MPEG-2 Visual, ITU-T H.263, ISO/IEC MPEG-4 Visual and ITU-T H.264 (also known as ISO/IEC MPEG-4 AVC), including its Scalable Video Coding (SVC) and Multiview Video Coding (MVC) extensions. The latest joint draft of MVC is described in “Advanced video coding for generic audiovisual services,” ITU-T Recommendation H.264, March 2010.
  • In addition, there is a newly developed video coding standard, namely High Efficiency Video Coding (HEVC), developed by the Joint Collaboration Team on Video Coding (JCT-VC) of ITU-T Video Coding Experts Group (VCEG) and ISO/IEC Motion Picture Experts Group (MPEG). A recent draft of HEVC is available from http://phenix.int-evry.fr/j ct/doc_end_user/documents/12_Geneva/wg11/JCTVC-L1003-v34.zip. The HEVC standard is also available as ITU-T H.265, Series H: Audiovisual and Multimedia Systems, Infrastructure of audiovisual services-Coding of moving video, High efficiency video coding, The International Telecommunication Union, April 2015, 634 pp.
  • FIG. 3A is a conceptual diagram illustrating an example of blocks of an intra-predicted slice. FIG. 3B is a conceptual diagram illustrating an example of blocks of an inter-predicted slice.
  • In state-of-the-art video coding standards such as HEVC, portions of which are described in G. J. Sullivan; J.-R. Ohm; W.-J. Han; T. Wiegand (December 2012). “Overview of the High Efficiency Video Coding (HEVC) Standard” (PDF). IEEE Transactions on Circuits and Systems for Video Technology (IEEE) 22 (12), there are two kinds of frames (or slices, which are parts of frames): inter-frames and intra-frames. In an intra-frame, a block can only be coded as an intra-block. While in an inter-frame, a block can be coded as an intra-block or an inter-block. FIGS. 3A and 3B show examples of an intra-frame and an inter-frame, and particularly, intra-slices and inter-slices that are part of the respective intra-frame or inter-frame. The term “blocks” used here can refer to a coding unit/block, prediction unit/block, sub-PU, transform unit/block or any other coding structures.
  • A block coded as an intra-block applies intra-prediction, with which the current block is predicted by neighboring pixels in the current frame. A block coded as an inter-block applies inter-prediction, with which the current block is predicted by pixels in previously coded/decoded frames, named “reference frames”. As illustrated in FIG. 3A, an intra-slice may only include intra-blocks (e.g., blocks predicted using intra-prediction). As illustrated in FIG. 3B, an inter-slice may include intra-blocks and inter-blocks (e.g., blocks predicted using intra-prediction and blocks predicted using inter-prediction).
  • FIG. 4 is a conceptual diagram illustrating an example of intra-prediction modes. In HEVC, there are 35 intra-prediction modes representing different prediction directions as shown in FIG. 4. For instance, there are 33 directional modes, and two special modes: DC and Planar. In JEM, such as described in J. Chen, E. Alshina, G. J. Sullivan, J.-R. Ohm, J. Boyce, JVET-F1001,” Algorithm Description of Joint Exploration Test Model 6,” April 2017, the number of intra-prediction modes is increased to 67. Each intra-coded block (e.g., intra-predicted block) has its intra-prediction mode information.
  • FIG. 5 is a conceptual diagram illustrating examples of reference frames for inter-prediction. For inter-prediction, motion compensation (MC) is used from one reference block (uni-prediction) or two reference blocks (bi-prediction) in reference frames as shown in FIG. 5. In FIG. 5, block A in the Current Frame utilizes uni-prediction with one reference block (Reference A in Reference Frame 1), and block B in the current frame utilizes bi-prediction with two reference blocks (Reference B in Reference Frame 1 and Reference C in Reference Frame 2). Each inter-coded block (e.g., inter-predicted block) has its motion information, including reference frame indices and motion vectors (MV).
  • FIG. 6 is a conceptual diagram illustrating examples of neighboring blocks for a current block for coding an intra-prediction mode. To code an intra-prediction mode, intra-prediction modes of the neighboring blocks are used as prediction modes for the current mode. FIG. 6 shows exemplary neighboring blocks. In HEVC, intra-prediction modes of neighboring block A and B are used as prediction modes for the intra mode of the current block. As an example use of a prediction mode, each intra-prediction mode may be assigned a numerical value. Rather than signaling the actual intra-prediction mode, video encoder 200 signals a difference between the intra-prediction mode for the current block and the prediction mode (e.g., the intra-prediction mode determined from one or more neighboring blocks). Video decoder 300 may determine the intra-prediction mode for the current block by adding the prediction mode to the difference value signaled by video encoder 200.
  • There may various ways in which to determine the particular block whose intra-prediction mode becomes the prediction mode. In JEM, more neighboring blocks (A0, A1, B1, B1, B2) are used as prediction modes for the current mode. If a neighboring block does not exist (the current block is at the boundary of a frame), or a neighboring block is not intra-coded (the current frame is an inter-frame but the current block is intra-coded), the neighboring block is marked as “unavailable” and its intra-prediction mode is not used to predict the intra-prediction mode of the current block.
  • The following describes motion information, such as motion information for an inter-predicted block. For each block, a set of motion information can be available. The set of motion information contains motion information for forward and backward prediction directions. Here, forward and backward prediction directions are two prediction directions corresponding to reference picture list 0 (RefPicList0) and reference picture list 1 (RefPicList1) of a current picture or slice. The terms “forward” and “backward” do not necessarily have a geometry meaning. Instead, they are used to distinguish which reference picture list a motion vector is based on. Forward prediction means the prediction formed based on reference list 0, while backward prediction means the prediction formed based on reference list 1 (or vice-versa based on design choice). In case both reference list 0 and reference list 1 are used to form a prediction for a given block, it is called bi-directional prediction.
  • For a given picture or slice, if only one reference picture list is used, every block inside the picture or slice is forward predicted. If both reference picture lists are used for a given picture or slice, a block inside the picture or slice may be forward predicted, or backward predicted, or bi-directionally predicted.
  • For each prediction direction, the motion information contains a reference index and a motion vector. A reference index is used to identify a reference picture in the corresponding reference picture list (e.g. RefPicList0 or RefPicList1). A motion vector has both a horizontal and a vertical component, with each indicating an offset value along horizontal and vertical direction respectively. In some descriptions, for simplicity, the word of “motion vector” may be used interchangeably with motion information, to indicate both the motion vector and its associated reference index.
  • The following describes picture order count (POC) values. POC is widely used in video coding standards to identify a display order of a picture. Although there are cases where two pictures within one coded video sequence may have the same POC value, it typically does not happen within a coded video sequence. When multiple coded video sequences are present in a bitstream, pictures with a same value of POC may be closer to each other in terms of decoding order. POC values of pictures are typically used for reference picture list construction, derivation of reference picture set as in HEVC, and motion vector scaling, as a few examples. For instance, POC values are used as a way to identify pictures.
  • The following describes the H.264/AVC video coding standard. As an example of the macroblock structure in AVC, each inter macroblock (MB) may be partitioned into four different ways
  • One 16×16 MB partition
  • Two 16×8 MB partitions
  • Two 8×16 MB partitions
  • Four 8×8 MB partitions
  • Different MB partitions in one MB may have different reference index values for each direction (RefPicList0 or RefPicList1). When an MB is not partitioned into four 8×8 MB partitions, it has only one motion vector for each MB partition in each direction. When an MB is partitioned into four 8×8 MB partitions, each 8×8 MB partition can be further partitioned into sub-blocks, each of which can have a different motion vector in each direction. There are four different ways to get sub-blocks from an 8×8 MB partition:
  • One 8×8 sub-block
  • Two 8×4 sub-blocks
  • Two 4×8 sub-blocks
  • Four 4×4 sub-blocks
  • Each sub-block can have a different motion vector in each direction. Therefore, motion vector is present in a level equal to higher than sub-block.
  • In AVC, temporal direct mode could be enabled in either MB or MB partition level for skip or direct mode in B slices. For each MB partition, the motion vectors of the block co-located with the current MB partition in the RefPicList1 [0] of the current block are used to derive the motion vectors. Each motion vector in the co-located block is scaled based on POC distances. In AVC, a direct mode can also predict motion information from the spatial neighbors.
  • The following provides some more information regarding the HEVC video coding standard, as well as reintroduces some concepts described above. In HEVC, the largest coding unit in a slice is called a coding tree block (CTB) or coding tree unit (CTU). A CTB contains a quad-tree the nodes of which are coding units.
  • The size of a CTB can be ranges from 16×16 to 64×64 in the HEVC main profile (although technically 8×8 CTB sizes can be supported). A coding unit (CU) could be the same size of a CTB although and as small as 8×8. Each coding unit is coded with one mode. When a CU is inter coded, it may be further partitioned into 2 or 4 prediction units (PUs) or become just one PU when further partition does not apply. When two PUs are present in one CU, they can be half size rectangles or two rectangle size with ¼ or ¾ size of the CU.
  • When the CU is inter coded, one set of motion information is present for each PU. In addition, each PU is coded with a unique inter-prediction mode to derive the set of motion information.
  • The following describes motion vector prediction (MVP). In HEVC standard, there are two inter prediction modes, named merge (skip is considered as a special case of merge) and advanced motion vector prediction (AMVP) modes respectively for a prediction unit (PU). In either AMVP or merge mode, a motion vector (MV) candidate list is maintained for multiple motion vector predictors. The motion vector(s), as well as reference indices in the merge mode, of the current PU are generated by taking one candidate from the MV candidate list.
  • The MV candidate list may contain up to 5 candidates for the merge mode and only two candidates for the AMVP mode. A merge candidate may contain a set of motion information, e.g., motion vectors corresponding to both reference picture lists (list 0 and list 1) and the reference indices. If a merge candidate is identified by a merge index, the reference pictures are used for the prediction of the current blocks, as well as the associated motion vectors are determined. However, under AMVP mode for each potential prediction direction from either list 0 or list 1, a reference index needs to be explicitly signaled, together with an MVP index to the MV candidate list since the AMVP candidate contains only a motion vector. In AMVP mode, the predicted motion vectors can be further refined.
  • As can be seen above, a merge candidate corresponds to a full set of motion information while an AMVP candidate contains just one motion vector for a specific prediction direction and reference index. For example, if a current block is predicted in merge mode, video encoder 200 may determine motion information from the MV candidate list and signal an index into the MV candidate list. Video decoder 300 may incorporate the motion information from candidate identified by the index into the MV candidate list as the motion information for the current block. For AMVP, video encoder 200 may signal an index into the MV candidate list, an MVD (difference between the motion vector of the motion information identified by the index into the MV candidate list and the actual motion vector for the current block), and information indicating whether reference picture list 0 or reference picture list 1 is used. The candidates for both modes are derived similarly from the same spatial and temporal neighboring blocks.
  • FIGS. 7A and 7B are conceptual diagrams illustrating examples of spatial neighboring motion vector candidates for merge and AMVP mode. Spatial MV candidates are derived from the neighboring blocks shown on in FIGS. 7A and 7B, for a specific PU (PU0), although the methods for generating the candidates from the blocks differ for merge and AMVP modes.
  • In merge mode, up to four spatial MV candidates can be derived with the orders showed on FIG. 7A with numbers, and the order is the following: left (0, A1), above (1, B1), above right (2, B0), below left (3, A0), and above left (4, B2), as shown in FIG. 7A. In FIG. 7A, the arrows illustrate comparisons between motion information of neighboring blocks, and if the motion information is the same, the motion information for a block is pruned as a motion vector candidate. For instance, if above (1, B1) block has the same motion information as left (0, A1) block, then the motion information of above (1, B1) block is not included as a motion vector candidate. If above right (2, B0) block has the same motion information as above (1, B1) block, then the motion information of above right (2, B0) is not included as a motion vector candidate, and so forth.
  • In AVMP mode, the neighboring blocks are divided into two groups: left group consisting of the block 0 and 1, and above group consisting of the blocks 2, 3, and 4 s shown on FIG. 7B. For each group, the potential candidate in a neighboring block referring to the same reference picture as that indicated by the signaled reference index has the highest priority to be chosen to form a final candidate of the group. It is possible that all neighboring blocks do not contain a motion vector pointing to the same reference picture. Therefore, if such a candidate cannot be found, the first available candidate will be scaled to form the final candidate, thus the temporal distance differences can be compensated.
  • The following describes temporal motion vector prediction (TMVP) in HEVC. A temporal motion vector predictor (TMVP) candidate, if enabled and available, is added into the MV candidate list after spatial motion vector candidates. The process of motion vector derivation for TMVP candidate is the same for both merge and AMVP modes; however, the target reference index for the TMVP candidate in the merge mode is always set to 0.
  • FIGS. 8A and 8B are conceptual diagrams illustrating examples of a temporal motion vector predictor (TMVP) candidate and motion vector scaling for TMVP, respectively. The primary block location for TMVP candidate derivation is the bottom right block outside of the collocated PU as shown in FIG. 8A as a block “T”, to compensate the bias to the above and left blocks used to generate spatial neighboring candidates. However, if that block is located outside of the current CTB row or motion information is not available, the block is substituted with a center block of the PU.
  • Motion vector for TMVP candidate is derived from the co-located PU of the co-located picture, indicated in the slice level. The motion vector for the co-located PU is called collocated MV. Similar to temporal direct mode in AVC, to derive the TMVP candidate motion vector, the co-located MV may need to be scaled to compensate the temporal distance differences, as shown in FIG. 8B.
  • The following describes some additional aspects of motion prediction in HEVC. Several aspects of merge and AMVP modes are worth mentioning as follows. In motion vector scaling, it is assumed that the value of motion vectors is proportional to the distance of pictures in the presentation time. A motion vector associates two pictures, the reference picture, and the picture containing the motion vector (namely the containing picture). When a motion vector is utilized to predict the other motion vector, the distance of the containing picture and the reference picture is calculated based on the Picture Order Count (POC) values. For a motion vector to be predicted, both its associated containing picture and reference picture may be different. Therefore, a new distance (based on POC) is calculated. And the motion vector is scaled based on these two POC distances. For a spatial neighboring candidate, the containing pictures for the two motion vectors are the same, while the reference pictures are different. In HEVC, motion vector scaling applies to both TMVP and AMVP for spatial and temporal neighboring candidates.
  • In artificial motion vector candidate generation, if a motion vector candidate list is not complete, artificial motion vector candidates are generated and inserted at the end of the list until it will have all candidates. In merge mode, there are two types of artificial MV candidates: combined Bi-prediction candidate derived only for B-slices and default fixed candidates. In some examples, only a zero candidate is used for AMVP if the first type does not provide enough artificial candidates. For each pair of candidates that are already in the candidate list and have necessary motion information, bi-directional combined motion vector candidates are derived by a combination of the motion vector of the first candidate referring to a picture in the list 0 and the motion vector of a second candidate referring to a picture in the list 1.
  • In a pruning process for candidate insertion, candidates from different blocks may happen to be the same, which decreases the efficiency of a merge/AMVP candidate list. A pruning process is applied to solve this problem, as described above with respect to FIG. 7A. It compares one candidate against the others in the current candidate list to avoid inserting identical candidate in certain extent. To reduce the complexity, only limited numbers of pruning process is applied instead of comparing each potential one with all the other existing ones.
  • As described above, there are many priority-based candidate lists. Each candidate is inserted into the candidate list per a predefined priority. For example, in HEVC, a merge candidate list and AMVP candidate list are constructed by inserting candidates based on a predefined order (or per a predefined priority).
  • FIG. 9 is a conceptual diagram illustrating an example of neighboring blocks whose spatial information is used for constructing a merge candidate list. As shown in FIG. 9, the merge candidate list is constructed by video encoder 200 or video decoder 300 inserting the spatial merging candidate by a predefined order (A1→B1→B0→A0→B2).
  • FIG. 10 is a flowchart illustrating an example manner in which to construct a merge candidate list. For example, FIG. 10 shows the construction process of the merge candidate list in HEVC. Each spatial or temporal neighboring blocks are checked one by one to identify whether the block can provide a valid merge candidate. The term “valid” means the block exists, is inter-coded, the candidate list is not full, and the motion information in the block is not pruned by existing candidates in the current candidate list. It should be noted that one candidate may be only pruned to partial of existing candidates in the current candidate list. For B2, it is only checked if there are less than 4 candidates after checking A1, B1, B0 and A0. If the merge candidate list is not full after checking all spatial and temporal neighboring blocks, the artificial candidates will be stuffed to fulfill the merge candidate list. First, the combined-bi candidates is stuffed. If the list is still not full, it will be fulfilled with fixed default candidates. The term “blocks” (e.g. Block0-Block4 and Current Block in FIG. 10) used here can be coding unit/block, prediction unit/block, sub-PU, transform unit/block or any other coding structures.
  • For example, a video coder (e.g., one or both of video encoder 200 and video decoder 300) may check block A1 of FIG. 9 (134), and determine whether it is valid (136). If valid (Y of 136), the video coder appends motion information of A1 to the merge candidate list (138), and then proceeds to check B1. If not valid (N of 136), the video coder proceeds to check B 1.
  • The video coder may then check B1 of FIG. 9 (140), and determine whether it is valid (142). If valid (Y of 142), the video coder appends motion information of B1 to the merge candidate list (144), and then proceeds to check B0. If not valid (N of 142), the video coder proceeds to check B0. The video coder may then check B0 of FIG. 9 (146), and determine whether it is valid (148). If valid (Y of 148), the video coder appends motion information of B0 to the merge candidate list (150), and then proceeds to check A0. If not valid (N of 148), the video coder proceeds to check A0.
  • The video coder may then check A0 of FIG. 9 (152), and determine whether it is valid (154). If valid (Y of 154), the video coder appends motion information of A0 to the merge candidate list (156), and then proceeds to check B2. If not valid (N of 154), the video coder proceeds to check B2.
  • The video coder may then check B2 of FIG. 9 (158), and determine whether it is valid and there are less than four candidates in the list (160). If valid and less than four candidates in the list (Y of 160), the video coder appends motion information of B2 to the merge candidate list (162), and then proceeds to check TMVP. If not valid or not less than four candidates in the list (N of 160), the video coder proceeds to check TMVP.
  • The video coder may then check the TMVP of FIG. 8A (164), and determine whether it is valid (166). If valid (Y of 166), the video coder appends motion information of the TMVP (based on scaling of FIG. 8B if needed) to the merge candidate list (168), and determines whether the candidate list full (170). If not valid (N of 166), the video coder determines whether the candidate list is full (170).
  • If the candidate list is full (Y of 170), the merge candidate list construction process is over. If the candidate list is not full (N of 170), the video coder adds the combined bi-candidate (172), i.e., appends the combined bi-candidate into the candidate list. The video coder may determine if more combined bi-candidates are available (174). If more bi-candidates are available (Y of 174), and the candidate list is not full (N of 170), the video coder may add another bi-candidate, and keep repeating until there are no more bi-candidates or the candidate list is not full.
  • If there are no more bi-candidates (N of 174), and the candidate list not full (N of 176), the video coder may append one default fixed candidate into candidate list (178). The video coder may keep adding one default fixed candidate into the merge candidate list until the merge candidate list is full (Y of 176).
  • This disclosure describes examples to improve the efficiency of prediction by combining inter-prediction and intra-prediction. The method of combining of inter-prediction and intra-prediction is defined as inter-intra prediction.
  • Video encoder 200 and video decoder 300 may be configured to perform the following methods individually. Alternatively, video encoder 200 and video decoder 300 may be configured to perform any combination of them.
  • Video encoder 200 and video decoder 300 may each generate a prediction block using a particular intra-prediction mode, and generate another prediction block using inter-prediction with specific motion information. Video encoder 200 and video decoder 300 may generate a final prediction block (e.g., inter-intra-prediction block) based on the two prediction block. As one example, a video coder (e.g., video encoder and/or video decoder 300) may generate a prediction block P1 for the current block using intra-prediction with a specific Intra-Prediction Mode (IPM), and another prediction block P2 for the current block using inter-prediction with specific Motion Information (MI, including information such as inter-prediction direction, reference lists, reference picture index and motion vectors).
  • Video encoder 200 and video decoder 300 may utilize a weighted prediction to determine the final prediction block. As one example, the video coder may generate the final prediction block (e.g., array of sample values) P as the weighted sum of P1 and P2 as the formula shown below:

  • P(x,y)=w1(x,yP1(x,y)+w2(x,yP2(x,y),
      • where (x,y) is the coordinate of a sample in the current block. w1 is the weighting value for P1 and w2 is the weighting value for P2.
  • In one example, P(x,y)=(w1(x,y)×P1(x,y)+w2(x,y)×P2 (x,y)+o)>>s, where w1, w2, o and s are integers. Some constraints can be made. For example: w1(x,y)+w2(x,y)=2s, o=2s−1, and 0≤w1(x,y)≤2s, 0≤w2(x,y)≤2s.
  • In the above example, video encoder 200 and video decoder 300 determined the values of the weights (w1, w2) applied to the two prediction blocks based on certain constraints on their values. In some examples, video encoder 200 and video decoder 300 may determine the value of the weights (w1, w2) based on other factors.
  • As one example, video encoder 200 and video decoder 300 determine w1 and w2 based on the intra-prediction mode (IPM) used to determine the prediction block generated from an intra-prediction mode. In other words, in one example, w1 and w2 depend on IPM. Moreover, in the below examples, the determined weights w1 and w2 may be the same weight for each sample in the two prediction blocks P1 and P2, or two more weights may be different for two or more samples in the two prediction blocks P1 and P2. For instance, in one example, to determine a first weighted prediction block and a second weighted prediction block, video encoder 200 and video decoder 300 may multiply the same w1 with each sample of P1 and multiply the same w2 with each sample of P2.
  • In another example, to determine a first weighted prediction block, video encoder 200 and video decoder 300 may determine a first weight value (e.g., w1_0) for sample P1(0, 0), determine a second weight value (e.g., w1_1) for sample P1(0, 1), and so forth, and multiply each respective weight value with each respective prediction sample value to determine the first weighted prediction block. In this example, it is possible that the first weight and the second weight have different values. Video encoder 200 and video decoder 300 may similarly determine a second weighted prediction block, but based on P2 and weights associated for P2 (e.g., w2_X).
  • In one example, each mode can have different w1 and w2, i.e., P(x,y)=w1(x,y,IPM)×P1(x,y)+w2(x, y, IPM)×P2(x,y). In this example, video encoder 200 and video decoder 300 may determine the intra-prediction mode. Then, video encoder 200 and video decoder 300 may parse a table that indicates weight values for each of the intra-prediction modes. Video encoder 200 and video decoder 300 may determine the weight values w1 and w2 based on the weight values associated with the determined intra-prediction mode.
  • Accordingly, in one or more examples, a video coder (e.g., one or both of video encoder 200 and video decoder 300) may determine an intra-prediction mode for block of a picture, and determine a first weight and a second weight based on the determined intra-prediction mode. The video coder may generate a first prediction block for the block according to the intra-prediction mode, and generate a second prediction block for the block according to an inter-prediction mode.
  • The video coder may apply the first weight to the first prediction block to generate a first weighted block, and apply the second weight to the second prediction block to generate a second weighted block. For instance, the video coder may multiply the first weight with each sample value (e.g., where the sample value is a luma or chroma value depending on the type of block) in the first prediction block to generate the first weighted prediction block, and multiply the second weight with each sample in the second prediction block to generate the second weighted prediction block. The first weight and the second weight may be the same for each sample in the first and second prediction blocks, respectively. In some examples, the video coder may determine the first weight and the second weight on a sample-by-sample basis (or plurality of samples-by-plurality of samples basis), such as based on positions of the samples in the respective first and second prediction blocks.
  • The video coder may generate a final prediction block based on the first weighted block and the second weighted block. As one example, the video coder may add the first weighted prediction block and the second weighted prediction block to generate the final prediction block.
  • Video encoder 200 may generate a residual block based on a difference between the final prediction block and the current block, and signal information indicative of the residual block. Video decoder 300 may receive information indicative of the residual block and add the residual block to the final prediction block to reconstruct the block of picture.
  • In the above example, each intra-prediction mode was assigned its own weights. For instance, for a first intra-prediction mode, there may be a first w1 and a first w2 assigned weights. For a second intra-prediction mode, there may be a second w1 and a second w2 assigned weights, and so forth. The first and second assigned weights may be different. However, rather than assigning weights to each intra-prediction mode, the intra-prediction modes may be classified into groups, and a w1 and w2 weight may be assigned to each of the groups (e.g., for the whole prediction block, on a sample-by-sample basis, or on a plurality of samples-by-plurality of samples basis). In this way, less memory may be needed, as there may be fewer weight values to store.
  • Accordingly, in one example, intra-prediction modes are classified into groups. Each group can have different w1 and w2, i.e., P(x,y)=w1(x,y,Group(IPM))×P1(x,y)+w2(x,y,Group(IPM))×P2(x,y).
  • In one implementation, intra-prediction modes are classified by grouping the intra angular prediction modes that have similar directions. For example, there are 67 modes in the JEM software, which can be classified into 16 groups as
  • Group ( IPM ) = { 0 , if IPM = 0 1 , if IPM = 1 2 , if 2 IPM 5 3 , if 6 IPM 11 4 , if 12 IPM 16 5 , if 17 IPM 19 6 , if 20 IPM 25 7 , if 26 IPM 31 8 , if 32 IPM 34 9 , if 35 IPM 36 10 , if 37 IPM 42 11 , if 43 IPM 48 12 , if 49 IPM 51 13 , if 52 IPM 57 14 , if 58 IPM 63 15 , if 64 IPM 66
  • Accordingly, in the above example, a video coder may determine an intra-prediction mode classification based on the intra-prediction mode. For example, the video coder may determine, from a plurality of ranges, a range within which the intra-prediction mode resides. The plurality of ranges may be based on angles associated with prediction directions of corresponding intra-prediction modes. The video coder may determine the intra-prediction mode classification based on the determined range. The video coder may determine the first weight for the first prediction block (e.g., prediction block generated from an intra-prediction mode) and the second weight for the second prediction block (e.g., prediction block generated from an inter-prediction block) based on the intra-prediction mode classification.
  • As one example, assume that the intra-prediction mode (IPM) value is 22. In this example, the video coder may determine that the intra-prediction mode value is within the range of 20≤IPM≤25, in the above example where the ranges are based on angles associated with prediction directions. The video coder may determine that the group classification for the intra-prediction mode is 8 because 8 is associated with range of 20≤IPM≤25. The video coder may determine the weights w1 and w2 based on the intra-prediction mode classification of 8, and generate the first and second weighted prediction blocks to generate the final prediction block.
  • In one example, w1 and w2 are only dependent on the IPM (intra-prediction mode). Alternatively, w1 and w2 are dependent on the IPM and coordinate (i.e., (x,y)). In other words, as described above, the video coder may determine respective first weights and second weights (e.g., respective values for w1 and w2) for each sample in the respective first and second prediction blocks (e.g., respective ones of P1 and P2) based on the intra-prediction mode and a location of each sample in the respective first and second prediction blocks. Alternatively, furthermore, w1 and w2 may be dependent on the block size and block shape.
  • In one example, the video coder may determine the first weight and the second weight based on a polynomial equation having values defined by the intra-prediction mode and one or more coefficients. For instance, w1 and w2 can be calculated from x, y, using polynomial calculation.
  • In one example, w1(x,y,Group(IPM))=a(Group(IPM))×x+b(Group(IPM))×y+c(Group(IPM)), and w2(x,y,Group(IPM))=1−w1(x,y,Group(IPM)). This example may be implemented with all integer coefficients, such as w1(x,y,Group(IPM))=(a(Group(IPM))×x+b(Group(IPM))×y+c(Group(IPM))+o)>>s, and w2(x,y,Group(IPM))=2s−w1(x,y,Group(IPM)), where a(Group(IPM)), b(Group(IPM)), c(Group(IPM)), o and s are integers.
  • Parameters a(Group(IPM)), b(Group(IPM)) and c(Group(IPM)) can be predefined at both video encoder 200 and video decoder 300. Alternatively, they can be signaled from video encoder 200 to video decoder 300. Alternatively, there can be several predefined parameters at both video encoder 200 and video decoder 300. Video encoder 200 can signal an index to video decoder 300 to indicate which parameters are used.
  • There may be some constraints. For example, o=2s−1, 0≤w1(x,y)≤2s, 0≤w2(x,y)≤2s, and 0≤a(Group(IPM)),b(Group(IPM)), c(Group(IPM)) 2k, where k is an integer.
  • In one example, w1(x,y,Group(IPM))=a(Group(IPM))×x2+b(Group(IPM))×y2+c(Group(IPM))×x×y+d(Group(IPM))×x+e(Group(IPM))×y+f (Group(IPM)), and w2(x,y,Group(IPM))=1−w1(x,y,Group(IPM)). It can be implemented in an integrated form w1(x,y,Group(IPM))=(a(Group(IPM))×x2+b(Group(IPM))×y2+c(Group(IPM))×x×y+d(Group(IPM))×x+e(Group(IPM))×y+f (Group(IPM))+o)>>s, and w2(x,y,Group(IPM))=2s−w1(x,y,Group(IPM)), where a(Group(IPM)), b(Group(IPM)), c(Group(IPM)), d(Group(IPM)), e(Group(IPM)), f(Group(IPM)), o and s are integers.
  • Parameter a(Group(IPM)), b(Group(IPM)), c(Group(IPM)), d(Group(IPM)), e(Group(IPM)) and f(Group(IPM)) can be predefined at both video encoder 200 and video decoder 300. Alternatively, they can be signaled from video encoder 200 to video decoder 300. Alternatively, there can be several predefined parameters at both video encoder 200 and video decoder 300. Video encoder 200 can signal an index to video decoder 300 to indicate which parameters are used. Some constraints can be made. For example, o=2s−1, 0≤w1(x,y)≤2s, 0≤w2(x,y)≤2s, and 0≤a(Group(IPM)),b(Group(IPM)), c(Group(IPM)), d(Group(IPM)), e(Group(IPM)), f(Group(IPM))≤2k, where k is an integer.
  • In the above, intra-prediction mode is used to determine the weighting that is applied to generate weighted prediction blocks. In addition, in some examples, video encoder 200 and video decoder 300 may determine motion information (MI) of an inter-intra-prediction block. For instance, the MI is the MI used to determine the prediction block used to construct the inter-intra-prediction block. In one example, MI of an inter-intra-prediction block is signaled or derived as that in an inter-coded block or merge block, and/or IPM of an inter-intra-prediction block is derived in the way of intra-prediction mode propagation as specified in U.S. patent application Ser. No. 15/926,550, filed Mar. 20, 2018.
  • For instance, in one example, the intra-prediction mode of the collocated block in the collocated frame will be treated as the intra-prediction mode of the current inter-coded block. The collocated block in the collocated frame can be located in the same way as is done for temporal motion vector prediction (TMVP) in HEVC and JEM, except that the collocated frame is allowed to be an intra-frame. The collocated picture can be selected from the reference pictures of the current picture. In one example, the reference picture with reference index 0 in the reference picture list 0 (or 1) is used as a collocated picture. Alternatively, the selection of collocated frame can be signaled from video encoder 200 to video decoder 300, or it can be derived implicitly at video decoder 300. In another example, the intra-prediction mode of the reference block in the reference frame will be treated as the intra-prediction mode of the current inter-coded block. The reference block in the reference frame is located with the motion vector (MV) information as used in motion compensation in HEVC, JEM or any existing or video coding system. There can be more than one reference block for the current inter-coded block. In still another example, the intra-prediction mode of a spatially neighboring block will be treated as the intra-prediction mode of the current inter-coded block.
  • In one example, IPM of an inter-intra-prediction block is signaled or derived as that in an intra-coded block, and/or MI of an inter-intra-prediction block is derived in the way of motion information propagation as specified in Application Ser. No. 62/525,075, filed Jun. 26, 2017. The IPM of an inter-intra-prediction block refers to the IPM used to determine the prediction block based on an intra-prediction mode that is used to generate the inter-intra-prediction block.
  • For instance, embodiments may include propagating motion information to intra-coded blocks in an inter-picture. Then intra-coded blocks can be used for motion vector prediction. For example, intra-coded blocks can be used in the construction of candidate lists such as merging candidate list and AMVP list for a lately coded block. An intra-coded block inherits motion information from spatially and/or temporally neighboring blocks, wherein the neighboring blocks can be intra-coded and/or inter-coded. A priority-based method may be defined to select motion information from neighboring blocks. When an intra-coded block chooses to inherit the motion information from a neighboring block, an inter-coded neighboring block has a higher priority than an intra-coded neighboring block.
  • In one example, chroma components as well as the luma component can use inter-intra prediction. In one example, chroma components and luma component choose to use inter-intra prediction or not synchronically, i.e., in a block either all components use inter-intra prediction or none of them uses inter-intra prediction. Alternatively, components choose to use inter-intra prediction or not asynchronously, i.e., it is allowed that one component use inter-intra prediction in a block but another component does not use inter-intra prediction in the same block.
  • Accordingly, the block being coded (e.g., encoded or decoded) includes a luma component block and chroma component block. In one example, the video coder generates both a final luma prediction block and a final chroma prediction block based on first and second weights applied to respective luma and chroma components of the first and second prediction blocks (e.g., of P1 and P2). In one example, the video coder generates only a final luma prediction block or a final chroma prediction block based on first and second weights applied to only one of respective luma and chroma components of the first and second prediction blocks.
  • In one example, chroma components and luma component may share the same MI and IPM when using inter-intra prediction. Or chroma components and a luma component may have different MI and IPM when using inter-intra prediction. For example, MI is derived as that in an inter-coded block or merge block and is shared by the luma and chroma components. For the luma component, IPM is derived in the way of intra-prediction mode propagation as specified in application Ser. No. 15/926,550, filed Mar. 20, 2018. But for the Chroma component, IPM is always the LM mode defined in “Algorithm Description of Joint Exploration Test Model 6.” Alternatively, for the Chroma component, IPM is always the MMLM mode defined in “Algorithm Description of Joint Exploration Test Model 6.”
  • In one example, a flag named inter-intra-prediction-flag is signaled from video encoder 200 to video decoder 300 to indicate whether the combination of intra-prediction and inter-prediction is applied in a block. Alternatively, an index of prediction methods may be signaled. In one example, the prediction methods may include but are not limited to intra-prediction, inter-prediction, inter-intra prediction.
  • The above described various examples for determining the final prediction block (e.g., inter-intra-prediction block) based on weighted combination of a first prediction block generated according to an intra-prediction mode, and a second prediction block generated according to an inter-prediction mode. The following describes additional example techniques that may be utilized with the inter-intra-prediction.
  • In one example, no explicit flag is signaled from video encoder 200 to video decoder 300 to indicate whether the combination of intra-prediction and inter-prediction is applied in a block (e.g., no explicit signaling is needed to indicate whether prediction is with an inter-intra-prediction block). Instead, video encoder 200 and video decoder 300 can operate in the same way to determine whether the combination of intra-prediction and inter-prediction is applied in a block (e.g., whether inter-intra-prediction block is to be used as the final prediction block).
  • For example, some candidates in a merge candidate list are utilized to indicate the combination of intra-prediction and inter-prediction is used for the current block. In this method, additional candidates (representing inter-intra prediction mode) are added into the merge candidate list in addition to the existing merge candidates (representing inter prediction mode with copied or derived motion information).
  • Candidates representing inter-intra prediction mode (also called inter-intra candidates) refer to information used to generate an inter-intra-prediction block including sample values of the inter-intra-prediction block. For instance, video encoder 200 and video decoder 300 include an inter-intra candidate, and the inter-intra candidate includes information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction.
  • Video encoder 200 and video decoder 300 may generate the inter-intra-prediction block using the first and second prediction blocks according to any of the example techniques described above, or may use any other technique to generate an inter-intra-prediction block. Hence, in this disclosure, when an inter-intra candidate is described as being inserted or added to a list of candidates (e.g., merge candidate list or AMVP candidate list), such description may be considered as meaning that video encoder 200 and video decoder 300 include the motion information and intra-prediction mode used to generate the first and second prediction blocks, and the first and second prediction blocks are used to generate the inter-intra-prediction block.
  • There may be various ways in which video encoder 200 and video decoder 300 may determine the motion information and intra-prediction mode for the inter-intra candidate. For instance, the motion information and/or intra-prediction mode may be signaled, or may be determined (e.g., derived without signaling) based on motion information and/or intra-prediction mode of one or more neighboring blocks. There may be other ways in which the motion information and intra-prediction mode of the inter-intra candidate may be determined, and the techniques are not limited to the above examples.
  • In one example, one or more inter-intra candidates are inserted into merge candidate list. When an inter-intra candidate is selected for the current merge-coded block, inter-intra prediction is used in the block. For example, assume that the inter-intra candidate is located in index[1] in the list of candidates. In this example, video encoder 200 may signal the index value of 1 into the list of candidates. Video decoder 300 may determine that based on the value of 1 into the list of candidates, the inter-intra-prediction block is used as the prediction block (e.g., video decoder 300 will generate the inter-intra-prediction block using the motion information and the intra-prediction mode information of the inter-intra candidate).
  • FIG. 13 is a flowchart illustrating an example manner in which to construct a merge candidate list that includes inter-intra-candidates. FIG. 14 is a flowchart illustrating another example manner in which to construct a merge candidate list that includes inter-intra-candidates. For example, FIGS. 13 and 14 shows an example of inserting inter-intra candidates into merge candidate list. FIG. 13 shows that a procedure of inserting an inter-intra candidate is invoked after each normal merge candidate is checked. For instance, FIG. 13 is similar to FIG. 10; however, an inter-intra candidate is appended after each normal merge candidate is checked.
  • For example, a video coder (e.g., one or both of video encoder 200 and video decoder 300) may check block A1 of FIG. 9 (400), and determine whether it is valid (402). If valid (Y of 402), the video coder appends motion information of A1 to the merge candidate list (404). If not valid (N of 402) or after appending to the merge candidate list (404), the video coder may insert an inter-intra candidate (406).
  • The video coder may then check B1 of FIG. 9 (408), and determine whether it is valid (410). If valid (Y of 410), the video coder appends motion information of B1 to the merge candidate list (412). If not valid (N of 410) or after appending to the merge candidate list (412), the video coder may insert an inter-intra candidate (414).
  • The video coder may then check B0 of FIG. 9 (416), and determine whether it is valid (418). If valid (Y of 418), the video coder appends motion information of B0 to the merge candidate list (420). If not valid (N of 418) or after appending to the merge candidate list (420), the video coder may insert an inter-intra candidate (422).
  • The video coder may then check A0 of FIG. 9 (424), and determine whether it is valid (426). If valid (Y of 426), the video coder appends motion information of A0 to the merge candidate list (428). If not valid (N of 426) or after appending to the merge candidate list (428), the video coder may insert an inter-intra candidate (430).
  • The video coder may then check B2 of FIG. 9 (432), and determine whether it is valid (434). If valid and there are less than four entries (e.g., due to pruning described above with respect to FIG. 7A) in the merge candidate list (Y of 434), the video coder appends motion information of B2 to the merge candidate list (436). If not valid or not less than four entries (N of 434) or after appending to the merge candidate list (436), the video coder may insert an inter-intra candidate (438).
  • The video coder may then check the TMVP of FIG. 8A (440), and determine whether it is valid (442). If valid (Y of 442), the video coder appends motion information of the TMVP (based on scaling of FIG. 8B if needed) to the merge candidate list (444). If not valid (N of 442) or after appending to the merge candidate list (444), the video coder may insert an inter-intra candidate (446).
  • The video may then determine whether the candidate list is full (448). If the candidate list is full (Y of 448), the merge candidate list construction process is over. If the candidate list is not full (N of 448), the video coder adds the combined bi-candidate (450), and may insert an inter-intra candidate (452). The video coder may determine if more combined bi-candidates are available (454). If more bi-candidates are available (Y of 454), and the candidate list is not full (N of 448), the video coder may add another bi-candidate and insert another inter-intra candidate, and keep repeating until there are no more bi-candidates or the candidate list is not full.
  • If there are no more bi-candidates (N of 454), and the candidate list not full (N of 456), the video coder may add one default fixed candidate into candidate list (458) and insert an inter-intra candidate (460). The video coder may keep adding one default fixed candidate and an inter-intra candidate into the merge candidate list until the merge candidate list is full (Y of 456).
  • In the example of FIG. 13, the inter-intra candidates that are inserted may be the same inter-intra candidates or two or more of the inter-intra candidates may be different. For instance, video encoder 200 and video decoder 300 may use different weighting or no weighting, or use different starting prediction blocks generated according to inter-prediction mode and intra-prediction mode that are used to generate the inter-intra-prediction block. Also, although FIG. 13 shows that an inter-intra candidate is inserted after every regular candidate is added to the merge candidate list, the techniques are not so limited. For example, if the video coder inserts an inter-intra candidate once, the video coder may not insert another inter-intra candidate.
  • FIG. 14 shows an exemplary procedure of inserting an inter-intra candidate. The variable lastIndexC represents the index of the last merge candidate using inter-intra prediction and it is initialized to be −1. InterIntraFlag[k] represents whether the merge candidate with the candidate k uses inter-intra prediction (InterIntraFlag[k]=1) or not (InterIntraFlag[k]=0) and InterIntraFlag[k] is initialized to be 0 for all k∈[0, MaxMergNum−1], where maxMergeNum is the size of the merge candidate list. CurMergeIdx is the index of merge candidate to be appended into the merge candidate list. After a new candidate is appended into the merge candidate list, CurMergeIdx is set to be CurMergeIdx+1. MinlnterintraIdx represents the allowed smallest merge index for a merge candidate using inter-intra prediction. InterIntraNum represents the allowed number of merge candidates using inter-intra prediction.
  • For example, the video coder may determine whether the merge candidate list is full (462). If the merge candidate list is full (Y of 462), the merge candidate list construction process ends. If the merge candidate list is not full (N of 462), the video coder may determine whether CurMergeIdx is less than MinlnterintraIdx and InterintraNum is less than MaxinterintraNum (464). If CurMergeIdx is not less than MinlnterintraIdx or InterintraNum is not less than MaxinterintraNum (N of 464), then the merge candidate list construction process ends.
  • If CurMergeIdx is less than MinlnterintraIdx and InterintraNum is less than MaxinterintraNum (Y of 464), the video coder may find the smallest IndexC that satisfies the following conditions: IndexC is greater than LastIndexC, IndexC is less than CurMergeIdx, and InterintraFlag[IndexC] is equal to 0 (466). The video coder may determine whether such a value of IndexC that satisfies the above conditions can be found (468). If IndexC cannot be found (N of 468), the merge candidate list construction process ends.
  • If IndexC can be found (Y of 468), then the video coder may perform the following operations. The video coder may copy the motion information of candidate[IndexC] to candidate[CurMergeIdx]. The video coder may set the value of InterIntraFlag[CurMergeIdx] equal to one. The video coder may set the value of LastIndexC equal to CurMergeIdx, and set the value of InterintraNum equal to InterintraNum plus 1 (470). The video coder may then append candidate[CurMergeIdx] to the candidate list as the last candidate (i.e., set CurMergeIdx equal to CurMergeIdx plus 1) (472). The merge candidate construction process may then end, or in some examples, the video coder may again determine whether the merge candidate list is full (462), and repeat the example operations of FIG. 14 until the merge candidate list is full.
  • As shown in FIG. 14, a merge candidate using inter-intra prediction can share the same MI as its preceding merge candidate, for instance where the video coder copies motion information as described with respect to reference numeral (470). In the example of FIG. 14, a merge candidate using inter-intra prediction copies the MI from a preceding merge candidate not using inter-intra prediction which has not been copied from.
  • For instance, in FIG. 14, video encoder 200 and video decoder 300 may determine motion information of an inter-predicted block identified by a smallest index in the list of candidate motion vector predictors to determine the information to generate a prediction block according to an inter-prediction mode (e.g., copy the motion information of the inter-predicted block identified by the smallest index). Video encoder 200 and video decoder 300 may generate a prediction block based on the motion information. Video encoder 200 and video decoder 300 may then generate an inter-intra-prediction block based on this generated prediction block.
  • In some examples, MinlnterintraIdx can be a fixed predefined number at both video encoder 200 and video decoder 300, or it can be signaled from video encoder 200 to video decoder 300, such as in video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), slice header, coding tree unit (CTU), or coding unit (CU). InterIntraNum can be a fixed predefined number at both video encoder 200 and video decoder 300, or it can be signaled from video encoder 200 to video decoder 300, such as in video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), slice header, coding tree unit (CTU), or coding unit (CU).
  • In some examples, MinlnterintraIdx and/or InterIntraNum may depend on previously coded information. For example, MinlnterintraIdx can depend on the temporal layer of the current picture. MinlnterintraIdx may be larger for a slice with a higher temporal layer.
  • In one example, video encoder 200 and video decoder 300 may utilize previously coded information to determine whether to use inter-intra-prediction and/or the way to signal the inter-intra-prediction-flag. For example, if the current block is coded with the Frame-rate-up-conversion (FRUC) mode, inter-intra-prediction-flag is signaled to indicate whether to use inter-intra-prediction or not. If the current block is coded with HEVC-like merge mode, inter-intra-prediction-flag is not signaled, and it is derived from the merge index implicitly whether to use inter-intra-prediction. If the current block is coded with HEVC-like advanced motion vector prediction (AMVP) mode, inter-intra-prediction cannot be used and inter-intra-prediction-flag is not signaled.
  • A flag can be signaled from video encoder 200 to video decoder 300, such as in video parameter set (VPS), sequence parameter set (SPS), picture parameter set (PPS), slice header, coding tree unit (CTU), or coding unit (CU) to indicate whether inter-intra prediction can be used. If this flag is 0, then block-level inter-intra prediction is disabled (“disabled” means there is no inter-intra prediction flag block-level and no implicitly derived inter-intra prediction such as an inter-intra merge candidate).
  • There may be a constraint on inter-intra prediction. Inter-intra prediction may be always disabled for blocks with certain coding tools. For example, inter-intra prediction may be disabled when a block uses illumination compensation (IC) prediction. In another example, inter-intra prediction will be disabled when a block uses affine prediction. In this case (e.g., where affine prediction is used), there may be no need for video encoder 200 to signal to video decoder 300 the usage of inter-intra prediction method for those blocks with IC or affine prediction.
  • In some examples, inter-intra prediction may be always disabled for blocks with certain sizes. Moreover, the intra prediction applied in inter-intra prediction can be combined with other coding tools. For example, PDPC can be applied to planar prediction used in inter-intra prediction.
  • Accordingly, in some examples, a video coder (e.g., video encoder 200 or video decoder 300) may construct a list of candidate motion vector predictors for a current block. Examples of the list of candidate motion vector predictors include a merge candidate list and an AMVP candidate list.
  • To construct the list of candidate motion vector predictors, the video coder includes an inter-prediction candidate in the list candidate motion vector predictors. An example of the inter-prediction candidate is motion information of a neighboring or collocated block of the current block. For instance, inter-prediction candidate may include the motion information of one of blocks A0, A1, B0, B1, or B2 illustrated in FIG. 9 or a collocated block such as block T illustrated in FIG. 8A.
  • To construct the list of candidate motion vector predictors, the video coder includes an inter-intra candidate in the list of candidate motion vector predictors. The inter-intra candidate include information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode. The video coder generates the inter-intra-prediction block based on the first and second prediction blocks. For instance, the video coder may utilize any of the above example techniques to generate an inter-intra-prediction block (e.g., based on a weighted combination or otherwise).
  • The video coder may determine that the inter-intra candidate is to be used as the prediction block for the current block. For example, video encoder 200 may determine a residual between the current block and the prediction block, and signal information indicative of the residual. Video decoder 300 may add the prediction block to received residual block to reconstruct the current block.
  • Because the inter-intra-prediction candidate is part of the list of candidate motion vector predictors, video encoder 200 may not need to signal any additional information indicating that the current block is predicted in an inter-intra-prediction mode (e.g., predicted with an inter-intra-prediction block). Rather, by signaling an index into the list of candidate motion vector predictors, video encoder 200 can use the inter-intra-prediction mode. For example, when video decoder 300 accesses the inter-intra candidate in the list of motion vector predictors based on the received index into the list of motion vector predictors, video decoder 300 may determine that the current block is predicted using the inter-intra-prediction block because the inter-intra candidate is identified by the index. This way, the list of candidate motion vector predictors is leveraged to also be the way in which video decoder 300 can determine that a current block is predicted using an inter-intra-prediction block without needing any separate signaling from video encoder 200 indicating that inter-intra-prediction mode is enabled for the current block.
  • In some examples, the video coder may include the inter-prediction candidate in to the list of candidate motion vector predictors after including the inter-prediction candidate. For example, as illustrated in the flowchart of FIG. 13, the video coder may first append motion information for one of blocks A1, B1, B0, A0, B2, or the TMVP, and after appending motion information of one of these blocks into the list of candidate motion vector predictors, the video coder may insert an inter-intra candidate.
  • In some examples, the video coder may determine the smallest index where inter-intra candidate can be included (e.g., MinInterIntraIdx), and the video coder may include the inter-intra candidate in the list of candidate motion vector predictors based on the determined smallest index where the inter-intra candidate can be included. In some examples, the video coder may determine the maximum number of allowable inter-intra candidates (e.g., InterIntraNum), and the video coder may include the inter-intra candidate in the list of candidate motion vector predictors based on the determined maximum number of allowable inter-intra candidates. In some examples, the video coder may copy motion information of the inter-prediction candidate as motion information of the inter-intra candidate.
  • FIG. 11 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. FIG. 11 is provided for purposes of explanation and should not be considered limiting of the techniques as broadly exemplified and described in this disclosure. For purposes of explanation, this disclosure describes video encoder 200 in the context of video coding standards such as the HEVC video coding standard and the H.266 video coding standard in development. However, the techniques of this disclosure are not limited to these video coding standards, and are applicable generally to video encoding and decoding. Video encoder 200 is an example of processing circuitry (e.g., fixed-function, programmable, or a combination of fixed-function and programmable) configured to perform one or more example techniques described in this disclosure.
  • In the example of FIG. 11, video encoder 200 includes video data memory 230, mode selection unit 202, residual generation unit 204, transform processing unit 206, quantization unit 208, inverse quantization unit 210, inverse transform processing unit 212, reconstruction unit 214, filter unit 216, decoded picture buffer (DPB) 218, and entropy encoding unit 220.
  • Video data memory 230 may store video data to be encoded by the components of video encoder 200. Video encoder 200 may receive the video data stored in video data memory 230 from, for example, video source 104 (FIG. 1). DPB 218 may act as a reference picture memory that stores reference video data for use in prediction of subsequent video data by video encoder 200. Video data memory 230 and DPB 218 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. Video data memory 230 and DPB 218 may be provided by the same memory device or separate memory devices. In various examples, video data memory 230 may be on-chip with other components of video encoder 200, as illustrated, or off-chip relative to those components.
  • In this disclosure, reference to video data memory 230 should not be interpreted as being limited to memory internal to video encoder 200, unless specifically described as such, or memory external to video encoder 200, unless specifically described as such. Rather, reference to video data memory 230 should be understood as reference memory that stores video data that video encoder 200 receives for encoding (e.g., video data for a current block that is to be encoded). Memory 106 of FIG. 1 may also provide temporary storage of outputs from the various units of video encoder 200.
  • The various units of FIG. 11 are illustrated to assist with understanding the operations performed by video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide particular functionality, and are preset on the operations that can be performed. Programmable circuits refer to circuits that can programmed to perform various tasks, and provide flexible functionality in the operations that can be performed. For instance, programmable circuits may execute software or firmware that cause the programmable circuits to operate in the manner defined by instructions of the software or firmware. Fixed-function circuits may execute software instructions (e.g., to receive parameters or output parameters), but the types of operations that the fixed-function circuits perform are generally immutable. In some examples, the one or more of the units may be distinct circuit blocks (fixed-function or programmable), and in some examples, the one or more units may be integrated circuits.
  • Video encoder 200 may include arithmetic logic units (ALUs), elementary function units (EFUs), digital circuits, analog circuits, and/or programmable cores, formed from programmable circuits. In examples where the operations of video encoder 200 are performed using software executed by the programmable circuits, memory 106 (FIG. 1) may store the object code of the software that video encoder 200 receives and executes, or another memory within video encoder 200 (not shown) may store such instructions.
  • Video data memory 230 is configured to store received video data. Video encoder 200 may retrieve a picture of the video data from video data memory 230 and provide the video data to residual generation unit 204 and mode selection unit 202. Video data in video data memory 230 may be raw video data that is to be encoded.
  • Mode selection unit 202 includes a motion estimation unit 222, motion compensation unit 224, and an intra-prediction unit 226. Mode selection unit 202 may include additional functional units to perform video prediction in accordance with other prediction modes. As examples, mode selection unit 202 may include a palette unit, an intra-block copy unit (which may be part of motion estimation unit 222 and/or motion compensation unit 224), an affine unit, a linear model (LM) unit, or the like.
  • Mode selection unit 202 generally coordinates multiple encoding passes to test combinations of encoding parameters and resulting rate-distortion values for such combinations. The encoding parameters may include partitioning of CTUs into CUs, prediction modes for the CUs, transform types for residual data of the CUs, quantization parameters for residual data of the CUs, and so on. Mode selection unit 202 may ultimately select the combination of encoding parameters having rate-distortion values that are better than the other tested combinations.
  • Video encoder 200 may partition a picture retrieved from video data memory 230 into a series of CTUs, and encapsulate one or more CTUs within a slice. Mode selection unit 202 may partition a CTU of the picture in accordance with a tree structure, such as the QTBT structure or the quad-tree structure of HEVC described above. As described above, video encoder 200 may form one or more CUs from partitioning a CTU according to the tree structure. Such a CU may also be referred to generally as a “video block” or “block.”
  • In general, mode selection unit 202 also controls the components thereof (e.g., motion estimation unit 222, motion compensation unit 224, and intra-prediction unit 226) to generate a prediction block for a current block (e.g., a current CU, or in HEVC, the overlapping portion of a PU and a TU). For inter-prediction of a current block, motion estimation unit 222 may perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously coded pictures stored in DPB 218). In particular, motion estimation unit 222 may calculate a value representative of how similar a potential reference block is to the current block, e.g., according to sum of absolute difference (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared differences (MSD), or the like. Motion estimation unit 222 may generally perform these calculations using sample-by-sample differences between the current block and the reference block being considered. Motion estimation unit 222 may identify a reference block having a lowest value resulting from these calculations, indicating a reference block that most closely matches the current block.
  • Motion estimation unit 222 may form one or more motion vectors (MVs) that defines the positions of the reference blocks in the reference pictures relative to the position of the current block in a current picture. Motion estimation unit 222 may then provide the motion vectors to motion compensation unit 224. For example, for uni-directional inter-prediction, motion estimation unit 222 may provide a single motion vector, whereas for bi-directional inter-prediction, motion estimation unit 222 may provide two motion vectors. Motion compensation unit 224 may then generate a prediction block using the motion vectors. For example, motion compensation unit 224 may retrieve data of the reference block using the motion vector. As another example, if the motion vector has fractional sample precision, motion compensation unit 224 may interpolate values for the prediction block according to one or more interpolation filters. Moreover, for bi-directional inter-prediction, motion compensation unit 224 may retrieve data for two reference blocks identified by respective motion vectors and combine the retrieved data, e.g., through sample-by-sample averaging or weighted averaging.
  • As another example, for intra-prediction, or intra-prediction coding, intra-prediction unit 226 may generate the prediction block from samples neighboring the current block. For example, for directional modes, intra-prediction unit 226 may generally mathematically combine values of neighboring samples and populate these calculated values in the defined direction across the current block to produce the prediction block. As another example, for DC mode, intra-prediction unit 226 may calculate an average of the neighboring samples to the current block and generate the prediction block to include this resulting average for each sample of the prediction block.
  • Mode selection unit 202 provides the prediction block to residual generation unit 204. Residual generation unit 204 receives a raw, uncoded version of the current block from video data memory 230 and the prediction block from mode selection unit 202. Residual generation unit 204 calculates sample-by-sample differences between the current block and the prediction block. The resulting sample-by-sample differences define a residual block for the current block. In some examples, residual generation unit 204 may also determine differences between sample values in the residual block to generate a residual block using residual differential pulse code modulation (RDPCM). In some examples, residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.
  • In examples where mode selection unit 202 partitions CUs into PUs, each PU may be associated with a luma prediction unit and corresponding chroma prediction units. Video encoder 200 and video decoder 300 may support PUs having various sizes. As indicated above, the size of a CU may refer to the size of the luma coding block of the CU and the size of a PU may refer to the size of a luma prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, video encoder 200 may support PU sizes of 2N×2N or N×N for intra prediction, and symmetric PU sizes of 2N×2N, 2N×N, N×2N, N×N, or similar for inter prediction. Video encoder 200 and video decoder 300 may also support asymmetric partitioning for PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter prediction.
  • In examples where mode selection unit does not further partition a CU into PUs, each CU may be associated with a luma coding block and corresponding chroma coding blocks. As above, the size of a CU may refer to the size of the luma coding block of the CU. The video encoder 200 and video decoder 300 may support CU sizes of 2N×2N, 2N×N, or N×2N.
  • For other video coding techniques such as inter-intra-prediction mode, an intra-block copy mode coding, an affine-mode coding, and linear model (LM) mode coding, as few examples, mode selection unit 202, via respective units associated with the coding techniques, generates a prediction block for the current block being encoded. In some examples, such as palette mode coding, mode selection unit 202 may not generate a prediction block, and instead generate syntax elements that indicate the manner in which to reconstruct the block based on a selected palette. In such modes, mode selection unit 202 may provide these syntax elements to entropy encoding unit 220 to be encoded.
  • As described above, residual generation unit 204 receives the video data for the current block and the corresponding prediction block. Residual generation unit 204 then generates a residual block for the current block. To generate the residual block, residual generation unit 204 calculates sample-by-sample differences between the prediction block and the current block.
  • Transform processing unit 206 applies one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a “transform coefficient block”). Transform processing unit 206 may apply various transforms to a residual block to form the transform coefficient block. For example, transform processing unit 206 may apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to a residual block. In some examples, transform processing unit 206 may perform multiple transforms to a residual block, e.g., a primary transform and a secondary transform, such as a rotational transform. In some examples, transform processing unit 206 does not apply transforms to a residual block.
  • Quantization unit 208 may quantize the transform coefficients in a transform coefficient block, to produce a quantized transform coefficient block. Quantization unit 208 may quantize transform coefficients of a transform coefficient block according to a quantization parameter (QP) value associated with the current block. Video encoder 200 (e.g., via mode selection unit 202) may adjust the degree of quantization applied to the coefficient blocks associated with the current block by adjusting the QP value associated with the CU. Quantization may introduce loss of information, and thus, quantized transform coefficients may have lower precision than the original transform coefficients produced by transform processing unit 206.
  • Inverse quantization unit 210 and inverse transform processing unit 212 may apply inverse quantization and inverse transforms to a quantized transform coefficient block, respectively, to reconstruct a residual block from the transform coefficient block. Reconstruction unit 214 may produce a reconstructed block corresponding to the current block (albeit potentially with some degree of distortion) based on the reconstructed residual block and a prediction block generated by mode selection unit 202. For example, reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the prediction block generated by mode selection unit 202 to produce the reconstructed block.
  • Filter unit 216 may perform one or more filter operations on reconstructed blocks. For example, filter unit 216 may perform deblocking operations to reduce blockiness artifacts along edges of CUs. Operations of filter unit 216 may be skipped, in some examples.
  • Video encoder 200 stores reconstructed blocks in DPB 218. For instance, in examples where operations of filter unit 216 are not needed, reconstruction unit 214 may store reconstructed blocks to DPB 218. In examples where operations of filter unit 216 are needed, filter unit 216 may store the filtered reconstructed blocks to DPB 218. Motion estimation unit 222 and motion compensation unit 224 may retrieve a reference picture from DPB 218, formed from the reconstructed (and potentially filtered) blocks, to inter-predict blocks of subsequently encoded pictures. In addition, intra-prediction unit 226 may use reconstructed blocks in DPB 218 of a current picture to intra-predict other blocks in the current picture.
  • In general, entropy encoding unit 220 may entropy encode syntax elements received from other functional components of video encoder 200. For example, entropy encoding unit 220 may entropy encode quantized transform coefficient blocks from quantization unit 208. As another example, entropy encoding unit 220 may entropy encode prediction syntax elements (e.g., motion information for inter-prediction or intra-mode information for intra-prediction) from mode selection unit 202. Entropy encoding unit 220 may perform one or more entropy encoding operations on the syntax elements, which are another example of video data, to generate entropy-encoded data. For example, entropy encoding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable-to-variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a Probability Interval Partitioning Entropy (PIPE) coding operation, an Exponential-Golomb encoding operation, or another type of entropy encoding operation on the data. In some examples, entropy encoding unit 220 may operate in bypass mode where syntax elements are not entropy encoded.
  • The operations described above are described with respect to a block. Such description should be understood as being operations for a luma coding block and/or chroma coding blocks. As described above, in some examples, the luma coding block and chroma coding blocks are luma and chroma components of a CU. In some examples, the luma coding block and the chroma coding blocks are luma and chroma components of a PU.
  • In some examples, operations performed with respect to a luma coding block need not be repeated for the chroma coding blocks. As one example, operations to identify a motion vector (MV) and reference picture for a luma coding block need not be repeated for identifying a MV and reference picture for the chroma blocks. Rather, the MV for the luma coding block may be scaled to determine the MV for the chroma blocks, and the reference picture may be the same. As another example, the intra-prediction process may be the same for the luma coding blocks and the chroma coding blocks.
  • Video encoder 200 represents an example of a device configured to encode video data including a memory configured to store video data, and one or more processing units implemented in circuitry and configured to perform example techniques described in this disclosure.
  • For example, mode selection unit 202 of video encoder 200 may be configured to perform the example techniques described in this disclosure. However, the example techniques may be performed by other components or other components in combination with mode selection unit 202.
  • As one example, a memory, such as video data memory 230, DPB 218, and/or memory 106 (FIG. 1), may be configured to store reference pictures and sample values of neighboring samples of a block in a picture. Mode selection unit 202 may be configured to generate an inter-intra-prediction block (e.g., final prediction block) using the reference pictures and neighboring sample values stored in the memory.
  • For instance, mode selection unit 202 may determine an intra-prediction mode for the block of the picture (e.g., one of the modes illustrated in FIG. 4). Mode selection unit 202 may determine a first weight and a second weight based on the determined intra-prediction mode, to be applied to respective ones of a first prediction block generated according to an intra-prediction mode and a second prediction block generated according to an inter-prediction mode. As one example, the memory may store information indicating the weights associated with each intra-prediction mode, and mode selection unit 202 may parse the memory to determine the first weight and the second weight.
  • As another example, the memory may store information indicating the weights associated with a classification of the intra-prediction mode, and mode selection unit 202 may parse the memory to determine the first weight and the second weight based on the classification. For example, mode selection unit 202 may determine an intra-prediction mode classification based on the intra-prediction mode. To determine the intra-prediction mode, mode selection unit 202 may determine, from a plurality of ranges, a range within which the intra-prediction mode resides. The plurality of ranges may be based on angles associated with prediction directions of corresponding intra-prediction modes. Mode selection unit 202 may then determine the intra-prediction mode classification based on the determined range. Mode selection unit 202 may determine the first weight and the second weight based on the determined intra-prediction mode classification.
  • As another example, the first weight and the second weight may be based also on respective locations of sample values of prediction blocks generated from inter- and intra-prediction mode techniques. For instance, in a first prediction block generated according to an intra-prediction mode, a first sample located at (0, 0) may be assigned a corresponding weight value, a second sample located at (0, 1) may be assigned a corresponding weight value, and so forth. The corresponding weight values may also be based on the intra-prediction mode. Similarly, in a second prediction block generated according to an inter-prediction mode, a first sample located at (0, 0) may be assigned a corresponding weight value, a second sample located at (0, 1) may be assigned a corresponding weight value, and so forth. The corresponding weight values may also be based on the intra-prediction mode.
  • As another example, mode selection unit 202 may determine the first weight and the second weight based on a polynomial equation having values defined by the intra-prediction mode and one or more coefficients. The one or more coefficients may only be integers. Examples of the polynomial equation are given above.
  • In some examples, mode selection unit 202 may be configured to construct a candidate list that includes an inter-intra candidate. For example, mode selection unit 202 may construct a list of candidate motion vector predictors, for storage in the memory, for a current block. To construct the list of candidate motion vector predictors, mode selection unit 202 may include an inter-prediction candidate in the list of candidate motion vector predictors. The inter-prediction candidate includes motion information of a neighboring or collocated block of the current block. The flowchart of FIG. 13 illustrates examples of neighboring or collocated blocks that are included in the list of candidate motion vector predictors.
  • Mode selection unit 202 may also include an inter-intra candidate in the list of candidate motion vector predictors. The inter-intra candidate includes information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode.
  • Mode selection unit 202 may determine that the inter-intra candidate is to be used as the prediction block for the current block. Mode selection unit 202 may signal an index value into the list of candidate motion vector predictors that identifies the inter-intra candidate in the list of candidate motion vector predictors.
  • FIG. 12 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. FIG. 12 is provided for purposes of explanation and is not limiting on the techniques as broadly exemplified and described in this disclosure. Video decoder 300 is an example of processing circuitry (e.g., fixed-function, programmable, or a combination of fixed-function and programmable) configured to perform one or more example techniques described in this disclosure.
  • For purposes of explanation, this disclosure describes video decoder 300 is described according to the techniques of JEM and HEVC. However, the techniques of this disclosure may be performed by video coding devices that are configured to other video coding standards.
  • In the example of FIG. 12, video decoder 300 includes coded picture buffer (CPB) memory 320, entropy decoding unit 302, prediction processing unit 304, inverse quantization unit 306, inverse transform processing unit 308, reconstruction unit 310, filter unit 312, and decoded picture buffer (DPB) 314. Prediction processing unit 304 includes motion compensation unit 316 and intra-prediction unit 318. Prediction processing unit 304 may include addition units to perform prediction in accordance with other prediction modes. As examples, prediction processing unit 304 may include a palette unit, an intra-block copy unit (which may form part of motion compensation unit 316), an affine unit, a linear model (LM) unit, or the like. In other examples, video decoder 300 may include more, fewer, or different functional components.
  • CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by the components of video decoder 300. The video data stored in CPB memory 320 may be obtained, for example, from computer-readable medium 110 (FIG. 1). CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from an encoded video bitstream. Also, CPB memory 320 may store video data other than syntax elements of a coded picture, such as temporary data representing outputs from the various units of video decoder 300. DPB 314 generally stores decoded pictures, which video decoder 300 may output and/or use as reference video data when decoding subsequent data or pictures of the encoded video bitstream. CPB memory 320 and DPB 314 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. CPB memory 320 and DPB 314 may be provided by the same memory device or separate memory devices. In various examples, CPB memory 320 may be on-chip with other components of video decoder 300, or off-chip relative to those components.
  • Additionally or alternatively, in some examples, video decoder 300 may retrieve coded video data from memory 120 (FIG. 1). That is, memory 120 may store data as discussed above with CPB memory 320. Likewise, memory 120 may store instructions to be executed by video decoder 300, when some or all of the functionality of video decoder 300 is implemented in software to executed by processing circuitry of video decoder 300.
  • The various units shown in FIG. 12 are illustrated to assist with understanding the operations performed by video decoder 300. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Similar to FIG. 11, fixed-function circuits refer to circuits that provide particular functionality, and are preset on the operations that can be performed. Programmable circuits refer to circuits that can programmed to perform various tasks, and provide flexible functionality in the operations that can be performed. For instance, programmable circuits may execute software or firmware that cause the programmable circuits to operate in the manner defined by instructions of the software or firmware. Fixed-function circuits may execute software instructions (e.g., to receive parameters or output parameters), but the types of operations that the fixed-function circuits perform are generally immutable. In some examples, the one or more of the units may be distinct circuit blocks (fixed-function or programmable), and in some examples, the one or more units may be integrated circuits.
  • Video decoder 300 may include ALUs, EFUs, digital circuits, analog circuits, and/or programmable cores formed from programmable circuits. In examples where the operations of video decoder 300 are performed by software executing on the programmable circuits, on-chip or off-chip memory may store instructions (e.g., object code) of the software that video decoder 300 receives and executes.
  • Entropy decoding unit 302 may receive encoded video data from the CPB and entropy decode the video data to reproduce syntax elements. Prediction processing unit 304, inverse quantization unit 306, inverse transform processing unit 308, reconstruction unit 310, and filter unit 312 may generate decoded video data based on the syntax elements extracted from the bitstream.
  • In general, video decoder 300 reconstructs a picture on a block-by-block basis. Video decoder 300 may perform a reconstruction operation on each block individually (where the block currently being reconstructed, i.e., decoded, may be referred to as a “current block”).
  • Entropy decoding unit 302 may entropy decode syntax elements defining quantized transform coefficients of a quantized transform coefficient block, as well as transform information, such as a quantization parameter (QP) and/or transform mode indication(s). Inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a degree of quantization and, likewise, a degree of inverse quantization for inverse quantization unit 306 to apply. Inverse quantization unit 306 may, for example, perform a bitwise left-shift operation to inverse quantize the quantized transform coefficients. Inverse quantization unit 306 may thereby form a transform coefficient block including transform coefficients.
  • After inverse quantization unit 306 forms the transform coefficient block, inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the coefficient block.
  • Furthermore, prediction processing unit 304 generates a prediction block according to prediction information syntax elements that were entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax elements indicate that the current block is inter-predicted, motion compensation unit 316 may generate the prediction block. In this case, the prediction information syntax elements may indicate a reference picture in DPB 314 from which to retrieve a reference block, as well as a motion vector identifying a location of the reference block in the reference picture relative to the location of the current block in the current picture. Motion compensation unit 316 may generally perform the inter-prediction process in a manner that is substantially similar to that described with respect to motion compensation unit 224 (FIG. 11).
  • As another example, if the prediction information syntax elements indicate that the current block is intra-predicted, intra-prediction unit 318 may generate the prediction block according to an intra-prediction mode indicated by the prediction information syntax elements. Again, intra-prediction unit 318 may generally perform the intra-prediction process in a manner that is substantially similar to that described with respect to intra-prediction unit 226 (FIG. 11). Intra-prediction unit 318 may retrieve data of neighboring samples to the current block from DPB 314.
  • Reconstruction unit 310 may reconstruct the current block using the prediction block and the residual block. For example, reconstruction unit 310 may add samples of the residual block to corresponding samples of the prediction block to reconstruct the current block.
  • Filter unit 312 may perform one or more filter operations on reconstructed blocks. For example, filter unit 312 may perform deblocking operations to reduce blockiness artifacts along edges of the reconstructed blocks. Operations of filter unit 312 are not necessarily performed in all examples.
  • Video decoder 300 may store the reconstructed blocks in DPB 314. As discussed above, DPB 314 may provide reference information, such as samples of a current picture for intra-prediction and previously decoded pictures for subsequent motion compensation, to prediction processing unit 304. Moreover, video decoder 300 may output decoded pictures from DPB for subsequent presentation on a display device, such as display device 118 of FIG. 1.
  • In this manner, video decoder 300 represents an example of a video decoding device including a memory configured to store video data, and one or more processing units implemented in circuitry and configured to perform the example operations described in this disclosure.
  • For example, prediction processing unit 304 of video decoder 300 may be configured to perform the example techniques described in this disclosure. However, the example techniques may be performed by other components or other components in combination with prediction processing unit 304.
  • As one example, a memory, such as CPB memory 320, DPB 314, and/or memory 120 (FIG. 1), may be configured to store reference pictures and sample values of neighboring samples of a block in a picture. Prediction processing unit 304 may be configured to generate an inter-intra-prediction block (e.g., final prediction block) using the reference pictures and neighboring sample values stored in the memory.
  • For instance, prediction processing unit 304 may determine an intra-prediction mode for the block of the picture (e.g., one of the modes illustrated in FIG. 4) based on signaled information. Prediction processing unit 304 may determine a first weight and a second weight based on the determined intra-prediction mode, to be applied to respective ones of a first prediction block generated according to an intra-prediction mode and a second prediction block generated according to an inter-prediction mode. As one example, the memory may store information indicating the weights associated with each intra-prediction mode, and prediction processing unit 304 may parse the memory to determine the first weight and the second weight.
  • As another example, the memory may store information indicating the weights associated with a classification of the intra-prediction mode, and prediction processing unit 304 may parse the memory to determine the first weight and the second weight based on the classification. For example, prediction processing unit 304 may determine an intra-prediction mode classification based on the intra-prediction mode. To determine the intra-prediction mode, prediction processing unit 304 may determine, from a plurality of ranges, a range within which the intra-prediction mode resides. The plurality of ranges may be based on angles associated with prediction directions of corresponding intra-prediction modes. Prediction processing unit 304 may then determine the intra-prediction mode classification based on the determined range. Prediction processing unit 304 may determine the first weight and the second weight based on the determined intra-prediction mode classification.
  • As another example, the first weight and the second weight may be based also on respective locations of sample values of prediction blocks generated from inter- and intra-prediction mode techniques. For instance, in a first prediction block generated according to an intra-prediction mode, a first sample located at (0, 0) may be assigned a corresponding weight value, a second sample located at (0, 1) may be assigned a corresponding weight value, and so forth. The corresponding weight values may also be based on the intra-prediction mode. Similarly, in a second prediction block generated according to an inter-prediction mode, a first sample located at (0, 0) may be assigned a corresponding weight value, a second sample located at (0, 1) may be assigned a corresponding weight value, and so forth. The corresponding weight values may also be based on the intra-prediction mode.
  • As another example, prediction processing unit 304 may determine the first weight and the second weight based on a polynomial equation having values defined by the intra-prediction mode and one or more coefficients. The one or more coefficients may only be integers. Examples of the polynomial equation are given above.
  • In some examples, prediction processing unit 304 may be configured to construct a candidate list that includes an inter-intra candidate. In some examples, prediction processing unit 304 may be configured to construct a candidate list that includes an inter-intra candidate. For example, prediction processing unit 304 may construct a list of candidate motion vector predictors, for storage in the memory, for a current block. To construct the list of candidate motion vector predictors, prediction processing unit 304 may include an inter-prediction candidate in the list of candidate motion vector predictors. The inter-prediction candidate includes motion information of a neighboring or collocated block of the current block. The flowchart of FIG. 13 illustrates examples of neighboring or collocated blocks that are included in the list of candidate motion vector predictors.
  • Prediction processing unit 304 may also include an inter-intra candidate in the list of candidate motion vector predictors. The inter-intra candidate includes information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode.
  • Prediction processing unit 304 may reconstruct the current block based on the inter-intra candidate. For example, prediction processing unit 304 may add values of the prediction block (e.g., inter-intra-prediction block) to values of a residual block signaled by video encoder 200 to reconstruct the current block.
  • FIG. 15 is a flowchart illustrating an example method of decoding video data. As illustrated, in FIG. 15, video decoder 300 may determine an intra-prediction mode for a current block of a picture (500). For instance, video decoder 300 may receive information from the bitstream that indicates an intra-prediction mode. As another example, video decoder 300 may determine an intra-prediction mode for the current block based on intra-prediction modes of neighboring blocks.
  • Video decoder 300 may determine a first weight and a second weight based on the determined intra-prediction mode (502). As described above and further below, the first weight and second weight may be for applying to a first prediction block generated according to the intra-prediction mode, or a second prediction block generated according to an inter-prediction mode.
  • As one example, for each intra-prediction mode, there may be associated values for the first weight and the second weight, and video decoder 300 may determine the first weight and second weight based on associated values. As another example, video decoder 300 may determine an intra-prediction mode classification based on the intra-prediction mode. For instance, video decoder 300 may determine, from a plurality of ranges, a range within which the intra-prediction mode resides, and determine the intra-prediction mode classification based on the determined range. Video decoder 300 may determine the first weight and the second weight based on the determined intra-prediction mode classification.
  • In some examples, video decoder 300 may determine respective first weights and second weights for each sample in the respective first and second prediction blocks based on the intra-prediction mode and a location of each sample in the respective first and second prediction blocks. For instance, for each sample in the respective first and second prediction blocks, video decoder 300 may determine respective first and second weights. The respective first and second weights may be based on the location of the respective samples in the first and second prediction blocks and based on the intra-prediction mode. In some examples, the first and second weights may be the same for all samples in the first and second prediction blocks.
  • In some examples, video decoder 300 may determine the first weight and the second weight based on a polynomial equation having values defined by the intra-prediction mode and one or more coefficients. The one or more coefficients are integers in some examples.
  • Video decoder 300 may generate a first prediction block for the current block of the picture according to the intra-prediction mode (504). For example, video decoder 300 may generate a prediction block based on the neighboring sample values, stored in memory, where which neighboring sample values to use is defined by the intra-prediction mode.
  • Video decoder 300 may generate a second prediction block for the current block of the picture according to an inter-prediction mode (506). For example, video decoder 300 may determine a motion vector and a reference picture based on received information or based on motion information of neighboring blocks. Video decoder 300 may retrieve, from memory, a prediction block from the reference picture identified by the motion vector.
  • Video decoder 300 may apply the first weight to the first prediction block to generate a first weighted block (508). For example, video decoder 300 may multiply the first weight with each sample in the first prediction block to generate the first weighted block. As described above, the first weight may be the same for each sample in the first prediction block, or two or more of the samples in the first prediction block may have different first weights (e.g., such as where the value of the first weight is based on the location of the sample in the first prediction block).
  • Video decoder 300 may apply the second weight to the second prediction block to generate a second weighted block (510). For example, video decoder 300 may multiply the second weight with each sample in the second prediction block to generate the second weighted block. As described above, the second weight may be the same for each sample in the second prediction block, or two or more of the samples in the second prediction block may have different first weights (e.g., such as where the value of the second weight is based on the location of the sample in the second prediction block).
  • Video decoder 300 may generate a final prediction block for the current block of the picture based on the first weighted block and the second weighted block (512) (e.g., sum of the first and second weighted blocks). The final prediction block may also be referred to as an inter-intra-prediction block. In one example, video decoder 300 may add the first weighted block and the second weighted block to generate the final prediction block.
  • As described above, the current block may include a luma component and a chroma component. In some examples, to generate the final prediction block, video decoder 300 may generate both a final luma prediction block and a final chroma prediction block based on the first and second weights applied to respective luma and chroma components of the first and second prediction blocks. In some examples, to generate the final prediction block, video decoder 300 may generate only a final luma prediction block or a final chroma prediction block based on the first and second weights applied to only one of respective luma and chroma components of the first and second prediction blocks.
  • Video decoder 300 may reconstruct the current block of the picture based on the final prediction block and a residual between the final prediction block and the current block of the picture (514). For example, video decoder 300 may generate a residual block based on information received in the bitstream. Video decoder 300 may add the residual block to the final prediction block to reconstruct the current block of the picture.
  • FIG. 16 is a flowchart illustrating an example method of encoding video data. As illustrated, in FIG. 16, video encoder 200 may determine an intra-prediction mode for a current block of a picture (600). For instance, video encoder 200 may construct different prediction blocks for respective intra-prediction modes and determine which one of the intra-prediction modes provides the best quality as the intra-prediction mode. As another example, video encoder 200 may determine the intra-prediction mode based on intra-prediction modes of neighboring blocks.
  • Video encoder 200 may determine a first weight and a second weight based on the determined intra-prediction mode (602). As described above and further below, the first weight and second weight may be for applying to a first prediction block generated according to the intra-prediction mode, or a second prediction block generated according to an inter-prediction mode.
  • As one example, for each intra-prediction mode, there may be associated values for the first weight and the second weight, and video encoder 200 may determine the first weight and second weight based on associated values. As another example, video encoder 200 may determine an intra-prediction mode classification based on the intra-prediction mode. For instance, video encoder 200 may determine, from a plurality of ranges, a range within which the intra-prediction mode resides, and determine the intra-prediction mode classification based on the determined range. Video encoder 200 may determine the first weight and the second weight based on the determined intra-prediction mode classification.
  • In some examples, video encoder 200 may determine respective first weights and second weights for each sample in the respective first and second prediction blocks based on the intra-prediction mode and a location of each sample in the respective first and second prediction blocks. For instance, for each sample in the respective first and second prediction blocks, video encoder 200 may determine respective first and second weights. The respective first and second weights may be based on the location of the respective samples in the first and second prediction blocks and based on the intra-prediction mode. In some examples, the first and second weights may be the same for all samples in the first and second prediction blocks.
  • In some examples, video encoder 200 may determine the first weight and the second weight based on a polynomial equation having values defined by the intra-prediction mode and one or more coefficients. The one or more coefficients are integers in some examples.
  • Video encoder 200 may generate a first prediction block for the current block of the picture according to the intra-prediction mode (604). For example, video encoder 200 may generate a prediction block based on the neighboring sample values, stored in memory, where which neighboring sample values to use is defined by the intra-prediction mode.
  • Video encoder 200 may generate a second prediction block for the current block of the picture according to an inter-prediction mode (606). For example, video encoder 200 may determine a motion vector and a reference picture based on which combination of motion vector and reference picture provides the best quality or based on motion information of neighboring blocks. Video encoder 200 may retrieve, from memory, a prediction block from the reference picture identified by the motion vector.
  • Video encoder 200 may apply the first weight to the first prediction block to generate a first weighted block (608). For example, video encoder 200 may multiply the first weight with each sample in the first prediction block to generate the first weighted block. As described above, the first weight may be the same for each sample in the first prediction block, or two or more of the samples in the first prediction block may have different first weights (e.g., such as where the value of the first weight is based on the location of the sample in the first prediction block).
  • Video encoder 200 may apply the second weight to the second prediction block to generate a second weighted block (610). For example, video encoder 200 may multiply the second weight with each sample in the second prediction block to generate the second weighted block. As described above, the second weight may be the same for each sample in the second prediction block, or two or more of the samples in the second prediction block may have different first weights (e.g., such as where the value of the second weight is based on the location of the sample in the second prediction block).
  • Video encoder 200 may generate a final prediction block for the current block of the picture based on the first weighted block and the second weighted block (612). The final prediction block may also be referred to as an inter-intra-prediction block. In one example, video encoder 200 may add the first weighted block and the second weighted block together to generate the final prediction block.
  • As described above, the current block may include a luma component and a chroma component. In some examples, to generate the final prediction block, video encoder 200 may generate both a final luma prediction block and a final chroma prediction block based on the first and second weights applied to respective luma and chroma components of the first and second prediction blocks. In some examples, to generate the final prediction block, video encoder 200 may generate only a final luma prediction block or a final chroma prediction block based on the first and second weights applied to only one of respective luma and chroma components of the first and second prediction blocks.
  • Video encoder 200 may generate a residual block based on the final prediction block and the current block (614). For example, video encoder 200 may subtract the values of the final prediction block from the values of the current block to generate the residual block. Video encoder 200 may then signal information indicative of the residual block (616). For example, video encoder 200 may DCT transform, quantize, and entropy encode the information indicative of the residual block.
  • FIG. 17 is a flowchart illustrating an example method of decoding video data. As illustrated, video decoder 300 may be configured to construct a list of candidate motion vector predictors, for storage in memory, for a current block (700). Examples of the list of candidate motion vector predictors include the merge candidate list and the AMVP candidate list.
  • In one example, to construct the list of candidate motion vector predictors, video decoder 300 may include an inter-prediction candidate in the list of candidate motion vector predictors (702). The inter-prediction candidate may be motion information of a neighboring or collocated block of the current block. Video decoder 300 may also include an inter-intra candidate in the list of candidate motion vector predictors (704). The inter-intra candidate may include information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode.
  • In FIG. 17, the inter-prediction candidate is illustrated as being included first, and after including the inter-prediction candidate, video decoder 300 may include the inter-intra candidate in the list of candidate motion vector predictors. However, in some examples, video decoder 300 may first include the inter-intra candidate, and then include the inter-prediction candidate in the list of motion vector predictors.
  • There may be various ways in which video decoder 300 may determine the motion information for the second prediction block and the intra-prediction mode for the first prediction block. For instance, video decoder 300 may receive information in the bitstream of the motion information and the intra-prediction mode. As another example, video decoder 300 may determine the motion information and the intra-prediction mode based on neighboring blocks. As another example, video decoder 300 may determine motion information of an inter-predicted block identified by a smallest index in the list of candidate motion vector predictors to determine the information to generate the second prediction block, and generate the second prediction block based on the motion information. Video decoder 300 may determine an intra-prediction mode to determine the information to generate the first prediction block, and generate the first prediction block based on the determined intra-prediction mode.
  • In some examples, video decoder 300 may determine a smallest index (e.g., MinInterIntraIdx) where the inter-intra candidate can be included in the list of candidate motion vector predictors. In such examples, video decoder 300 may include the inter-intra candidate in the list of candidate motion vector predictors based on the determined smallest index where the inter-intra candidate can be included.
  • In some examples, video decoder 300 may determine a maximum number of allowable inter-intra candidates (e.g., InterIntraNum). In such examples, video decoder 300 may include the inter-intra candidate in the list of candidate motion vector predictors based on the determined maximum number of allowable inter-intra candidates (e.g., so that the number of inter-intra candidates is not greater than InterIntraNum).
  • Video decoder 300 may determine that the inter-intra candidate is to be used (706). For example, video decoder 300 may receive an index into the list of candidate motion vector predictors, and determine that the inter-intra candidate is identified in the list of candidate motion vector predictors by the received index. Video decoder 300 may generate the inter-intra-prediction block using the first and second prediction blocks (e.g., using any of the techniques described above or other techniques) (708). In this manner, video decoder 300 may determine that the inter-intra candidate is to be used to generate the inter-intra-prediction block for the current block without receiving any additional signaling indicating that the current block is predicted according to an inter-intra-prediction mode (e.g., that the current block is predicted with the inter-intra-prediction block).
  • Video decoder 300 may reconstruct the current block based on the inter-intra candidate (710). For example, video decoder 300 may add values of the prediction block to values of a residual block to reconstruct the current block.
  • FIG. 18 is a flowchart illustrating an example method of encoding video data. As illustrated, video encoder 200 may be configured to construct a list of candidate motion vector predictors, for storage in memory, for a current block (800). Examples of the list of candidate motion vector predictors include the merge candidate list and the AMVP candidate list.
  • In one example, to construct the list of candidate motion vector predictors, video encoder 200 may include an inter-prediction candidate in the list of candidate motion vector predictors (802). The inter-prediction candidate may be motion information of a neighboring or collocated block of the current block. Video encoder 200 may also include an inter-intra candidate in the list of candidate motion vector predictors (804). The inter-intra candidate may include information to generate a first prediction block according to an intra-prediction mode and information to generate a second prediction block according to an inter-prediction mode.
  • In this way, the inter-intra-prediction block is identified in a list of candidate motion vector predictors, and can be used to predict the current block. For instance, the list of candidate motion vector predictors is leveraged to identify an inter-intra-prediction block.
  • In FIG. 18, the inter-prediction candidate is illustrated as being included first, and after including the inter-prediction candidate, video encoder 200 may include the inter-intra candidate in the list of candidate motion vector predictors. However, in some examples, video encoder 200 may first include the inter-intra candidate, and then include the inter-prediction candidate in the list of motion vector predictors.
  • There may be various ways in which video encoder 200 may determine the motion information for the second prediction block and the intra-prediction mode for the first prediction block. For instance, video encoder 200 may signal information in the bitstream of the motion information and the intra-prediction mode. As another example, video encoder 200 may determine the motion information and the intra-prediction mode based on neighboring blocks. As another example, video encoder 200 may determine motion information of an inter-predicted block identified by a smallest index in the list of candidate motion vector predictors to determine the information to generate the second prediction block, and generate the second prediction block based on the motion information. Video encoder 200 may determine an intra-prediction mode to determine the information to generate the first prediction block, and generate the first prediction block based on the determined intra-prediction mode.
  • In some examples, video encoder 200 may determine a smallest index (e.g., MinInterIntraIdx) where the inter-intra candidate can be included in the list of candidate motion vector predictors. In such examples, video encoder 200 may include the inter-intra candidate in the list of candidate motion vector predictors based on the determined smallest index where the inter-intra candidate can be included.
  • In some examples, video encoder 200 may determine a maximum number of allowable inter-intra candidates (e.g., InterIntraNum). In such examples, video encoder 200 may include the inter-intra candidate in the list of candidate motion vector predictors based on the determined maximum number of allowable inter-intra candidates (e.g., so that the number of inter-intra candidates is not greater than InterIntraNum).
  • Video encoder 200 may determine that the inter-intra candidate is to be used (806). For example, video encoder 200 may determine that the inter-intra-prediction block provides the best quality. Video encoder 200 may generate the inter-intra-prediction block using the first and second prediction blocks (e.g., using any of the techniques described above or other techniques) (808). In this manner, video encoder 200 may indicate to video decoder 300 that the inter-intra candidate is to be used as the prediction block for the current block without needing to signal any additional information indicating that the current block is predicted according to an inter-intra-prediction mode (e.g., that the current block is predicted with the inter-intra-prediction block).
  • Video encoder 200 may signal an index value into the list of candidate motion vector predictors that identifies the inter-intra candidate in the list of candidate motion vector predictors based on the determination (810). Video encoder 200 may also determine a residual between the current block and the prediction block, and signal information indicative of the residual.
  • It is to be recognized that depending on the example, certain acts or events of any of the techniques described herein can be performed in a different sequence, may be added, merged, or left out altogether (e.g., not all described acts or events are necessary for the practice of the techniques). Moreover, in certain examples, acts or events may be performed concurrently, e.g., through multi-threaded processing, interrupt processing, or multiple processors, rather than sequentially.
  • In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which corresponds to a tangible medium such as data storage media, or communication media including any medium that facilitates transfer of a computer program from one place to another, e.g., according to a communication protocol. In this manner, computer-readable media generally may correspond to (1) tangible computer-readable storage media which is non-transitory or (2) a communication medium such as a signal or carrier wave. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, code and/or data structures for implementation of the techniques described in this disclosure. A computer program product may include a computer-readable medium.
  • By way of example, and not limitation, such computer-readable storage media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage, or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is properly termed a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. It should be understood, however, that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but are instead directed to non-transitory, tangible storage media. Disk and disc, as used herein, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
  • Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general purpose microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Accordingly, the term “processor,” as used herein may refer to any of the foregoing structure or any other structure suitable for implementation of the techniques described herein. In addition, in some aspects, the functionality described herein may be provided within dedicated hardware and/or software modules configured for encoding and decoding, or incorporated in a combined codec. Also, the techniques could be fully implemented in one or more circuits or logic elements.
  • The techniques of this disclosure may be implemented in a wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC) or a set of ICs (e.g., a chip set). Various components, modules, or units are described in this disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily require realization by different hardware units. Rather, as described above, various units may be combined in a codec hardware unit or provided by a collection of interoperative hardware units, including one or more processors as described above, in conjunction with suitable software and/or firmware.
  • Various examples have been described. These and other examples are within the scope of the following claims.

Claims (30)

What is claimed is:
1. A method of decoding video data, the method comprising:
determining an intra-prediction mode for a current block of a picture;
determining a first weight and a second weight based on the determined intra-prediction mode;
generating a first prediction block for the current block of the picture according to the intra-prediction mode;
generating a second prediction block for the current block of the picture according to an inter-prediction mode;
applying the first weight to the first prediction block to generate a first weighted block;
applying the second weight to the second prediction block to generate a second weighted block;
generating a final prediction block for the current block of the picture based on the first weighted block and second weighed block; and
reconstructing the current block of the picture based on the final prediction block and a residual between the final prediction block and the current block of the picture.
2. The method of claim 1, wherein applying the first weight to the first prediction block comprises multiplying the first weight with each sample in the first prediction block to generate the first weighted block, wherein applying the second weight to the second prediction comprise multiplying the second weight with each sample in the second prediction block to generate the second weighted block, and wherein generating the final prediction block comprises adding the first weighted block and the second weighted block.
3. The method of claim 1, further comprising:
determining an intra-prediction mode classification based on the intra-prediction mode,
wherein determining the first weight comprises determining the first weight based on the determined intra-prediction mode classification, and
wherein determining the second weight comprises determining the second weight based on the determined intra-prediction mode classification.
4. The method of claim 3, wherein determining the intra-prediction mode classification comprises:
determining, from a plurality of ranges, a range within which the intra-prediction mode resides, wherein the plurality of ranges are based on angles associated with prediction directions of corresponding intra-prediction modes; and
determining the intra-prediction mode classification based on the determined range.
5. The method of claim 1, wherein determining the first weight and the second weight based on the determined intra-prediction mode comprises:
determining respective first weights and second weights for each sample in the respective first and second prediction blocks based on the intra-prediction mode and a location of each sample in the respective first and second prediction blocks.
6. The method of claim 1, wherein determining the first weight and second weight based on the determined intra-prediction mode comprises determining the first weight and the second weight based on a polynomial equation having values defined by the intra-prediction mode and one or more coefficients.
7. The method of claim 6, wherein the one or more coefficients are integers.
8. The method of claim 1, wherein the current block comprises a luma component block and a chroma component block, wherein generating the final prediction block comprises generating both a final luma prediction block and a final chroma prediction block based on the first and second weights applied to respective luma and chroma components of the first and second prediction blocks.
9. The method of claim 1, wherein the current block comprises a luma component block and a chroma component block, wherein generating the final prediction block comprises generating only a final luma prediction block or a final chroma prediction block based on the first and second weights applied to only one of respective luma and chroma components of the first and second prediction blocks.
10. A method of encoding video data, the method comprising:
determining an intra-prediction mode for a current block of a picture;
determining a first weight and a second weight based on the determined intra-prediction mode;
generating a first prediction block for the current block of the picture according to the intra-prediction mode;
generating a second prediction block for the current block of the picture according to an inter-prediction mode;
applying the first weight to the first prediction block to generate a first weighted block;
applying the second weight to the second prediction block to generate a second weighted block;
generating a final prediction block for the current block of the picture based on the first weighted block and second weighed block;
generating a residual based on the final prediction block and the current block of the picture; and
signaling information indicative of the residual.
11. The method of claim 10, wherein applying the first weight to the first prediction block comprises multiplying the first weight with each sample in the first prediction block to generate the first weighted block, wherein applying the second weight to the second prediction comprise multiplying the second weight with each sample in the second prediction block to generate the second weighted block, and wherein generating the final prediction block comprises adding the first weighted block and the second weighted block.
12. The method of claim 10, further comprising:
determining an intra-prediction mode classification based on the intra-prediction mode,
wherein determining the first weight comprises determining the first weight based on the determined intra-prediction mode classification, and
wherein determining the second weight comprises determining the second weight based on the determined intra-prediction mode classification.
13. The method of claim 12, wherein determining the intra-prediction mode classification comprises:
determining, from a plurality of ranges, a range within which the intra-prediction mode resides, wherein the plurality of ranges are based on angles associated with prediction directions of corresponding intra-prediction modes; and
determining the intra-prediction mode classification based on the determined range.
14. The method of claim 10, wherein determining the first weight and the second weight based on the determined intra-prediction mode comprises:
determining respective first weights and second weights for each sample in the respective first and second prediction blocks based on the intra-prediction mode and a location of each sample in the respective first and second prediction blocks.
15. The method of claim 10, wherein determining the first weight and second weight based on the determined intra-prediction mode comprises determining the first weight and the second weight based on a polynomial equation having values defined by the intra-prediction mode and one or more coefficients.
16. The method of claim 15, wherein the one or more coefficients are integers.
17. The method of claim 10, wherein the current block comprises a luma component block and a chroma component block, wherein generating the final prediction block comprises generating both a final luma prediction block and a final chroma prediction block based on the first and second weights applied to respective luma and chroma components of the first and second prediction blocks.
18. The method of claim 10, wherein the current block comprises a luma component block and a chroma component block, wherein generating the final prediction block comprises generating only a final luma prediction block or a final chroma prediction block based on the first and second weights applied to only one of respective luma and chroma components of the first and second prediction blocks.
19. A device for coding video data, the device comprising:
a memory configured to store sample values neighboring a current block of a picture and reference pictures for the current block of the picture; and
a video coder comprising processing circuitry, wherein the video coder is configured to:
determine an intra-prediction mode for the current block of the picture;
determine a first weight and a second weight based on the determined intra-prediction mode;
generate a first prediction block for the current block of the picture according to the intra-prediction mode based on the sample values stored in the memory;
generate a second prediction block for the current block of the picture according to an inter-prediction mode based on a reference picture of the reference pictures stored in the memory;
apply the first weight to the first prediction block to generate a first weighted block;
apply the second weight to the second prediction block to generate a second weighted block;
generate a final prediction block for the current block of the picture based on the first weighted block and second weighed block; and
at least one of:
reconstruct the current block of the picture based on the final prediction block and a residual between the final prediction block and the current block of the picture; or
generate the residual, and signal information indicative of the residual.
20. The device of claim 19, wherein the video coder comprises a video decoder, and wherein the video decoder is configured to reconstruct the current block of the picture based on the final prediction block and the residual between the final prediction block and the current block of the picture.
21. The device of claim 19, wherein the video coder comprises a video encoder, and wherein the video encoder is configured to generate the residual, and signal information indicative of the residual.
22. The device of claim 19, wherein to apply the first weight to the first prediction block, the video coder is configured to multiply the first weight with each sample in the first prediction block to generate the first weighted block, wherein to apply the second weight to the second prediction, the video coder is configured to multiply the second weight with each sample in the second prediction block to generate the second weighted block, and wherein to generate the final prediction block, the video coder is configured to add the first weighted block and the second weighted block.
23. The device of claim 19, wherein the video coder is further configured to:
determine an intra-prediction mode classification based on the intra-prediction mode,
wherein to determine the first weight, the video coder is configured to determine the first weight based on the determined intra-prediction mode classification, and
wherein to determine the second weight, the video coder is configured to determine the second weight based on the determined intra-prediction mode classification.
24. The device of claim 23, wherein to determine the intra-prediction mode classification, the video coder is configured to:
determine, from a plurality of ranges, a range within which the intra-prediction mode resides, wherein the plurality of ranges are based on angles associated with prediction directions of corresponding intra-prediction modes; and
determine the intra-prediction mode classification based on the determined range.
25. The device of claim 19, wherein to determine the first weight and the second weight based on the determined intra-prediction mode, the video coder is configured to:
determine respective first weights and second weights for each sample in the respective first and second prediction blocks based on the intra-prediction mode and a location of each sample in the respective first and second prediction blocks.
26. The device of claim 19, wherein to determine the first weight and second weight based on the determined intra-prediction mode, the video coder is configured to determine the first weight and the second weight based on a polynomial equation having values defined by the intra-prediction mode and one or more coefficients.
27. The device of claim 26, wherein the one or more coefficients are integers.
28. The device of claim 19, wherein the current block comprises a luma component block and a chroma component block, wherein to generate the final prediction block, the video coder is configured to generate both a final luma prediction block and a final chroma prediction block based on the first and second weights applied to respective luma and chroma components of the first and second prediction blocks.
29. The device of claim 19, wherein the current block comprises a luma component block and a chroma component block, wherein to generate the final prediction block, the video coder is configured to generate only a final luma prediction block or a final chroma prediction block based on the first and second weights applied to only one of respective luma and chroma components of the first and second prediction blocks.
30. A computer-readable storage medium storing instructions thereon that when executed cause one or more processors to:
determine an intra-prediction mode for a current block of a picture;
determine a first weight and a second weight based on the determined intra-prediction mode;
generate a first prediction block for the current block of the picture according to the intra-prediction mode;
generate a second prediction block for the current block of the picture according to an inter-prediction mode;
apply the first weight to the first prediction block to generate a first weighted block;
apply the second weight to the second prediction block to generate a second weighted block;
generate a final prediction block for the current block of the picture based on the first weighted block and second weighed block; and
at least one of:
reconstruct the current block of the picture based on the final prediction block and a residual between the final prediction block and the current block of the picture; or
generate the residual, and signal information indicative of the residual.
US16/015,005 2017-06-23 2018-06-21 Combination of inter-prediction and intra-prediction in video coding Abandoned US20180376148A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US16/015,005 US20180376148A1 (en) 2017-06-23 2018-06-21 Combination of inter-prediction and intra-prediction in video coding
PCT/US2018/039051 WO2018237295A1 (en) 2017-06-23 2018-06-22 Combination of inter-prediction and intra-prediction in video coding
CN201880040753.1A CN110771164B (en) 2017-06-23 2018-06-22 Combination of inter prediction and intra prediction in video coding

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201762524231P 2017-06-23 2017-06-23
US16/015,005 US20180376148A1 (en) 2017-06-23 2018-06-21 Combination of inter-prediction and intra-prediction in video coding

Publications (1)

Publication Number Publication Date
US20180376148A1 true US20180376148A1 (en) 2018-12-27

Family

ID=64692945

Family Applications (4)

Application Number Title Priority Date Filing Date
US16/015,005 Abandoned US20180376148A1 (en) 2017-06-23 2018-06-21 Combination of inter-prediction and intra-prediction in video coding
US16/015,027 Active US10757420B2 (en) 2017-06-23 2018-06-21 Combination of inter-prediction and intra-prediction in video coding
US16/999,741 Active 2038-09-09 US11350109B2 (en) 2017-06-23 2020-08-21 Combination of inter-prediction and intra-prediction in video coding
US17/804,777 Active US12052428B2 (en) 2017-06-23 2022-05-31 Combination of inter-prediction and intra-prediction in video coding

Family Applications After (3)

Application Number Title Priority Date Filing Date
US16/015,027 Active US10757420B2 (en) 2017-06-23 2018-06-21 Combination of inter-prediction and intra-prediction in video coding
US16/999,741 Active 2038-09-09 US11350109B2 (en) 2017-06-23 2020-08-21 Combination of inter-prediction and intra-prediction in video coding
US17/804,777 Active US12052428B2 (en) 2017-06-23 2022-05-31 Combination of inter-prediction and intra-prediction in video coding

Country Status (4)

Country Link
US (4) US20180376148A1 (en)
EP (2) EP3643060A1 (en)
CN (4) CN117319646A (en)
WO (2) WO2018237299A1 (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519600A (en) * 2019-08-21 2019-11-29 浙江大华技术股份有限公司 Unified prediction, device, codec and storage device between intra frame
WO2020150347A1 (en) * 2019-01-15 2020-07-23 Tencent America LLC Chroma deblock filters for intra picture block compensation
US10757420B2 (en) 2017-06-23 2020-08-25 Qualcomm Incorporated Combination of inter-prediction and intra-prediction in video coding
WO2020221203A1 (en) * 2019-04-27 2020-11-05 Huawei Technologies Co., Ltd. An encoder, a decoder and corresponding methods of intra prediction
CN113454990A (en) * 2018-12-28 2021-09-28 英迪股份有限公司 Inter-frame prediction coding and decoding method and device
CN113545074A (en) * 2019-03-21 2021-10-22 北京字节跳动网络技术有限公司 Improved weighting process for combining inter-frame intra prediction
US11284088B2 (en) 2018-11-12 2022-03-22 Beijing Bytedance Network Technology Co., Ltd. Using combined inter intra prediction in video processing
US11290726B2 (en) 2019-02-07 2022-03-29 Qualcomm Incorporated Inter-intra prediction mode for video data
US11297330B2 (en) * 2018-09-22 2022-04-05 Lg Electronics Inc. Method and apparatus for processing video signal based on inter prediction
US11405651B2 (en) 2019-05-02 2022-08-02 Beijing Bytedance Network Technology Co., Ltd. Intra video coding using multiple reference filters
US11457214B2 (en) * 2018-08-23 2022-09-27 Interdigital Vc Holdings France, Sas Coding of quantization matrices using parametric models
US11509923B1 (en) 2019-03-06 2022-11-22 Beijing Bytedance Network Technology Co., Ltd. Usage of converted uni-prediction candidate
US11652984B2 (en) 2018-11-16 2023-05-16 Qualcomm Incorporated Position-dependent intra-inter prediction combination in video coding
US11831875B2 (en) 2018-11-16 2023-11-28 Qualcomm Incorporated Position-dependent intra-inter prediction combination in video coding
US11838539B2 (en) 2018-10-22 2023-12-05 Beijing Bytedance Network Technology Co., Ltd Utilization of refined motion vector
US11895320B2 (en) 2019-03-27 2024-02-06 Beijing Bytedance Network Technology Co., Ltd History-based motion vector prediction
US11956465B2 (en) 2018-11-20 2024-04-09 Beijing Bytedance Network Technology Co., Ltd Difference calculation based on partial position
RU2822448C2 (en) * 2019-04-27 2024-07-05 Хуавэй Текнолоджиз Ко., Лтд. Encoder, decoder and corresponding intra-prediction methods

Families Citing this family (56)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018034374A1 (en) * 2016-08-19 2018-02-22 엘지전자(주) Method and apparatus for encoding and decoding video signal using intra-prediction filtering
CN110574377B (en) * 2017-05-10 2021-12-28 联发科技股份有限公司 Method and apparatus for reordering motion vector prediction candidate set for video coding
EP3625963A4 (en) * 2017-06-07 2020-11-18 MediaTek Inc. Method and apparatus of intra-inter prediction mode for video coding
US11172203B2 (en) * 2017-08-08 2021-11-09 Mediatek Inc. Intra merge prediction
CN118118661A (en) * 2018-03-19 2024-05-31 株式会社Kt Method of decoding or encoding an image and non-transitory computer readable medium
WO2019183906A1 (en) * 2018-03-29 2019-10-03 华为技术有限公司 Inter-frame prediction method and device
CN110662056B (en) 2018-06-29 2022-06-07 北京字节跳动网络技术有限公司 Which lookup table needs to be updated or not
EP3797516A1 (en) 2018-06-29 2021-03-31 Beijing Bytedance Network Technology Co. Ltd. Interaction between lut and amvp
SG11202012838SA (en) * 2018-06-29 2021-01-28 Huawei Tech Co Ltd Device and method for intra-prediction
KR20210024502A (en) 2018-06-29 2021-03-05 베이징 바이트댄스 네트워크 테크놀로지 컴퍼니, 리미티드 Partial/full pruning when adding HMVP candidates to merge/AMVP
EP3791588A1 (en) 2018-06-29 2021-03-17 Beijing Bytedance Network Technology Co. Ltd. Checking order of motion candidates in lut
CN110662057B (en) * 2018-06-29 2022-06-21 北京字节跳动网络技术有限公司 Video processing method, device and equipment and method for storing bit stream
CN110662063B (en) 2018-06-29 2020-12-15 北京字节跳动网络技术有限公司 Video processing method, apparatus and computer readable storage medium
TWI723444B (en) 2018-06-29 2021-04-01 大陸商北京字節跳動網絡技術有限公司 Concept of using one or multiple look up tables to store motion information of previously coded in order and use them to code following blocks
JP7460617B2 (en) 2018-06-29 2024-04-02 北京字節跳動網絡技術有限公司 LUT update conditions
WO2020003278A1 (en) 2018-06-29 2020-01-02 Beijing Bytedance Network Technology Co., Ltd. Update of look up table: fifo, constrained fifo
EP4307679A3 (en) 2018-07-02 2024-06-19 Beijing Bytedance Network Technology Co., Ltd. Luts with intra prediction modes and intra mode prediction from non-adjacent blocks
US10448026B1 (en) * 2018-07-09 2019-10-15 Tencent America LLC Method and apparatus for block vector signaling and derivation in intra picture block compensation
US11368318B2 (en) * 2018-07-31 2022-06-21 Massachusetts Institute Of Technology Group identification system
TW202025760A (en) 2018-09-12 2020-07-01 大陸商北京字節跳動網絡技術有限公司 How many hmvp candidates to be checked
CN117615125A (en) * 2018-10-08 2024-02-27 华为技术有限公司 Apparatus and method for inter prediction of geometrically partitioned blocks of coded blocks
US11310515B2 (en) * 2018-11-14 2022-04-19 Tencent America LLC Methods and apparatus for improvement for intra-inter prediction mode
BR112021009149A2 (en) * 2018-11-15 2021-08-10 Telefonaktiebolaget Lm Ericsson (Publ) method and apparatus for unlocking a boundary, computer program, and carrier
US20200169757A1 (en) * 2018-11-23 2020-05-28 Mediatek Inc. Signaling For Multi-Reference Line Prediction And Multi-Hypothesis Prediction
CN113170167A (en) * 2018-11-29 2021-07-23 北京字节跳动网络技术有限公司 Flag indication method in intra-block copy mode
WO2020123998A1 (en) * 2018-12-13 2020-06-18 Tencent America LLC Video decoding by determining block reconstruction based on signaling information
GB2579824B (en) * 2018-12-14 2022-05-18 British Broadcasting Corp Video encoding and video decoding
CN113228648A (en) * 2018-12-21 2021-08-06 三星电子株式会社 Image encoding device and image decoding device using triangle prediction mode, and image encoding method and image decoding method performed by the same
CN111385569B (en) * 2018-12-28 2022-04-26 杭州海康威视数字技术股份有限公司 Coding and decoding method and equipment thereof
CN111010577B (en) * 2018-12-31 2022-03-01 北京达佳互联信息技术有限公司 Method, device and medium for intra-frame and inter-frame joint prediction in video coding
US11102503B2 (en) * 2019-01-07 2021-08-24 Electronics And Telecommunications Research Institute Motion information prediction method and apparatus for distortion due to projection formation conversion
WO2020146562A1 (en) 2019-01-09 2020-07-16 Beijing Dajia Internet Information Technology Co., Ltd. System and method for improving combined inter and intra prediction
CN113542748B (en) * 2019-01-09 2023-07-11 北京达佳互联信息技术有限公司 Video encoding and decoding method, apparatus, and non-transitory computer readable storage medium
CN113273186A (en) 2019-01-10 2021-08-17 北京字节跳动网络技术有限公司 Invocation of LUT update
CN113383554B (en) 2019-01-13 2022-12-16 北京字节跳动网络技术有限公司 Interaction between LUTs and shared Merge lists
CN113302937B (en) 2019-01-16 2024-08-02 北京字节跳动网络技术有限公司 Motion candidate derivation
CN113574895B (en) * 2019-03-11 2024-01-30 腾讯美国有限责任公司 Video encoding and decoding method, device and storage medium
CN116248891A (en) 2019-03-14 2023-06-09 华为技术有限公司 Inter-frame prediction method and related device
CN111698515B (en) * 2019-03-14 2023-02-14 华为技术有限公司 Method and related device for inter-frame prediction
CN113615193B (en) 2019-03-22 2024-06-25 北京字节跳动网络技术有限公司 Interactions between Merge list build and other tools
CN117061735A (en) * 2019-06-21 2023-11-14 华为技术有限公司 Chroma sample weight derivation for geometric partitioning modes
CN112291558B (en) * 2019-07-23 2023-06-27 杭州海康威视数字技术股份有限公司 Encoding and decoding method, device and equipment thereof
WO2021018166A1 (en) * 2019-07-29 2021-02-04 Beijing Bytedance Network Technology Co., Ltd. Scanning order improvements for palette mode coding
WO2021060825A1 (en) * 2019-09-23 2021-04-01 한국전자통신연구원 Image encoding/decoding method and device, and recording medium storing bitstream
WO2021061018A1 (en) 2019-09-24 2021-04-01 Huawei Technologies Co., Ltd. Method and apparatus of combined intra-inter prediction
JP2021057649A (en) * 2019-09-27 2021-04-08 マクセル株式会社 Image coding method and image decoding method
CN113766245A (en) * 2020-06-05 2021-12-07 Oppo广东移动通信有限公司 Inter-frame prediction method, decoder, encoder, and computer storage medium
CN114071159B (en) * 2020-07-29 2023-06-30 Oppo广东移动通信有限公司 Inter prediction method, encoder, decoder, and computer-readable storage medium
US11706411B2 (en) * 2020-09-02 2023-07-18 Tencent America LLC Content adaptive segmented prediction
WO2022104498A1 (en) * 2020-11-17 2022-05-27 Oppo广东移动通信有限公司 Intra-frame prediction method, encoder, decoder and computer storage medium
JP2024503193A (en) * 2020-12-03 2024-01-25 オッポ広東移動通信有限公司 Intraframe prediction method, device, decoder and encoder
US20240205392A1 (en) * 2021-04-08 2024-06-20 Beijing Bytedance Network Technology Co., Ltd. Method, device, and medium for video processing
CN113220752A (en) 2021-05-06 2021-08-06 北京字跳网络技术有限公司 Display method and device and electronic equipment
KR20220157765A (en) * 2021-05-21 2022-11-29 삼성전자주식회사 Video Encoder and the operating method thereof
US20230113104A1 (en) * 2021-10-11 2023-04-13 Tencent America LLC On intra mode propagation
WO2023198142A1 (en) * 2022-04-14 2023-10-19 Mediatek Inc. Method and apparatus for implicit cross-component prediction in video coding system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9374578B1 (en) * 2013-05-23 2016-06-21 Google Inc. Video coding using combined inter and intra predictors

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100750136B1 (en) * 2005-11-02 2007-08-21 삼성전자주식회사 Method and apparatus for encoding and decoding of video
KR102211673B1 (en) 2011-12-16 2021-02-03 벨로스 미디어 인터내셔널 리미티드 Video image coding method, video image coding device, video image decoding method, video image decoding device and video image coding/decoding device
US9467692B2 (en) 2012-08-31 2016-10-11 Qualcomm Incorporated Intra prediction improvements for scalable video coding
US9906786B2 (en) 2012-09-07 2018-02-27 Qualcomm Incorporated Weighted prediction mode for scalable video coding
US9148667B2 (en) * 2013-02-06 2015-09-29 Qualcomm Incorporated Intra prediction mode decision with reduced storage
TWI538487B (en) * 2013-12-05 2016-06-11 財團法人工業技術研究院 Method and system of coding prediction for screen video
US9609343B1 (en) * 2013-12-20 2017-03-28 Google Inc. Video coding using compound prediction
WO2015192353A1 (en) 2014-06-19 2015-12-23 Microsoft Technology Licensing, Llc Unified intra block copy and inter prediction modes
US9854237B2 (en) 2014-10-14 2017-12-26 Qualcomm Incorporated AMVP and merge candidate list derivation for intra BC and inter prediction unification
CN107113425A (en) 2014-11-06 2017-08-29 三星电子株式会社 Method for video coding and equipment and video encoding/decoding method and equipment
WO2017043816A1 (en) 2015-09-10 2017-03-16 엘지전자(주) Joint inter-intra prediction mode-based image processing method and apparatus therefor
KR20180085714A (en) * 2015-12-17 2018-07-27 삼성전자주식회사 Video decoding method and video decoding apparatus using merge candidate list
WO2017123133A1 (en) * 2016-01-12 2017-07-20 Telefonaktiebolaget Lm Ericsson (Publ) Video coding using hybrid intra prediction
US11032550B2 (en) 2016-02-25 2021-06-08 Mediatek Inc. Method and apparatus of video coding
US11496747B2 (en) 2017-03-22 2022-11-08 Qualcomm Incorporated Intra-prediction mode propagation
US20180376148A1 (en) 2017-06-23 2018-12-27 Qualcomm Incorporated Combination of inter-prediction and intra-prediction in video coding

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9374578B1 (en) * 2013-05-23 2016-06-21 Google Inc. Video coding using combined inter and intra predictors

Cited By (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12052428B2 (en) 2017-06-23 2024-07-30 Qualcomm Incorporated Combination of inter-prediction and intra-prediction in video coding
US10757420B2 (en) 2017-06-23 2020-08-25 Qualcomm Incorporated Combination of inter-prediction and intra-prediction in video coding
US11350109B2 (en) 2017-06-23 2022-05-31 Qualcomm Incorporated Combination of inter-prediction and intra-prediction in video coding
US11457214B2 (en) * 2018-08-23 2022-09-27 Interdigital Vc Holdings France, Sas Coding of quantization matrices using parametric models
US11812021B2 (en) 2018-08-23 2023-11-07 Interdigital Ce Patent Holdings, Sas Coding of quantization matrices using parametric models
US11297330B2 (en) * 2018-09-22 2022-04-05 Lg Electronics Inc. Method and apparatus for processing video signal based on inter prediction
US11902536B2 (en) 2018-09-22 2024-02-13 Lg Electronics Inc. Method and apparatus for processing video signal based on inter prediction
US12041267B2 (en) 2018-10-22 2024-07-16 Beijing Bytedance Network Technology Co., Ltd. Multi-iteration motion vector refinement
US11838539B2 (en) 2018-10-22 2023-12-05 Beijing Bytedance Network Technology Co., Ltd Utilization of refined motion vector
US11889108B2 (en) 2018-10-22 2024-01-30 Beijing Bytedance Network Technology Co., Ltd Gradient computation in bi-directional optical flow
US11843725B2 (en) 2018-11-12 2023-12-12 Beijing Bytedance Network Technology Co., Ltd Using combined inter intra prediction in video processing
US11284088B2 (en) 2018-11-12 2022-03-22 Beijing Bytedance Network Technology Co., Ltd. Using combined inter intra prediction in video processing
US11956449B2 (en) 2018-11-12 2024-04-09 Beijing Bytedance Network Technology Co., Ltd. Simplification of combined inter-intra prediction
US11516480B2 (en) 2018-11-12 2022-11-29 Beijing Bytedance Network Technology Co., Ltd. Simplification of combined inter-intra prediction
US11652984B2 (en) 2018-11-16 2023-05-16 Qualcomm Incorporated Position-dependent intra-inter prediction combination in video coding
US11831875B2 (en) 2018-11-16 2023-11-28 Qualcomm Incorporated Position-dependent intra-inter prediction combination in video coding
US11956465B2 (en) 2018-11-20 2024-04-09 Beijing Bytedance Network Technology Co., Ltd Difference calculation based on partial position
US11792393B2 (en) 2018-12-28 2023-10-17 Intellectual Discovery Co., Ltd. Inter prediction encoding and decoding method using combination of prediction blocks, and computer-readable storage medium bitstream to be decoded thereby
CN113454990A (en) * 2018-12-28 2021-09-28 英迪股份有限公司 Inter-frame prediction coding and decoding method and device
US11019359B2 (en) 2019-01-15 2021-05-25 Tencent America LLC Chroma deblock filters for intra picture block compensation
WO2020150347A1 (en) * 2019-01-15 2020-07-23 Tencent America LLC Chroma deblock filters for intra picture block compensation
US11290726B2 (en) 2019-02-07 2022-03-29 Qualcomm Incorporated Inter-intra prediction mode for video data
US11509923B1 (en) 2019-03-06 2022-11-22 Beijing Bytedance Network Technology Co., Ltd. Usage of converted uni-prediction candidate
US11930165B2 (en) 2019-03-06 2024-03-12 Beijing Bytedance Network Technology Co., Ltd Size dependent inter coding
US11425406B2 (en) * 2019-03-21 2022-08-23 Beijing Bytedance Network Technology Co., Ltd. Weighting processing of combined intra-inter prediction
AU2020242795B2 (en) * 2019-03-21 2023-05-25 Beijing Bytedance Network Technology Co., Ltd. Improved weighting processing of combined intra-inter prediction
US11330257B2 (en) 2019-03-21 2022-05-10 Beijing Bytedance Network Technology Co., Ltd. Extended application of combined intra-inter prediction
US11876993B2 (en) 2019-03-21 2024-01-16 Beijing Bytedance Network Technology Co., Ltd Signaling of combined intra-inter prediction
CN113545074A (en) * 2019-03-21 2021-10-22 北京字节跳动网络技术有限公司 Improved weighting process for combining inter-frame intra prediction
US11895320B2 (en) 2019-03-27 2024-02-06 Beijing Bytedance Network Technology Co., Ltd History-based motion vector prediction
RU2822448C2 (en) * 2019-04-27 2024-07-05 Хуавэй Текнолоджиз Ко., Лтд. Encoder, decoder and corresponding intra-prediction methods
WO2020221203A1 (en) * 2019-04-27 2020-11-05 Huawei Technologies Co., Ltd. An encoder, a decoder and corresponding methods of intra prediction
US12088799B2 (en) 2019-04-27 2024-09-10 Huawei Technologies Co., Ltd. Encoder, a decoder and corresponding methods of intra prediction
US11405651B2 (en) 2019-05-02 2022-08-02 Beijing Bytedance Network Technology Co., Ltd. Intra video coding using multiple reference filters
US12114020B2 (en) 2019-05-02 2024-10-08 Beijing Bytedance Network Technology Co., Ltd Intra video coding using multiple reference filters
CN110519600A (en) * 2019-08-21 2019-11-29 浙江大华技术股份有限公司 Unified prediction, device, codec and storage device between intra frame
CN110519600B (en) * 2019-08-21 2022-06-07 浙江大华技术股份有限公司 Intra-frame and inter-frame joint prediction method and device, coder and decoder and storage device

Also Published As

Publication number Publication date
WO2018237299A1 (en) 2018-12-27
CN110771164B (en) 2024-03-15
US10757420B2 (en) 2020-08-25
US11350109B2 (en) 2022-05-31
US20210105485A1 (en) 2021-04-08
CN117319646A (en) 2023-12-29
US20180376149A1 (en) 2018-12-27
EP3643060A1 (en) 2020-04-29
CN110771164A (en) 2020-02-07
US20220295077A1 (en) 2022-09-15
EP4376406A1 (en) 2024-05-29
US12052428B2 (en) 2024-07-30
CN110771163A (en) 2020-02-07
CN110771163B (en) 2023-09-19
WO2018237295A1 (en) 2018-12-27
CN117241019A (en) 2023-12-15

Similar Documents

Publication Publication Date Title
US12052428B2 (en) Combination of inter-prediction and intra-prediction in video coding
US11212550B2 (en) History-based motion vector prediction for affine mode
US11184633B2 (en) Simplification of history-based motion vector prediction
US11025903B2 (en) Coding video data using derived chroma mode
US10778977B2 (en) Triangle motion information for video coding
US20200112715A1 (en) History-based motion vector prediction for inter prediction coding
US11336900B2 (en) Combined inter and intra prediction mode for video coding
US11019357B2 (en) Motion vector predictor list generation
US11190800B2 (en) Motion vector predictor list generation for intra block copy mode in video coding
US10958928B2 (en) Decoder-side motion vector derivation for video coding
US10958932B2 (en) Inter-prediction coding of video data using generated motion vector predictor list including non-adjacent blocks
US11122288B2 (en) Spatio-temporal motion vector prediction patterns for video coding
US20190387247A1 (en) Signaling sub-prediction unit motion vector predictor
US20200260107A1 (en) Virtual pipeline data unit design for intra block copy mode for video coding
US11064192B2 (en) Simplification of spatial-temporal motion vector prediction
US11051035B2 (en) Processing of illegal motion vectors for intra block copy mode in video coding
US11134246B2 (en) Weighted prediction for video coding
US20220248047A1 (en) Model-based motion vector difference derivation and template matching prediction for video coding
US20210014524A1 (en) Motion vector prediction with motion information collecting buffer
US20240357131A1 (en) Combination of inter-prediction and intra-prediction in video coding

Legal Events

Date Code Title Description
STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

AS Assignment

Owner name: QUALCOMM INCORPORATED, CALIFORNIA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:ZHANG, KAI;CHEN, JIANLE;ZHANG, LI;AND OTHERS;SIGNING DATES FROM 20180819 TO 20180917;REEL/FRAME:046942/0629

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION