WO2024050099A1 - Methods and devices for intra block copy - Google Patents

Methods and devices for intra block copy Download PDF

Info

Publication number
WO2024050099A1
WO2024050099A1 PCT/US2023/031865 US2023031865W WO2024050099A1 WO 2024050099 A1 WO2024050099 A1 WO 2024050099A1 US 2023031865 W US2023031865 W US 2023031865W WO 2024050099 A1 WO2024050099 A1 WO 2024050099A1
Authority
WO
WIPO (PCT)
Prior art keywords
ibc
block
determining
enabled
mode
Prior art date
Application number
PCT/US2023/031865
Other languages
French (fr)
Inventor
Wei Chen
Xiaoyu XIU
Changyue MA
Hong-Jheng Jhu
Che-Wei Kuo
Ning Yan
Xianglin Wang
Bing Yu
Original Assignee
Beijing Dajia Internet Information Technology Co., Ltd.
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 Beijing Dajia Internet Information Technology Co., Ltd. filed Critical Beijing Dajia Internet Information Technology Co., Ltd.
Publication of WO2024050099A1 publication Critical patent/WO2024050099A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • 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

Definitions

  • Digital video is supported by a variety of electronic devices, such as digital televisions, laptop or desktop computers, tablet computers, digital cameras, digital recording devices, digital media players, video gaming consoles, smart phones, video teleconferencing devices, video streaming devices, etc.
  • the electronic devices transmit and receive or otherwise communicate digital video data across a communication network, and/or store the digital video data on a storage device. Due to a limited bandwidth capacity of the communication network and limited memory resources of the storage device, video coding may be used to compress the video data according to one or more video coding standards before it is communicated or stored.
  • video coding standards include Versatile Video Coding (VVC), Joint Exploration test Model (JEM), High-Efficiency Video Coding (HEVC/H.265), Advanced Video Coding (AVC/H.264), Moving Picture Expert Group (MPEG) coding, or the like.
  • Video coding generally utilizes prediction methods (e.g., inter-prediction, intra-prediction, or the like) that take advantage of redundancy inherent in the video data.
  • Video coding aims to compress video data into a form that uses a lower bit rate, while avoiding or minimizing degradations to video quality.
  • SUMMARY [0004] The present disclosure provides examples of techniques relating to improving the Intra Block Copy method in a video encoding or decoding process.
  • a decoder may obtain one or more Intra Block Copy (IBC) control syntax elements that indicate whether IBC mode is enabled at different granularities. Additionally, the decoder may obtain one or more block vectors for a current block based on the IBC mode in response to determining that the IBC mode is enabled at one or more granularities.
  • IBC Intra Block Copy
  • an encoder may determine one or more IBC control syntax elements that indicate whether IBC mode is enabled at different granularities.
  • the encoder may encode a current block into a bitstream based on the one or more IBC control syntax elements.
  • a decoder may obtain IBC control information according to local information associated with a current block, where the IBC control information indicates whether IBC mode is enabled. Additionally, the decoder may obtain one or more block vectors for the current block based on the IBC mode in response to determining that the IBC mode is enabled.
  • a method for video encoding there is provided.
  • an encoder may obtain IBC control information according to local information associated with a current block, where the IBC control information indicates whether an IBC mode is enabled. Additionally, the encoder may encode a current block into a bitstream based on the IBC control information.
  • a decoder may obtain a syntax element that is related to IBC mode, where the syntax element is Context Adaptive Binary Arithmetic Coding (CABAC) context coded. Additionally, the decoder may determine a CABAC context window that is used for each context model related to the IBC mode based on a slice type or a frame type.
  • CABAC Context Adaptive Binary Arithmetic Coding
  • an encoder may determine a CABAC context window that is used for each context model related to IBC mode based on a slice type or a frame type. Additionally, the encoder may obtain a syntax element that is related to the IBC mode, where the syntax element is CABAC context coded. Furthermore, the encoder may signal the syntax element into a bitstream.
  • an apparatus for video decoding may include one or more processors and a memory coupled to the Attorney Ref.: 186015.20173 one or more processors and configured to store instructions executable by the one or more processors.
  • an apparatus for video encoding may include one or more processors and a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors. Furthermore, the one or more processors, upon execution of the instructions, are configured to perform the method according to the second aspect, the fourth aspect, or the sixth aspect.
  • a non-transitory computer-readable storage medium for storing computer-executable instructions that, when executed by one or more computer processors, cause the one or more computer processors to perform the method according to the first aspect, the third aspect, or the fifth aspect.
  • a non-transitory computer-readable storage medium for storing computer-executable instructions that, when executed by one or more computer processors, cause the one or more computer processors to perform the method according to the second aspect, the fourth aspect, or the sixth aspect.
  • a non-transitory computer-readable storage medium for storing a bitstream to be decoded by the method according to the first aspect, the third aspect, or the fifth aspect.
  • a non-transitory computer-readable storage medium for storing a bitstream generated by the method according to the second aspect, the fourth aspect, or the sixth aspect.
  • FIG.1A is a block diagram illustrating a system for encoding and decoding video blocks in accordance with some examples of the present disclosure.
  • FIG.1B shows a quad-tree data structure illustrating the end result of the partition process of the CTU 400 as depicted in FIG.1E in accordance with some examples of the present disclosure.
  • FIG.1C shows an encoded representation of a frame by first partitioning the frame into a set of CTUs in accordance with some examples of the present disclosure.
  • FIG.1D shows a CTU including one CTB of luma samples, two corresponding coding tree blocks of chroma samples, and syntax elements used to code the samples of the coding tree blocks in accordance with some examples of the present disclosure.
  • FIG. 2A is a block diagram illustrating an exemplary video encoder in accordance with some examples of the present disclosure
  • FIG. 2B is a block diagram illustrating an exemplary video decoder in accordance with some examples of the present disclosure.
  • FIG. 3A is a diagram illustrating block partitions in a multi-type tree structure in accordance with some examples of the present disclosure.
  • FIG.3B is a diagram illustrating block partitions in a multi-type tree structure in accordance with some examples of the present disclosure.
  • FIG.3C is a diagram illustrating block partitions in a multi-type tree structure in accordance with some examples of the present disclosure.
  • FIG. 3D is a diagram illustrating block partitions in a multi-type tree structure in accordance with some examples of the present disclosure.
  • FIG.3E is a diagram illustrating block partitions in a multi-type tree structure in accordance with some examples of the present disclosure.
  • FIGS. 4A-4B shows an example of 4-paramter affine model in accordance with some examples of the present disclosure.
  • FIG.5 shows an example of 6-paramter affine model in accordance with some examples of the present disclosure.
  • FIG. 6 shows adjacent neighboring blocks for inherited affine merge candidates in accordance with some examples of the present disclosure.
  • FIG. 7 shows adjacent neighboring blocks for constructed affine merge candidates in accordance with some examples of the present disclosure.
  • Attorney Ref.: 186015.20173 [0033]
  • FIG.8 shows a current CTU processing order and its available reference samples in current and left CTU in accordance with some examples of the present disclosure.
  • FIG.9 shows padding candidates for the replacement of the zero-vector in the IBC list in accordance with some examples of the present disclosure.
  • FIG.10 shows reference area for IBC when CTU (m,n) is coded in accordance with some examples of the present disclosure.
  • FIG. 11 shows IBC reference area for camera-captured content in accordance with some examples of the present disclosure.
  • FIGS. 12A-12B show the division methods for angular modes in accordance with some examples of the present disclosure.
  • FIGS. 13A shows spatial neighboring blocks used by ATVMP in accordance with some examples of the present disclosure.
  • FIGS.13B shows an example of deriving sub-CU motion field by applying a motion shift from spatial neighbor and scaling the motion information from the corresponding collocated sub- CUs in accordance with some examples of the present disclosure.
  • FIG.14 is a flow chart of decoding a bin in accordance with some examples of the present disclosure.
  • FIG.15 is a diagram illustrating a computing environment coupled with a user interface in accordance with some examples of the present disclosure.
  • FIG.16 is a flow chart illustrating a method for video decoding in accordance with some examples of the present disclosure.
  • FIG. 17 is a flow chart illustrating a method for video encoding corresponding to the method for video decoding as shown in FIG.16 in accordance with some examples of the present disclosure.
  • FIG.18 is a flow chart illustrating a method for video decoding in accordance with some examples of the present disclosure.
  • FIG. 19 is a flow chart illustrating a method for video encoding corresponding to the method for video decoding as shown in FIG.18 in accordance with some examples of the present disclosure.
  • FIG.20 is a flow chart illustrating a method for video decoding in accordance with some examples of the present disclosure.
  • Attorney Ref.: 186015.20173 [0047]
  • FIG. 21 is a flow chart illustrating a method for video encoding corresponding to the method for video decoding as shown in FIG.20 in accordance with some examples of the present disclosure.
  • DETAILED DESCRIPTION [0048]
  • a “first device” and a “second device” may refer to two separately formed devices, or two parts, components, or operational states of a same device, and may be named arbitrarily.
  • the terms “module,” “sub-module,” “circuit,” “sub-circuit,” “circuitry,” “sub-circuitry,” “unit,” or “sub-unit” may include memory (shared, dedicated, or group) that stores code or Attorney Ref.: 186015.20173 instructions that can be executed by one or more processors.
  • a module may include one or more circuits with or without stored code or instructions.
  • the module or circuit may include one or more components that are directly or indirectly connected. These components may or may not be physically attached to, or located adjacent to, one another.
  • the term “if” or “when” may be understood to mean “upon” or “in response to” depending on the context. These terms, if appear in a claim, may not indicate that the relevant limitations or features are conditional or optional.
  • a method may comprise steps of: i) when or if condition X is present, function or action X’ is performed, and ii) when or if condition Y is present, function or action Y’ is performed.
  • FIG.1A is a block diagram illustrating an exemplary system 10 for encoding and decoding video blocks in parallel in accordance with some implementations of the present disclosure. As shown in FIG.
  • the system 10 includes a source device 12 that generates and encodes video data to be decoded at a later time by a destination device 14.
  • the source device 12 and the destination device 14 may include any of a wide variety of electronic devices, including cloud servers, server computers, desktop or laptop computers, tablet computers, smart phones, set-top boxes, digital televisions, cameras, display devices, digital media players, video gaming consoles, video streaming device, or the like.
  • the source device 12 and the destination device 14 are equipped with wireless communication capabilities.
  • the destination device 14 may receive the encoded video data to be decoded via a link 16.
  • the link 16 may include any type of communication medium or device capable of moving the encoded video data from the source device 12 to the destination device 14.
  • the link 16 may include a communication medium to enable the source device 12 to transmit the encoded video data directly to the destination device 14 in real time.
  • the encoded video data may be modulated according to a communication standard, such as a wireless Attorney Ref.: 186015.20173 communication protocol, and transmitted to the destination device 14.
  • the communication medium may include 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 the source device 12 to the destination device 14.
  • the encoded video data may be transmitted from an output interface 22 to a storage device 32. Subsequently, the encoded video data in the storage device 32 may be accessed by the destination device 14 via an input interface 28.
  • the storage device 32 may include any of a variety of distributed or locally accessed data storage media such as a hard drive, Blu-ray discs, Digital Versatile Disks (DVDs), Compact Disc Read-Only Memories (CD-ROMs), flash memory, volatile or non-volatile memory, or any other suitable digital storage media for storing the encoded video data.
  • the storage device 32 may correspond to a file server or another intermediate storage device that may hold the encoded video data generated by the source device 12.
  • the destination device 14 may access the stored video data from the storage device 32 via streaming or downloading.
  • the file server may be any type of computer capable of storing the encoded video data and transmitting the encoded video data to the destination device 14.
  • Exemplary file servers include a web server (e.g., for a website), a File Transfer Protocol (FTP) server, Network Attached Storage (NAS) devices, or a local disk drive.
  • the destination device 14 may access the encoded video data through any standard data connection, including a wireless channel (e.g., a Wireless Fidelity (Wi-Fi) connection), a wired connection (e.g., Digital Subscriber Line (DSL), cable modem, etc.), or a combination of both that is suitable for accessing encoded video data stored on a file server.
  • Wi-Fi Wireless Fidelity
  • DSL Digital Subscriber Line
  • cable modem etc.
  • the transmission of the encoded video data from the storage device 32 may be a streaming transmission, a download transmission, or a combination of both.
  • the source device 12 includes a video source 18, a video encoder 20 and the output interface 22.
  • the video source 18 may include a source such as a video capturing device, e.g., a video camera, a video archive containing previously captured video, a video feeding interface to receive video from a video content provider, and/or a computer graphics system for generating computer graphics data as the source video, or a combination of such sources.
  • the video source 18 is a video camera of a security surveillance system
  • the source device 12 and the destination device 14 may form camera phones or video phones.
  • the implementations described in the present application may be applicable to video coding in general, and may be applied to wireless and/or wired applications.
  • the captured, pre-captured, or computer-generated video may be encoded by the video encoder 20.
  • the encoded video data may be transmitted directly to the destination device 14 via the output interface 22 of the source device 12.
  • the encoded video data may also (or alternatively) be stored onto the storage device 32 for later access by the destination device 14 or other devices, for decoding and/or playback.
  • the output interface 22 may further include a modem and/or a transmitter.
  • the destination device 14 includes the input interface 28, a video decoder 30, and a display device 34.
  • the input interface 28 may include a receiver and/or a modem and receive the encoded video data over the link 16.
  • the encoded video data communicated over the link 16, or provided on the storage device 32 may include a variety of syntax elements generated by the video encoder 20 for use by the video decoder 30 in decoding the video data. Such syntax elements may be included within the encoded video data transmitted on a communication medium, stored on a storage medium, or stored on a file server.
  • the destination device 14 may include the display device 34, which can be an integrated display device and an external display device that is configured to communicate with the destination device 14.
  • the display device 34 displays the decoded video data to a user, and may include any of a variety of display devices such as a Liquid Crystal Display (LCD), a plasma display, an Organic Light Emitting Diode (OLED) display, or another type of display device.
  • LCD Liquid Crystal Display
  • OLED Organic Light Emitting Diode
  • the video encoder 20 and the video decoder 30 may operate according to proprietary or industry standards, such as VVC, HEVC, MPEG-4, Part 10, AVC, or extensions of such standards.
  • the present application is not limited to a specific video encoding/decoding standard and may be applicable to other video encoding/decoding standards. It is generally contemplated that the video encoder 20 of the source device 12 may be configured to encode video data according to any of these current or future standards. Similarly, it is also generally contemplated that the video decoder 30 of the destination device 14 may be configured to decode video data according to any of these current or future standards.
  • the video encoder 20 and the video decoder 30 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
  • an electronic 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 video encoding/decoding operations disclosed in the present disclosure.
  • Each of the video encoder 20 and the video decoder 30 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.
  • CODEC combined encoder/decoder
  • at least a part of components of the source device 12 for example, the video source 18, the video encoder 20 or components included in the video encoder 20 as described below with reference to FIG. 1G, and the output interface 22
  • at least a part of components of the destination device 14 for example, the input interface 28, the video decoder 30 or components included in the video decoder 30 as described below with reference to FIG.
  • a cloud computing service network may provide software, platforms, and/or infrastructure, such as Software as a Service (SaaS), Platform as a Service (PaaS), or Infrastructure as a Service (IaaS).
  • SaaS Software as a Service
  • PaaS Platform as a Service
  • IaaS Infrastructure as a Service
  • one or more components in the source device 12 and/or the destination device 14 which are not included in the cloud computing service network may be provided in one or more client devices, and the one or more client devices may communicate with server computers in the cloud computing service network through a wireless communication network (for example, a cellular communication network, a short-range wireless communication network, or a global navigation satellite system (GNSS) communication network) or a wired communication network (e.g., a local area network (LAN) communication network or a power line communication (PLC) network).
  • a wireless communication network for example, a cellular communication network, a short-range wireless communication network, or a global navigation satellite system (GNSS) communication network
  • GNSS global navigation satellite system
  • wired communication network e.g., a local area network (LAN) communication network or a power line communication (PLC) network.
  • LAN local area network
  • PLC power line communication
  • At least a part of operations described herein may be implemented as cloud-based services provided by one or more server computers which are implemented by the at least a part of the components of the source device 12 and/or the at least a part of the components of the destination device 14 in the cloud computing service network; and one or more other operations described herein may be implemented by the one or more client devices.
  • the cloud computing service network may be a private cloud, a public cloud, or a hybrid cloud.
  • Attorney Ref.: 186015.20173 The terms such as “cloud,” “cloud computing,” “cloud-based” etc. herein may be used interchangeably as appropriate without departing from the scope of the present disclosure. It should be understood that the present disclosure is not limited to being implemented in the cloud computing service network described above.
  • FIGS. 3A-3E are schematic diagrams illustrating multi-type tree splitting modes in accordance with some implementations of the present disclosure.
  • FIGS.3A-3E respectively show five splitting types including quaternary partitioning (FIG.3A), vertical binary partitioning (FIG. 3B), horizontal binary partitioning (FIG. 3C), vertical ternary partitioning (FIG. 3D), and horizontal ternary partitioning (FIG.3E).
  • FIG.2A is a block diagram illustrating another exemplary video encoder 20 in accordance with some implementations described in the present application. The video encoder 20 may perform intra and inter predictive coding of video blocks within video frames.
  • Intra predictive coding relies on spatial prediction to reduce or remove spatial redundancy in video data within a given video frame or picture.
  • Inter predictive coding relies on temporal prediction to reduce or remove temporal redundancy in video data within adjacent video frames or pictures of a video sequence.
  • the term “frame” may be used as synonyms for the term “image” or “picture” in the field of video coding.
  • the video encoder 20 includes a video data memory 40, a prediction processing unit 41, a Decoded Picture Buffer (DPB) 64, a summer 50, a transform processing unit 52, a quantization unit 54, and an entropy encoding unit 56.
  • DPB Decoded Picture Buffer
  • the prediction processing unit 41 further includes a motion estimation unit 42, a motion compensation unit 44, a partition unit 45, an intra prediction processing unit 46, and an intra Block Copy (BC) unit 48.
  • the video encoder 20 also includes an inverse quantization unit 58, an inverse transform processing unit 60, and a summer 62 for video block reconstruction.
  • An in-loop filter 63 such as a deblocking filter, may be positioned between the summer 62 and the DPB 64 to filter block boundaries to remove blockiness artifacts from reconstructed video.
  • SAO Sample Adaptive Offset
  • CCSAO Cross Component Sample Adaptive Offset
  • ALF Adaptive in-Loop Filter
  • the present application is not limited to the embodiments described herein, and instead, the application may be applied to a situation where an offset is selected for any of a luma component, a Cb chroma component and a Cr chroma component according to any other of the luma component, the Cb chroma component and the Cr chroma component to modify said any component based on the selected offset.
  • a first component mentioned herein may be any of the luma component, the Cb chroma component and the Cr chroma component
  • a second component mentioned herein may be any other of the luma component, the Cb chroma component and the Cr chroma component
  • a third component mentioned herein may be a remaining one of the luma component, the Cb chroma component and the Cr chroma component.
  • the in-loop filters may be omitted, and the decoded video block may be directly provided by the summer 62 to the DPB 64.
  • the video encoder 20 may take the form of a fixed or programmable hardware unit or may be divided among one or more of the illustrated fixed or programmable hardware units.
  • the video data memory 40 may store video data to be encoded by the components of the video encoder 20.
  • the video data in the video data memory 40 may be obtained, for example, from the video source 18 as shown in FIG.1A.
  • the DPB 64 is a buffer that stores reference video data (for example, reference frames or pictures) for use in encoding video data by the video encoder 20 (e.g., in intra or inter predictive coding modes).
  • the video data memory 40 and the DPB 64 may be formed by any of a variety of memory devices.
  • the video data memory 40 may be on-chip with other components of the video encoder 20, or off-chip relative to those components.
  • the partition unit 45 within the prediction processing unit 41 partitions the video data into video blocks.
  • This partitioning may also include partitioning a video frame into slices, tiles (for example, sets of video blocks), or other larger Coding Units (CUs) according to predefined splitting structures such as a Quad-Tree (QT) structure associated with the video data.
  • the video frame is or may be regarded as a two- dimensional array or matrix of samples with sample values.
  • a sample in the array may also be referred to as a pixel or a pel.
  • a number of samples in horizontal and vertical directions (or axes) of the array or picture define a size and/or a resolution of the video frame.
  • the video frame may be divided into multiple video blocks by, for example, using QT partitioning.
  • the video block again is or may be regarded as a two-dimensional array or matrix of samples with sample values, Attorney Ref.: 186015.20173 although of smaller dimension than the video frame.
  • a number of samples in horizontal and vertical directions (or axes) of the video block define a size of the video block.
  • the video block may further be partitioned into one or more block partitions or sub-blocks (which may form again blocks) by, for example, iteratively using QT partitioning, Binary-Tree (BT) partitioning or Triple- Tree (TT) partitioning or any combination thereof.
  • BT Binary-Tree
  • TT Triple- Tree
  • block or video block may be a portion, in particular a rectangular (square or non- square) portion, of a frame or a picture.
  • the block or video block may be or correspond to a Coding Tree Unit (CTU), a CU, a Prediction Unit (PU) or a Transform Unit (TU) and/or may be or correspond to a corresponding block, e.g., a Coding Tree Block (CTB), a Coding Block (CB), a Prediction Block (PB) or a Transform Block (TB) and/or to a sub-block.
  • CTU Coding Tree Unit
  • PU Prediction Unit
  • TU Transform Unit
  • a corresponding block e.g., a Coding Tree Block (CTB), a Coding Block (CB), a Prediction Block (PB) or a Transform Block (TB) and/or to a sub-block.
  • CTB Coding Tree Block
  • PB Prediction Block
  • TB Transform Block
  • the prediction processing unit 41 may select one of a plurality of possible predictive coding modes, such as one of a plurality of intra predictive coding modes or one of a plurality of inter predictive coding modes, for the current video block based on error results (e.g., coding rate and the level of distortion).
  • the prediction processing unit 41 may provide the resulting intra or inter prediction coded block to the summer 50 to generate a residual block and to the summer 62 to reconstruct the encoded block for use as part of a reference frame subsequently.
  • the prediction processing unit 41 also provides syntax elements, such as motion vectors, intra-mode indicators, partition information, and other such syntax information, to the entropy encoding unit 56.
  • the intra prediction processing unit 46 within the prediction processing unit 41 may perform intra predictive coding of the current video block relative to one or more neighbor blocks in the same frame as the current block to be coded to provide spatial prediction.
  • the motion estimation unit 42 and the motion compensation unit 44 within the prediction processing unit 41 perform inter predictive coding of the current video block relative to one or more predictive blocks in one or more reference frames to provide temporal prediction.
  • the video encoder 20 may perform multiple coding passes, e.g., to select an appropriate coding mode for each block of video data.
  • the motion estimation unit 42 determines the inter prediction mode for a current video frame by generating a motion vector, which indicates the displacement of a video block within the current video frame relative to a predictive block within a reference video frame, according to a predetermined pattern within a sequence of video frames.
  • Motion Attorney Ref.: 186015.20173 estimation performed by the motion estimation unit 42, is the process of generating motion vectors, which estimate motion for video blocks.
  • a motion vector for example, may indicate the displacement of a video block within a current video frame or picture relative to a predictive block within a reference frame relative to the current block being coded within the current frame.
  • the predetermined pattern may designate video frames in the sequence as P frames or B frames.
  • the intra BC unit 48 may determine vectors, e.g., block vectors, for intra BC coding in a manner similar to the determination of motion vectors by the motion estimation unit 42 for inter prediction, or may utilize the motion estimation unit 42 to determine the block vector.
  • a predictive block for the video block may be or may correspond to a block or a reference block of a reference frame that is deemed as closely matching the video block to be coded in terms of pixel difference, which may be determined by Sum of Absolute Difference (SAD), Sum of Square Difference (SSD), or other difference metrics.
  • the video encoder 20 may calculate values for sub-integer pixel positions of reference frames stored in the DPB 64.
  • the video encoder 20 may interpolate values of one-quarter pixel positions, one- eighth pixel positions, or other fractional pixel positions of the reference frame. Therefore, the motion estimation unit 42 may perform a motion search relative to the full pixel positions and fractional pixel positions and output a motion vector with fractional pixel precision. [0074]
  • the motion estimation unit 42 calculates a motion vector for a video block in an inter prediction coded frame by comparing the position of the video block to the position of a predictive block of a reference frame selected from a first reference frame list (List 0) or a second reference frame list (List 1), each of which identifies one or more reference frames stored in the DPB 64.
  • Motion compensation performed by the motion compensation unit 44, may involve fetching or generating the predictive block based on the motion vector determined by the motion estimation unit 42.
  • the motion compensation unit 44 may locate a predictive block to which the motion vector points in one of the reference frame lists, retrieve the predictive block from the DPB 64, and forward the predictive block to the summer 50.
  • the summer 50 then forms a residual video block of pixel difference values by subtracting pixel values of the predictive block provided by the motion compensation unit 44 from the pixel values of the current video block being coded.
  • the pixel difference values Attorney Ref.: 186015.20173 forming the residual video block may include luma or chroma component differences or both.
  • the motion compensation unit 44 may also generate syntax elements associated with the video blocks of a video frame for use by the video decoder 30 in decoding the video blocks of the video frame.
  • the syntax elements may include, for example, syntax elements defining the motion vector used to identify the predictive block, any flags indicating the prediction mode, or any other syntax information described herein. Note that the motion estimation unit 42 and the motion compensation unit 44 may be highly integrated, but are illustrated separately for conceptual purposes.
  • the intra BC unit 48 may generate vectors and fetch predictive blocks in a manner similar to that described above in connection with the motion estimation unit 42 and the motion compensation unit 44, but with the predictive blocks being in the same frame as the current block being coded and with the vectors being referred to as block vectors as opposed to motion vectors.
  • the intra BC unit 48 may determine an intra-prediction mode to use to encode a current block.
  • the intra BC unit 48 may encode a current block using various intra-prediction modes, e.g., during separate encoding passes, and test their performance through rate-distortion analysis.
  • the intra BC unit 48 may select, among the various tested intra-prediction modes, an appropriate intra-prediction mode to use and generate an intra-mode indicator accordingly.
  • the intra BC unit 48 may calculate rate-distortion values using a rate-distortion analysis for the various tested intra-prediction modes, and select the intra-prediction mode having the best rate-distortion characteristics among the tested modes as the appropriate intra-prediction mode to use.
  • Rate-distortion analysis generally determines an amount of distortion (or error) between an encoded block and an original, unencoded block that was encoded to produce the encoded block, as well as a bitrate (i.e., a number of bits) used to produce the encoded block.
  • Intra BC unit 48 may calculate ratios from the distortions and rates for the various encoded blocks to determine which intra-prediction mode exhibits the best rate-distortion value for the block. [0077] In other examples, the intra BC unit 48 may use the motion estimation unit 42 and the motion compensation unit 44, in whole or in part, to perform such functions for Intra BC prediction according to the implementations described herein. In either case, for Intra block copy, a predictive block may be a block that is deemed as closely matching the block to be coded, in terms of pixel Attorney Ref.: 186015.20173 difference, which may be determined by SAD, SSD, or other difference metrics, and identification of the predictive block may include calculation of values for sub-integer pixel positions.
  • the video encoder 20 may form a residual video block by subtracting pixel values of the predictive block from the pixel values of the current video block being coded, forming pixel difference values.
  • the pixel difference values forming the residual video block may include both luma and chroma component differences.
  • the intra prediction processing unit 46 may intra-predict a current video block, as an alternative to the inter-prediction performed by the motion estimation unit 42 and the motion compensation unit 44, or the intra block copy prediction performed by the intra BC unit 48, as described above. In particular, the intra prediction processing unit 46 may determine an intra prediction mode to use to encode a current block.
  • the intra prediction processing unit 46 may encode a current block using various intra prediction modes, e.g., during separate encoding passes, and the intra prediction processing unit 46 (or a mode selection unit, in some examples) may select an appropriate intra prediction mode to use from the tested intra prediction modes.
  • the intra prediction processing unit 46 may provide information indicative of the selected intra- prediction mode for the block to the entropy encoding unit 56.
  • the entropy encoding unit 56 may encode the information indicating the selected intra-prediction mode in the bitstream.
  • the summer 50 forms a residual video block by subtracting the predictive block from the current video block.
  • the residual video data in the residual block may be included in one or more TUs and is provided to the transform processing unit 52.
  • the transform processing unit 52 transforms the residual video data into residual transform coefficients using a transform, such as a Discrete Cosine Transform (DCT) or a conceptually similar transform.
  • DCT Discrete Cosine Transform
  • the transform processing unit 52 may send the resulting transform coefficients to the quantization unit 54.
  • the quantization unit 54 quantizes the transform coefficients to further reduce the bit rate.
  • the quantization process may also reduce the bit depth associated with some or all of the coefficients.
  • the degree of quantization may be modified by adjusting a quantization parameter.
  • the quantization unit 54 may then perform a scan of a matrix including the quantized transform coefficients.
  • the entropy encoding unit 56 may perform the scan. Attorney Ref.: 186015.20173 [0082] Following quantization, the entropy encoding unit 56 entropy encodes the quantized transform coefficients into a video bitstream using, e.g., Context Adaptive Variable Length Coding (CAVLC), Context Adaptive Binary Arithmetic Coding (CABAC), Syntax-based context- adaptive Binary Arithmetic Coding (SBAC), Probability Interval Partitioning Entropy (PIPE) coding or another entropy encoding methodology or technique.
  • CAVLC Context Adaptive Variable Length Coding
  • CABAC Context Adaptive Binary Arithmetic Coding
  • SBAC Syntax-based context- adaptive Binary Arithmetic Coding
  • PIPE Probability Interval Partitioning Entropy
  • the encoded bitstream may then be transmitted to the video decoder 30 as shown in FIG.1A, or archived in the storage device 32 as shown in FIG
  • the entropy encoding unit 56 may also entropy encode the motion vectors and the other syntax elements for the current video frame being coded.
  • the inverse quantization unit 58 and the inverse transform processing unit 60 apply inverse quantization and inverse transformation, respectively, to reconstruct the residual video block in the pixel domain for generating a reference block for prediction of other video blocks.
  • the motion compensation unit 44 may generate a motion compensated predictive block from one or more reference blocks of the frames stored in the DPB 64.
  • the motion compensation unit 44 may also apply one or more interpolation filters to the predictive block to calculate sub- integer pixel values for use in motion estimation.
  • FIG.2B is a block diagram illustrating another exemplary video decoder 30 in accordance with some implementations of the present application.
  • the video decoder 30 includes a video data memory 79, an entropy decoding unit 80, a prediction processing unit 81, an inverse quantization unit 86, an inverse transform processing unit 88, a summer 90, and a DPB 92.
  • the prediction processing unit 81 further includes a motion compensation unit 82, an intra prediction unit 84, and an intra BC unit 85.
  • the video decoder 30 may perform a decoding process generally reciprocal to the encoding process described above with respect to the video encoder 20 in connection with FIG. 2A.
  • the motion compensation unit 82 may generate prediction data based on motion vectors received from the entropy decoding unit 80
  • the intra-prediction unit 84 may Attorney Ref.: 186015.20173 generate prediction data based on intra-prediction mode indicators received from the entropy decoding unit 80.
  • a unit of the video decoder 30 may be tasked to perform the implementations of the present application.
  • the implementations of the present disclosure may be divided among one or more of the units of the video decoder 30.
  • the intra BC unit 85 may perform the implementations of the present application, alone, or in combination with other units of the video decoder 30, such as the motion compensation unit 82, the intra prediction unit 84, and the entropy decoding unit 80.
  • the video decoder 30 may not include the intra BC unit 85 and the functionality of intra BC unit 85 may be performed by other components of the prediction processing unit 81, such as the motion compensation unit 82.
  • the video data memory 79 may store video data, such as an encoded video bitstream, to be decoded by the other components of the video decoder 30.
  • the video data stored in the video data memory 79 may be obtained, for example, from the storage device 32, from a local video source, such as a camera, via wired or wireless network communication of video data, or by accessing physical data storage media (e.g., a flash drive or hard disk).
  • the video data memory 79 may include a Coded Picture Buffer (CPB) that stores encoded video data from an encoded video bitstream.
  • CPB Coded Picture Buffer
  • the DPB 92 of the video decoder 30 stores reference video data for use in decoding video data by the video decoder 30 (e.g., in intra or inter predictive coding modes).
  • the video data memory 79 and the DPB 92 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including Synchronous DRAM (SDRAM), Magneto- resistive RAM (MRAM), Resistive RAM (RRAM), or other types of memory devices.
  • DRAM dynamic random access memory
  • SDRAM Synchronous DRAM
  • MRAM Magneto- resistive RAM
  • RRAM Resistive RAM
  • the video data memory 79 and the DPB 92 are depicted as two distinct components of the video decoder 30 in FIG. 2B. But it will be apparent to one skilled in the art that the video data memory 79 and the DPB 92 may be provided by the same memory device or separate memory devices.
  • the video data memory 79 may be on-chip with other components of the video decoder 30, or off-chip relative to those components.
  • the video decoder 30 receives an encoded video bitstream that represents video blocks of an encoded video frame and associated syntax elements.
  • the video decoder 30 may receive the syntax elements at the video frame level and/or the video block level.
  • the entropy decoding unit 80 of the video decoder 30 entropy decodes the bitstream to generate Attorney Ref.: 186015.20173 quantized coefficients, motion vectors or intra-prediction mode indicators, and other syntax elements.
  • the entropy decoding unit 80 then forwards the motion vectors or intra-prediction mode indicators and other syntax elements to the prediction processing unit 81.
  • the intra prediction unit 84 of the prediction processing unit 81 may generate prediction data for a video block of the current video frame based on a signaled intra prediction mode and reference data from previously decoded blocks of the current frame.
  • the motion compensation unit 82 of the prediction processing unit 81 produces one or more predictive blocks for a video block of the current video frame based on the motion vectors and other syntax elements received from the entropy decoding unit 80. Each of the predictive blocks may be produced from a reference frame within one of the reference frame lists.
  • the video decoder 30 may construct the reference frame lists, List 0 and List 1, using default construction techniques based on reference frames stored in the DPB 92.
  • the intra BC unit 85 of the prediction processing unit 81 produces predictive blocks for the current video block based on block vectors and other syntax elements received from the entropy decoding unit 80.
  • the predictive blocks may be within a reconstructed region of the same picture as the current video block defined by the video encoder 20.
  • the motion compensation unit 82 and/or the intra BC unit 85 determines prediction information for a video block of the current video frame by parsing the motion vectors and other syntax elements, and then uses the prediction information to produce the predictive blocks for the current video block being decoded. For example, the motion compensation unit 82 uses some of the received syntax elements to determine a prediction mode (e.g., intra or inter prediction) used to code video blocks of the video frame, an inter prediction frame type (e.g., B or P), construction information for one or more of the reference frame lists for the frame, motion vectors for each inter predictive encoded video block of the frame, inter prediction status for each inter predictive coded video block of the frame, and other information to decode the video blocks in the current video frame.
  • a prediction mode e.g., intra or inter prediction
  • an inter prediction frame type e.g., B or P
  • the intra BC unit 85 may use some of the received syntax elements, e.g., a flag, to determine that the current video block was predicted using the intra BC mode, construction information of which video blocks of the frame are within the reconstructed region and should be stored in the DPB 92, block vectors for each intra BC predicted video block of the frame, intra BC prediction status for each intra BC predicted video block of the frame, and other information to decode the video blocks in the current video frame.
  • the motion compensation unit 82 may also perform interpolation using the interpolation filters as used by the video encoder 20 during encoding of the video blocks to calculate interpolated values for sub-integer pixels of reference blocks.
  • the motion compensation unit 82 may determine the interpolation filters used by the video encoder 20 from the received syntax elements and use the interpolation filters to produce predictive blocks.
  • the inverse quantization unit 86 inverse quantizes the quantized transform coefficients provided in the bitstream and entropy decoded by the entropy decoding unit 80 using the same quantization parameter calculated by the video encoder 20 for each video block in the video frame to determine a degree of quantization.
  • the inverse transform processing unit 88 applies an inverse transform, e.g., an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process, to the transform coefficients in order to reconstruct the residual blocks in the pixel domain.
  • the summer 90 reconstructs decoded video block for the current video block by summing the residual block from the inverse transform processing unit 88 and a corresponding predictive block generated by the motion compensation unit 82 and the intra BC unit 85.
  • An in-loop filter 91 such as deblocking filter, SAO filter, CCSAO filter and/or ALF may be positioned between the summer 90 and the DPB 92 to further process the decoded video block.
  • the in-loop filter 91 may be omitted, and the decoded video block may be directly provided by the summer 90 to the DPB 92.
  • a video sequence typically includes an ordered set of frames or pictures. Each frame may include three sample arrays, denoted SL, SCb, and SCr.
  • SL is a two-dimensional array of luma samples.
  • SCb is a two-dimensional array of Cb chroma samples.
  • SCr is a two-dimensional array of Cr chroma samples.
  • a frame may be monochrome and therefore includes only one two-dimensional array of luma samples.
  • the video encoder 20 (or more specifically a partition unit in a prediction processing unit of the video encoder 20) generates an encoded representation of a frame by first partitioning the frame into a set of CTUs.
  • a video frame may include an integer number of CTUs ordered consecutively in a raster scan order from left to right and from top to bottom.
  • Each CTU is a largest logical coding unit and the width and height of the CTU are signaled by the video encoder 20 in a sequence parameter set, such that all the CTUs in a video sequence have the same size being one of 128 ⁇ 128, 64 ⁇ 64, 32 ⁇ 32, and 16 ⁇ 16. But it should be noted that the present application is not necessarily limited to a particular size. As shown in FIG. 1D, each CTU may include one CTB of luma samples, two corresponding coding tree blocks of chroma samples, and syntax elements used to code the samples of the coding tree blocks.
  • a CTU may include a single coding tree block and syntax elements used to code the samples of the coding tree block.
  • a coding tree block may be an NxN block of samples.
  • the video encoder 20 may recursively perform tree partitioning such as binary-tree partitioning, ternary-tree partitioning, quad-tree partitioning or a combination thereof on the coding tree blocks of the CTU and divide the CTU into smaller CUs.
  • FIGS.1B-1E are block diagrams illustrating how a frame is recursively partitioned into multiple video blocks of different sizes and shapes in accordance with some implementations of the present disclosure.
  • the 64x64 CTU 400 is first divided into four smaller CUs, each having a block size of 32x32.
  • CU 410 and CU 420 are each divided into four CUs of 16x16 by block size.
  • the two 16x16 CUs 430 and 440 are each further divided into four CUs of 8x8 by block size.
  • FIG.1B depicts a quad-tree data structure illustrating the end result of the partition process of the CTU 400 as depicted in FIG.1E, each leaf node of the quad- tree corresponding to one CU of a respective size ranging from 32x32 to 8x8.
  • each CU may include a CB of luma samples and two corresponding coding blocks of chroma samples of a frame of the same size, and syntax elements used to code the samples of the coding blocks.
  • a CU may include a single coding block and syntax structures used to code the samples of the coding block.
  • quad-tree partitioning depicted in FIGS.1E and 1B is only for illustrative purposes and one CTU can be split into CUs to adapt to varying local characteristics based on quad/ternary/binary-tree partitions.
  • one CTU is partitioned by a quad-tree structure and each quad-tree leaf CU can be further partitioned by a binary and ternary tree structure.
  • FIGS. 3A-3E there are five possible partitioning types of a coding block having a width W and a height H, i.e., quaternary partitioning, horizontal binary partitioning, vertical binary partitioning, horizontal ternary partitioning, and vertical ternary partitioning.
  • the video encoder 20 may further partition a coding block of a CU into one or more MxN PBs.
  • a PB is a rectangular (square or non-square) block of samples on which the same prediction, inter or intra, is applied.
  • a PU of a CU may include a PB of luma samples, two corresponding PBs of chroma samples, and syntax elements used to predict the PBs.
  • a PU may include a single PB and syntax structures used to predict the PB.
  • the video encoder 20 may generate predictive luma, Cb, and Cr blocks for luma, Cb, and Cr PBs of each PU of the CU.
  • the video encoder 20 may use intra prediction or inter prediction to generate the predictive blocks for a PU. If the video encoder 20 uses intra prediction to generate the predictive blocks of a PU, the video encoder 20 may generate the predictive blocks of the PU based on decoded samples of the frame associated with the PU. If the video encoder 20 uses inter prediction to generate the predictive blocks of a PU, the video encoder 20 may generate the predictive blocks of the PU based on decoded samples of one or more frames other than the frame associated with the PU.
  • the video encoder 20 may generate a luma residual block for the CU by subtracting the CU’s predictive luma blocks from its original luma coding block such that each sample in the CU’s luma residual block indicates a difference between a luma sample in one of the CU's predictive luma blocks and a corresponding sample in the CU's original luma coding block.
  • the video encoder 20 may generate a Cb residual block and a Cr residual block for the CU, respectively, such that each sample in the CU's Cb residual block indicates a difference between a Cb sample in one of the CU's predictive Cb blocks and a corresponding sample in the CU's original Cb coding block and each sample in the CU's Cr residual block may indicate a difference between a Cr sample in one of the CU's predictive Cr blocks and a corresponding sample in the CU's original Cr coding block.
  • each sample in the CU's Cr residual block may indicate a difference between a Cr sample in one of the CU's predictive Cr blocks and a corresponding sample in the CU's original Cr coding block.
  • the video encoder 20 may use quad-tree partitioning to decompose the luma, Cb, and Cr residual blocks of a CU into one or more luma, Cb, and Cr transform blocks respectively.
  • a transform block is a rectangular (square or non-square) block of samples on which the same transform is applied.
  • a TU of a CU may include a transform block of luma samples, two corresponding transform blocks of chroma samples, and syntax elements used to transform the transform block samples.
  • each TU of a CU may be associated with a luma transform block, a Cb transform block, and a Cr transform block.
  • the luma transform block associated with the TU may be a sub-block of the CU's luma residual block.
  • the Cb transform block may be a sub-block of the CU's Cb residual block.
  • the Cr transform block may be a sub-block of the CU's Cr residual block.
  • a TU may include a single transform block and syntax structures used to transform the samples of the transform block.
  • the video encoder 20 may apply one or more transforms to a luma transform block of a TU to generate a luma coefficient block for the TU.
  • a coefficient block may be a two-dimensional array of transform coefficients.
  • a transform coefficient may be a scalar quantity.
  • the video encoder 20 may apply one or more transforms to a Cb transform block of a TU to generate a Cb coefficient block for the TU.
  • the video encoder 20 may apply one or more transforms to a Cr transform block of a TU to generate a Cr coefficient block for the TU.
  • the video encoder 20 may quantize the coefficient block. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the transform coefficients, providing further compression.
  • the video encoder 20 may entropy encode syntax elements indicating the quantized transform coefficients. For example, the video encoder 20 may perform CABAC on the syntax elements indicating the quantized transform coefficients. Attorney Ref.: 186015.20173 Finally, the video encoder 20 may output a bitstream that includes a sequence of bits that forms a representation of coded frames and associated data, which is either saved in the storage device 32 or transmitted to the destination device 14. [00106] After receiving a bitstream generated by the video encoder 20, the video decoder 30 may parse the bitstream to obtain syntax elements from the bitstream. The video decoder 30 may reconstruct the frames of the video data based at least in part on the syntax elements obtained from the bitstream.
  • the process of reconstructing the video data is generally reciprocal to the encoding process performed by the video encoder 20.
  • the video decoder 30 may perform inverse transforms on the coefficient blocks associated with TUs of a current CU to reconstruct residual blocks associated with the TUs of the current CU.
  • the video decoder 30 also reconstructs the coding blocks of the current CU by adding the samples of the predictive blocks for PUs of the current CU to corresponding samples of the transform blocks of the TUs of the current CU. After reconstructing the coding blocks for each CU of a frame, video decoder 30 may reconstruct the frame.
  • video coding achieves video compression using primarily two modes, i.e., intra-frame prediction (or intra-prediction) and inter-frame prediction (or inter-prediction). It is noted that IBC could be regarded as either intra-frame prediction or a third mode. Between the two modes, inter-frame prediction contributes more to the coding efficiency than intra-frame prediction because of the use of motion vectors for predicting a current video block from a reference video block. [00108] But with the ever improving video data capturing technology and more refined video block size for preserving details in the video data, the amount of data required for representing motion vectors for a current frame also increases substantially.
  • a set of rules need to be adopted by both the video encoder 20 and the video decoder 30 for constructing a motion vector candidate list (also known as a “merge list”) for a current CU using those potential candidate motion vectors associated with spatially neighboring CUs and/or temporally co-located CUs of the current CU and then selecting one member from the motion vector candidate list as a motion vector predictor for the current CU.
  • a motion vector candidate list also known as a “merge list”
  • the present disclosure is to further enhance the Intra Block Copy method by either improving the coding efficiency and/or reducing its coding complexities.
  • Affine model [00112] In HEVC, only translation motion model is applied for motion compensated prediction. While in the real world, there are many kinds of motion, e.g., zoom in/out, rotation, perspective motions and other irregular motions.
  • affine motion compensated prediction is applied by signaling one flag for each inter coding block to indicate whether the translation motion model or the affine motion model is applied for inter prediction.
  • two affine modes including 4-paramter affine mode and 6-parameter affine mode, are supported for one affine coding block.
  • the 4-parameter affine model has the following parameters: two parameters for translation movement in horizontal and vertical directions respectively, one parameter for zoom motion and one parameter for rotational motion for both directions.
  • horizontal zoom parameter is equal to vertical zoom parameter
  • horizontal rotation parameter is equal to vertical Attorney Ref.: 186015.20173 rotation parameter.
  • those affine parameters are to be derived from two MVs (which are also called control point motion vector (CPMV)) located at the top-left corner and top-right corner of a current block.
  • CPMV control point motion vector
  • FIGS.4A-4B the affine motion field of the block is described by two CPMVs (V 0 , V 1 ).
  • the motion field (vx, vy) of one affine coded block is described as v ( ⁇ v 1x ⁇ v 0x) ( v 1y ⁇ v 0 y ) x x ⁇ y ⁇ v 0 x (1)
  • the 6-parameter parameters two parameters movement in horizontal and vertical directions respectively, two parameters for zoom motion and rotation motion respectively in horizontal direction, another two parameters for zoom motion and rotation motion respectively in vertical direction.
  • the 6-parameter affine motion model is coded with three CPMVs. As shown in FIG. 5, the three control points of one 6-paramter affine block are located at the top-left, top-right and bottom left corner of the block.
  • the motion at top-left control point is related to translation motion
  • the motion at top-right control point is related to rotation and zoom motion in horizontal direction
  • the motion at bottom-left control point is related to rotation and zoom motion in vertical direction.
  • the rotation and zoom motion in horizontal direction of the 6-paramter may not be same as those motion in vertical direction. Assuming (V 0 , V 1 , V 2 ) are the MVs of the top-left, top-right and bottom-left corners of the current block in FIG.
  • affine merge mode the CPMVs for the current block are not explicitly signaled but derived from neighboring blocks. Specifically, in this mode, motion information of spatial Attorney Ref.: 186015.20173 neighbor blocks is used to generate CPMVs for the current block.
  • the affine merge mode candidate list has a limited size. For example, in the current VVC design, there may be up to five candidates.
  • the encoder may evaluate and choose the best candidate index based on rate-distortion optimization algorithms.
  • the chosen candidate index is then signaled to the decoder side.
  • the affine merge candidates can be decided in three ways: ⁇ Inherited from neighboring affine coded blocks ⁇ Constructed from translational MVs from neighboring blocks ⁇ Zero MVs [00116]
  • For the inherited method there may be up to two candidates.
  • the candidates are obtained from the neighboring blocks located at the bottom-left of the current block (e.g., scanning order is from A0 to A1 as shown in FIG.6) and from the neighboring blocks located at the top-right of the current block (e.g., scanning order is from B0 to B2 as shown in FIG.6), if available.
  • the candidates are the combinations of neighbor’s translational MVs, which are generated by two steps.
  • Step 1 obtain four translational MVs from available neighbors.
  • o MV1 MV from the one of the three neighboring blocks close to the top-left corner of the current block.
  • the scanning order is B2, B3 and A2.
  • o MV2 MV from the one of the one from the two neighboring blocks close to the top-right corner of the current block.
  • the scanning order is B1and B0.
  • o MV3 MV from the one of the one from the two neighboring blocks close to the bottom-left corner of the current block.
  • the scanning order is A1and A0.
  • o MV4 MV from the temporally collocated block of the neighboring block close to the bottom-right corner of current block.
  • the neighboring block is T.
  • ⁇ Step 2 derive combinations based on the four translational MVs from step 1.
  • Affine AMVP mode Affine AMVP (advanced motion vector prediction) mode may be applied for CUs with both width and height larger than or equal to 16.
  • An affine flag in CU level is signalled in the bitstream to indicate whether affine AMVP mode is used and then another flag is signalled to indicate whether 4-parameter affine or 6-parameter affine. In this mode, the difference of the CPMVs of current CU and their predictors CPMVPs is signalled in the bitstream.
  • the affine AMVP candidate list size is 2 and the affine AMVP candidate list is generated by using the following four types of CPMV candidate in order: – Inherited affine AMVP candidates that extrapolated from the CPMVs of the neighbour CUs – Constructed affine AMVP candidates CPMVPs that are derived using the translational MVs of the neighbour CUs – Translational MVs from neighboring CUs – Temporal MVs from collocated CUs – Zero MVs [00120]
  • the checking order of inherited affine AMVP candidates is the same to the checking order of inherited affine merge candidates.
  • Constructed AMVP candidate is derived from the same spatial neighbors as affine merge mode. The same checking order is used as done in affine merge candidate construction. In addition, reference picture index of the neighboring block is also checked. The first block in the checking order that is inter coded and has the same reference picture as in current CUs is used. When the current CU is coded with 4-parameter affine mode, and ⁇ ⁇ and ⁇ ⁇ are both available, ⁇ ⁇ and ⁇ ⁇ are added as one candidate in the affine AMVP candidate list.
  • Intra block copy in Versatile Video Coding is a tool adopted in HEVC extensions on SCC. It is well known that it significantly improves the coding efficiency of screen content materials. Since IBC mode is implemented as a block level coding mode, block matching (BM) is performed at the encoder to find the optimal block vector (or motion vector) for each CU. Here, a block vector is used to indicate the displacement from the current block to a reference block, which is already reconstructed inside the current picture.
  • the luma block vector of an IBC-coded CU is in integer precision.
  • the chroma block vector rounds to integer precision as well.
  • the IBC mode can switch between 1-pel and 4-pel motion vector precisions.
  • An IBC- coded CU is treated as the third prediction mode other than intra or inter prediction modes.
  • the IBC mode is applicable to the CUs with both width and height smaller than or equal to 64 luma samples.
  • hash-based motion estimation is performed for IBC.
  • the encoder performs RD check for blocks with either width or height no larger than 16 luma samples.
  • the block vector search is performed using hash-based search first. If hash search does not return valid candidate, block matching based local search will be performed.
  • hash key matching 32-bit CRC
  • the hash key calculation for every position in the current picture is based on 4x4 subblocks. For the current block of a larger size, a hash key is determined to match that of the reference block when all the hash keys of all 4 ⁇ 4 subblocks match the hash keys in the corresponding reference locations. If hash keys of multiple reference blocks are found to match that of the current block, the block vector costs of each matched reference are calculated and the one with the minimum cost is selected. [00126] In block matching search, the search range is set to cover both the previous and current CTUs.
  • IBC mode is signalled with a flag and it can be signaled as IBC AMVP mode or IBC skip/merge mode as follows: – IBC skip/merge mode: a merge candidate index is used to indicate which of the block vectors in the list from neighboring candidate IBC coded blocks is used to predict the current block.
  • the merge list consists of spatial, HMVP, and pairwise candidates.
  • – IBC AMVP mode block vector difference is coded in the same way as a motion vector difference.
  • the block vector prediction method uses two candidates as predictors, one from left neighbor and one from above neighbor (if IBC coded). When either neighbor is not available, a default block vector will be used as a predictor.
  • IBC reference region [00128] To reduce memory consumption and decoder complexity, the IBC in VVC allows only the reconstructed portion of the predefined area including the region of current CTU and some region of the left CTU.
  • FIG. 8 illustrates the reference region of IBC Mode, where each block represents 64x64 luma sample unit. [00129] Depending on the location of the current coding CU location within the current CTU, the following applies: – If current block falls into the top-left 64x64 block of the current CTU, then in addition to the already reconstructed samples in the current CTU, it can also refer to the reference samples in the bottom-right 64x64 blocks of the left CTU, using CPR mode.
  • the current block can also refer to the reference samples in the bottom-left 64x64 block of the left CTU and the reference samples in the top-right 64x64 block of the left CTU, using CPR mode. – If current block falls into the top-right 64x64 block of the current CTU, then in addition to the already reconstructed samples in the current CTU, if luma location (0, 64) relative to the current CTU has not yet been reconstructed, the current block can also refer to the reference samples in the bottom-left 64x64 block and bottom-right 64x64 block of the left CTU, using CPR mode; otherwise, the current block can also refer to reference samples in bottom-right 64x64 block of the left CTU.
  • the current block can also refer to the Attorney Ref.: 186015.20173 reference samples in the top-right 64x64 block and bottom-right 64x64 block of the left CTU, using CPR mode. Otherwise, the current block can also refer to the reference samples in the bottom-right 64x64 block of the left CTU, using CPR mode. – If current block falls into the bottom-right 64x64 block of the current CTU, it can only refer to the already reconstructed samples in the current CTU, using CPR mode.
  • IBC mode is implemented using local on-chip memory for hardware implementations.
  • IBC interaction with other coding tools such as pairwise merge candidate, history based motion vector predictor (HMVP), combined intra/inter prediction mode (CIIP), merge mode with motion vector difference (MMVD), and geometric partitioning mode (GPM) are as follows: – IBC can be used with pairwise merge candidate and HMVP. A new pairwise IBC merge candidate can be generated by averaging two IBC merge candidates. For HMVP, IBC motion is inserted into history buffer for future referencing.
  • – IBC cannot be used in combination with the following inter tools: affine motion, CIIP, MMVD, and GPM. – IBC is not allowed for the chroma coding blocks when DUAL_TREE partition is used. [00132] Unlike in the HEVC screen content coding extension, the current picture is no longer included as one of the reference pictures in the reference picture list 0 for IBC prediction. The derivation process of motion vectors for IBC mode excludes all neighboring blocks in inter mode and vice versa. The following IBC design aspects are applied: – IBC shares the same process as in regular MV merge including with pairwise merge candidate and history-based motion predictor, but disallows TMVP and zero vector because they are invalid for IBC mode.
  • HMVP buffer (5 candidates each) is used for conventional MV and IBC.
  • Block vector constraints are implemented in the form of bitstream conformance constraint, the encoder needs to ensure that no invalid vectors are present in the bitsream, and merge shall not be used if the merge candidate is invalid (out of range or 0).
  • Such bitstream conformance constraint is expressed in terms of a virtual buffer as described below.
  • IBC is handled as inter mode. Attorney Ref.: 186015.20173 . If the current block is coded using IBC prediction mode, AMVR does not use quarter-pel; instead, AMVR is signaled to only indicate whether MV is inter-pel or 4 integer-pel.
  • the size of ibcBuf is also 128x128; for a CTU size of 64x64, the size of ibcBuf is 256x64; and a CTU size of 32x32, the size of ibcBuf is 512x32.
  • the virtual IBC buffer, ibcBuf is maintained as follows. – At the beginning of decoding each CTU row, refresh the whole ibcBuf with an invalid value ⁇ 1.
  • IBC merge/AMVP list construction is modified as follows: ⁇ Only if an IBC merge/AMVP candidate is valid, it can be inserted into the IBC merge/AMVP candidate list. ⁇ Above-right, bottom-left, and above-left spatial candidates and one pairwise average candidate can be added into the IBC merge/AMVP candidate list. ⁇ Template based adaptive reordering (ARMC-TM) is applied to IBC merge list. Attorney Ref.: 186015.20173 [00139] The HMVP table size for IBC is increased to 25.
  • IBC merge candidates After up to 20 IBC merge candidates are derived with full pruning, they are reordered together. After reordering, the first 6 candidates with the lowest template matching costs are selected as the final candidates in the IBC merge list. [00140]
  • the zero vectors’ candidates to pad the IBC Merge/AMVP list are replaced with a set of BVP candidates located in the IBC reference region. A zero vector is invalid as a block vector in IBC merge mode, and consequently, it is discarded as BVP in the IBC candidate list.
  • IBC with Template Matching is used in IBC for both IBC merge mode and IBC AMVP mode.
  • the IBC-TM merge list is modified compared to the one used by regular IBC merge mode such that the candidates are selected according to a pruning method with a motion distance between the candidates as in the regular TM merge mode.
  • the ending zero motion fulfillment is replaced by motion vectors to the left (-W, 0), top (0, -H) and top-left (-W, -H), where W is the width and H the height of the current CU.
  • the selected candidates are refined with the Template Matching method prior to the RDO or decoding process.
  • the IBC-TM merge mode has been put in competition with the regular IBC merge mode and a TM-merge flag is signaled.
  • up to 3 candidates are selected from the IBC-TM merge list. Each of those 3 selected candidates are refined using the Template Matching method and sorted according to their resulting Template Matching cost.
  • IBC-TM merge and AMVP modes are quite simple since IBC motion vectors are constrained (i) to be integer and (ii) within a reference region as shown in FIG.8. So, in IBC-TM merge mode, all refinements are performed at integer precision, and in IBC-TM AMVP mode, they are performed either at integer or 4-pel precision depending on the AMVR value. Such a refinement accesses only to samples without interpolation. In both cases, the refined motion vectors and the used template in each refinement step must respect the constraint of the reference region.
  • FIG. 10 illustrates the reference area for coding CTU (m,n). Specifically, for CTU (m,n) to be coded, the reference area includes CTUs with index (m–2,n–2)...(W,n–2),(0,n–1)...(W,n–1),(0,n)...(m,n), where W denotes the maximum horizontal index within the current tile, slice or picture. This setting ensures that for CTU size being 128, IBC does not require extra memory in the current ETM platform.
  • the per-sample block vector search (or called local search) range is limited to [–(C ⁇ 1), C >> 2] horizontally and [–C, C >> 2] vertically to adapt to the reference area extension, where C denotes the CTU size.
  • IBC merge mode with block vector differences [00148] IBC merge mode with block vector differences is adopted in ECM.
  • the distance set is ⁇ 1- pel, 2-pel, 4-pel, 8-pel, 12-pel, 16-pel, 24-pel, 32-pel, 40-pel, 48-pel, 56-pel, 64-pel, 72-pel, 80- pel, 88-pel, 96-pel, 104-pel, 112-pel, 120-pel, 128-pel ⁇ , and the BVD directions are two horizontal and two vertical directions.
  • the base candidates are selected from the first five candidates in the reordered IBC merge list. And based on the SAD cost between the template (one row above and one column left to the current block) and its reference for each refinement position, all the possible MBVD refinement positions (20 ⁇ 4) for each base candidate are reordered. Finally, the top 8 refinement positions with the lowest template SAD costs are kept as available positions, consequently for MBVD index coding.
  • IBC adaptation for camera-captured content IBC reference range is reduced from 2 CTU rows to 2x128 rows as shown in FIG.11.
  • the local search range is set to [–8,8] horizontally and [–8,8] vertically centered at the first block vector predictor of the current CU.
  • This encoder modification is not applied to SCC sequences.
  • Subblock-based temporal motion vector prediction (SbTMVP) [00151]
  • VVC supports the subblock-based temporal motion vector prediction (SbTMVP) method. Similar to the temporal motion vector prediction (TMVP) in HEVC, SbTMVP uses the motion field in the collocated picture to improve motion vector prediction and merge mode for CUs in the current picture. The same collocated picture used by TMVP is used for SbTVMP.
  • SbTMVP differs from TMVP in the following two main aspects: Attorney Ref.: 186015.20173 – TMVP predicts motion at CU level but SbTMVP predicts motion at sub-CU level; – Whereas TMVP fetches the temporal motion vectors from the collocated block in the collocated picture (the collocated block is the bottom-right or center block relative to the current CU), SbTMVP applies a motion shift before fetching the temporal motion information from the collocated picture, where the motion shift is obtained from the motion vector from one of the spatial neighboring blocks of the current CU. [00152] The SbTVMP process is illustrated in FIGS. 13A-13B.
  • SbTMVP predicts the motion vectors of the sub-CUs within the current CU in two steps.
  • the spatial neighbor A1 in FIG. 13A is examined. If A1 has a motion vector that uses the collocated picture as its reference picture, this motion vector is selected to be the motion shift to be applied. If no such motion is identified, then the motion shift is set to (0, 0).
  • the motion shift identified in Step 1 is applied (i.e., added to the current block’s coordinates) to obtain sub-CU-level motion information (motion vectors and reference indices) from the collocated picture as shown in FIG.13B.
  • the example in FIG.13B assumes the motion shift is set to block A1’s motion.
  • the motion information of its corresponding block (the smallest motion grid that covers the center sample) in the collocated picture is used to derive the motion information for the sub-CU.
  • the motion information of the collocated sub-CU is identified, it is converted to the motion vectors and reference indices of the current sub-CU in a similar way as the TMVP process of HEVC, where temporal motion scaling is applied to align the reference pictures of the temporal motion vectors to those of the current CU.
  • a combined subblock based merge list which contains both SbTVMP candidate and affine merge candidates is used for the signalling of subblock based merge mode.
  • the SbTVMP mode is enabled/disabled by a sequence parameter set (SPS) flag. If the SbTMVP mode is enabled, the SbTMVP predictor is added as the first entry of the list of subblock based merge candidates, and followed by the affine merge candidates.
  • the size of subblock based merge list is signalled in SPS and the maximum allowed size of the subblock based merge list is 5 in VVC.
  • the sub-CU size used in SbTMVP is fixed to be 8x8, and as done for affine merge mode, SbTMVP mode is only applicable to the CU with both width and height are larger than or equal to 8.
  • the encoding logic of the additional SbTMVP merge candidate is the same as for the other merge candidates, that is, for each CU in P or B slice, an additional RD check is performed to decide whether to use the SbTMVP candidate.
  • the probability estimation technique for the CABAC in the AVC and HEVC [00157]
  • the CABAC (the context-based adaptive binary arithmetic coding) was originally introduced in the H.264/AVC standard, as one of two supported entropy coding schemes.
  • codeword mapping also known as binarization
  • probability estimation In the process of codeword mapping, the syntax elements are mapped into strings of bins.
  • the mapping is realized by the so-called binarizer which translates the syntax elements into several group of bins based on different binarization schemes.
  • various binarization schemes may be applied for such translation, such as fixed-length code, unary code, truncated unary code, and kth-order Exponential-Golomb code and so forth.
  • the purpose of the probability estimation module is to determine the likelihood of one bin having the value of 1 or 0.
  • the probabilities of bins are calculated based on an exponential aging model, where the probability that one current bin is equal to 1 or 0 is dependent on the values of previous bins that are previously coded. Additionally, according to common data statistics, the influence of bins that are immediately precede one current bin are usually larger than the bins that are coded long ago.
  • the parameter translates into the adaptation speed with which the probability is updated along with the increased coded bins.
  • ⁇ ( ⁇ ) is the probability of the LPS symbol at instant ⁇
  • ⁇ ( ⁇ + 1) is the updated probability of the LPS symbol at instant ⁇ + 1
  • ⁇ ( ⁇ ) is equal to 1 when the current bin is LPS symbol and 0 when the current bin is the most probable symbol (MPS).
  • the probability is independently updated according to (1) for each syntax element with a fixed value of ⁇ ⁇ 1 ⁇ 19.69 , i.e., around 19.69 previously coded bins are considered when estimating the probability of one current bin.
  • the probability ⁇ ( ⁇ ) in (1) which is real number and ranges from 0 to 1, is quantized into a set of fixed probability states. For example, in both the AVC and the HEVC, the probability has 7-bit precision, corresponding to 128 probability states.
  • a video bitstream usually consists one or more independently decodable slices.
  • the probability estimation technique for the CABAC in the VVC is kept almost the same as that in the AVC and HEVC, except for the following key differences: 1.
  • VVC maintains two probability estimates for each context, where each has its own probability adaptation rate ⁇ in (1). The final probability that is actually used for arithmetic coding is the average of the two estimates.
  • multiple probability LUTs are predefined and used to initialize the probabilities of different contexts of one slice. Meanwhile, similar to the AVC and the HEVC, the initial estimate of the probability is built upon one linear model taking the slice QP as the input.
  • Multi-hypothesis probability estimation [00161] It is obvious that using one fixed adaptation parameter for all the syntax elements may not be optimal due to their different statistical characteristics. On the other hand, it has been proven in several scientific research that better estimation accuracy can be achieved by using multiple probability estimators compared to one single estimator. Therefore, one multi-hypothesis probability estimation scheme is applied in the CABAC design of the VVC, where two different adaptation parameter ⁇ 0 and ⁇ 1 are utilized, which correspond to one slow and fast speed for the probability adaptation.
  • ⁇ ⁇ and ⁇ ⁇ are hypotheses.
  • the values of ⁇ ⁇ and ⁇ ⁇ are independently selected for each context using one training algorithm that is designed to optimize the adaptation parameters as well as the initial probabilities.
  • each context is allowed to select ⁇ ⁇ from one set of predefined values of ⁇ 1/4, 1/8, 1/16, 1/32 ⁇ and ⁇ ⁇ from another set of predefined values of ⁇ 1/32, 1/64, 1/128, 1/256, 1/512 ⁇ .
  • Initial probability calculation [00163] As in the AVC/HEVC, the CABCA process of the VVC also invoke one QP dependent probability initialization process at the beginning of each slice.
  • Entropy coding in ECM [00164]
  • This operation can also be realized by looking up a 512 ⁇ 256-entry in 9-bit look-up table.
  • the 256-entry look-up table used for bits estimation in VTM is extended to 512 entries.
  • Slice-type-based window size Since statistics are different with different slice types, it is beneficial to have a context’s probability state updated at a rate that may provide more accurate probability estimation (e.g., to more accurately predict the likelihood of one bin having the value of 1 or 0) under the given slice type. Therefore, for each context model, three window sizes are pre-defined for I-, B-, and P-slices, respectively, like the initialization parameters. [00168] The context initialization parameters and window sizes are retrained.
  • Multi-hypothesis probability estimation with adaptive weight is estimated based on adaptive weights (MHP- AW). Specifically, two separate probability estimates ⁇ ⁇ and ⁇ ⁇ are maintained for each context and updated according to their own adaptation rates.
  • the weights of I-slice type are only allowed for intra slices while the weights of B- and P-slice types are allowed to be switched for inter slices at slice level.
  • CABAC initialization from previous inter slice and windows adjustment [00172] Context initialization stored at previously coded picture after coding the last CTU can be used to initialize an inter slice having the same slice type, QP, and temporal ID.
  • the buffer size for storing previous initializations is set equal to 5 for each slice type, when the buffer is full, the entry with the smallest QP and temporal ID is removed first before storing the initialization.
  • the CABAC employs two probability states that are updated with a short and a long window size, respectively.
  • the window sizes, predefined for each context model, are not optimal for varying statistics in different regions, hence window sizes are adjusted according to the previously coded bin of each context.
  • the short and long window sizes used in CABAC update are adjusted by two delta parameters stored in a look-up table per context and retrieved by a previous coded bin used as an index. The previous coded bin is used as an index to get the adjustment parameters from a look- up table: delta0 for the short window and delta1 for the long window. Denote the original short and long window sizes stored in the existed initialization tables and defined for the context model as shift0 and shift1, respectively.
  • intra block copy is well known to accurately predict screen content and artificially generated content where patterns and edges may repeat within the frame. Intra block copy may also be beneficial for natural content predictions where the current frame has repeated textures. For the coding scenarios without too much repeated content, the mode of intra block copy may not be selected while its minimum signaling bits are still transmitted. In this case, to further Attorney Ref.: 186015.20173 enhance the coding efficiency of intra block copy, it is desired to provide more flexible on/off control mechanisms at different granularities.
  • the coding tool of intra block copy is improved from aspects below: ⁇ Flexible on/off control mechanisms ⁇ CABAC context window Flexible on/off control mechanisms [00177]
  • the on/off control indicates whether the IBC mode is allowed to be possibly enabled for the current sequence, frame, slice, CTU, or block which is at different granularities. If IBC mode is on, further flags (e.g., whether IBC mode is enabled or disabled for a specific block) or/and information (e.g., block vectors) may be signaled. If IBC mode is off, no more flags or information is signaled.
  • the on/off control of intra block copy may be based on explicit signaling methods.
  • the on/off control is based on one or more, sequence level, or frame level, or slice level or Coding tree unit (CTU) level, or block level flag, or any combination of different levels of flags.
  • CTU Coding tree unit
  • the transmission of lower level of flags are dependent on the on/off of higher level of flags.
  • the frame level flag indicates the turned off of IBC mode, no more flags are transmitted at slice or block level. Otherwise, lower level flag(s) is/are further transmitted.
  • the on/off control is based on different regions.
  • the region here may be defined as non-overlapping areas within a frame or a slice or a CTU. For all the blocks located within a specific region, a single on/off control flag may be signed to indicate whether IBC mode is turned off for all these blocks are not.
  • the size of the regions may be predefined as a set of fixed values such as M x N, or a group of signaled values.
  • the on/off control of intra block copy may be based on local information, and no explicit signaling is required.
  • the on/off control is based on the prediction information.
  • the IBC mode is always turned off for inter predicted blocks (e.g., in inter-coded frames such as B and P frames). While for intra-coded blocks, either in inter-coded frames (such as B and P frames) or intra-coded frames (such as I frame), IBC mode may be always turned on. [00185] In another embodiment, the IBC mode is always turned off for uni-predicted or/and bi- predicted inter blocks. [00186] Yet in another embodiment, the IBC mode is always turned off for blocks which are coded at sub-block modes. The sub-block mode is the mode which divides current block into sub-blocks and each sub-block may have its own motion information.
  • affine mode For example, affine mode, SbTMVP mode.
  • the IBC mode is always turned off for blocks which are not coded at sub-block modes.
  • the on/off control is based on the other coding information.
  • the IBC model is always turned off when one or more other coding mode(s) is/are applied for the current block.
  • the IBC mode is always turned off when affine mode is enabled.
  • the on/off control is based on the frame type. [00191] In one embodiment, the IBC mode are always turned off for B frame or/and P frame.
  • the on/off control is based on the block information.
  • the IBC mode is always turned off for coding blocks smaller than a specific size (e.g., 8x8 blocks) or larger than a specific size (e.g., 64x64).
  • CABAC context window there may be one or more IBC mode related flags which are CABAC context coded.
  • the IBC enabling flag at block level is context coded. Since statistics may be different with different slice or frame types, it is desirable to have a context’s probability state updated at a rate that may provide more accurate probability estimation (e.g., to Attorney Ref.: 186015.20173 more accurately predict the likelihood of one bin having the value of 1 or 0) under the given slice/frame type.
  • three windows may be predefined for three different slices, including I, B and P slices, respectively.
  • FIG. 15 shows a computing environment (or a computing device) 1610 coupled with a user interface 1650.
  • the computing environment 1610 can be part of a data processing server.
  • the computing device 1610 can perform any of various methods or processes (such as encoding/decoding methods or processes) as described hereinbefore in accordance with various examples of the present disclosure.
  • the computing environment 1610 includes a processor 1620, a memory 1630, and an Input/Output (I/O) interface 1640.
  • the processor 1620 typically controls overall operations of the computing environment 1610, such as the operations associated with display, data acquisition, data communications, and image processing.
  • the processor 1620 may include one or more processors to execute instructions to perform all or some of the steps in the above-described methods.
  • the processor 1620 may include one or more modules that facilitate the interaction between the processor 1620 and other components.
  • the processor may be a Central Processing Unit (CPU), a microprocessor, a single chip machine, a Graphical Processing Unit (GPU), or the like.
  • the memory 1630 is configured to store various types of data to support the operation of the computing environment 1610.
  • the memory 1630 may include predetermined software 1632. Examples of such data includes instructions for any applications or methods operated on the computing environment 1610, video datasets, image data, etc.
  • the memory 1630 may be implemented by using any type of volatile or non-volatile memory devices, or a combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic memory, a flash memory, a magnetic or optical disk.
  • SRAM Static Random Access Memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • EPROM Erasable Programmable Read-Only Memory
  • PROM Programmable Read-Only Memory
  • ROM Read-Only Memory
  • the I/O interface 1640 provides an interface between the processor 1620 and peripheral interface modules, such as a keyboard, a click wheel, buttons, and the like.
  • the buttons may include but are not limited to, a home button, a start scan button, and a stop scan button.
  • the I/O interface 1640 can be coupled with an encoder and decoder.
  • FIG.16 is a flowchart illustrating a method for video decoding according to an example of the present disclosure. In the method illustrated in FIG. 16, the on/off control of intra block copy may be based on explicit signaling methods.
  • the processor 1620 may obtain one or more IBC control syntax elements that indicate whether IBC mode is enabled at different granularities.
  • the different granularities may include a plurality of coding levels, and the one or more IBC control syntax elements indicate whether the IBC mode is enabled at the plurality of coding levels.
  • the transmission of lower level of flags are dependent on the on/off of higher level of flags. For example, if the frame level flag indicates the turned off of IBC mode, no more flags are transmitted at slice or block level. Otherwise, lower-level flag(s) is/are further transmitted.
  • the plurality of coding levels may include a sequence level, a frame level, a slice level, a coding tree unit level, and a block level
  • each control syntax element indicates whether the IBC mode is enabled at at least one of the plurality of coding levels
  • the one or more IBC control syntax elements may include a first control syntax element and a second control syntax element
  • the first control syntax element indicates whether the IBC mode is enabled at a first coding level
  • the second control syntax element indicates whether the IBC mode is enabled at a second coding level
  • the first coding level is higher than the second coding level.
  • the processor 1620 may perform at least one of following steps including: obtain the second control syntax element and determine whether the second control syntax element indicates that the IBC mode is enabled at the second coding level in response to determining that the first control syntax element indicates that the IBC mode is enabled at the first coding level; or determine that no second control syntax element is transmitted in response to determining that the first control syntax element indicates that the IBC mode is not enabled at the first coding level.
  • the flexible on/off control for the application of the IBC mode is based on different regions.
  • the different granularities may include different regions and the Attorney Ref.: 186015.20173 processor 1620, at the side of the decoder, may predefine the different regions as non-overlapping areas within one of followings: a frame, a slice, or a CTU.
  • the processor 1620 may predefine sizes of the different regions as a set of fixed values.
  • the processor 1620 at the side of the decoder, may obtain one or more block vectors for a current block based on the IBC mode in response to determining that the IBC mode is enabled at one or more granularities.
  • FIG.17 is a flowchart illustrating a method for video encoding corresponding the method for video decoding as shown in FIG.16.
  • the processor 1620 at the side of an encoder, may determine one or more IBC control syntax elements that indicate whether IBC mode is enabled at different granularities.
  • the different granularities may include a plurality of coding levels, and the one or more IBC control syntax elements indicate whether the IBC mode is enabled at the plurality of coding levels.
  • the transmission of lower level of flags are dependent on the on/off of higher level of flags.
  • the plurality of coding levels may include a sequence level, a frame level, a slice level, a coding tree unit level, and a block level
  • each control syntax element indicates whether the IBC mode is enabled at at least one of the plurality of coding levels
  • the one or more IBC control syntax elements may include a first control syntax element and a second control syntax element, the first control syntax element indicates whether the IBC mode is enabled at a first coding level, the second control syntax element indicates whether the IBC mode is enabled at a second coding level, and the first coding level is higher than the second coding level.
  • the processor 1620 may perform at least one of following steps including: determine the second control syntax element and transmit the second control syntax element that indicates whether the IBC mode is enabled at the second coding level in response to determining that the first control syntax element indicates that the IBC mode is enabled at the first coding level; or determine not to transmit the second control syntax element in response to determining that the first control syntax element indicates that the IBC mode is not enabled at the first coding level.
  • Attorney Ref.: 186015.20173 [00215]
  • the flexible on/off control for the application of the IBC mode is based on different regions.
  • the different granularities may include different regions and the processor 1620, at the side of the encoder, may predefine the different regions as non-overlapping areas within one of followings: a frame, a slice, or a CTU.
  • the processor 1620 may predefine sizes of the different regions as a set of fixed values.
  • the processor 1620, at the side of the encoder may encode a current block into a bitstream based on the one or more IBC control syntax elements.
  • FIG.18 is a flowchart illustrating a method for video decoding according to an example of the present disclosure. In the method illustrated in FIG.
  • the on/off control of intra block copy may be based on local information, and no explicit signaling is required.
  • the processor 1620 at the side of a decoder, may obtain IBC control information according to local information associated with a current block, where the IBC control information indicates whether IBC mode is enabled.
  • the local information may include at least one of following information: prediction information, coding information, frame types, or block information.
  • the on/off control of the IBC mode may be based on the prediction information.
  • the processor 1620 may perform one of following steps: determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is an inter predicted block, e.g., in inter-coded frames such as B or P frames; determine that the IBC control information indicates that the IBC mode is enabled in response to determining that the current block is an intra predicted block, either in inter-coded frames (such as B and P frames) or intra-coded frames (such as I frame); determine that that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is a uni-predicted inter block; determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is coded at a sub-block mode; determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is not coded at a sub-block mode; determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block
  • the wide block has a first width and a first height, and the first width is M times longer than the first height, the long block has a second width and a second height, and the second height is N times longer than the first width, and M and N are fixed values or signaled at a sequence level or a frame level.
  • the processor 1620 at the side of the decoder, may obtain one or more block vectors for the current block based on the IBC mode in response to determining that the IBC mode is enabled.
  • FIG.19 is a flowchart illustrating a method for video encoding corresponding the method for video decoding as shown in FIG.18.
  • the processor 1620 may obtain IBC control information according to local information associated with a current block, where the IBC control information indicates whether IBC mode is enabled.
  • the local information may include at least one of following information: prediction information, coding information, frame types, or block information.
  • the on/off control of the IBC mode may be based on the prediction information.
  • the processor 1620 may perform one of following steps: determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is an inter predicted block, e.g., in inter-coded frames such as B or P frames; determine that the IBC control information indicates that the IBC mode is enabled in response to determining that the current block is an intra predicted block, either in inter-coded frames (such as B and P frames) or intra-coded frames (such as I frame); determine that that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is a uni-predicted inter block; determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is coded at a sub-block mode; determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is not coded at a sub-block mode; determine that Attorney Ref.: 186015.20173 the IBC control information indicates that the IBC
  • the wide block has a first width and a first height, and the first width is M times longer than the first height, the long block has a second width and a second height, and the second height is N times longer than the first width, and M and N are fixed values or signaled at a sequence level or a frame level.
  • the processor 1620 at the side of the encoder, may encode a current block into a bitstream based on the IBC control information.
  • FIG.20 is a flowchart illustrating a method for video decoding according to an example of the present disclosure. In the method illustrated in FIG.20, multiple windows may be predefined bases on different slice and/or frame types.
  • the processor 1620 may obtain a syntax element that is related to IBC mode, where the syntax element is CABAC context coded.
  • the processor 1620 may determine a CABAC context window that is used for each context model related to the IBC mode based on a slice type or a frame type.
  • the processor 1620 may determine that multiple CABAC context windows are predefined for different slice types or different frame types based on the slice type or the frame type. For example, the processor 1620 may determine that three different CABAC context windows are predefined for three different slice types, where the three different slice types may include I, B, and P.
  • the processor 1620 may determine that two different CABAC context windows are predefined for different slices with different slice types and different prediction modes. Attorney Ref.: 186015.20173 [00233] In some examples, the processor 1620 may determine that a first CABAC context window is used for the current slice in response to determining that a current slice is an intra-predicted I slice and determine that a second CABAC context window is used for the current slice in response to determining that the current slice is an inter-predicted B slice or an inter-predicted P slice, where the first CABAC context window and the second CABAC context window are two different CABAC context windows.
  • FIG.21 is a flowchart illustrating a method for video encoding corresponding the method for video decoding as shown in FIG.20.
  • the processor 1620 may determine a CABAC context window that is used for each context model related to IBC mode based on the slice type or the frame type.
  • the processor 1620 may obtain a syntax element that is related to the IBC mode, where the syntax element is CABAC context coded.
  • the processor 1620 may signal the syntax element into a bitstream.
  • the processor 1620 may determine that multiple CABAC context windows are predefined for different slice types or different frame types based on the slice type or the frame type. For example, the processor 1620 may determine that three different CABAC context windows are predefined for three different slice types, where the three different slice types may include I, B, and P. In another example, the processor 1620 may determine that two different CABAC context windows are predefined for different slices with different slice types and different prediction modes.
  • the processor 1620 may determine that a first CABAC context window is used for the current slice in response to determining that a current slice is an intra-predicted I slice and determine that a second CABAC context window is used for the current slice in response to determining that the current slice is an inter-predicted B slice or an inter-predicted P slice, where the first CABAC context window and the second CABAC context window are two different CABAC context windows.
  • Attorney Ref.: 186015.20173 [00241]
  • the context window sizes and initialization parameters may also be retrained separately or jointly.
  • the apparatus includes a processor 1620 and a memory 1640 configured to store instructions executable by the processor; where the processor, upon execution of the instructions, is configured to perform any method as illustrated in FIGS.16-21.
  • a non-transitory computer-readable storage medium comprising a plurality of programs, for example, in the memory 1630, executable by the processor 1620 in the computing environment 1610, for performing the above-described methods and/or storing a bitstream generated by the encoding method described above or a bitstream to be decoded by the decoding method described above.
  • the plurality of programs may be executed by the processor 1620 in the computing environment 1610 to receive (for example, from the video encoder 20 in FIG.
  • bitstream or data stream including encoded video information (for example, video blocks representing encoded video frames, and/or associated one or more syntax elements, etc.), and may also be executed by the processor 1620 in the computing environment 1610 to perform the decoding method described above according to the received bitstream or data stream.
  • the plurality of programs may be executed by the processor 1620 in the computing environment 1610 to perform the encoding method described above to encode video information (for example, video blocks representing video frames, and/or associated one or more syntax elements, etc.) into a bitstream or data stream, and may also be executed by the processor 1620 in the computing environment 1610 to transmit the bitstream or data stream (for example, to the video decoder 30 in FIG. 2B).
  • the non-transitory computer-readable storage medium may have stored therein a bitstream or a data stream comprising encoded video information (for example, video blocks representing encoded video frames, and/or associated one or more syntax elements etc.) generated by an encoder (for example, the video encoder 20 in FIG. 2A) using, for example, the encoding method described above for use by a decoder (for example, the video decoder 30 in FIG.2B) in decoding video data.
  • the non- transitory computer-readable storage medium may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, an optical data storage device or the like.
  • bitstream generated by the encoding method Attorney Ref.: 186015.20173 described above or a bitstream to be decoded by the decoding method described above.
  • bitstream comprising encoded video information generated by the encoding method described above or encoded video information to be decoded by the decoding method described above.
  • the is also provided a computing device comprising one or more processors (for example, the processor 1620); and the non-transitory computer-readable storage medium or the memory 1630 having stored therein a plurality of programs executable by the one or more processors, wherein the one or more processors, upon execution of the plurality of programs, are configured to perform the above-described methods.
  • a computer program product having instructions for storage or transmission of a bitstream comprising encoded video information generated by the encoding method described above or encoded video information to be decoded by the decoding method described above.
  • a computer program product comprising a plurality of programs, for example, in the memory 1630, executable by the processor 1620 in the computing environment 1610, for performing the above-described methods.
  • the computer program product may include the non-transitory computer-readable storage medium.
  • the computing environment 1610 may be implemented with one or more ASICs, DSPs, Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), FPGAs, GPUs, controllers, micro-controllers, microprocessors, or other electronic components, for performing the above methods.
  • bitstream comprising storing the bitstream on a digital storage medium, wherein the bitstream comprises encoded video information generated by the encoding method described above or encoded video information to be decoded by the decoding method described above.
  • bitstream comprises encoded video information generated by the encoding method described above or encoded video information to be decoded by the decoding method described above.
  • bitstream comprises encoded video information generated by the encoding method described above or encoded video information to be decoded by the decoding method described above.
  • transmitting a bitstream generated by the encoder described above there is also provided a method for receiving a bitstream to be decoded by the decoder described above.

Abstract

Methods for video decoding and encoding, apparatuses and non-transitory computer-readable storage media thereof are provided. In one method for video decoding, a decoder may one or more Intra Block Copy (IBC) control syntax elements that indicate whether IBC mode is enabled at different granularities. Additionally, the decoder may obtain one or more block vectors for a current block based on the IBC mode in response to determining that the IBC mode is enabled at one or more granularities.

Description

Attorney Ref.: 186015.20173 METHODS AND DEVICES FOR INTRA BLOCK COPY CROSS-REFERENCE TO RELATED APPLICATION [0001] The present application is based upon and claims priority to U.S. Provisional Application No.63/403,699, entitled “Methods and Devices for Intra Block Copy,” filed on September 2, 2022, the entirety of which is incorporated by reference for all purposes. FIELD [0002] The present disclosure is related to video coding and compression, and in particular but not limited to, methods and apparatus on improving the Intra Block Copy method in a video encoding or decoding process. BACKGROUND [0003] Digital video is supported by a variety of electronic devices, such as digital televisions, laptop or desktop computers, tablet computers, digital cameras, digital recording devices, digital media players, video gaming consoles, smart phones, video teleconferencing devices, video streaming devices, etc. The electronic devices transmit and receive or otherwise communicate digital video data across a communication network, and/or store the digital video data on a storage device. Due to a limited bandwidth capacity of the communication network and limited memory resources of the storage device, video coding may be used to compress the video data according to one or more video coding standards before it is communicated or stored. For example, video coding standards include Versatile Video Coding (VVC), Joint Exploration test Model (JEM), High-Efficiency Video Coding (HEVC/H.265), Advanced Video Coding (AVC/H.264), Moving Picture Expert Group (MPEG) coding, or the like. Video coding generally utilizes prediction methods (e.g., inter-prediction, intra-prediction, or the like) that take advantage of redundancy inherent in the video data. Video coding aims to compress video data into a form that uses a lower bit rate, while avoiding or minimizing degradations to video quality. SUMMARY [0004] The present disclosure provides examples of techniques relating to improving the Intra Block Copy method in a video encoding or decoding process. Attorney Ref.: 186015.20173 [0005] According to a first aspect of the present disclosure, there is provided a method for video decoding. In the method, a decoder may obtain one or more Intra Block Copy (IBC) control syntax elements that indicate whether IBC mode is enabled at different granularities. Additionally, the decoder may obtain one or more block vectors for a current block based on the IBC mode in response to determining that the IBC mode is enabled at one or more granularities. [0006] According to a second aspect of the present disclosure, there is provided a method for video encoding. In the method, an encoder may determine one or more IBC control syntax elements that indicate whether IBC mode is enabled at different granularities. Additionally, the encoder may encode a current block into a bitstream based on the one or more IBC control syntax elements. [0007] According to a third aspect of the present disclosure, there is provided a method for video decoding. In the method, a decoder may obtain IBC control information according to local information associated with a current block, where the IBC control information indicates whether IBC mode is enabled. Additionally, the decoder may obtain one or more block vectors for the current block based on the IBC mode in response to determining that the IBC mode is enabled. [0008] According to a fourth aspect of the present disclosure, there is provided a method for video encoding. In the method, an encoder may obtain IBC control information according to local information associated with a current block, where the IBC control information indicates whether an IBC mode is enabled. Additionally, the encoder may encode a current block into a bitstream based on the IBC control information. [0009] According to a fifth aspect of the present disclosure, there is provided a method for video decoding. In the method, a decoder may obtain a syntax element that is related to IBC mode, where the syntax element is Context Adaptive Binary Arithmetic Coding (CABAC) context coded. Additionally, the decoder may determine a CABAC context window that is used for each context model related to the IBC mode based on a slice type or a frame type. [0010] According to a sixth aspect of the present disclosure, there is provided a method for video encoding. In the method, an encoder may determine a CABAC context window that is used for each context model related to IBC mode based on a slice type or a frame type. Additionally, the encoder may obtain a syntax element that is related to the IBC mode, where the syntax element is CABAC context coded. Furthermore, the encoder may signal the syntax element into a bitstream. [0011] According to a seventh aspect of the present disclosure, there is provided an apparatus for video decoding. The apparatus may include one or more processors and a memory coupled to the Attorney Ref.: 186015.20173 one or more processors and configured to store instructions executable by the one or more processors. Furthermore, the one or more processors, upon execution of the instructions, are configured to perform the method according to the first aspect, the third aspect, or the fifth aspect [0012] According to an eighth aspect of the present disclosure, there is provided an apparatus for video encoding. The apparatus may include one or more processors and a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors. Furthermore, the one or more processors, upon execution of the instructions, are configured to perform the method according to the second aspect, the fourth aspect, or the sixth aspect. [0013] According to a ninth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium for storing computer-executable instructions that, when executed by one or more computer processors, cause the one or more computer processors to perform the method according to the first aspect, the third aspect, or the fifth aspect. [0014] According to a tenth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium for storing computer-executable instructions that, when executed by one or more computer processors, cause the one or more computer processors to perform the method according to the second aspect, the fourth aspect, or the sixth aspect. [0015] According to an eleventh aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium for storing a bitstream to be decoded by the method according to the first aspect, the third aspect, or the fifth aspect. [0016] According to a twelfth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium for storing a bitstream generated by the method according to the second aspect, the fourth aspect, or the sixth aspect. BRIEF DESCRIPTION OF THE DRAWINGS [0017] A more particular description of the examples of the present disclosure will be rendered by reference to specific examples illustrated in the appended drawings. Given that these drawings depict only some examples and are not therefore considered to be limiting in scope, the examples will be described and explained with additional specificity and details through the use of the accompanying drawings. Attorney Ref.: 186015.20173 [0018] FIG.1A is a block diagram illustrating a system for encoding and decoding video blocks in accordance with some examples of the present disclosure. [0019] FIG.1B shows a quad-tree data structure illustrating the end result of the partition process of the CTU 400 as depicted in FIG.1E in accordance with some examples of the present disclosure. [0020] FIG.1C shows an encoded representation of a frame by first partitioning the frame into a set of CTUs in accordance with some examples of the present disclosure. [0021] FIG.1D shows a CTU including one CTB of luma samples, two corresponding coding tree blocks of chroma samples, and syntax elements used to code the samples of the coding tree blocks in accordance with some examples of the present disclosure. [0022] FIG. 2A is a block diagram illustrating an exemplary video encoder in accordance with some examples of the present disclosure [0023] FIG. 2B is a block diagram illustrating an exemplary video decoder in accordance with some examples of the present disclosure. [0024] FIG. 3A is a diagram illustrating block partitions in a multi-type tree structure in accordance with some examples of the present disclosure. [0025] FIG.3B is a diagram illustrating block partitions in a multi-type tree structure in accordance with some examples of the present disclosure. [0026] FIG.3C is a diagram illustrating block partitions in a multi-type tree structure in accordance with some examples of the present disclosure. [0027] FIG. 3D is a diagram illustrating block partitions in a multi-type tree structure in accordance with some examples of the present disclosure. [0028] FIG.3E is a diagram illustrating block partitions in a multi-type tree structure in accordance with some examples of the present disclosure. [0029] FIGS. 4A-4B shows an example of 4-paramter affine model in accordance with some examples of the present disclosure. [0030] FIG.5 shows an example of 6-paramter affine model in accordance with some examples of the present disclosure. [0031] FIG. 6 shows adjacent neighboring blocks for inherited affine merge candidates in accordance with some examples of the present disclosure. [0032] FIG. 7 shows adjacent neighboring blocks for constructed affine merge candidates in accordance with some examples of the present disclosure. Attorney Ref.: 186015.20173 [0033] FIG.8 shows a current CTU processing order and its available reference samples in current and left CTU in accordance with some examples of the present disclosure. [0034] FIG.9 shows padding candidates for the replacement of the zero-vector in the IBC list in accordance with some examples of the present disclosure. [0035] FIG.10 shows reference area for IBC when CTU (m,n) is coded in accordance with some examples of the present disclosure. [0036] FIG. 11 shows IBC reference area for camera-captured content in accordance with some examples of the present disclosure. [0037] FIGS. 12A-12B show the division methods for angular modes in accordance with some examples of the present disclosure. [0038] FIGS. 13A shows spatial neighboring blocks used by ATVMP in accordance with some examples of the present disclosure. [0039] FIGS.13B shows an example of deriving sub-CU motion field by applying a motion shift from spatial neighbor and scaling the motion information from the corresponding collocated sub- CUs in accordance with some examples of the present disclosure. [0040] FIG.14 is a flow chart of decoding a bin in accordance with some examples of the present disclosure. [0041] FIG.15 is a diagram illustrating a computing environment coupled with a user interface in accordance with some examples of the present disclosure. [0042] FIG.16 is a flow chart illustrating a method for video decoding in accordance with some examples of the present disclosure. [0043] FIG. 17 is a flow chart illustrating a method for video encoding corresponding to the method for video decoding as shown in FIG.16 in accordance with some examples of the present disclosure. [0044] FIG.18 is a flow chart illustrating a method for video decoding in accordance with some examples of the present disclosure. [0045] FIG. 19 is a flow chart illustrating a method for video encoding corresponding to the method for video decoding as shown in FIG.18 in accordance with some examples of the present disclosure. [0046] FIG.20 is a flow chart illustrating a method for video decoding in accordance with some examples of the present disclosure. Attorney Ref.: 186015.20173 [0047] FIG. 21 is a flow chart illustrating a method for video encoding corresponding to the method for video decoding as shown in FIG.20 in accordance with some examples of the present disclosure. DETAILED DESCRIPTION [0048] Reference will now be made in detail to specific implementations, examples of which are illustrated in the accompanying drawings. In the following detailed description, numerous non- limiting specific details are set forth in order to assist in understanding the subject matter presented herein. But various alternatives may be used without departing from the scope of claims and the subject matter may be practiced without these specific details. For example, the subject matter presented herein can be implemented on many types of electronic devices with digital video capabilities. [0049] Terms used in the disclosure are only adopted for the purpose of describing specific embodiments and not intended to limit the disclosure. “A/an,” “said,” and “the” in a singular form in the disclosure and the appended claims are also intended to include a plural form, unless other meanings are clearly denoted throughout the disclosure. It is also to be understood that term “and/or” used in the disclosure refers to and includes one or any or all possible combinations of multiple associated items that are listed. [0050] Reference throughout this specification to “one embodiment,” “an embodiment,” “an example,” “some embodiments,” “some examples,” or similar language means that a particular feature, structure, or characteristic described is included in at least one embodiment or example. Features, structures, elements, or characteristics described in connection with one or some embodiments are also applicable to other embodiments, unless expressly specified otherwise. [0051] Throughout the disclosure, the terms “first,” “second,” “third,” etc. are all used as nomenclature only for references to relevant elements, e.g., devices, components, compositions, steps, etc., without implying any spatial or chronological orders, unless expressly specified otherwise. For example, a “first device” and a “second device” may refer to two separately formed devices, or two parts, components, or operational states of a same device, and may be named arbitrarily. [0052] The terms “module,” “sub-module,” “circuit,” “sub-circuit,” “circuitry,” “sub-circuitry,” “unit,” or “sub-unit” may include memory (shared, dedicated, or group) that stores code or Attorney Ref.: 186015.20173 instructions that can be executed by one or more processors. A module may include one or more circuits with or without stored code or instructions. The module or circuit may include one or more components that are directly or indirectly connected. These components may or may not be physically attached to, or located adjacent to, one another. [0053] As used herein, the term “if” or “when” may be understood to mean “upon” or “in response to” depending on the context. These terms, if appear in a claim, may not indicate that the relevant limitations or features are conditional or optional. For example, a method may comprise steps of: i) when or if condition X is present, function or action X’ is performed, and ii) when or if condition Y is present, function or action Y’ is performed. The method may be implemented with both the capability of performing function or action X’, and the capability of performing function or action Y’. Thus, the functions X’ and Y’ may both be performed, at different times, on multiple executions of the method. [0054] A unit or module may be implemented purely by software, purely by hardware, or by a combination of hardware and software. In a pure software implementation, for example, the unit or module may include functionally related code blocks or software components, that are directly or indirectly linked together, so as to perform a particular function. [0055] FIG.1A is a block diagram illustrating an exemplary system 10 for encoding and decoding video blocks in parallel in accordance with some implementations of the present disclosure. As shown in FIG. 1A, the system 10 includes a source device 12 that generates and encodes video data to be decoded at a later time by a destination device 14. The source device 12 and the destination device 14 may include any of a wide variety of electronic devices, including cloud servers, server computers, desktop or laptop computers, tablet computers, smart phones, set-top boxes, digital televisions, cameras, display devices, digital media players, video gaming consoles, video streaming device, or the like. In some implementations, the source device 12 and the destination device 14 are equipped with wireless communication capabilities. [0056] In some implementations, the destination device 14 may receive the encoded video data to be decoded via a link 16. The link 16 may include any type of communication medium or device capable of moving the encoded video data from the source device 12 to the destination device 14. In one example, the link 16 may include a communication medium to enable the source device 12 to transmit the encoded video data directly to the destination device 14 in real time. The encoded video data may be modulated according to a communication standard, such as a wireless Attorney Ref.: 186015.20173 communication protocol, and transmitted to the destination device 14. The communication medium may include 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 the source device 12 to the destination device 14. [0057] In some other implementations, the encoded video data may be transmitted from an output interface 22 to a storage device 32. Subsequently, the encoded video data in the storage device 32 may be accessed by the destination device 14 via an input interface 28. The storage device 32 may include any of a variety of distributed or locally accessed data storage media such as a hard drive, Blu-ray discs, Digital Versatile Disks (DVDs), Compact Disc Read-Only Memories (CD-ROMs), flash memory, volatile or non-volatile memory, or any other suitable digital storage media for storing the encoded video data. In a further example, the storage device 32 may correspond to a file server or another intermediate storage device that may hold the encoded video data generated by the source device 12. The destination device 14 may access the stored video data from the storage device 32 via streaming or downloading. The file server may be any type of computer capable of storing the encoded video data and transmitting the encoded video data to the destination device 14. Exemplary file servers include a web server (e.g., for a website), a File Transfer Protocol (FTP) server, Network Attached Storage (NAS) devices, or a local disk drive. The destination device 14 may access the encoded video data through any standard data connection, including a wireless channel (e.g., a Wireless Fidelity (Wi-Fi) connection), a wired connection (e.g., Digital Subscriber Line (DSL), cable modem, etc.), or a combination of both that is suitable for accessing encoded video data stored on a file server. The transmission of the encoded video data from the storage device 32 may be a streaming transmission, a download transmission, or a combination of both. [0058] As shown in FIG.1A, the source device 12 includes a video source 18, a video encoder 20 and the output interface 22. The video source 18 may include a source such as a video capturing device, e.g., a video camera, a video archive containing previously captured video, a video feeding interface to receive video from a video content provider, and/or a computer graphics system for generating computer graphics data as the source video, or a combination of such sources. As one Attorney Ref.: 186015.20173 example, if the video source 18 is a video camera of a security surveillance system, the source device 12 and the destination device 14 may form camera phones or video phones. However, the implementations described in the present application may be applicable to video coding in general, and may be applied to wireless and/or wired applications. [0059] The captured, pre-captured, or computer-generated video may be encoded by the video encoder 20. The encoded video data may be transmitted directly to the destination device 14 via the output interface 22 of the source device 12. The encoded video data may also (or alternatively) be stored onto the storage device 32 for later access by the destination device 14 or other devices, for decoding and/or playback. The output interface 22 may further include a modem and/or a transmitter. [0060] The destination device 14 includes the input interface 28, a video decoder 30, and a display device 34. The input interface 28 may include a receiver and/or a modem and receive the encoded video data over the link 16. The encoded video data communicated over the link 16, or provided on the storage device 32, may include a variety of syntax elements generated by the video encoder 20 for use by the video decoder 30 in decoding the video data. Such syntax elements may be included within the encoded video data transmitted on a communication medium, stored on a storage medium, or stored on a file server. [0061] In some implementations, the destination device 14 may include the display device 34, which can be an integrated display device and an external display device that is configured to communicate with the destination device 14. The display device 34 displays the decoded video data to a user, and may include any of a variety of display devices such as a Liquid Crystal Display (LCD), a plasma display, an Organic Light Emitting Diode (OLED) display, or another type of display device. [0062] The video encoder 20 and the video decoder 30 may operate according to proprietary or industry standards, such as VVC, HEVC, MPEG-4, Part 10, AVC, or extensions of such standards. It should be understood that the present application is not limited to a specific video encoding/decoding standard and may be applicable to other video encoding/decoding standards. It is generally contemplated that the video encoder 20 of the source device 12 may be configured to encode video data according to any of these current or future standards. Similarly, it is also generally contemplated that the video decoder 30 of the destination device 14 may be configured to decode video data according to any of these current or future standards. Attorney Ref.: 186015.20173 [0063] The video encoder 20 and the video decoder 30 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 implemented partially in software, an electronic 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 video encoding/decoding operations disclosed in the present disclosure. Each of the video encoder 20 and the video decoder 30 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. [0064] In some implementations, at least a part of components of the source device 12 (for example, the video source 18, the video encoder 20 or components included in the video encoder 20 as described below with reference to FIG. 1G, and the output interface 22) and/or at least a part of components of the destination device 14 (for example, the input interface 28, the video decoder 30 or components included in the video decoder 30 as described below with reference to FIG. 2B, and the display device 34) may operate in a cloud computing service network which may provide software, platforms, and/or infrastructure, such as Software as a Service (SaaS), Platform as a Service (PaaS), or Infrastructure as a Service (IaaS). In some implementations, one or more components in the source device 12 and/or the destination device 14 which are not included in the cloud computing service network may be provided in one or more client devices, and the one or more client devices may communicate with server computers in the cloud computing service network through a wireless communication network (for example, a cellular communication network, a short-range wireless communication network, or a global navigation satellite system (GNSS) communication network) or a wired communication network (e.g., a local area network (LAN) communication network or a power line communication (PLC) network). In an embodiment, at least a part of operations described herein may be implemented as cloud-based services provided by one or more server computers which are implemented by the at least a part of the components of the source device 12 and/or the at least a part of the components of the destination device 14 in the cloud computing service network; and one or more other operations described herein may be implemented by the one or more client devices. In some implementations, the cloud computing service network may be a private cloud, a public cloud, or a hybrid cloud. Attorney Ref.: 186015.20173 The terms such as “cloud,” “cloud computing,” “cloud-based” etc. herein may be used interchangeably as appropriate without departing from the scope of the present disclosure. It should be understood that the present disclosure is not limited to being implemented in the cloud computing service network described above. Instead, the present disclosure may also be implemented in any other type of computing environments currently known or developed in the future. [0065] FIGS. 3A-3E are schematic diagrams illustrating multi-type tree splitting modes in accordance with some implementations of the present disclosure. FIGS.3A-3E respectively show five splitting types including quaternary partitioning (FIG.3A), vertical binary partitioning (FIG. 3B), horizontal binary partitioning (FIG. 3C), vertical ternary partitioning (FIG. 3D), and horizontal ternary partitioning (FIG.3E). [0066] FIG.2A is a block diagram illustrating another exemplary video encoder 20 in accordance with some implementations described in the present application. The video encoder 20 may perform intra and inter predictive coding of video blocks within video frames. Intra predictive coding relies on spatial prediction to reduce or remove spatial redundancy in video data within a given video frame or picture. Inter predictive coding relies on temporal prediction to reduce or remove temporal redundancy in video data within adjacent video frames or pictures of a video sequence. It should be noted that the term “frame” may be used as synonyms for the term “image” or “picture” in the field of video coding. [0067] As shown in FIG.2A, the video encoder 20 includes a video data memory 40, a prediction processing unit 41, a Decoded Picture Buffer (DPB) 64, a summer 50, a transform processing unit 52, a quantization unit 54, and an entropy encoding unit 56. The prediction processing unit 41 further includes a motion estimation unit 42, a motion compensation unit 44, a partition unit 45, an intra prediction processing unit 46, and an intra Block Copy (BC) unit 48. In some implementations, the video encoder 20 also includes an inverse quantization unit 58, an inverse transform processing unit 60, and a summer 62 for video block reconstruction. An in-loop filter 63, such as a deblocking filter, may be positioned between the summer 62 and the DPB 64 to filter block boundaries to remove blockiness artifacts from reconstructed video. Another in-loop filter, such as Sample Adaptive Offset (SAO) filter, Cross Component Sample Adaptive Offset (CCSAO) filter and/or Adaptive in-Loop Filter (ALF), may also be used in addition to the deblocking filter to filter an output of the summer 62. It should be illustrated that for the CCSAO Attorney Ref.: 186015.20173 technique, the present application is not limited to the embodiments described herein, and instead, the application may be applied to a situation where an offset is selected for any of a luma component, a Cb chroma component and a Cr chroma component according to any other of the luma component, the Cb chroma component and the Cr chroma component to modify said any component based on the selected offset. Further, it should also be illustrated that a first component mentioned herein may be any of the luma component, the Cb chroma component and the Cr chroma component, a second component mentioned herein may be any other of the luma component, the Cb chroma component and the Cr chroma component, and a third component mentioned herein may be a remaining one of the luma component, the Cb chroma component and the Cr chroma component. In some examples, the in-loop filters may be omitted, and the decoded video block may be directly provided by the summer 62 to the DPB 64. The video encoder 20 may take the form of a fixed or programmable hardware unit or may be divided among one or more of the illustrated fixed or programmable hardware units. [0068] The video data memory 40 may store video data to be encoded by the components of the video encoder 20. The video data in the video data memory 40 may be obtained, for example, from the video source 18 as shown in FIG.1A. The DPB 64 is a buffer that stores reference video data (for example, reference frames or pictures) for use in encoding video data by the video encoder 20 (e.g., in intra or inter predictive coding modes). The video data memory 40 and the DPB 64 may be formed by any of a variety of memory devices. In various examples, the video data memory 40 may be on-chip with other components of the video encoder 20, or off-chip relative to those components. [0069] As shown in FIG. 2A, after receiving the video data, the partition unit 45 within the prediction processing unit 41 partitions the video data into video blocks. This partitioning may also include partitioning a video frame into slices, tiles (for example, sets of video blocks), or other larger Coding Units (CUs) according to predefined splitting structures such as a Quad-Tree (QT) structure associated with the video data. The video frame is or may be regarded as a two- dimensional array or matrix of samples with sample values. A sample in the array may also be referred to as a pixel or a pel. A number of samples in horizontal and vertical directions (or axes) of the array or picture define a size and/or a resolution of the video frame. The video frame may be divided into multiple video blocks by, for example, using QT partitioning. The video block again is or may be regarded as a two-dimensional array or matrix of samples with sample values, Attorney Ref.: 186015.20173 although of smaller dimension than the video frame. A number of samples in horizontal and vertical directions (or axes) of the video block define a size of the video block. The video block may further be partitioned into one or more block partitions or sub-blocks (which may form again blocks) by, for example, iteratively using QT partitioning, Binary-Tree (BT) partitioning or Triple- Tree (TT) partitioning or any combination thereof. It should be noted that the term “block” or “video block” as used herein may be a portion, in particular a rectangular (square or non- square) portion, of a frame or a picture. With reference, for example, to HEVC and VVC, the block or video block may be or correspond to a Coding Tree Unit (CTU), a CU, a Prediction Unit (PU) or a Transform Unit (TU) and/or may be or correspond to a corresponding block, e.g., a Coding Tree Block (CTB), a Coding Block (CB), a Prediction Block (PB) or a Transform Block (TB) and/or to a sub-block. [0070] The prediction processing unit 41 may select one of a plurality of possible predictive coding modes, such as one of a plurality of intra predictive coding modes or one of a plurality of inter predictive coding modes, for the current video block based on error results (e.g., coding rate and the level of distortion). The prediction processing unit 41 may provide the resulting intra or inter prediction coded block to the summer 50 to generate a residual block and to the summer 62 to reconstruct the encoded block for use as part of a reference frame subsequently. The prediction processing unit 41 also provides syntax elements, such as motion vectors, intra-mode indicators, partition information, and other such syntax information, to the entropy encoding unit 56. [0071] In order to select an appropriate intra predictive coding mode for the current video block, the intra prediction processing unit 46 within the prediction processing unit 41 may perform intra predictive coding of the current video block relative to one or more neighbor blocks in the same frame as the current block to be coded to provide spatial prediction. The motion estimation unit 42 and the motion compensation unit 44 within the prediction processing unit 41 perform inter predictive coding of the current video block relative to one or more predictive blocks in one or more reference frames to provide temporal prediction. The video encoder 20 may perform multiple coding passes, e.g., to select an appropriate coding mode for each block of video data. [0072] In some implementations, the motion estimation unit 42 determines the inter prediction mode for a current video frame by generating a motion vector, which indicates the displacement of a video block within the current video frame relative to a predictive block within a reference video frame, according to a predetermined pattern within a sequence of video frames. Motion Attorney Ref.: 186015.20173 estimation, performed by the motion estimation unit 42, is the process of generating motion vectors, which estimate motion for video blocks. A motion vector, for example, may indicate the displacement of a video block within a current video frame or picture relative to a predictive block within a reference frame relative to the current block being coded within the current frame. The predetermined pattern may designate video frames in the sequence as P frames or B frames. The intra BC unit 48 may determine vectors, e.g., block vectors, for intra BC coding in a manner similar to the determination of motion vectors by the motion estimation unit 42 for inter prediction, or may utilize the motion estimation unit 42 to determine the block vector. [0073] A predictive block for the video block may be or may correspond to a block or a reference block of a reference frame that is deemed as closely matching the video block to be coded in terms of pixel difference, which may be determined by Sum of Absolute Difference (SAD), Sum of Square Difference (SSD), or other difference metrics. In some implementations, the video encoder 20 may calculate values for sub-integer pixel positions of reference frames stored in the DPB 64. For example, the video encoder 20 may interpolate values of one-quarter pixel positions, one- eighth pixel positions, or other fractional pixel positions of the reference frame. Therefore, the motion estimation unit 42 may perform a motion search relative to the full pixel positions and fractional pixel positions and output a motion vector with fractional pixel precision. [0074] The motion estimation unit 42 calculates a motion vector for a video block in an inter prediction coded frame by comparing the position of the video block to the position of a predictive block of a reference frame selected from a first reference frame list (List 0) or a second reference frame list (List 1), each of which identifies one or more reference frames stored in the DPB 64. The motion estimation unit 42 sends the calculated motion vector to the motion compensation unit 44 and then to the entropy encoding unit 56. [0075] Motion compensation, performed by the motion compensation unit 44, may involve fetching or generating the predictive block based on the motion vector determined by the motion estimation unit 42. Upon receiving the motion vector for the current video block, the motion compensation unit 44 may locate a predictive block to which the motion vector points in one of the reference frame lists, retrieve the predictive block from the DPB 64, and forward the predictive block to the summer 50. The summer 50 then forms a residual video block of pixel difference values by subtracting pixel values of the predictive block provided by the motion compensation unit 44 from the pixel values of the current video block being coded. The pixel difference values Attorney Ref.: 186015.20173 forming the residual video block may include luma or chroma component differences or both. The motion compensation unit 44 may also generate syntax elements associated with the video blocks of a video frame for use by the video decoder 30 in decoding the video blocks of the video frame. The syntax elements may include, for example, syntax elements defining the motion vector used to identify the predictive block, any flags indicating the prediction mode, or any other syntax information described herein. Note that the motion estimation unit 42 and the motion compensation unit 44 may be highly integrated, but are illustrated separately for conceptual purposes. [0076] In some implementations, the intra BC unit 48 may generate vectors and fetch predictive blocks in a manner similar to that described above in connection with the motion estimation unit 42 and the motion compensation unit 44, but with the predictive blocks being in the same frame as the current block being coded and with the vectors being referred to as block vectors as opposed to motion vectors. In particular, the intra BC unit 48 may determine an intra-prediction mode to use to encode a current block. In some examples, the intra BC unit 48 may encode a current block using various intra-prediction modes, e.g., during separate encoding passes, and test their performance through rate-distortion analysis. Next, the intra BC unit 48 may select, among the various tested intra-prediction modes, an appropriate intra-prediction mode to use and generate an intra-mode indicator accordingly. For example, the intra BC unit 48 may calculate rate-distortion values using a rate-distortion analysis for the various tested intra-prediction modes, and select the intra-prediction mode having the best rate-distortion characteristics among the tested modes as the appropriate intra-prediction mode to use. Rate-distortion analysis generally determines an amount of distortion (or error) between an encoded block and an original, unencoded block that was encoded to produce the encoded block, as well as a bitrate (i.e., a number of bits) used to produce the encoded block. Intra BC unit 48 may calculate ratios from the distortions and rates for the various encoded blocks to determine which intra-prediction mode exhibits the best rate-distortion value for the block. [0077] In other examples, the intra BC unit 48 may use the motion estimation unit 42 and the motion compensation unit 44, in whole or in part, to perform such functions for Intra BC prediction according to the implementations described herein. In either case, for Intra block copy, a predictive block may be a block that is deemed as closely matching the block to be coded, in terms of pixel Attorney Ref.: 186015.20173 difference, which may be determined by SAD, SSD, or other difference metrics, and identification of the predictive block may include calculation of values for sub-integer pixel positions. [0078] Whether the predictive block is from the same frame according to intra prediction, or a different frame according to inter prediction, the video encoder 20 may form a residual video block by subtracting pixel values of the predictive block from the pixel values of the current video block being coded, forming pixel difference values. The pixel difference values forming the residual video block may include both luma and chroma component differences. [0079] The intra prediction processing unit 46 may intra-predict a current video block, as an alternative to the inter-prediction performed by the motion estimation unit 42 and the motion compensation unit 44, or the intra block copy prediction performed by the intra BC unit 48, as described above. In particular, the intra prediction processing unit 46 may determine an intra prediction mode to use to encode a current block. To do so, the intra prediction processing unit 46 may encode a current block using various intra prediction modes, e.g., during separate encoding passes, and the intra prediction processing unit 46 (or a mode selection unit, in some examples) may select an appropriate intra prediction mode to use from the tested intra prediction modes. The intra prediction processing unit 46 may provide information indicative of the selected intra- prediction mode for the block to the entropy encoding unit 56. The entropy encoding unit 56 may encode the information indicating the selected intra-prediction mode in the bitstream. [0080] After the prediction processing unit 41 determines the predictive block for the current video block via either inter prediction or intra prediction, the summer 50 forms a residual video block by subtracting the predictive block from the current video block. The residual video data in the residual block may be included in one or more TUs and is provided to the transform processing unit 52. The transform processing unit 52 transforms the residual video data into residual transform coefficients using a transform, such as a Discrete Cosine Transform (DCT) or a conceptually similar transform. [0081] The transform processing unit 52 may send the resulting transform coefficients to the quantization unit 54. The quantization unit 54 quantizes the transform coefficients to further reduce the bit rate. The quantization process may also reduce the bit depth associated with some or all of the coefficients. The degree of quantization may be modified by adjusting a quantization parameter. In some examples, the quantization unit 54 may then perform a scan of a matrix including the quantized transform coefficients. Alternatively, the entropy encoding unit 56 may perform the scan. Attorney Ref.: 186015.20173 [0082] Following quantization, the entropy encoding unit 56 entropy encodes the quantized transform coefficients into a video bitstream using, e.g., Context Adaptive Variable Length Coding (CAVLC), Context Adaptive Binary Arithmetic Coding (CABAC), Syntax-based context- adaptive Binary Arithmetic Coding (SBAC), Probability Interval Partitioning Entropy (PIPE) coding or another entropy encoding methodology or technique. The encoded bitstream may then be transmitted to the video decoder 30 as shown in FIG.1A, or archived in the storage device 32 as shown in FIG. 1A for later transmission to or retrieval by the video decoder 30. The entropy encoding unit 56 may also entropy encode the motion vectors and the other syntax elements for the current video frame being coded. [0083] The inverse quantization unit 58 and the inverse transform processing unit 60 apply inverse quantization and inverse transformation, respectively, to reconstruct the residual video block in the pixel domain for generating a reference block for prediction of other video blocks. As noted above, the motion compensation unit 44 may generate a motion compensated predictive block from one or more reference blocks of the frames stored in the DPB 64. The motion compensation unit 44 may also apply one or more interpolation filters to the predictive block to calculate sub- integer pixel values for use in motion estimation. [0084] The summer 62 adds the reconstructed residual block to the motion compensated predictive block produced by the motion compensation unit 44 to produce a reference block for storage in the DPB 64. The reference block may then be used by the intra BC unit 48, the motion estimation unit 42 and the motion compensation unit 44 as a predictive block to inter predict another video block in a subsequent video frame. [0085] FIG.2B is a block diagram illustrating another exemplary video decoder 30 in accordance with some implementations of the present application. The video decoder 30 includes a video data memory 79, an entropy decoding unit 80, a prediction processing unit 81, an inverse quantization unit 86, an inverse transform processing unit 88, a summer 90, and a DPB 92. The prediction processing unit 81 further includes a motion compensation unit 82, an intra prediction unit 84, and an intra BC unit 85. The video decoder 30 may perform a decoding process generally reciprocal to the encoding process described above with respect to the video encoder 20 in connection with FIG. 2A. For example, the motion compensation unit 82 may generate prediction data based on motion vectors received from the entropy decoding unit 80, while the intra-prediction unit 84 may Attorney Ref.: 186015.20173 generate prediction data based on intra-prediction mode indicators received from the entropy decoding unit 80. [0086] In some examples, a unit of the video decoder 30 may be tasked to perform the implementations of the present application. Also, in some examples, the implementations of the present disclosure may be divided among one or more of the units of the video decoder 30. For example, the intra BC unit 85 may perform the implementations of the present application, alone, or in combination with other units of the video decoder 30, such as the motion compensation unit 82, the intra prediction unit 84, and the entropy decoding unit 80. In some examples, the video decoder 30 may not include the intra BC unit 85 and the functionality of intra BC unit 85 may be performed by other components of the prediction processing unit 81, such as the motion compensation unit 82. [0087] The video data memory 79 may store video data, such as an encoded video bitstream, to be decoded by the other components of the video decoder 30. The video data stored in the video data memory 79 may be obtained, for example, from the storage device 32, from a local video source, such as a camera, via wired or wireless network communication of video data, or by accessing physical data storage media (e.g., a flash drive or hard disk). The video data memory 79 may include a Coded Picture Buffer (CPB) that stores encoded video data from an encoded video bitstream. The DPB 92 of the video decoder 30 stores reference video data for use in decoding video data by the video decoder 30 (e.g., in intra or inter predictive coding modes). The video data memory 79 and the DPB 92 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including Synchronous DRAM (SDRAM), Magneto- resistive RAM (MRAM), Resistive RAM (RRAM), or other types of memory devices. For illustrative purpose, the video data memory 79 and the DPB 92 are depicted as two distinct components of the video decoder 30 in FIG. 2B. But it will be apparent to one skilled in the art that the video data memory 79 and the DPB 92 may be provided by the same memory device or separate memory devices. In some examples, the video data memory 79 may be on-chip with other components of the video decoder 30, or off-chip relative to those components. [0088] During the decoding process, the video decoder 30 receives an encoded video bitstream that represents video blocks of an encoded video frame and associated syntax elements. The video decoder 30 may receive the syntax elements at the video frame level and/or the video block level. The entropy decoding unit 80 of the video decoder 30 entropy decodes the bitstream to generate Attorney Ref.: 186015.20173 quantized coefficients, motion vectors or intra-prediction mode indicators, and other syntax elements. The entropy decoding unit 80 then forwards the motion vectors or intra-prediction mode indicators and other syntax elements to the prediction processing unit 81. [0089] When the video frame is coded as an intra predictive coded (I) frame or for intra coded predictive blocks in other types of frames, the intra prediction unit 84 of the prediction processing unit 81 may generate prediction data for a video block of the current video frame based on a signaled intra prediction mode and reference data from previously decoded blocks of the current frame. [0090] When the video frame is coded as an inter-predictive coded (i.e., B or P) frame, the motion compensation unit 82 of the prediction processing unit 81 produces one or more predictive blocks for a video block of the current video frame based on the motion vectors and other syntax elements received from the entropy decoding unit 80. Each of the predictive blocks may be produced from a reference frame within one of the reference frame lists. The video decoder 30 may construct the reference frame lists, List 0 and List 1, using default construction techniques based on reference frames stored in the DPB 92. [0091] In some examples, when the video block is coded according to the intra BC mode described herein, the intra BC unit 85 of the prediction processing unit 81 produces predictive blocks for the current video block based on block vectors and other syntax elements received from the entropy decoding unit 80. The predictive blocks may be within a reconstructed region of the same picture as the current video block defined by the video encoder 20. [0092] The motion compensation unit 82 and/or the intra BC unit 85 determines prediction information for a video block of the current video frame by parsing the motion vectors and other syntax elements, and then uses the prediction information to produce the predictive blocks for the current video block being decoded. For example, the motion compensation unit 82 uses some of the received syntax elements to determine a prediction mode (e.g., intra or inter prediction) used to code video blocks of the video frame, an inter prediction frame type (e.g., B or P), construction information for one or more of the reference frame lists for the frame, motion vectors for each inter predictive encoded video block of the frame, inter prediction status for each inter predictive coded video block of the frame, and other information to decode the video blocks in the current video frame. Attorney Ref.: 186015.20173 [0093] Similarly, the intra BC unit 85 may use some of the received syntax elements, e.g., a flag, to determine that the current video block was predicted using the intra BC mode, construction information of which video blocks of the frame are within the reconstructed region and should be stored in the DPB 92, block vectors for each intra BC predicted video block of the frame, intra BC prediction status for each intra BC predicted video block of the frame, and other information to decode the video blocks in the current video frame. [0094] The motion compensation unit 82 may also perform interpolation using the interpolation filters as used by the video encoder 20 during encoding of the video blocks to calculate interpolated values for sub-integer pixels of reference blocks. In this case, the motion compensation unit 82 may determine the interpolation filters used by the video encoder 20 from the received syntax elements and use the interpolation filters to produce predictive blocks. [0095] The inverse quantization unit 86 inverse quantizes the quantized transform coefficients provided in the bitstream and entropy decoded by the entropy decoding unit 80 using the same quantization parameter calculated by the video encoder 20 for each video block in the video frame to determine a degree of quantization. The inverse transform processing unit 88 applies an inverse transform, e.g., an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process, to the transform coefficients in order to reconstruct the residual blocks in the pixel domain. [0096] After the motion compensation unit 82 or the intra BC unit 85 generates the predictive block for the current video block based on the vectors and other syntax elements, the summer 90 reconstructs decoded video block for the current video block by summing the residual block from the inverse transform processing unit 88 and a corresponding predictive block generated by the motion compensation unit 82 and the intra BC unit 85. An in-loop filter 91 such as deblocking filter, SAO filter, CCSAO filter and/or ALF may be positioned between the summer 90 and the DPB 92 to further process the decoded video block. In some examples, the in-loop filter 91 may be omitted, and the decoded video block may be directly provided by the summer 90 to the DPB 92. The decoded video blocks in a given frame are then stored in the DPB 92, which stores reference frames used for subsequent motion compensation of next video blocks. The DPB 92, or a memory device separate from the DPB 92, may also store decoded video for later presentation on a display device, such as the display device 34 of FIG.1A. Attorney Ref.: 186015.20173 [0097] In a typical video coding process, a video sequence typically includes an ordered set of frames or pictures. Each frame may include three sample arrays, denoted SL, SCb, and SCr. SL is a two-dimensional array of luma samples. SCb is a two-dimensional array of Cb chroma samples. SCr is a two-dimensional array of Cr chroma samples. In other instances, a frame may be monochrome and therefore includes only one two-dimensional array of luma samples. [0098] As shown in FIG. 1C, the video encoder 20 (or more specifically a partition unit in a prediction processing unit of the video encoder 20) generates an encoded representation of a frame by first partitioning the frame into a set of CTUs. A video frame may include an integer number of CTUs ordered consecutively in a raster scan order from left to right and from top to bottom. Each CTU is a largest logical coding unit and the width and height of the CTU are signaled by the video encoder 20 in a sequence parameter set, such that all the CTUs in a video sequence have the same size being one of 128×128, 64×64, 32×32, and 16×16. But it should be noted that the present application is not necessarily limited to a particular size. As shown in FIG. 1D, each CTU may include one CTB of luma samples, two corresponding coding tree blocks of chroma samples, and syntax elements used to code the samples of the coding tree blocks. The syntax elements describe properties of different types of units of a coded block of pixels and how the video sequence can be reconstructed at the video decoder 30, including inter or intra prediction, intra prediction mode, motion vectors, and other parameters. In monochrome pictures or pictures having three separate color planes, a CTU may include a single coding tree block and syntax elements used to code the samples of the coding tree block. A coding tree block may be an NxN block of samples. [0099] To achieve a better performance, the video encoder 20 may recursively perform tree partitioning such as binary-tree partitioning, ternary-tree partitioning, quad-tree partitioning or a combination thereof on the coding tree blocks of the CTU and divide the CTU into smaller CUs. FIGS.1B-1E are block diagrams illustrating how a frame is recursively partitioned into multiple video blocks of different sizes and shapes in accordance with some implementations of the present disclosure. As depicted in FIG.1E, the 64x64 CTU 400 is first divided into four smaller CUs, each having a block size of 32x32. Among the four smaller CUs, CU 410 and CU 420 are each divided into four CUs of 16x16 by block size. The two 16x16 CUs 430 and 440 are each further divided into four CUs of 8x8 by block size. FIG.1B depicts a quad-tree data structure illustrating the end result of the partition process of the CTU 400 as depicted in FIG.1E, each leaf node of the quad- tree corresponding to one CU of a respective size ranging from 32x32 to 8x8. Like the CTU Attorney Ref.: 186015.20173 depicted in FIG.1D, each CU may include a CB of luma samples and two corresponding coding blocks of chroma samples of a frame of the same size, and syntax elements used to code the samples of the coding blocks. In monochrome pictures or pictures having three separate color planes, a CU may include a single coding block and syntax structures used to code the samples of the coding block. It should be noted that the quad-tree partitioning depicted in FIGS.1E and 1B is only for illustrative purposes and one CTU can be split into CUs to adapt to varying local characteristics based on quad/ternary/binary-tree partitions. In the multi-type tree structure, one CTU is partitioned by a quad-tree structure and each quad-tree leaf CU can be further partitioned by a binary and ternary tree structure. As shown in FIGS. 3A-3E, there are five possible partitioning types of a coding block having a width W and a height H, i.e., quaternary partitioning, horizontal binary partitioning, vertical binary partitioning, horizontal ternary partitioning, and vertical ternary partitioning. [00100] In some implementations, the video encoder 20 may further partition a coding block of a CU into one or more MxN PBs. A PB is a rectangular (square or non-square) block of samples on which the same prediction, inter or intra, is applied. A PU of a CU may include a PB of luma samples, two corresponding PBs of chroma samples, and syntax elements used to predict the PBs. In monochrome pictures or pictures having three separate color planes, a PU may include a single PB and syntax structures used to predict the PB. The video encoder 20 may generate predictive luma, Cb, and Cr blocks for luma, Cb, and Cr PBs of each PU of the CU. [00101] The video encoder 20 may use intra prediction or inter prediction to generate the predictive blocks for a PU. If the video encoder 20 uses intra prediction to generate the predictive blocks of a PU, the video encoder 20 may generate the predictive blocks of the PU based on decoded samples of the frame associated with the PU. If the video encoder 20 uses inter prediction to generate the predictive blocks of a PU, the video encoder 20 may generate the predictive blocks of the PU based on decoded samples of one or more frames other than the frame associated with the PU. [00102] After the video encoder 20 generates predictive luma, Cb, and Cr blocks for one or more PUs of a CU, the video encoder 20 may generate a luma residual block for the CU by subtracting the CU’s predictive luma blocks from its original luma coding block such that each sample in the CU’s luma residual block indicates a difference between a luma sample in one of the CU's predictive luma blocks and a corresponding sample in the CU's original luma coding block. Attorney Ref.: 186015.20173 Similarly, the video encoder 20 may generate a Cb residual block and a Cr residual block for the CU, respectively, such that each sample in the CU's Cb residual block indicates a difference between a Cb sample in one of the CU's predictive Cb blocks and a corresponding sample in the CU's original Cb coding block and each sample in the CU's Cr residual block may indicate a difference between a Cr sample in one of the CU's predictive Cr blocks and a corresponding sample in the CU's original Cr coding block. [00103] Furthermore, as illustrated in FIG. 1E, the video encoder 20 may use quad-tree partitioning to decompose the luma, Cb, and Cr residual blocks of a CU into one or more luma, Cb, and Cr transform blocks respectively. A transform block is a rectangular (square or non-square) block of samples on which the same transform is applied. A TU of a CU may include a transform block of luma samples, two corresponding transform blocks of chroma samples, and syntax elements used to transform the transform block samples. Thus, each TU of a CU may be associated with a luma transform block, a Cb transform block, and a Cr transform block. In some examples, the luma transform block associated with the TU may be a sub-block of the CU's luma residual block. The Cb transform block may be a sub-block of the CU's Cb residual block. The Cr transform block may be a sub-block of the CU's Cr residual block. In monochrome pictures or pictures having three separate color planes, a TU may include a single transform block and syntax structures used to transform the samples of the transform block. [00104] The video encoder 20 may apply one or more transforms to a luma transform block of a TU to generate a luma coefficient block for the TU. A coefficient block may be a two-dimensional array of transform coefficients. A transform coefficient may be a scalar quantity. The video encoder 20 may apply one or more transforms to a Cb transform block of a TU to generate a Cb coefficient block for the TU. The video encoder 20 may apply one or more transforms to a Cr transform block of a TU to generate a Cr coefficient block for the TU. [00105] After generating a coefficient block (e.g., a luma coefficient block, a Cb coefficient block or a Cr coefficient block), the video encoder 20 may quantize the coefficient block. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the transform coefficients, providing further compression. After the video encoder 20 quantizes a coefficient block, the video encoder 20 may entropy encode syntax elements indicating the quantized transform coefficients. For example, the video encoder 20 may perform CABAC on the syntax elements indicating the quantized transform coefficients. Attorney Ref.: 186015.20173 Finally, the video encoder 20 may output a bitstream that includes a sequence of bits that forms a representation of coded frames and associated data, which is either saved in the storage device 32 or transmitted to the destination device 14. [00106] After receiving a bitstream generated by the video encoder 20, the video decoder 30 may parse the bitstream to obtain syntax elements from the bitstream. The video decoder 30 may reconstruct the frames of the video data based at least in part on the syntax elements obtained from the bitstream. The process of reconstructing the video data is generally reciprocal to the encoding process performed by the video encoder 20. For example, the video decoder 30 may perform inverse transforms on the coefficient blocks associated with TUs of a current CU to reconstruct residual blocks associated with the TUs of the current CU. The video decoder 30 also reconstructs the coding blocks of the current CU by adding the samples of the predictive blocks for PUs of the current CU to corresponding samples of the transform blocks of the TUs of the current CU. After reconstructing the coding blocks for each CU of a frame, video decoder 30 may reconstruct the frame. [00107] As noted above, video coding achieves video compression using primarily two modes, i.e., intra-frame prediction (or intra-prediction) and inter-frame prediction (or inter-prediction). It is noted that IBC could be regarded as either intra-frame prediction or a third mode. Between the two modes, inter-frame prediction contributes more to the coding efficiency than intra-frame prediction because of the use of motion vectors for predicting a current video block from a reference video block. [00108] But with the ever improving video data capturing technology and more refined video block size for preserving details in the video data, the amount of data required for representing motion vectors for a current frame also increases substantially. One way of overcoming this challenge is to benefit from the fact that not only a group of neighboring CUs in both the spatial and temporal domains have similar video data for predicting purpose but the motion vectors between these neighboring CUs are also similar. Therefore, it is possible to use the motion information of spatially neighboring CUs and/or temporally co-located CUs as an approximation of the motion information (e.g., motion vector) of a current CU by exploring their spatial and temporal correlation, which is also referred to as “Motion Vector Predictor (MVP)” of the current CU. Attorney Ref.: 186015.20173 [00109] Instead of encoding, into the video bitstream, an actual motion vector of the current CU determined by the motion estimation unit as described above in connection with FIG. 2A, the motion vector predictor of the current CU is subtracted from the actual motion vector of the current CU to produce a Motion Vector Difference (MVD) for the current CU. By doing so, there is no need to encode the motion vector determined by the motion estimation unit for each CU of a frame into the video bitstream and the amount of data used for representing motion information in the video bitstream can be significantly decreased. [00110] Like the process of choosing a predictive block in a reference frame during inter-frame prediction of a code block, a set of rules need to be adopted by both the video encoder 20 and the video decoder 30 for constructing a motion vector candidate list (also known as a “merge list”) for a current CU using those potential candidate motion vectors associated with spatially neighboring CUs and/or temporally co-located CUs of the current CU and then selecting one member from the motion vector candidate list as a motion vector predictor for the current CU. By doing so, there is no need to transmit the motion vector candidate list itself from the video encoder 20 to the video decoder 30 and an index of the selected motion vector predictor within the motion vector candidate list is sufficient for the video encoder 20 and the video decoder 30 to use the same motion vector predictor within the motion vector candidate list for encoding and decoding the current CU. [00111] The present disclosure is to further enhance the Intra Block Copy method by either improving the coding efficiency and/or reducing its coding complexities. Affine model [00112] In HEVC, only translation motion model is applied for motion compensated prediction. While in the real world, there are many kinds of motion, e.g., zoom in/out, rotation, perspective motions and other irregular motions. In the VVC, affine motion compensated prediction is applied by signaling one flag for each inter coding block to indicate whether the translation motion model or the affine motion model is applied for inter prediction. In the current VVC, two affine modes, including 4-paramter affine mode and 6-parameter affine mode, are supported for one affine coding block. [00113] The 4-parameter affine model has the following parameters: two parameters for translation movement in horizontal and vertical directions respectively, one parameter for zoom motion and one parameter for rotational motion for both directions. In this model, horizontal zoom parameter is equal to vertical zoom parameter, and horizontal rotation parameter is equal to vertical Attorney Ref.: 186015.20173 rotation parameter. To achieve a better accommodation of the motion vectors and affine parameter, those affine parameters are to be derived from two MVs (which are also called control point motion vector (CPMV)) located at the top-left corner and top-right corner of a current block. As shown in FIGS.4A-4B, the affine motion field of the block is described by two CPMVs (V0, V1). Based on the control point motion, the motion field (vx, vy) of one affine coded block is described as v ( ^ v 1x ^ v 0x) (v1y ^ v 0 y ) x x ^ y ^ v 0 x (1)
Figure imgf000028_0001
[00114] The 6-parameter parameters: two parameters movement in horizontal and vertical directions respectively, two parameters for zoom motion and rotation motion respectively in horizontal direction, another two parameters for zoom motion and rotation motion respectively in vertical direction. The 6-parameter affine motion model is coded with three CPMVs. As shown in FIG. 5, the three control points of one 6-paramter affine block are located at the top-left, top-right and bottom left corner of the block. The motion at top-left control point is related to translation motion, and the motion at top-right control point is related to rotation and zoom motion in horizontal direction, and the motion at bottom-left control point is related to rotation and zoom motion in vertical direction. Compared to the 4-parameter affine motion model, the rotation and zoom motion in horizontal direction of the 6-paramter may not be same as those motion in vertical direction. Assuming (V0, V1, V2) are the MVs of the top-left, top-right and bottom-left corners of the current block in FIG. 5, the motion vector of each sub-block (vx, vy) is derived using the three MVs at control points as: ^x = ^^^ + (^^^ − ^^^) ∗ ^ ^ + (^^^ − ^^^) ∗ ^ (2)
Figure imgf000028_0002
Affine merge mode [00115] In affine merge mode, the CPMVs for the current block are not explicitly signaled but derived from neighboring blocks. Specifically, in this mode, motion information of spatial Attorney Ref.: 186015.20173 neighbor blocks is used to generate CPMVs for the current block. The affine merge mode candidate list has a limited size. For example, in the current VVC design, there may be up to five candidates. The encoder may evaluate and choose the best candidate index based on rate-distortion optimization algorithms. The chosen candidate index is then signaled to the decoder side. The affine merge candidates can be decided in three ways: ^ Inherited from neighboring affine coded blocks ^ Constructed from translational MVs from neighboring blocks ^ Zero MVs [00116] For the inherited method, there may be up to two candidates. The candidates are obtained from the neighboring blocks located at the bottom-left of the current block (e.g., scanning order is from A0 to A1 as shown in FIG.6) and from the neighboring blocks located at the top-right of the current block (e.g., scanning order is from B0 to B2 as shown in FIG.6), if available. [00117] For the constructed method, the candidates are the combinations of neighbor’s translational MVs, which are generated by two steps. ^ Step 1: obtain four translational MVs from available neighbors. o MV1: MV from the one of the three neighboring blocks close to the top-left corner of the current block. As shown in the FIG.7, the scanning order is B2, B3 and A2. o MV2: MV from the one of the one from the two neighboring blocks close to the top-right corner of the current block. As shown in the FIG.7, the scanning order is B1and B0. o MV3: MV from the one of the one from the two neighboring blocks close to the bottom-left corner of the current block. As shown in the FIG.7, the scanning order is A1and A0. o MV4: MV from the temporally collocated block of the neighboring block close to the bottom-right corner of current block. As shown in the Fig, the neighboring block is T. ^ Step 2: derive combinations based on the four translational MVs from step 1. o Combination 1: MV1, MV2, MV3 o Combination 2: MV1, MV2, MV4 o Combination 3: MV1, MV3, MV4 o Combination 4: MV2, MV3, MV4 Attorney Ref.: 186015.20173 o Combination 5: MV1, MV2 o Combination 6: MV1, MV3 [00118] When the merge candidate list is not full after filling with inherited and constructed candidates, zero MVs are inserted at the end of the list. Affine AMVP mode [00119] Affine AMVP (advanced motion vector prediction) mode may be applied for CUs with both width and height larger than or equal to 16. An affine flag in CU level is signalled in the bitstream to indicate whether affine AMVP mode is used and then another flag is signalled to indicate whether 4-parameter affine or 6-parameter affine. In this mode, the difference of the CPMVs of current CU and their predictors CPMVPs is signalled in the bitstream. The affine AMVP candidate list size is 2 and the affine AMVP candidate list is generated by using the following four types of CPMV candidate in order: – Inherited affine AMVP candidates that extrapolated from the CPMVs of the neighbour CUs – Constructed affine AMVP candidates CPMVPs that are derived using the translational MVs of the neighbour CUs – Translational MVs from neighboring CUs – Temporal MVs from collocated CUs – Zero MVs [00120] The checking order of inherited affine AMVP candidates is the same to the checking order of inherited affine merge candidates. The only difference is that, for AMVP candidate, only the affine CU that has the same reference picture as in current block is considered. No pruning process is applied when inserting an inherited affine motion predictor into the candidate list. [00121] Constructed AMVP candidate is derived from the same spatial neighbors as affine merge mode. The same checking order is used as done in affine merge candidate construction. In addition, reference picture index of the neighboring block is also checked. The first block in the checking order that is inter coded and has the same reference picture as in current CUs is used. When the current CU is coded with 4-parameter affine mode, and ^^^ and ^^^ are both available, ^^^ and ^^^ are added as one candidate in the affine AMVP candidate list. When the current CU is coded with 6-parameter affine mode, and all three CPMVs are available, they are added as one Attorney Ref.: 186015.20173 candidate in the affine AMVP candidate list. Otherwise, constructed AMVP candidate is set as unavailable. [00122] If the number of affine AMVP list candidates is still less than 2 after valid inherited affine AMVP candidates and constructed AMVP candidate are inserted, ^^^ , ^^^ and ^^^ will be added, in order, as the translational MVs to predict all control point MVs of the current CU, when available. Finally, zero MVs are used to fill the affine AMVP list if it is still not full. Intra block copy in Versatile Video Coding (VVC) [00123] Intra block copy (IBC) is a tool adopted in HEVC extensions on SCC. It is well known that it significantly improves the coding efficiency of screen content materials. Since IBC mode is implemented as a block level coding mode, block matching (BM) is performed at the encoder to find the optimal block vector (or motion vector) for each CU. Here, a block vector is used to indicate the displacement from the current block to a reference block, which is already reconstructed inside the current picture. The luma block vector of an IBC-coded CU is in integer precision. The chroma block vector rounds to integer precision as well. When combined with AMVR, the IBC mode can switch between 1-pel and 4-pel motion vector precisions. An IBC- coded CU is treated as the third prediction mode other than intra or inter prediction modes. The IBC mode is applicable to the CUs with both width and height smaller than or equal to 64 luma samples. [00124] At the encoder side, hash-based motion estimation is performed for IBC. The encoder performs RD check for blocks with either width or height no larger than 16 luma samples. For non-merge mode, the block vector search is performed using hash-based search first. If hash search does not return valid candidate, block matching based local search will be performed. [00125] In the hash-based search, hash key matching (32-bit CRC) between the current block and a reference block is extended to all allowed block sizes. The hash key calculation for every position in the current picture is based on 4x4 subblocks. For the current block of a larger size, a hash key is determined to match that of the reference block when all the hash keys of all 4×4 subblocks match the hash keys in the corresponding reference locations. If hash keys of multiple reference blocks are found to match that of the current block, the block vector costs of each matched reference are calculated and the one with the minimum cost is selected. [00126] In block matching search, the search range is set to cover both the previous and current CTUs. Attorney Ref.: 186015.20173 [00127] At CU level, IBC mode is signalled with a flag and it can be signaled as IBC AMVP mode or IBC skip/merge mode as follows: – IBC skip/merge mode: a merge candidate index is used to indicate which of the block vectors in the list from neighboring candidate IBC coded blocks is used to predict the current block. The merge list consists of spatial, HMVP, and pairwise candidates. – IBC AMVP mode: block vector difference is coded in the same way as a motion vector difference. The block vector prediction method uses two candidates as predictors, one from left neighbor and one from above neighbor (if IBC coded). When either neighbor is not available, a default block vector will be used as a predictor. A flag is signaled to indicate the block vector predictor index. IBC reference region [00128] To reduce memory consumption and decoder complexity, the IBC in VVC allows only the reconstructed portion of the predefined area including the region of current CTU and some region of the left CTU. FIG. 8 illustrates the reference region of IBC Mode, where each block represents 64x64 luma sample unit. [00129] Depending on the location of the current coding CU location within the current CTU, the following applies: – If current block falls into the top-left 64x64 block of the current CTU, then in addition to the already reconstructed samples in the current CTU, it can also refer to the reference samples in the bottom-right 64x64 blocks of the left CTU, using CPR mode. The current block can also refer to the reference samples in the bottom-left 64x64 block of the left CTU and the reference samples in the top-right 64x64 block of the left CTU, using CPR mode. – If current block falls into the top-right 64x64 block of the current CTU, then in addition to the already reconstructed samples in the current CTU, if luma location (0, 64) relative to the current CTU has not yet been reconstructed, the current block can also refer to the reference samples in the bottom-left 64x64 block and bottom-right 64x64 block of the left CTU, using CPR mode; otherwise, the current block can also refer to reference samples in bottom-right 64x64 block of the left CTU. – If current block falls into the bottom-left 64x64 block of the current CTU, then in addition to the already reconstructed samples in the current CTU, if luma location (64, 0) relative to the current CTU has not yet been reconstructed, the current block can also refer to the Attorney Ref.: 186015.20173 reference samples in the top-right 64x64 block and bottom-right 64x64 block of the left CTU, using CPR mode. Otherwise, the current block can also refer to the reference samples in the bottom-right 64x64 block of the left CTU, using CPR mode. – If current block falls into the bottom-right 64x64 block of the current CTU, it can only refer to the already reconstructed samples in the current CTU, using CPR mode. [00130] This restriction allows the IBC mode to be implemented using local on-chip memory for hardware implementations. IBC interaction with other coding tools [00131] The interaction between IBC mode and other inter coding tools in VVC, such as pairwise merge candidate, history based motion vector predictor (HMVP), combined intra/inter prediction mode (CIIP), merge mode with motion vector difference (MMVD), and geometric partitioning mode (GPM) are as follows: – IBC can be used with pairwise merge candidate and HMVP. A new pairwise IBC merge candidate can be generated by averaging two IBC merge candidates. For HMVP, IBC motion is inserted into history buffer for future referencing. – IBC cannot be used in combination with the following inter tools: affine motion, CIIP, MMVD, and GPM. – IBC is not allowed for the chroma coding blocks when DUAL_TREE partition is used. [00132] Unlike in the HEVC screen content coding extension, the current picture is no longer included as one of the reference pictures in the reference picture list 0 for IBC prediction. The derivation process of motion vectors for IBC mode excludes all neighboring blocks in inter mode and vice versa. The following IBC design aspects are applied: – IBC shares the same process as in regular MV merge including with pairwise merge candidate and history-based motion predictor, but disallows TMVP and zero vector because they are invalid for IBC mode. – Separate HMVP buffer (5 candidates each) is used for conventional MV and IBC. – Block vector constraints are implemented in the form of bitstream conformance constraint, the encoder needs to ensure that no invalid vectors are present in the bitsream, and merge shall not be used if the merge candidate is invalid (out of range or 0). Such bitstream conformance constraint is expressed in terms of a virtual buffer as described below. – For deblocking, IBC is handled as inter mode. Attorney Ref.: 186015.20173 – If the current block is coded using IBC prediction mode, AMVR does not use quarter-pel; instead, AMVR is signaled to only indicate whether MV is inter-pel or 4 integer-pel. – The number of IBC merge candidates can be signalled in the slice header separately from the numbers of regular, subblock, and geometric merge candidates. [00133] A virtual buffer concept is used to describe the allowable reference region for IBC prediction mode and valid block vectors. Denote CTU size as ctbSize, the virtual buffer, ibcBuf, has width being wIbcBuf = 128x128/ctbSize and height hIbcBuf = ctbSize. For example, for a CTU size of 128x128, the size of ibcBuf is also 128x128; for a CTU size of 64x64, the size of ibcBuf is 256x64; and a CTU size of 32x32, the size of ibcBuf is 512x32. [00134] The size of a VPDU is min(ctbSize, 64) in each dimension, Wv = min(ctbSize, 64). [00135] The virtual IBC buffer, ibcBuf is maintained as follows. – At the beginning of decoding each CTU row, refresh the whole ibcBuf with an invalid value −1. – At the beginning of decoding a VPDU (xVPDU, yVPDU) relative to the top-left corner of the picture, set the ibcBuf[ x ][ y ] = −1, with x = xVPDU%wIbcBuf, …, xVPDU% wIbcBuf + Wv − 1; y = yVPDU%ctbSize, …, yVPDU%ctbSize + Wv − 1. – After decoding a CU contains (x, y) relative to the top-left corner of the picture, set ibcBuf[ x % wIbcBuf ][ y % ctbSize ] = recSample[ x ][ y ] [00136] For a block covering the coordinates (x, y), if the following is true for a block vector bv = (bv[0], bv[1]), then it is valid; otherwise, it is not valid: ibcBuf[ (x + bv[0])% wIbcBuf] [ (y + bv[1]) % ctbSize ] shall not be equal to −1. Intra block copy in Enhanced Compression Model (ECM) [00137] In ECM, IBC is improved from aspects below. IBC merge/AMVP list construction [00138] The IBC merge/AMVP list construction is modified as follows: ^ Only if an IBC merge/AMVP candidate is valid, it can be inserted into the IBC merge/AMVP candidate list. ^ Above-right, bottom-left, and above-left spatial candidates and one pairwise average candidate can be added into the IBC merge/AMVP candidate list. ^ Template based adaptive reordering (ARMC-TM) is applied to IBC merge list. Attorney Ref.: 186015.20173 [00139] The HMVP table size for IBC is increased to 25. After up to 20 IBC merge candidates are derived with full pruning, they are reordered together. After reordering, the first 6 candidates with the lowest template matching costs are selected as the final candidates in the IBC merge list. [00140] The zero vectors’ candidates to pad the IBC Merge/AMVP list are replaced with a set of BVP candidates located in the IBC reference region. A zero vector is invalid as a block vector in IBC merge mode, and consequently, it is discarded as BVP in the IBC candidate list. [00141] Three candidates are located on the nearest corners of the reference region, and three additional candidates are determined in the middle of the three sub-regions (A, B, and C), whose coordinates are determined by the width, and height of the current block and the ΔX and ΔY parameters, as is depicted in FIG.9. IBC with Template Matching [00142] Template Matching is used in IBC for both IBC merge mode and IBC AMVP mode. [00143] The IBC-TM merge list is modified compared to the one used by regular IBC merge mode such that the candidates are selected according to a pruning method with a motion distance between the candidates as in the regular TM merge mode. The ending zero motion fulfillment is replaced by motion vectors to the left (-W, 0), top (0, -H) and top-left (-W, -H), where W is the width and H the height of the current CU. [00144] In the IBC-TM merge mode, the selected candidates are refined with the Template Matching method prior to the RDO or decoding process. The IBC-TM merge mode has been put in competition with the regular IBC merge mode and a TM-merge flag is signaled. [00145] In the IBC-TM AMVP mode, up to 3 candidates are selected from the IBC-TM merge list. Each of those 3 selected candidates are refined using the Template Matching method and sorted according to their resulting Template Matching cost. Only the 2 first ones are then considered in the motion estimation process as usual. [00146] The Template Matching refinement for both IBC-TM merge and AMVP modes is quite simple since IBC motion vectors are constrained (i) to be integer and (ii) within a reference region as shown in FIG.8. So, in IBC-TM merge mode, all refinements are performed at integer precision, and in IBC-TM AMVP mode, they are performed either at integer or 4-pel precision depending on the AMVR value. Such a refinement accesses only to samples without interpolation. In both cases, the refined motion vectors and the used template in each refinement step must respect the constraint of the reference region. Attorney Ref.: 186015.20173 IBC reference area [00147] The reference area for IBC is extended to two CTU rows above. FIG. 10 illustrates the reference area for coding CTU (m,n). Specifically, for CTU (m,n) to be coded, the reference area includes CTUs with index (m–2,n–2)…(W,n–2),(0,n–1)…(W,n–1),(0,n)…(m,n), where W denotes the maximum horizontal index within the current tile, slice or picture. This setting ensures that for CTU size being 128, IBC does not require extra memory in the current ETM platform. The per-sample block vector search (or called local search) range is limited to [–(C << 1), C >> 2] horizontally and [–C, C >> 2] vertically to adapt to the reference area extension, where C denotes the CTU size. IBC merge mode with block vector differences [00148] IBC merge mode with block vector differences is adopted in ECM. The distance set is {1- pel, 2-pel, 4-pel, 8-pel, 12-pel, 16-pel, 24-pel, 32-pel, 40-pel, 48-pel, 56-pel, 64-pel, 72-pel, 80- pel, 88-pel, 96-pel, 104-pel, 112-pel, 120-pel, 128-pel}, and the BVD directions are two horizontal and two vertical directions. [00149] The base candidates are selected from the first five candidates in the reordered IBC merge list. And based on the SAD cost between the template (one row above and one column left to the current block) and its reference for each refinement position, all the possible MBVD refinement positions (20×4) for each base candidate are reordered. Finally, the top 8 refinement positions with the lowest template SAD costs are kept as available positions, consequently for MBVD index coding. IBC adaptation for camera-captured content [00150] When adapt IBC for camera-captured content, IBC reference range is reduced from 2 CTU rows to 2x128 rows as shown in FIG.11. At encoder side to reduce the complexity, the local search range is set to [–8,8] horizontally and [–8,8] vertically centered at the first block vector predictor of the current CU. This encoder modification is not applied to SCC sequences. Subblock-based temporal motion vector prediction (SbTMVP) [00151] VVC supports the subblock-based temporal motion vector prediction (SbTMVP) method. Similar to the temporal motion vector prediction (TMVP) in HEVC, SbTMVP uses the motion field in the collocated picture to improve motion vector prediction and merge mode for CUs in the current picture. The same collocated picture used by TMVP is used for SbTVMP. SbTMVP differs from TMVP in the following two main aspects: Attorney Ref.: 186015.20173 – TMVP predicts motion at CU level but SbTMVP predicts motion at sub-CU level; – Whereas TMVP fetches the temporal motion vectors from the collocated block in the collocated picture (the collocated block is the bottom-right or center block relative to the current CU), SbTMVP applies a motion shift before fetching the temporal motion information from the collocated picture, where the motion shift is obtained from the motion vector from one of the spatial neighboring blocks of the current CU. [00152] The SbTVMP process is illustrated in FIGS. 13A-13B. SbTMVP predicts the motion vectors of the sub-CUs within the current CU in two steps. In the first step, the spatial neighbor A1 in FIG. 13A is examined. If A1 has a motion vector that uses the collocated picture as its reference picture, this motion vector is selected to be the motion shift to be applied. If no such motion is identified, then the motion shift is set to (0, 0). [00153] In the second step, the motion shift identified in Step 1 is applied (i.e., added to the current block’s coordinates) to obtain sub-CU-level motion information (motion vectors and reference indices) from the collocated picture as shown in FIG.13B. The example in FIG.13B assumes the motion shift is set to block A1’s motion. Then, for each sub-CU, the motion information of its corresponding block (the smallest motion grid that covers the center sample) in the collocated picture is used to derive the motion information for the sub-CU. After the motion information of the collocated sub-CU is identified, it is converted to the motion vectors and reference indices of the current sub-CU in a similar way as the TMVP process of HEVC, where temporal motion scaling is applied to align the reference pictures of the temporal motion vectors to those of the current CU. [00154] In VVC, a combined subblock based merge list which contains both SbTVMP candidate and affine merge candidates is used for the signalling of subblock based merge mode. The SbTVMP mode is enabled/disabled by a sequence parameter set (SPS) flag. If the SbTMVP mode is enabled, the SbTMVP predictor is added as the first entry of the list of subblock based merge candidates, and followed by the affine merge candidates. The size of subblock based merge list is signalled in SPS and the maximum allowed size of the subblock based merge list is 5 in VVC. [00155] The sub-CU size used in SbTMVP is fixed to be 8x8, and as done for affine merge mode, SbTMVP mode is only applicable to the CU with both width and height are larger than or equal to 8. Attorney Ref.: 186015.20173 [00156] The encoding logic of the additional SbTMVP merge candidate is the same as for the other merge candidates, that is, for each CU in P or B slice, an additional RD check is performed to decide whether to use the SbTMVP candidate. The probability estimation technique for the CABAC in the AVC and HEVC [00157] The CABAC (the context-based adaptive binary arithmetic coding) was originally introduced in the H.264/AVC standard, as one of two supported entropy coding schemes. In the CABAC, arithmetic coding is composed of two modules: codeword mapping (also known as binarization) and probability estimation. In the process of codeword mapping, the syntax elements are mapped into strings of bins. The mapping is realized by the so-called binarizer which translates the syntax elements into several group of bins based on different binarization schemes. In practice, various binarization schemes may be applied for such translation, such as fixed-length code, unary code, truncated unary code, and kth-order Exponential-Golomb code and so forth. The purpose of the probability estimation module is to determine the likelihood of one bin having the value of 1 or 0. In the AVC, the probabilities of bins are calculated based on an exponential aging model, where the probability that one current bin is equal to 1 or 0 is dependent on the values of previous bins that are previously coded. Additionally, according to common data statistics, the influence of bins that are immediately precede one current bin are usually larger than the bins that are coded long ago. Taking such into consideration, one parameter α is introduced in the CABAC, which controls the number N of previously coded bins that are used to estimate the probability of the current bin, i.e., N = 1/α. The parameter translates into the adaptation speed with which the probability is updated along with the increased coded bins. Specifically, with the adaptation parameter α, the probability that one bin is the least probable symbol (LPS) is calculated recursively as ^(^ + 1) = ^(^) ∙ (1 − ^) + ^(^) ∙ ^ (1) where ^(^) is the probability of the LPS symbol at instant ^; ^(^ + 1) is the updated probability of the LPS symbol at instant ^ + 1; ^(^) is equal to 1 when the current bin is LPS symbol and 0 when the current bin is the most probable symbol (MPS). In the CABAC engine of the AVC and the HEVC, the probability is independently updated according to (1) for each syntax element with a fixed value of ^ ≈ 1 19.69 , i.e., around 19.69 previously coded bins are considered when estimating the probability of one current bin. Moreover, in order to avoid multiplications during Attorney Ref.: 186015.20173 the probability estimation, the probability ^(^) in (1), which is real number and ranges from 0 to 1, is quantized into a set of fixed probability states. For example, in both the AVC and the HEVC, the probability has 7-bit precision, corresponding to 128 probability states. [00158] In the AVC and the HEVC, a video bitstream usually consists one or more independently decodable slices. At beginning of each slice, the probabilities of all the contexts are initialized to some pre-defined values. Theoretically, with knowing the statistic nature of one given context, uniform distribution (i.e., ^^^^^ = 0.5 ) should be used to initialize the context probability. However, to enable a faster catchup of the probability of one context to its corresponding statistical distribution, it was found that to be beneficial to provide some appropriate initial probability values (which may not be equiprobable) for each context. Specifically, in the AVC and HEVC, given the initial QP of one slice SliceQPY, the initial probability state of one context InitProbState is calculated as follows: ^ = ^^^^^^^^ ∙ 5 − 45 n = (^^^^^^^^^ ≪ 3) − 16 (2) InitProbState = Clip3(1, 127, (^ ∙ ^^^^^^^^) ≫ 4 + ^) where ^^^^^^^^ and ^^^^^^^^^ (both in the range from 0 to 15) are two initialization parameters, which are predefined and stored as look-up table (LUT), to calculate the initial probability of one context. As shown in (2), the initial probability state is modeled by a linear function of the slice QP with the slope equal to (^ ≫ 4) and the offset equal to ^. The probability estimation technique for the CABAC in the VVC [00159] The probability estimation module that is applied in the VVC is kept almost the same as that in the AVC and HEVC, except for the following key differences: 1. VVC maintains two probability estimates for each context, where each has its own probability adaptation rate α in (1). The final probability that is actually used for arithmetic coding is the average of the two estimates. 2. In the VVC, multiple probability LUTs are predefined and used to initialize the probabilities of different contexts of one slice. Meanwhile, similar to the AVC and the HEVC, the initial estimate of the probability is built upon one linear model taking the slice QP as the input. However, in the VVC, the derived value represents the actual probability value; whereas in the AVC/HEVC, it represents the index of the probability state. Attorney Ref.: 186015.20173 [00160] Multi-hypothesis probability estimation [00161] It is obvious that using one fixed adaptation parameter for all the syntax elements may not be optimal due to their different statistical characteristics. On the other hand, it has been proven in several scientific research that better estimation accuracy can be achieved by using multiple probability estimators compared to one single estimator. Therefore, one multi-hypothesis probability estimation scheme is applied in the CABAC design of the VVC, where two different adaptation parameter α0 and α1 are utilized, which correspond to one slow and fast speed for the probability adaptation. By such way, two different probabilities can be calculated for each bin using two adaptation parameters, which are then averaged to generate the final probability of the bin, i.e., ^^(^ + 1) = ^^(^) ∙ (1 − ^^) + ^(^) ∙ ^^ ^^ (^ + 1) = ^^ (^)(1 − ^^ ) + ^(^) ∙ ^^ (3) where ^^ and ^^ are
Figure imgf000040_0001
hypotheses. In the VVC, the values of ^^ and ^^ are independently selected for each context using one training algorithm that is designed to
Figure imgf000040_0002
optimize the adaptation parameters as well as the initial probabilities. Specifically, according to the current design, each context is allowed to select ^^ from one set of predefined values of {1/4, 1/8, 1/16, 1/32} and ^^ from another set of predefined values of {1/32, 1/64, 1/128, 1/256, 1/512}. [00162] Initial probability calculation [00163] As in the AVC/HEVC, the CABCA process of the VVC also invoke one QP dependent probability initialization process at the beginning of each slice. However, compared to the AVC/HEVC which initializes the state of one probability state machine, the actual value of the initial probability is directly derived, as depicted as ^ = (^^^^^^^^ ≫ 3) − 4 n = ^(^^^^^^^^^ & 7) ∙ 18^ + 1 InitState = Clip3^1, 127, ^^ ∙ (^^^^^^^^ − 16)^ ≫ 1 + ^^ (4) p^^^^ ^ = initState ≪ 7 p^^^^ ^ = initState ≪ 3 Attorney Ref.: 186015.20173 where ^^^^^^^^ and ^^^^^^^^^are two initialization parameters for calculating the slope and offset of the linear model, each being represented in the precision of 3 bit; p^ ^^^^ and p^ ^^^^ are the two initial probabilities calculated for two probability estimators. Entropy coding in ECM [00164] Extended precision [00165] The intermediate precision used in the arithmetic coding engine is increased, including three elements. First, the precisions for two probability states are both increased to 15 bits, in comparison to 10 bits and 14 bits in VVC. Second, the LPS range update process is modified as below, if q >= 16384 q = 215 – 1 – q RLPS = ((range * (q>>6)) >>9) + 1, where range is a 9-bit variable representing the width of the current interval, q is a 15-bit variable representing the probability state of the current context model, and RLPS is the updated range for LPS. This operation can also be realized by looking up a 512×256-entry in 9-bit look-up table. Third, at the encoder side, the 256-entry look-up table used for bits estimation in VTM is extended to 512 entries. [00166] Slice-type-based window size [00167] Since statistics are different with different slice types, it is beneficial to have a context’s probability state updated at a rate that may provide more accurate probability estimation (e.g., to more accurately predict the likelihood of one bin having the value of 1 or 0) under the given slice type. Therefore, for each context model, three window sizes are pre-defined for I-, B-, and P-slices, respectively, like the initialization parameters. [00168] The context initialization parameters and window sizes are retrained. Improved probability estimation for CABAC [00169] Multi-hypothesis probability estimation with adaptive weight [00170] The multi-hypothesis-based probability is estimated based on adaptive weights (MHP- AW). Specifically, two separate probability estimates ^^ and ^^ are maintained for each context and updated according to their own adaptation rates. However, instead of using simple average, Attorney Ref.: 186015.20173 multiple weights are introduced to derive the resulting probability ^ used for the binary arithmetic coding, as illustrated as follows: ^ = (^^ ∙ ^^ + ^^ ∙ ^^) ≫ ^ where ^^ and ^^ are the weights selected from a pre-defined set {10, 12, 16, 20, 22}; ^ is the bitwise right-shift value, which is equal to 5 when (^^ + ^^ ) ≤ 32 and 6 otherwise. Three different sets of weights are pre-determined for each context model at I-, B- and P-slice types. The weights of I-slice type are only allowed for intra slices while the weights of B- and P-slice types are allowed to be switched for inter slices at slice level. [00171] CABAC initialization from previous inter slice and windows adjustment [00172] Context initialization stored at previously coded picture after coding the last CTU can be used to initialize an inter slice having the same slice type, QP, and temporal ID. The buffer size for storing previous initializations is set equal to 5 for each slice type, when the buffer is full, the entry with the smallest QP and temporal ID is removed first before storing the initialization. [00173] The CABAC employs two probability states that are updated with a short and a long window size, respectively. The window sizes, predefined for each context model, are not optimal for varying statistics in different regions, hence window sizes are adjusted according to the previously coded bin of each context. [00174] The short and long window sizes used in CABAC update are adjusted by two delta parameters stored in a look-up table per context and retrieved by a previous coded bin used as an index. The previous coded bin is used as an index to get the adjustment parameters from a look- up table: delta0 for the short window and delta1 for the long window. Denote the original short and long window sizes stored in the existed initialization tables and defined for the context model as shift0 and shift1, respectively. The actual window sizes used to code the current bin after adjustment are respectively (shift0+delta0) and (shift1+delta1), where shift0 and shift1 are existed predefined windows sizes stored in the context initialization tables. Problem statement [00175] In video coding, intra block copy is well known to accurately predict screen content and artificially generated content where patterns and edges may repeat within the frame. Intra block copy may also be beneficial for natural content predictions where the current frame has repeated textures. For the coding scenarios without too much repeated content, the mode of intra block copy may not be selected while its minimum signaling bits are still transmitted. In this case, to further Attorney Ref.: 186015.20173 enhance the coding efficiency of intra block copy, it is desired to provide more flexible on/off control mechanisms at different granularities. [00176] In this disclosure, the coding tool of intra block copy is improved from aspects below: ^ Flexible on/off control mechanisms ^ CABAC context window Flexible on/off control mechanisms [00177] In this section, several methods are proposed to do on/off control for the application of the IBC mode. The on/off control indicates whether the IBC mode is allowed to be possibly enabled for the current sequence, frame, slice, CTU, or block which is at different granularities. If IBC mode is on, further flags (e.g., whether IBC mode is enabled or disabled for a specific block) or/and information (e.g., block vectors) may be signaled. If IBC mode is off, no more flags or information is signaled. [00178] In some embodiments, the on/off control of intra block copy may be based on explicit signaling methods. [00179] In one embodiment, the on/off control is based on one or more, sequence level, or frame level, or slice level or Coding tree unit (CTU) level, or block level flag, or any combination of different levels of flags. When any combination of different levels of flags are used, the transmission of lower level of flags are dependent on the on/off of higher level of flags. In one example, if the frame level flag indicates the turned off of IBC mode, no more flags are transmitted at slice or block level. Otherwise, lower level flag(s) is/are further transmitted. [00180] In another embodiment, the on/off control is based on different regions. The purpose of the region concept is to provide a more flexible granularity for IBC on/off control. [00181] In one embodiment, the region here may be defined as non-overlapping areas within a frame or a slice or a CTU. For all the blocks located within a specific region, a single on/off control flag may be signed to indicate whether IBC mode is turned off for all these blocks are not. The size of the regions may be predefined as a set of fixed values such as M x N, or a group of signaled values. [00182] In some other embodiments, the on/off control of intra block copy may be based on local information, and no explicit signaling is required. [00183] In some embodiments, the on/off control is based on the prediction information. Attorney Ref.: 186015.20173 [00184] In one embodiment, the IBC mode is always turned off for inter predicted blocks (e.g., in inter-coded frames such as B and P frames). While for intra-coded blocks, either in inter-coded frames (such as B and P frames) or intra-coded frames (such as I frame), IBC mode may be always turned on. [00185] In another embodiment, the IBC mode is always turned off for uni-predicted or/and bi- predicted inter blocks. [00186] Yet in another embodiment, the IBC mode is always turned off for blocks which are coded at sub-block modes. The sub-block mode is the mode which divides current block into sub-blocks and each sub-block may have its own motion information. For example, affine mode, SbTMVP mode. [00187] In another embodiment, the IBC mode is always turned off for blocks which are not coded at sub-block modes. [00188] In some other embodiments, the on/off control is based on the other coding information. [00189] In one embodiment, the IBC model is always turned off when one or more other coding mode(s) is/are applied for the current block. For example, the IBC mode is always turned off when affine mode is enabled. [00190] In some other embodiments, the on/off control is based on the frame type. [00191] In one embodiment, the IBC mode are always turned off for B frame or/and P frame. [00192] In some other embodiments, the on/off control is based on the block information. [00193] In one embodiment, the IBC mode is always turned off for coding blocks smaller than a specific size (e.g., 8x8 blocks) or larger than a specific size (e.g., 64x64). [00194] In one embodiment, the IBC mode is always turned off for wide blocks (e.g., a block with its width is M times longer than its height) or long blocks (e.g., a block with its height is N times longer than its width), while the value of M and N may be fixed values (e.g., M =2, N =3) or signaled at sequence or frame level. CABAC context window [00195] In the current IBC design, there may be one or more IBC mode related flags which are CABAC context coded. For example, the IBC enabling flag at block level is context coded. Since statistics may be different with different slice or frame types, it is desirable to have a context’s probability state updated at a rate that may provide more accurate probability estimation (e.g., to Attorney Ref.: 186015.20173 more accurately predict the likelihood of one bin having the value of 1 or 0) under the given slice/frame type. [00196] In some embodiments, for each context model related to IBC mode, three windows may be predefined for three different slices, including I, B and P slices, respectively. [00197] In some embodiments, for each context model related to IBC mode, two windows may be predefined for different slices with two different prediction modes, including intra-predicted (I slice) and inter-predicted slices (B and P slices), respectively. [00198] When multiple windows are defined for different slices or frames, the context window sizes and initialization parameters may also be retrained separately or jointly. [00199] FIG. 15 shows a computing environment (or a computing device) 1610 coupled with a user interface 1650. The computing environment 1610 can be part of a data processing server. In some embodiments, the computing device 1610 can perform any of various methods or processes (such as encoding/decoding methods or processes) as described hereinbefore in accordance with various examples of the present disclosure. The computing environment 1610 includes a processor 1620, a memory 1630, and an Input/Output (I/O) interface 1640. [00200] The processor 1620 typically controls overall operations of the computing environment 1610, such as the operations associated with display, data acquisition, data communications, and image processing. The processor 1620 may include one or more processors to execute instructions to perform all or some of the steps in the above-described methods. Moreover, the processor 1620 may include one or more modules that facilitate the interaction between the processor 1620 and other components. The processor may be a Central Processing Unit (CPU), a microprocessor, a single chip machine, a Graphical Processing Unit (GPU), or the like. [00201] The memory 1630 is configured to store various types of data to support the operation of the computing environment 1610. The memory 1630 may include predetermined software 1632. Examples of such data includes instructions for any applications or methods operated on the computing environment 1610, video datasets, image data, etc. The memory 1630 may be implemented by using any type of volatile or non-volatile memory devices, or a combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic memory, a flash memory, a magnetic or optical disk. Attorney Ref.: 186015.20173 [00202] The I/O interface 1640 provides an interface between the processor 1620 and peripheral interface modules, such as a keyboard, a click wheel, buttons, and the like. The buttons may include but are not limited to, a home button, a start scan button, and a stop scan button. The I/O interface 1640 can be coupled with an encoder and decoder. [00203] FIG.16 is a flowchart illustrating a method for video decoding according to an example of the present disclosure. In the method illustrated in FIG. 16, the on/off control of intra block copy may be based on explicit signaling methods. [00204] In Step 1601, the processor 1620, at the side of a decoder, may obtain one or more IBC control syntax elements that indicate whether IBC mode is enabled at different granularities. [00205] In some examples, the different granularities may include a plurality of coding levels, and the one or more IBC control syntax elements indicate whether the IBC mode is enabled at the plurality of coding levels. [00206] In some examples, when any combination of different levels of flags are used, the transmission of lower level of flags are dependent on the on/off of higher level of flags. For example, if the frame level flag indicates the turned off of IBC mode, no more flags are transmitted at slice or block level. Otherwise, lower-level flag(s) is/are further transmitted. In some examples, the plurality of coding levels may include a sequence level, a frame level, a slice level, a coding tree unit level, and a block level, each control syntax element indicates whether the IBC mode is enabled at at least one of the plurality of coding levels, the one or more IBC control syntax elements may include a first control syntax element and a second control syntax element, the first control syntax element indicates whether the IBC mode is enabled at a first coding level, the second control syntax element indicates whether the IBC mode is enabled at a second coding level, and the first coding level is higher than the second coding level. [00207] Furthermore, the processor 1620 may perform at least one of following steps including: obtain the second control syntax element and determine whether the second control syntax element indicates that the IBC mode is enabled at the second coding level in response to determining that the first control syntax element indicates that the IBC mode is enabled at the first coding level; or determine that no second control syntax element is transmitted in response to determining that the first control syntax element indicates that the IBC mode is not enabled at the first coding level. [00208] In some examples, the flexible on/off control for the application of the IBC mode is based on different regions. For example, the different granularities may include different regions and the Attorney Ref.: 186015.20173 processor 1620, at the side of the decoder, may predefine the different regions as non-overlapping areas within one of followings: a frame, a slice, or a CTU. For example, the processor 1620 may predefine sizes of the different regions as a set of fixed values. [00209] In Step 1602, the processor 1620, at the side of the decoder, may obtain one or more block vectors for a current block based on the IBC mode in response to determining that the IBC mode is enabled at one or more granularities. [00210] FIG.17 is a flowchart illustrating a method for video encoding corresponding the method for video decoding as shown in FIG.16. [00211] In Step 1701, the processor 1620, at the side of an encoder, may determine one or more IBC control syntax elements that indicate whether IBC mode is enabled at different granularities. [00212] In some examples, the different granularities may include a plurality of coding levels, and the one or more IBC control syntax elements indicate whether the IBC mode is enabled at the plurality of coding levels. [00213] In some examples, when any combination of different levels of flags are used, the transmission of lower level of flags are dependent on the on/off of higher level of flags. For example, if the frame level flag indicates the turned off of IBC mode, no more flags are transmitted at slice or block level. Otherwise, lower-level flag(s) is/are further transmitted. In some examples, the plurality of coding levels may include a sequence level, a frame level, a slice level, a coding tree unit level, and a block level, each control syntax element indicates whether the IBC mode is enabled at at least one of the plurality of coding levels, the one or more IBC control syntax elements may include a first control syntax element and a second control syntax element, the first control syntax element indicates whether the IBC mode is enabled at a first coding level, the second control syntax element indicates whether the IBC mode is enabled at a second coding level, and the first coding level is higher than the second coding level. [00214] Furthermore, the processor 1620 may perform at least one of following steps including: determine the second control syntax element and transmit the second control syntax element that indicates whether the IBC mode is enabled at the second coding level in response to determining that the first control syntax element indicates that the IBC mode is enabled at the first coding level; or determine not to transmit the second control syntax element in response to determining that the first control syntax element indicates that the IBC mode is not enabled at the first coding level. Attorney Ref.: 186015.20173 [00215] In some examples, the flexible on/off control for the application of the IBC mode is based on different regions. For example, the different granularities may include different regions and the processor 1620, at the side of the encoder, may predefine the different regions as non-overlapping areas within one of followings: a frame, a slice, or a CTU. For example, the processor 1620 may predefine sizes of the different regions as a set of fixed values. [00216] In Step 1702, the processor 1620, at the side of the encoder, may encode a current block into a bitstream based on the one or more IBC control syntax elements. [00217] FIG.18 is a flowchart illustrating a method for video decoding according to an example of the present disclosure. In the method illustrated in FIG. 18, the on/off control of intra block copy may be based on local information, and no explicit signaling is required. [00218] In Step 1801, the processor 1620, at the side of a decoder, may obtain IBC control information according to local information associated with a current block, where the IBC control information indicates whether IBC mode is enabled. [00219] In some examples, the local information may include at least one of following information: prediction information, coding information, frame types, or block information. [00220] In some examples, the on/off control of the IBC mode may be based on the prediction information. For example, the processor 1620 may perform one of following steps: determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is an inter predicted block, e.g., in inter-coded frames such as B or P frames; determine that the IBC control information indicates that the IBC mode is enabled in response to determining that the current block is an intra predicted block, either in inter-coded frames (such as B and P frames) or intra-coded frames (such as I frame); determine that that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is a uni-predicted inter block; determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is coded at a sub-block mode; determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is not coded at a sub-block mode; determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that a coding mode other than the IBC mode is applied to the current block; determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is a B frame block or a P frame block; determine that the IBC control information Attorney Ref.: 186015.20173 indicates that the IBC mode is not enabled in response to determining that a size of the current block is smaller than or larger than a specific size, for example, smaller than a specific size such as 8x8 or larger than a specific size such as 64x64; or determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is a wide block or a long block. [00221] In some examples, the wide block has a first width and a first height, and the first width is M times longer than the first height, the long block has a second width and a second height, and the second height is N times longer than the first width, and M and N are fixed values or signaled at a sequence level or a frame level. [00222] In Step 1802, the processor 1620, at the side of the decoder, may obtain one or more block vectors for the current block based on the IBC mode in response to determining that the IBC mode is enabled. [00223] FIG.19 is a flowchart illustrating a method for video encoding corresponding the method for video decoding as shown in FIG.18. [00224] In Step 1901, the processor 1620, at the side of an encoder, may obtain IBC control information according to local information associated with a current block, where the IBC control information indicates whether IBC mode is enabled. [00225] In some examples, the local information may include at least one of following information: prediction information, coding information, frame types, or block information. [00226] In some examples, the on/off control of the IBC mode may be based on the prediction information. For example, the processor 1620 may perform one of following steps: determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is an inter predicted block, e.g., in inter-coded frames such as B or P frames; determine that the IBC control information indicates that the IBC mode is enabled in response to determining that the current block is an intra predicted block, either in inter-coded frames (such as B and P frames) or intra-coded frames (such as I frame); determine that that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is a uni-predicted inter block; determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is coded at a sub-block mode; determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is not coded at a sub-block mode; determine that Attorney Ref.: 186015.20173 the IBC control information indicates that the IBC mode is not enabled in response to determining that a coding mode other than the IBC mode is applied to the current block; determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is a B frame block or a P frame block; determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that a size of the current block is smaller than or larger than a specific size, for example, smaller than a specific size such as 8x8 or larger than a specific size such as 64x64; or determine that the IBC control information indicates that the IBC mode is not enabled in response to determining that the current block is a wide block or a long block. [00227] In some examples, the wide block has a first width and a first height, and the first width is M times longer than the first height, the long block has a second width and a second height, and the second height is N times longer than the first width, and M and N are fixed values or signaled at a sequence level or a frame level. [00228] In Step 1902, the processor 1620, at the side of the encoder, may encode a current block into a bitstream based on the IBC control information. [00229] FIG.20 is a flowchart illustrating a method for video decoding according to an example of the present disclosure. In the method illustrated in FIG.20, multiple windows may be predefined bases on different slice and/or frame types. [00230] In Step 2001, the processor 1620, at the side of a decoder, may obtain a syntax element that is related to IBC mode, where the syntax element is CABAC context coded. [00231] In Step 2002, the processor 1620, at the side of the decoder, may determine a CABAC context window that is used for each context model related to the IBC mode based on a slice type or a frame type. [00232] In some examples, the processor 1620 may determine that multiple CABAC context windows are predefined for different slice types or different frame types based on the slice type or the frame type. For example, the processor 1620 may determine that three different CABAC context windows are predefined for three different slice types, where the three different slice types may include I, B, and P. In another example, the processor 1620 may determine that two different CABAC context windows are predefined for different slices with different slice types and different prediction modes. Attorney Ref.: 186015.20173 [00233] In some examples, the processor 1620 may determine that a first CABAC context window is used for the current slice in response to determining that a current slice is an intra-predicted I slice and determine that a second CABAC context window is used for the current slice in response to determining that the current slice is an inter-predicted B slice or an inter-predicted P slice, where the first CABAC context window and the second CABAC context window are two different CABAC context windows. [00234] In some examples, when multiple windows are defined for different slices or frames, the context window sizes and initialization parameters may also be retrained separately or jointly. [00235] FIG.21 is a flowchart illustrating a method for video encoding corresponding the method for video decoding as shown in FIG.20. [00236] In Step 2101, the processor 1620, at the side of an encoder, may determine a CABAC context window that is used for each context model related to IBC mode based on the slice type or the frame type. [00237] In Step 2102, the processor 1620, at the side of the encoder, may obtain a syntax element that is related to the IBC mode, where the syntax element is CABAC context coded. [00238] In Step 2103, the processor 1620, at the side of the encoder, may signal the syntax element into a bitstream. [00239] In some examples, the processor 1620 may determine that multiple CABAC context windows are predefined for different slice types or different frame types based on the slice type or the frame type. For example, the processor 1620 may determine that three different CABAC context windows are predefined for three different slice types, where the three different slice types may include I, B, and P. In another example, the processor 1620 may determine that two different CABAC context windows are predefined for different slices with different slice types and different prediction modes. [00240] In some examples, the processor 1620 may determine that a first CABAC context window is used for the current slice in response to determining that a current slice is an intra-predicted I slice and determine that a second CABAC context window is used for the current slice in response to determining that the current slice is an inter-predicted B slice or an inter-predicted P slice, where the first CABAC context window and the second CABAC context window are two different CABAC context windows. Attorney Ref.: 186015.20173 [00241] In some examples, when multiple windows are defined for different slices or frames, the context window sizes and initialization parameters may also be retrained separately or jointly. [00242] In some examples, there is provided an apparatus for video coding. The apparatus includes a processor 1620 and a memory 1640 configured to store instructions executable by the processor; where the processor, upon execution of the instructions, is configured to perform any method as illustrated in FIGS.16-21. [00243] In an embodiment, there is also provided a non-transitory computer-readable storage medium comprising a plurality of programs, for example, in the memory 1630, executable by the processor 1620 in the computing environment 1610, for performing the above-described methods and/or storing a bitstream generated by the encoding method described above or a bitstream to be decoded by the decoding method described above. In one example, the plurality of programs may be executed by the processor 1620 in the computing environment 1610 to receive (for example, from the video encoder 20 in FIG. 2A) a bitstream or data stream including encoded video information (for example, video blocks representing encoded video frames, and/or associated one or more syntax elements, etc.), and may also be executed by the processor 1620 in the computing environment 1610 to perform the decoding method described above according to the received bitstream or data stream. In another example, the plurality of programs may be executed by the processor 1620 in the computing environment 1610 to perform the encoding method described above to encode video information (for example, video blocks representing video frames, and/or associated one or more syntax elements, etc.) into a bitstream or data stream, and may also be executed by the processor 1620 in the computing environment 1610 to transmit the bitstream or data stream (for example, to the video decoder 30 in FIG. 2B). Alternatively, the non-transitory computer-readable storage medium may have stored therein a bitstream or a data stream comprising encoded video information (for example, video blocks representing encoded video frames, and/or associated one or more syntax elements etc.) generated by an encoder (for example, the video encoder 20 in FIG. 2A) using, for example, the encoding method described above for use by a decoder (for example, the video decoder 30 in FIG.2B) in decoding video data. The non- transitory computer-readable storage medium may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, an optical data storage device or the like. [00244] In an embodiment, there is provided a bitstream generated by the encoding method Attorney Ref.: 186015.20173 described above or a bitstream to be decoded by the decoding method described above. In an embodiment, there is provided a bitstream comprising encoded video information generated by the encoding method described above or encoded video information to be decoded by the decoding method described above. [00245] In an embodiment, the is also provided a computing device comprising one or more processors (for example, the processor 1620); and the non-transitory computer-readable storage medium or the memory 1630 having stored therein a plurality of programs executable by the one or more processors, wherein the one or more processors, upon execution of the plurality of programs, are configured to perform the above-described methods. [00246] In an embodiment, there is also provided a computer program product having instructions for storage or transmission of a bitstream comprising encoded video information generated by the encoding method described above or encoded video information to be decoded by the decoding method described above. In an embodiment, there is also provided a computer program product comprising a plurality of programs, for example, in the memory 1630, executable by the processor 1620 in the computing environment 1610, for performing the above-described methods. For example, the computer program product may include the non-transitory computer-readable storage medium. [00247] In an embodiment, the computing environment 1610 may be implemented with one or more ASICs, DSPs, Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), FPGAs, GPUs, controllers, micro-controllers, microprocessors, or other electronic components, for performing the above methods. [00248] In an embodiment, there is also provided a method of storing a bitstream, comprising storing the bitstream on a digital storage medium, wherein the bitstream comprises encoded video information generated by the encoding method described above or encoded video information to be decoded by the decoding method described above. [00249] In an embodiment, there is also provided a method for transmitting a bitstream generated by the encoder described above. In an embodiment, there is also provided a method for receiving a bitstream to be decoded by the decoder described above. [00250] The description of the present disclosure has been presented for purposes of illustration and is not intended to be exhaustive or limited to the present disclosure. Many modifications, variations, and alternative implementations will be apparent to those of ordinary skill in the art Attorney Ref.: 186015.20173 having the benefit of the teachings presented in the foregoing descriptions and the associated drawings. [00251] Unless specifically stated otherwise, an order of steps of the method according to the present disclosure is only intended to be illustrative, and the steps of the method according to the present disclosure are not limited to the order specifically described above, but may be changed according to practical conditions. In addition, at least one of the steps of the method according to the present disclosure may be adjusted, combined or deleted according to practical requirements. [00252] The examples were chosen and described in order to explain the principles of the disclosure and to enable others skilled in the art to understand the disclosure for various implementations and to best utilize the underlying principles and various implementations with various modifications as are suited to the particular use contemplated. Therefore, it is to be understood that the scope of the disclosure is not to be limited to the specific examples of the implementations disclosed and that modifications and other implementations are intended to be included within the scope of the present disclosure.

Claims

Attorney Ref.: 186015.20173 WHAT IS CLAIMED IS: 1. A method for video decoding, comprising: obtaining, by a decoder, one or more Intra Block Copy (IBC) control syntax elements that indicate whether IBC mode is enabled at different granularities; and in response to determining that the IBC mode is enabled at one or more granularities, obtaining, by the decoder, one or more block vectors for a current block based on the IBC mode. 2. The method of claim 1, wherein the different granularities comprise a plurality of coding levels, and the one or more IBC control syntax elements indicate whether the IBC mode is enabled at the plurality of coding levels. 3. The method of claim 2, wherein the plurality of coding levels comprise a sequence level, a frame level, a slice level, a coding tree unit level, and a block level, each control syntax element indicates whether the IBC mode is enabled at at least one of the plurality of coding levels, the one or more IBC control syntax elements comprise a first control syntax element and a second control syntax element, the first control syntax element indicates whether the IBC mode is enabled at a first coding level, the second control syntax element indicates whether the IBC mode is enabled at a second coding level, and the first coding level is higher than the second coding level, wherein the method further comprises at least one of following steps: in response to determining that the first control syntax element indicates that the IBC mode is enabled at the first coding level, obtaining, by the decoder, the second control syntax element and determining, by the decoder, whether the second control syntax element indicates that the IBC mode is enabled at the second coding level; or in response to determining that the first control syntax element indicates that the IBC mode is not enabled at the first coding level, determining, by the decoder, that no second control syntax element is transmitted. Attorney Ref.: 186015.20173 4. The method of claim 1, wherein the different granularities comprise different regions, and wherein the method further comprises: predefining the different regions as non-overlapping areas within one of followings: a frame, a slice, or a CTU. 5. The method of claim 4, further comprising: predefining sizes of the different regions as a set of fixed values. 6. A method for video encoding, comprising: determining, by an encoder, one or more Intra Block Copy (IBC) control syntax elements that indicate whether IBC mode is enabled at different granularities; and encoding, by the encoder, a current block into a bitstream based on the one or more IBC control syntax elements. 7. The method of claim 6, wherein the different granularities comprise a plurality of coding levels, and the one or more IBC control syntax elements indicate whether the IBC mode is enabled at the plurality of coding levels. 8. The method of claim 7, wherein the plurality of coding levels comprise a sequence level, a frame level, a slice level, a coding tree unit level, and a block level, each control syntax element indicates whether the IBC mode is enabled at at least one of the plurality of coding levels, the one or more IBC control syntax elements comprise a first control syntax element and a second control syntax element, the first control syntax element indicates whether the IBC mode is enabled at a first coding level, the second control syntax element indicates whether the IBC mode is enabled at a second coding level, and the first coding level is higher than the second coding level, wherein the method further comprises at least one of following steps: in response to determining that the first control syntax element indicates that the IBC mode is enabled at the first coding level, determining, by the encoder, the second control syntax element and transmitting, by the encoder, the second control syntax element that indicates whether the IBC mode is enabled at the second coding level; or Attorney Ref.: 186015.20173 in response to determining that the first control syntax element indicates that the IBC mode is not enabled at the first coding level, determining, by the encoder, not to transmit the second control syntax element. 9. The method of claim 6, wherein the different granularities comprise different regions, and wherein the method further comprises: predefining the different regions as non-overlapping areas within one of followings: a frame, a slice, or a CTU. 10. The method of claim 9, further comprising: predefining sizes of the different regions as a set of fixed values. 11. A method for video decoding, comprising: obtaining, by a decoder, Intra Block Copy (IBC) control information according to local information associated with a current block, wherein the IBC control information indicates whether IBC mode is enabled; and in response to determining that the IBC mode is enabled, obtaining, by the decoder, one or more block vectors for the current block based on the IBC mode. 12. The method of claim 11, wherein the local information comprises at least one of following information: prediction information, coding information, frame types, or block information. 13. The method of claim 11, further comprising one of following steps: in response to determining that the current block is an inter predicted block, determining, by the decoder, that the IBC control information indicates that the IBC mode is not enabled; in response to determining that the current block is an intra predicted block, determining, by the decoder, that the IBC control information indicates that the IBC mode is enabled; in response to determining that the current block is a uni-predicted inter block, determining, by the decoder, that the IBC control information indicates that the IBC mode is not enabled; Attorney Ref.: 186015.20173 in response to determining that the current block is a bi-predicted inter block, determining, by the decoder, that the IBC control information indicates that the IBC mode is not enabled; in response to determining that the current block is coded at a sub-block mode, determining, by the decoder, that the IBC control information indicates that the IBC mode is not enabled; or in response to determining that the current block is not coded at a sub-block mode, determining, by the decoder, that the IBC control information indicates that the IBC mode is not enabled. 14. The method of claim 11, further comprising: in response to determining that a coding mode other than the IBC mode is applied to the current block, determining, by the decoder, that the IBC control information indicates that the IBC mode is not enabled. 15. The method of claim 11, further comprising: in response to determining that the current block is a B frame block or a P frame block, determining, by the decoder, that the IBC control information indicates that the IBC mode is not enabled. 16. The method of claim 11, further comprising one of following steps: in response to determining that a size of the current block is smaller than or larger than a specific size, determining, by the decoder, that the IBC control information indicates that the IBC mode is not enabled; or in response to determining that the current block is a wide block or a long block, determining, by the decoder, that the IBC control information indicates that the IBC mode is not enabled. Attorney Ref.: 186015.20173 17. The method of claim 16, wherein the wide block has a first width and a first height, and the first width is M times longer than the first height, wherein the long block has a second width and a second height, and the second height is N times longer than the first width, and wherein M and N are fixed values or signaled at a sequence level or a frame level. 18. A method for video encoding, comprising: obtaining, by an encoder, Intra Block Copy (IBC) control information according to local information associated with a current block, wherein the IBC control information indicates whether an IBC mode is enabled; and encoding, by the encoder, a current block into a bitstream based on the IBC control information. 19. The method of claim 18, wherein the local information comprises at least one of following information: prediction information, coding information, frame types, or block information. 20. The method of claim 18, further comprising one of following steps: in response to determining that the current block is an inter predicted block, determining, by the encoder, that the IBC control information indicates that the IBC mode is not enabled; in response to determining that the current block is an intra predicted block, determining, by the decoder, that the IBC control information indicates that the IBC mode is enabled; in response to determining that the current block is a uni-predicted inter block, determining, by the encoder, that the IBC control information indicates that the IBC mode is not enabled; in response to determining that the current block is a bi-predicted inter block, determining, by the encoder, that the IBC control information indicates that the IBC mode is not enabled; in response to determining that the current block is coded at a sub-block mode, determining, by the encoder, that the IBC control information indicates that the IBC mode is not enabled; or Attorney Ref.: 186015.20173 in response to determining that the current block is not coded at a sub-block mode, determining, by the encoder, that the IBC control information indicates that the IBC mode is not enabled. 21. The method of claim 18, further comprising: in response to determining that a coding mode other than the IBC mode is applied to the current block, determining, by the encoder, that the IBC control information indicates that the IBC mode is not enabled. 22. The method of claim 18, further comprising: in response to determining that the current block is a B frame block or a P frame block, determining, by the encoder, that the IBC control information indicates that the IBC mode is not enabled. 23. The method of claim 18, further comprising one of following steps: in response to determining that a size of the current block is smaller than or larger than a specific size, determining, by the encoder, that the IBC control information indicates that the IBC mode is not enabled; or in response to determining that the current block is a wide block or a long block, determining, by the encoder, that the IBC control information indicates that the IBC mode is not enabled. 24. The method of claim 23, wherein the wide block has a first width and a first height, and the first width is M times longer than the first height, wherein the long block has a second width and a second height, and the second height is N times longer than the first width, and wherein M and N are fixed values or signaled at a sequence level or a frame level. Attorney Ref.: 186015.20173 25. A method for video decoding, comprising: obtaining, by a decoder, a syntax element that is related to Intra Block Copy (IBC) mode, wherein the syntax element is Context Adaptive Binary Arithmetic Coding (CABAC) context coded; and determining, by the decoder and based on a slice type or a frame type, a CABAC context window that is used for each context model related to the IBC mode. 26. The method of claim 25, further comprising: determining, by the decoder and based on the slice type or the frame type, that multiple CABAC context windows are predefined for different slice types or different frame types. 27. The method of claim 26, further comprising: determining, by the decoder, that three different CABAC context windows are predefined for three different slice types, wherein the three different slice types comprise I, B, and P. 28. The method of claim 26, further comprising: determining, by the decoder, that two different CABAC context windows are predefined for different slices with different slice types and different prediction modes. 29. The method of claim 28, further comprising: in response to determining that a current slice is an intra-predicted I slice, determining, by the decoder, that a first CABAC context window is used for the current slice; and in response to determining that the current slice is an inter-predicted B slice or an inter- predicted P slice, determining, by the decoder, that a second CABAC context window is used for the current slice, wherein the first CABAC context window and the second CABAC context window are two different CABAC context windows. 30. The method of claim 26, further comprising: jointly or separately retraining sizes and initialization parameters of the multiple CABAC context windows. Attorney Ref.: 186015.20173 31. A method for video encoding, comprising: determining, by an encoder and based on a slice type or a frame type, a Context Adaptive Binary Arithmetic Coding (CABAC) context window that is used for each context model related to Intra Block Copy (IBC) mode; obtaining, by the encoder, a syntax element that is related to the IBC mode, wherein the syntax element is CABAC context coded; and signaling, by the encoder, the syntax element into a bitstream. 32. The method of claim 31, further comprising: determining, by the encoder and based on the slice type or the frame type, that multiple CABAC context windows are predefined for different slice types or different frame types. 33. The method of claim 32, further comprising: determining, by the encoder, that three different CABAC context windows are predefined for three different slice types, wherein the three different slice types comprise I, B, and P. 34. The method of claim 32, further comprising: determining, by the encoder, that two different CABAC context windows are predefined for different slices with different slice types and different prediction modes. 35. The method of claim 34, further comprising: in response to determining that a current slice is an intra-predicted I slice, determining, by the encoder, that a first CABAC context window is used for the current slice; and in response to determining that the current slice is an inter-predicted B slice or an inter- predicted P slice, determining, by the encoder, that a second CABAC context window is used for the current slice, wherein the first CABAC context window and the second CABAC context window are two different CABAC context windows. 36. The method of claim 35, further comprising: jointly or separately retraining, by the encoder, sizes and initialization parameters of the multiple CABAC context windows. Attorney Ref.: 186015.20173 37. An apparatus for video decoding, comprising: one or more processors; and a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors, wherein the one or more processors, upon execution of the instructions, are configured to perform the method in any one of claims 1-5, 11-17, and 25-30. 38. An apparatus for video encoding, comprising: one or more processors; and a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors, wherein the one or more processors, upon execution of the instructions, are configured to perform the method in any one of claims 6-10, 18-24, and 31-36. 39. A non-transitory computer-readable storage medium for storing computer-executable instructions that, when executed by one or more computer processors, cause the one or more computer processors to perform the method in any of claims 1-5, 11-17, and 25-30. 40. A non-transitory computer-readable storage medium for storing computer-executable instructions that, when executed by one or more computer processors, cause the one or more computer processors to perform the method in any of claims 6-10, 18-24, and 31-36. 41. A non-transitory computer-readable storage medium for storing a bitstream to be decoded by the method in any of claims 1-5, 11-17, and 25-30. 42. A non-transitory computer-readable storage medium for storing a bitstream generated by the method in any of claims 6-10, 18-24, and 31-36.
PCT/US2023/031865 2022-09-02 2023-09-01 Methods and devices for intra block copy WO2024050099A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US202263403699P 2022-09-02 2022-09-02
US63/403,699 2022-09-02

Publications (1)

Publication Number Publication Date
WO2024050099A1 true WO2024050099A1 (en) 2024-03-07

Family

ID=90098634

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2023/031865 WO2024050099A1 (en) 2022-09-02 2023-09-01 Methods and devices for intra block copy

Country Status (1)

Country Link
WO (1) WO2024050099A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190166370A1 (en) * 2016-05-06 2019-05-30 Vid Scale, Inc. Method and system for decoder-side intra mode derivation for block-based video coding
WO2020216282A1 (en) * 2019-04-23 2020-10-29 Beijing Bytedance Network Technology Co., Ltd. Context modeling and selection of multiple transform matrix
US20210014512A1 (en) * 2018-03-29 2021-01-14 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Video decoder, video encoder, method for decoding a video content, method for encoding a video content, computer program and video bitstream
US20210112245A1 (en) * 2019-02-01 2021-04-15 Tencent America LLC Method and apparatus for video coding
US20210360234A1 (en) * 2019-03-23 2021-11-18 Huawei Technologies Co., Ltd. Encoder, a decoder and corresponding methods for intra prediction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190166370A1 (en) * 2016-05-06 2019-05-30 Vid Scale, Inc. Method and system for decoder-side intra mode derivation for block-based video coding
US20210014512A1 (en) * 2018-03-29 2021-01-14 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Video decoder, video encoder, method for decoding a video content, method for encoding a video content, computer program and video bitstream
US20210112245A1 (en) * 2019-02-01 2021-04-15 Tencent America LLC Method and apparatus for video coding
US20210360234A1 (en) * 2019-03-23 2021-11-18 Huawei Technologies Co., Ltd. Encoder, a decoder and corresponding methods for intra prediction
WO2020216282A1 (en) * 2019-04-23 2020-10-29 Beijing Bytedance Network Technology Co., Ltd. Context modeling and selection of multiple transform matrix

Similar Documents

Publication Publication Date Title
US20220132159A1 (en) Merge mode with motion vector differences
WO2020247577A1 (en) Adaptive motion vector resolution for affine mode
US20240129519A1 (en) Motion refinement with bilateral matching for affine motion compensation in video coding
JP2024029187A (en) Video coding method and apparatus using subblock-based temporal motion vector prediction
US20220329846A1 (en) Motion estimation region for the merge candidates
WO2024050099A1 (en) Methods and devices for intra block copy
WO2024081261A1 (en) Methods and devices with intra block copy
US20230011286A1 (en) Spatial neighbor based affine motion derivation
WO2022178433A1 (en) Improved local illumination compensation for inter prediction
WO2023141036A1 (en) Bilateral matching based reference picture reordering
WO2024044404A1 (en) Methods and devices using intra block copy for video coding
WO2023283028A1 (en) Geometry partitioning for affine motion compensated prediction in video coding
WO2023076700A1 (en) Motion compensation considering out-of-boundary conditions in video coding
WO2024039910A1 (en) Method and apparatus for adaptive motion compensated filtering
WO2023205283A1 (en) Methods and devices for enhanced local illumination compensation
WO2023055968A1 (en) Methods and devices for decoder-side intra mode derivation
WO2023141338A1 (en) Methods and devices for geometric partitioning mode with split modes reordering
WO2023177752A1 (en) Methods and devices on probability calculation for context-based adaptive binary arithmetic coding
WO2023283244A1 (en) Improvements on temporal motion vector prediction
WO2022271756A1 (en) Video coding using multi-direction intra prediction
WO2023114155A1 (en) Methods and devices for decoder-side intra mode derivation
WO2023091775A1 (en) Decoder side motion information derivation
WO2023129744A1 (en) Methods and devices for decoder-side intra mode derivation
WO2023034629A1 (en) Intra prediction modes signaling
WO2023081322A1 (en) Intra prediction modes signaling

Legal Events

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

Ref document number: 23861357

Country of ref document: EP

Kind code of ref document: A1