WO2024178022A1 - Methods and devices on intra template matching prediction - Google Patents
Methods and devices on intra template matching prediction Download PDFInfo
- Publication number
- WO2024178022A1 WO2024178022A1 PCT/US2024/016568 US2024016568W WO2024178022A1 WO 2024178022 A1 WO2024178022 A1 WO 2024178022A1 US 2024016568 W US2024016568 W US 2024016568W WO 2024178022 A1 WO2024178022 A1 WO 2024178022A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- template
- chroma
- current
- block
- luma
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 206
- 238000003860 storage Methods 0.000 claims abstract description 33
- 241000023320 Luma <angiosperm> Species 0.000 claims description 269
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 claims description 269
- 230000009977 dual effect Effects 0.000 claims description 37
- 230000015654 memory Effects 0.000 claims description 36
- 238000000638 solvent extraction Methods 0.000 claims description 28
- 230000004044 response Effects 0.000 claims description 25
- 238000001914 filtration Methods 0.000 claims description 13
- 230000011664 signaling Effects 0.000 claims description 12
- 239000013598 vector Substances 0.000 description 60
- 238000012545 processing Methods 0.000 description 38
- 239000000523 sample Substances 0.000 description 29
- 230000008569 process Effects 0.000 description 27
- 238000004891 communication Methods 0.000 description 21
- 239000011159 matrix material Substances 0.000 description 18
- 208000037170 Delayed Emergence from Anesthesia Diseases 0.000 description 16
- 238000013139 quantization Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 11
- 238000005192 partition Methods 0.000 description 10
- 230000003044 adaptive effect Effects 0.000 description 8
- 238000004364 calculation method Methods 0.000 description 7
- 238000009795 derivation Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 230000006835 compression Effects 0.000 description 5
- 238000007906 compression Methods 0.000 description 5
- 238000000354 decomposition reaction Methods 0.000 description 5
- 230000002123 temporal effect Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 4
- 238000010276 construction Methods 0.000 description 4
- 238000006467 substitution reaction Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 239000013074 reference sample Substances 0.000 description 3
- 238000005070 sampling Methods 0.000 description 3
- 241000985610 Forpus Species 0.000 description 2
- 238000003491 array Methods 0.000 description 2
- 238000006073 displacement reaction Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- IESVDEZGAHUQJU-ZLBXKVHBSA-N 1-hexadecanoyl-2-(4Z,7Z,10Z,13Z,16Z,19Z-docosahexaenoyl)-sn-glycero-3-phosphocholine Chemical compound CCCCCCCCCCCCCCCC(=O)OC[C@H](COP([O-])(=O)OCC[N+](C)(C)C)OC(=O)CC\C=C/C\C=C/C\C=C/C\C=C/C\C=C/C\C=C/CC IESVDEZGAHUQJU-ZLBXKVHBSA-N 0.000 description 1
- 241001501536 Alethe Species 0.000 description 1
- 230000001174 ascending effect Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 230000001364 causal effect Effects 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012432 intermediate storage Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/105—Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/117—Filters, e.g. for pre-processing or post-processing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/186—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/189—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
- H04N19/196—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/70—Methods 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/80—Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
- H04N19/82—Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation involving filtering within a prediction loop
Definitions
- the present disclosure is related to video coding and compression, and in particular but not limited to, methods and apparatus to improve the coding efficiency of intra template matching prediction mode.
- 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.
- a decoder may obtain multiple reference blocks for a current block based on template matching, obtain a fused reference block based on the multiple reference blocks, and obtain a final prediction block for the current block based on the fused reference block and a linear filter.
- a decoder may obtain at least one of a luma template for a luma coding block (CB), or chroma templates for chroma CBs utilized for template matching, where the chroma templates include a first chroma template for a first chroma CB and a second chroma template for a second chroma CB.
- CB luma coding block
- chroma templates include a first chroma template for a first chroma CB and a second chroma template for a second chroma CB.
- the decoder may calculate a template matching cost between a current template of a current CB and at least one of the luma template, the first chroma template, or the second chroma template and obtain a final prediction block of the current CB according to the template matching cost.
- an encoder may obtain at least one of a luma template for a luma CB or chroma templates for chroma CBs utilized for template matching, where the chroma templates include a first chroma template for a first chroma CB and a second chroma template for a second chroma CB. Furthermore, the encoder may calculate a template matching cost between a current template of a current CB and at least one of the luma template, the first chroma template, or the second chroma template and obtain a final prediction block of the current CB according to the template matching cost.
- a decoder may obtain a reference block of a current block and a reference template of the reference block based on intra template matching, where each of the current block and the reference block includes a luma component and a chroma component, the reference template of the reference block includes a reference chroma template corresponding to a chroma component of the reference block and a reference luma template corresponding to a collocated luma block.
- the decoder may derive parameters of a cross-component prediction model based on a chroma template of a chroma component of the current block, the reference chroma template, and the reference luma template of a collocated luma block. Moreover, the decoder may obtain a final prediction for the current chroma block by applying, the parameters of the cross-component prediction model to the collocated luma block.
- an encoder may obtain a reference block of a current block and a reference template of the reference block based on intra template matching, where each of the current block and the reference block includes a luma component and a chroma component, and the reference template of the reference block includes a reference chroma template corresponding to a chroma component of the reference block and a reference luma template corresponding to a collocated luma block.
- a decoder may generate a weighted prediction by weighting an intra predicted block and an intra template matching prediction (TMP) block, derive coefficients of a linear filter from a plurality of templates including a current template of a current block, an intra predicted template, and a reference template of a reference block, and obtain a final prediction by applying the coefficients of the linear filter to the weighted prediction.
- TMP intra template matching prediction
- an encoder may generate a weighted prediction by weighting an intra predicted block and an intra TMP block, derive coefficients of a linear filter from a plurality of templates including a current template of a current block, an intra predicted template, and a reference template of a reference block, and obtain a final prediction by applying the coefficients of the linear filter to the weighted prediction.
- an apparatus for video decoding 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 first aspect, the third aspect, the fifth aspect, or the seventh aspect.
- 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, the sixth aspect, or eighth 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, the fifth aspect, or the seventh 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, the sixth aspect, or eighth 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, the fifth aspect, or the seventh aspect.
- a fourteenth 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, the sixth aspect, or eighth aspect.
- FIG. 1 is a block diagram illustrating an exemplary system for encoding and decoding video blocks in accordance with some examples of the present disclosure.
- FIG. 2 is a block diagram illustrating an exemplary video encoder in accordance with some examples of the present disclosure.
- FIG. 3 is a block diagram illustrating an exemplary video decoder in accordance with some examples of the present disclosure.
- FIGS. 4 A through 4E are block diagrams illustrating how a frame is recursively partitioned into multiple video blocks of different sizes and shapes in accordance with some examples of the present disclosure.
- FIG. 5 is a diagram illustrating a computing environment coupled with a user interface according to some examples of the present disclosure.
- FIG. 6 illustrates a diagram of Intra template matching search area used in accordance with some examples of the present disclosure.
- FIG. 7 illustrates the use of Intra TMP block vector for IBC block in accordance with some examples of the present disclosure.
- FIG. 8 illustrates spatial locations for a linear filter model in accordance with some examples of the present disclosure.
- FIG. 9 illustrates the reference area used to derive the filter coefficients of the linear filter model in accordance with some examples of the present disclosure.
- FIG. 10 illustrates a diagram of locations of left and above samples of a CU involved in a Cross-Component Linear Model (CCLM) prediction in accordance with some examples of the present disclosure.
- CCLM Cross-Component Linear Model
- FIG. 11 illustrates the reference area (with its paddings) used to derive the filter coefficients of CCCM in accordance with some examples of the present disclosure
- FIG. 12 illustrates the four Sobel based gradient patterns for GLM in accordance with some examples of the present disclosure.
- FIG. 13 illustrates a diagram of half-pel interpolation and template matching search in accordance with some examples of the present disclosure
- FIG. 14 is a flow chart illustrating a method for video decoding in accordance with some examples of the present disclosure.
- FIG. 15 is a flow chart illustrating a method for video encoding corresponding to the method for video decoding as shown in FIG. 14 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.
- 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.
- 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.
- 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.
- module may include memory (shared, dedicated, or group) that stores code or 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.
- 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’.
- the functions X’ and Y’ may both be performed, at different times, on multiple executions of the method.
- a unit or module may be implemented purely by software, purely by hardware, or by a combination of hardware and software.
- 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.
- FIG. 1 is a block diagram illustrating an exemplary system 10 for encoding and decoding video blocks in parallel in accordance with some examples of the present disclosure.
- 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 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.
- 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.
- 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 source device 12 and the destination device 14 may form camera phones or video phones.
- the examples 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. 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.
- 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 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 (laaS).
- SaaS Software as a Service
- PaaS Platform as a Service
- laaS 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.
- 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.
- FIG. 2 is a block diagram illustrating another exemplary video encoder 20 in accordance with some examples 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.
- 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.
- Another in-loop filter such as Sample Adaptive Offset (SAO) filter, Cross Component Sample Adaptive Offset (CCS AO) 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.
- SAO Sample Adaptive Offset
- CCS AO 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 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, 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, intramode 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 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. 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.
- 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.
- 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 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 intraprediction 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. 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.
- Ratedistortion 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.
- 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 examples described herein.
- a predictive block may be a block that is deemed as closely matching the block to be coded, in terms of pixel 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.
- 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. 1, or archived in the storage device 32 as shown in FIG. 1 for later transmission to or retrieval by the video decoder 30.
- the entropy encoding unit 56 may also entrop
- 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.
- 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.
- FIG. 3 is another block diagram illustrating an exemplary video decoder 30 in accordance with some examples 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. 2.
- 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.
- 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. 3. 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 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.
- a flag e.g., a flag
- 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.
- 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 128x128, 64x64, 32x32, and 16x16. But it should be noted that the present application is not necessarily limited to a particular size.
- 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.
- 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. 4B-4E 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. 4C, the 64x64 CTU 400 is first divided into four smaller CUs, each having a block size of 32x32.
- FIG. 4D depicts a quad-tree data structure illustrating the end result of the partition process of the CTU 400 as depicted in FIG. 4C, each leaf node of the quad-tree corresponding to one CU of a respective size ranging from 32x32 to 8x8.
- CTU depicted in FIG. 4C the CTU depicted in FIG. 4C
- 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.
- each 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.
- FIG. 4E 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.
- 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 nonsquare) 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.
- 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.
- 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 interprediction). 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.
- 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.
- MVP Motion Vector Predictor
- the motion vector predictor of the current CU is subtracted from the actual motion vector of the cunent CU to produce a Motion Vector Difference (MVD) for the current CU.
- MVD Motion Vector Difference
- 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 basic intra prediction scheme applied in VVC is almost kept the same as that of HEVC, except that several prediction tools are further extended, added and/or improved, e.g., extended intra prediction with wide-angle intra modes, Multiple Reference Line (MRL) intra prediction, PDPC, Intra Sub-Partition (ISP) prediction, CCLM prediction, MIP and intra template matching prediction (TMP).
- MDL Multiple Reference Line
- ISP Intra Sub-Partition
- CCLM prediction CCLM prediction
- MIP intra template matching prediction
- intra template matching prediction (intra TMP) is utilized to improve the compression efficiency of intra coding.
- intra TMP technique and its improvement methods are provided.
- Intra template matching prediction is a special intra prediction mode that copies the best prediction block from the reconstructed part of the current frame, whose L- shaped template matches the current template. For a predefined search range, the encoder searches for the most similar template to the current template in a reconstructed part of the current frame and uses the corresponding block as a prediction block. The encoder then signals the usage of this mode, and the same prediction operation is performed at the decoder side.
- the prediction signal is generated by matching the L-shaped causal neighbor of the current block with another block in a predefined search area in FIG. 6 consisting of:
- the decoder searches for the template that has least SAD with respect to the current one and uses its corresponding block as a prediction block.
- the Intra template matching tool is enabled for CUs with size less than or equal to 64 in width and height. This maximum CU size for Intra template matching is configurable.
- Intra template matching prediction mode is signaled at CU level through a dedicated flag when DIMD is not used for current CU.
- block vector (BV) derived from the intra template matching prediction (IntraTMP) is used for intra block copy (IBC).
- IntraTMP BV of the neighbouring blocks along with IBC BV are used as spatial BV candidates in IBC candidate list construction.
- IntraTMP block vector is stored in the IBC block vector buffer and, the current IBC block can use both IBC BV and IntraTMP BV of neighbouring blocks as BV candidate for IBC BV candidate list as shown in FIG. 7.
- JVET-AC0109 it is proposed to apply a linear filter model for the prediction of Intra TMP (Intra TMP-FLM).
- the proposed 6-tap filter consist of a 5-tap plus sign shape spatial component and a bias term.
- the input to the spatial 5-tap component of the filter consists of a center (C) sample in the reference block which is at corresponding locations with the sample in the current block to be predicted and its above/north (N), below/south (S), left/west (W) and right/east (E) neighbors as illustrated in FIG. 8.
- the bias term B represents a scalar offset between the input and output and is set to middle luma value (512 for 10-bit content).
- the filter coefficients ci are calculated by minimising the MSE between the reference template and current template, as shown in FIG. 9.
- the extensions to the area shown in dotted area needed to support the “side samples” of the plus shaped spatial filter and are padded when in unavailable areas.
- the MSE minimization is performed by calculating autocorrelation matrix for the reference template input and current template output.
- Autocorrelation matrix is LDL decomposed and the final filter coefficients are calculated using back-substitution.
- Intra TMP-FLM mode Usage of the Intra TMP-FLM mode is signalled coded CU level flag. Specifically, Intra TMP-FLM is considered a sub-mode of Intra TMP. That is, Intra TMP-FLM flag is only signalled if Intra TMP flag is true.
- a CCLM prediction mode is used in VVC, where chroma samples of a CU are predicted based on reconstructed luma samples rec L (i, j) of the CU by using a linear model as follows:
- pred c (i,j) represents predicted chroma samples in the CU
- rec L '(i, j) represents down-sampled reconstructed luma samples of the CU which are obtained by performing down-sampling on the reconstructed luma samples rec L (i, j)
- a and p are linear model parameters which are derived from at most four neighbouring chroma samples and their corresponding down-sampled luma samples.
- positions of above samples of a chroma block are denoted as S [0, -1] . . .S[W’ - 1, -1] and locations of left samples of the chroma block are denoted as S[— 1, 0]...S[-l, H’ - 1], positions of four neighbouring chroma samples are selected as follows:
- FIG. 10 shows a diagram of locations of left and above samples of the CU involved in the CCLM mode, including locations of left and above samples of an N xN chroma block 501 in the CU and locations of left and above samples of an 2Nx 2N luma block 503 in the CU.
- CCCM convolutional cross-component model
- Multi-model CCCM mode can be selected for PUs which have at least 128 reference samples available.
- the convolutional 7-tap filter consist of a 5-tap plus sign shape spatial component, a nonlinear term and a bias term.
- the input to the spatial 5-tap component of the filter consists of a center (C) luma sample which is collocated with the chroma sample to be predicted and its above/north (N), below/south (S), left/west (W) and right/east (E) neighbors as illustrated in FIG. 8.
- the nonlinear term P is represented as power of two of the center luma sample C and scaled to the sample value range of the content:
- the bias term B represents a scalar offset between the input and output (similarly to the offset term in CCLM) and is set to middle chroma value (512 for 10-bit content).
- the filter coefficients ci are calculated by minimising MSE between predicted and reconstructed chroma samples in the reference area.
- FIG. 11 illustrates the reference area which consists of 6 lines of chroma samples above and left of the PU. Reference area extends one PU width to the right and one PU height below the PU boundaries. Area is adjusted to include only available samples. The extensions to the area shown in dotted are needed to support the “side samples” of the plus shaped spatial filter and are padded when in unavailable areas.
- the MSE minimization is performed by calculating autocorrelation matrix for the luma input and a cross-correlation vector between the luma input and chroma output.
- Autocorrelation matrix is LDL decomposed and the final filter coefficients are calculated using back-substitution. The process follows roughly the calculation of the ALF filter coefficients in ECM, however LDL decomposition was chosen instead of Cholesky decomposition to avoid using square root operations.
- the autocorrelation matrix is calculated using the reconstructed values of luma and chroma samples. These samples are full range (e.g. between 0 and 1023 for IO-bit content) resulting in relatively large values in the autocorrelation matrix. This requires high bit depth operation during the model parameters calculation. It is proposed to remove fixed offsets from luma and chroma samples in each PU for each model. This is driving down the magnitudes of the values used in the model creation and allows reducing the precision needed for the fixed- point arithmetic. As a result, 16-bit decimal precision is proposed to be used instead of the 22- bit precision of the original CCCM implementation.
- offsetLuma, offsetCb and offsetCr Reference sample values just outside of the top-left comer of the PU are used as the offsets (offsetLuma, offsetCb and offsetCr) for simplicity.
- the samples values used in both model creation and final prediction i.e., luma and chroma in the reference area, and luma in the current PU are reduced by these fixed values, as follows:
- the chroma offset can be removed by deducting the chroma offset directly from the reference chroma samples. As an alternative way, impact of the chroma offset can be removed from the cross-component vector giving identical result. In order to add the chroma offset back to the output of the convolutional prediction operation the chroma offset is added to the bias term of the convolutional model.
- CCCM model parameter calculation requires division operations. Division operations are not always considered implementation friendly. The division operation is replaced with multiplication (with a scale factor) and shift operation, where scale factor and number of shifts are calculated based on denominator similar to the method used in calculation of CCLM parameters.
- a gradient linear model (GLM) method can be used to predict the chroma samples from luma sample gradients.
- Two modes are supported: a two- parameter GLM mode and a three-parameter GLM mode.
- the two- parameter GLM utilizes luma sample gradients to derive the linear model. Specifically, when the two-parameter GLM is applied, the input to the CCLM process, i.e., the down-sampled luma samples L, are replaced by luma sample gradients G. The other parts of the CCLM (e.g., parameter derivation, prediction sample linear transform) are kept unchanged.
- a chroma sample can be predicted based on both the luma sample gradients and down-sampled luma values with different parameters.
- the model parameters of the three-parameter GLM are derived from 6 rows and columns adjacent samples by the LDL decomposition based MSE minimization method as used in the CCCM.
- CCCM Usage of the mode is signalled with a CABAC coded PU level flag.
- CABAC coded PU level flag One new CAB AC context was included to support this.
- CCCM is considered a sub-mode of CCLM. That is, the CCCM flag is only signalled if intra prediction mode is LM CHROMA.
- the existing intra TMP scheme can provide significant improvement of intra coding in the ECM, its design can still be further improved.
- the following deficiencies that exist in the current intra TMP design are identified in this disclosure.
- the intra TMP block is further filtered using the linear filter model. More specifically, the intra TMP block is the reference block with the minimum template matching cost in the search range. However, as revealed above, the intra TMP with single hypothesis may be not effective enough. Therefore, it is proposed to combine multihypothesis and linear filter model.
- intra TMP is only enabled for luma component without considering the chroma components. Therefore, it is proposed to enable intra TMP for chroma components.
- multi-hypothesis based intra TMP scheme is proposed.
- multiple template matching blocks are searched and weighted to generate the final prediction block.
- the proposed multi-hypothesis intra TMP can be classified into two categories: fixed multi-hypothesis intra TMP and adaptive intra TMP.
- the prediction block is searched from the reconstructed region in the current frame using the L-shape template.
- the template matching is based on integer pixel.
- fractional-pel template matching for intra TMP mode.
- the interpolation accuracy for fractional-pel template matching can be but not limited to half-pel, quarter-pel and so on.
- one index value can be signaled in the bitstream to indicate the interpolation accuracy used.
- the interpolation accuracy index can be signaled at PPS, SPS or slice header.
- the fractional intra TMP can be divided into two steps.
- the template matching process in the current ECM is conducted to identify the optimal integer predicted template.
- fractional templates surrounding the integer template are interpolated and fractional-pel template matching is conducted.
- FIG. 13 provides an example for half-pel template matching, in which Aij represents integer pixel and represent half pixel.
- the eight half-pel predicted templates are then interpolated.
- the distances between the current template and the optimal integer and the eight half-pel predicted templates are calculated and compared.
- the predicted template which leads to the minimum template matching cost is identified and used as the optimal predicted template.
- the corresponding predicted block of the optimal predicted template is used as the final prediction of the current block.
- the optional template matched block is selected based on an ascending order of template matching cost, and a template leading to a template matching cost lower than template matching cost of other candidates is selected as the optimal template matched block/CU.
- the multi-hypothesis prediction methods are provided in disclosure. In the multi-hypothesis intra TMP, more than one prediction block candidates are used and weighted to generate the final prediction of the current block. Assume that N prediction block candidates are used.
- the prediction block candidates are searched and selected according to the criterion of minimizing template matching cost, i.e., the top N candidates with the minimum template matching cost or costs are selected.
- the template matching cost can be not limited to SAD (sum of absolute difference) and SSE (sum of square error).
- the weighting factors to generate the final prediction block are predefined and fixed at both the encoder and decoder side.
- equal weighting factors can be used, i.e., 1/N for all the candidate blocks.
- the weighting factors can be derived based on the template matching costs. Denote the template matching costs of the N candidates as C 15 C 2 ,. . ., C N , the weighting factors are calculated as follow.
- template matching cost can be measured with (but not limited to) SAD and SSE.
- the weighting factors can be derived at the encoder side and then signaled in the bitstream to the decoder.
- the N prediction block candidates as Pi, P 2 ,..., P N and the current block as X
- the weighting factors can be solved by the following equation: [00179] Equation (5) can be solved using Wiener-Hopf equations as ALE The derived filter coefficients are then quantized to integer type and signaled in the block level.
- the weighting factors are derived based on the templates and the derived weighting factors are applied to the prediction block candidates to generate the final prediction block.
- the templates of the prediction candidates as T r , T 2 ,..., T N and the current block as T, then the weighting factors can be derived using the following equation:
- Equation (6) can be solved using Wiener-Hopf equations. Then the final prediction block can be calculated as represents the i-th prediction block candidate.
- Intra TMP mode exploits the nonlocal correlation to improve the prediction accuracy, in which similar blocks are searched and used to generate the final prediction block.
- examples are provided to combine the nonlocal mean filtering and multihypothesis intra TMP, which is described as follow.
- N prediction block candidates are searched and identified as conducted in the intra TMP of the ECM.
- the weighting factor is calculated as follows.
- the strength of weighting or weighting strength should be determined first.
- several methods are provided to decide the weighting strength.
- a weighting strength candidate list consisting of some typical weighting strength values is defined and fixed at both encoder and decoder side. At the encoder side, the weighting strength values are checked using rate distortion optimization and the optimal weighting strength value is identified and signaled in the bitstream to the decoder side.
- the weighting strength value is estimated using the template of the prediction block candidates and the template of the current block. Denote the templates of the prediction candidates as and the current block as T. Then the weighting strength value can be solved using the following equation:
- the weighting strength value can be estimated using the QP value and variance of the template of the current block, i.e., the relationship between the weighting strength value, QP value and the template variance can be fitted offline.
- singular value decomposition (SVD) is utilized to generate the final prediction block from the prediction block candidates.
- W and H the width and height of the current block
- d H x W.
- Stepl K prediction block candidates y i are searched and identified as conducted in the intra TMP of the ECM.
- Step2 The K prediction block candidates of the current block y construct the block group G and are arranged as a matrix: where Y G is a matrix with size of d x K by arranging every candidate in group G as a column vector.
- Step3. Perform SVD decomposition on the matrix Y G .
- Step4 Apply soft-thresholding operation on the singular value matrix A c .
- softThQ is a function which shrinks the diagonal elements of with the threshold T.
- For the k-th diagonal element in it is shrunken by the nonlinear function is the matrix composed of the shrunken singular values, at diagonal positions.
- Step5. Perform inverse SVD to obtain the filtered patch group.
- One of the key steps is to determine the thresholding values for each diagonal elements in Step 4.
- the thresholding values are calculated as follows.
- the threshold is estimated for each group of image patches with the following equation: [00198] where is the standard deviation of noise, and is the standard deviation of the original block in the k-th dimension of SVD space for group G.
- the deviation of the original block in SVD space is estimated as follow.
- the provided multi-hypothesis intra TMP can be utilized as a replacement of the current intra TMP mode or the encoder can adaptively select intra TMP mode or multi-hypothesis intra TMP mode.
- the provided multi-hypothesis intra TMP is used as a replacement of the current intra TMP mode, i.e., always using multiple hypothesis for prediction.
- one of the multi-hypothesis intra TMP methods in the above sections is used jointly with the current intra TMP mode in the ECM.
- a flag is signaled in the bitstream to indicate whether multi-hypothesis intra TMP mode is applied to the CU.
- more than one multi-hypothesis intra TMP methods in the above sections is used jointly with the current intra TMP mode in the ECM.
- a flag is firstly signaled in the bitstream to indicate whether multi-hypothesis intra TMP mode is applied.
- an index is signaled to indicate which of the multi-hypothesis intra TMP methods is applied to the CU.
- the current intra TMP with linear filter model can be divided into two steps.
- the reference block is firstly obtained with template matching.
- the reference block is filtered with a linear filter to generate the final prediction block, where the filter coefficients are derived using the template.
- only one reference block is utilized, i.e., only one hypothesis, which is less effective.
- multihypothesis is introduced in the first step. Instead of only one reference block, multiple reference blocks are obtained and these reference blocks are utilized to generate a fused block. It should be noted that the methods of generating the fused block is not limited in this disclosure. The fused block is then used as the input of the second step.
- the templates of these reference blocks are also fused with the same method as the reference blocks, the fused template and the template of the current block is utilized to derive the filter coefficients.
- intra TMP is only enabled for luma component while not enabled for chroma component.
- methods are proposed to enable intra TMP for chroma components.
- luma and chroma components share the same partitioning tree, only the template of luma component is utilized for template matching to identify the block vector of the current block.
- the reference blocks for chroma components are the collocated block of the reference block for luma component.
- luma and chroma coding blocks share the same intra TMP flag to indicate the usage of intra TMP mode.
- Luma and chroma components are respectively luma and chroma coding blocks.
- luma and chroma components share the same partitioning tree, the template of luma and two chroma components are utilized for template matching to identify the block vector of the current block.
- the total template matching cost is the weighted results of template matching cost for luma and chroma components.
- luma and chroma coding blocks share the same intra TMP flag to indicate the usage of intra TMP mode.
- the template matching process of luma coding block and two chroma coding blocks are conducted separately.
- the two chroma coding blocks share the same template matching process, i.e., the template matching cost is calculated by summing up the template matching cost for Cb and Cr component.
- luma and chroma coding blocks share the same intra TMP flag to indicate the usage of intra TMP mode.
- the template matching process ofY, U and V coding blocks are all conducted separately.
- luma and chroma coding blocks share the same intra TMP flag to indicate the usage of intra TMP mode.
- template matching search is conducted separately for U and V components.
- One flag is signaled to indicate whether intra TMP is enabled for chroma components.
- template matching search is conducted separately for U and V components.
- One flag is signaled to indicate whether intra TMP is enabled for U component, and another flag is signaled to indicate whether intra TMP is enabled for V component.
- template matching search is conducted jointly for U and V components, i.e., the total template matching cost is the sum of the template matching cost of U and V components.
- One flag is signaled to indicate whether intra TMP is enabled for chroma components.
- CCLM and CCCM are utilize to predict the chroma blocks with the collocated reconstructed luma block. While intra TMP exploits the nonlocal correlations. To exploit both cross-component correlation and nonlocal correlation, it is proposed to combine cross-component prediction and intra TMP for chroma components.
- the current chroma block as B
- the template of the current chroma block as T
- the collocated luma block as B Y
- T y the template of the collocated luma block
- the proposed method can be divided into several steps as described below.
- intra template matching is conducted to generate the reference block and reference template, denoted as PtntraTMP , and T'tntraTMP -
- the reference template includes reference chroma template and reference luma template.
- the template of the current chroma block T, the reference chroma template Tj n traTMP and the template of collocated luma block T Y obtained in the first step are used to derive the parameters of CCLM or CCCM.
- the CCLM or CCCM model denote the CCLM or CCCM model as F - )
- the following equation is solved to derive the parameters of CCLM or CCCM.
- the parameters derived in the second step are applied to the collocated luma block to generate the final prediction B pred of the current chroma block, as described as below.
- the intra prediction block and intra TMP block are weights to generate the final prediction block without further refinement.
- it is proposed to refine the weighted prediction of intra and intra TMP using a linear filter model. The proposed method can be conducted in the following steps.
- the weighted prediction is generated by weighting the intra predicted block and intra TMP block.
- the coefficients of the linear filter are derived from the templates, including the template of the current block, the intra predicted template and the reference template.
- the intra predicted template is generated by conducting intra prediction with the current intra mode.
- the intra predicted template and reference template are fused to generate the fused template.
- the fused template and the current template are used to derive the filter coefficients by solving the least square equation.
- the derived filter coefficients in the second step are applied to the weighted prediction to generate the final prediction.
- the proposed method is always applied to the weighted prediction of intra and intra TMP. No syntax element change is needed.
- the usage of the proposed method is signaled with a flag. If the flag is 1, the linear filter model is applied otherwise the linear filter model is not applied. At the encoder side, RDO is conducted to decide whether the linear filter model is enabled for the block.
- the proposed combination of intra and intra TMP with linear filter model can be applied for both luma component and chroma components.
- FIG. 5 shows a computing environment (or a computing device) 1610 coupled with a user interface 1650.
- 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 can be part of a data processing server.
- the computing environment 1610 includes a processor 1620, a memory 1630, and an Input/Output (I/O) interface 1640.
- I/O Input/Output
- 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
- magnetic memory a magnetic memory
- flash 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. 14 is a flowchart illustrating a method for video decoding according to an example of the present disclosure. Specifically, FIG. 14 shows a method used in the multihypothesis intra TMP with linear filter model that improves the prediction quality of intra TMP with linear filter model.
- Step 1401 the processor 1620, at the side of a decoder, may obtain multiple reference blocks for a current block based on template matching.
- Step 1402 the processor 1620 may obtain a fused reference block based on the multiple reference blocks.
- the processor 1620 may obtain a final prediction block for the current block based on the fused reference block and a linear filter.
- the final prediction block may be obtained by filtering the fused reference block using the linear filter associated with a plurality of filter coefficients.
- filtering the fused reference block using the linear filter associated with the plurality of filter coefficients may be implemented using the following steps including: obtaining a fused template based on the multiple reference blocks; deriving the plurality of filter coefficients based on the fused template and a current template of the current block; and obtaining the final prediction block for the current block by filtering the fused reference block using the linear filter associated with the plurality of filter coefficients.
- the plurality of filter coefficients may be derived by mminimizing the Mean Square Error (MSE) which may be performed by calculating autocorrelation matrix for the fused template input and current template output. Autocorrelation matrix is LDL decomposed and the final filter coefficients are calculated using back-substitution.
- MSE Mean Square Error
- the fused template may be obtained based on the multiple reference blocks by obtaining multiple templates for the multiple reference blocks and obtaining the fused template based on the multiple templates for the multiple reference blocks.
- the fused template may be obtained in the same manner as obtaining the fused reference block based on the multiple reference blocks. For example, for the derivation of the linear filter coefficients, the templates of these reference blocks are also fused with the same method as the reference blocks, the fused template and the template of the current block is utilized to derive the filter coefficients.
- FIG. 15 is a flowchart illustrating a method for video encoding corresponding the method for video decoding as shown in FIG. 14.
- Step 1501 the processor 1620, at the side of an encoder, may obtain multiple reference blocks for a current block based on template matching.
- Step 1502 the processor 1620 may obtain a fused reference block based on the multiple reference blocks.
- Step 1503 the processor 1620 may obtain a final prediction block for the current block based on the fused reference block and a linear filter.
- the final prediction block may be obtained by filtering the fused reference block using the linear filter associated with a plurality of filter coefficients.
- filtering the fused reference block using the linear filter associated with the plurality of filter coefficients may be implemented using the following steps including: obtaining a fused template based on the multiple reference blocks; deriving the plurality of filter coefficients based on the fused template and a current template of the current block; and obtaining the final prediction block for the current block by filtering the fused reference block using the linear filter associated with the plurality of filter coefficients.
- the plurality of filter coefficients may be derived by mminimizing the Mean Square Error (MSE) which may be performed by calculating autocorrelation matrix for the fused template input and current template output. Autocorrelation matrix is LDL decomposed and the final filter coefficients are calculated using back-substitution.
- MSE Mean Square Error
- the fused template may be obtained based on the multiple reference blocks by obtaining multiple templates for the multiple reference blocks and obtaining the fused template based on the multiple templates for the multiple reference blocks.
- the fused template may be obtained in the same manner as obtaining the fused reference block based on the multiple reference blocks. For example, for the derivation of the linear filter coefficients, the templates of these reference blocks are also fused with the same method as the reference blocks, the fused template and the template of the cunent block is utilized to derive the filter coefficients.
- FIG. 16 is a flowchart illustrating a method for video decoding according to an example of the present disclosure. Specifically, FIG. 16 shows the method used in the intra TMP for chroma components.
- the processor 1620 may obtain at least one of a luma template for a luma coding block (CB) or chroma templates for chroma CBs utilized for template matching, where the chroma templates include a first chroma template for a first chroma CB, and a second chroma template for a second chroma CB, where these templates may be utilized for template matching.
- CB luma coding block
- chroma templates for chroma CBs utilized for template matching
- the chroma templates include a first chroma template for a first chroma CB, and a second chroma template for a second chroma CB, where these templates may be utilized for template matching.
- the processor 1620 may calculate a template matching cost between a current template of a current CB and at least one of the luma template, the first chroma template, or the second chroma template.
- Step 1603 the processor 1620 may obtain a final prediction block of the current CB according to the template matching cost.
- the Step 1602 may be implemented by the following steps including: when a dual tree is disabled for inter slices or intra slices in a coding CTU including the current CB, i.e., the luma CB, the first and second chroma CB share a same partitioning tree, calculating the template matching cost between the luma template and a current template of the current CB; and obtaining the final prediction block according to the template matching cost.
- the processor 1620 may further receive a flag indicating whether an intra template matching prediction (TMP) is enabled to the luma CB and the chroma CBs when the dual tree is disabled for the inter slices or the intra slices, and obtain the luma template for the luma CB based on template matching in response to determining that the flag indicates that the intra TMP is enabled to the luma CB and the chroma CBs.
- TMP intra template matching prediction
- the Steps 1602 and 1603 may be implemented by the following steps including: when the dual tree is disabled for the inter slices or the intra slices, obtaining a luma template cost between the luma template and the current template of the current CB, a first chroma template cost between the first chroma template and the current template, and a second chroma template cost between the second chroma template and the current template, calculating a total template matching cost as the template matching cost by weighting the luma template cost, the first chroma template cost, and the second chroma template cost, and obtaining the final prediction block according to the total template matching cost.
- the total template matching cost may be obtained by: where a> may be a predefined empirical value.
- the processor 1620 may further receive a flag indicating whether an intra TMP is enabled to the luma CB and the first and second chroma CBs when the dual tree is disabled for the inter slices or the intra slices and obtain the luma template for the luma CB, the first chroma template for the first chroma CB, and the second chroma template for the second chroma CB in response to determining that the flag indicates that the intra TMP is enabled to the luma CB and the first and second chroma CBs.
- luma and chroma coding blocks may share the same flag, i.e., intra TMP flag, to indicate the usage of intra TMP mode.
- the Steps 1602 and 1603 may be implemented by the following steps including: when the dual tree is disabled for the inter slices or the intra slices, obtaining a luma template cost between the luma template and the current template of the current CB, a first chroma template cost between the first chroma template and the current template, and a second chroma template cost between the second chroma template and the current template, obtaining a chroma template cost by adding the first chroma template cost and the second chroma template cost, and obtaining the final prediction block according to the luma template cost and the chroma template cost.
- the processor 1620 may further receive a flag indicating whether an intra TMP is enabled to the luma CB and the chroma CBs when the dual tree is disabled for the inter slices or the intra slices and obtain the luma template for the luma CB, the first chroma template for the first chroma CB and the second chroma template for the second chroma CB in response to determining that the flag indicates that the intra TMP is enabled to the luma CB and the chroma CBs.
- luma and chroma coding blocks may share the same flag, i.e., intra TMP flag, to indicate the usage of intra TMP mode.
- the Steps 1602 and 1603 may be implemented by the following steps including: when the dual tree is disabled for the inter slices or the intra slices, obtaining a luma template matching cost between the luma template and a current template of the current CB and obtaining a luma prediction block based on the luma template matching cost, obtaining a first chroma template matching cost between the first chroma template and the current template and obtaining a first chroma prediction block based on the first chroma template matching cost, obtaining a second chroma template matching cost between the second chroma template and the current template and obtaining a second chroma prediction block based on the second chroma template matching cost, and obtaining the final prediction block based on the luma prediction block, the first chroma prediction block, and the second chroma prediction block.
- the template matching process of Y, U and V coding blocks are all conducted separately.
- the processor 1620 may further receive a flag indicating whether an intra TMP is enabled to the luma CB and the chroma CBs when the dual tree is disabled for the inter slices or the intra slices and obtain the luma template for the luma CB, the first chroma template for the first chroma CB, and the second chroma template for the second chroma CB in response to determining that the flag indicates that the intra TMP is enabled to the luma CB and the chroma CBs.
- luma and chroma coding blocks share the same flag, i.e., intra TMP flag, to indicate the usage of intra TMP mode.
- the Steps 1602 and 1603 may be implemented by the following steps including: when the dual tree is enabled for the intra slices, obtaining a first chroma template matching cost between the first chroma template and a current template of the cunent CB and obtaining a first chroma prediction block based on the first chroma template matching cost, obtain a second chroma template matching cost between the second chroma template and the current template and obtaining a second chroma prediction block based on the second chroma template matching cost, and obtain the final prediction block based on the first and second chroma prediction blocks.
- template matching search is conducted separately for chroma components, i.e., U and V components.
- the processor 1620 may further receive a flag indicating whether an intra template matching prediction (TMP) is enabled for the first and second chroma CBs when the dual tree is enabled for the intra slices and obtain the first chroma template for the first chroma CB and the second chroma template for the second chroma CB in response to determining that the flag indicates that the intra TMP is enabled for the first and second chroma CBs.
- TMP intra template matching prediction
- the processor 1620 may further receive a first flag indicating whether an intra template matching prediction (TMP) is enabled for the first chroma CB and a second flag indicating whether the intra TMP is enabled for the second chroma CB when the dual tree is enabled for the intra slices and obtain the first chroma template for the first chroma CB and the second chroma template for the second chroma CB in response to determining that the first flag indicates that the intra TMP is enabled for the first chroma CB and determining that the second flag indicates that the intra TMP is enabled for the second chroma CB.
- TMP intra template matching prediction
- the Steps 1602 and 1603 may be implemented by the following steps including: when the dual tree is enabled for the intra slices, obtaining a first chroma template matching cost between the first chroma template and a current template of the current CB, obtaining a second chroma template matching cost between the second chroma template and the current template, calculating a chroma template matching cost by adding the first chroma template matching cost and the second chroma template matching cost, and obtaining the final prediction block based on the chroma template matching cost.
- template matching search is conducted jointly for chroma components, i.e., U and V components, and the total template matching cost is the sum of the template matching cost of U and V components.
- the processor 1620 may further receive a flag indicating whether an intra TMP is enabled for the first and second chroma CBs when the dual tree is enabled for the intra slices and obtain the first chroma template for the first chroma CB and the second chroma template for the second chroma CB in response to determining that the flag indicates that the intra TMP is enabled for the first and second chroma CBs.
- 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 may obtain a luma template for a luma CB or chroma templates for chroma CBs utilized for template matching, where the chroma templates include a first chroma template for a first chroma CB and a second chroma template for a second chroma CB, where these templates may be utilized for template matching.
- the processor 1620 may calculate a template matching cost between a current template of a current CB and at least one of the luma template, the first chroma template, or the second chroma template.
- Step 1703 the processor 1620 may obtain a final prediction block of the current CB according to the template matching cost.
- the Step 1702 may be implemented by the following steps including: when a dual tree is disabled for inter slices or intra slices in a coding CTU including the current CB, obtaining the luma template for the luma CB based on template matching; calculating a template matching cost between the luma template and a current template of the current CB; and obtaining the final prediction block according to the template matching cost.
- the processor 1620 may further signal a flag indicating whether an intra template matching prediction (TMP) is enabled to the luma CB and the chroma CBs when the dual tree is disabled for the inter slices or the intra slices, and obtain the luma template for the luma CB based on template matching in response to the flag indicating that the intra TMP is enabled to the luma CB and the chroma CBs.
- TMP intra template matching prediction
- the Steps 1702 and 1703 may be implemented by the following steps including: when the dual tree is disabled for the inter slices or the intra slices, obtaining a luma template cost between the luma template and the current template of the current CB, a first chroma template cost between the first chroma template and the current template, and a second chroma template cost between the second chroma template and the current template, calculating a total template matching cost by weighting the luma template cost, the first chroma template cost, and the second chroma template cost, and obtaining the final prediction block according to the total template matching cost.
- the total template matching cost may be obtained by: where co may be a predefined empirical value.
- the processor 1620 may further signal a flag indicating whether an intra TMP is enabled to the luma CB and the first and second chroma CBs when the dual tree is disabled for the inter slices or the intra slices and obtain the luma template for the luma CB, the first chroma template for the first chroma CB, and the second chroma template for the second chroma CB in response to the flag indicating that the intra TMP is enabled to the luma CB and the first and second chroma CBs.
- luma and chroma coding blocks may share the same flag, i.e., intra TMP flag, to indicate the usage of intra TMP mode.
- the Steps 1702 and 1703 may be implemented by the following steps including: when the dual tree is disabled for the inter slices or the intra slices, obtaining a luma template cost between the luma template and the current template of the current CB, a first chroma template cost between the first chroma template and the current template, and a second chroma template cost between the second chroma template and the current template, obtaining a chroma template cost by adding the first chroma template cost and the second chroma template cost, and obtaining the final prediction block according to the luma template cost and the chroma template cost.
- the processor 1620 may further signal a flag indicating whether an intra TMP is enabled to the luma CB and the chroma CBs when the dual tree is disabled for the inter slices or the intra slices and obtain the luma template for the luma CB, the first chroma template for the first chroma CB and the second chroma template for the second chroma CB in response to the flag indicating that the intra TMP is enabled to the luma CB and the chroma CBs.
- luma and chroma coding blocks may share the same flag, i.e., intra TMP flag, to indicate the usage of intra TMP mode.
- the Steps 1702 and 1703 may be implemented by the following steps including: when the dual tree is disabled for the inter slices or the intra slices, obtaining a luma template matching cost between the luma template and a current template of the current CB and obtaining a luma prediction block based on the luma template matching cost, obtaining a first chroma template matching cost between the first chroma template and the current template and obtaining a first chroma prediction block based on the first chroma template matching cost, obtaining a second chroma template matching cost between the second chroma template and the current template and obtaining a second chroma prediction block based on the second chroma template matching cost, and obtaining the final prediction block based on the luma prediction block, the first chroma prediction block, and the second chroma prediction block.
- the template matching process of Y, U and V coding blocks are all conducted separately.
- the processor 1620 may further signal a flag indicating whether an intra TMP is enabled to the luma CB and the chroma CBs when the dual tree is disabled for the inter slices or the intra slices and obtain the luma template for the luma CB, the first chroma template for the first chroma CB, and the second chroma template for the second chroma CB in response to the flag indicating that the intra TMP is enabled to the luma CB and the chroma CBs.
- luma and chroma coding blocks may share the same flag, i.e., intra TMP flag, to indicate the usage of intra TMP mode.
- the Steps 1702 and 1703 may be implemented by the following steps including: when the dual tree is enabled for the intra slices, obtaining a first chroma template matching cost between the first chroma template and a current template of the current CB and obtaining a first chroma prediction block based on the first chroma template matching cost, obtaining a second chroma template matching cost between the second chroma template and the current template and obtaining a second chroma prediction block based on the second chroma template matching cost, and obtaining the final prediction block based on the first and second chroma prediction blocks.
- template matching search is conducted separately for chroma components, i.e., U and V components.
- the processor 1620 may further signal a flag indicating whether an intra template matching prediction (TMP) is enabled for the first and second chroma CBs when the dual tree is enabled for the intra slices and obtain the first chroma template for the first chroma CB and the second chroma template for the second chroma CB in response to the flag indicating that the intra TMP is enabled for the first and second chroma CBs.
- TMP intra template matching prediction
- the processor 1620 may further signal a first flag indicating whether an intra template matching prediction (TMP) is enabled for the first chroma CB and a second flag indicating whether the intra TMP is enabled for the second chroma CB when the dual tree is enabled for the intra slices and obtain the first chroma template for the first chroma CB and the second chroma template for the second chroma CB in response to the first flag indicating that the intra TMP is enabled for the first chroma CB and determining that the second flag indicates that the intra TMP is enabled for the second chroma CB.
- TMP intra template matching prediction
- the Steps 1702 and 1703 may be implemented by the following steps including: when the dual tree is enabled for the intra slices, obtaining a first chroma template matching cost between the first chroma template and a current template of the current CB, obtaining a second chroma template matching cost between the second chroma template and the current template, calculating a chroma template matching cost by adding the first chroma template matching cost and the second chroma template matching cost, and obtain the final prediction block based on the chroma template matching cost.
- template matching search is conducted jointly for chroma components, i.e., U and V components, and the total template matching cost is the sum of the template matching cost of U and V components.
- the processor 1620 may further signal a flag indicating whether an intra TMP is enabled for the first and second chroma CBs when the dual tree is enabled for the intra slices and obtain the first chroma template for the first chroma CB and the second chroma template for the second chroma CB in response to the flag indicating that the intra TMP is enabled for the first and second chroma CBs.
- FIG. 18 is a flowchart illustrating a method for video decoding according to an example of the present disclosure. The method shown in FIG. 18 is utilized in the combination of cross-component prediction and intra TMP for chroma components.
- the processor 1620 may obtain a reference block of a current block and a reference template of the reference block based on intra template matching, where each of the current block and the reference block includes a luma component and a chroma component, and the reference template of the reference block includes a reference chroma template corresponding to a chroma component of the reference block and a reference luma template corresponding to a collocated luma block.
- the processor 1620 may derive parameters of a cross-component prediction model based on a chroma template of a chroma component of the current block, the reference chroma template, and the reference luma template.
- the cross-component prediction model may include one of following models: a convolutional cross-component model (CCCM) or a cross-component linear model (CCLM).
- CCCM convolutional cross-component model
- CCLM cross-component linear model
- Step 1803 the processor 1620, at the side of the decoder, may obtain a final prediction for the current chroma block by applying the parameters of the cross-component prediction model to the collocated luma block.
- FIG. 19 is a flowchart illustrating a method for video encoding corresponding to the method illustrated in FIG. 18 according to an example of the present disclosure.
- the processor 1620 may obtain a reference block of a current block and a reference template of the reference block based on intra template matching, where each of the current block and the reference block includes a luma component and a chroma component, and the reference template of the reference block includes a reference chroma template corresponding to a chroma component of the reference block and a reference luma template corresponding to a collocated luma block.
- the processor 1620 may derive parameters of a cross-component prediction model based on a chroma template of a chroma component of the current block, the reference chroma template, and the reference luma template.
- the cross-component prediction model may include one of following models: a convolutional cross-component model (CCCM) or a cross-component linear model (CCLM).
- CCCM convolutional cross-component model
- CCLM cross-component linear model
- the processor 1620 may obtain a final prediction for the current chroma block by applying the parameters of the cross-component prediction model to the collocated luma block.
- FIG. 20 is a flowchart illustrating a method for video decoding according to an example of the present disclosure. The method shown in FIG. 20 may be utilized in combination of intra and intra TMP with linear filter model.
- the processor 1620 may generate a weighted prediction by weighting an intra predicted block and an intra template matching prediction (TMP) block. For example, the processor 1620 may apply weights to the intra predicted block and the intra TMP block and then generated the weighted prediction based on the weight sum of the intra predicted block and the intra TMP block.
- TMP intra template matching prediction
- the processor 1620 may derive coefficients of a linear filter from a plurality of templates including a current template of a current block, an intra predicted template, and a reference template of a reference block.
- the coefficients of the linear filter may be derived by obtaining the intra predicted template by conducting intra prediction with a current intra mode, obtaining a fused template by fusing the intra predicted template and the reference template, and deriving the coefficients of the linear filter using the fused template and the current template to solve a least square equation.
- the processor 1620 may receive a flag indicating whether the linear filter model applies, and derive the coefficients of the linear filter from the plurality of templates including the current template of the current block, the intra predicted template, and the reference template in response to determining that the flag indicates the linear filter model applies.
- the combination of intra and intra TMP with linear filter model can be used for luma and chroma blocks, separately.
- the coefficients of the linear filter may be derived by deriving the coefficients of the linear filter from the plurality of templates including the current template of the current block, the intra predicted template, and the reference template, where each of the plurality of templates includes one of a luma component or chroma components.
- the processor 1620 at the side of the decoder, may obtain a final prediction by applying the coefficients of the linear filter to the weighted prediction.
- FIG. 21 is a flowchart illustrating a method for video encoding according to an example of the present disclosure.
- the processor 1620 may generate a weighted prediction by weighting an intra predicted block and an intra template matching prediction (TMP) block.
- TMP intra template matching prediction
- the processor 1620 may derive coefficients of a linear filter from a plurality of templates including a current template of a current block, an intra predicted template, and a reference template of a reference block.
- the coefficients of the linear filter may be derived by obtaining the intra predicted template by conducting intra prediction with a current intra mode, obtaining a fused template by Rising the intra predicted template and the reference template, and deriving the coefficients of the linear filter using the fused template and the current template to solve a least square equation.
- the processor 1620 may signal a flag indicating whether the linear filter model applies, and derive the coefficients of the linear filter from the plurality of templates including the current template of the current block, the intra predicted template, and the reference template in response to the flag indicating that the linear filter model applies.
- RDO is conducted to decide whether the linear filter model is enabled for the block.
- the combination of intra and intra TMP with linear filter model can be used for luma and chroma blocks, separately.
- the coefficients of the linear filter may be derived by deriving the coefficients of the linear filter from the plurality of templates including the current template of the current block, the intra predicted template, and the reference template, where each of the plurality of templates includes one of a luma component or chroma components.
- the processor 1620 at the side of the encoder, may obtain a final prediction by applying the coefficients of the linear filter to the weighted prediction.
- an apparatus for video coding 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. 14-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. 3).
- 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. 2) using, for example, the encoding method described above for use by a decoder (for example, the video decoder 30 in FIG. 3) 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 described above or a bitstream to be decoded by the decoding method described above.
- 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.
- 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, where the one or more processors, upon execution of the plurality of programs, are configured to perform the above-described methods.
- processors for example, the processor 1620
- non-transitory computer-readable storage medium or the memory 1630 having stored therein a plurality of programs executable by the one or more processors, where 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.
- ASICs application-specific integrated circuits
- DSPs Digital Signal Processing Devices
- PLDs Programmable Logic Devices
- FPGAs field-programmable Logic Devices
- GPUs GPUs
- controllers micro-controllers
- microprocessors microprocessors, or other electronic components, for performing the above methods.
- bitstream comprising storing the bitstream on a digital storage medium, where the bitstream includes encoded video information generated by the encoding method described above or encoded video information to be decoded by the decoding method described above.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
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 obtain multiple reference blocks for a current block based on template matching. Additionally, the decoder may obtain a fused reference block based on the multiple reference blocks. Moreover, the decoder may obtain a final prediction block for the current block based on the fused reference block and a linear filter.
Description
METHODS AND DEVICES ON INTRA TEMPLATE MATCHING PREDICTION
CROSS-REFERENCE TO RELATED APPLICATION
[0001] The present application is based upon and claims priority to U.S. Provisional Application No. 63/447,040, entitled “Methods and Devices on Intra Template Matching Prediction,” filed on Feb. 20, 2023, 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 to improve the coding efficiency of intra template matching prediction mode.
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 (AV C/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 coding efficiency of intra Template Matching Prediction (TMP) method in a video encoding or decoding process.
[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 multiple reference blocks for a current block based on template matching, obtain a fused reference block based on the multiple reference blocks, and obtain a final prediction block for the current block based on the fused reference block and a linear filter.
[0006] According to a second aspect of the present disclosure, there is provided a method for video encoding. In the method, an encoder may obtain multiple reference blocks for a current block based on template matching, obtain a fused reference block based on the multiple reference blocks, and obtain a final prediction block for the current block based on the fused reference block and a linear filter.
[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 at least one of a luma template for a luma coding block (CB), or chroma templates for chroma CBs utilized for template matching, where the chroma templates include a first chroma template for a first chroma CB and a second chroma template for a second chroma CB. Furthermore, the decoder may calculate a template matching cost between a current template of a current CB and at least one of the luma template, the first chroma template, or the second chroma template and obtain a final prediction block of the current CB according to the template matching cost.
[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 at least one of a luma template for a luma CB or chroma templates for chroma CBs utilized for template matching, where the chroma templates include a first chroma template for a first chroma CB and a second chroma template for a second chroma CB. Furthermore, the encoder may calculate a template matching cost between a current template of a current CB and at least one of the luma template, the first chroma template, or the second chroma template and obtain a final prediction block of the current CB according to the template matching cost.
[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 reference block of a current block and a reference template of the reference block based on intra template matching, where each of the current block and the reference block includes a luma component and a chroma component, the reference template of the reference block includes a reference chroma template corresponding to a chroma component of the reference block and a reference luma template corresponding to a collocated luma block. Furthermore, the decoder may derive parameters of a cross-component prediction model based on a chroma template of a chroma component of
the current block, the reference chroma template, and the reference luma template of a collocated luma block. Moreover, the decoder may obtain a final prediction for the current chroma block by applying, the parameters of the cross-component prediction model to the collocated luma block.
[0010] According to a sixth aspect of the present disclosure, there is provided a method for video encoding. In the method, an encoder may obtain a reference block of a current block and a reference template of the reference block based on intra template matching, where each of the current block and the reference block includes a luma component and a chroma component, and the reference template of the reference block includes a reference chroma template corresponding to a chroma component of the reference block and a reference luma template corresponding to a collocated luma block. Furthermore, the encoder may derive parameters of a cross-component prediction model based on a chroma template of a chroma component of the current block, the reference chroma template, and the reference luma template of a collocated luma block. Moreover, the encoder may obtain a final prediction for the current chroma block by applying, the parameters of the cross-component prediction model to the collocated luma block.
[0011] According to a seventh aspect of the present disclosure, there is provided a method for video decoding. In the method, a decoder may generate a weighted prediction by weighting an intra predicted block and an intra template matching prediction (TMP) block, derive coefficients of a linear filter from a plurality of templates including a current template of a current block, an intra predicted template, and a reference template of a reference block, and obtain a final prediction by applying the coefficients of the linear filter to the weighted prediction.
[0012] According to an eighth aspect of the present disclosure, there is provided a method for video encoding. In the method, an encoder may generate a weighted prediction by weighting an intra predicted block and an intra TMP block, derive coefficients of a linear filter from a plurality of templates including a current template of a current block, an intra predicted template, and a reference template of a reference block, and obtain a final prediction by applying the coefficients of the linear filter to the weighted prediction.
[0013] According to a ninth 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 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, the fifth
aspect, or the seventh aspect.
[0014] According to a tenth 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, the sixth aspect, or eighth aspect.
[0015] According to an eleventh 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, the fifth aspect, or the seventh aspect.
[0016] According to a twelfth 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, the sixth aspect, or eighth aspect.
[0017] According to a thirteenth 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, the fifth aspect, or the seventh aspect.
[0018] According to a fourteenth 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, the sixth aspect, or eighth aspect.
BRIEF DESCRIPTION OF THE DRAWINGS
[0019] 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.
[0020] FIG. 1 is a block diagram illustrating an exemplary system for encoding and decoding video blocks in accordance with some examples of the present disclosure.
[0021] FIG. 2 is a block diagram illustrating an exemplary video encoder in accordance with some examples of the present disclosure.
[0022] FIG. 3 is a block diagram illustrating an exemplary video decoder in accordance with some examples of the present disclosure.
[0023] FIGS. 4 A through 4E are block diagrams illustrating how a frame is recursively partitioned into multiple video blocks of different sizes and shapes in accordance with some examples of the present disclosure.
[0024] FIG. 5 is a diagram illustrating a computing environment coupled with a user interface according to some examples of the present disclosure.
[0025] FIG. 6 illustrates a diagram of Intra template matching search area used in accordance with some examples of the present disclosure.
[0026] FIG. 7 illustrates the use of Intra TMP block vector for IBC block in accordance with some examples of the present disclosure.
[0027] FIG. 8 illustrates spatial locations for a linear filter model in accordance with some examples of the present disclosure.
[0028] FIG. 9 illustrates the reference area used to derive the filter coefficients of the linear filter model in accordance with some examples of the present disclosure.
[0029] FIG. 10 illustrates a diagram of locations of left and above samples of a CU involved in a Cross-Component Linear Model (CCLM) prediction in accordance with some examples of the present disclosure.
[0030] FIG. 11 illustrates the reference area (with its paddings) used to derive the filter coefficients of CCCM in accordance with some examples of the present disclosure;
[0031] FIG. 12 illustrates the four Sobel based gradient patterns for GLM in accordance with some examples of the present disclosure.
[0032] FIG. 13 illustrates a diagram of half-pel interpolation and template matching search in accordance with some examples of the present disclosure;
[0033] FIG. 14 is a flow chart illustrating a method for video decoding in accordance with some examples of the present disclosure.
[0034] FIG. 15 is a flow chart illustrating a method for video encoding corresponding to the method for video decoding as shown in FIG. 14 in accordance with some examples of the present disclosure.
[0035] FIG. 16 is a flow chart illustrating a method for video decoding in accordance with some examples of the present disclosure.
[0036] 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.
[0037] FIG. 18 is a flow chart illustrating a method for video decoding in accordance with some examples of the present disclosure.
[0038] 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.
[0039] FIG. 20 is a flow chart illustrating a method for video decoding in accordance with some examples of the present disclosure.
[0040] 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
[0041] Reference will now be made in detail to specific examples, examples of which are illustrated in the accompanying drawings. In the following detailed description, numerous nonlimiting 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.
[0042] 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.
[0043] 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.
[0044] Throughout the disclosure, “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.
[0045] The terms “module,” “sub-module,” “circuit,” “sub-circuit,” “circuitry,” “subcircuitry,” “unit,” or “sub-unit” may include memory (shared, dedicated, or group) that stores code or 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.
[0046] 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.
[0047] 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.
[0048] FIG. 1 is a block diagram illustrating an exemplary system 10 for encoding and decoding video blocks in parallel in accordance with some examples of the present disclosure. As shown in FIG. 1, 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 examples, the source device 12 and the destination device 14 are equipped with wireless communication capabilities.
[0049] In some examples, 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 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.
[0050] In some other examples, 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.
[0051] As shown in FIG. 1, 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 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 examples described in the present application may be applicable to video coding in general, and may be applied to wireless and/or wired applications.
[0052] 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.
[0053] 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.
[0054] In some examples, 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.
[0055] 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. [0056] 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.
[0057] 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. 1, 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. 3, 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 (laaS). 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. 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.
[00S8] FIG. 2 is a block diagram illustrating another exemplary video encoder 20 in accordance with some examples 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.
[0059] As shown in FIG. 2, 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 examples, 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 (CCS AO) 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 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.
[0060] 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. 1. 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.
[0061] As shown in FIG. 2, 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, 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.
[0062] 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, intramode indicators, partition information, and other such syntax information, to the entropy encoding unit 56.
[0063] 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.
[0064] In some examples, 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 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.
[0065] 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 examples, 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.
[0066] 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.
[0067] 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 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.
[0068] In some examples, 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 intraprediction 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. Ratedistortion 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.
[0069] 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 examples 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 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.
[0070] 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. [0071] 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.
[0072] 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.
[0073] 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.
[0074] 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. 1, or archived in the storage device 32 as shown in FIG. 1 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.
[0075] 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.
[0076] 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.
[0077] FIG. 3 is another block diagram illustrating an exemplary video decoder 30 in
accordance with some examples 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. 2. 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 generate prediction data based on intra-prediction mode indicators received from the entropy decoding unit 80.
[0078] In some examples, a unit of the video decoder 30 may be tasked to perform the examples of the present application. Also, in some examples, the examples 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 examples 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.
[0079] 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. 3. 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.
[0080] 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 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.
[0081] 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.
[0082] 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.
[0083] 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.
[0084] 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.
[0085] 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.
[0086] 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. [0087] 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.
[0088] 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. 1.
[0089] 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.
[0090] As shown in FIG. 4A, 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 128x128, 64x64, 32x32, and 16x16. But it should be noted that the present application is not necessarily limited to a particular size. As shown in FIG. 4B, 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.
[0091] 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. 4B-4E 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. 4C, 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. 4D depicts a quad-tree data structure illustrating the end result of the partition process of the CTU 400 as depicted in FIG. 4C, each leaf node of the quad-tree corresponding to one CU of a respective size ranging from 32x32 to 8x8. Like the CTU depicted in FIG. 4B, 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. 4C and 4D is only for illustrative purposes and one CTU can be split into CUs to adapt to varying local characteristics based on quad/temary/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 FIG. 4E, 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.
[0092] In some examples, 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.
[0093] 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.
[0094] 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. 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.
[0095] Furthermore, as illustrated in FIG. 4C, 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 nonsquare) 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.
[0096] 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.
[0097] 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. 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.
[0098] 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.
[0099] 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 interprediction). 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.
[00100] 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.
[00101] Instead of encoding, into the video bit stream, an actual motion vector of the cunent CU determined by the motion estimation unit 42 as described above in connection with FIG. 2, the motion vector predictor of the current CU is subtracted from the actual motion vector of the cunent 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 42 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.
[00102] Like the process of choosing a predictive block in a reference frame during interframe 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.
[00103] In general, the basic intra prediction scheme applied in VVC is almost kept the same as that of HEVC, except that several prediction tools are further extended, added and/or improved, e.g., extended intra prediction with wide-angle intra modes, Multiple Reference Line (MRL) intra prediction, PDPC, Intra Sub-Partition (ISP) prediction, CCLM prediction, MIP and intra template matching prediction (TMP).
[00104] In the ECM, intra template matching prediction (intra TMP) is utilized to improve the compression efficiency of intra coding. In the following, intra TMP technique and its improvement methods are provided.
Intra template matching prediction
[00105] Intra template matching prediction (Intra TMP) is a special intra prediction mode that copies the best prediction block from the reconstructed part of the current frame, whose L- shaped template matches the current template. For a predefined search range, the encoder searches for the most similar template to the current template in a reconstructed part of the current frame and uses the corresponding block as a prediction block. The encoder then signals the usage of this mode, and the same prediction operation is performed at the decoder side.
[00106] The prediction signal is generated by matching the L-shaped causal neighbor of the current block with another block in a predefined search area in FIG. 6 consisting of:
• R1 : current CTU
• R2: top-left CTU
• R3: above CTU
• R4: left CTU
[00107] Sum of absolute differences (SAD) is used as a cost function.
[00108] Within each region, the decoder searches for the template that has least SAD with respect to the current one and uses its corresponding block as a prediction block.
[00109] The dimensions of all regions (SearchRange w, SearchRange h) are set
proportional to the block dimension (BlkW, BlkH) to have a fixed number of SAD comparisons per pixel. That is:
SearchRange w = a * BlkW
SearchRange h = a * BlkH where ‘a’ is a constant that controls the gain/complexity trade-off. In practice, ‘a’is equal to 5. [00110] The Intra template matching tool is enabled for CUs with size less than or equal to 64 in width and height. This maximum CU size for Intra template matching is configurable.
[00111] The Intra template matching prediction mode is signaled at CU level through a dedicated flag when DIMD is not used for current CU.
Intra TMP derived block vector candidates for IBC
[00112] In this method, block vector (BV) derived from the intra template matching prediction (IntraTMP) is used for intra block copy (IBC). The stored IntraTMP BV of the neighbouring blocks along with IBC BV are used as spatial BV candidates in IBC candidate list construction.
[00113] IntraTMP block vector is stored in the IBC block vector buffer and, the current IBC block can use both IBC BV and IntraTMP BV of neighbouring blocks as BV candidate for IBC BV candidate list as shown in FIG. 7.
Intra TMP with linear filter model
[00114] In JVET-AC0109, it is proposed to apply a linear filter model for the prediction of Intra TMP (Intra TMP-FLM). The proposed 6-tap filter consist of a 5-tap plus sign shape spatial component and a bias term. The input to the spatial 5-tap component of the filter consists of a center (C) sample in the reference block which is at corresponding locations with the sample in the current block to be predicted and its above/north (N), below/south (S), left/west (W) and right/east (E) neighbors as illustrated in FIG. 8.
[00115] The bias term B represents a scalar offset between the input and output and is set to middle luma value (512 for 10-bit content).
[00116] Output of the filter is calculated as follows: predLumaVal = cOC + clN + c2S + c3E + c4W + c5B
[00117] The filter coefficients ci are calculated by minimising the MSE between the reference template and current template, as shown in FIG. 9. The extensions to the area shown in dotted area needed to support the “side samples” of the plus shaped spatial filter and are padded when in unavailable areas.
[00118] The MSE minimization is performed by calculating autocorrelation matrix for the reference template input and current template output. Autocorrelation matrix is LDL
decomposed and the final filter coefficients are calculated using back-substitution.
[00119] Usage of the Intra TMP-FLM mode is signalled coded CU level flag. Specifically, Intra TMP-FLM is considered a sub-mode of Intra TMP. That is, Intra TMP-FLM flag is only signalled if Intra TMP flag is true.
Combination of intra and intra TMP
[00120] In the JVET-AC meeting, several methods are proposed to fuse the prediction of intra mode and intra TMP mode. For example, in the JVET-AC0097, it is proposed to combine intra prediction and intra TMP with the geometric partitioning. In the JVET-AC0201, the spatial CIIP mode is proposed, in which the intra prediction and intra TMP can be fused in the way of CIIP.
CCLM prediction
[00121] To reduce the cross-component redundancy, a CCLM prediction mode is used in VVC, where chroma samples of a CU are predicted based on reconstructed luma samples recL(i, j) of the CU by using a linear model as follows:
[00122] where predc(i,j) represents predicted chroma samples in the CU, recL'(i, j) represents down-sampled reconstructed luma samples of the CU which are obtained by performing down-sampling on the reconstructed luma samples recL(i, j), and a and p are linear model parameters which are derived from at most four neighbouring chroma samples and their corresponding down-sampled luma samples. Suppose that a current chroma block has a size of W*H, then W’ and H’ are obtained as follows:
- W’ = W, H’ = H when an LM mode is applied;
- W’ =W + H when an LM_A mode is applied;
- H’ = H + W when an LM_L mode is applied.
[00123] where in the LM mode, above samples and left samples of the CU are used together to calculate the linear model coefficients; in the LM_A mode, only the above samples of the CU are used to calculate the linear model coefficients; and in the LM_L mode, only the left samples of the CU are used to calculate the linear model coefficients.
[00124] If locations of above samples of a chroma block are denoted as S [0, -1] . . .S[W’ - 1, -1] and locations of left samples of the chroma block are denoted as S[— 1, 0]...S[-l, H’ - 1], positions of four neighbouring chroma samples are selected as follows:
- S[W’ / 4, -1], S[ 3 * W74, -1], S[ -1, H’ / 4] and S[ -1, 3 * H74] are selected as the positions of the four neighbouring chroma samples when the LM mode is applied
and both of the above and left samples are available;
- S[ W’ / 8, -1], S[ 3 * W’ / 8, -1], S[ 5 * W’ / 8, -1] and S[ 7 * W’ / 8, -1] are selected as the positions of the four neighbouring chroma samples when the LM_A mode is applied and the above samples are available or when only the above samples are available;
- S[ -1, H’ / 8], S[ -1, 3 * H78], S[ -1, 5 * H’ / 8] and S[ -1, 7 * H’ / 8] are selected as the positions of the four neighbouring chroma samples when the LM_L mode is applied and the left samples are available or when only the left samples are available.
[00125] Four neighbouring luma samples corresponding to the selected locations are obtained by a down-sampling operation and the obtained four neighbouring luma samples are compared four times to find two larger values: X°A and X A and two smaller values: X°B and X1B. Chroma sample values corresponding to the two larger values and the two smaller values are denoted as respectively. Then Xa, Xt, Ya and Y* are derived as:
[00126] Finally, the linear model parameters α and β are obtained according to the following equations.
[00127] FIG. 10 shows a diagram of locations of left and above samples of the CU involved in the CCLM mode, including locations of left and above samples of an N xN chroma block 501 in the CU and locations of left and above samples of an 2Nx 2N luma block 503 in the CU.
[00128] The parameter computation described above is performed as part of the decoding process, and therefore no syntax element is used to convey values of a and 0 from the video encoder 20 to the video decoder 30.
Convolutional cross-component intra prediction model
[00129] In this method, convolutional cross-component model (CCCM) is applied to predict chroma samples from reconstructed luma samples in a similar spirit as done by the current CCLM modes. As with CCLM, the reconstructed luma samples are down-sampled to match the lower resolution chroma grid when chroma sub-sampling is used. Similar to CCLM top,
left or top and left reference samples are used as templates for model derivation.
[00130] Also, similarly to CCLM, there is an option of using a single model or multi-model variant of CCCM. The multi-model variant uses two models, one model derived for samples above the average luma reference value and another model for the rest of the samples (following the spirit of the CCLM design). Multi-model CCCM mode can be selected for PUs which have at least 128 reference samples available.
[00131] Convolutional filter
[00132] The convolutional 7-tap filter consist of a 5-tap plus sign shape spatial component, a nonlinear term and a bias term. The input to the spatial 5-tap component of the filter consists of a center (C) luma sample which is collocated with the chroma sample to be predicted and its above/north (N), below/south (S), left/west (W) and right/east (E) neighbors as illustrated in FIG. 8.
[00133] The nonlinear term P is represented as power of two of the center luma sample C and scaled to the sample value range of the content:
P = (C*C + midVai) » bitDepth
[00134] That is, for 10-bit content it is calculated as:
P = (C*C + 512) » 10
[00135] The bias term B represents a scalar offset between the input and output (similarly to the offset term in CCLM) and is set to middle chroma value (512 for 10-bit content).
[00136] Output of the filter is calculated as a convolution between the filter coefficients ci and the input values and clipped to the range of valid chroma samples: predChromaVal = cOC + clN + c2S + c3E + c4W + c5P + c6B
[00137] Calculation of filter coefficients
[00138] The filter coefficients ci are calculated by minimising MSE between predicted and reconstructed chroma samples in the reference area. FIG. 11 illustrates the reference area which consists of 6 lines of chroma samples above and left of the PU. Reference area extends one PU width to the right and one PU height below the PU boundaries. Area is adjusted to include only available samples. The extensions to the area shown in dotted are needed to support the “side samples” of the plus shaped spatial filter and are padded when in unavailable areas.
[00139] The MSE minimization is performed by calculating autocorrelation matrix for the luma input and a cross-correlation vector between the luma input and chroma output. Autocorrelation matrix is LDL decomposed and the final filter coefficients are calculated using back-substitution. The process follows roughly the calculation of the ALF filter coefficients in ECM, however LDL decomposition was chosen instead of Cholesky decomposition to avoid
using square root operations.
[00140] The autocorrelation matrix is calculated using the reconstructed values of luma and chroma samples. These samples are full range (e.g. between 0 and 1023 for IO-bit content) resulting in relatively large values in the autocorrelation matrix. This requires high bit depth operation during the model parameters calculation. It is proposed to remove fixed offsets from luma and chroma samples in each PU for each model. This is driving down the magnitudes of the values used in the model creation and allows reducing the precision needed for the fixed- point arithmetic. As a result, 16-bit decimal precision is proposed to be used instead of the 22- bit precision of the original CCCM implementation.
[00141] Reference sample values just outside of the top-left comer of the PU are used as the offsets (offsetLuma, offsetCb and offsetCr) for simplicity. The samples values used in both model creation and final prediction (i.e., luma and chroma in the reference area, and luma in the current PU) are reduced by these fixed values, as follows:
• C = C - offsetLuma
• N' = N - offsetLuma
• S' = S - offsetLuma
• E' = E - offsetLuma
• W = W - offsetLuma
• P' = nonLinear(C')
• B = midValue = 1 « (bitDepth - 1) and the chroma value is predicted using the following equation, where offsetChroma is equal to offsetCr and offsetCb for Cr and Cb components, respectively: predChromaVal = cOC + clN' + c2S' + c3E' + c4W + c5P' + c6B + offsetChroma [00142] In order to avoid any additional sample level operations, the luma offset is removed during the luma reference sample interpolation. This can be done, for example, by substituting the rounding term used in the luma reference sample interpolation with an updated offset including both the rounding term and the offsetLuma. The chroma offset can be removed by deducting the chroma offset directly from the reference chroma samples. As an alternative way, impact of the chroma offset can be removed from the cross-component vector giving identical result. In order to add the chroma offset back to the output of the convolutional prediction operation the chroma offset is added to the bias term of the convolutional model.
[00143] The process of CCCM model parameter calculation requires division operations. Division operations are not always considered implementation friendly. The division operation
is replaced with multiplication (with a scale factor) and shift operation, where scale factor and number of shifts are calculated based on denominator similar to the method used in calculation of CCLM parameters.
[00144] Gradient Linear Model
[00145] For YUV 4:2:0 color format, a gradient linear model (GLM) method can be used to predict the chroma samples from luma sample gradients. Two modes are supported: a two- parameter GLM mode and a three-parameter GLM mode.
[00146] Compared with the CCLM, instead of down-sampled luma values, the two- parameter GLM utilizes luma sample gradients to derive the linear model. Specifically, when the two-parameter GLM is applied, the input to the CCLM process, i.e., the down-sampled luma samples L, are replaced by luma sample gradients G. The other parts of the CCLM (e.g., parameter derivation, prediction sample linear transform) are kept unchanged.
[00147] In the three-parameter GLM, a chroma sample can be predicted based on both the luma sample gradients and down-sampled luma values with different parameters. The model parameters of the three-parameter GLM are derived from 6 rows and columns adjacent samples by the LDL decomposition based MSE minimization method as used in the CCCM.
[00148] For signaling, when the CCLM mode is enabled to the current CU, one flag is signaled to indicate whether GLM is enabled for both Cb and Cr components; if the GLM is enabled, another flag is signaled to indicate which of the two GLM modes is selected and one syntax element is further signaled to select one of 4 gradient filters for the gradient calculation. The four gradient filters for the GLM are illustrated in FIG. 12.
[00149] Bitstream signalling
[00150] Usage of the mode is signalled with a CABAC coded PU level flag. One new CAB AC context was included to support this. When it comes to signalling, CCCM is considered a sub-mode of CCLM. That is, the CCCM flag is only signalled if intra prediction mode is LM CHROMA.
[00151] Although the existing intra TMP scheme can provide significant improvement of intra coding in the ECM, its design can still be further improved. For example, the following deficiencies that exist in the current intra TMP design are identified in this disclosure.
[00152] First, in the current intra TMP, only integer-pel based template search is utilized while neglecting fractional interpolation, i.e., only integer-pel template matching block is used
as the prediction block. It is known that fractional interpolation can improve the accuracy of prediction in inter-prediction, therefore the neglect of fractional interpolation makes the current intra TMP less effective.
[00153] Second, in the current intra TMP, only one hypothesis is utilized, i.e., the best matching block which leads to the minimum matching cost is selected as the final prediction. However, single hypothesis may be vulnerable to the noise, making the prediction less accurate. Besides, it has been proved that in the inter prediction the introduction of multiple hypothesis can improve the prediction accuracy. Based on the above analysis, it is reasonable to propose multi-hypothesis based intra TMP.
[00154] Third, in the JVET-AC0109, the intra TMP block is further filtered using the linear filter model. More specifically, the intra TMP block is the reference block with the minimum template matching cost in the search range. However, as revealed above, the intra TMP with single hypothesis may be not effective enough. Therefore, it is proposed to combine multihypothesis and linear filter model.
[00155] Fourth, in the current ECM, intra TMP is only enabled for luma component without considering the chroma components. Therefore, it is proposed to enable intra TMP for chroma components.
[00156] Fifth, in the current methods of combining intra and intra TMP, the fused prediction is directly used as the final prediction without further refinement.
[00157] In this disclosure, methods are proposed to further improve the compression efficiency of the intra TMP in the ECM. In general, the main features of the proposed methods in this disclosure are summarized as follows.
[00158] First, to improve the prediction accuracy of intra TMP, it is proposed to utilized fractional-pel template matching. The integer template matching blocks can be further refined by using fractional interpolation.
[00159] Second, to improve the accuracy of intra TMP, multi-hypothesis based intra TMP scheme is proposed. In the proposed scheme, multiple template matching blocks are searched and weighted to generate the final prediction block. According to the derivation of the weighting factors, the proposed multi-hypothesis intra TMP can be classified into two categories: fixed multi-hypothesis intra TMP and adaptive intra TMP.
[00160] Third, to further improve the prediction accuracy of intra TMP with linear filter model, multi-hypothesis is introduced where intra TMP is conducted with multiple hypothesis followed by the linear filter model.
[00161] Fourth, to further improve the prediction of chroma components, it is proposed to
enable intra TMP for chroma components.
[00162] Fifth, to exploit the cross-component correlation between luma and chroma components, it is proposed to combine cross-component prediction and intra TMP for chroma components.
[00163] Sixth, to further improve the prediction of combining intra and intra TMP, the linear filter model is utilized to refine the fused prediction.
Fractional Intra TMP
[00164] In the current intra TMP mode, the prediction block is searched from the reconstructed region in the current frame using the L-shape template. In the template matching process, the best prediction block which leads to the minimum matching cost is identified and used as the final prediction block. In the current example of intra TMP, the template matching is based on integer pixel. To further improve the coding performance of the intra TMP mode, in this disclosure examples are provided to utilize fractional-pel template matching for intra TMP mode. The interpolation accuracy for fractional-pel template matching can be but not limited to half-pel, quarter-pel and so on.
[00165] In one or another embodiment, one index value can be signaled in the bitstream to indicate the interpolation accuracy used. The interpolation accuracy index can be signaled at PPS, SPS or slice header.
[00166] In one or another embodiment, the fractional intra TMP can be divided into two steps. In the first step, the template matching process in the current ECM is conducted to identify the optimal integer predicted template. In the second step, fractional templates surrounding the integer template are interpolated and fractional-pel template matching is conducted. FIG. 13 provides an example for half-pel template matching, in which Aij represents integer pixel and represent half pixel. After the optimal integer
predicted template is identified, the eight half-pel predicted templates are then interpolated. The distances between the current template and the optimal integer and the eight half-pel predicted templates are calculated and compared. The predicted template which leads to the minimum template matching cost is identified and used as the optimal predicted template. The corresponding predicted block of the optimal predicted template is used as the final prediction of the current block.
Multi-hypothesis Intra TMP
[00167] In the current ECM, only the optimal template matched block which leads to the minimum template matching cost is used for prediction. In some examples, the optional
template matched block is selected based on an ascending order of template matching cost, and a template leading to a template matching cost lower than template matching cost of other candidates is selected as the optimal template matched block/CU. To further improve the prediction accuracy of intra TMP, the multi-hypothesis prediction methods are provided in disclosure. In the multi-hypothesis intra TMP, more than one prediction block candidates are used and weighted to generate the final prediction of the current block. Assume that N prediction block candidates are used.
[00168] Prediction block candidate derivation
[00169] In one and another embodiment, the prediction block candidates are searched and selected according to the criterion of minimizing template matching cost, i.e., the top N candidates with the minimum template matching cost or costs are selected. The template matching cost can be not limited to SAD (sum of absolute difference) and SSE (sum of square error).
[00170] Fixed multi-hypothesis intra TMP
[00171] In this embodiment, the weighting factors to generate the final prediction block are predefined and fixed at both the encoder and decoder side. As an example, equal weighting factors can be used, i.e., 1/N for all the candidate blocks.
[00172] Adaptive multi-hypothesis intra TMP
[00173] To adapt to the diverse characteristics of video content, examples of adaptive multihypothesis intra TMP methods are also provided.
[00174] Method 1
[00175] In one and another embodiment, the weighting factors can be derived based on the template matching costs. Denote the template matching costs of the N candidates as C15 C2,. . ., CN, the weighting factors are calculated as follow.
[00176] It should be noted that the template matching cost can be measured with (but not limited to) SAD and SSE.
[00177] Method 2
[00178] In yet another embodiment, the weighting factors can be derived at the encoder side and then signaled in the bitstream to the decoder. Denote the N prediction block candidates as Pi, P2,..., PN and the current block as X, then the weighting factors can be solved by the following equation:
[00179] Equation (5) can be solved using Wiener-Hopf equations as ALE The derived filter coefficients are then quantized to integer type and signaled in the block level.
[00180] Method 3
[00181] In yet another embodiment, the weighting factors are derived based on the templates and the derived weighting factors are applied to the prediction block candidates to generate the final prediction block. Denote the templates of the prediction candidates as Tr, T2,..., TN and the current block as T, then the weighting factors can be derived using the following equation:
[00182] Equation (6) can be solved using Wiener-Hopf equations. Then the final prediction block can be calculated as represents the i-th prediction block candidate.
[00184] Intra TMP mode exploits the nonlocal correlation to improve the prediction accuracy, in which similar blocks are searched and used to generate the final prediction block. In this embodiment, examples are provided to combine the nonlocal mean filtering and multihypothesis intra TMP, which is described as follow. In the first step, N prediction block candidates are searched and identified as conducted in the intra TMP of the ECM. In the second step, the weighting factor is calculated as follows.
[00185] where Z)£ is used to measure the distance between the template of the i-th prediction block candidate and the template of the current block, h is used as the strength of weighting and Z[i] is the normalization constant:
[00186] To calculate the weighting factor in equation (7), the strength of weighting or weighting strength should be determined first. In this disclosure, several methods are provided to decide the weighting strength.
[00187] In the first method, a weighting strength candidate list consisting of some typical weighting strength values is defined and fixed at both encoder and decoder side. At the encoder side, the weighting strength values are checked using rate distortion optimization and the optimal weighting strength value is identified and signaled in the bitstream to the decoder side. [00188] In the second method, the weighting strength value is estimated using the template of the prediction block candidates and the template of the current block. Denote the templates of the prediction candidates as and the current block as T. Then the weighting
strength value can be solved using the following equation:
[00189] In the third method, the weighting strength value can be estimated using the QP value and variance of the template of the current block, i.e., the relationship between the weighting strength value, QP value and the template variance can be fitted offline.
[00190] Method 5
[00191] To better exploit the nonlocal correlation in the intra TMP, in this embodiment singular value decomposition (SVD) is utilized to generate the final prediction block from the prediction block candidates. The width and height of the current block are denoted as W and H, the area of the current block is denoted as d = H x W.
[00192] Stepl. K prediction block candidates yi are searched and identified as conducted in the intra TMP of the ECM.
[00193] Step2. The K prediction block candidates of the current block y construct the block group G and are arranged as a matrix:
where YG is a matrix with size of d x K by arranging every candidate in group G as a column vector.
[00195] Step4. Apply soft-thresholding operation on the singular value matrix Ac .
where softThQ is a function which shrinks the diagonal elements of with the threshold T.
For the k-th diagonal element in it is shrunken by the nonlinear function
is the matrix composed of the shrunken singular values, at diagonal positions.
[00196] Step5. Perform inverse SVD to obtain the filtered patch group.
[00197] One of the key steps is to determine the thresholding values for each diagonal elements in Step 4. In this disclosure, the thresholding values are calculated as follows. The threshold is estimated for each group of image patches with the following equation:
[00198] where is the standard deviation of noise, and is the standard deviation of
the original block in the k-th dimension of SVD space for group G. The deviation of the original block in SVD space is estimated as follow.
[00199] where is the k-th singular value of . When o is zero, the soft-
thresholding operation is skipped. In addition, the deviation of noise is estimated with the deviation of the predicted block using a power function which is parameterized with α
and β.
Here represents the i-th pixel of prediction block candidate vector yk.
[00201] Multi-hypothesis intra TMP signaling
[00202] In this disclosure, the provided multi-hypothesis intra TMP can be utilized as a replacement of the current intra TMP mode or the encoder can adaptively select intra TMP mode or multi-hypothesis intra TMP mode.
[00203] In one and another embodiment, the provided multi-hypothesis intra TMP is used as a replacement of the current intra TMP mode, i.e., always using multiple hypothesis for prediction.
[00204] In yet another embodiment, one of the multi-hypothesis intra TMP methods in the above sections is used jointly with the current intra TMP mode in the ECM. A flag is signaled in the bitstream to indicate whether multi-hypothesis intra TMP mode is applied to the CU.
[00205] In yet another embodiment, more than one multi-hypothesis intra TMP methods in the above sections is used jointly with the current intra TMP mode in the ECM. A flag is firstly signaled in the bitstream to indicate whether multi-hypothesis intra TMP mode is applied. Then an index is signaled to indicate which of the multi-hypothesis intra TMP methods is applied to the CU.
Multi-hypothesis intra TMP with linear filter model
[00206] The current intra TMP with linear filter model can be divided into two steps. In the first step, the reference block is firstly obtained with template matching. In the second step, the reference block is filtered with a linear filter to generate the final prediction block, where the filter coefficients are derived using the template. In the current method, only one reference block is utilized, i.e., only one hypothesis, which is less effective.
[00207] To improve the prediction quality of intra TMP with linear filter model, multihypothesis is introduced in the first step. Instead of only one reference block, multiple reference blocks are obtained and these reference blocks are utilized to generate a fused block. It should be noted that the methods of generating the fused block is not limited in this disclosure. The fused block is then used as the input of the second step.
[00208] For the derivation of the linear filter coefficients, the templates of these reference blocks are also fused with the same method as the reference blocks, the fused template and the template of the current block is utilized to derive the filter coefficients.
Intra TMP for chroma components
[00209] In the current ECM, intra TMP is only enabled for luma component while not enabled for chroma component. To exploit the benefit of intra TMP for chroma components, methods are proposed to enable intra TMP for chroma components.
[00210] In one and another embodiment, for inter slices or intra slices with dual tree disabled, luma and chroma components share the same partitioning tree, only the template of luma component is utilized for template matching to identify the block vector of the current block. The reference blocks for chroma components are the collocated block of the reference block for luma component. In this embodiment, luma and chroma coding blocks share the same intra TMP flag to indicate the usage of intra TMP mode. Luma and chroma components are respectively luma and chroma coding blocks.
[00211] In yet another embodiment, for inter slices or intra slices with dual tree disabled, luma and chroma components share the same partitioning tree, the template of luma and two chroma components are utilized for template matching to identify the block vector of the current block. The total template matching cost is the weighted results of template matching cost for luma and chroma components. In this embodiment, luma and chroma coding blocks share the same intra TMP flag to indicate the usage of intra TMP mode.
[00212] In yet another embodiment, for inter slices or intra slices with dual tree disabled, luma and chroma components share the same partitioning tree, the template matching process of luma coding block and two chroma coding blocks are conducted separately. The two chroma coding blocks share the same template matching process, i.e., the template matching cost is calculated by summing up the template matching cost for Cb and Cr component. In this embodiment, luma and chroma coding blocks share the same intra TMP flag to indicate the usage of intra TMP mode.
[00213] In yet another embodiment, for inter slices or intra slices with dual tree disabled, luma and chroma components share the same partitioning tree, the template matching process ofY, U and V coding blocks are all conducted separately. In this embodiment, luma and chroma coding blocks share the same intra TMP flag to indicate the usage of intra TMP mode.
[00214] In yet another embodiment, for intra slices with dual tree enabled, template matching search is conducted separately for U and V components. One flag is signaled to indicate whether intra TMP is enabled for chroma components.
[00215] In yet another embodiment, for intra slices with dual tree enabled, template matching search is conducted separately for U and V components. One flag is signaled to indicate whether intra TMP is enabled for U component, and another flag is signaled to indicate whether intra TMP is enabled for V component.
[00216] In yet another embodiment, for intra slices with dual tree enabled, template matching search is conducted jointly for U and V components, i.e., the total template matching cost is the sum of the template matching cost of U and V components. One flag is signaled to indicate whether intra TMP is enabled for chroma components.
Combination of cross-component prediction and intra TMP for chroma components
[00217] In the current ECM, to exploit the cross-component correlation, CCLM and CCCM are utilize to predict the chroma blocks with the collocated reconstructed luma block. While intra TMP exploits the nonlocal correlations. To exploit both cross-component correlation and nonlocal correlation, it is proposed to combine cross-component prediction and intra TMP for chroma components. Denote the current chroma block as B, the template of the current chroma block as T, the collocated luma block as BY and the template of the collocated luma block as Ty.
[00218] In one example method to combine cross-component prediction and intra TMP, the proposed method can be divided into several steps as described below.
[00219] In the first step, intra template matching is conducted to generate the reference block and reference template, denoted as PtntraTMP , and T'tntraTMP - Here, the reference template includes reference chroma template and reference luma template.
[00220] In the second step, the template of the current chroma block T, the reference chroma template TjntraTMP and the template of collocated luma block TY obtained in the first step are used to derive the parameters of CCLM or CCCM. Denote the CCLM or CCCM model as F - ), the following equation is solved to derive the parameters of CCLM or CCCM.
[00221] In the third step, the parameters derived in the second step are applied to the collocated luma block to generate the final prediction Bpred of the current chroma block, as described as below.
Combination of intra and intra TMP with linear filter model
[00222] In the current combination of intra and intra TMP, the intra prediction block and intra TMP block are weights to generate the final prediction block without further refinement. In this disclosure, it is proposed to refine the weighted prediction of intra and intra TMP using a linear filter model. The proposed method can be conducted in the following steps.
[00223] In the first step, the weighted prediction is generated by weighting the intra predicted block and intra TMP block.
[00224] In the second step, the coefficients of the linear filter are derived from the templates, including the template of the current block, the intra predicted template and the reference template. The intra predicted template is generated by conducting intra prediction with the current intra mode. The intra predicted template and reference template are fused to generate the fused template. The fused template and the current template are used to derive the filter coefficients by solving the least square equation.
[00225] In the third step, the derived filter coefficients in the second step are applied to the weighted prediction to generate the final prediction.
[00226] In this disclosure, several embodiments are proposed to apply the proposed combination of intra and intra TMP with linear filter model.
[00227] In one embodiment, the proposed method is always applied to the weighted prediction of intra and intra TMP. No syntax element change is needed.
[00228] In yet another embodiment, the usage of the proposed method is signaled with a flag. If the flag is 1, the linear filter model is applied otherwise the linear filter model is not applied. At the encoder side, RDO is conducted to decide whether the linear filter model is enabled for the block.
[00229] In one or another embodiment, the proposed combination of intra and intra TMP with linear filter model can be applied for both luma component and chroma components.
[00230] FIG. 5 shows a computing environment (or a computing device) 1610 coupled with a user interface 1650. 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 can be part of a data processing server. The computing environment 1610 includes a processor 1620, a memory 1630, and an Input/Output (I/O) interface 1640.
[00231] 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.
[00232] 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.
[00233] 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.
[00234] FIG. 14 is a flowchart illustrating a method for video decoding according to an example of the present disclosure. Specifically, FIG. 14 shows a method used in the multihypothesis intra TMP with linear filter model that improves the prediction quality of intra TMP with linear filter model.
[00235] In Step 1401, the processor 1620, at the side of a decoder, may obtain multiple reference blocks for a current block based on template matching.
[00236] In Step 1402, the processor 1620 may obtain a fused reference block based on the multiple reference blocks.
[00237] In Step 1403, the processor 1620 may obtain a final prediction block for the current block based on the fused reference block and a linear filter.
[00238] In some examples, the final prediction block may be obtained by filtering the fused
reference block using the linear filter associated with a plurality of filter coefficients.
[00239] In one or more examples, filtering the fused reference block using the linear filter associated with the plurality of filter coefficients may be implemented using the following steps including: obtaining a fused template based on the multiple reference blocks; deriving the plurality of filter coefficients based on the fused template and a current template of the current block; and obtaining the final prediction block for the current block by filtering the fused reference block using the linear filter associated with the plurality of filter coefficients. For example, the plurality of filter coefficients may be derived by mminimizing the Mean Square Error (MSE) which may be performed by calculating autocorrelation matrix for the fused template input and current template output. Autocorrelation matrix is LDL decomposed and the final filter coefficients are calculated using back-substitution.
[00240] In some examples, the fused template may be obtained based on the multiple reference blocks by obtaining multiple templates for the multiple reference blocks and obtaining the fused template based on the multiple templates for the multiple reference blocks. In one or more examples, the fused template may be obtained in the same manner as obtaining the fused reference block based on the multiple reference blocks. For example, for the derivation of the linear filter coefficients, the templates of these reference blocks are also fused with the same method as the reference blocks, the fused template and the template of the current block is utilized to derive the filter coefficients.
[00241] FIG. 15 is a flowchart illustrating a method for video encoding corresponding the method for video decoding as shown in FIG. 14.
[00242] In Step 1501, the processor 1620, at the side of an encoder, may obtain multiple reference blocks for a current block based on template matching.
[00243] In Step 1502, the processor 1620 may obtain a fused reference block based on the multiple reference blocks.
[00244] In Step 1503, the processor 1620 may obtain a final prediction block for the current block based on the fused reference block and a linear filter.
[00245] In some examples, the final prediction block may be obtained by filtering the fused reference block using the linear filter associated with a plurality of filter coefficients.
[00246] In one or more examples, filtering the fused reference block using the linear filter associated with the plurality of filter coefficients may be implemented using the following steps including: obtaining a fused template based on the multiple reference blocks; deriving the plurality of filter coefficients based on the fused template and a current template of the current block; and obtaining the final prediction block for the current block by filtering the fused
reference block using the linear filter associated with the plurality of filter coefficients. For example, the plurality of filter coefficients may be derived by mminimizing the Mean Square Error (MSE) which may be performed by calculating autocorrelation matrix for the fused template input and current template output. Autocorrelation matrix is LDL decomposed and the final filter coefficients are calculated using back-substitution.
[00247] In some examples, the fused template may be obtained based on the multiple reference blocks by obtaining multiple templates for the multiple reference blocks and obtaining the fused template based on the multiple templates for the multiple reference blocks. In one or more examples, the fused template may be obtained in the same manner as obtaining the fused reference block based on the multiple reference blocks. For example, for the derivation of the linear filter coefficients, the templates of these reference blocks are also fused with the same method as the reference blocks, the fused template and the template of the cunent block is utilized to derive the filter coefficients.
[00248] FIG. 16 is a flowchart illustrating a method for video decoding according to an example of the present disclosure. Specifically, FIG. 16 shows the method used in the intra TMP for chroma components.
[00249] In Step 1601, the processor 1620, at the side of a decoder, may obtain at least one of a luma template for a luma coding block (CB) or chroma templates for chroma CBs utilized for template matching, where the chroma templates include a first chroma template for a first chroma CB, and a second chroma template for a second chroma CB, where these templates may be utilized for template matching.
[00250] In Step 1602, the processor 1620 may calculate a template matching cost between a current template of a current CB and at least one of the luma template, the first chroma template, or the second chroma template.
[00251] In Step 1603, the processor 1620 may obtain a final prediction block of the current CB according to the template matching cost.
[00252] In some examples, the Step 1602 may be implemented by the following steps including: when a dual tree is disabled for inter slices or intra slices in a coding CTU including the current CB, i.e., the luma CB, the first and second chroma CB share a same partitioning tree, calculating the template matching cost between the luma template and a current template of the current CB; and obtaining the final prediction block according to the template matching cost.
[00253] In some examples, the processor 1620 may further receive a flag indicating whether an intra template matching prediction (TMP) is enabled to the luma CB and the chroma CBs
when the dual tree is disabled for the inter slices or the intra slices, and obtain the luma template for the luma CB based on template matching in response to determining that the flag indicates that the intra TMP is enabled to the luma CB and the chroma CBs.
[00254] In some examples, the Steps 1602 and 1603 may be implemented by the following steps including: when the dual tree is disabled for the inter slices or the intra slices, obtaining a luma template cost between the luma template and the current template of the current CB, a first chroma template cost between the first chroma template and the current template, and a second chroma template cost between the second chroma template and the current template, calculating a total template matching cost as the template matching cost by weighting the luma template cost, the first chroma template cost, and the second chroma template cost, and obtaining the final prediction block according to the total template matching cost. For example, the total template matching cost may be obtained by:
where a> may be a predefined empirical value.
[00255] In some examples, the processor 1620 may further receive a flag indicating whether an intra TMP is enabled to the luma CB and the first and second chroma CBs when the dual tree is disabled for the inter slices or the intra slices and obtain the luma template for the luma CB, the first chroma template for the first chroma CB, and the second chroma template for the second chroma CB in response to determining that the flag indicates that the intra TMP is enabled to the luma CB and the first and second chroma CBs. In one example, luma and chroma coding blocks may share the same flag, i.e., intra TMP flag, to indicate the usage of intra TMP mode.
[00256] In some examples, the Steps 1602 and 1603 may be implemented by the following steps including: when the dual tree is disabled for the inter slices or the intra slices, obtaining a luma template cost between the luma template and the current template of the current CB, a first chroma template cost between the first chroma template and the current template, and a second chroma template cost between the second chroma template and the current template, obtaining a chroma template cost by adding the first chroma template cost and the second chroma template cost, and obtaining the final prediction block according to the luma template cost and the chroma template cost.
[00257] In one or more examples, the processor 1620 may further receive a flag indicating whether an intra TMP is enabled to the luma CB and the chroma CBs when the dual tree is disabled for the inter slices or the intra slices and obtain the luma template for the luma CB, the first chroma template for the first chroma CB and the second chroma template for the
second chroma CB in response to determining that the flag indicates that the intra TMP is enabled to the luma CB and the chroma CBs. In one example, luma and chroma coding blocks may share the same flag, i.e., intra TMP flag, to indicate the usage of intra TMP mode.
[00258] In some examples, the Steps 1602 and 1603 may be implemented by the following steps including: when the dual tree is disabled for the inter slices or the intra slices, obtaining a luma template matching cost between the luma template and a current template of the current CB and obtaining a luma prediction block based on the luma template matching cost, obtaining a first chroma template matching cost between the first chroma template and the current template and obtaining a first chroma prediction block based on the first chroma template matching cost, obtaining a second chroma template matching cost between the second chroma template and the current template and obtaining a second chroma prediction block based on the second chroma template matching cost, and obtaining the final prediction block based on the luma prediction block, the first chroma prediction block, and the second chroma prediction block. In these examples, the template matching process of Y, U and V coding blocks are all conducted separately.
[00259] In one or more examples, the processor 1620 may further receive a flag indicating whether an intra TMP is enabled to the luma CB and the chroma CBs when the dual tree is disabled for the inter slices or the intra slices and obtain the luma template for the luma CB, the first chroma template for the first chroma CB, and the second chroma template for the second chroma CB in response to determining that the flag indicates that the intra TMP is enabled to the luma CB and the chroma CBs. In these examples, luma and chroma coding blocks share the same flag, i.e., intra TMP flag, to indicate the usage of intra TMP mode.
[00260] In some examples, the Steps 1602 and 1603 may be implemented by the following steps including: when the dual tree is enabled for the intra slices, obtaining a first chroma template matching cost between the first chroma template and a current template of the cunent CB and obtaining a first chroma prediction block based on the first chroma template matching cost, obtain a second chroma template matching cost between the second chroma template and the current template and obtaining a second chroma prediction block based on the second chroma template matching cost, and obtain the final prediction block based on the first and second chroma prediction blocks. In these examples, template matching search is conducted separately for chroma components, i.e., U and V components.
[00261] In one or more examples, the processor 1620 may further receive a flag indicating whether an intra template matching prediction (TMP) is enabled for the first and second chroma CBs when the dual tree is enabled for the intra slices and obtain the first chroma template for
the first chroma CB and the second chroma template for the second chroma CB in response to determining that the flag indicates that the intra TMP is enabled for the first and second chroma CBs.
[00262] In one or more examples, the processor 1620 may further receive a first flag indicating whether an intra template matching prediction (TMP) is enabled for the first chroma CB and a second flag indicating whether the intra TMP is enabled for the second chroma CB when the dual tree is enabled for the intra slices and obtain the first chroma template for the first chroma CB and the second chroma template for the second chroma CB in response to determining that the first flag indicates that the intra TMP is enabled for the first chroma CB and determining that the second flag indicates that the intra TMP is enabled for the second chroma CB.
[00263] In some examples, the Steps 1602 and 1603 may be implemented by the following steps including: when the dual tree is enabled for the intra slices, obtaining a first chroma template matching cost between the first chroma template and a current template of the current CB, obtaining a second chroma template matching cost between the second chroma template and the current template, calculating a chroma template matching cost by adding the first chroma template matching cost and the second chroma template matching cost, and obtaining the final prediction block based on the chroma template matching cost. In these examples, template matching search is conducted jointly for chroma components, i.e., U and V components, and the total template matching cost is the sum of the template matching cost of U and V components.
[00264] In one or more examples, the processor 1620 may further receive a flag indicating whether an intra TMP is enabled for the first and second chroma CBs when the dual tree is enabled for the intra slices and obtain the first chroma template for the first chroma CB and the second chroma template for the second chroma CB in response to determining that the flag indicates that the intra TMP is enabled for the first and second chroma CBs.
[00265] FIG. 17 is a flowchart illustrating a method for video encoding corresponding the method for video decoding as shown in FIG. 16.
[00266] In Step 1701, the processor 1620, at the side of an encoder, may obtain a luma template for a luma CB or chroma templates for chroma CBs utilized for template matching, where the chroma templates include a first chroma template for a first chroma CB and a second chroma template for a second chroma CB, where these templates may be utilized for template matching.
[00267] In Step 1702, the processor 1620 may calculate a template matching cost between
a current template of a current CB and at least one of the luma template, the first chroma template, or the second chroma template.
[00268] In Step 1703, the processor 1620 may obtain a final prediction block of the current CB according to the template matching cost.
[00269] In some examples, the Step 1702 may be implemented by the following steps including: when a dual tree is disabled for inter slices or intra slices in a coding CTU including the current CB, obtaining the luma template for the luma CB based on template matching; calculating a template matching cost between the luma template and a current template of the current CB; and obtaining the final prediction block according to the template matching cost.
[00270] In one or more examples, the processor 1620 may further signal a flag indicating whether an intra template matching prediction (TMP) is enabled to the luma CB and the chroma CBs when the dual tree is disabled for the inter slices or the intra slices, and obtain the luma template for the luma CB based on template matching in response to the flag indicating that the intra TMP is enabled to the luma CB and the chroma CBs.
[00271] In some examples, the Steps 1702 and 1703 may be implemented by the following steps including: when the dual tree is disabled for the inter slices or the intra slices, obtaining a luma template cost between the luma template and the current template of the current CB, a first chroma template cost between the first chroma template and the current template, and a second chroma template cost between the second chroma template and the current template, calculating a total template matching cost by weighting the luma template cost, the first chroma template cost, and the second chroma template cost, and obtaining the final prediction block according to the total template matching cost. For example, the total template matching cost may be obtained by:
where co may be a predefined empirical value.
[00272] In one or more examples, the processor 1620 may further signal a flag indicating whether an intra TMP is enabled to the luma CB and the first and second chroma CBs when the dual tree is disabled for the inter slices or the intra slices and obtain the luma template for the luma CB, the first chroma template for the first chroma CB, and the second chroma template for the second chroma CB in response to the flag indicating that the intra TMP is enabled to the luma CB and the first and second chroma CBs. In one example, luma and chroma coding blocks may share the same flag, i.e., intra TMP flag, to indicate the usage of intra TMP mode. [00273] In some examples, the Steps 1702 and 1703 may be implemented by the following steps including: when the dual tree is disabled for the inter slices or the intra slices, obtaining
a luma template cost between the luma template and the current template of the current CB, a first chroma template cost between the first chroma template and the current template, and a second chroma template cost between the second chroma template and the current template, obtaining a chroma template cost by adding the first chroma template cost and the second chroma template cost, and obtaining the final prediction block according to the luma template cost and the chroma template cost.
[00274] In one or more examples, the processor 1620 may further signal a flag indicating whether an intra TMP is enabled to the luma CB and the chroma CBs when the dual tree is disabled for the inter slices or the intra slices and obtain the luma template for the luma CB, the first chroma template for the first chroma CB and the second chroma template for the second chroma CB in response to the flag indicating that the intra TMP is enabled to the luma CB and the chroma CBs. In one example, luma and chroma coding blocks may share the same flag, i.e., intra TMP flag, to indicate the usage of intra TMP mode.
[00275] In some examples, the Steps 1702 and 1703 may be implemented by the following steps including: when the dual tree is disabled for the inter slices or the intra slices, obtaining a luma template matching cost between the luma template and a current template of the current CB and obtaining a luma prediction block based on the luma template matching cost, obtaining a first chroma template matching cost between the first chroma template and the current template and obtaining a first chroma prediction block based on the first chroma template matching cost, obtaining a second chroma template matching cost between the second chroma template and the current template and obtaining a second chroma prediction block based on the second chroma template matching cost, and obtaining the final prediction block based on the luma prediction block, the first chroma prediction block, and the second chroma prediction block. In these examples, the template matching process of Y, U and V coding blocks are all conducted separately.
[00276] In one or more examples, the processor 1620 may further signal a flag indicating whether an intra TMP is enabled to the luma CB and the chroma CBs when the dual tree is disabled for the inter slices or the intra slices and obtain the luma template for the luma CB, the first chroma template for the first chroma CB, and the second chroma template for the second chroma CB in response to the flag indicating that the intra TMP is enabled to the luma CB and the chroma CBs. In one example, luma and chroma coding blocks may share the same flag, i.e., intra TMP flag, to indicate the usage of intra TMP mode.
[00277] In some examples, the Steps 1702 and 1703 may be implemented by the following steps including: when the dual tree is enabled for the intra slices, obtaining a first chroma
template matching cost between the first chroma template and a current template of the current CB and obtaining a first chroma prediction block based on the first chroma template matching cost, obtaining a second chroma template matching cost between the second chroma template and the current template and obtaining a second chroma prediction block based on the second chroma template matching cost, and obtaining the final prediction block based on the first and second chroma prediction blocks. In these examples, template matching search is conducted separately for chroma components, i.e., U and V components.
[00278] In one or more examples, the processor 1620 may further signal a flag indicating whether an intra template matching prediction (TMP) is enabled for the first and second chroma CBs when the dual tree is enabled for the intra slices and obtain the first chroma template for the first chroma CB and the second chroma template for the second chroma CB in response to the flag indicating that the intra TMP is enabled for the first and second chroma CBs.
[00279] In one or more examples, the processor 1620 may further signal a first flag indicating whether an intra template matching prediction (TMP) is enabled for the first chroma CB and a second flag indicating whether the intra TMP is enabled for the second chroma CB when the dual tree is enabled for the intra slices and obtain the first chroma template for the first chroma CB and the second chroma template for the second chroma CB in response to the first flag indicating that the intra TMP is enabled for the first chroma CB and determining that the second flag indicates that the intra TMP is enabled for the second chroma CB.
[00280] In some examples, the Steps 1702 and 1703 may be implemented by the following steps including: when the dual tree is enabled for the intra slices, obtaining a first chroma template matching cost between the first chroma template and a current template of the current CB, obtaining a second chroma template matching cost between the second chroma template and the current template, calculating a chroma template matching cost by adding the first chroma template matching cost and the second chroma template matching cost, and obtain the final prediction block based on the chroma template matching cost. In these examples, template matching search is conducted jointly for chroma components, i.e., U and V components, and the total template matching cost is the sum of the template matching cost of U and V components.
[00281] In one or more examples, the processor 1620 may further signal a flag indicating whether an intra TMP is enabled for the first and second chroma CBs when the dual tree is enabled for the intra slices and obtain the first chroma template for the first chroma CB and the second chroma template for the second chroma CB in response to the flag indicating that the intra TMP is enabled for the first and second chroma CBs.
[00282] FIG. 18 is a flowchart illustrating a method for video decoding according to an example of the present disclosure. The method shown in FIG. 18 is utilized in the combination of cross-component prediction and intra TMP for chroma components.
[00283] In Step 1801, the processor 1620, at the side of a decoder, may obtain a reference block of a current block and a reference template of the reference block based on intra template matching, where each of the current block and the reference block includes a luma component and a chroma component, and the reference template of the reference block includes a reference chroma template corresponding to a chroma component of the reference block and a reference luma template corresponding to a collocated luma block.
[00284] In Step 1802, the processor 1620, at the side of the decoder, may derive parameters of a cross-component prediction model based on a chroma template of a chroma component of the current block, the reference chroma template, and the reference luma template.
[00285] In some examples, the cross-component prediction model may include one of following models: a convolutional cross-component model (CCCM) or a cross-component linear model (CCLM).
[00286] In Step 1803, the processor 1620, at the side of the decoder, may obtain a final prediction for the current chroma block by applying the parameters of the cross-component prediction model to the collocated luma block.
[00287] FIG. 19 is a flowchart illustrating a method for video encoding corresponding to the method illustrated in FIG. 18 according to an example of the present disclosure.
[00288] In Step 1901, the processor 1620, at the side of an encoder, may obtain a reference block of a current block and a reference template of the reference block based on intra template matching, where each of the current block and the reference block includes a luma component and a chroma component, and the reference template of the reference block includes a reference chroma template corresponding to a chroma component of the reference block and a reference luma template corresponding to a collocated luma block.
[00289] In Step 1902, the processor 1620, at the side of the encoder, may derive parameters of a cross-component prediction model based on a chroma template of a chroma component of the current block, the reference chroma template, and the reference luma template.
[00290] In some examples, the cross-component prediction model may include one of following models: a convolutional cross-component model (CCCM) or a cross-component linear model (CCLM).
[00291] In Step 1903, the processor 1620, at the side of the encoder, may obtain a final prediction for the current chroma block by applying the parameters of the cross-component
prediction model to the collocated luma block.
[00292] FIG. 20 is a flowchart illustrating a method for video decoding according to an example of the present disclosure. The method shown in FIG. 20 may be utilized in combination of intra and intra TMP with linear filter model.
[00293] In Step 2001, the processor 1620, at the side of a decoder, may generate a weighted prediction by weighting an intra predicted block and an intra template matching prediction (TMP) block. For example, the processor 1620 may apply weights to the intra predicted block and the intra TMP block and then generated the weighted prediction based on the weight sum of the intra predicted block and the intra TMP block.
[00294] In Step 2002, the processor 1620, at the side of the decoder, may derive coefficients of a linear filter from a plurality of templates including a current template of a current block, an intra predicted template, and a reference template of a reference block.
[00295] In some examples, the coefficients of the linear filter may be derived by obtaining the intra predicted template by conducting intra prediction with a current intra mode, obtaining a fused template by fusing the intra predicted template and the reference template, and deriving the coefficients of the linear filter using the fused template and the current template to solve a least square equation.
[00296] In some examples, the processor 1620 may receive a flag indicating whether the linear filter model applies, and derive the coefficients of the linear filter from the plurality of templates including the current template of the current block, the intra predicted template, and the reference template in response to determining that the flag indicates the linear filter model applies.
[00297] In some examples, the combination of intra and intra TMP with linear filter model can be used for luma and chroma blocks, separately. Specifically, the coefficients of the linear filter may be derived by deriving the coefficients of the linear filter from the plurality of templates including the current template of the current block, the intra predicted template, and the reference template, where each of the plurality of templates includes one of a luma component or chroma components.
[00298] In Step 2003, the processor 1620, at the side of the decoder, may obtain a final prediction by applying the coefficients of the linear filter to the weighted prediction.
[00299] FIG. 21 is a flowchart illustrating a method for video encoding according to an example of the present disclosure.
[00300] In Step 2101, the processor 1620, at the side of an encoder, may generate a weighted prediction by weighting an intra predicted block and an intra template matching prediction
(TMP) block.
[00301] In Step 2002, the processor 1620, at the side of the encoder, may derive coefficients of a linear filter from a plurality of templates including a current template of a current block, an intra predicted template, and a reference template of a reference block.
[00302] In some examples, the coefficients of the linear filter may be derived by obtaining the intra predicted template by conducting intra prediction with a current intra mode, obtaining a fused template by Rising the intra predicted template and the reference template, and deriving the coefficients of the linear filter using the fused template and the current template to solve a least square equation.
[00303] In some examples, the processor 1620 may signal a flag indicating whether the linear filter model applies, and derive the coefficients of the linear filter from the plurality of templates including the current template of the current block, the intra predicted template, and the reference template in response to the flag indicating that the linear filter model applies. In one or more examples, at the encoder side, RDO is conducted to decide whether the linear filter model is enabled for the block.
[00304] In some examples, the combination of intra and intra TMP with linear filter model can be used for luma and chroma blocks, separately. Specifically, the coefficients of the linear filter may be derived by deriving the coefficients of the linear filter from the plurality of templates including the current template of the current block, the intra predicted template, and the reference template, where each of the plurality of templates includes one of a luma component or chroma components.
[00305] In Step 2103, the processor 1620, at the side of the encoder, may obtain a final prediction by applying the coefficients of the linear filter to the weighted prediction.
[00306] 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. 14-21.
[00307] 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. 2) 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. 3). 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. 2) using, for example, the encoding method described above for use by a decoder (for example, the video decoder 30 in FIG. 3) 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.
[00308] In an embodiment, there is provided a bitstream generated by the encoding method 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.
[00309] 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, where the one or more processors, upon execution of the plurality of programs, are configured to perform the above-described methods.
[00310] 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.
[00311] 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.
[00312] In an embodiment, there is also provided a method of storing a bitstream, comprising storing the bitstream on a digital storage medium, where the bitstream includes encoded video information generated by the encoding method described above or encoded video information to be decoded by the decoding method described above.
[00313] 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.
[00314] The description of the present disclosure has been presented for purposes of illustration find 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 having the benefit of the teachings presented in the foregoing descriptions and the associated drawings.
[00315] 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.
[00316] 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
1. A method for video decoding, comprising: obtaining, by a decoder, multiple reference blocks for a current block based on template matching; obtaining, by the decoder, a fused reference block based on the multiple reference blocks; and obtaining, by the decoder, a final prediction block for the current block based on the fused reference block and a linear filter.
2. The method of claim 1, wherein obtaining the final prediction block for the current block based on the fused reference block and the linear filter further comprises: obtaining the final prediction block for the current block by filtering the fused reference block using the linear filter associated with a plurality of filter coefficients.
3. The method of claim 2, wherein obtaining the final prediction block for the current block by filtering the fused reference block using the linear filter associated with the plurality of filter coefficients comprises: obtaining a fused template based on the multiple reference blocks; deriving the plurality of filter coefficients based on the fused template and a current template of the current block; and obtaining the final prediction block for the current block by filtering the fused reference block using the linear filter associated with the plurality of filter coefficients.
4. The method of claim 3, wherein obtaining the fused template based on the multiple reference blocks comprises: obtaining multiple templates for the multiple reference blocks; and obtaining the fused template based on the multiple templates for the multiple reference blocks.
5. A method for video encoding, comprising: obtaining, by an encoder, multiple reference blocks for a current block based on template matching; obtaining, by the encoder, a fused reference block based on the multiple reference blocks; and
obtaining, by the encoder, a final prediction block for the current block based on the fused reference block and a linear filter.
6. The method of claim 5, wherein obtaining the final prediction block for the current block based on the fused reference block and the linear filter further comprises: obtaining the final prediction block for the current block by filtering the fused reference block using the linear filter associated with a plurality of filter coefficients.
7. The method of claim 6, wherein obtaining the final prediction block for the current block by filtering the fused reference block using the linear filter associated with the plurality of filter coefficients comprises: obtaining a fused template based on the multiple reference blocks; deriving the plurality of filter coefficients based on the fused template and a current template of the current block; and obtaining the final prediction block for the current block by filtering the fused reference block using the linear filter associated with the plurality of filter coefficients.
8. The method of claim 7, wherein obtaining the fused template based on the multiple reference blocks comprises: obtaining multiple templates for the multiple reference blocks; and obtaining the fused template based on the multiple templates for the multiple reference blocks.
9. A method for video decoding, comprising: obtaining, by a decoder, at least one of a luma template for a luma coding block (CB) or chroma templates for chroma CBs utilized for template matching, wherein the chroma templates include a first chroma template for a first chroma CB and a second chroma template for a second chroma CB; calculating, by the decoder, a template matching cost between a current template of a current CB and at least one of the luma template or the chroma templates; and obtaining, by the decoder, a final prediction block of the current CB according to the template matching cost.
10. The method of claim 9, wherein calculating the template matching cost between the current template and at least one of the luma template or the chroma templates comprises: calculating the template matching cost between the luma template and the current template of the current CB.
11. The method of claim 9, wherein calculating the template matching cost between the current template and at least one of the luma template or the chroma templates comprises: obtaining a luma template cost between the luma template and the current template of the current CB, a first chroma template cost between the first chroma template and the current template, and a second chroma template cost between the second chroma template and the current template; and calculating a total template matching cost as the template matching cost by weighting the luma template cost, the first chroma template cost, and the second chroma template cost.
12. The method of claim 9, wherein calculating the template matching cost between the current template and at least one of the luma template or the chroma templates comprises: obtaining a luma template cost between the luma template and the current template of the current CB, a first chroma template cost between the first chroma template and the current template, and a second chroma template cost between the second chroma template and the current template; obtaining a chroma template cost by adding the first chroma template cost and the second chroma template cost; and obtaining the template matching cost according to the luma template cost and the chroma template cost.
13. The method of claim 9, wherein calculating the template matching cost between the current template and at least one of the luma template or the chroma templates comprises: obtaining a luma template matching cost between the luma template and a current template of the current CB; obtaining a first chroma template matching cost between the first chroma template and the current template; and obtaining a second chroma template matching cost between the second chroma template and the current template;
wherein obtaining the final prediction block for the current CB based on the template matching cost comprises: obtaining a luma prediction block based on the luma template matching cost; obtaining a first chroma prediction block based on the first chroma template matching cost; obtaining a second chroma prediction block based on the second chroma template matching cost; and obtaining the final prediction block based on the luma prediction block, the first chroma prediction block, and the second chroma prediction block.
14. The method of any of claims 10-13, wherein a dual tree is disabled for inter slices or intra slices in a coding tree unit (CTU) including the current CB, and the luma CB, the first chroma CB, and the second chroma CB share a same partitioning tree.
15. The method of any of claims 10-13, wherein obtaining at least one of the luma template for the luma coding block or the chroma templates for the chroma CBs utilized for template matching comprises: receiving a flag indicating whether an intra template matching prediction (TMP) is enabled to the luma CB and the chroma CBs; and in response to determining that the flag indicates that the intra TMP is enabled to the luma CB and the chroma CBs, obtaining the luma template for the luma CB, or, obtaining the luma template for the luma CB and the chroma templates for the chroma CBs.
16. The method of claim 9, wherein calculating the template matching cost between the current template of the current CB and at least one of the luma template or the chroma templates comprises: obtaining a first chroma template matching cost between the first chroma template and a current template of the current CB; and obtaining a second chroma template matching cost between the second chroma template and the current template; wherein obtaining the final prediction block for the current CB based on the template matching cost comprises:
obtaining a first chroma prediction block based on the first chroma template matching cost; obtaining a second chroma prediction block based on the second chroma template matching cost; and obtaining the final prediction block based on the first and second chroma prediction blocks.
17. The method of claim 16, wherein obtaining at least one of the luma template for the luma coding block or the chroma templates for the chroma CBs utilized for template matching comprises: receiving a first flag indicating whether an intra template matching prediction (IMP) is enabled for the first chroma CB and a second flag indicating whether the intra TMP is enabled for the second chroma CB; and in response to determining that the first flag indicates that the intra TMP is enabled for the first chroma CB and determining that the second flag indicates that the intra TMP is enabled for the second chroma CB, obtaining the first chroma template for the first chroma CB and the second chroma template for the second chroma CB.
18. The method of claim 9, wherein calculating the template matching cost between the current template of the current CB and at least one of the luma template or the chroma templates comprises: obtaining a first chroma template matching cost between the first chroma template and a current template of the current CB; obtaining a second chroma template matching cost between the second chroma template and the current template; and calculating a chroma template matching cost by adding the first chroma template matching cost and the second chroma template matching cost; wherein obtaining the final prediction block for the current CB based on the template matching cost comprises: obtaining the final prediction block based on the chroma template matching cost.
19. The method of any of claims 16-18, wherein a dual tree is enabled for intra slices in a coding tree unit (CTU) including the current CB.
20. The method of claim 18, wherein obtaining at least one of the luma template for the luma coding block or the chroma templates for the chroma CBs utilized for template matching comprises: receiving a flag indicating whether an intra TMP is enabled for the chroma CBs; and in response to determining that the flag indicates that the intra TMP is enabled for the chroma CBs, obtaining the first chroma template for the first chroma CB and the second chroma template for the second chroma CB.
21. A method for video encoding, comprising: obtaining, by an encoder, at least one of a luma template for a luma coding block (CB) or chroma templates for chroma CBs utilized for template matching, wherein the chroma templates include a first chroma template for a first chroma CB and a second chroma template for a second chroma CB; calculating, by the encoder, a template matching cost between a current template of a current CB and at least one of the luma template or the chroma templates; and obtaining, by the encoder, a final prediction block of the current CB according to the template matching cost.
22. The method of claim 21, wherein calculating the template matching cost between the current template and at least one of the luma template or the chroma templates further comprises: calculating the template matching cost between the luma template and the current template of the current CB.
23. The method of claim 21, wherein calculating the template matching cost between the current template and at least one of the luma template or the chroma templates further comprises: obtaining a luma template cost between the luma template and the current template of the current CB, a first chroma template cost between the first chroma template and the current template, and a second chroma template cost between the second chroma template and the current template; and calculating a total template matching cost as the template matching cost by weighting the luma template cost, the first chroma template cost, and the second chroma template cost.
24. The method of claim 21, wherein calculating the template matching cost between the current template and at least one of the luma template or the chroma templates comprises: obtaining a luma template cost between the luma template and the current template of the current CB, a first chroma template cost between the first chroma template and the current template, and a second chroma template cost between the second chroma template and the current template; obtaining a chroma template cost by adding the first chroma template cost and the second chroma template cost; and obtaining the template matching cost according to the luma template cost and the chroma template cost.
25. The method of claim 21, wherein calculating the template matching cost between the current template and at least one of the luma template or the chroma templates comprises: obtaining a luma template matching cost between the luma template and a current template of the current CB; obtaining a first chroma template matching cost between the first chroma template and the current template; and obtaining a second chroma template matching cost between the second chroma template and the current template; and wherein obtaining the final prediction block for the current CB based on the template matching cost comprises: obtaining a luma prediction block based on the luma template matching cost; obtaining a first chroma prediction block based on the first chroma template matching cost; obtaining a second chroma prediction block based on the second chroma template matching cost; and obtaining the final prediction block based on the luma prediction block, the first chroma prediction block, and the second chroma prediction block.
26. The method of any of claims 21-25, wherein a dual tree is disabled for inter slices or intra slices in a coding tree unit (CTU) including the current CB, and the luma CB, the first chroma CB, and the second chroma CB share a same partitioning tree.
27. The method of any of claims 21 -25, wherein obtaining at least one of the luma template for the luma CB or the chroma templates for the chroma CBs utilized for template matching comprises: signaling a flag indicating whether an intra TMP is enabled to the luma CB and the chroma CBs; and in response to signaling the flag indicating that the intra TMP is enabled to the luma CB and the chroma CBs, obtaining the luma template for the luma CB, or obtaining the luma template for the luma CB and the chroma templates for the chroma CBs.
28. The method of claim 21, wherein calculating the template matching cost between the current template of the current CB and at least one of the luma template or the chroma templates comprises: obtaining a first chroma template matching cost between the first chroma template and a current template of the current CB; and obtaining a second chroma template matching cost between the second chroma template and the current template; and wherein obtaining the final prediction block for the current CB based on the template matching cost comprises: obtaining a first chroma prediction block based on the first chroma template matching cost; obtaining a second chroma prediction block based on the second chroma template matching cost; and obtaining the final prediction block based on the first and second chroma prediction blocks.
29. The method of claim 28, wherein obtaining at least one of the luma template for the luma CB or the chroma templates for the chroma CBs utilized for template matching comprises: signaling a first flag indicating whether an intra template matching prediction (TMP) is enabled for the first chroma CB and a second flag indicating whether the intra TMP is enabled for the second chroma CB; and in response to signaling the first flag indicating that the intra TMP is enabled for the first chroma CB and signaling the second flag indicating that the intra TMP is enabled for the second chroma CB, obtaining the first chroma template for the first chroma CB and the second chroma template for the second chroma CB.
30. The method of claim 21, wherein calculating the template matching cost between the current template of the current CB and at least one of the luma template or the chroma templates comprises: obtaining a first chroma template matching cost between the first chroma template and a current template of the current CB; obtaining a second chroma template matching cost between the second chroma template and the current template; and calculating a chroma template matching cost by adding the first chroma template matching cost and the second chroma template matching cost; and wherein obtaining the final prediction block for the current CB based on the template matching cost comprises: obtaining the final prediction block based on the chroma template matching cost.
31. The method of any of claims 28-30, wherein a dual tree is enabled for intra slices in a coding tree unit (CTU) including the current CB.
32. The method of claim 30, wherein obtaining at least one of the luma template for the luma CB or the chroma templates for the chroma CBs utilized for template matching comprises: signaling a flag indicating whether intra TMP is enabled for the chroma CBs; and in response to signaling the flag indicating that the intra TMP is enabled for the chroma CBs, obtaining the first chroma template for the first chroma CB and the second chroma template for the second chroma CB.
33. A method for video decoding, comprising: obtaining, by a decoder, a reference block of a current block and a reference template of the reference block based on intra template matching, wherein each of the current block and the reference block comprises a luma component and a chroma component, and wherein the reference template of the reference block comprises a reference chroma template corresponding to a chroma component of the reference block and a reference luma template corresponding to a collocated luma block; deriving, by the decoder, parameters of a cross-component prediction model based on a chroma template of a chroma component of the current block, the reference chroma template, and the reference luma template; and
obtaining, by the decoder, a final prediction for the current chroma block by applying the parameters of the cross-component prediction model to the collocated luma block.
34. The method of claim 33, wherein the cross-component prediction model comprises one of following models: a convolutional cross-component model (CCCM) or a cross-component linear model (CCLM).
35. A method for video encoding, comprising: obtaining, by an encoder, a reference block of a current block and a reference template of the reference block based on intra template matching, wherein each of the current block and the reference block comprises a luma component and a chroma component, and wherein the reference template of the reference block comprises a reference chroma template corresponding to a chroma component of the reference block and a reference luma template corresponding to a collocated luma block; deriving, by the encoder, parameters of a cross-component prediction model based on a chroma template of a chroma component of the current block, the reference chroma template, and the reference luma template of a collocated luma block; and obtaining, by the encoder, a final prediction for the current chroma block by applying the parameters of the cross-component prediction model to the collocated luma block.
36. The method of claim 35, wherein the cross-component prediction model comprises one of following models: a convolutional cross-component model (CCCM) or a cross-component linear model (CCLM).
37. A method for video decoding, comprising: generating, by a decoder, a weighted prediction by weighting an intra predicted block and an intra template matching prediction (TMP) block; deriving, by the decoder, coefficients of a linear filter from a plurality of templates comprising a current template of a current block, an intra predicted template, and a reference template of a reference block; and obtaining, by the decoder, a final prediction by applying the coefficients of the linear filter to the weighted prediction.
38. The method of claim 37, wherein deriving the coefficients of the linear filter from the plurality of templates comprising the current template of the current block, the intra predicted template, and the reference template comprises: obtaining the intra predicted template by conducting intra prediction with a current intra mode; obtaining a fused template by fusing the intra predicted template and the reference template; and deriving the coefficients of the linear filter by using the fused template and the current template to solve a least square equation.
39. The method of claim 37, wherein deriving the coefficients of the linear filter from the plurality of templates comprising the current template of the current block, the intra predicted template, and the reference template further comprises: receiving a flag indicating whether the linear filter model applies; and in response to determining that the flag indicates the linear filter model applies, deriving the coefficients of the linear filter from the plurality of templates comprising the current template of the current block, the intra predicted template, and the reference template.
40. The method of claim 37, wherein deriving the coefficients of the linear filter from the plurality of templates comprising the current template of the current block, the intra predicted template, and the reference template further comprises: deriving the coefficients of the linear filter from the plurality of templates comprising the current template of the current block, the intra predicted template, and the reference template, wherein each of the plurality of templates comprises one of a luma component or chroma components.
41. A method for video encoding, comprising: generating, by an encoder, a weighted prediction by weighting an intra predicted block and an intra template matching prediction (TMP) block; deriving, by the encoder, coefficients of a linear filter from a plurality of templates comprising a current template of a current block, an intra predicted template, and a reference template of a reference block; and obtaining, by the encoder, a final prediction by applying the coefficients of the linear filter to the weighted prediction.
42. The method of claim 41, wherein deriving the coefficients of the linear filter from the plurality of templates comprising the current template of the current block, the intra predicted template, and the reference template comprises: obtaining the intra predicted template by conducting intra prediction with a current intra mode; obtaining a fused template by fusing the intra predicted template and the reference template; and deriving the coefficients of the linear filter using the fused template and the current template to solve a least square equation.
43. The method of claim 41, wherein deriving the coefficients of the linear filter from the plurality of templates comprising the current template of the current block, the intra predicted template, and the reference template further comprises: signaling a flag indicating whether the linear filter model applies; and in response to the flag indicating that the linear filter model applies, deriving the coefficients of the linear filter from the plurality of templates comprising the current template of the current block, the intra predicted template, and the reference template.
44. The method of claim 41, wherein deriving the coefficients of the linear filter from the plurality of templates comprising the current template of the current block, the intra predicted template, and the reference template further comprises: deriving the coefficients of the linear filter from the plurality of templates comprising the current template of the current block, the intra predicted template, and the reference template, wherein each of the plurality of templates comprises one of a luma component or chroma components.
45. 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-4, 9-13, 16-18, 20, 33-34, and 37-40.
46. 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 5-8, 21-25, 28-30, 35-36, and 41-44.
47. 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-4, 9-13, 16-18, 20, 33-34, and 37-40.
48. 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 5-8, 21-25, 28-30, 35-36, and 41- 44.
49. A non-transitory computer-readable storage medium for storing a bitstream to be decoded by the method in any of claims 1-4, 9-13, 16-18, 20, 33-34, and 37-40.
50. A non-transitory computer-readable storage medium for storing a bitstream generated by the method in any of claims 5-8, 21-25, 28-30, 35-36, and 41-44.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US202363447040P | 2023-02-20 | 2023-02-20 | |
US63/447,040 | 2023-02-20 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024178022A1 true WO2024178022A1 (en) | 2024-08-29 |
Family
ID=92501487
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US2024/016568 WO2024178022A1 (en) | 2023-02-20 | 2024-02-20 | Methods and devices on intra template matching prediction |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2024178022A1 (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170353719A1 (en) * | 2016-06-03 | 2017-12-07 | Mediatek Inc. | Method and Apparatus for Template-Based Intra Prediction in Image and Video Coding |
US20190014342A1 (en) * | 2017-07-05 | 2019-01-10 | Qualcomm Incorporated | Partial reconstruction based template matching for motion vector derivation |
US20200084441A1 (en) * | 2017-03-22 | 2020-03-12 | Electronics And Telecommunications Research Institute | Prediction method and device using reference block |
WO2021244935A1 (en) * | 2020-06-03 | 2021-12-09 | Nokia Technologies Oy | A method, an apparatus and a computer program product for video encoding and video decoding |
WO2022063729A1 (en) * | 2020-09-28 | 2022-03-31 | Interdigital Vc Holdings France, Sas | Template matching prediction for versatile video coding |
KR20230016609A (en) * | 2021-07-26 | 2023-02-02 | 한국전자통신연구원 | Method, apparatus and recording medium for encoding/decoding image |
-
2024
- 2024-02-20 WO PCT/US2024/016568 patent/WO2024178022A1/en unknown
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170353719A1 (en) * | 2016-06-03 | 2017-12-07 | Mediatek Inc. | Method and Apparatus for Template-Based Intra Prediction in Image and Video Coding |
US20200084441A1 (en) * | 2017-03-22 | 2020-03-12 | Electronics And Telecommunications Research Institute | Prediction method and device using reference block |
US20190014342A1 (en) * | 2017-07-05 | 2019-01-10 | Qualcomm Incorporated | Partial reconstruction based template matching for motion vector derivation |
WO2021244935A1 (en) * | 2020-06-03 | 2021-12-09 | Nokia Technologies Oy | A method, an apparatus and a computer program product for video encoding and video decoding |
WO2022063729A1 (en) * | 2020-09-28 | 2022-03-31 | Interdigital Vc Holdings France, Sas | Template matching prediction for versatile video coding |
KR20230016609A (en) * | 2021-07-26 | 2023-02-02 | 한국전자통신연구원 | Method, apparatus and recording medium for encoding/decoding image |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020247577A1 (en) | Adaptive motion vector resolution for affine mode | |
WO2020252270A1 (en) | Methods and system of subblock transform for video coding | |
EP4367887A1 (en) | Geometry partitioning for affine motion compensated prediction in video coding | |
WO2020214900A1 (en) | Methods and apparatus of video coding using prediction refinement with optical flow | |
WO2024178022A1 (en) | Methods and devices on intra template matching prediction | |
WO2024187048A1 (en) | Methods and devices on intra template matching prediction | |
US20240305792A1 (en) | Planar mode improvement for intra prediction | |
US20240223760A1 (en) | Adaptive bilateral filtering for video coding | |
US20240314302A1 (en) | Adaptive coding order for intra prediction in video coding | |
US20240348777A1 (en) | Methods and devices for decoder-side intra mode derivation | |
US20240214561A1 (en) | Methods and devices for decoder-side intra mode derivation | |
US20240298007A1 (en) | Methods and devices for decoder-side intra mode derivation | |
CN118381923A (en) | Video encoding and decoding method and apparatus therefor | |
WO2023183366A1 (en) | Planar mode improvement for intra prediction | |
WO2024173443A1 (en) | Methods and devices for intra block copy and intra template matching | |
WO2024010832A9 (en) | Methods and apparatus on chroma motion compensation using adaptive cross-component filtering | |
WO2024073145A1 (en) | Methods and devices for adaptive loop filtering and cross-component adaptive loop filter | |
WO2024039910A1 (en) | Method and apparatus for adaptive motion compensated filtering | |
WO2023055968A1 (en) | Methods and devices for decoder-side intra mode derivation | |
WO2024215812A1 (en) | Methods and devices for intra block copy and intra template matching | |
WO2024192287A1 (en) | Methods and devices for adaptive loop filter and cross-component adaptive loop filter | |
WO2024010832A1 (en) | Methods and apparatus on chroma motion compensation using adaptive cross-component filtering | |
WO2023141036A1 (en) | Bilateral matching based reference picture reordering | |
WO2024039803A1 (en) | Methods and devices for adaptive loop filter | |
WO2024164022A1 (en) | Methods and devices for adaptive loop filter and cross-component adaptive loop filter |
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: 24760875 Country of ref document: EP Kind code of ref document: A1 |