Method and apparatus for encoding and decoding coding unit, and storage medium
By dividing the image frame into multiple processing areas and selecting an appropriate transformation size for decoding during video encoding, the problem of high implementation cost and processing complexity of video encoding standards in the pipeline architecture in the existing technology is solved, and high efficiency is achieved. video decoding performance.
Patent Information
- Application Number
- CN202411160560.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2018-08-17
- Filing Date
- 2019-06-25
- Publication Date
- 2024-10-18
AI Technical Summary
Existing video coding standards face high implementation costs, excessive memory consumption, and processing complexity when achieving efficient video compression, especially when processing transformed blocks in a pipeline architecture.
By dividing the image frame into multiple processing areas of equal size, and selecting an adapted transformation size for decoding when the boundaries between coding units and processing areas overlap, apply inverse transformation to improve processing efficiency, reduce memory consumption and Deal with complexity.
Efficient processing of video blocks in a pipeline architecture is achieved, reducing implementation costs and processing complexity, and improving video decoding performance and efficiency.
Smart Images

Figure CN118803249A_ABST
Abstract
Description
[0001] (This application is a divisional application of an application filed on June 25, 2019, with application number 2019800544938, and invention name “Method, device and system for transform block encoding and decoding of video samples”.) Technical Field
[0002] The present invention generally relates to digital video signal processing, and more particularly to a method, apparatus and system for encoding and decoding a transform block of video samples. The present invention also relates to a computer program product comprising a computer readable medium having recorded thereon a computer program for encoding and decoding a transform block of video samples. Background Art
[0003] There are currently many applications for video coding, including applications for transmitting and storing video data. Many video coding standards have also been developed and other video coding standards are currently under development. Recent advances in video coding standardization have led to the formation of a group known as the "Joint Video Experts Group" (JVET). The Joint Video Experts Group (JVET) includes members of Study Group 16, Question 6 (SG16 / Q6) of the Telecommunication Standardization Sector (ITU-T) of the International Telecommunication Union (ITU), also known as the "Video Coding Experts Group" (VCEG); and members of ISO / IEC JTC1 / SC29 / WG11, also known as the "Moving Picture Experts Group" (MPEG).
[0004] The Joint Video Experts Team (JVET) issued a call for proposals (CfP) and analyzed the responses at its 10th meeting in San Diego, USA. The responses submitted showed that the video compression capabilities are significantly better than those of the current state-of-the-art video compression standard, namely "High Efficiency Video Coding" (HEVC). Based on this excellent performance, it was decided to start a project to develop a new video compression standard named "Versatile Video Coding" (VVC). It is expected that VVC will address the continued demand for even higher compression performance, especially as the capabilities of video formats increase (e.g., with higher resolutions and higher frame rates), and the growing market demand for service provision over WANs, where bandwidth costs are relatively high. At the same time, VVC must be implementable in contemporary silicon processes and provide an acceptable trade-off between the achieved performance and the implementation cost (e.g., in terms of silicon area, CPU processor load, memory utilization, and bandwidth).
[0005] Video data includes a sequence of frames of image data, each including one or more color channels. Typically, one primary color channel and two secondary color channels are required. The primary color channel is typically referred to as the "brightness" channel, and (one or more) secondary color channels are typically referred to as the "chrominance" channel. Although video data is typically displayed in an RGB (red-green-blue) color space, the color space has a high degree of correlation between the three corresponding components. The video data representation seen by an encoder or decoder typically uses a color space such as YCbCr. YCbCr concentrates luminance (mapped to "brightness" according to a transformation equation) in the Y (primary) channel, and concentrates chrominance in the Cb and Cr (secondary) channels. In addition, the Cb and Cr channels can be spatially sampled at a lower rate than the brightness channel (e.g., half in the horizontal direction and half in the vertical direction (referred to as the "4:2:0 chroma format")).
[0006] The VVC standard is a "block-based" codec in which a frame is first partitioned into an array of square areas called "coding tree units" (CTUs). A CTU typically occupies a relatively large area, such as 128×128 luma samples. However, the areas of the CTUs at the right and bottom edges of each frame may be smaller. Associated with each CTU is a "coding tree" that defines the decomposition of the area of the CTU into a set of areas, also called "coding units" (CUs). CUs are processed in a specific order for encoding or decoding. Due to the use of the coding tree and the 4:2:0 chroma format, a given area in a frame is associated with a set of co-located blocks across color channels. The dimensions of the luma block are width×height, while for each chroma block, the dimensions of the chroma block are width / 2×height / 2. A set of co-located blocks in a given area is often referred to as a "unit", such as the above-mentioned CU as well as a "prediction unit" (PU) and a "transform unit" (TU).
[0007] Although the size of chroma blocks is different from that of luma blocks for the same area, the size of a given "unit" is usually described in terms of the size of the luma block of the unit. Individual blocks are usually identified by the type of unit associated with these blocks. For example, "coding blocks" (CB), "transform blocks" (TB) and prediction blocks (PB) are blocks for one color channel and are associated with CU, TU and PU respectively. Despite the above distinction between "units" and "blocks", the term "block" can be used as a general term for an area or region of a frame where operations are applied to all color channels.
[0008] For each CU, a prediction (PU) ("prediction unit") of the content (sample values) of the corresponding region of the frame data is generated. In addition, a representation of the difference (or "residual" in the spatial domain) between the prediction and the region content seen at the input of the encoder is formed. The difference of each color channel can be transform-coded into a sequence of residual coefficients, thereby forming one or more TUs for a given CU. The applied transform can be a discrete cosine transform (DCT) or other transform applied to each block of residual values. The main transform is applied separately, that is, a two-dimensional transform is performed in two passes. The block is first transformed by applying a one-dimensional transform to each row of samples in the block. Then, the partial result is transformed by applying a one-dimensional transform to each column of the partial result to produce a final block of transform coefficients that essentially decorrelate the residual samples. The VVC standard supports transforms of various sizes, including transforms of rectangular blocks (each side size is a power of 2). The transform coefficients are quantized for entropy encoding in the bitstream.
[0009] Implementations of the VVC standard typically use a pipeline to split processing into a sequence of stages. The stages operate synchronously, and partially processed blocks are passed from one stage to the next before outputting a fully processed (i.e., encoded or decoded) block. The transformed blocks need to be processed efficiently in the context of a pipeline architecture to avoid excessive implementation costs of the VVC standard. Both in terms of memory consumption and in terms of the functional modules required to handle the "worst case", both in terms of the speed at which the pipeline stages must complete and the size of the data processed by each stage, require excessive implementation costs. Summary of the invention
[0010] It is an object of the present invention to substantially overcome or at least ameliorate one or more disadvantages of existing arrangements.
[0011] According to one aspect of the present invention, there is provided a method for decoding a coding unit in an image frame from a bit stream, the method comprising:
[0012] determining a size of the coding unit from the bitstream;
[0013] dividing the image frame into a plurality of equally sized processing regions, each equally sized processing region being a block processed during a single stage of a pipeline for decoding the bitstream;
[0014] In case a boundary between the coding unit and the determined processing region overlaps, selecting a transform size for the coding unit from a plurality of transform sizes, the transform size being selected to fit within the coding unit and being of a different size than the processing region; and
[0015] The coding units are decoded by applying an inverse transform to residual coefficients of respective ones of the coding units, the respective ones of the transform units having the selected transform size.
[0016] According to another aspect of the present invention, there is provided a non-transitory computer-readable medium having a computer program stored thereon to implement a method for decoding a coding unit in an image frame from a bit stream, the program comprising:
[0017] code for determining a size of the coding unit from the bitstream;
[0018] code for partitioning the image frame into a plurality of equally sized processing regions, each equally sized processing region being a block processed during a single stage of a pipeline for decoding the bitstream;
[0019] code for selecting, if a boundary between the coding unit and the determined processing region overlaps, a transform size for the coding unit from a plurality of transform sizes, the transform size being selected to fit within the coding unit and being of a different size than the processing region; and
[0020] Code for decoding a coding unit by applying an inverse transform to residual coefficients of respective ones of the coding units, the respective ones of the transform units having the selected transform size.
[0021] According to another aspect of the present invention, there is provided a system, comprising:
[0022] Memory; and
[0023] A processor, wherein the processor is configured to execute the code stored on the memory to implement a method for decoding a coding unit in an image frame from a bit stream, the method comprising:
[0024] determining a size of the coding unit from the bitstream;
[0025] dividing the image frame into a plurality of equally sized processing regions, each equally sized processing region being a block processed during a single stage of a pipeline for decoding the bitstream;
[0026] In case a boundary between the coding unit and the determined processing region overlaps, selecting a transform size for the coding unit from a plurality of transform sizes, the transform size being selected to fit within the coding unit and being of a different size than the processing region; and
[0027] The coding units are decoded by applying an inverse transform to residual coefficients of respective ones of the coding units, the respective ones of the transform units having the selected transform size.
[0028] According to another aspect of the present invention, there is provided a video decoder, which is configured to:
[0029] receiving an image frame from a bit stream;
[0030] determining a size of a coding unit from the bitstream;
[0031] dividing the image frame into a plurality of equally sized processing regions, each equally sized processing region being a block processed during a single stage of a pipeline for decoding the bitstream;
[0032] In case a boundary between the coding unit and the determined processing region overlaps, selecting a transform size for the coding unit from a plurality of transform sizes, the transform size being selected to fit within the coding unit and being of a different size than the processing region; and
[0033] The coding units are decoded by applying an inverse transform to residual coefficients of respective ones of the coding units, the respective ones of the transform units having the selected transform size.
[0034] According to yet another aspect of the present invention, there is provided a method for decoding a coding unit in an image frame from a bit stream, the method comprising:
[0035] determining a size of the coding unit from the bitstream;
[0036] Dividing the image frame into a plurality of processing regions of equal size, each processing region of equal size being smaller than a maximum available coding unit size;
[0037] Selecting a motion vector corresponding to the coding unit from a list of candidate motion vectors, the selecting the motion vector comprising: (i) decoding a merge index if the coding unit is greater than or equal to a size of one of the determined processing regions, or (ii) decoding a skip flag to decode the merge index if the coding unit is not greater than or equal to a size of one of the determined processing regions; and
[0038] The coding unit is decoded according to the selected motion vector for the coding unit.
[0039] According to yet another aspect of the present invention, there is provided a non-transitory computer-readable medium having a computer program stored thereon to implement a method for decoding a coding unit in an image frame from a bitstream, the program comprising:
[0040] code for determining a size of the coding unit from the bitstream;
[0041] code for dividing the image frame into a plurality of equally sized processing regions, each equally sized processing region being smaller than a maximum available coding unit size;
[0042] code for selecting a motion vector corresponding to the coding unit from a list of candidate motion vectors, the selecting the motion vector comprising: (i) decoding a merge index if the coding unit is greater than or equal to a size of one of the determined processing regions, or (ii) decoding a skip flag to decode the merge index if the coding unit is not greater than or equal to a size of one of the determined processing regions; and
[0043] Code for decoding a coding unit based on the selected motion vector for the coding unit.
[0044] According to another aspect of the present invention, there is provided a system, comprising:
[0045] Memory; and
[0046] A processor, wherein the processor is configured to execute the code stored on the memory to implement a method for decoding a coding unit in an image frame from a bitstream, the method comprising:
[0047] determining a size of the coding unit from the bitstream;
[0048] Dividing the image frame into a plurality of processing regions of equal size, each processing region of equal size being smaller than a maximum available coding unit size;
[0049] Selecting a motion vector corresponding to the coding unit from a list of candidate motion vectors, the selecting the motion vector comprising: (i) decoding a merge index if the coding unit is greater than or equal to a size of one of the determined processing regions, or (ii) decoding a skip flag to decode the merge index if the coding unit is not greater than or equal to a size of one of the determined processing regions; and
[0050] The coding unit is decoded according to the selected motion vector for the coding unit.
[0051] According to another aspect of the present invention, there is provided a video decoder, which is configured to:
[0052] receiving an image frame from a bit stream;
[0053] determining a size of a coding unit from the bitstream;
[0054] Dividing the image frame into a plurality of processing regions of equal size, each processing region of equal size being smaller than a maximum available coding unit size;
[0055] Selecting a motion vector corresponding to the coding unit from a list of candidate motion vectors, the selecting the motion vector comprising: (i) decoding a merge index if the coding unit is greater than or equal to a size of one of the determined processing regions, or (ii) decoding a skip flag to decode the merge index if the coding unit is not greater than or equal to a size of one of the determined processing regions; and
[0056] The coding unit is decoded according to the selected motion vector for the coding unit.
[0057] Other aspects are also disclosed. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] At least one embodiment of the present invention will now be described with reference to the following drawings and appendices, in which:
[0059] Figure 1 is a schematic block diagram illustrating a video encoding and decoding system;
[0060] Figure 2A and 2B Composition can be practiced Figure 1 A schematic block diagram of a general computer system for one or both of the video encoding and decoding systems;
[0061] Figure 3 is a schematic block diagram showing the functional modules of a video encoder;
[0062] Figure 4 is a schematic block diagram showing the functional modules of a video decoder;
[0063] Figure 5 is a schematic block diagram illustrating possible partitioning of a block into one or more blocks in a tree structure for general video coding;
[0064] Figure 6 A schematic diagram of a data flow for implementing a permissible partitioning of a block into one or more blocks in a tree structure of a general video coding;
[0065] Fig. 7A and 7B shows an example partitioning of a coding tree unit (CTU) into multiple coding units (CUs);
[0066] Fig. 8A An example sequence of coding tree units (CTUs) processed according to a pipeline architecture is shown;
[0067] Figure 8B An example "random access" group of pictures structure showing frames in a video;
[0068] Fig. 9 is a diagram showing the transform size of the VVC standard;
[0069] Fig. 10A is a diagram showing coding units of coding tree units (CTUs) with a ternary split at the top level of the coding tree;
[0070] Fig. 10B is shown with Fig. 10A a graph of alternative transform units associated with a coding tree of
[0071] Fig. 10C is a diagram showing transform units associated with a coding tree having two ternary splits in opposite directions;
[0072] Fig. 10D is a diagram showing transform units associated with a coding tree having a vertical ternary split, a horizontal binary split, and a vertical ternary split;
[0073] Fig.10E is a diagram showing transform units associated with a coding tree having two vertical ternary splits;
[0074] Fig.10F It is shown Fig.10E an alternative diagram of transform units associated with a coding tree having two vertical ternary splits;
[0075] Fig.11 is a flowchart of a method for determining a prediction mode of a coding unit in a coding tree of coding tree units;
[0076] Fig.12 is a flow chart of a method for encoding a coding unit using a transform, the method enabling a pipelined implementation of a video encoder; and
[0077] Fig.13 is a flowchart of a method for decoding a coding unit using a transform, the transform size being based on Fig.12 The method selected. DETAILED DESCRIPTION
[0078] Where steps and / or features having the same reference numerals are referenced in any one or more of the figures, such steps and / or features have the same function(s) or operation(s) for purposes of this specification, unless otherwise intended.
[0079] Figure 11 is a schematic block diagram illustrating functional modules of a video encoding and decoding system 100. The system 100 may utilize implicit partitioning of a large block or coding unit (CU) into multiple smaller blocks or transform units (TUs) to enable processing of a coding tree unit (CTU) in an area (or "pipeline processing area") that is smaller than the CTU size. For example, the system 100 may process a CTU into four quadrants, each of which may contain many CUs and / or may contain a portion of a CU that spans multiple areas.
[0080] The system 100 includes a source device 110 and a destination device 130. A communication channel 120 is used to communicate encoded video information from the source device 110 to the destination device 130. In some configurations, one or both of the source device 110 and the destination device 130 may each include a mobile phone handset or "smart phone", in which case the communication channel 120 is a wireless channel. In other configurations, the source device 110 and the destination device 130 may include video conferencing equipment, in which case the communication channel 120 is typically a wired channel such as an Internet connection. In addition, the source device 110 and the destination device 130 may include any of a wide range of devices, including devices that support over-the-air television broadcasts, cable television applications, Internet video applications (including streaming), and applications that capture encoded video data on some computer-readable storage medium (such as a hard drive in a file server).
[0081] like Figure 1 As shown, source device 110 includes video source 112, video encoder 114, and transmitter 116. Video source 112 typically includes a source of captured video frame data (denoted as 113), such as a camera sensor, a previously captured video sequence stored on a non-transitory recording medium, or a video feed from a remote camera sensor. Video source 112 may also be the output of a computer graphics card (e.g., display operating system and video output of various applications executed on a computing device (e.g., tablet computer)). Examples of source device 110 that may include a camera sensor as video source 112 include smart phones, video camcorders, professional video cameras, and web video cameras.
[0082] The video encoder 114 converts (or "encodes") the captured frame data (indicated by arrow 113) from the video source 112 into a bitstream (indicated by arrow 115). The bitstream 115 is transmitted by a transmitter 116 as encoded video data (or "encoded video information") via a communication channel 120. The bitstream 115 may also be stored in a non-transitory storage device 122, such as a "flash" memory or a hard drive, until or in lieu of subsequent transmission over the communication channel 120.
[0083] The destination device 130 includes a receiver 132, a video decoder 134, and a display device 136. The receiver 132 receives the encoded video data from the communication channel 120 and passes the received video data to the video decoder 134 as a bit stream (indicated by arrow 133). The video decoder 134 then outputs the decoded frame data (indicated by arrow 135) to the display device 136. Examples of the display device 136 include a cathode ray tube, a liquid crystal display (such as in a smart phone, a tablet computer, a computer monitor, or a stand-alone television). The functions of each of the source device 110 and the destination device 130 may also be embodied in a single device, examples of which include a mobile phone and a tablet computer.
[0084] Although example devices are described above, source device 110 and destination device 130 may each typically be configured within a general purpose computer system via a combination of hardware and software components. Figure 2A Such a computer system 200 is shown, which includes: a computer module 201; input devices such as a keyboard 202, a mouse pointer device 203, a scanner 226, a camera 227 that can be configured as a video source 112, and a microphone 280; and output devices including a printer 215, a display device 214 that can be configured as a display device 136, and a speaker 217. The computer module 201 can use an external modulator-demodulator (modem) transceiver device 216 to communicate with a communication network 220 via a connection 221. The communication network 220, which can represent a communication channel 120, can be a wide area network (WAN), such as the Internet, a cellular telecommunications network, or a private WAN. In the case where the connection 221 is a telephone line, the modem 216 can be a traditional "dial-up" modem. Alternatively, in the case where the connection 221 is a high-capacity (e.g., cable or optical) connection, the modem 216 can be a broadband modem. Wireless modems can also be used to make wireless connections to the communication network 220. The transceiver device 216 may provide the functionality of the transmitter 116 and the receiver 132 , and the communication channel 120 may be embodied in the wiring 221 .
[0085] The computer module 201 typically includes at least one processor unit 205 and a memory unit 206. For example, the memory unit 206 may have a semiconductor random access memory (RAM) and a semiconductor read-only memory (ROM). The computer module 201 also includes a plurality of input / output (I / O) interfaces, wherein the plurality of input / output (I / O) interfaces include: an audio-video interface 207 connected to a video display 214, a speaker 217, and a microphone 280; an I / O interface 213 connected to a keyboard 202, a mouse 203, a scanner 226, a camera 227, and an optional joystick or other human-machine interface device (not shown); and an interface 208 for an external modem 216 and a printer 215. The signal from the audio-video interface 207 to the computer monitor 214 is typically the output of a computer graphics card. In some implementations, the modem 216 may be built into the computer module 201, such as built into the interface 208. The computer module 201 also has a local network interface 211, which allows the computer system 200 to be connected to a local area communication network 222, known as a local area network (LAN), via a connection 223. Figure 2A As shown, the local communication network 222 can also be connected to the wide area network 220 via a connection 224, wherein the local communication network 222 typically includes a so-called "firewall" device or a device with similar functions. The local network interface 211 can include an Ethernet (EthernetTM) circuit card, a Bluetooth (BluetoothTM) wireless configuration, or an IEEE 802.11 wireless configuration; however, for the interface 211, a variety of other types of interfaces can be implemented. The local network interface 211 can also provide the functions of the transmitter 116 and the receiver 132, and the communication channel 120 can also be embodied in the local communication network 222.
[0086] I / O interfaces 208 and 213 may provide either or both of a serial connection and a parallel connection, wherein the former is typically implemented according to the Universal Serial Bus (USB) standard and has a corresponding USB connector (not shown). A storage device 209 is provided, and the storage device 209 typically includes a hard disk drive (HDD) 210. Other storage devices (not shown) such as floppy disk drives and tape drives may also be used. An optical disk drive 212 is typically provided to serve as a non-volatile source of data. Portable memory devices such as optical disks (e.g., CD-ROMs, DVDs, Blu-ray Discs), USB-RAMs, portable external hard disk drives, and floppy disks may be used as appropriate sources of data for the computer system 200. Typically, any of the HDD 210, optical disk drive 212, networks 220 and 222 may also be configured to operate as a video source 112, or as a destination for stored decoded video data to be reproduced via a display 214. The source device 110 and the destination device 130 of the system 100 may be embodied in the computer system 200.
[0087] The components 205-213 of the computer module 201 typically communicate via an interconnect bus 204 and in a manner that results in conventional modes of operation of the computer system 200 known to those skilled in the relevant art. For example, the processor 205 is connected to the system bus 204 using a connection 218. Likewise, the memory 206 and the optical drive 212 are connected to the system bus 204 via a connection 219. Examples of computers on which the described configuration may be practiced include IBM-PC and compatible machines, Sun SPARCstations, Apple Mac™, or similar computer systems.
[0088] Where appropriate or desired, the video encoder 114 and the video decoder 134 and the methods described below may be implemented using the computer system 200. In particular, the video encoder 114, the video decoder 134 and the methods to be described may be implemented as one or more software applications 233 executable within the computer system 200. In particular, instructions 231 (see FIG. 1 ) in the software 233 executed within the computer system 200 may be used to implement the video encoder 114 and the video decoder 134 and the methods to be described below. Figure 2B ) to implement the video encoder 114, the video decoder 134 and the steps of the method. The software instructions 231 may be formed into one or more code modules each for performing one or more specific tasks. The software may also be split into two separate parts, with a first part and corresponding code modules performing the method, and a second part and corresponding code modules managing a user interface between the first part and a user.
[0089] For example, the software may be stored in a computer readable medium including a storage device as described below. The software is loaded from the computer readable medium into the computer system 200 and then executed by the computer system 200. A computer readable medium with such software or a computer program recorded on the computer readable medium is a computer program product. The use of the computer program product in the computer system 200 preferably implements an advantageous device for implementing the video encoder 114, the video decoder 134 and the method.
[0090] The software 233 is typically stored in the HDD 210 or the memory 206. The software is loaded into the computer system 200 from a computer readable medium and executed by the computer system 200. Thus, for example, the software 233 may be stored on an optically readable disk storage medium (e.g., a CD-ROM) 225 read by the optical drive 212.
[0091] In some examples, the application 233 is provided to the user in a manner encoded on one or more CD-ROMs 225 and read via corresponding drives 212, or alternatively, the application 233 can be read by the user from the network 220 or 222. Further, the software can also be loaded into the computer system 200 from other computer-readable media. Computer-readable storage media refers to any non-transitory tangible storage medium that provides recorded instructions and / or data to the computer system 200 for execution and / or processing. Examples of such storage media include floppy disks, magnetic tapes, CD-ROMs, DVDs, Blu-ray Discs, hard drives, ROMs or integrated circuits, USB memories, magneto-optical disks, or computer-readable cards such as PCMCIA cards, etc., regardless of whether these devices are inside or outside the computer module 201. Examples of temporary or non-tangible computer-readable transmission media that may also be involved in providing software, applications, instructions and / or video data or encoded video data to the computer module 401 include: radio or infrared transmission channels and network connections to other computers or networked devices, and the Internet or Intranet including e-mail transmissions and information recorded on websites.
[0092] The second portion of the above-mentioned application 233 and the corresponding code modules can be executed to implement one or more graphical user interfaces (GUIs) to be drawn or otherwise presented on the display 214. Users and applications of the computer system 200 can operate the interface in a functionally applicable manner by typically operating the keyboard 202 and the mouse 203 to provide control commands and / or input to the applications associated with these (one or more) GUIs. Other forms of user interfaces that are functionally applicable can also be implemented, such as audio interfaces that utilize voice prompts output via the speaker 217 and user voice commands input via the microphone 280, etc.
[0093] Figure 2B is a detailed schematic block diagram of the processor 205 and the "memory" 234. The memory 234 represents Figure 2A A logical aggregation of all memory modules (including HDD 209 and semiconductor memory 206) that can be accessed by computer module 201 in.
[0094] When the computer module 201 is initially powered on, a power-on self-test (POST) program 250 is executed. The POST program 250 is usually stored in Figure 2A 249 of semiconductor memory 206. Hardware devices such as ROM 249 storing software are sometimes referred to as firmware. POST program 250 checks the hardware within computer module 201 to ensure proper operation, and typically checks processor 205, memory 234 (209, 206), and basic input-output system software (BIOS) module 251, which is also typically stored in ROM 249, for correct operation. Once POST program 250 runs successfully, BIOS 251 starts Figure 2A The hard disk drive 210 is started so that the boot loader 252 residing on the hard disk drive 210 is executed via the processor 205. This loads the operating system 253 into the RAM memory 206, where the operating system 253 starts to work on the RAM memory 206. The operating system 253 is a system-level application executable by the processor 205 to implement various high-level functions including processor management, memory management, device management, storage management, software application interface, and general user interface.
[0095] The operating system 253 manages the memory 234 (209, 206) to ensure that each process or application running on the computer module 201 has sufficient memory to execute without conflicting with memory allocated to other processes. In addition, the appropriate use of Figure 2AThe different types of memory available in the computer system 200 are described so that each process can run efficiently. Therefore, the aggregate memory 234 is not intended to illustrate how to allocate specific segments of memory (unless otherwise specified), but rather to provide an overview of the memory accessible to the computer system 200 and how to use it.
[0096] like Figure 2B As shown, the processor 205 includes a plurality of functional modules, wherein the plurality of functional modules include a control unit 239, an arithmetic logic unit (ALU) 240, and a local or internal memory 248 sometimes referred to as a cache memory. The cache memory 248 typically includes a plurality of storage registers 244-246 in a register section. One or more internal buses 241 functionally interconnect these functional modules. The processor 205 also typically has one or more interfaces 242 for communicating with external devices via the system bus 204 using a connection 218. The memory 234 is connected to the bus 204 using a connection 219.
[0097] The application program 233 includes an instruction sequence 231 that may include conditional branch instructions and loop instructions. The program 233 may also include data 232 used when executing the program 233. The instructions 231 and data 232 are stored in memory locations 228, 229, 230 and 235, 236, 237, respectively. Depending on the relative size of the instructions 231 and the memory locations 228-230, a particular instruction may be stored in a single memory location, as described by the instruction shown in memory location 230. Alternatively, the instruction may be split into multiple parts, each stored in a separate memory location, as described by the instruction segments shown in memory locations 228 and 229.
[0098] Typically, the processor 205 is given a set of instructions, which are executed within the processor 205. The processor 205 awaits a subsequent input, which the processor 205 reacts to by executing another set of instructions. Each input may be provided from one or more of a plurality of sources, including data generated by one or more of the input devices 202, 203, data received from an external source via one of the networks 220, 202, data retrieved from one of the storage devices 206, 209, or data retrieved from a storage medium 225 inserted into a corresponding reader 212 (all of which are described in detail in the accompanying drawings). Figure 2A Execution of a set of instructions may result in outputting data in some cases. Execution may also involve storing data or variables to memory 234.
[0099] The video encoder 114, the video decoder 134, and the method may use input variables 254 stored in corresponding memory locations 255, 256, 257 within the memory 234. The video encoder 114, the video decoder 134, and the method produce output variables 261 stored in corresponding memory locations 262, 263, 264 within the memory 234. Intermediate variables 258 may be stored in memory locations 259, 260, 266, and 267.
[0100] refer to Figure 2B The processor 205, registers 244, 245, 246, arithmetic logic unit (ALU) 240 and control unit 239 work together to perform micro-operation sequences required to perform a "fetch, decode and execute" cycle for each instruction in the instruction set that constitutes the program 233. Each fetch, decode and execute cycle includes:
[0101] (a) a fetch operation for fetching or reading instruction 231 from memory locations 228, 229, 230;
[0102] (b) a decode operation in which the control unit 239 determines which instruction was fetched; and
[0103] (c) An execution operation, in which the control unit 239 and / or the ALU 240 executes the instruction.
[0104] Thereafter, further fetch, decode and execute cycles for the next instruction may be performed. Likewise, a store cycle may be performed, whereby the control unit 239 stores or writes a value to the memory location 232 .
[0105] To be explained Fig.12 and Fig.13 Each step or sub-processing in the method is associated with one or more segments of the program 233, and is typically performed by the register units 244, 245, 247, ALU 240 and control unit 239 in the processor 205 working together to perform fetch, decode and execute cycles for each instruction in the instruction set of the segment of the program 233.
[0106] Figure 3 is a schematic block diagram illustrating the functional modules of the video encoder 114 . Figure 4 1 is a schematic block diagram showing the functional modules of the video decoder 134. Typically, data is transferred between the functional modules within the video encoder 114 and the video decoder 134 in groups of samples or coefficients (such as partitioning of a block into fixed-size sub-blocks, etc.) or as an array. Figure 2A and 2BAs shown, the video encoder 114 and the video decoder 134 can be implemented using a general-purpose computer system 200, wherein various functional modules can be implemented using dedicated hardware within the computer system 200, using software executable within the computer system 200 (such as one or more software code modules of a software application 233 residing on a hard disk drive 205 and controlled by a processor 205 for execution, etc.). Alternatively, the video encoder 114 and the video decoder 134 can be implemented using a combination of dedicated hardware and software executable within the computer system 200. The video encoder 114, the video decoder 134 and the method can alternatively be implemented in dedicated hardware such as one or more integrated circuits that perform the functions or sub-functions of the method. Such dedicated hardware may include a graphics processing unit (GPU), a digital signal processor (DSP), an application-specific standard product (ASSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or one or more microprocessors and associated memory. In particular, the video encoder 114 includes modules 310 - 386 , and the video decoder 134 includes modules 420 - 496 , where each of these modules may be implemented as one or more software code modules of the software application 233 .
[0107] although Figure 3 The video encoder 114 is an example of a Versatile Video Coding (VVC) video encoding pipeline, but other video codecs may also be used to perform the processing stages described herein. The video encoder 114 receives captured frame data 113, such as a series of frames (each frame including one or more color channels). The block partitioner 310 first partitions the frame data 113 into CTUs, which are typically square in shape and are configured so that a specific size of the CTU is used. For example, the size of the CTU may be 64×64, 128×128, or 256×256 luma samples. The block partitioner 310 further partitions each CTU into one or more CUs, where the CU has various sizes that may include both square and non-square aspect ratios. However, in the VVC standard, CUs, PUs, and TUs always have side lengths that are powers of 2. Thus, the current CU (denoted as 312) is output from the block partitioner 310, thereby advancing according to the iteration of one or more blocks of the CTU and according to the coding tree of the CTU. The following reference Figure 5 and 6 To further illustrate the options for partitioning a CTU into CUs.
[0108] The CTUs resulting from the first partitioning of the frame data 113 may be scanned in raster scan order and may be grouped into one or more "slices". A slice may be an "intra" (or "I") slice. An intra slice (I slice) indicates that each CU in the slice is intra predicted. Optionally, a slice may be uni-predicted or bi-predicted ("P" or "B" slices, respectively), indicating the additional availability of uni-prediction and bi-prediction in the slice, respectively. Since the frame data 113 typically includes multiple color channels, the CTU and CU are associated with samples from all color channels that overlap with the block region defined by the operation of the slave block partitioner 310. The CU includes a coding block (CB) for each color channel of the frame data 113. Since the sampling rates of the chroma channels are potentially different from those of the luminance channels, the size of the CB of the chroma channels may be different from the size of the CB of the luminance channel. When the 4:2:0 chroma format is used, the size of the CB of the chroma channels of the CU is half the width and height of the CB of the luminance channel of the CU.
[0109] For each CTU, the video encoder 114 operates in two stages. In the first stage (referred to as the "search" stage), the block partitioner 310 tests various potential configurations of the coding tree. Each potential configuration of the coding tree has an associated "candidate" CU. The first stage involves testing various candidate CUs to select a CU that provides high compression efficiency and low distortion. This testing typically involves Lagrangian optimization, whereby candidate CUs are evaluated based on a weighted combination of rate (coding cost) and distortion (error with respect to the input frame data 113). The "best" candidate CU (the CU with the lowest rate / distortion) is selected for subsequent encoding in the bitstream 115. The evaluation of candidate CUs includes the following options: use the CU for a given region, or split the region according to various splitting options and use other CUs to encode each smaller resulting region or further split the region. As a result, both the CU and the coding tree itself are selected in the search stage.
[0110] The video encoder 114 generates a prediction unit (PU) indicated by arrow 320 for each CU (e.g., CU 312). PU 320 is a prediction of the content of the associated CU 312. Subtractor module 322 generates a difference (or "residual," which means that the difference is in the spatial domain) between PU 320 and CU 312, represented as 324. Difference 324 is a block size difference between corresponding samples in PU 320 and CU 312. Difference 324 is transformed, quantized, and represented as a transform unit (TU) indicated by arrow 336. PU 320 and associated TU 336 are typically selected as the "best" CU among multiple possible candidate CUs.
[0111] A candidate coding unit (CU) is a CU resulting from one of the prediction modes available to the video encoder 114 for the associated PU and the resulting residual. Each candidate CU results in one or more corresponding TUs, as described below with reference to Figures 10A to 12 TU 336 is a quantized and transformed representation of difference 324. When combined with a predicted PU in decoder 114, TU 336 reduces the difference between the decoded CU and original CU 312 at the expense of additional signaling in the bitstream.
[0112] Thus, each candidate coding unit (CU) (i.e., a combination of a prediction unit (PU) and a transform unit (TU)) has an associated coding cost (or "rate") and an associated difference (or "distortion"). The rate is typically measured in bits. The distortion of a CU is typically estimated as a difference in sample values, such as the sum of absolute differences (SAD) or the sum of squared differences (SSD). The mode selector 386 uses the difference 324 to determine the estimate obtained from each candidate PU to determine the intra-frame prediction mode (indicated by arrow 388). The estimation of the coding cost associated with each candidate prediction mode and the corresponding residual encoding can be performed at a significantly lower cost than the entropy encoding of the residual. Therefore, multiple candidate modes can be evaluated to determine the best mode in terms of rate distortion.
[0113] Determining the best mode is typically implemented using a variation of Lagrangian optimization. Selecting an intra-prediction mode 388 typically involves determining the coding cost of the residual data resulting from applying a particular intra-prediction mode. The coding cost can be approximated by using the "sum of absolute transform differences" (SATD), thereby using a relatively simple transform such as a Hadamard transform to obtain an estimated transform residual cost. In some implementations using relatively simple transforms, the cost obtained from the simplified estimation method is monotonically related to the actual cost that would otherwise be determined from a complete evaluation. In implementations with monotonically related estimated costs, the simplified estimation method can be used to make the same decision (i.e., intra-prediction mode), where the complexity of the video encoder 114 is reduced. In order to allow for possible non-monotonicity in the relationship between the estimated cost and the actual cost, the simplified estimation method can be used to generate a list of best candidates. For example, non-monotonicity can be obtained from other mode decisions that can be used for encoding of the residual data. The list of best candidates can have any number. The best candidates can be used to conduct a more complete search to establish the best mode selection for encoding the residual data of each candidate, thereby allowing the final selection of the intra-prediction mode and other mode decisions.
[0114] Other mode decisions include the ability to skip the forward transform (referred to as "transform skip"). Skipping a transform is appropriate for residual data that lacks sufficient correlation to reduce the coding cost via an expression that is a transform basis function. Certain types of content, such as relatively simple computer generated graphics, may exhibit similar behavior. For a "skipped transform", the residual coefficients are still encoded even though the transform itself is not performed.
[0115] A Lagrangian or similar optimization process may be employed for both the selection of the partitioning of a CTU into a CU (using the block partitioner 310) and the selection of the best prediction mode from multiple possibilities. By applying the Lagrangian optimization process of the candidate modes in the mode selector module 386, the intra-prediction mode with the lowest cost measure is selected as the best mode. The best mode is the selected intra-prediction mode 388 and is also encoded in the bitstream 115 by the entropy encoder 338. The selection of the intra-prediction mode 388 by the operation of the mode selector module 386 is extended to the operation of the block partitioner 310. For example, the candidates for the selection of the intra-prediction mode 388 may include a mode applicable to a given block and additional modes applicable to multiple smaller blocks that are collectively co-located with the given block. In the case of including modes applicable to the given block and the smaller co-located blocks, the process of selecting the candidates is implicitly also a process for determining the best hierarchical decomposition of the CTU into the CU.
[0116] In the second stage of operation of the video encoder 114 (referred to as the "encoding" stage), iterations over the selected coding trees (and thus the various selected CUs) are performed in the video encoder 114. In the iterations, the CUs are encoded in the bitstream 115 as further described herein.
[0117] The entropy encoder 338 supports both variable length encoding of syntactic elements and arithmetic encoding of syntactic elements. Arithmetic coding is supported using context-adaptive binary arithmetic coding processing. The syntactic elements of arithmetic coding are composed of a sequence of one or more "bins (binary files)". Like a bit, the value of a bin is "0" or "1". However, a bin is not encoded in the bit stream 115 as a discrete bit. A bin has an associated prediction (or "likely" or "maximum probability") value and an associated probability (referred to as "context"). When the actual bin to be encoded matches the predicted value, the "maximum probability symbol" (MPS) is encoded. Encoding the maximum probability symbol is relatively cheap in terms of consuming bits. When the actual bin to be encoded does not match the possible value, the "minimum probability symbol" (LPS) is encoded. Encoding the minimum probability symbol has a relatively high cost in terms of consuming bits. The bin encoding technique enables bins with probability skews of "0" vs "1" to be efficiently encoded. For a syntactic element with two possible values (i.e., "flag"), a single bin is sufficient. For syntax elements with many possible values, a sequence of bins is needed.
[0118] The presence of a later bin in the sequence may be determined based on the value of an earlier bin in the sequence. In addition, each bin may be associated with more than one context. A particular context may be selected based on, for example, an earlier bin in a syntax element and the bin values of adjacent syntax elements (i.e., bin values from adjacent blocks). Each time a context coding bin is encoded, the context selected for that bin (if any) is updated to reflect the new bin value. In this way, the binary arithmetic coding scheme is considered to be adaptive.
[0119] The video encoder 114 also supports bins that lack context ("bypass bins"). Bypass bins are encoded assuming an equal probability distribution between "0" and "1". Thus, each bin occupies one bit in the bitstream 115. The absence of context saves memory and reduces complexity, so bypass bins where the distribution of values for a particular bin is not skewed are used. An example of an entropy encoder that employs context and adaptation is known in the art as CABAC (Context Adaptive Binary Arithmetic Coder), and many variations of this encoder are employed in video encoding.
[0120] The entropy encoder 338 encodes the intra-frame prediction mode 388 using a combination of context-coded and bypass-coded bins. Typically, a list of "maximum probability modes" is generated in the video encoder 114. The list of maximum probability modes is typically a fixed length such as three or six modes, and may include modes encountered in early blocks. The context-coded bin encodes a flag indicating whether the intra-frame prediction mode is one of the maximum probability modes. If the intra-frame prediction mode 388 is one of the maximum probability modes, further signaling is encoded using the bypass-coded bin. For example, further signaling after encoding uses a truncated unary bin string to indicate which maximum probability mode corresponds to the intra-frame prediction mode 388. Otherwise, the intra-frame prediction mode 388 is encoded as a "remaining mode". Encoding as a remaining mode uses an alternative syntax such as a fixed-length code, and is also encoded using a bypass-coded bin to represent an intra-frame prediction mode other than the intra-frame prediction mode present in the maximum probability mode list.
[0121] The multiplexer module 384 outputs the PU 320 according to the determined best intra prediction mode 388 selected from the tested prediction modes of the candidate CUs. The candidate prediction modes need not include every conceivable prediction mode supported by the video encoder 114.
[0122] Prediction modes are roughly divided into two categories. The first category is "intra-frame prediction" (also called "intra prediction"). In intra prediction, a prediction of a block is generated, and the generation method can use other samples obtained from the current frame. For intra-predicted PUs, it is possible to use different intra prediction modes for luma and chroma, so intra prediction is mainly described in terms of operations on PBs rather than PUs.
[0123] The second category of prediction modes is "inter-frame prediction" (also called "inter prediction"). In inter prediction, samples from one or two frames that precede the current frame in the order of the coded frames in the bitstream are used to generate a prediction of the block. The order of the coded frames in the bitstream may be different from the order of the frames when captured or displayed. When one frame is used for prediction, the block is called "uni-predicted" and has two associated motion vectors. When two frames are used for prediction, the block is called "bi-predicted" and has two associated motion vectors. For P slices, each CU can be intra-predicted or uni-predicted. For B slices, each CU can be intra-predicted, uni-predicted, or bi-predicted. Frames are typically encoded using a "group of pictures" structure, thereby achieving a temporal hierarchy of frames. The temporal hierarchy of frames allows frames to reference previous and subsequent pictures in the order in which the frames are displayed. Images are encoded in the order necessary to ensure that the dependencies for decoding each frame are met.
[0124] A subcategory of inter prediction is called "skip mode". Inter prediction and skip mode are described as two different modes. However, both inter prediction mode and skip mode involve motion vectors that refer to blocks of samples from previous frames. Inter prediction involves encoding motion vector deltas to specify motion vectors relative to motion vector predictors. Motion vector predictors are obtained from a list of one or more candidate motion vectors selected using a "merge index". The encoded motion vector delta provides a spatial offset relative to the selected motion vector prediction. Inter prediction also uses the encoded residual in the bitstream 133. Skip mode uses only an index (also called a "merge index") to select one from several motion vector candidates. The selected candidate is used without any further signaling. Moreover, skip mode does not support encoding of any residual coefficients. The absence of encoded residual coefficients when using skip mode means that no transformation of skip mode is required. Therefore, skip mode does not usually cause pipeline processing problems. Pipeline processing problems may be the case for intra-predicted CUs and inter-predicted CUs. Due to the limited signaling of skip mode, skip mode is useful for achieving very high compression performance when relatively high-quality reference frames are available. Bi-predicted CUs in higher temporal layers of the random access group of pictures structure usually have high-quality reference pictures and motion vector candidates that accurately reflect the underlying motion. As a result, skip mode is useful for transferring reference pictures to Figure 8B Bi-predicted blocks in frames at higher temporal layers in the described random access group of pictures structure are useful.
[0125] Samples are selected based on motion vectors and reference picture indices. Motion vectors and reference picture indices apply to all color channels, so inter prediction is described primarily in terms of operations on PUs rather than PBs. Within each category (i.e., intra and inter prediction), different techniques can be applied to generate PUs. For example, intra prediction can use the value combination direction of adjacent rows and columns from previously reconstructed samples to generate PUs according to a specified filtering and generation process. Alternatively, a small number of parameters can be used to describe PUs. Inter prediction methods may vary in the number of motion parameters and their accuracy. Motion parameters typically include a reference frame index (which indicates which reference frames from a reference frame list will be used plus the spatial translation of each reference frame), but may include more frames, special frames, or complex affine parameters such as scaling and rotation. In addition, a predetermined motion refinement process can be applied to generate a dense motion estimate based on a block of reference samples.
[0126] When the best PU 320 is determined and selected and subtracted from the original sample block at subtractor 322, a residual with the lowest coding cost (denoted as 324) is obtained and lossy compressed. The lossy compression process includes the steps of transform, quantization and entropy coding. Transform module 326 applies a forward transform to the difference 324, thereby converting the difference 324 to the frequency domain and producing transform coefficients represented by arrow 332. The forward transform is generally separable, so that a group of rows and then a group of columns of each block are transformed. The transformation of each group of rows and columns is performed by first applying a one-dimensional transform to each row of the block to produce a partial result and then applying a one-dimensional transform to each column of the partial result to produce a final result.
[0127] The transform coefficients 332 are passed to a quantizer module 334. At module 334, quantization according to a "quantization parameter" is performed to produce residual coefficients represented by arrow 336. The quantization parameter is constant for a given TB, resulting in uniform scaling of the generated residual coefficients for the TB. Non-uniform scaling can also be achieved by applying a "quantization matrix", whereby the scaling factor applied to each residual coefficient is derived from a combination of the quantization parameter and the corresponding entry in the scaling matrix whose size is generally equal to the size of the TB. The residual coefficients 336 are supplied to an entropy encoder 338 for encoding in the bitstream 115. Typically, the residual coefficients of each TB and at least one significant residual coefficient of the TU are scanned according to a scanning pattern to generate an ordered list of values. The scanning pattern typically scans the TB as a sequence of 4×4 "sub-blocks", thereby providing a conventional scanning operation at a granularity of 4×4 sets of residual coefficients, where the configuration of the sub-blocks depends on the size of the TB. In addition, the prediction mode 388 and the corresponding block partitions are also encoded in the bitstream 115.
[0128] As described above, the video encoder 114 needs access to a frame representation that corresponds to the frame representation seen in the video decoder 134. Thus, the residual coefficients 336 are also inverse quantized by the dequantizer module 340 to produce inverse transform coefficients represented by arrows 342. The inverse transform coefficients 342 pass through the inverse transform module 348 to produce residual samples for the TU represented by arrows 350. The summation module 352 adds the residual samples 350 and the PU 320 to produce reconstructed samples for the CU (indicated by arrows 354).
[0129] The reconstructed samples 354 are passed to the reference sample cache 356 and the in-loop filter module 368. The reference sample cache 356, which is typically implemented using static RAM on an ASIC (thus avoiding expensive off-chip memory accesses), provides the minimum sample storage required to satisfy the dependencies used to generate intra PBs for subsequent CUs in the frame. The minimum dependencies typically include a "line buffer" of samples along the bottom of a row of CTUs for use by the next row of CTUs and a column buffer with a range set by the height of the CTU. The reference sample cache 356 supplies reference samples (represented by arrow 358) to the reference sample filter 360. The sample filter 360 applies a smoothing operation to produce filtered reference samples (indicated by arrow 362). The filtered reference samples 362 are used by the intra prediction module 364 to produce an intra prediction block of samples represented by arrow 366. For each candidate intra prediction mode, the intra prediction module 364 produces a sample block, namely 366.
[0130] The in-loop filter module 368 applies several filtering stages to the reconstructed samples 354. The filtering stages include a "deblocking filter" (DBF), which applies smoothing aligned with CU boundaries to reduce artifacts caused by discontinuities. Another filtering stage present in the in-loop filter module 368 is an "adaptive loop filter" (ALF), which applies a Wiener-based adaptive filter to further reduce distortion. Another available filtering stage in the in-loop filter module 368 is a "sample adaptive offset" (SAO) filter. The SAO filter works by first classifying the reconstructed samples into one or more categories and applying an offset at the sample level according to the assigned category.
[0131] Filtered samples, represented by arrow 370, are output from the in-loop filter module 368. The filtered samples 370 are stored in a frame buffer 372. The frame buffer 372 typically has the capacity to store several (e.g., up to 16) pictures and is therefore stored in the memory 206. Due to the large memory consumption required, the frame buffer 372 is typically not stored using on-chip memory. As such, access to the frame buffer 372 is expensive in terms of memory bandwidth. The frame buffer 372 provides a reference frame (represented by arrow 374) to the motion estimation module 376 and the motion compensation module 380.
[0132] The motion estimation module 376 estimates a plurality of "motion vectors" (denoted as 378), each of which is a Cartesian spatial offset relative to the position of the current CU, thereby referencing a block in one of the reference frames in the frame buffer 372. A filtered block of reference samples (denoted as 382) is generated for each motion vector. The filtered reference samples 382 form a further candidate mode for potential selection by the mode selector 386. In addition, for a given CU, the PU 320 may be formed using one reference block ("uni-predicted"), or may be formed using two reference blocks ("bi-predicted"). For a selected motion vector, the motion compensation module 380 generates the PU 320 according to a filtering process that supports sub-pixel precision in the motion vector. In this way, the motion estimation module 376 (which operates on many candidate motion vectors) can perform a simplified filtering process compared to the motion compensation module 380 (which operates only on the selected candidate) to achieve reduced computational complexity.
[0133] Although the reference to Versatile Video Coding (VVC) describes Figure 3 The video encoder 114 of the embodiment of the present invention may be used, but other video coding standards or implementations may also use the processing stages of modules 310-386. The frame data 113 (and the bit stream 115) may also be read from the memory 206, the hard disk drive 210, the CD-ROM, the blue disc (Blue-ray diskTM) or other computer-readable storage medium (or written to the memory 206, the hard disk drive 210, the CD-ROM, the blue disc or other computer-readable storage medium). In addition, the frame data 113 (and the bit stream 115) may be received from an external source (such as a server or a radio frequency receiver connected to the communication network 220) (or sent to the external source).
[0134] exist Figure 4 The video decoder 134 is shown in FIG. Figure 4 The video decoder 134 of FIG. 1 is an example of a Versatile Video Coding (VVC) video decoding pipeline, but other video codecs may also be used to perform the processing stages described herein. Figure 4As shown, the bitstream 133 is input to the video decoder 134. The bitstream 133 can be read from the memory 206, the hard disk drive 210, the CD-ROM, the Blu-ray disc or other non-transitory computer-readable storage medium. Alternatively, the bitstream 133 can be received from an external source (such as a server or a radio frequency receiver connected to the communication network 220). The bitstream 133 contains the encoding syntax elements representing the captured frame data to be decoded.
[0135] The bitstream 133 is input to the entropy decoder module 420. The entropy decoder module 420 extracts syntax elements from the bitstream 133 and passes the values of the syntax elements to other modules in the video decoder 134. The entropy decoder module 420 applies the CABAC algorithm to decode the syntax elements from the bitstream 133. The decoded syntax elements are used to reconstruct parameters within the video decoder 134. The parameters include residual coefficients (indicated by arrow 424) and mode selection information such as intra-frame prediction mode (indicated by arrow 458). The mode selection information also includes information such as motion vectors, and the partitioning of each CTU into one or more CUs. The parameters are used to generate PUs, usually in combination with sample data from a previously decoded CU.
[0136] The residual coefficients 424 are input to a dequantizer module 428. The dequantizer module 428 inverse quantizes (or "scales") the residual coefficients 424 to create reconstructed transform coefficients according to the quantization parameters (indicated by arrow 440). If the use of a non-uniform inverse quantization matrix is indicated in the bitstream 133, the video decoder 134 reads the quantization matrix from the bitstream 133 as a sequence of scaling factors and arranges the scaling factors into a matrix according to the quantization parameters. Inverse scaling uses the quantization matrix in combination with the quantization parameters to create reconstructed intermediate transform coefficients.
[0137] The reconstructed transform coefficients 440 are passed to an inverse transform module 444. Module 444 transforms the coefficients from the frequency domain back to the spatial domain. TB is effectively based on valid residual coefficients and non-significant residual coefficient values. The result of the operation of module 444 is a block of residual samples represented by arrow 448. The residual samples 448 are equal in size to the corresponding CU. The residual samples 448 are supplied to a summing module 450. At the summing module 450, the residual samples 448 are added to the decoded PU represented by 452 to produce a block of reconstructed samples represented by arrow 456. The reconstructed samples 456 are supplied to a reconstructed sample cache 460 and an in-loop filtering module 488. The in-loop filtering module 488 produces a reconstructed block of frame samples represented by 492. The frame samples 492 are written to a frame buffer 496.
[0138] The reconstructed sample cache 460 operates in a manner similar to the reconstructed sample cache 356 of the video encoder 114. The reconstructed sample cache 460 provides storage for reconstructed samples required for intra prediction of subsequent CUs without the memory 206 (e.g., by using data 232, which is typically on-chip memory, instead). Reference samples, represented by arrow 464, are obtained from the reconstructed sample cache 460 and are supplied to a reference sample filter 468 to produce filtered reference samples, represented by arrow 472. The filtered reference samples 472 are supplied to an intra prediction module 476. The module 476 produces a block of intra prediction samples, represented by arrow 480, based on the intra prediction mode parameters 458 represented in the bitstream 133 and decoded by the entropy decoder 420.
[0139] When intra prediction is indicated in the bitstream 133 for the current CU, the intra prediction samples 480 form the decoded PU 452 via the multiplexer module 484 .
[0140] When inter prediction is indicated in the bitstream 133 for the current CU, the motion compensation module 434 selects and filters a block of samples from the frame buffer 496 using the motion vector and the reference frame index to produce a block of inter prediction samples represented as 438. The block of samples 498 is obtained from a previously decoded frame stored in the frame buffer 496. For bi-prediction, two blocks of samples are generated and blended together to produce samples for the decoded PU 452. The frame buffer 496 is populated with filter block data 492 from the in-loop filtering module 488. As with the in-loop filtering module 368 of the video encoder 114, the in-loop filtering module 488 applies any, at least or all of the DBF, ALF and SAO filtering operations. The in-loop filtering module 368 produces the filter block data 492 from the reconstructed samples 456.
[0141] Figure 5 5 is a schematic block diagram showing a set 500 of possible partitions or splits of a region into one or more sub-regions in a tree structure for general video coding. Figure 3 As described, the partitioning shown in set 500 may be utilized by block partitioner 310 of encoder 114 to partition each CTU into one or more CUs according to the coding number as determined by Lagrangian optimization.
[0142] Although set 500 only shows the partitioning of a square region into other possible non-square sub-regions, it should be understood that Figure 500 is showing potential partitioning and does not require the containing region to be square. If the containing region is non-square, the size of the block resulting from the partitioning is scaled according to the aspect ratio of the containing block. Once the region is not further split, that is, at the leaf node of the coding tree, the CU occupies the region. The specific sub-partitioning of the CTU into one or more CUs using the block partitioner 310 is called the "coding tree" of the CTU. The process of sub-dividing the region into sub-regions must be terminated when the resulting sub-region reaches the minimum CU size. In addition to constraining the CU to be prohibited from being smaller than, for example, 4×4, the CU is constrained to have a minimum width or height of four. Other minimum values are also possible in terms of width and height or in terms of width or height. The sub-division process can also be terminated before the deepest level of decomposition, resulting in a CU larger than the minimum CU size. It is possible that no splitting occurs, resulting in a single CU occupying the entire CTU. A single CU occupying the entire CTU is the maximum available coding unit size. In addition, the CU that has not been split is larger than the processing area size. As a result of binary or ternary splits at the highest level of the coding tree, CU sizes such as 64×128, 128×64, 32×128, and 128×32 are possible, each of which is also larger than the processing region size. Figures 10A-10F An example of a CU that is larger than the processing region size is further described.
[0143] In the absence of further sub-division, there is a CU at a leaf node of the coding tree. For example, leaf node 510 contains one CU. At a non-leaf node of the coding tree, there is a split to two or more other nodes, each of which may contain a leaf node (and thus a CU), or contain a further split to a smaller area.
[0144] like Figure 5 As shown, quadtree split 512 splits the containing area into four equal-sized areas. Compared to HEVC, Versatile Video Coding (VVC) achieves additional flexibility by adding horizontal binary split 514 and vertical binary split 516. Splits 514 and 516 each split the containing area into two equal-sized areas. The splits are along horizontal boundaries (514) or vertical boundaries (516) within the containing block.
[0145] Further flexibility is achieved in general video coding by adding ternary horizontal split 518 and ternary vertical split 520. Ternary split 518 and 520 divide the block into three regions bounded in the horizontal direction (518) or vertical direction (520) along 1 / 4 and 3 / 4 of the width or height of the containing region. The combination of quadtree, binary tree and ternary tree is called "QTBTTT" or alternatively multitree (MT).
[0146] Compared to HEVC, which only supports quadtrees and therefore only supports square blocks, QTBTTT obtains more possible CU sizes, especially considering the possible recursive application of binary and / or ternary tree splits. The possibility of abnormal (e.g., non-square) block sizes can be reduced by constraining the splitting options to eliminate splits that will result in block widths or heights less than four samples or that will result in splits that are not multiples of four samples. Typically, the constraints will apply when considering luma samples. However, the constraints can also be applied separately to blocks of chroma channels, which may result in different minimum block sizes for luma vs chroma (e.g., when the frame data uses a 4:2:0 chroma format). Each split produces sub-regions with side dimensions that are unchanged, bisected, or quartered relative to the containing area. Then, since the CTU size is a power of 2, the side dimensions of all CUs are also powers of 2.
[0147] Figure 6 6 is a schematic flow diagram showing a data flow 600 of a QTBTTT (or "coding tree") structure used in general video coding. The QTBTTT structure is used for each CTU to define the partitioning of the CTU into one or more CUs. The QTBTTT structure for each CTU is determined by the block partitioner 310 in the video encoder 114 and encoded into the bitstream 115 or decoded from the bitstream 133 by the entropy decoder 420 in the video decoder 134. Figure 5 As shown partitioned, data flow 600 further features permitted combinations that may be used by block partitioner 310 to partition a CTU into one or more CUs.
[0148] Starting from the top level of the hierarchy, i.e., at the CTU, zero or more quadtree partitions are first performed. Specifically, a quadtree (QT) split decision 610 is made by the block partitioner 310. The decision at 610 returns a "1" symbol, which indicates a decision to split the current node into four child nodes according to the quadtree split 512. The result is that four new nodes are generated, such as at 620, and for each new node, recursively return to the QT split decision 610. Each new node is considered in raster (or Z-scan) order. Alternatively, if the QT split decision 610 indicates that no further splitting is to be performed (returns a "0" symbol), the quadtree partitioning stops, and multi-tree (MT) splitting is then considered.
[0149] First, an MT split decision 612 is made by the block partitioner 310. At 612, a decision to perform an MT split is indicated. A "0" symbol is returned at the decision 612, indicating that no further splitting of the node into child nodes will be performed. If no further splitting of the node will be performed, the node is a leaf node of the coding tree and corresponds to a CU. The leaf node is output at 622. Alternatively, if the MT split 612 indicates a decision to perform an MT split (a "1" symbol is returned), the block partitioner 310 proceeds to a direction decision 614.
[0150] Direction decision 614 indicates the direction of the MT split as horizontal ("H" or "0") or vertical ("V" or "1"). If decision 614 returns "0" indicating a horizontal direction, block partitioner 310 proceeds to decision 616. If decision 614 returns "1" indicating a vertical direction, block partitioner 310 proceeds to decision 618.
[0151] In each of decisions 616 and 618, the number of partitions into which the MT is split is indicated as two (binary split or "BT" nodes) or three (ternary split or "TT") in the case of a BT / TT split. That is, the BT / TT split decision 616 is made by the block partitioner 310 when the direction indicated from 614 is horizontal, and the BT / TT split decision 618 is made by the block partitioner 310 when the direction indicated from 614 is vertical.
[0152] The BT / TT split decision 616 indicates whether the horizontal split is a binary split 514 indicated by returning “0” or a ternary split 518 indicated by returning “1”. When the BT / TT split decision 616 indicates a binary split, at a generate HBT CTU node step 625, the block partitioner 310 generates two nodes according to the binary horizontal split 514. When the BT / TT split 616 indicates a ternary split, at a generate HTT CTU node step 626, the block partitioner 310 generates three nodes according to the ternary horizontal split 518.
[0153] The BT / TT split decision 618 indicates whether the vertical split is a binary split 516 indicated by returning "0" or a ternary split 520 indicated by returning "1". When the BT / TT split 618 indicates a binary split, at step 627 of generating VBT CTU nodes, the block partitioner 310 generates two nodes according to the vertical binary split 516. When the BT / TT split 618 indicates a ternary split, at step 628 of generating VTT CTU nodes, the block partitioner 310 generates three nodes according to the vertical ternary split 520. For each node obtained from steps 625-628, the recursion of the data flow 600 back to the MT split decision 612 is applied in a left-to-right or top-to-bottom order according to the direction 614. As a result, binary and ternary tree splits can be applied to generate CUs of various sizes.
[0154] Fig. 7A and 7B An example partition 700 of a CTU 710 into multiple CUs is provided. Fig. 7A An example CU 712 is shown in FIG. Fig. 7A 7 shows the spatial arrangement of CUs in a CTU 710. Example partitioning 700 in Figure 7B Also shown in FIG. 7 is a coding tree 720 .
[0155] exist Fig. 7A At each non-leaf node (e.g., nodes 714, 716, and 718) in the CTU 710 of the coding tree 720, the contained nodes (which may be further partitioned or may be CUs) are scanned or traversed in "Z order" to create a list of nodes represented as columns in the coding tree 720. For quadtree splits, the Z order scan results in an order from top left to right followed by a bottom left to right order. For horizontal and vertical splits, the Z order scan (traversal) is simplified to a scan from top to bottom and a scan from left to right, respectively. Figure 7B The coding tree 720 lists all nodes and CUs according to the scanning order applied. Each split generates a list of two, three or four new nodes at the next level of the tree until a leaf node (CU) is reached.
[0156] In reference Figure 3 Where the image is decomposed into CTUs and further into CUs using block partitioner 310, and the CUs are used to generate respective residual blocks (324), the residual blocks are forward transformed and quantized using video encoder 114. The resulting TBs 336 are then scanned to form a sequential list of residual coefficients as part of the operation of entropy encoding module 338. Equivalent processing is performed in video decoder 134 to obtain the TBs from bitstream 133.
[0157] Fig. 8AAn example frame 800 is shown that includes a sequence of CTUs (e.g., CTU 812, followed by subsequent CTUs). Each CTU has a size of 128×128 luminance samples. If frame 800 is to be processed in units of CTUs using a local memory or integrated circuit of processor 205, the resulting local memory requirements will be prohibitive due to the 128×128 luminance samples of the CTU size. The implementation of the video encoder 114 and video decoder 134 described herein can reduce on-chip memory consumption by processing image data or bitstreams in an area smaller than the area of the CTU. On-chip memory is particularly expensive because on-chip memory consumes a large area on the die. Software implementations can also benefit by limiting more memory accesses to low-level cache memories (e.g., L1 and L2 cache memories), thereby reducing the need to access external memory. Thus, in order to reduce memory consumption, the implementation of the video encoder 114 and video decoder 134 can process data at a granularity smaller than the granularity of one CTU at a time.
[0158] A smaller granularity may be a region (or "pipeline processing region") size of 64x64 luma samples, similar to a quadtree subdivision of a CTU. Additionally, smaller granularity defines regions that are considered indivisible regions. Indivisible regions pass through the processing stages of the pipeline architecture. Pipeline processing regions are considered indivisible in the sense that a region defines an aggregation or chunk of data (such as a set of samples, blocks and coefficients, a portion of a bitstream, etc.) corresponding to a specific region on a frame (such as frame 800, etc.) and passes through the pipeline. Within a region, various arrangements of CUs may exist, and a CU may span multiple smaller granularity regions. These regions allow each pipeline processing stage to locally store only data associated with a smaller region (e.g., 64x64 luma samples or less), rather than data associated with the full CTU size of 128x128.
[0159] The described pipeline processing regions are also used to achieve a corresponding local memory reduction for chroma data. Within each CTU, the regions are processed in Z order. The processing proceeds from CTU to CTU in a raster scan manner, as shown by region scan 810. From the perspective of video decoder 134, the first pipeline stage is entropy decoder 420. Although bitstream 133 is parsed sequentially, the parsed syntax elements can be grouped according to region. For example, Fig. 8AThe region 814 is first processed by the entropy decoder 420. Once the entropy decoder 420 processes a region, the associated syntax elements are passed to the second pipeline stage. The second pipeline stage may be the inverse quantizer 428 and the inverse transform 444. Modules 428 and 444 are performed on all CUs in the region to produce residual samples 448 for the region. Once the second stage is completed, the residual samples 448 for the region are passed to the third stage. The third stage may include summation 450 (intra-frame reconstruction), reference sample cache 460, reference sample filter 468, and intra-frame prediction module 476. The third stage modules form a feedback loop, such as Figure 4 As shown and referenced in Figure 4 The feedback loop exists between adjacent CUs, and thus exists within a region and from one region to the next. The feedback loop requires a third stage module to be performed within a pipeline stage. In-loop filtering 488 is typically performed in one or more subsequent pipeline stages.
[0160] A separate feedback loop for inter prediction may also be implemented involving the frame buffer 496 and the motion compensation module 434. However, the feedback loop for inter prediction is from the current frame to the previous frame, thus not affecting the pipelining operation at the CTU level. Fig. 8A Areas that have yet to be processed (eg, 816) are shown in light shading.
[0161] Depending on the coding tree of each CTU, the region may contain different CUs of different sizes, for example, as described in Fig. 7A and 7B As described. Fig. 7A and 7B Examples include a quadtree split at the top level of the coding tree, Figure 7B denoted as 726 in . The quadtree is split into four 64×64 regions (which are further split into CUs of different sizes), aligned with the pipelined processing region size of 64×64. When encoding image frames containing highly detailed textures and no available reference pictures, as in the case of "intra" frames, there is a high probability that at least one quadtree split will occur. Thus, for intra coding, a smaller CTU size (e.g., 64×64) can be used than the CTU size used for 128×128 inter-prediction frames without imposing an unacceptable level of compression performance loss on the user.
[0162] Using a small CTU size (specifically one that does not exceed the size of the region used for pipeline processing) ensures that no CU, and therefore no TU, spans multiple regions. Transforms are operations that need to be performed within one pipeline stage because data dependencies within a transform span TBs, so that each residual coefficient affects every output sample from a TB. As a result, transforms represent the minimum level at which pipeline operations must be "atomic" (not further partitioned), so the data for a given transform must be completely contained within one pipeline processing region or data block in the pipeline.
[0163] However, within a pipeline processing region, multiple CUs and therefore multiple transforms are possible because each transform is fully contained within the processing region. The limit on transform size sets a worst-case scenario for the number of transforms that may be encountered within the processing region. For example, for a 64×64 processing region and considering the luma channel, the maximum number of 4×4 transforms that may be encountered within the processing region is 16×16=256. The maximum number of 8×8 transforms that may be encountered within the processing region is 8×8=64, and so on, up to 64×64 transforms, for which only one transform may be performed in one pipeline processing region. Similar calculations apply to the chroma channels.
[0164] For inter-prediction CUs, relatively larger CUs are possible. The possibility of larger CUs occurs due to the availability of one or more reference frames that may contain highly matching reference blocks. The video encoder 114 may select a large CU and in doing so copy a large block of samples from the reference frame to the current frame.
[0165] One way to encode an inter-predicted CU is via "skip mode". Indicates that a CU encoded in skip mode has no valid residual coefficients and obtains the corresponding motion vector from a spatial or temporal neighbor selected using a "merge index". The absence of any valid residual coefficients means that no inverse quantization or inverse transform steps are required. In this way, the placement of the skip mode CU within the CTU is not constrained by pipelining, and there is no need to determine the TU size of the skip mode CU. The skip mode CU does not introduce difficulties in the process of aligning a specific CU relative to the pipeline processing area. The skip mode CU is typically used when a high-quality reference frame is available in a state where motion parameters are easy to model. Thus, the skip mode CU is selected for blocks for which the decoder can accurately predict the motion vector. The motion vector selects a reference block that highly matches the expected output at the CU.
[0166] The use of skip mode is not limited to parts of an image containing relatively low detail. Parts of an image containing highly detailed textures can be replicated at low cost because the coding tree ends up with large CU sizes and the encoding of motion vectors for specifying spatial displacements is highly efficient, especially via merge index coding. Random access to frames in higher temporal layers of a group of pictures structure is an example of where skip mode offers high compression performance. Figure 6 The flexible block structure described in combination with a relatively large CTU size, such as 128×128, enables large CUs to be placed quite flexibly within each CTU. Thus, a decoder or encoder can adapt to changes in the motion field, such as those that typically occur at the boundaries between foreground and background objects. Large CUs typically become prevalent at low bit rates. Further, these large CUs can span multiple pipeline processing regions and do not need to be constrained to avoid spanning pipeline processing regions. Applying constraints to avoid spanning pipeline processing regions will be equivalent to a reduction in CTU size. Reducing the CTU size will limit the flexibility of both the CU size and the placement within each CTU, thereby undesirably reducing compression efficiency.
[0167] Figure 8B 850 is an example "random access" group of pictures (GOP) structure 850 of frames in a video. A sequence of seventeen frames is shown. For each frame, the display order 851, the coding order 852, and the temporal layer ID 853 are shown in the structure 850. The video starts with an intra frame 860. Since the reference picture buffer is empty, the intra frame 860 can only include intra-predicted CUs. The second frame to be encoded is a single-predicted frame (P slice) 870 (because the second value of the coding order 852 is "16"). The single-predicted frame 870 is encoded after the intra frame 860 and can only refer to the frame 860, as shown by the arrow 872. However, the display order of frame 870 is 16, so a relatively large change in content between frames 860 and 870 is possible. Thus, the encoding cost of frame 870 is relatively high. However, the encoding cost of frame 870 is less than the encoding cost of intra frame 860, in which no reference frame is available.
[0168] Intermediate frames can use bi-prediction, as indicated by two arrows relative to available reference frames (e.g. Figure 8B At higher temporal layers, the distance from a frame to a corresponding reference frame (the increment in the display order) is smaller. In general, compression performance is higher when the distance from a frame to a corresponding reference frame is smaller because the underlying image data changes less between frames. Frames at higher temporal layers are typically able to use larger CUs and utilize skip modes more frequently. The exception is when an occluded object becomes visible. When an occluded object becomes visible, there are typically no available reference blocks within the constraints of the group of pictures (GOP) structure, and the use of smaller CUs with intra prediction becomes more likely.
[0169] Fig. 9 A set 900 of supported transform sizes for the VVC standard for a luma channel is shown. The supported transform sizes for the luma channel are as follows: 4×4, 4×8, 4×16, 4×32, 8×4, 8×8, 8×16, 8×32, 16×4, 16×8, 16×16, 16×32, 32×4, 32×8, 32×16, 32×32, and 64×64. For chroma channels using a 4:2:0 chroma format, for each luma transform size, a corresponding chroma transform size is available. The chroma transform size has half the width and height of the luma transform size. The two-dimensional (2D) transform is separable, with a one-dimensional (1D) DCT-2 transform being performed both horizontally and vertically. Alternatively, a selection between a 1D DCT-7 transform and a 1D DST-7 transform, with independently controllable horizontal and vertical stages of the transform, may be made.
[0170] In general, a TU is associated with a CU. For each color channel, a TB is associated with a TU. However, when there are no valid coefficients for the transformation of a particular color channel, the TB of the color channel can be said to be non-existent. The color channel can be said to be non-existent because there is no need to transform the all-zero array of residual coefficients. Although one-dimensional (1D) transformations are usually defined in terms of matrix multiplication operations, implementations using butterfly steps and lifting steps are usually used to reduce complexity. Due to the horizontal and vertical stages of the application, there are dependencies within each 1D transformation and across 2D blocks. Therefore, each residual sample is affected by each residual coefficient (from the perspective of the inverse transform), and there is a corresponding relationship for the forward transform. The work of performing a forward transform or an inverse transform cannot be divided into segments (for example, to transform half of a TB and transform the other half later). The computational cost of determining half of a TB is almost the same as the cost of determining the entire TB. Therefore, the architecture that determines the transformation in a segment has a much higher complexity than the architecture that determines the transformation (from the perspective of the processing pipeline) as an "atomic" (indivisible) operation. In contrast, as described below, when processed in segments, a PU has a cost per segment that is approximately proportional to the segment size vs. the total PU size.
[0171] In order to support large CUs that span multiple pipeline processing regions, data dependencies for intra prediction and inter prediction cases are considered. For the intra prediction case, spatially adjacent reference samples and intra prediction modes are used to generate prediction blocks. When the CU is larger than the pipeline processing region size, the PU can be determined in multiple parts, so that the prediction pipeline stage operating on the pipeline processing region calculates a partial PB (for one region) and determines an additional partial PB (for subsequent regions), which together form the entire PB.
[0172] For intra-prediction blocks, determining a partial PB requires the use of reference samples of the PB. The reference samples do not need to be adjacent to the partial PB. For example, a 128×64 PB is split and processed into two 64×64 partial PBs. The resulting second (rightmost) 64×64 partial PB uses reference samples corresponding to the original (complete) 128×64 PB, while the unused reference samples are the 64×64 prediction blocks present at the location of the second 64×64 partial prediction block. As a result, a pipelined processing architecture operating at a granularity smaller than the CTU size is able to perform intra-prediction on PBs larger than the pipeline processing area size, with the additional cost of buffering additional reference samples for the partial PBs. The additional buffered reference samples are rows and columns of samples sized according to the width of the CTU, but no additional frame-wide row buffer is required.
[0173] For inter-frame prediction blocks, it is relatively simple to split a PU into multiple partial PUs because the common information used includes (one or more) motion vectors and (one or more) reference frame indices. In this way, a PU can span multiple pipeline processing areas and be processed as multiple partial PUs, each of which is contained in a separate pipeline processing area. Even if several PUs span multiple pipeline processing stages, the cost of storing associated motion vectors for use across multiple pipeline processing areas is low. Using large PUs for inter-frame prediction is highly beneficial for low bit rate applications and especially at higher levels when using picture group (GOP) structures such as "random access". In such a picture group structure and especially in low motion areas, relatively large PUs can be used. Large PUs are used to encode relatively large parts of the entire picture with the minimum syntax present in the bitstream.
[0174] Fig. 10A CUs and TUs of a CTU 1000 are shown, which has a vertical ternary split at the top level of the coding tree and is not split further. Splitting the coding tree results in three CUs 1020, 1022, and 1024 of size 32×128, 64×128, and 32×128, respectively. CUs 1020, 1022, and 1024 are located within the CTU at offsets (0, 0), (32, 0), and (96, 0), respectively. For each CU, there is a corresponding PU of the same size, and in CTU 1000, the corresponding PU spans multiple pipeline processing regions. One or more TUs are also associated with each CU. When the CU size is equal to one of the transform sizes, a TU is associated with the CU and has a size equal to the transform of the corresponding size.
[0175] Fig. 10B Shown with Fig. 10A1040. When the CU size is larger than any transform size, multiple TUs are arranged in a "stitched" manner to occupy the entire CU. Stitching uses the largest available transform that "fits" within the CU given the width and height constraints. For example, Fig. 10B As shown in FIG, 32×128 CU 1042 and 32×128 CU 1046 use four 32×32 TUs in a spliced manner. 64×128 CU 1044 uses two 64×64 TUs in a spliced manner because 64×64 is the maximum transform size that can be used for CU 1044. As described above, splitting CTU 1040 does not cause problems for the performance of intra-frame prediction or inter-frame prediction operations. However, the processing of the associated TUs needs to adapt to the pipeline processing area size.
[0176] As reference Fig. 9 As described above, the available transform sizes are limited to a specific set of sizes. From the perspective of the pipelined processing architecture, the processing of each TB for encoding or decoding is an indivisible operation. Due to the need to accommodate different placements of CUs in CTUs and the need to perform each transform for a region entirely within one pipeline stage, two methods are described as follows.
[0177] In the first approach, the pipeline processing region is not always of a fixed size (e.g., 64×64). Instead, the size of the pipeline processing region is adapted to the coding tree of each CTU. The first approach may therefore be referred to as a “flexible pipeline processing region”. The term “flexible pipeline processing region” is used to distinguish from the case of fixed-size regions, whereby a fixed grid of pipeline processing regions exists in an image frame, as discussed elsewhere in the present invention. In particular, using flexible pipeline processing regions, CTU 1040 may be processed as follows:
[0178] Region 0: 32×64 (upper half of CU 1042, containing two 32×32 TUs).
[0179] Region 1: 64×64 (the upper half of CU 1044, containing one 64×64 TU).
[0180] Region 2: 32×64 (upper half of CU 1046, containing two 32×32TUs).
[0181] Region 3: 32×64 (the lower half of CU 1042, containing two 32×32TUs).
[0182] Region 4: 64×64 (lower half of CU 1044, containing one 64×64 TU).
[0183] Region 5: 32×64 (the lower half of CU 1046, containing two 32×32TUs).
[0184] Thus, the arrangement of CUs in CTU 1040 results in six flexible pipeline processing regions of sizes 32×64 and 64×64. This is the worst case for the number of flexible pipeline processing regions.
[0185] When a TU does not cross a flexible pipeline processing region boundary (e.g., due to a quadtree split, as in Fig. 7A ), the number of flexible pipeline processing regions is four and each region has a size of 64×64 luminance samples. Although the flexible pipeline processing region method does enable flexible placement of TUs in CTUs in a pipelined implementation, the worst-case processing rate of the pipeline of this example is increased by 50% compared to an architecture where the pipeline processing regions have fixed placement on each CTU and therefore on the image frame. Although the overall sampling rate is unchanged, in a pipelined architecture, the processing rate of each region is not necessarily associated only with the size of the region, so smaller regions are not necessarily processed at a higher rate commensurate with their smaller size, but are instead processed at a lower rate due to the overhead of processing each region. Thus, the worst-case scenario of the design is higher than a system where all regions have the same size. Furthermore, as will be seen in reference Fig. 10C As mentioned, there are also cases where flexible processing of regions requires seven regions per CTU, further increasing the worst case region rate for this architecture.
[0186] In the second method, the relationship between CUs and TUs is changed so that the splicing method for "large" CUs (CUs that exceed the width or height of the available transforms) is extended. The splicing method is extended to also apply to CUs that would otherwise have TUs that span multiple pipeline processing areas. For example, CU 1022 is partitioned into a two-by-four array of 32×32TUs. The partitioning of the CU (1022) into smaller TUs is implicit in that the partitioning is determined by means of the placement of the coding tree and the CUs of the coding tree within the CTU, without the need for further signaling in the bitstream (e.g., additional flags). However, the partitioning can be determined based on the implicit properties of the coding unit itself as the size of the coding unit. The partitioning of the coding unit 1022 achieves Fig. 10A The CTU 1000 pipelines the following processes:
[0187] Region 0: 64×64 (upper half of CU 1020, upper left quarter of CU 1022, four 32×32 TUs in total).
[0188] Region 1: 64×64 (the upper right quarter of CU 1022, the upper half of CU 1024, a total of four 32×32 TUs).
[0189] Region 2: 64×64 (the lower half of CU 1020, the lower left quarter of CU 1022, a total of four 32×32 TUs).
[0190] Region 3: 64×64 (lower right quarter of CU 1020, lower half of CU 1022, four 32×32 TUs in total).
[0191] Thus, using the second method, four 64×64 pipeline processing regions are always used to process a 128×128 CTU regardless of the coding tree. The shape and / or aspect ratio of the transform unit is different from the shape or size of the CU. Therefore, the processing rate of the pipeline processing region is constant regardless of the arrangement of the CUs within the CTU. In the second method, a 64×64 TU is only possible for a CU whose upper left position is aligned to the 64×64 grid relative to the upper left corner of the image frame. The required coding unit condition occurs for a CTU with a coding tree with no split operation (which has 256×256 CUs), or a coding tree with at most one binary split in each direction in the horizontal and vertical directions (giving CUs of size 128×64, 64×128 or 64×64) or a single quadtree split (giving four CUs of size 64×64 each).
[0192] In the third method, the 64×64 TU is not present in the video encoder 114 and the video decoder 134, and therefore is not present in the set of available TU sizes. The 64×64 TU is relatively rarely used. However, the 64×64 TU can be beneficial at very low bit rates, so the absence of the 64×64 transform size does cause compression performance loss to the VVC standard. However, even if the 64×64 transform is removed, splicing of TUs is still required when the CU spans multiple pipeline processing areas. For example, Fig.10E The CTU 10300 shown in FIG. 10300 has a coding tree containing two vertical ternary split results. The two vertical ternary splits result in a CU 10320 of size 32×128 oriented vertically along the center of the CTU. The CU 10320 is located at an offset (48, 0) relative to the upper left corner of the CTU 10300. The CU 10320 occupies each of the four 64×64 pipeline processing areas and uses a relatively small TU.
[0193] Fig.10E A CTU 10300 is shown partitioned into regions according to a (first) method of flexible pipeline processing of regions. The coding tree has two vertical three-way splits that can be accommodated using two additional regions of 32×64 luma samples. Each additional region may contain two 32×32 TUs (arranged as a one-by-four column in CU 10320 overall), where the four regions occupy 48×64 luma samples. The resulting partitioning of CTU 10320 is given by Fig.10E The region boundary 10330 in FIG. 1 is shown. In the first method, the concatenation of TUs within a CU is only constrained by the availability of the transform size. The maximum available size is used to concatenate CUs with TUs.
[0194] Fig.10F CTU 10400 is shown. CTU 10400 relates to CTU 10300 that is partitioned into a plurality of regions according to the second method of further splicing TUs. Fig.10F In the example of , 32×128 CU 10420 (corresponding to CU 10320) is associated with a two-by-four array of 16×32 TUs rather than a one-by-four array of 32×32 TUs. The two-by-four array of 16×32 TUs causes each TU to be contained within one of the four pipeline processing regions of the CTU, as shown by region boundary 10430. Fig.10F In the example, no TU crosses boundary 10430, meaning that no TU overlaps or spans two or more pipeline processing areas. The example of a coding tree with two vertical ternary splits shows that it is possible to partition a CU into multiple TUs to avoid different coding trees where TUs span multiple pipeline processing areas. In addition, the example case is not limited to cases involving 64×64 TUs. In the (second) method, the splicing of TUs within a CU is further constrained by the requirement that each TU does not span multiple pipeline processing areas. As a result, a TU smaller than the TU that would be used for the maximum available transform size is used, which limits the splicing of TUs within a CU. Since transforms are used to decorrelate residual samples on blocks of a given size, it can be expected that the use of smaller TUs will result in lower compression performance. However, for inter-predicted CUs, lower compression performance does not occur in some cases. A single transform is effective at decorrelating residual samples that contain values of relatively few basis functions mapped to the transform. Therefore, a single transform is generally effective at decorrelating low-frequency residual samples, which are samples located in the frequency domain toward the upper left corner of the TB. However, residual samples containing highly discontinuous content (such as computer graphics or text, etc.) or containing content concentrated in a portion of a block are poorly decorrelated because all basis functions span the entire TB.
[0195] For example, the situation where residual samples are concentrated in a portion of a CU is common for inter-prediction blocks and originates from differences such as the boundary between foreground and background. In general, the use of larger blocks results in improved compression performance, but also results in blocks that span foreground and background (or other similar boundaries). When the foreground and background have different motions, a portion of the CU is usually well predicted from a reference picture (with residual samples of zero or near-zero values). In contrast, other portions of the CU are poorly predicted from the reference picture.
[0196] One solution is for the video encoder 114 to further split the coding tree to obtain smaller CUs. Each smaller CU can be assigned a different prediction mode to better adapt to the basic image features. At object boundaries or where occluded areas become visible, motion search usually cannot find enough inter-frame prediction CUs. Instead, intra-frame prediction is usually used. The splicing of TUs within a CU limits the spatial influence of each residual coefficient to the size of the corresponding TB. In this way, the use of spliced TUs within a CU can allow a larger CU to be selected. A larger CU can be a CU that spans occluded foreground and / or background objects in an image frame. Then, further splicing of TUs due to pipeline processing of region boundaries may not excessively degrade compression performance, and may even provide advantages due to selecting a larger CU than the video encoder 114 would otherwise have.
[0197] Fig. 10C 10100. CU 10122 is located at an offset (32, 32) relative to the upper left corner of CTU 10100. CU 10122 spans four pipeline processing regions, as seen from processing region boundary 10110.
[0198] If a 64x64 transform is to be used for CU 10122, seven processing regions will be required, consisting of one region of size 64x64 for CU 10122 and six additional regions (two of size 32x64 and four of size 64x32) to process the remaining regions in the CTU. As a substantial increase beyond the usual four pipeline processing regions occurs, the 64x64 transform size is not suitable for CU 10122. Therefore, four 32x32 transforms are used for CU 10122 to encode the residual.
[0199] Fig. 10D TUs associated with a coding tree of a CTU 10200 with two ternary splits in the same direction and an intermediate binary split in the opposite direction are shown. As a result of the coding tree of the CTU 10200, a CU 10222 of size 32×64 is located at position (0, 48) relative to the upper left corner of the CTU 10200. The CU 10222 spans two pipeline processing regions, such that each region includes a 16×64 portion of the CU 10222. Based on Fig. 9The available transform sizes are tiled 2 by 2 using a size of 16×32 to occupy the CU 10200. The pipelined implementation may then process the CTUs in the region delineated as shown by the boundary 10210. Furthermore, the pipelined implementation may process the CU 10200 by separately processing the two leftmost transforms for a CU 10222 that is part of one region and processing the two rightmost transforms for a CU 10222 that is part of another region.
[0200] Intra-frame spliced TUs can be reconstructed at each TU boundary. Performing reconstruction at each TU boundary increases complexity due to the additional feedback loop within each CU. However, performing reconstruction at each TU boundary does not increase the worst-case complexity, because the alternative of choosing a smaller CU will result in a feedback loop of the same severity. For inter-frame predicted CUs, there is no additional feedback loop.
[0201] Fig.11 A method 1100 for determining a prediction mode for a coding unit in a coding tree of a coding tree unit is shown. The method 1100 enables pipelined implementation of the video encoder 114 and the video decoder 134. When determining the coding tree for a CTU, the video encoder 114 searches to determine the coding tree, such as Figure 6 Described. Each "candidate region" of the CTU is tested for the option of containing a CU without further splitting by generating a leaf node step 622. At step 622, method 1100 is called to generate one or more candidate CUs. Each candidate CU is evaluated and the best candidate CU based on the region of the CTU is compared with the further splitting of the region. When considering the best candidate CU resulting from the split, both the coding tree and the prediction mode of the resulting CU are determined. That is, the "best" candidate CU is selected for use in the bitstream 115. The arrangement of the video encoder 114 and the video decoder 134 may limit the available prediction modes for a particular CU based on aspects such as CU size and / or temporal layer ID. The restriction affects the determination of the prediction mode. In addition, the restriction also reduces the necessary prediction mode signaling for the affected CUs, as shown in reference Fig.12 and 13 1222 and 1322. The method 1100 may be embodied by a device such as a configured FPGA, ASIC, or ASSP. In addition, the method 1100 may be performed by the video encoder 114 under the execution of the processor 205. As such, the method 1100 may be stored on a computer-readable storage medium and / or in the memory 206. The method 1100 invoked for each candidate region begins at a slice type test step 1110.
[0202] At a slice type test step 1110, the processor 205 tests the slices of the current frame of the video data 113. Typically, the slice type is derived from the GOP structure (e.g., Figure 8B If the slice type is an intra ("I") slice, then the intra candidate CU 1150 is added for evaluation. If the slice type is an inter ("P" or "B") slice, the method 1100 proceeds from step 1110 to a candidate CU size test step 1120.
[0203] At the candidate CU size test step 1120, the processor 205 tests the size of the CU to determine whether the CU can be encoded using only skip mode, or whether other prediction modes can also be used. If any side length (i.e., width or height) of the CU exceeds 64, step 1120 returns "large" and only skip mode candidates 1170 are added for evaluation. Returning "large" at step 1120 infers that the CU overlaps the processing area, which will be described with respect to steps 1210 and 1310. If the CU is the result of a vertical three-way split, the overlap may be vertical. If the CU is the result of a vertical three-way split, the overlap may be vertical.
[0204] Since only one mode is added for evaluation for any CU with a side length exceeding 64, it is not necessary to encode or decode a skip flag for CUs with side lengths exceeding 64. Since the size of the CU is sufficient for the video decoder 134 to determine the prediction mode of the CU, there is no need to encode or decode the skip flag. In addition, for a CTU size of 128×128, encoding CUs with side lengths exceeding 64 as skip only prevents pipeline problems that occur for such large CUs. Pipeline problems may still occur for CUs of smaller sizes, as solved by additional TU splicing within the CU. Although allowing skip encoding only for large CUs would appear to limit the flexibility of the video encoder 114 in selecting the prediction mode of the CU, the ability to perform further splitting to obtain a smaller CU at the location where the larger CU would have been located is available. In addition, the location of the intra-frame CU in the P or B slice is likely to be the location for an occluded object to become visible in the video sequence, because the occluded object tends to require a smaller sized CU to follow the outline of the occluded area. If the side lengths of none of the CUs do not exceed 64, step 1120 returns to "normal". As a result, each of the intra candidate mode 1150 , the inter candidate mode 1160 , and the skip mode candidate 1170 is evaluated for the candidate CU.
[0205] After evaluation of the candidate prediction modes for the CU (i.e., evaluation of one or more of 1150, 1160, and 1170), the best mode is selected as the candidate CU. The "best" candidate prediction mode is selected based on the lowest rate or distortion cost. With the help of Figure 6The described traversal of the coding tree enables the determination of the coding tree by comparing the aggregated cost of the CU resulting from the split with a CU in the containing region.
[0206] In another arrangement of method 1100, the restriction to testing only skip mode for a given CU is limited to the case where the CU is the result of a ternary split of a CTU. For example, if the CU size is 32×128, 64×128 (the center CU of the split, spanning four pipeline processing areas), 128×32, or 128×64 (the center CU of the split, spanning four pipeline processing areas), the test mode is restricted. The restriction to testing skip mode reduces the number of cases where skip mode is inferred because multiple prediction modes are tested and the best one signaled for the CU results from the binary split of the CTU. In other words, using a CU of size 64×128 or 128×64, each of which will not result in a TU spanning multiple pipeline processing areas. The following description Fig.12 Step 1222 and Fig.13 Step 1322 changes accordingly.
[0207] In another arrangement of the method 1100, the restriction to only testing the skip mode is limited to the center CU of the ternary split of the CTU. That is, the restriction applies to a 64×128 CU (a split center CU, spanning four pipeline processing regions) or a 128×64 CU (a split center CU, spanning four pipeline processing regions). Fig.12 Step 1222 and Fig.13 Step 1322 changes accordingly.
[0208] Fig.12 1 is a flow chart of a method 1200 for encoding a resulting CU of a coding tree of a CTU into a bitstream 115, wherein a transform size is selected so that the method can be performed in a pipeline architecture, wherein the size of the pipeline processing area is less than the CTU size. In the method 1200, the transform size is selected so that each transform can be completely processed within an area defined according to a processing grid. The method 1200 can be embodied by a device such as a configured FPGA, ASIC, or ASSP. In addition, the method 1200 can be performed by the video encoder 114 under the execution of the processor 205. As such, the method 1200 can be stored on a computer-readable storage medium and / or stored in the memory 206. The method 1200 is initiated by the processor 205 at a determine processing area step 1210.
[0209] At the determine processing region step 1210, the video encoder 114, under the execution of the processor 205, determines the division of the image frame into a grid of equal-sized and square processing regions that occupy the entire image frame. The processing region defines a portion of each image frame having a size smaller than the size of the CTU. For example, in the case of a CTU size of 128×128, the processing region size can be 64×64, or in the case of a CTU size of 64×64, the processing region size can be 32×32. In each of these cases, each CTU is divided into four pipeline processing regions arranged in a two-by-two array. The processing order of the processing regions is set to Z order. The use of Z-order scanning is consistent with the scanning order of the CUs in the CTU, and is thus aligned with the order necessary to ensure that data dependencies are met when advancing from one pipeline processing region to the next pipeline processing region. Step 1210 is used to divide the image frame into a plurality of equal-sized processing regions, each of which is a block processed during a single stage of the pipeline that encodes the bitstream. From step 1210, control in processor 205 passes to step 1215 where the coding tree is encoded.
[0210] At step 1215 of encoding the coding tree, the block partitioner 310, under the execution of the processor 205, encodes the coding tree of the CTU determined by the method 1100 into the bitstream 115. Figure 5 and 6 Describe and use Fig. 7A and 7B In the example of , the coding tree decomposes the CTU into one or more CUs according to a series of splits. In method 1100, the block partitioner 310 tests many different combinations of splits to arrive at a specific coding tree that enables the CTU to be encoded with a high compression ratio while maintaining the fidelity of the decoded image, as shown in reference Figure 3 The method 1100 effectively determines the size of each coding unit (CU) by determining a coding tree. Control in the processor 205 proceeds from step 1215 to a select CU step 1220.
[0211] At the select CU step 1220, the block partitioner selects a CU of the coding tree of the CTU under execution of the processor 205. When encoding the CU, step 1220 is performed for each CU in the coding tree encoded at step 1215. The selected CU has a specific size and position in the image frame, and thus has a position relative to the upper left corner of the containing CTU. Thus, it can be said that the selected CU occupies a given area within the containing CTU. Control in the processor 205 proceeds from step 1220 to a prediction mode test and encoding step 1222.
[0212] At a prediction mode test and encoding step 1222, the processor 205 tests the prediction mode of the selected CU as determined in the method 1100. If the slice type of the frame is (i) "P" or "B", or (ii) if a "skip flag" (or "cu_skip_flag") is encoded. The skip flag indicates whether the CU is encoded using skip mode. If the CU is not encoded using skip mode, the "pred_mode" flag is encoded to indicate which of inter prediction or intra prediction is used for the CU.
[0213] As about Fig.11 As described in step 1120, the skip mode can be inferred based on the size of the CU. Therefore, for a "large" CU (for each step 1120), the CU is larger than or equal to the size of one of the processing regions, and the skip mode is inferred by the implicit size property of the CU. The CU will effectively overlap the boundary of one of the processing regions. The skip mode is inferred accordingly, and the skip flag is not encoded in the bitstream. In addition, the merge index is determined based on the implicit property of the CU. Optionally, if the inferred skip is based on a ternary split or the center CU of a ternary split, the merge index is determined based on the implicit property of the CU (which is the shape and / or position of the CU). If the skip mode is not inferred, step 1322 determines that the CU is not larger than or equal to the size of one of the processing regions and includes a skip flag. In an arrangement with an inferred skip mode, the skip flag is only encoded if the CU size is less than a predetermined threshold, as shown in reference Fig.11 As described in step 1120 of . For example, the side lengths do not exceed 64 samples. The encoding of the skip flag can additionally be encoded only when the temporal layer ID of the frame (e.g., 853) is below a predetermined threshold. For example, the threshold of the temporal ID may be lower than the maximum temporal layer of the GOP structure size, such as lower than 4 when the GOP size is sixteen pictures. If the threshold is met (e.g., any CU with a side length greater than 64), the arrangement with the inferred skip mode does not need to encode the skip flag because only skip encoding is tested for such a case in method 1100. In addition, step 1222 is consistent with method 1100 in that the prediction mode information is only encoded when more than one prediction mode is tested for the CU. Therefore, a corresponding reduction in signaling present in the bitstream 115 and thus higher compression performance can be achieved.
[0214] As shown in the following arrangement, different partitions of CUs between the "large" and "normal" sets are possible. Having more CUs in the "large" set results in fewer TU instances for splicing to solve pipeline processing issues, at the expense of providing less flexibility to the video encoder 114 when selecting prediction modes for CUs of these sizes.
[0215] In yet another arrangement of method 1100, the restriction on the side length of CUs to be used for inference skip mode (step 1120 returns "large") applies to any CU with both sides greater than or equal to 64. Requiring both sides to be greater than or equal to 64 results in the set of CUs for which skip inference occurs being: 128×128, 64×128, and 128×64. Fig.12 Step 1222 and Fig.13 Step 1322 changes accordingly.
[0216] In another arrangement of method 1100, the restriction on the side length of the CU to be used for inference skip mode (step 1120 returns "large") is applied to any CU with any side length greater than 64, resulting in the set of CUs for which skip inference occurs being: 128×128, 64×128, 128×64, 128×32, 32×128, 64×64. Again, Fig.12 Step 1222 and Fig.13 The threshold (or boundary) between the "large" and "normal" sets may depend on the "operating point" of the system 100 (e.g., the desired bit rate of the bitstream). Instead of having a fixed boundary, the boundary may be signaled in the bitstream 115 as a threshold, allowing the video encoder 115 to select the boundary for the system 100. The boundary may be signaled as the log2 of the edge length, and the requirement that "either" or "both" edges of a CU must match the signaled boundary to be considered a CU in the "large" set may also be signaled.
[0217] If the prediction mode is determined (or inferred) to be skip mode (step 1222 returns "skip"), control in the processor 205 proceeds from step 1222 to a perform motion compensation step 1270. Otherwise, (the prediction mode is inter prediction or intra prediction and step 1222 returns "intra or inter"), control in the processor 205 proceeds from step 1222 to an identify processing region step 1225.
[0218] At an identify processing region step 1225, the processor 205 uses the region of the CU selected at step 1220 to identify which processing region(s) overlap with the selected CU. For example, Fig. 10A CU 1022 overlaps four 64×64 processing regions in CTU 1000 . Control in processor 205 proceeds from step 1225 to determine CU transform size constraint step 1230 .
[0219] At the determine CU transform size constraint step 1230, the processor 205 determines an initial transform size for the CU. The initial transform size is set to a predetermined set of transform sizes (such as Fig. 9 The initial transform size is thus the largest size that "fits" into the selected CU. Considering the luma channel, typically a single transform occupies the entire CU. The chroma channels have a similar relationship, where the chroma transform size corresponds to the transform size of the luma channel adjusted for the 4:2:0 chroma format, which is half the width and height of each transform.
[0220] In the event that a single transform does not completely occupy the CU, an initial transform size is applied using a "tie-off" process at step 1230 to occupy the entire CU with the transform. For example, for CU 1020 having a size of 32×128, an initial transform size of 32×32 with a one-by-four stitching is required to occupy the entire CU. For CU 1022 of size 64×128, the initial transform size is 64×64, using a one-by-two stitching to occupy the entire CU. Control in processor 205 advances from step 1230 to a processing region boundary overlap test step 1235.
[0221] At a processing region boundary overlap test step 1235, the processor 205 determines whether any transform of the initial transform size and associated with the selected CU spans two or more processing regions (or "spans" the boundary of two or more processing regions). In other words, at step 1235, the processor 205 determines whether the coding unit overlaps the boundary between processing regions. For example, for an initial transform size of 32×32 for CU 1020 located at position (0, 0) relative to the upper left corner of CTU 1000, the individual transforms are completely contained within a 64×64 pipeline processing region. The top two 32×32 transforms are located in one processing region, and the bottom two 32×32 transforms are located in another processing region. In this case, step 1235 returns "no" and control in the processor 205 proceeds to the CU transform size step 1240.
[0222] However, for CU 1022 having an initial transform size of 64×64 and located at position (32, 0) relative to the upper left corner of CTU 1000, the initial transform size occupies the region from (32, 0) to (95, 64). When the processing regions are aligned to the 64×64 grid, the initial first transform occupies two processing regions, and the second transform occupying the region from (32, 64) to (95, 127) occupies another two processing regions. When at least one of these proposed initial transforms (in Fig. 10A In the example of two), step 1235 returns "yes" and control in processor 205 proceeds from step 1240 to processing area transformation size step 1245.
[0223] As a general rule, the possibility of a transform spanning two or more processing regions stems from the application of a ternary split at the top level of the coding tree. The result is due to the fact that the CTU size, the processing region size, the side dimensions of the transform are all powers of 2, and the CTU size is twice the width and height of the processing region size. Therefore, a ternary split at only the top level of the coding tree may produce a CU that is spatially offset (horizontally or vertically) by half the width or height of the processing region. When using a transform of the initial transform size, the offset CU may result in a transform that will span two or more processing regions, resulting in substantial implementation challenges for pipelined architectures that operate at the granularity of processing regions.
[0224] Given the relationship between CTU size, processing region size and transform edge size, one solution may be to prohibit ternary splits of regions in the coding tree with side lengths exceeding 64 samples. The remaining options for regions with side lengths exceeding 64 samples are no further splitting, binary splitting or quadtree splitting. If no further splitting is performed, the concatenation of four 64×64 transforms will be possible, each of which is completely contained within the pipeline processing region. If a binary split of a 128×128 CTU is performed in either direction, prohibiting a ternary split in the opposite direction in the resulting sub-regions will prevent possible 64×64 CUs from spanning two pipeline processing regions. However, further splitting the middle (64×64) CU of the ternary split can solve the transform placement problem with respect to pipeline processing. The initial prohibition will prevent searching the intermediate coding tree. If a binary split is performed in either direction (resulting in two regions of size 64×128 or size 128×64), a ternary split applied to either of the resulting regions in the same direction will also be impossible due to the side length of 128.
[0225] However, a ternary split in the same direction will not result in any transforms that cross the boundaries between pipeline processing regions. For example, a horizontal ternary split of a 128×64 region (derived from a horizontal binary split of a CTU) will result in 16×128, 32×128, and another 16×128 region. Along the side length of 128, transforms of typically side length 32 are used, concatenated four times, and will not result in any transforms that cross multiple pipeline processing regions. Finally, if a quadtree split is performed, each resulting region will be within a separate pipeline processing region and will not cause further pipeline processing issues regardless of subsequent splits.
[0226] Thus, while prohibiting ternary splits on any region with a side length greater than 64 is one approach to address pipeline processing performance, the prohibition does prohibit potentially useful block sizes, thereby reducing compression performance. Furthermore, the restriction prevents the use of "skip mode" inter-prediction CUs, which do not cause pipeline processing regions due to transform placement when they do not have residual coefficients. Thus, this restriction adversely affects compression performance, as flexible placement of skip mode CUs (e.g., for large CUs) is desirable, especially at low bit rates.
[0227] As described, the test of step 1235 is performed based on the CU size and the position within the CTU. Thus, step 1235 implements an implicit test, thereby not increasing the "search space" of the video encoder 114. That is, the video encoder 114 is not given additional degrees of freedom (e.g., the addition of a flag) when deciding the TU configuration. The absence of additional degrees of freedom in deciding the TU configuration means that no additional signaling in the bitstream 115 is required to store the results of the degrees of freedom. In other words, the operation of step 1235 is implicitly based on the properties of the coding tree of the CTU. The output of step 1235 is independent of and does not involve the generation of an explicit signal related to the TU size to be encoded in the bitstream.
[0228] At CU transform size step 1240, processor 205 selects the transform size of the CU to be the CU transform size determined at step 1230. Since no resulting TU spans multiple pipeline processing regions, there is no need to further split the CU into additional TUs. Control in processor 205 proceeds from step 1240 to apply forward transform and quantize step 1250.
[0229] At the processing region transform size step 1245, the processor 205 determines the transform size of the selected CU so that none of the resulting transforms spans two or more of the pipeline processing regions spanned by the selected CU. For example, CU 1022 of size 64×128 is located at (32, 0) relative to the upper left of CTU 1000. Thus, CU 1022 spans the region from (32, 0) to (95, 127). Horizontally, the CU passes through the pipeline processing region with an X offset of 64. Therefore, in the horizontal direction, the TU width needs to be at most 32 to be the maximum TU width suitable for pipelined implementation. In the vertical direction, the TU width needs to be at most 64 to be the maximum TU width suitable for pipelined implementation. However, as Fig. 9 As can be seen in FIG. 100 , there is no available 32×64 TU. The largest available TU that can be used is 32×32, so a TU of 32×32 size is selected. By selecting a 32×32 TU for CTU 1000, the CTU can be as shown in FIG. Fig. 10A Step 1245 effectively operates to obtain the following information from (e.g., Fig. 9 The transform size for the coding unit is selected from a set of (multiple) available transform sizes (shown in FIG. 1 ). The transform size is selected to fit within the coding unit and may be different from the size of the processing region. Control in the processor 205 proceeds from step 1245 to an apply forward transform and quantize step 1250.
[0230] At the apply forward transform and quantize step 1250, the transform module 326 and the quantizer module 334 apply the selected transform of step 1240 or step 1245 under execution by the processor 205 to transform the differences 324 and produce residual coefficients 336. If the CU size is equal to the transform size, a single transform is performed. If the CU size is greater than the transform size, the transform is applied in a concatenated manner so that all differences 324 are transformed. In addition, with the transform size selected at step 1245, individual transforms do not cover regions that span two or more of the pipeline processing regions.
[0231] Software implementations such as the "reference software" of video compression standards typically process frames one CTU at a time, without using finer-grained processing (such as pipelined processing of areas smaller than the CTU size, etc.). Reference software implementations do not encounter problems such as the pipeline processing area problem identified above because they are not typically run in real time or in resource-constrained devices. Actual implementations (especially hardware implementations that utilize pipeline architectures and some software implementations) benefit from transformations that are completely contained within different pipeline processing areas. For example, software implementations that benefit from transformations that are completely contained within different pipeline areas include multi-core implementations that use the same pipeline architecture to improve locality. An important benefit transformation that is completely contained within different pipeline areas is the uniform size and rate of the pipeline processing areas. Control in processor 205 advances from step 1250 to encoding residual coefficients step 1255.
[0232] At the encoding residual coefficient step 1255, the entropy encoder 338, under the execution of the processor 205, encodes the residual coefficient of step 1250 into the bitstream 115. First, the "root coding block flag" is encoded to indicate that there is at least one valid residual coefficient resulting from the quantization of step 1250. The root coding block flag is encoded once for the CU, and all color channels of any TB of any TU of the CU signal the validity of any transform of the CU. Assuming that there is at least one valid residual coefficient for any transform across any color channel of the CU, a separate coding block flag is encoded for each transform applied in the color channel within each color channel. Each coding block flag indicates the presence of at least one valid residual coefficient in the corresponding transform block. For transforms with at least one valid residual coefficient, the significance map and the size and sign of the significant coefficient are also encoded. Control in the processor 205 proceeds from step 1255 to the intra-frame mode test 1260.
[0233] At intra mode test 1260, the prediction mode of the selected CU is tested by the processor 205. If the prediction mode is intra prediction ("yes" at step 1260), control in the processor 205 proceeds to a perform intra prediction step 1265. Otherwise (the prediction mode is inter prediction and step 1260 returns "no"), control in the processor 205 proceeds to a perform motion compensation step 1270.
[0234] At the intra prediction step 1265, the intra prediction module 364 generates an intra prediction block (366) of samples under execution of the processor 205. The filtered reference sample 362 is used to generate an intra prediction block 366 of samples according to the intra prediction mode of each PB of the selected CU. When multiple TUs are associated with the CU due to step 1245, an intra reconstruction process is applied at each TU boundary inside the selected CU. In addition to the reconstructed samples at each CU boundary, the reference sample cache 356 is also updated with the reconstructed samples at each TU boundary inside the CU. The reconstruction at the TU boundary inside the CU makes the residual coefficients of the TU above or to the left of the current TU inside the CU contribute to the reference samples used to generate a portion of the PB co-located with the current TU. Therefore, the reconstruction at the TU boundary inside the CU can reduce distortion and improve compression efficiency. Control in the processor 205 proceeds from step 1265 to the reconstruct CU step 1275.
[0235] At the perform motion compensation step 1270, the motion compensation module 380 generates a filter block sample 382 under execution of the processor 205. The filter block sample 382 is generated by extracting one or two sample blocks 374 from the frame buffer 372. For each sample block, a frame is selected according to a reference picture index, and a spatial displacement in pixels relative to the selected CU is specified according to a motion vector. For each sample block extracted from the frame buffer 372, filtering is applied according to the "sub-pixel" displacement portion of the motion vector. The precision of the sub-pixel displacement portion of the motion vector can be quarter-pixel precision or one-sixteenth pixel precision. In the case of using two blocks, the resulting filter blocks are blended together. The reference picture index and (one or more) motion vectors are determined in the method 1100. Control in the processor 205 proceeds from step 1270 to a reconstruct CU step 1275.
[0236] At the reconstruct CU step 1275, the summation module 352 generates a reconstructed sample 354 by adding the residual sample 350 to the PU 320 for the inter-frame prediction or intra-frame prediction CU under the execution of the processor 205. For the skip mode CU, there is no residual sample, and therefore the reconstructed sample 354 is derived from the PU 320. The reconstructed sample 354 can be used for reference of the subsequent intra-frame prediction CU in the current frame. After applying the in-loop filtering (i.e., applying the in-loop filter 368), the reconstructed sample 354 is written to the frame buffer 372 for reference of the inter-frame prediction CU in the subsequent frame. The deblocking filter of the in-loop filter 368 is applied to the internal boundary of the CU. That is, the deblocking filter is applied to the boundary between the TUs inside the CU, which is generated by splicing due to both the CU size and the pipeline processing area boundary. Control in the processor 205 proceeds from step 1275 to the last CU test step 1285.
[0237] At the last CU test step 1285, the processor tests whether the selected CU is the last one in the CTU. If not ("No" in step 1160), control in the processor 205 returns to step 1215. If the selected CU is the last one in the CTU scanned in the CU scanning order, i.e., the depth-first Z order, the method 1200 terminates. After the method 1200 terminates, the next CTU is encoded, or the video encoder 114 advances to the next image frame of the video.
[0238] Fig.13 A method 1300 for decoding a CU of a CTU from a bitstream 133 is shown. In the method 1300, a transform size is selected so that the method 1300 can be performed in a pipelined architecture. The size of the corresponding pipeline processing region is smaller than the CTU size, and the rate of the pipeline processing region is independent on the coding tree of each CTU. The method 1300 can be embodied by a device such as a configured FPGA, ASIC, or ASSP. In addition, the method 1300 can be performed by the video decoder 134 under the execution of the processor 205. As such, the method 1300 can be stored on a computer-readable storage medium and / or stored in the memory 206. The method 1300 is started by the processor 205 at the determine processing region step 1310.
[0239] At a determine processing regions step 1310, the video decoder 134, under execution by the processor 205, determines to partition the image frame of the bitstream into a grid of equally sized and square processing regions that occupy the entire image frame. Step 1310 determines the partitioning of the image frame in a manner matching step 1210. Step 1310 is used to partition the image frame into a plurality of equally sized processing regions, each equally sized processing region being a block processed during a single stage of the pipeline for decoding the bitstream. Control in the processor 205 proceeds from step 1310 to a decode the coding tree step 1315.
[0240] At step 1315 of decoding the coding tree, the entropy decoder 420 decodes the coding tree of the CTU from the bitstream 133 under the execution of the processor 205. The coding tree decomposes the CTU into one or more CUs according to a series of splits, as shown in FIG. Figure 5 and 6 And use Fig. 7A and 7B The coding tree decoded from the bitstream 133 is Fig.12 The coding tree determined in step 1215 is used to determine the size of each coding unit (CU) by decoding the CTU using the coding tree. Control in the processor 205 proceeds from step 1315 to a select CU step 1320.
[0241] At select CU step 1320, the video decoder 134, under execution of the processor 205, selects a CU of the decoded coding tree according to iterating through the coding tree in a forward direction corresponding to the direction in which the syntax associated with the coding tree is present in the bitstream 134. The forward direction involves a Z-order scan. The selected CU has a specific size and position in the image frame, and thus has a position relative to the upper left corner of the containing CTU. Thus, it can be said that the selected CU occupies a given area within the containing CTU. Control in the processor 205 proceeds from step 1320 to determine prediction mode test step 1322.
[0242] At the determine prediction mode test step 1322, the processor 205 determines the prediction mode of the selected CU. If the slice type of the frame is "P" or "B", the entropy decoder 420 decodes the "skip flag" (or "cu_skip_flag") indicating whether the CU is encoded using the skip mode. If the CU is not encoded using the skip mode, the entropy decoder 420 decodes the "pred_mode" flag. The "pred_mode" flag indicates which of inter-frame prediction or intra-frame prediction is used for the CU. As described in detail in the embodiment of the present invention, the entropy decoder 420 decodes the "pred_mode" flag. Fig.11As described in step 1120, the skip mode can be inferred based on the size of the CU. Therefore, for a "large" CU (for each step 1120), the CU is greater than or equal to the size of one of the processing areas, and the skip mode is inferred by the implicit size property of the CU. The skip mode is inferred accordingly, and the skip flag is not encoded in the bitstream. Instead, the merge index is determined based on the implicit property of the CU. Optionally, if the inferred skip is based on a ternary split or the center CU of a ternary split, the merge index is determined based on the implicit property of the CU (which is the shape and / or position of the CU). If the skip mode is not inferred, step 1322 determines that the CU is not greater than or equal to the size of one of the processing areas and includes a skip flag.
[0243] In an arrangement with an inferred skip mode, the skip flag is decoded only when the CU size is less than a predetermined threshold (e.g., when both side lengths do not exceed 64 samples). Otherwise, the CU is judged to be a "large CU" and the skip mode is inferred to be being used. The encoding of the skip flag can also be encoded only when the temporal layer ID is below a predetermined threshold (e.g., below the maximum temporal layer of the GOP structure size, for example, below four when the GOP size is 16 pictures). If the threshold test is met (e.g., large CU size and / or temporal layer ID above the threshold), the arrangement with the inferred skip mode does not need to decode the skip flag i, because only skip encoding is tested for such a case in method 1100. Thus, the prediction mode is judged to be skip mode. In addition, step 1322 is consistent with method 1100 in that the prediction mode information is only decoded when more than one prediction mode is tested for the CU. When only one prediction mode is tested for the CU, the video decoder 134 infers the prediction mode based on, for example, the CU size, rather than explicitly decoding the prediction mode.
[0244] If it is determined (or inferred) that the prediction mode is the skip mode (“SKIP” at step 1322), control in the processor 205 proceeds from step 1322 to a decode motion parameter step 1370. Otherwise (the prediction mode is inter prediction or intra prediction), step 1322 returns “Intra or Inter”, and control in the processor 205 proceeds to an identify processing region step 1325.
[0245] At an identify processing region step 1325, the processor 205 uses the region of the CU selected at step 1320 to identify which processing region(s) overlap with the selected CU. For example, Fig. 10A The coding unit 1022 overlaps with the four 64×64 processing regions in CTU 1000. Step 1325 is performed with Fig.12The process operates in a similar manner to step 1225. Control in the processor 205 proceeds from step 1325 to a determine coding unit transform size constraint step 1330.
[0246] At a determine coding unit transform size constraint step 1330, the processor 205 determines an initial transform size for the CU. The initial transform size is set in a similar manner to the determination of step 1230. Control in the processor 205 passes from step 1330 to a processing region boundary overlap test step 1335.
[0247] Similar to the overlap test step 1235, at the processing region boundary overlap test step 1335, the processor 205 determines whether any transform of the initial transform size and associated with the selected CU spans two or more processing regions. In other words, step 1335 determines whether the coding unit overlaps with the boundary between the processing regions. If the individual transforms are completely contained within the processing region ("No" at step 1335), control in the processor 205 proceeds to the CU transform size step 1340. If at least one of the transforms derived from the initial transform size spans or "straddles" the boundary between two or more processing regions ("Yes" at step 1335), control in the processor 205 proceeds to the processing region transform size step 1345. The result of the test step 1335 depends on the CU size and position within the CTU, which are completely described by the coding tree of the CTU. In this way, no additional signaling needs to be decoded from the bitstream 133 to determine whether the CU spans two processing regions. Instead, the implicit properties (size and position) of the CU are used to test whether the processing region boundaries overlap.
[0248] At a CU transform size step 1340, processor 205 selects the transform size of the CU to be the determined CU transform size of step 1330 according to the transform size selection of step 1240. Control in processor 205 proceeds from step 1340 to a decode residual coefficients step 1350.
[0249] At a processing region transform size step 1345, processor 205 determines a transform size for the selected CU so that none of the resulting transforms spans two or more of the pipeline processing regions spanned by the selected CU. Step 1345 operates according to the transform size selection of step 1245. Step 1345 effectively operates to select the transform size from (e.g., Fig. 9 The transform size for the coding unit is selected from a set of (multiple) available transform sizes (as shown). The transform size is selected to fit within the coding unit and may be different from the size of the processing region. Control in the processor 205 proceeds from step 1345 to a decode residual coefficients step 1350.
[0250] At the decoding residual coefficient step 1350, the entropy decoder 420 decodes the residual coefficient from the bitstream 115 under the execution of the processor 205. The coding unit is obtained by applying the inverse transform to the residual coefficients of each transform unit in the coding unit. When decoding the residual coefficient, the "root coding block flag" is first decoded. The root coding block flag indicates the presence of at least one valid residual coefficient in any TU of the CU (i.e., across all color channels). When the root coding block flag indicates that there are valid residual coefficients in the CU, within each color channel, a separate coding block flag is decoded for each transform applied in the color channel. Each coding block flag indicates the presence of at least one valid residual coefficient in the corresponding transform. For transforms with at least one valid residual coefficient, the significant map and the size and sign of the significant coefficient are also decoded. Control in the processor 205 proceeds from step 1350 to the inverse quantization and application of inverse transform step 1355.
[0251] At the inverse quantization and apply inverse transform step 1355, the dequantizer module 428 and the inverse transform module 444, under execution by the processor 205, inverse quantize the residual coefficients to produce the scaled transform coefficients 440. At step 1355, the scaled transform coefficients 440 are transformed by applying the selected transform in step 1340 or step 1345 to produce residual samples 448. As with step 1250, the application of the transform is performed in a spliced manner according to the determined transform size. In addition, with the transform size selected at step 1345, the individual transforms do not cover two or more regions that span the pipeline processing area. As with the method 1200, actual implementations (particularly hardware implementations that utilize a pipeline architecture, as well as some software implementations) benefit from transforms that are completely contained within different pipeline processing areas. An example software implementation that is beneficial to the described arrangement is a multi-core implementation that can use the same pipeline architecture to improve data locality. Control in the processor 205 proceeds from step 1355 to an intra-mode test step 1360.
[0252] At intra mode test 1360, the determined prediction mode of the selected CU is tested by the processor 205. If the prediction mode is intra prediction ("yes" at step 1360), control in the processor 205 proceeds to a perform intra prediction step 1365. Otherwise (the prediction mode is inter prediction), step 1360 returns "no" and control in the processor 205 proceeds to a decode motion parameters step 1370.
[0253] At the intra prediction step 1365, the intra prediction module 476 generates an intra prediction sample block (480) under execution of the processor 205. The filtered reference sample 472 is used to generate the intra prediction sample block 480 according to the intra prediction mode for each PB of the selected CU. When multiple TUs are associated with the CU due to step 1345, the intra reconstruction process is applied at each TU boundary inside the selected CU. In addition to the reconstructed samples at each CU boundary, the reconstructed sample cache 460 is also updated with the reconstructed samples at each TU boundary inside the CU. The reconstruction at the TU boundary inside the CU makes the residual of the TU above or to the left of the current TU inside the CU contribute to the reference sample used to generate a portion of the PB co-located with the current TU. The reconstruction at the TU boundary inside the CU can operate to reduce distortion and improve compression efficiency. Control in the processor 205 proceeds from step 1365 to the reconstruct CU step 1380.
[0254] At the decode motion parameter step 1370, the entropy decoder 420 decodes the motion vector of the selected CU under the execution of the processor 205. Decoding the motion vector includes selecting the motion vector by: (i) decoding the merge index if the skip mode is inferred (as identified from the properties of the CU at 1120 and 1322), or (ii) decoding the skip flag to decode the merge index if the CU does not infer the skip mode. A list of candidate motion vectors (referred to as a "merge list") is created using spatially and temporally adjacent blocks. The merge index is decoded from the bitstream 133 to select one of the candidates from the merge list. The merge index can be determined based on the implicit properties of the CU (as described above with respect to step 1322) or by decoding the split mode flag from the bitstream. If the selected CU is encoded using the skip mode, the selected candidate becomes the motion vector of the CU. If the selected CU is encoded using inter-frame prediction, the motion vector increment is decoded from the bitstream 133 and added to the candidate selected according to the decoded merge index. Control in the processor proceeds from step 1370 to a perform motion compensation step 1375 .
[0255] At the perform motion compensation step 1375, the motion compensation module 434 generates a filter block sample 438 under execution of the processor 205. The filter block sample 438 is generated by extracting one or two sample blocks 498 from the frame buffer 496. For each sample block 498, a frame is selected according to the reference picture index, and the spatial displacement in pixels relative to the selected CU is specified according to the motion vector. For each sample block extracted from the frame buffer 372, filtering is applied according to the "sub-pixel" displacement portion of the motion vector. The precision of the sub-pixel displacement portion of the motion vector can be quarter-pixel precision or one-sixteenth pixel precision. In the case of using two blocks, the resulting filter blocks are blended together. The reference picture index and (one or more) motion vectors are decoded from the bitstream 133 and determined in the method 1100. Control in the processor 205 proceeds from step 1375 to the reconstruct CU step 1380.
[0256] At the reconstruct CU step 1380, the summation module 450 generates a reconstructed sample 456 under the execution of the processor 205. The reconstructed sample 456 is generated by adding the residual sample 448 to the PU 452 for the inter-frame prediction or intra-frame prediction CU. For the skip mode CU, there is no residual, so the reconstructed sample 456 is derived from the PU 452. The reconstructed sample 456 can be used for reference of the subsequent intra-frame prediction CU in the current frame. After applying the in-loop filtering (i.e., applying the in-loop filter 488), the reconstructed sample 456 is written to the frame buffer 496 for reference of the inter-frame prediction CU in the subsequent frame. The deblocking filter of the loop filter 488 is applied to the internal boundary of the CU. That is, the deblocking filter is applied to the boundary between the TUs inside the CU (derived from the splicing caused by both the CU size and the pipeline processing area boundary). Control in the processor 205 proceeds from step 1380 to the last CU test step 1385.
[0257] At the last CU test step 1385, the processor 205 tests whether the selected CU is the last CU in the CTU in the CU scan order (depth-first Z-order scan). If not ("No" at step 1385), control in the processor 205 returns to step 1315. If the selected CU is the last CU in the CTU ("Yes" at step 1385), the method 1300 terminates. After the method 1300 terminates, the next CTU is decoded, or the video decoder 134 advances to the next image frame of the bitstream.
[0258] In an alternative arrangement of the video encoder 114 and the video decoder 134, CUs that span multiple pipeline processing regions are inferred to be encoded in "skip mode" and therefore do not have any associated residual coefficients, and thus no transform is required to encode or decode such blocks. Thus, when the video encoder 114 determines the coding tree at step 1215, when testing such CUs that will result in TUs that span multiple processing regions, it is necessary to encode these CUs without any associated residual coefficients.
[0259] Industrial Applicability
[0260] The described configuration is applicable to the computer and data processing industry, and is particularly useful for digital signal processing for encoding or decoding signals such as video and image signals, thereby achieving high compression efficiency without incurring excessive costs in terms of memory consumption for silicon area due to the possibility of providing pipelined implementations with processing region sizes that are smaller than the maximum supported block size or CTU size. In some implementations, the described arrangement is useful for the VVC standard because implementing splicing of region TUs (e.g., as implemented at steps 1145 and 1245) helps prevent pipeline inefficiencies, particularly for inter-frame prediction modes. As described above, some implementations described herein allow the use of ternary coding trees for larger CUs, or the use of 64×64 CUs with reduced impact on processing time and / or quality.
[0261] The foregoing describes only some embodiments of the present invention, and modifications and / or changes may be made to the present invention without departing from the scope and spirit of the present invention, wherein the embodiments are intended to be illustrative and not restrictive.
[0262] (Australia only) In the context of this specification, the word "comprising" means "consisting mainly but not necessarily only of" or "having" or "including", rather than "consisting only of". Conjugations of the word "comprising" such as "comprise" and "comprises" have correspondingly varying meanings.
[0263] CROSS-REFERENCE TO RELATED APPLICATIONS
[0264] This application claims the benefit of priority under 35 U.S.C. §119 to Australian patent application No. 2018217333 filed on August 17, 2018, the entire contents of which are hereby incorporated by reference for all purposes.
Claims
1. A method for decoding a coding unit from a bit stream according to a predetermined manner, comprising: A first decoding step for decoding information for determining a coding unit in a coding tree unit from the bit stream; A first determination step is used to determine the coding unit based on the information; A second determination step is used to determine a transform unit in the coding unit; as well as A second decoding step is used to decode the coding unit using the transform unit, Wherein, in the predetermined manner, the length of the side of the coding unit can be 128 samples, wherein, in the second determining step, when the transform unit is determined using the first constraint related to the size of the transform unit, even when at least one side of the coding unit is 128 samples, a maximum size that can be selected for a luma component of the transform unit in the coding unit is 32 samples, which is one quarter of 128 samples, Among them, in the predetermined manner, a shape in which one of the horizontal side and the vertical side is longer than the other side can be used as the shape of the transformation unit, wherein the coding unit can be determined by partitioning the coding tree unit using a ternary split, The size of the coding tree unit is 128 samples×128 samples, and Wherein, in the second determining step, when the coding unit spans a plurality of regions of 64 samples×64 samples in the coding tree unit: A first transform unit of the plurality of transform units in the coding unit is included in a first region of the plurality of regions of 64 samples×64 samples; A second transform unit different from the first transform unit among the plurality of transform units in the coding unit is included in a second region different from the first region among the plurality of regions of 64 samples×64 samples; and The plurality of transform units are determined such that each of the plurality of transform units is included in any region of a plurality of regions of 64 samples×64 samples.
2. The method according to claim 1, wherein: At least one side of the coding unit is 128 samples.
3. A method for encoding a coding unit according to a predetermined manner, comprising: A first determination step is used to determine a coding unit in a coding tree unit; A second determination step is used to determine a transform unit in the coding unit; as well as an encoding step for encoding the coding unit using the transform unit, Wherein, in the predetermined manner, the length of the side of the coding unit can be 128 samples, wherein, in the second determining step, when the transform unit is determined using the first constraint related to the size of the transform unit, even when at least one side of the coding unit is 128 samples, a maximum size that can be selected for a luma component of the transform unit in the coding unit is 32 samples, which is one quarter of 128 samples, Among them, in the predetermined manner, a shape in which one of the horizontal side and the vertical side is longer than the other side can be used as the shape of the transformation unit, wherein the coding unit can be determined by partitioning the coding tree unit using a ternary split, The size of the coding tree unit is 128 samples×128 samples, and Wherein, in the second determining step, when the coding unit spans a plurality of regions of 64 samples×64 samples in the coding tree unit: A first transform unit of the plurality of transform units in the coding unit is included in a first region of the plurality of regions of 64 samples×64 samples; A second transform unit different from the first transform unit among the plurality of transform units in the coding unit is included in a second region different from the first region among the plurality of regions of 64 samples×64 samples; and The plurality of transform units are determined such that each of the plurality of transform units is included in any region of a plurality of regions of 64 samples×64 samples.
4. The method according to claim 3, wherein: At least one side of the coding unit is 128 samples.
5. A device for decoding coding units from a bit stream according to a predetermined manner, comprising: a first decoding means for decoding information for determining a coding unit in a coding tree unit from the bit stream; A first determining component, configured to determine the coding unit based on the information; A second determining component, used to determine a transform unit in the coding unit; as well as second decoding means for decoding the coding unit using the transform unit, Wherein, in the predetermined manner, the length of the side of the coding unit can be 128 samples, wherein, when the transform unit is determined using a first constraint related to a size of the transform unit, even when at least one side of the coding unit is 128 samples, a maximum size that can be selected for a luma component of the transform unit in the coding unit is 32 samples, which is one quarter of 128 samples, Among them, in the predetermined manner, a shape in which one of the horizontal side and the vertical side is longer than the other side can be used as the shape of the transformation unit, wherein the coding unit can be determined by partitioning the coding tree unit using a ternary split, The size of the coding tree unit is 128 samples×128 samples, and Wherein, in the case where the coding unit spans multiple regions of 64 samples×64 samples in the coding tree unit: A first transform unit of the plurality of transform units in the coding unit is included in a first region of the plurality of regions of 64 samples×64 samples; A second transform unit different from the first transform unit among the plurality of transform units in the coding unit is included in a second region different from the first region among the plurality of regions of 64 samples×64 samples; and The plurality of transform units are determined such that each of the plurality of transform units is included in any region of a plurality of regions of 64 samples×64 samples.
6. A device for encoding a coding unit according to a predetermined manner, comprising: A first determining component, used to determine a coding unit in a coding tree unit; A second determining component, used to determine a transform unit in the coding unit; as well as an encoding unit, configured to encode the coding unit using the transform unit, Wherein, in the predetermined manner, the length of the side of the coding unit can be 128 samples, wherein, when the transform unit is determined using a first constraint related to a size of the transform unit, even when at least one side of the coding unit is 128 samples, a maximum size that can be selected for a luma component of the transform unit in the coding unit is 32 samples, which is one quarter of 128 samples, Among them, in the predetermined manner, a shape in which one of the horizontal side and the vertical side is longer than the other side can be used as the shape of the transformation unit, wherein the coding unit can be determined by partitioning the coding tree unit using a ternary split, The size of the coding tree unit is 128 samples×128 samples, and Wherein, in the case where the coding unit spans multiple regions of 64 samples×64 samples in the coding tree unit: A first transform unit of the plurality of transform units in the coding unit is included in a first region of the plurality of regions of 64 samples×64 samples; A second transform unit different from the first transform unit among the plurality of transform units in the coding unit is included in a second region different from the first region among the plurality of regions of 64 samples×64 samples; and The plurality of transform units are determined such that each of the plurality of transform units is included in any region of a plurality of regions of 64 samples×64 samples.
7. A non-transitory computer-readable storage medium storing a program for causing a computer to execute an image decoding method for decoding a coding unit from a bit stream according to a predetermined manner, the method comprising: A first decoding step for decoding information for determining a coding unit in a coding tree unit from the bit stream; A first determination step is used to determine the coding unit based on the information; A second determination step is used to determine a transform unit in the coding unit; as well as A second decoding step is used to decode the coding unit using the transform unit, Wherein, in the predetermined manner, the length of the side of the coding unit can be 128 samples, wherein, in the second determining step, when the transform unit is determined using the first constraint related to the size of the transform unit, even when at least one side of the coding unit is 128 samples, a maximum size that can be selected for a luma component of the transform unit in the coding unit is 32 samples, which is one quarter of 128 samples, Among them, in the predetermined manner, a shape in which one of the horizontal side and the vertical side is longer than the other side can be used as the shape of the transformation unit, wherein the coding unit can be determined by partitioning the coding tree unit using a ternary split, The size of the coding tree unit is 128 samples×128 samples, and Wherein, in the second determining step, when the coding unit spans a plurality of regions of 64 samples×64 samples in the coding tree unit: A first transform unit of the plurality of transform units in the coding unit is included in a first region of the plurality of regions of 64 samples×64 samples; A second transform unit different from the first transform unit among the plurality of transform units in the coding unit is included in a second region different from the first region among the plurality of regions of 64 samples×64 samples; and The plurality of transform units are determined such that each of the plurality of transform units is included in any region of a plurality of regions of 64 samples×64 samples.
8. A non-transitory computer-readable storage medium storing a program for causing a computer to execute a method for encoding a coding unit according to a predetermined manner, the method comprising: A first determination step is used to determine a coding unit in a coding tree unit; A second determination step is used to determine a transform unit in the coding unit; as well as an encoding step for encoding the coding unit using the transform unit, Wherein, in the predetermined manner, the length of the side of the coding unit can be 128 samples, wherein, in the second determining step, when the transform unit is determined using the first constraint related to the size of the transform unit, even when at least one side of the coding unit is 128 samples, a maximum size that can be selected for a luma component of the transform unit in the coding unit is 32 samples, which is one quarter of 128 samples, Among them, in the predetermined manner, a shape in which one of the horizontal side and the vertical side is longer than the other side can be used as the shape of the transformation unit, wherein the coding unit can be determined by partitioning the coding tree unit using a ternary split, The size of the coding tree unit is 128 samples×128 samples, and Wherein, in the second determining step, when the coding unit spans a plurality of regions of 64 samples×64 samples in the coding tree unit: A first transform unit of the plurality of transform units in the coding unit is included in a first region of the plurality of regions of 64 samples×64 samples; A second transform unit different from the first transform unit among the plurality of transform units in the coding unit is included in a second region different from the first region among the plurality of regions of 64 samples×64 samples; and The plurality of transform units are determined such that each of the plurality of transform units is included in any region of a plurality of regions of 64 samples×64 samples.
