Methods for decoding video data, methods for encoding video data, electronic devices, and methods for storing bitstreams.
By applying sample padding to generate unavailable luma samples, the method addresses inefficiencies in video compression by enabling consistent downsampling filters, thereby enhancing processing speed and efficiency.
Patent Information
- Application Number
- JP2025151174
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-12-30
- Filing Date
- 2025-09-11
- Publication Date
- 2026-12-04
- Estimated Expiration
- 2040-12-29
AI Technical Summary
Existing video compression methods face inefficiencies due to the use of different downsampling filters for luma and chroma samples, which can create bottlenecks in parallel processing and reduce video processing speed.
Implementing sample padding techniques, such as duplicate or mirror padding, to generate unavailable luma samples, allowing the use of a consistent downsampling filter across the entire video frame for improved parallel processing.
Enhances video processing speed by enabling parallel processing of luma samples through consistent downsampling, improving the efficiency of video data encoding and decoding.
Smart Images

Figure 0007961334000003 
Figure 0007961334000004 
Figure 0007961334000005
Abstract
Description
Technical Field
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit of U.S. Provisional Application No. 62 / 955,348, filed on December 30, 2019 and entitled “Simplifications of Cross-Component Linear Model”, the entire contents of which are incorporated herein by reference .
[0002] This application relates generally to video data coding and compression, and particularly to improved methods and systems for coding chroma samples and luma samples of video frames in a bitstream of video data. [Background Art]
[0003] Digital video is supported by a variety of electronic devices, such as digital televisions, laptop or desktop computers, tablet computers, digital cameras, digital recording devices, digital media players, video gaming consoles, smart phones, videoconferencing devices, video streaming devices, etc. Electronic devices transmit, receive, encode, decode, and / or store digital video data by implementing video compression / decompression standards defined in standards such as MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, ADVANCED Video Coding (AVC), HIGH EFFICIENCY Video Coding (HEVC), and VERSATILE Video Coding (VVC). Video compression typically Perform spatial (in-frame) and / or temporal (inter-frame) predictions on video data This includes reducing or eliminating redundancy inherent in the block-based video encoding. The video frame is divided into one or more slices, and each slice contains multiple video blocks. There are also coding tree units (CTUs). Each CTU is one It contains encoding units (CUs) or continues until a predefined minimum CU size is reached. It may be further divided into smaller CUs. Each CU (also called a leaf CU) is one It contains multiple conversion units (TUs), and each CU contains one or more prediction units (PUs). ) also includes. Each CU is encoded in either intra, inter, or IBC mode. This may be done. The video blocks in the intra-encoded (I) slice of the video frame are Using spatial prediction with respect to reference samples in adjacent blocks within the same video frame. and are encoded. In the inter-encoded (P or B) slices of the video frame A video block is defined with respect to the reference sample within an adjacent block in the same video frame. Using spatial prediction, or reference images within other previous and / or future reference video frames Time prediction may be used for pulls.
[0004] A previously encoded reference block, for example, a spatial or temporal reference based on an adjacent block. Interval prediction brings forth a predicted block for the video block to be encoded. Reference block The process of finding the code may be performed by a block matching algorithm. The residual data, which represents the pixel difference between the block that is actually being processed and the predicted block, is the residual These are called blocks or prediction errors. Intercoded blocks are prediction blocks. Motion vectors pointing to reference blocks within the reference frame being formed, and residual blocks according to the resulting vectors. Coded. The process of determining the motion vector is usually called motion estimation. The encoded blocks are then encoded according to the intra-prediction mode and residual blocks. For further compression, the residual block is converted from the pixel domain to the transformation domain, for example, The values are converted to the frequency domain, yielding residual conversion coefficients, which may then be quantized. First, the quantized transformation coefficients placed in the 2D array are scanned and the first order of the transformation coefficients is determined. The original vector is generated, and then entropy-encoded to become a video bitstream. This could lead to further compression.
[0005] Next, the encoded video bitstream is stored on a computer-readable storage medium (for example). , stored in flash memory) and by other electronic devices equipped with digital video capabilities It is accessed or transmitted directly to an electronic device via wired or wireless connection. Next, the electronic device For example, the 'is' analyzes an encoded video bitstream to determine the bitstream. The syntax elements are obtained from the bitstream, and the syntax elements obtained from the bitstream are slightly different. Digital video data from a video bitstream encoded based on, or at least partially. By reconstructing the file back into its original format, video decompression (which is different from the video compression mentioned above) is performed. The reprocessing is performed, and the reconstructed digital image data is displayed on the electronic device's display. Render.
[0006] The intercomponent prediction mode is used to predict the intercomponent relationship between the luminance sample and the saturation sample of the video bitstream. applied to reduce inter-component redundancy. Specifically, in a prediction model, luma samples are downsampled and used to predict chroma samples. However, at certain positions of a video frame, luma samples are unavailable, and different downsampling filters are used to generate downsampled luma samples near these positions . The application of different downsampling filters is not compatible with parallel image processing, which may cause a bottleneck in the processing speed of the video bitstream. It would be beneficial to have a more efficient inter-component prediction mechanism than current practices. SUMMARY OF THE INVENTION PROBLEM TO BE SOLVED BY THE INVENTION
[0007] This application describes implementations related to improved methods and systems for encoding and decoding video data, more specifically for encoding chroma and luma samples of video frames in a bitstream of video data. Sample padding is applied to luma samples to generate unavailable luma samples for use in a luma downsampling process. The unavailable samples are located outside a video frame or image slice, or have not yet been encoded and may be encoded later. These unavailable samples are selectively generated by duplicate padding or mirror padding. As such, the same downsampling filter can be used to generate all downsampled luma samples across the entire video frame, which enables parallel video processing and improves the corresponding video processing speed of the video data bitstream. MEANS FOR SOLVING THE PROBLEM
[0008] In one aspect of the present application, a method for decoding video data is performed by an electronic device . The method includes obtaining, from a bitstream, a plurality of luma samples for a plurality of pixels in a video frame . The plurality of pixels belongs to a coding block and includes a boundary pixel, where the boundary pixel is within the coding block and directly adjacent to the boundary of the coding block . The method further includes determining that one or more neighboring pixels of the boundary pixel are unavailable, and assigning a luma sample corresponding to the boundary pixel to a luma sample corresponding to each of the one or more neighboring pixels . The method also includes determining a boundary luma sample based on luma samples of at least one or more neighboring pixels and the boundary pixel according to a predefined luma interpolation scheme . Each of the one or more neighboring pixels is outside the coding block . The method further includes determining a boundary chroma sample from the boundary luma sample according to a linear mapping model . In some embodiments, the one or more neighboring pixels of the boundary pixel are outside the video frame or image slice . Alternatively, in some embodiments, the one or more neighboring pixels of the boundary pixel are not yet encoded and are encoded subsequent to the coding block .
[0009] According to another aspect of the present application, an electronic device includes one or more processing units, a memory, and a plurality of programs stored in the memory. When executed by the one or more processing units, the programs cause the electronic device to perform the method for decoding video data as described above device .
[0010] According to another embodiment, a non-temporary computer-readable storage medium is one or more It stores multiple programs to be executed by an electronic device having a processing unit. The program, when executed by one or more processing units, is transmitted to an electronic device. Then, execute the method for decoding the video data as described above. [Brief explanation of the drawing]
[0011] To provide a further understanding of the implementation, this document is included and incorporated into this document. Infrequent accompanying drawings, which constitute part of this specification, illustrate the described performance and are accompanied by descriptions. This helps in interpreting the underlying principles. The same reference number refers to the corresponding section.
[0012] [Figure 1] Figure 1 is a block diagram showing exemplary video encoding and decoding systems in some implementations of the present disclosure. [Figure 2] Figure 2 is a block diagram showing an exemplary video encoder by some implementation of the present disclosure. [Figure 3] Figure 3 is a block diagram showing an exemplary video decoder in several implementations of the present disclosure. [Figure 4A] Figure 4A is a block diagram showing a scheme in which a frame is recursively divided into multiple video blocks of different sizes and shapes, according to some implementations of the present disclosure. [Figure 4B] Figure 4B is a block diagram showing a scheme in which a frame is recursively divided into multiple video blocks of different sizes and shapes, according to some implementations of the present disclosure. [Figure 4C] Figure 4C is a block diagram showing a scheme in which a frame is recursively divided into multiple video blocks of different sizes and shapes, according to some implementations of the present disclosure. [Figure 4D]Figure 4D is a block diagram showing a scheme in which a frame is recursively divided into multiple video blocks of different sizes and shapes, according to some implementations of this disclosure. [Figure 4E] Figure 4E is a block diagram showing a scheme in which a frame is recursively divided into multiple video blocks of different sizes and shapes, according to some implementations of this disclosure. [Figure 5] Figure 5 shows the process of obtaining saturation samples from luminance samples of encoded blocks of video frames in a bitstream, according to several embodiments. [Figure 6A] Figure 6A shows four example coding blocks according to several embodiments, each coding block containing multiple luminance samples to be converted into multiple chrominance samples. [Figure 6B] Figure 6B shows four example coding blocks according to several embodiments, each coding block containing multiple luminance samples to be converted into multiple chrominance samples. [Figure 6C] Figure 6C shows four example coding blocks according to several embodiments, each coding block containing multiple luminance samples to be converted into multiple chrominance samples. [Figure 6D] Figure 6D shows four example coding blocks according to several embodiments, each coding block containing multiple luminance samples to be converted into multiple chrominance samples. [Figure 7] Figure 7 is a flowchart of a video data decoding method performed on an electronic device according to several embodiments. [Modes for carrying out the invention]
[0013] Reference numerals are assigned to details of exemplary embodiments, examples of which are shown in the accompanying drawings. The following detailed explanations will help you understand the subject matter presented herein. Non-limiting specific details are given. However, those skilled in the art will not deviate from the claims. Various alternatives can be used, and the subject can be performed without these specific details. It is clear that this is possible. For example, the subject presented here is digital video functions It will be obvious to those skilled in the art that this can be implemented in many types of electronic devices equipped with this technology.
[0014] Figure 1 shows the parallel encoding and processing of video blocks according to some implementations of this disclosure. A block diagram showing an exemplary system 10 for coding. As shown in Figure 1. System 10 generates video data that will later be decoded by the destination device 14. and includes source device 12 to encode. Source device 12 and destination device S14 is a desktop or laptop computer, tablet computer, S Smartphones, set-top boxes, digital televisions, cameras, display devices Digital media players, video game consoles, video streaming devices It may include any wide variety of electronic devices, including S, etc. In some executions, S The destination device 12 and destination device 14 are equipped with wireless communication capabilities.
[0015] In some executions, the destination device 14 is to be decoded via link 16. It can receive encoded video data. Link 16 receives encoded video Any type of communication medium capable of moving image data from source device 12 to destination device 14 It may include a body or device. For example, link 16 is connected to source device 12. Communication that enables the direct transmission of coded video data to destination 14 in real time. It may include a medium. Encoded video data may be a communication standard such as a wireless communication protocol. It may be modulated according to the standard and transmitted to the destination device 14. The communication medium is a radio frequency ( Any wireless or wireless transmission line such as RF spectrum or one or more physical transmission lines. Linear communication media may be included. Communication media include local area networks and wide area networks. Packet-based networks such as networks, or global networks such as the Internet It can form part of a network. Communication media include routers, switches, and base stations. , or a possibility that helps facilitate communication from source device 12 to destination device 14 It may also include any other device that has a similar function.
[0016] In some other runs, the encoded video data is output to the output interface 22 It may be sent from to the storage device 32. Subsequently, the encoded in the storage device 32 The video data is accessed by the destination device 14 via the input interface 28. It may be used. The storage device 32 is a hard drive, Blu-ray® disc. Screens, DVDs, CD-ROMs, flash memory, volatile or non-volatile memory, or Any other suitable digital storage medium for storing encoded video data, etc. This may include any variety of distributed or locally accessible data storage media. In the following example, the storage device 32 stores the encoded data generated by the source device 12. It can be compatible with a file server or another intermediate storage device that can hold the processed video data. The destination device 14 is the storage device 32 via streaming or download. The stored video data can be accessed. The file server can access encoded video The data can be stored and the encoded video data can be sent to the destination device 14. Any type of computer will do. An example file server is a web server. (For example, for websites), FTP servers, network-attached storage (NAS) devices This includes a local disk drive. Destination device 14 is on a wireless channel ( For example, Wi-Fi connection, wired connection (for example, DSL, cable modem, etc.), or Accessing encoded video data stored on the file server for both purposes. Video data encoded via any standard data connection, including a suitable combination for It can be accessed. Transmission of encoded video data from storage device 32. This may be streaming transmission, download transmission, or a combination of both.
[0017] As shown in Figure 1, the source device 12 includes a video source 18 and a video encoder 20. , and output interface 22. The video source 18 is a video capture device. (For example, a video camera), a video archive containing previously captured video, video video A video feed interface for receiving video from content providers, and / or Comp to generate computer graphics data as source video Sources such as computer graphics systems, or combinations of such sources It may be included. For example, if video source 18 is a video camera of a security surveillance system In some cases, the source device 12 and the destination device 14 are camera phones or video phones. It can be formed. However, the implementation described in this application is generally applicable to video coding. Yes, and it can be applied to wireless and / or wired applications.
[0018] Captured, pre-captured, or computer-generated video The video data may be encoded by the video encoder 20. , sent directly to the destination device 14 via the output interface 22 of the source device 12. This may be done. The encoded video data is stored (or instead) in the storage device 32. After being stored, it is accessed by destination device 14 or other devices, and decoded It may be used for input and / or playback. The output interface 22 is a mod It may further include a motor and / or a transmitter.
[0019] The destination device 14 has an input interface 28, a video decoder 30, and a display Includes a ray device 34. The input interface 28 connects the receiver and / or modem. It can receive encoded video data via link 16. Encoded video data communicated via 16 or provided on storage device 32 The data is used by the video decoder 30 when decoding the video data. It may include various syntax elements generated by the encoder 20. Syntax elements are transmitted over a communication medium, stored on a storage medium, or on a file server. - It may be included in the encoded video data stored in the device.
[0020] In some runs, destination device 14 is an integrated display device and destination device Display device is an external display device configured to communicate with chair 14. A chair 34 may be included. The display device 34 uses the decoded video data. Displayed on a screen, liquid crystal display (LCD), plasma display, organic light-emitting diode Any type of display device such as an OLED display or another type of display device It may include various display devices.
[0021] The video encoder 20 and video decoder 30 support VVC, HEVC, MPEG-4, and 10, Advanced Video Coding (AVC), or extensions of such standards, etc., are proprietary or commercial. It can operate in accordance with international standards. This application is not limited to specific video encoding / decoding standards. It is understood that this is applicable to other video encoding / decoding standards. The video encoder 20 of device 12 displays according to any current or future standards. It is generally conceivable that it can be configured to encode image data. Similarly, The video decoder 30 of the preceding device 14 displays according to any current or future standards. It is also commonly thought that the system may be configured to decode image data.
[0022] The video encoder 20 and the video decoder 30 each have one or more microp Processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), feeds Programmable Gate Arrays (FPGAs), discrete logic, software , hardware, firmware, or any combination thereof, and any various It may be implemented as a suitable encoder circuit. If partially implemented in software. Electronic devices transmit instructions for software to a suitable non-temporary computer-readable medium. Store and execute instructions in hardware using one or more processors in this disclosure The disclosed video encoding / decoding operations can be performed. Video Encoder 2 Each of the 0 and video decoder 30 is connected to one or more encoders or decoders. The encoder or decoder is included and combined with the corresponding device. It may be integrated as part of a codec.
[0023] Figure 2 shows an exemplary video encoder 20 in several implementations described in this application. This is a block diagram. The video encoder 20 processes the video blocks within the video frame. Intra and intra predictive coding can be performed. Intra predictive coding is spatial predictive coding. Depending on the measurement, the spatial redundancy of video data within a given video frame or picture is reduced. Delete. Interpretation coding relies on time prediction to determine adjacent video sequences. Reduce or remove temporal redundancy in video data within a frame or picture.
[0024] As shown in Figure 2, the video encoder 20 includes a video data memory 40, a prediction processing unit 41, and a decode picture buffer (DPB). 64 The video encoder 20 includes a Summer 50, a transformation processing unit 52, a quantization unit 54, and an entropy encoding unit 56. The prediction processing unit 41 further includes a motion estimation unit 42, a motion compensation unit 44, a splitting unit 45, an intra-prediction processing unit 46, and an intra-block copy (BC) unit 48. In some runs, the video encoder 20 includes an inverse quantization unit 58 and an inverse transformation processing unit for video block reconstruction. 60 , and summer 62 This also includes a deblocking filter (not shown) for summer. 62 and DPB 64It is positioned between and and can filter block boundaries to remove blocky artifacts from the reconstructed image. In addition to the deblocking filter, an in-loop filter (not shown) is used, and Summer 62 The output can also be filtered. The video encoder 20 may take the form of a fixed or programmable hardware unit, or may be divided into one or more illustrated fixed or programmable hardware units.
[0025] The video data memory 40 can store video data to be encoded by the components of the video encoder 20. The video data in the video data memory 40 may be obtained, for example, from the video source 18. DPB 64 This is a buffer that stores reference video data used by the video encoder 20 to encode the video data (for example, in intra or inter predictive coding mode). Video data memory 40 and DPB 64 This may be formed by various memory devices. In various examples, the video data memory 40 may be on-chip with the other components of the video encoder 20, or off-chip with respect to those components.
[0026] As shown in Figure 2, after receiving video data, the partitioning unit 45 within the prediction processing unit 41 partitions the video data into video blocks. This partitioning may also include dividing video frames into slices, tiles, or other larger coding units (CUs) according to a predefined partitioning structure, such as a quadtree structure, associated with the video data. A video frame may be partitioned into multiple video blocks (or sets of video blocks called tiles). The prediction processing unit 41 can select one of several possible predictive coding modes for the given video block based on the error result (e.g., coding rate and distortion level), and the possible predictive coding modes may be, for example, one of several intra predictive coding modes or one of several inter predictive coding modes. The prediction processing unit 41 provides the resulting intra or inter predictively coded block to Summer 50 to generate a residual block, and then summer 62 Blocks can be reconstructed and encoded for later use as part of a reference frame. The prediction processing unit 41 also provides syntactic elements such as motion vectors, intra-mode indicators, segmentation information, and other such syntactic information to the entropy encoding unit 56.
[0027] To select the appropriate intra predictive coding mode for the current video block, the predictive processing unit The intra-prediction processing unit 46 within the knit 41 is the same as the block that is to be encoded. Intra to the current video block for one or more adjacent blocks within the same frame Predictive coding can be performed to provide spatial predictions. Movement within the prediction processing unit 41 The estimation unit 42 and the motion compensation unit 44 are one of one or more reference frames. Alternatively, perform interpredictive coding of multiple prediction blocks to the current video block. It provides time prediction. The video encoder 20 provides multiple codes for each block of video data. You can execute the encoding pass to select, for example, an appropriate encoding mode.
[0028] In some runs, the motion estimation unit 42 determines a predetermined sequence of video frames. By generating motion vectors according to a pattern, the input for the video frame is The predictor mode is determined, and the motion vector is used to predict the block within the reference video frame. It instructs the displacement of the prediction unit (PU) of the video block within the video frame immediately preceding it. The motion estimation performed by the estimation unit 42 estimates the motion of the video block. This is a vector generation process. The motion vector is, for example, the current frame (or other encoded The reference frame for the current block that is encoded in the unit (and This is the current video frame or P for the prediction block within other encoded units. The displacement of the PU of the video block within the kucha can be instructed. A predetermined pattern is in the sequence. Video frames can be specified as P-frames or B-frames. (IntraBC) Unit 48 determines the motion vector by motion estimation unit 42 for interpretation. A method similar to defining a vector, for example, a block vector for intra-BC coding. This can be determined, or the block vector can be determined using the motion estimation unit 42. It is possible.
[0029] A prediction block is a block that is certified to be a tight match to the PU of the video block encoded with respect to the pixel difference of the reference frame, which can be determined by the sum of absolute differences (SAD), sum of squared differences (SSD), or other difference metrics. In some executions, the video encoder 20 uses DPB 64The values of sub-integer pixel positions of the reference frame stored can be calculated. For example, the video encoder 20 can interpolate the values of the quarter-pixel, one-eighth-pixel, or other partial pixel positions of the reference frame. Therefore, the motion estimation unit 42 can perform motion search on all pixel positions and partial pixel positions and output motion vectors with partial-pixel accuracy.
[0030] The motion estimation unit 42 calculates the motion vector of the PU by comparing the position of the PU of the video block in the interpredictive coded frame with the position of the predicted block in a reference frame selected from the first reference frame list (list 0) or the second reference frame list (list 1). The first reference frame list and the second reference frame list are, respectively, DPB. 64 Identify one or more reference frames stored in the system. The motion estimation unit 42 sends the calculated motion vector to the motion compensation unit 44, and then to the entropy encoding unit 56.
[0031] Motion compensation performed by the motion compensation unit 44 may involve fetching or generating predicted blocks based on motion vectors determined by the motion estimation unit 42. Upon receiving the motion vector of the PU of the current video block, the motion compensation unit 44 positions the predicted block pointed to by the motion vector in one of the reference frame lists, and DPB 64A prediction block can be retrieved and transferred to Summer 50. Summer 50 then forms a residual image block of pixel difference values by subtracting the pixel values of the prediction block provided by the motion compensation unit 44 from the pixel values of the image block being encoded. The pixel difference values forming the residual image block may include luminance difference components or saturation difference components, or both. The motion compensation unit 44 can also generate syntax elements associated with the image block of the image frame for use by the image decoder 30 when decoding the image block of the image frame. The syntax elements may include, for example, a syntax element that defines a motion vector used to identify the prediction block, an optional flag indicating a prediction mode, or any other syntax information described herein. Note that the motion estimation unit 42 and the motion compensation unit 44 can be highly integrated but are shown separately for conceptual purposes.
[0032] In some runs, the intraBC unit 48 and motion estimation unit 42 and motion In relation to the compensation unit 44, a vector is generated in a similar manner to the above, and the prediction block is fed It is possible to do this, but the predicted block is in the same frame as the block that was just about to be encoded. And, vectors are the opposite of motion vectors and are called block vectors. In particular, The traBC unit 48 determines the intra prediction mode and encodes the current block. It can be used for the following purposes. In some examples, the intraBC unit 48 is, for example However, during separate encoding paths, various intra predictive modes can be used as standard. You can encode the files and test their performance through rate distortion analysis. Next, the intraBC unit 48 selects from among various tested intraprediction modes: Select the appropriate intra-prediction mode to use, and the intra-mode indicator accordingly. It can generate various tested i Rate distortion values were calculated using rate distortion analysis in the prediction mode, and the tested modes The appropriate intra prediction mode to use has the best rate distortion characteristics among the available intras. It can be selected as a prediction mode. Rate distortion analysis is generally encoded The block and the original encoding used to generate the block to be encoded The amount of distortion (or error) between unencoded blocks, and the amount of encoding Determine the bitrate (i.e., the number of bits) to use to generate the lock. The BC Unit 48 analyzes distortion and rate for various encoded blocks. The ratio is calculated to determine which intra-prediction mode provides the best rate distortion value for the block. It is possible to determine whether or not.
[0033] In another example, the intraBC unit 48 is a motion estimation unit 42 and a motion compensation unit. Using the 44 in whole or in part, the intra-BC plan is implemented according to the method described herein. Such a model can be run for measurement. In any case, intrabro In the case of block copying, the predicted block is the sum of absolute differences (SAD) and the sum of squared differences (SSD). Or strictly to the blocks encoded with respect to the pixel difference which may be determined by other differences. A block is identified as matching the specified criteria, and the identification of a predicted block is done using sub-integer pixels. This may include the calculation of the position value.
[0034] Whether the prediction block is from the same frame due to intraprediction, or inter Regardless of whether they are from different frames predicted, the video encoder 20 will... Subtract the pixel value of the predicted block from the pixel value of the image block that is about to be numbered. By forming a difference in pixel values, residual image blocks can be formed. The pixel difference values that form a block may include both the difference in luminance components and the difference in saturation components. stomach.
[0035] The intra-predictive processing unit 46 consists of a motion estimation unit 42 and a motion compensation unit 44. Interpretation performed by, or performed by intraBC unit 48 As an alternative to intrablock copy prediction, the video block is automatically copied intrablock as described above. It can be predicted. In particular, the intra prediction processing unit 46 evaluates the current block and You can determine the intra predictive mode to use for coding. The intra predictive processing unit 46, for example, during a separate encoding path, various The current block can be encoded using intra predictive mode, The measurement processing unit 46 (or, in some examples, the mode selection unit) is tested. From the available intra-prediction modes, you can select the appropriate intra-prediction mode to use. The intra prediction processing unit 46 selects the intra prediction mode for the block. The information to be instructed can be provided to the entropy encoding unit 56. The tropy encoding unit 56 selects an integer in the bitstream. It can encode information that instructs the tiger prediction mode.
[0036] The prediction processing unit 41 performs the following via either interpretation or intraprediction: After determining the prediction block for the video block, Summer50 predicts from the current video block. By subtracting blocks, residual image blocks are formed. Residual images within residual blocks Image data can be contained in one or more conversion units (TUs), and conversion processing units The transform processing unit 52 is provided with the discrete cosine transform (DCT) or concept. The residual video data is converted to residual transformation coefficients using transformations such as similar transformations.
[0037] The conversion processing unit 52 sends the resulting conversion coefficients to the quantization unit 54. This is possible. The quantization unit 54 quantizes the conversion coefficients to further reduce the bitrate. Quantization is the process of reducing the bit depth associated with some or all of the coefficients. It is also possible. The degree of quantization may be modified by adjusting the quantization parameters. In some examples, the quantization unit 54 then contains the quantized transformation coefficients. You can perform a scan of the sys. Alternatively, you can perform an entropy encoding operation. The Knit 56 can perform scans.
[0038] Following quantization, the entropy encoding unit 56 performs, for example, contextualization. Adaptive Variable-Length Coding (CAVLC), Context-Adaptive Binary Arithmetic Coding (CABAC), Syntax-based context-adaptive binary arithmetic coding (SBAC), stochastic interval partitioning PIPE encoding, or any other entropy encoding method or technique Using this technique, the quantized conversion coefficients are entropically encoded into the video bitstream. The encoded bitstream is then sent to the video decoder 30, and The data is archived in the storage device 32 to be later transmitted to or retrieved by the video decoder 30. It can be done. The entropy encoding unit 56 is the one that is about to be encoded Entropy encoding of motion vectors and other syntax elements of video frames. It is also possible.
[0039] Inverse quantization unit 58 and inverse transformation processing unit 60 The DPB reconstructs the residual image block in the pixel domain by applying inverse quantization and inverse transform, respectively, to generate a reference block for predicting other image blocks. As described above, the motion compensation unit 44 uses DPB 64 A motion compensation prediction block can be generated from one or more reference blocks of frames stored in the system. The motion compensation unit 44 can apply one or more interpolation filters to the prediction block to calculate sub-integer pixel values used in motion estimation.
[0040] summer 62 The reconstructed residual block is added to the motion compensation prediction block generated by the motion compensation unit 44, and the DPB is calculated. 64 A reference block is generated for storage. The reference block is then used as a prediction block by the intraBC unit 48, the motion estimation unit 42, and the motion compensation unit 44 to interpret another video block in a subsequent video frame.
[0041] Figure 3 is a block diagram showing an exemplary video decoder 30 according to several implementations of the present application. The video decoder 30 has a video data memory 79The video decoder 30 includes an entropy decoding unit 80, a prediction processing unit 81, an inverse quantization unit 86, an inverse transformation processing unit 88, a summer 90, and a DPB 92. The prediction processing unit 81 further includes a motion compensation unit 82, an intra-prediction processing unit 84, and an intra-BC unit 85. The video decoder 30 can perform decoding processes that are largely the reverse of the encoding processes previously described with respect to the video encoder 20 in relation to Figure 2. For example, the motion compensation unit 82 can generate prediction data based on motion vectors received from the entropy decoding unit 80, while the intra-prediction unit 84 can generate prediction data based on an intra-prediction mode indicator received from the entropy decoding unit 80.
[0042] In some examples, the video decoder 30 unit is assigned to perform the implementation of the present invention. They may be assigned duties. Also, in some examples, the execution of this disclosure involves the video decoder 30. It may be divided into one or more units. For example, the intraBC unit 85 is The application can be realized by itself, or by the motion compensation unit 82, the intra predictive processing unit 84, and other units of the video decoder 30 such as the entropy decoding unit 80 This can be done in combination with the following. In some examples, the video decoder 30 is an intra-BC unit. It is not necessary to include the 85, and the function of the intraBC unit 85 is the motion compensation unit 8 This may be performed by other components of the prediction processing unit 81, such as 2.
[0043] Video data memory 79 This can store video data, such as an encoded video bitstream, which is decoded by other components of the video decoder 30. 79The video data stored in the video data memory may be acquired, for example, from the storage device 32, from a local video source such as a camera via wired or wireless network communication of the video data, or by accessing a physical data storage medium (e.g., a flash drive or hard disk). 79 This may include an encoded picture buffer (CPB) that stores encoded video data from the encoded video bitstream. The decoded picture buffer (DPB) 92 of the video decoder 30 stores reference video data for use in decoding the video data by the video decoder 30 (for example, in intra or interpredictive coding mode). Video data memory 79 And DPB92 may be formed by any variety of memory devices such as dynamic random access memory (DRAM) (including synchronous DRAM (SDRAM)), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. For illustrative purposes, video data memory 79 The DPB92 and DPB92 are shown in Figure 3 as two separate components of the video decoder 30. However, to those skilled in the art, the video data memory 79 It is clear that the video data memory and DPB92 can be provided by the same memory device or separate memory devices. In some examples, video data memory 79 This component can be on-chip with the other components of the video decoder 30, or it can be off-chip with respect to those components.
[0044] During the decoding process, the video decoder 30 processes the video of the encoded video frame. Encoded video bits representing blocks and associated syntax elements The stream is received. The video decoder 30 processes the video frame level and / or video block. Syntax elements can be received at the lock level. Entr of the video decoder 30 The P-decoding unit 80 entropy-decodes the bitstream and calculates the amount Childification coefficient, motion vector or intra-predictive mode indicator, and other syntax The entropy decoding unit 80 then generates the element. Other syntax elements are transferred to the prediction processing unit 81.
[0045] The video frame is encoded as an intra predictive coding (I) frame, or other type When a prediction block is encoded for intra-coded prediction in the frame of the program, the prediction process The intra-predictive processing unit 84 of unit 81 signals the intra-predictive mode Based on the reference data from the decoded block before the current frame, It can generate predictive data for video blocks within video frames.
[0046] The video frame is encoded as an interpredictively coded (i.e., B or P) frame. In this case, the motion compensation unit 82 of the prediction processing unit 81 performs entropy decoding. Based on the motion vector and other syntax elements received from unit 80, Generate one or more prediction blocks for the video block of the video frame. Blocks may be generated from reference frames in one of the reference frame lists. Coder 30 uses the default construction technique based on the reference frame stored in DPB92. Using this, the reference framelist, list 0, and list 1 can be constructed.
[0047] In some examples, the video block is coded according to the intraBC mode described herein. When this occurs, the intra BC unit 85 of the prediction processing unit 81 performs entropy deco Based on block vectors and other syntax elements received from the coding unit 80 Next, predictive blocks for the standard video blocks are generated. The predictive blocks are video encoders. Within the same reconstructed area of the picture as the original image block defined by 20 That's fine.
[0048] The motion compensation unit 82 and / or intraBC unit 85 are motion vectors and By analyzing other syntax elements, the video blocks of the current video frame can be predicted. The measurement information is determined, and then the prediction information is used to predict the current video block being decoded. A measurement block is generated. For example, the motion compensation unit 82 receives the syntax element. We use several predictive modes to encode video blocks of video frames. D (for example, intra or inter prediction), inter prediction frame type (for example, B Or P), construction information for one or more reference frame lists of frames, each of the frames Interpredicted motion vectors of encoded video blocks, interpredicted for each frame Determine the interpredicted status of the encoded video block, and other information, at present. Decode the video blocks within the video frame.
[0049] Similarly, the intraBC unit 85 receives some of the syntax elements, for example The flag indicates that the expected video block was predicted using intraBC mode. The structure of which video block of the frame is in the reconstruction area and stored in DPB92. Construction information, block vector of each intraBC prediction video block in the frame, each of the frames Determine the intraBC prediction status and other information for the intraBC prediction video block. Then, the video blocks in the current video frame are decoded.
[0050] The motion compensation unit 82 communicates to the video encoder 20 during the encoding of the video block. Therefore, interpolation is performed using the interpolation filter used, and the subinteger pixels of the reference block are interpolated. It is also possible to calculate interpolation values for the cells. In this case, the motion compensation unit 82 receives The interpolation filter used by the video encoder 20 is determined from the syntax elements. Prediction blocks can be generated using interpolation filters.
[0051] The inverse quantization unit 86 is used by the video encoder 20 to determine the degree of quantization. Using the same quantization parameters calculated for each image block within the image frame, Provided in bitstream and by the entropy decoding unit 80 The quantization transformation coefficients that are decoded by tropy are inversely quantized. The inverse transformation processing unit 88 performs the following: To reconstruct residual blocks in the pixel domain, an inverse transform (e.g., inverse DCT) is used. Apply an inverse integer transformation (or a conceptually similar inverse transformation process) to the transformation coefficients.
[0052] The motion compensation unit 82 or intraBC unit 85 controls the vector and other syntax After generating predicted blocks of the current video block based on the X elements, Summer90, Residual blocks from the inverse conversion processing unit 88 and motion compensation unit 82 and intra BC By summing the corresponding predicted block generated by unit 85, the expected Reconstruct the decoded video blocks of the video blocks. In-loop filter (not shown) ) is located between Summer 90 and DPB92, and further decodes the video block It can be processed. The decoded video block in a given frame is then DP Stored in B92, DPB92 is used as a reference for subsequent motion compensation in the next video block. The frame is stored. The DPB92, or another memory device besides the DPB92, will be shown later in the diagram. To be presented on a display device such as display device 34, It can also store coded video.
[0053] In typical video encoding processes, video sequences are typically ordered into frames. Includes a set of images or pictures. Each frame is displayed in SL, SCb, and SCr. It can include three sample arrays. SL is a two-dimensional array of luminance samples. Yes. SCb is a two-dimensional array of Cb chrominance samples. SCr is a Cr chrominance sample. It is a two-dimensional array. In other examples, the frame can be monochrome. Therefore, it includes only one two-dimensional array of luminance samples.
[0054] As shown in Figure 4A, the video encoder 20 (or more specifically, the splitting unit 45) generates an encoded representation of a frame by first splitting the frame into a set of coding tree units (CTUs). A video frame can contain an integer number of CTUs arranged sequentially from left to right and top to bottom in the order of the raster scan. Each CTU is the largest logical coding unit, and the width and height of the CTUs are such that all CTUs in the video sequence are 128 × 128. 64The sequence parameter set is signaled by the video encoder 20 to have the same size, which is one of ×64, 32×32, and 16×16. However, it should be noted that this application is not necessarily limited to a specific size. As shown in Figure 4B, each CTU may include a coding tree block (CTB) of one luminance sample, corresponding coding tree blocks of two chrominance samples, and syntax elements used to encode the samples of the coding tree blocks. The syntax elements describe the properties of different types of units of the coding block of pixels and how the video sequence can be reconstructed by the video decoder 30, and include inter or intra prediction, intra prediction mode, motion vector, and other parameters. In a monochromic picture or a picture having three distinct color planes, the CTU may include a single coding tree block and syntax elements used to encode the samples of the coding tree block. The coding tree block may be an N×N block of samples.
[0055] To achieve better performance, the video encoder 20 can recursively perform tree partitioning on the encoding tree block of the CTU, such as binary tree partitioning, ternary tree partitioning, quadary tree partitioning, or any combination thereof, to divide the CTU into smaller encoding units (CUs). As shown in Figure 4C, 64The ×64CTU400 is initially divided into four smaller CUs, each having a block size of 32×32. Of the four smaller CUs, CU410 and CU420 are each divided into four 16×16 block-sized CUs. The two 16×16CUs, 430 and 440, are further divided into four 8×8 block-sized CUs. Figure 4D shows a quadtree data structure representing the final result of the division process of CTU400 as shown in Figure 4C, where each leaf node of the quadtree corresponds to one CU of a corresponding size ranging from 32×32 to 8×8. Similar to the CTU shown in Figure 4B, each CU may include an encoded block (CB) of luminance samples, an encoded block of corresponding chrominance samples for two frames of the same size, and syntax elements used to encode the samples in the encoded blocks. In monochromatic pictures or pictures with three distinct color planes, a CU may include a single encoding block and a syntax structure used to encode samples of the encoding block. Note that the quadtree partitions shown in Figures 4C and 4D are for illustrative purposes only, and one CTU can be partitioned into multiple CUs to adapt to various local characteristics based on quadtree / ternary / binary partitions. In multi-type tree structures, one CTU is partitioned by a quadtree structure, and each quadtree leaf CU may be further partitioned by binary and ternary structures. As shown in Figure 4E, there are five partition types: quad partitioning, horizontal bipartite partitioning, vertical bipartite partitioning, horizontal ternary partitioning, and vertical ternary partitioning.
[0056] In some runs, the video encoder 20 encodes one or more blocks of the CU. It can be further divided into M x N prediction blocks (PB). The prediction blocks are the same prediction Sample rectangles (squares or non-squares) to which measurement (inter or intra) is applied. This is the block. The prediction unit (PU) of the CU is the prediction block for the brightness sample, two blocks The corresponding prediction block of the saturation sample, and the prediction block used to predict the prediction block. Syntax elements may be included. Monochromatic picture or picture with three separate color planes. In Kucha, PU is used to predict a single prediction block and to predict the prediction block. It may also include a syntax structure. The video encoder 20 controls the brightness of each PU of the CU, Cb And generating predicted luminance, Cb, and Cr blocks for Cr prediction blocks. It is possible.
[0057] The video encoder 20 uses intra-prediction or inter-prediction to predict the PU's prediction block It can generate a . The video encoder 20 uses intraprediction to predict the PU When generating a block, the video encoder 20 decouples the frame associated with the PU. Based on the sampled images, a predicted block for the PU can be generated. When Coda 20 uses interpretation to generate prediction blocks for the PU, video encoding Da20 decodes one or more frames other than the frame associated with the PU. Based on the sample, a prediction block for the PU can be generated.
[0058] The video encoder 20 predicts the brightness, Cb, and for one or more PUs of the CU. After generating the Cr block, the video encoder 20 then uses the original luminance coding block of CU. Then, by subtracting the predicted luminance block, the luminance residual block of the CU is generated. This allows each sample in the luminance residual block of the CU to be a predicted luminance block of the CU. A luminance sample in one of the blocks and the corresponding sample in the original luminance coding block of the block. It indicates the difference between the and . Similarly, the video encoder 20 indicates the Cb residual block of CU and The Cr residual block can be generated separately, and this allows for the generation of the Cb residual block of CU. Each sample of CU is a Cb sample in one of the predicted Cb blocks of CU and the original C of CU. Indicates the difference between the corresponding samples in the b-encoded block and the Cr residual block of CU. Each sample is a Cr sample in one of the predicted Cr blocks of CU and the original Cr of CU. It may indicate the difference between the corresponding sample in the coded block.
[0059] Furthermore, as shown in Figure 4C, the video encoder 20 uses a quadtree partition to C The residual blocks of luminance U, Cb, and Cr are one or more luminance, Cb, and Cr It can be broken down into transformation blocks. Each transformation block is a rectangle to which the same transformation is applied. This is a block of samples (square or non-square). The CU's conversion unit (TU) is , a conversion block for the luminance sample, a corresponding conversion block for the two saturation samples, and conversion It may include syntax elements used to transform block samples. However, Each TU in the CU consists of a luminance conversion block, a Cb conversion block, and a Cr conversion block. It can be associated with C. In some examples, the luminance conversion block associated with TU is C It may also be a subblock of the luminance residual block of U. A subblock of a block is also acceptable. The Cr conversion block is a subblock of the Cr residual block of CU. Blocks are also acceptable. In monochromatic pictures or pictures with three separate color planes, T U is a single transformation block and a sample used to transform the sample of the transformation block. It may also include a tax structure.
[0060] The video encoder 20 applies one or more conversions to the luminance conversion block of the TU, It is possible to generate luminance coefficient blocks for TU. The coefficient block is a 2D A of the transformation coefficients. Rays are also acceptable. The conversion coefficient may be a scalar quantity. The video encoder 20 has one or more The transformation can be applied to the TU's Cb transformation block to generate the TU's Cb coefficient block. The video encoder 20 applies one or more conversions to the Cr conversion block of the TU. This allows us to generate a Cr coefficient block for TU.
[0061] Coefficient blocks (e.g., luminance coefficient block, Cb coefficient block, or Cr coefficient block) After generating the coefficients, the video encoder 20 can quantize the coefficient blocks. Quantization generally refers to the amount of data used to represent a transformation coefficient by quantizing it. This means a process that makes it possible to reduce and provide further compression. The video encoder 20 is a coefficient After quantizing the block, the video encoder 20 indicates the quantized conversion coefficients. The tax element can be entropy-encoded. For example, video encoder 20 This is a context-adaptive binary for syntax elements that indicate quantized transformation coefficients. It can perform arithmetic coding (CABAC). Finally, the video encoder 20 performs coding. The sequence of bits that forms the representation of the assigned frame and associated data It can output a bitstream containing the bitstream, and the bitstream is stored in storage device 32 It is saved to or sent to destination device 14.
[0062] After receiving the bitstream generated by the video encoder 20, the video decoder 30 parses the bitstream and extracts syntax elements from the bitstream. The video decoder 30 can obtain the syntax from the bitstream. Based on the basics, at least partially, the frames of the video data can be reconstructed. The process of reconstructing the image data is generally performed by the video encoder 20. This reverses the processing. For example, the video decoder 30 is the TU of the CU. Perform an inverse transform on the associated coefficient block and associate it with the TU of the original CU. The residual blocks can be reconstructed. The video decoder 30 further... Add the PU prediction block sample to the corresponding CU TU transformation block sample. By performing calculations, the encoding block of the current CU is reconstructed. After reconstructing the frame blocks, the video decoder 30 can reconstruct the frames. .
[0063] As described above, video encoding mainly has two modes, namely, intraframe prediction (or Video compression is achieved using intra-prediction and inter-frame prediction (or inter-prediction). Palette-based coding is another coding method adopted by many video coding standards. This is key. Palette-based coding is particularly suitable for screen-generated content coding. The video encoder (for example, video encoder 20 or video decoder 30) processes a given block A color palette table is formed to represent the video data of the element. Includes the most dominant (e.g., frequently used) pixel values in the block. Given Pixel values that are not frequently represented in the video data of a block are included in the palette table. It is either not included or is included in the palette table as an escape color.
[0064] Each entry in the palette table is indexed to the corresponding pixel value in the palette table. Includes blocks. The palette index for the sample within the block is the palette table. This indicates which entries from the log are used to predict or reconstruct which samples. It may be encoded in this way. This palette mode is picture, slice, tile, Or the palette predictor of the first block of other such groupings in the video block The process begins with generation. As explained below, the palette predictor for the subsequent video block. This is typically generated by updating the previously used palette predictor. Therefore, it is assumed that the palette predictor is defined at the picture level. In other words, A char may contain multiple coded blocks, and each coded block may contain its own pallet It has a palette table, but there is only one palette predictor for the entire picture.
[0065] The bit required to signal palette entries in a video bitstream To reduce noise, the video decoder uses a palette predictor to reconstruct the video block. This allows you to determine the new palette entry in the palette table used for this purpose. For example, the pallet predictor can retrieve pallet entries from the previously used pallet table. It may include birds, or all entries in the recently used pallet table. It may be initialized with the most recently used palette table by some execution. The palette predictor uses more than all entries from the recently used palette table. It includes a small number of entries, and then some entries from other previously used palette tables. A bird can be incorporated. The palette predictor is used to encode different blocks. The palette table used may have the same size as the palette table, or it may encode different blocks. It may be larger or smaller than the pallet table used for this purpose. The pallet predictor is a first-in, first-out (FIFO) pallet with 54 pallet entries. It will be executed as a bull.
[0066] To generate a palette table for blocks of video data from a palette predictor The video decoder then processes each element of the palette predictor from the encoded video bitstream. It can receive a 1-bit flag for the palette. The 1-bit flag is for palette reservation. The first value indicates that the associated entry for the meter is included in the palette table. For example, binary 1), or the associated entry of the palette predictor is palette It is possible to have a second value (for example, binary 0) that indicates that it is not included in the cable. It works. The size of the palette predictor is the palette table used for the blocks of video data. If it is even larger, when it reaches the maximum size of the palette table, the video decoder will stop You may stop receiving the flag.
[0067] In some runs, some entries in the palette table are palette predictors The signal is not determined by how it is used, but directly in the encoded video bitstream. It may be ringed. In the case of such an entry, the video decoder will encode the video From the image bitstream, the luminance and two saturation components associated with the entry are extracted. It can receive three distinct m-bit values that indicate the cell value, where m is the image data. Represents the bit depth of the data. Multiple data points required for directly signaled palette entries. Compared to m-bit values, these palette entries obtained from the palette predictor are 1 bit Request only the flag of the set. Therefore, use the palette predictor to select some or all of them. Signaling a palette entry means that a new entry in the palette table is This significantly reduces the number of bits required for Gunnaring, and thus enables palette mode coding. Improves overall encoding efficiency.
[0068] In many examples, the palette predictor for one block is coded one or more times before. Determined based on the palette table used to encode the encoded blocks. However, when encoding the first coding tree unit of a picture, slice, or tile... Therefore, the palette table of previously encoded blocks is unavailable. The predictor cannot be generated using previously used entries in the palette table. In cases like this, the sequence of the palette predictor initializer is the sequence parameter set ( Even if signaled by SPS and / or Picture Parameter Set (PPS) Sequence parameter set (SPS) and / or picture parameter set ( PPS generates a pallet predictor when the previously used pallet table is unavailable. This is the value used to achieve it. SPS is generally found in each slice segment header. The content of the syntax element found in the PPS that the syntax element being output refers to depends on the content of the syntax element. To determine this, a series of consecutive coded video sequences called coded video sequences (CVS) are used. This refers to the syntax structure of syntax elements applied to an image picture. PPS generally refers to: Determined by the syntax elements found in each slice segment header, Syntax elements applied to one or more individual pictures within a CVS It refers to a structure. Therefore, SPS generally represents a higher level of syntax structure than PPS. It was determined that, compared to the syntax elements included in PPS, the syntax elements included in SPS The meaning is that the tax elements generally change infrequently and apply to the majority of the video data. be.
[0069] Figure 5 shows a process 500 for obtaining chroma samples 502 from luminance samples 504 of a bitstream video frame encoding block 506 in several embodiments. The encoding block 506 of the video frame contains multiple pixels, each pixel consisting of multiple color elements (e.g., blue, green, and red). In video encoding and decoding, the brightness and color information of the multiple pixels is represented by multiple luminance samples 504 and multiple chroma samples 502, respectively. Each pixel of the multiple pixels uniquely corresponds to a single corresponding luminance sample 504. Each chroma sample 502 corresponds to a set of corresponding luminance samples 504 according to a subsampling scheme. Each luminance sample has a luminance component Y', and each chroma sample 502 It has a blue contrast saturation component Cb and a red contrast saturation component Cr. The subsampling scheme (Y':Cb:Cr) of the luminance and saturation components has a ratio of three parts, for example, 4:1:1, 4:2:0, 4:2:2, 4:4:4, and 4:4:0. In Figure 5, the luminance sample 504 and saturation sample 502 of the video frame conform to a subsampling scheme having a ratio of three parts equal to 4:1:1.
[0070] In some embodiments, the encoding block 506 of the video frame is 2M in width 2M × 2N pixels corresponding to luminance samples and 2N luminance samples across height Includes. M and N are optionally equal to or different from each other. Luminance components and According to an exemplary subsampling scheme for the saturation component (Y':Cb:Cr=4:1:1), For example, the luminance sample 504 of the video frame is encoded at a resolution of 2M x 2N, while, Saturation sample 502 is encoded at a lower resolution of M×N. In reality, saturation sample 502 Pull 502 supports 2M x 2N (e.g., 4:4:4 full sampling) and 2M x N (e.g., 4 :4:0 subsampling), M×2N (e.g., 4:2:2 subsampling), 1 / 2 Encoded with different saturation resolutions such as M×2N (e.g., 4:1:1 subsampling). It's okay.
[0071] TIFF0007961334000001.tif91159
[0072] TIFF0007961334000002.tif79160
[0073] In some embodiments, the luminance samples 504 and saturation samples 502 of the video frame consist of, on average, four luminance samples 504 each, and one saturation sample having a blue contrast saturation component Cb and a red contrast saturation component Cr. 502This conforms to the corresponding subsampling scheme. In other words, the first luminance resolution of a luminance sample 504 is four times the second chroma resolution of a chroma sample 502. On average, four luminance samples 504 are combined into one downsampled luminance sample 508 in a set of luminance samples 508 having a third luminance resolution equal to the second chroma resolution. In some embodiments, for each luminance sample 508, more than four adjacent luminance samples 504 are applied to obtain a corresponding chroma sample 502. For a subset of luminance samples 504, each luminance sample 504 is applied multiple times to generate one or more downsampled luminance samples 508 and / or one or more chroma samples 502. Details regarding downsampling multiple luminance samples 504 into luminance samples 508 and / or chroma samples 502 based on a predefined interpolation scheme 510 are described below with reference to Figures 6A-6D.
[0074] In some embodiments, suitable for converting the luminance sample 508 to the saturation sample 502. The linear mapping model 512 used is obtained using the Max-Min method. Specifically In terms of the most downsampled luminance sample, the downsampled brightness sample is Identified from a set of degree samples, the smallest downsampled luminance sample is... Identified from a set of unsampled luminance samples. The most saturated sample is the most Supports large downsampled luminance samples, and smallest saturation samples are smallest downsampled Corresponds to sampled luminance samples. The maximum and minimum saturation samples are the maximum And applied with the smallest downsampled luminance sample, linear mapping Determine the model 512, that is, determine the two coefficients α and β in equation (1). After the mapping model 512 is obtained, the video codec uses the linear mapping model 512. This is applied to the luminance sample 508, which is downsampled from the luminance sample 504. Generate the corresponding saturation sample 502 within encoding block 506.
[0075] The encoded blocks of the video frames are reconstructed according to an ordered sequence. In some situations, encoding block 506 is the first row or first column of the video frame. When encoding block 506 is being processed, the selected pixel glue The plot is reconstructed. For example, the selected group of pixels is encoded in block 506. Includes pixels located directly above and to the left of the pixel. Saturation sample 516, brightness Selected luminance samples 518 and downsampled luminance samples 514 The loop is reconstructed for the selected group of pixels, for example, in a Max-Min manner. This can be used to obtain a linear mapping model 512 based on the law. Saturation sample 516 The luminance sample 518 and the downsampled luminance sample 514 are encoded It is located outside the boundary of block 506 and directly adjacent to that boundary. Specifically, several actual In this example, the video codec uses encoded downsampled luminance samples. Loop (for example, the Dow corresponding to the adjacent luminance sample above and the adjacent luminance sample to the left) Search for the selected group of 514 sampling luminance samples and find the largest downsampling Sampled luminance sample 514A-1 and minimum downsampled luminance Identify sample 514B-1. Next, the video codec performs the maximum and minimum downsampling. Corresponding to the sampled luminance samples 514A-1 and 514B-1, (for example, Selection of 516 saturation samples, including the adjacent saturation sample above and the adjacent saturation sample to the left. (In the group that was previously encoded) Saturation samples 516A-1 and 516B -1 is identified. Thus, the linear mapping model 512 identifies these associated Downsampled luminance samples (514A-1 and 514B-1) and saturation This can be obtained based on the samples (516A-1 and 516B-1).
[0076] Alternatively, in some embodiments, the video codec uses a group of selected luminance samples. Downsampling is performed on the sample to obtain the maximum and minimum brightness samples 518A and Without identifying 518B, groups of luminance samples (e.g., adjacent to the top and left) Search for a selected group of 518 luminance samples, including the luminance sample, and find the luminance sample. (i) Brightness sample 518A having the highest brightness value within the group of pulls and (ii) the highest Identify luminance sample 518B, which has a low luminance value. Next, the video codec selects the maximum... and downsampled in the region associated with the lowest brightness samples 518A and 518B Perform the operation (for example, in a region with 6 samples, 6 taps downsampling) Weighted average schemes known in this field, including Pring, are used. The pulled luminance sample 514A-2 is generated as the maximum luminance sample (the luminance Sample 514A-2 certainly has the highest downsampled brightness of Sample 514A. (It can be -1 or not), downsampled luminance sample 51 Generate 4B-2 as the smallest luminance sample (this luminance sample 514B-2 is, Even the smallest downsampled luminance sample 514B-1 would suffice, or otherwise (That's fine). Next, the video codec uses a downsampled luminance sample of 514A. - Corresponding to 2 and 514B-2 (for example, color including adjacent saturation samples above and to the left) (In the group of degree sample 516) saturation samples 516A-2 and 516B-2 Identify. Thus, the linear mapping model 512 identifies the downsampled luminance. Samples (514A-2 and 514B-2) and saturation samples (516A-2 and This can be obtained based on 516B-2).
[0077] Alternatively, in some embodiments, the video codec searches for a group of saturation samples (e.g., a group of saturation samples 516 including adjacent saturation samples above and to the left) to identify the maximum and minimum saturation samples 516A-3 and 516B-3 (e.g., saturation samples having the maximum and minimum saturation values, respectively). The video codec then identifies the maximum and minimum saturation samples 51 6 A-3 and 51 6 The downsampled luminance samples 514A-3 and 514B-3 are identified, corresponding to B-3 (for example, in a group of downsampled luminance samples 514 that include the adjacent luminance samples above and to the left). Thus, the linear mapping model 512 is obtained based on the downsampled luminance samples (514A-3 and 514B-3) and chroma samples (516A-3 and 516B-3).
[0078] Alternatively, in some embodiments, the video codec searches a group of downsampled luminance samples (e.g., a selected group of downsampled luminance samples 514) to identify a predefined number (e.g., two) of downsampled luminance samples (e.g., 514A-4 and 514A-5) having the highest luminance values, and a predefined number (e.g., two) of downsampled luminance samples (e.g., 514B-4 and 514B-5) having the lowest luminance values. The video codec then identifies chroma samples (e.g., 516A-4, 516A-5, 516B-4, and 516B-5) within a selected group of chroma samples 516, where each chroma sample corresponds to a corresponding group within the group of the highest downsampled luminance samples 514A-4 and 514A-5 and the group of the lowest downsampled luminance samples 514B-4 and 514B-5, respectively. Next, the video codec performs a weighted average of the values (e.g., saturation or luminance values) in each identified group of saturation and luminance samples to obtain the maximum average saturation value (e.g., for saturation samples 516A-4 and 516A-5), the minimum average saturation value (e.g., for saturation samples 516B-4 and 516B-5), and (e.g., for luminance samples 514A-4 and 514A- 5 This generates the maximum average downsampled luminance value and the minimum average downsampled luminance value (for example, luminance samples 514B-4 and 514B-5). Thus, the linear mapping model 512 can be obtained based on downsampled luminance samples (514A-4, 514A-5, 514B-4 and 514B-5) and chroma samples (516A-4, 516A-5, 516B-4 and 516B-5).
[0079] Furthermore, in some embodiments, the linear mapping model 512 is (for example, downs Multiple downsamples (within a selected group of 514 sampled luminance samples) Selected luminance samples and (for example, 516 saturation samples) within a selected group This is obtained by creating a linear fitting curve for multiple corresponding saturation samples. Such curve fitting involves deviation errors that selectively satisfy the tolerance. The downsampled luminance samples correspond to a predefined number of saturation samples. A predefined number (e.g., greater than 10) of downsampled luminance samples Includes. In some embodiments, downsampled luminance samples are linear mats. To obtain the Ping model 512, adjacent downsampled luminance samples 514 It will be randomly selected from the group.
[0080] Figures 6A-6D show four exemplary coding blocks 506A- It is 506D, and each encoded block is converted into multiple luminance samples 502. Includes sample 504. Each cross ("×") represents the position of luminance sample 504, and each circle ("○") indicates either saturation sample 502 or downsampled luminance sample 508. This represents the position. Each circle enclosed in a cross ("a circle with an X inside") represents a saturation sample of 502. The position where luminance sample 504 and the downsampled luminance sample 508 overlap. This represents each coding block 506 marked by a block boundary 602. Block 506 is a corresponding subsampling scheme for the luminance and saturation components (Y': It conforms to Cb:Cr and employs the appropriate luminance interpolation scheme 510, and the appropriate encoding blocks The luminance sample 504 of 506 is downsampled to the corresponding luminance sample 508. Downsampling is performed. In some embodiments of this application, each coding block 506 In particular, the downsampled luminance sample 508 directly reaches the block boundary 602. In the case of adjacent samples, all downsampled luminance samples 508 are luminance interpolated skims. Using M510, adjacent luminance sang located in the same corresponding coding block 506 Obtained from pull 504. Each downsampled luminance sample 508 (each Luminance sample 508 always overlaps with the corresponding saturation sample 502, and saturation sample 502 Therefore, the luminance samples were downsampled based on the linear mapping model 512. It can be obtained from 508.
[0081] In some embodiments, the inter-component filter model 520 is a luminance interpolation scheme 510 and a linear filter model. This is in combination with the shape mapping model 512. Brightness for each coding block 506. The interpolation scheme 510 has a linear mapping model 512 and two filter coefficients f(i). Given linear coefficients α and β, the saturation sample 502 of coding block 506 is: In particular, in the case where the downsampled luminance sample 508 is directly adjacent to the block boundary 602 In conjunction with this, the inter-component filter model 520 is used to position the same corresponding coding block 506 It is obtained directly from the attached luminance sample 504.
[0082] In some embodiments, the encoding block 506 is the first encoding block of the video frame. Therefore, no other encoding block 506 has been reconstructed before the encoding block 506 in question. Such an encoded block 506 is selectively positioned in the upper left corner of the video frame. The linear mapping model 512 operates independently of the coding blocks within the video frame (e.g., For example, it is determined (based on the previous video frame). Alternatively, in some embodiments, the symbol The encoding block 506 is not the first encoding block of the video frame, but the encoding block One or more other coded blocks 506 were reconstructed before block 506. For example, The encoding block 506 is positioned in the center of the video frame, and the encoding block 506 is directly The coding block above or to the left of the tangent has already been processed, and the linear mapping model 512 is determined. or to reconstruct the luminance sample or saturation sample within the encoding block 506 It can be used for the following. In some situations, encoding block 506 is used for video. Located on the upper boundary side of the frame, at least to the left of encoding block 506 One coding block has already been processed, and the linear mapping model 512 is determined. This is used to reconstruct the luminance or saturation samples within the encoding block 506. It can be used. In some situations, encoding block 506 is used for video frames Located on the left boundary side, at least one code directly above coding block 506 The transformation block has already been processed and the linear mapping model 512 is determined or the code This is used to reconstruct the luminance or saturation sample within the 506 block. This is possible. Regardless of the position of coding block 506, to the right of coding block 506 or The encoding block below has not yet been processed, and the linear mod for encoding block 506 Determining the ping model 512 or the luminance sample within the coding block 506 Alternatively, it cannot be used to reconstruct saturation samples.
[0083] In some embodiments, the same predefined luminance interpolation scheme 510 or intercomponent interpolation scheme is used. The inter-component filter model 520 is applied to generate downsampled luma samples 508 or chroma samples 502 across the entire coding block 506, respectively Alternatively, in some embodiments, the predefined luma interpolation scheme 510 varies depending on the positions of downsampled luma samples 508 or the positions of boundary pixels associated with the downsampled luma samples 508. Similarly, in some embodiments, the inter-component filter model 520 varies depending on the positions of chroma samples 502 or the positions of boundary pixels associated with the chroma samples 502. For example, each predefined luma interpolation scheme 510 and each inter-component filter model 520 correspond to one of a cross, block, or T-shaped filter arrangement.
[0084] Referring to FIG. 6A, a coding block 506A includes a plurality of luma samples 504 obtained from and reconstructed from a bitstream. A plurality of corresponding chroma samples 502 are obtained from the plurality of luma samples 504. In the coding block 506A, the subsampling scheme (Y′:Cb:Cr) for the luma component 504 and the chroma component 502 has a 4:2:0 ratio of the three parts. Each chroma sample 502 is combined from six neighboring luma samples 504 according to an inter-component filter model 520. The six neighboring luma samples 504 are positioned at the upper left corner, directly above, upper right corner, lower left corner, directly below, and lower right corner of the corresponding chroma sample 502. In other words, the six neighboring luma samples 504 of each chroma sample 502 are processed according to a predefined luma interpolation scheme 510 to correspond to It is converted to a downsampled luminance sample 508 that overlaps with the saturation sample 502. Next, it is converted to a corresponding saturation sample 502 according to the linear mapping model 512. In the example, the first saturation sample 502A and its six corresponding adjacent luminance samples 5 04A-1 to 504A-6 are completely enclosed within block boundary 602, and the first color The degree sample 502A is either an inter-component filter model 520 or a luminance interpolation scheme 510. Based on the combination of linear mapping model 512, adjacent luminance samples 504A-1 It can be obtained from 504A-6.
[0085] Conversely, the second saturation sample 502B is at the left block boundary 6 of encoded block 506A. Directly adjacent to 02A, six adjacent luminance samples are processed according to the intercomponent filter model 520. Corresponds to 504B-1 through 504B-6. In some situations, coded block 506 The left block boundary 602A overlaps with the left boundary of the video frame, and any other In the encoding block, two adjacent luminance samples 504B-1 and 504B-6 Unavailable. Brightness sample 50 is outside of encoding block 506 and is unavailable. 4B-1 and 504B-6 are luminance samples 504B-1 and 504B-6, respectively. It can be directly replicated from adjacent luminance samples 504B-2 and 504B-5. For example, luminance samples 504B-1 and 504B-6 are compared to saturation sample 502B. Regarding brightness samples 504B-1 and 504B-6, 504B-4 is symmetrical. It is copied from 504B-3. Alternatively, in some situations, encoding block 50 The left block boundary 602A of 6 does not overlap with the left boundary of the video frame. Two adjacent Brightness samples 504B-1 and 504B-6 are used within the coding block 506 itself. It is not possible, but it can be done by other adjacent coding blocks that were reconstructed before coding block 506. It may be provided as follows: Brightness sample 504B-1 located outside encoding block 506 and 504B-6 is a luminance sample from any other coding block 504B-1 and 50 Without relying on loading 4B-6, the luminance sample 50 in encoding block 506 4B-2 to 504B-5 may still be replicated. By these means, The second saturation sample 502B and / or the second luminance sample 508B are adjacent to the luminance sample Further obtained from samples 504B-1 to 504B-6, and the adjacent luminance sample 504 Among the two luminance samples B-1 to 504B-6, 504B-1 and 504B-6 are, Two separate luminance samples are included in encoding block 506A (e.g., 504B-2). They are selectively assigned from (504B-5).
[0086] In other words, multiple luminance samples for multiple pixels within a video frame. You can obtainWhen a bitstream is acquired, multiple pixels belong to encoding block 506A, including boundary pixels located within encoding block 506 and directly adjacent to boundary 602 of encoding block 506A. Boundary pixels (e.g., corresponding to luminance sample 504B-2) correspond to one or more unavailable adjacent pixels (e.g., corresponding to luminance sample 504B-1). Each of the one or more adjacent pixels lies outside encoding block 506A. In some embodiments, one or more adjacent pixels of a boundary pixel lie outside the video frame or image slice. In some embodiments, one or more adjacent pixels of a boundary pixel have not yet been encoded and are encoded after encoding block 506. In some embodiments, the inter-component filter model 520 is limited to encoding block 506, and any adjacent pixels outside encoding block 506 are considered unavailable. Luminance samples 504B-2 and 504B-5 corresponding to boundary pixels are assigned to luminance samples 504B-1 and 504B-6, respectively, corresponding to each of the one or more adjacent pixels. The boundary luminance sample 508B is determined according to a predefined luminance interpolation scheme 510, based on luminance samples 504B-1 to 504B-6 of at least the boundary pixel and one or more adjacent pixels, and is used to determine the boundary chroma sample 502B according to a linear mapping model 512. Alternatively, the boundary chroma sample 502B is determined from luminance samples 504B-1 to 504B-6 of the boundary pixel and one or more adjacent pixels according to an inter-component filter model 520.
[0087] Referring to Figure 6B, in encoding block 506B, the luminance component 504 and the saturation component The 502 subsampling scheme (Y':Cb:Cr) has a ratio of 4:2 for the three parts. It has 0. Each saturation sample 502 is an inter-component filter model having a cross filter shape. According to 520, it is combined from five adjacent luminance samples 504. one of the luma samples 504 overlaps with the chroma sample 502, and the remaining four adjacent luma samples 504 are positioned directly above, below, to the left of, and to the right of the corresponding chroma sample 502 In other words, the five adjacent luma samples 502 for each chroma sample 502 are converted into downsampled luma samples 508 that overlap with the corresponding chroma sample 502 according to a predefined luma interpolation scheme 510, and then converted to the corresponding chroma sample 502 according to a linear mapping model 512 In one example, a third chroma sample 502C and its corresponding five adjacent luma samples 504C-1 through 504C-5 are entirely enclosed within the block boundary 602, and the third chroma sample 502C may be derived from the adjacent luma samples 504C-1 through 504C-5 based on an inter-component filter model 520 or a combination of the luma interpolation scheme 510 and the linear mapping model 512
[0088] A fourth chroma sample 502D corresponds to five adjacent luma samples 504D-1 through 504D-5 according to the inter-component filter model 520, directly adjacent to the left block boundary 602A of the coding block 506B In some situations, the left block boundary 602A of the coding block 506B overlaps with the left boundary of the video frame, such that the adjacent luma sample 504D-5 is not available in this or any other coding block The luma sample 504D-5 may be replicated from the luma sample 504D-1 that is directly adjacent to the luma sample 504D-5, or from the luma sample 504D-3 that is symmetric to the luma sample 504D-5 with respect to the center luma sample 504D-1 In some situations, the coding block 5 The left block boundary 602A of 06 does not overlap with the left boundary of the video frame. Adjacent brightness Sample 504D-5 is not available within the coding block 506 itself, but the coding block It may be provided by other adjacent coded blocks reconstructed before block 506B. Brightness samples 504D-5 located outside coding block 506 can be any other coding block Without relying on loading luminance sample 504D-5 from the block, encoding block 5 Still multiple luminance samples from 504D-1 or 504D-3 located within 06 These may be used to produce the fourth saturation sample 502D and / or the The luminance sample 508D of 4 is obtained from adjacent luminance samples 504D-1 to 504D-5. And, among the adjacent luminance samples 504D-1 to 504D-5, luminance sample 504 D-5 corresponds to luminance sample 504D-1 or 504D-3 in coding block 506B. They are selectively assigned based on this.
[0089] The fifth saturation sample, 502E, is located at the left block boundary 602A of encoded block 506B. And directly adjacent to both of the upper block boundaries 602B, to the inter-component filter model 520 Therefore, it corresponds to five adjacent luminance samples 504E-1 to 504E-5. In this embodiment, encoding block 506B is the first encoding block in the video frame. , in that or any other coding block, two adjacent luminance samples 504E-2 And 504E-5 is unavailable. Brightness samples 504E-2 and 504E-5 are, It is duplicated from luminance sample 504E-1. In some situations, encoding block 506 B is not located in the upper left corner of the video frame, but rather in the adjacent encoded blocks to its left and above. Locking is available. Adjacent luminance samples 504E-2 and 504E-5 are encoded Others that are not available within lock 506 itself but were reconstructed before encoding block 506 It may be provided by an adjacent coding block. Alternatively, luminance sample 504E-2 And 504E-5 loads luminance samples from any other coding block. Without relying on the luminance sample 504E-1 located within coding block 506 It may still be reproduced. By these means, the fifth saturation sample 502E and And / or the fifth luminance sample 508E is adjacent to luminance samples 504E-1 to 504 Obtained from E-5, the luminance samples 504E-1 to 504E-5 are obtained from the adjacent luminance samples. Samples 504E-2 and 504E-5 are based on the block boundary 60 of coded block 506B. Selectively assigned based on other luminance samples 504E-1 positioned adjacent to 2. It can be done.
[0090] Referring to Figure 6C, in coding block 506C, the subsampling scheme (Y':Cb:Cr) of the luminance component 504 and the chroma component 502 has a ratio of 4:2:2 for the three parts. Each chroma sample 502 is combined from six adjacent luminance samples 504 according to an intercomponent filter model 520 having a 2×3 filter shape. One of the six adjacent luminance samples 504 overlaps with the chroma sample 502, and the remaining five adjacent luminance samples are to the left, right, lower left corner, directly below, and of the corresponding chroma sample 502. bottom right cornerThese six adjacent luminance samples 504 of each chroma sample 502 are converted to downsampled luminance samples 508 that overlap with the corresponding chroma sample 502 according to a predefined luminance interpolation scheme 510, and then converted to the corresponding chroma sample 502 according to a linear mapping model 512. In one example, the sixth chroma sample 502F and its six corresponding adjacent luminance samples 504F-1 to 504F-6 are completely enclosed within a block boundary 602, and the sixth chroma sample 502F is converted to its adjacent luminance samples 504F-1 to 504F- based on an inter-component filter model 520 or a combination of the luminance interpolation scheme 510 and the linear mapping model 512. 6 It can be obtained from.
[0091] The seventh saturation sample, 502G, is located at the left block boundary 602A of encoded block 506C. And directly adjacent to both of the lower block boundary 602C, to the inter-component filter model 520 Therefore, it corresponds to six adjacent luminance samples 504G-1 to 504G-6. In the embodiment, encoding block 506C is located in the lower left corner of the video frame, and to the left and The block boundaries 602A and 602C below are the left block boundary of the video frame and It overlaps with the lower block boundary. In some embodiments, encoded block 506C is video frame Because it is located on the left boundary side of the frame, luminance samples 504G-1 and 504 G-6 does not exist, and luminance samples 504G-4 and 504G-5 have not yet been encoded. No. In the lower left corner or left border of the video frame, there are four adjacent luminance samples of 504G- 1, 504G-4, 504G-5, and 504G-6 are the same or any other encoding Not available within the block. Each of these luminance samples is a luminance sample Reproduced from 504G-2 or 504G-3, for example, luminance sample 504G-4 is, Reproduced from luminance sample 504G-3, and from luminance samples 504G-1, 504G-5 and Sample 504G-6 is replicated from luminance sample 504G-2. In some situations, the code Block 506C is not located in the lower left corner of the video frame, but rather to its left and below. The adjacent coding blocks are available. Adjacent luminance samples 504G-1, 504G-4 504G-5 and 504G-6 are not available within the encoding block 506 itself. provided by other adjacent coding blocks that were reconstructed before coding block 506. Alternatively, luminance samples 504G-1, 504G-4, 504G-5 and 5 may be used. 04G-6 relies on loading luminance samples from any other coding block. There are no luminance samples 504G-2 and 504 located within encoding block 506. It may still be replicated from G-3. By these means, the seventh saturation sample 5 02G and / or the seventh luminance sample 508G is adjacent to luminance sample 504G-1 Obtained from 504G-6, and the adjacent luminance samples 504G-1 to 504G-6 Among the luminance samples 504G-1, 504G-4, 504G-5, and 504G-6 are symbols The other two luminances are positioned adjacent to the block boundary 602 of the numbered block 506C. Assignments are made selectively based on samples 504G-2 and 504G-3.
[0092] Referring to Figure 6D, in encoding block 506D, the luminance component 504 and the saturation component The 502 subsampling scheme (Y':Cb:Cr) uses a ratio of 4:4 for the three parts. It has 4. Each saturation sample 502 has an inter-component filter module with a 2x3 filter shape. According to Dell 520, it is combined from 504 adjacent luminance samples. One of the luminance samples 504 overlaps with the saturation sample 502, and the remaining five adjacent samples... The luminance samples are located in the left, right, lower left corner, directly below, and lower right corner of the corresponding saturation sample 502. These six adjacent luminance samples 504 of each saturation sample 502 are According to the predefined luminance interpolation scheme 510, the corresponding saturation sample 502 overlaps with the luminance sample 502. The unsampled luminance samples 508 are converted, and then a linear mapping model 51 According to step 2, it is converted to the corresponding saturation sample 502.
[0093] The eighth saturation sample, 502H, is at block boundary 602C below encoded block 506D. And directly adjacent to both of the right block boundary 602D, to the inter-component filter model 520. Therefore, it corresponds to six adjacent luminance samples 504H-1 to 504H-6. In the embodiment, encoding block 506D is located in the lower right corner of the video frame, and to the right and The block boundaries 602D and 602C below are the right block boundary of the video frame and It overlaps with the block boundary below. In that or any other coded block, four adjacent Brightness samples 504H-3 through 504H-6 are unavailable. Or, in some situations... Therefore, encoding block 506D is not located in the lower left corner of the video frame, but to the right. And because the adjacent coding blocks below have not yet been reconstructed, these coding blocks The luminance samples 504H-3 to 504H-6 are not yet available. The sample is replicated from luminance sample 504H-1 or 504H-2, for example, luminance sample Sample 504H-6 was duplicated from luminance sample 504H-1, and luminance sample 504H -3 to 504H-5 are replicated from luminance sample 504H-2. By these means Therefore, the eighth saturation sample 502H and / or the eighth luminance sample 508H are adjacent Obtained from luminance samples 504H-1 to 504H-6, and the adjacent luminance sample 50 Within 4H-1 to 504H-6, luminance samples 504H-3 to 504H-6 are encoded. Two other luminance suns positioned adjacent to block boundary 602 of block 506D They are selectively assigned based on pulls 504H-1 and 504H-2.
[0094] Figure 7 is a flowchart of a video data decoding method 700 performed on an electronic device according to several embodiments. Multiple luminance samples 504 for multiple pixels in a video frame. but Bitstream from Acquired (702). Multiple pixels are located within coding block 506 and include boundary pixels directly adjacent to the boundary 602 of coding block 506. The electronic device determines that one or more adjacent pixels of a boundary pixel are unavailable (704). Each of the one or more adjacent pixels is outside coding block 506. A luminance sample corresponding to the boundary pixel (e.g., 504G- in Figure 6C) is acquired. 2) is assigned to a luminance sample corresponding to each pixel in one or more adjacent pixels (e.g., 504G-6 in Figure 6C) (706). The electronic device determines a boundary chroma sample (e.g., 502G in Figure 6C) based on the intercomponent filter model 120, using luminance samples of at least the boundary pixel and one or more adjacent pixels (e.g., 502G-1 to 502G-6). Specifically, the electronic device determines a boundary luminance sample (e.g., 508G in Figure 6C) based on luminance samples of at least the boundary pixel and one or more adjacent pixels (e.g., 502G-1 to 502G-6) according to a predefined luminance interpolation scheme 510 (710). The boundary chroma sample (e.g., 502G in Figure 6C) is determined from the boundary luminance sample according to the linear mapping model 512 (712).
[0095] In some embodiments, a predefined luminance interpolation scheme 510 is used at least at the boundary pin. Based on the position of the xel, one or more adjacent pixels will have a predefined brightness. Interpolation scheme 510 is used to determine adjacent boundary pixels. In some situations, predefined The luminance interpolation scheme 510 also uses luminance samples and saturation samples of multiple pixels. This is determined based on a subsampling scheme that conforms to the Y'CbCr ratio of the three parts. In some situations, the predefined luminance interpolation scheme 510 can also be bitst Syntax elements obtained from Ream (for example, "sps_chroma_colloca Determined based on "ted_vertical_flag"). Optionally, pre The defined luminance interpolation scheme 510 is in a cross, block, or T-shaped filter arrangement. It corresponds to one.
[0096] In some embodiments, one or more adjacent pixels of a boundary pixel are in the video frame. It is located outside the image or slice. In some embodiments, it is one of the boundary pixels or Multiple adjacent pixels have not yet been encoded and will be encoded following the encoding block.
[0097] In some embodiments, multiple pixels are enclosed in a first fully encoded block. Includes a set of pixels. Internal luminance samples (e.g., 508A, 50 in Figures 6A-6C) 8C and 508F) are processed according to a predefined luminance interpolation scheme 510, the first P Determined from a set of luminance samples corresponding to a set of xels. The first set of pixels Corresponding internal saturation samples (for example, 502A, 502C and 50 in Figures 6A-6C) 2F) is determined based on internal luminance samples according to the linear mapping model 512. ru.
[0098] In some embodiments, for example in Figure 6A, multiple pixels are encoded blocks. Located inside, corresponding to internal luminance samples (e.g., 504B-3, 504B-4) Further includes sub-pixels. Boundary luminance samples (e.g., 508B) are predefined brightness Internal luminance samples of internal pixels (e.g., 504B-3) according to the degree interpolation scheme 510. , 504B-4) and luminance samples of boundary pixels and one or more adjacent pixels ( For example, it is determined based on both 504B-1 and 504B-2).
[0099] In some embodiments, for example in Figure 6A, the boundary pixels are the first boundary pixels This is a (for example, corresponding to luminance sample 504B-2), and one or more adjacent pixels. The cell is paired with one or more first adjacent pixels (for example, luminance sample 504B-1). (Includes corresponding) Multiple pixels are inside coding block 506, coding block A second boundary pixel directly adjacent to the corresponding block boundary 602 of 506 (for example, luminance 506) Includes (corresponding to Sample 504B-5). The electronic device directly connects to the second boundary pixel. One or more adjacent second neighboring pixels (for example, corresponding to luminance samples 504B-6) Creates (ru). Each pixel of one or more second adjacent pixels is encoded in block 50 Located outside of 6. Brightness sample corresponding to the second boundary pixel (e.g., 504B-5) This is a luminance sample corresponding to each pixel of one or more second adjacent pixels (for example) Assigned to 504B-6), boundary luminance sample 508B is predefined luminance complement According to the inter-scheme 510, at least the first and second boundary pixels (e.g., luminance s) (corresponding to Sample 504B-2 and 504B-5) and the first and second adjacent pixels Both luminance samples (corresponding to luminance samples 504B-1 and 504B-6, for example) It is determined based on the pull.
[0100] In some embodiments, for example in Figure 6B, one or more adjacent pixels are For boundary pixels (for example, corresponding to luminance sample 504D-1), boundary 602A It is located on the opposite side and is divided from the luminance sample corresponding to the boundary pixel (e.g., 504D-1). One adjacent pixel having the assigned corresponding luminance sample (e.g., 504D-5) For example, it only includes the one corresponding to luminance sample 504D-5.
[0101] In some embodiments, for example in Figure 6C, the boundary includes a first boundary 602A, and the boundary pixels (e.g., luminance sample 504G- 2The (corresponding to) is directly adjacent to the corner of the coding block formed between the first boundary 602A and the second boundary 602C which is orthogonal to the first boundary 602A. One or more adjacent pixels include a first adjacent pixel on the opposite side of the first boundary 602A from the boundary pixel (e.g., corresponding to luminance sample 504G-1), and at least one of (1) a second adjacent pixel on the opposite side of the second boundary from the boundary pixel (e.g., corresponding to luminance sample 504G-5) and (2) a third adjacent pixel facing the boundary pixel across the corner of coding block 506C (e.g., corresponding to luminance sample 504G-6).
[0102] In some embodiments, the luminance of multiple pixels is subsampled according to a subsampling scheme. Sample and saturation sample are three parts of Y'Cb having one of the following ratio values. Adhering to the Cr ratio: (1) 4:1:1, where four horizontal pixels correspond to four luminances (2)4: 2:0, here, each 2x2 pixel block has 4 pixels, which are 4 luminance samples. , corresponding to the blue contrast sample Cb and the red contrast sample Cr; (3) 4:2:2, Here, each of the four pixels has four luminance samples, two blue contrast saturation samples Cb, and The two red difference saturation samples correspond to Cr; (4) 4:4:4, where 4 pixels each The cell contains four luminance samples, four blue contrast samples (Cb), and four red contrast samples. This corresponds to Cr.
[0103] In some embodiments, according to a predefined luminance interpolation scheme, for example, Figure 6A, 6 In C and 6D, the six adjacent luminance samples 504 in the 2x3 subarray are alternative The brightness is downsampled to 508 samples, and the brightness of each left and right column in the 2x3 array is... A degree sample is used at least twice in the same row to generate an alternative luminance sample. In some embodiments, a predefined luminance interpolation scheme is used, for example, as shown in Figure 6B. In this case, five adjacent luminance samples 504 are downsampled to alternative luminance samples 508. They are ringed and arranged in a cross-shaped subarray with the central pixel at the center.
[0104] In some embodiments, a second plurality of luminance samples 518 and a second plurality of saturation samples 516 are provided for a second plurality of pixels in the video frame. can obtain A bitstream is acquired. Alternative multiple luminance samples 514 are determined according to a predefined luminance interpolation scheme 510 and have the same resolution as multiple saturation samples 516. The first parameter α and the second parameter β for the linear mapping model 512 are determined using the alternative multiple luminance samples 514 and the second multiple saturation samples 516. Furthermore, in some embodiments, the boundary saturation sample Y is determined from the boundary luminance sample X according to the linear mapping model 512 described in equation (1) as follows. Referring to Figure 5, in some embodiments, the two largest luminance samples 514A-4 and 514A-5 are determined from among the alternative multiple luminance samples 514, and the two smallest luminance samples 514B-4 and 514B-5 are determined from among the alternative multiple luminance samples 514. The two largest luminance samples 514A-4 and 514A-5 are averaged to a first luminance value, and the two smallest luminance samples 514B-4 and 514B-5 are averaged to a second luminance value. Two first saturation samples 516A-4 and 516A-5 are determined within a second set of saturation samples 514 associated with two maximum luminance samples 514A-4 and 514A-5. Two second saturation samples 516B-4 and 516B-5 are determined within a second set of saturation samples associated with two minimum luminance samples 514B-4 and 514B-5. Two first saturation sample 516A-4 and 516A-5 valueIt is averaged to a first saturation value corresponding to the first luminance value, and two second saturation values sample 516B-4 and 516B-5 value This is averaged to a second saturation value corresponding to a second luminance value. A linear mapping model 512 is obtained between a saturation sample 502 and a luminance sample 508 based on the first and second luminance values and the first and second saturation values.
[0105] In one or more examples, the described function is hardware, software, firmware It may be performed in A or any combination thereof. Executed by software. If so, the function is stored on a computer-readable medium as one or more commands or codes. , or transmitted via computer-readable media and implemented by a hardware-based processing unit. It may be done. Computer-readable media corresponds to tangible media such as data storage media. A computer-readable storage medium, or a computer program that can be accessed from one location, for example, via a communication network. Communication media including any medium that can be easily transmitted to other locations based on the rotocor It may include the body. By this method, computer-readable media are generally (1) non-temporary. (2) a tangible computer-readable storage medium, or a communication medium such as a signal or carrier wave. It may also support the following: The data storage medium is one or more computers, or one or more The processor accesses and retrieves instructions, codes, and / or data structures. Any available medium capable of carrying out the embodiments described in the application may be used. Computer program products may include computer-readable media.
[0106] The terms used in the description of embodiments herein are for the purpose of describing specific embodiments. It is merely a thing and is not intended to limit the scope of the patent claims. Unless otherwise explicitly stated, the term is used in the description of embodiments and in the appended claims. The singular forms "1 type," "1," and "the" are intended to include plural forms as well. For further understanding, the terms "and / or" as used herein refer to one or more related terms. This refers to any and all possible combinations of the listed items, and one or more related items. This includes any and all possible combinations of the listed items. To further understand, The terms “equipped with” and / or “including” are used herein to describe the features, elements and / or It specifies the presence of a component, but one or more other features, elements, components and / or so The existence or addition of groups consisting of these is not excluded.
[0107] To further clarify, terms such as "First," "Second," etc., are used in this specification to explain various elements. They may be used to clarify, but these elements are limited by these terms. There is no such thing. These terms are used only to distinguish between one type of element and another type of element. For example, without departing from the scope of the embodiment, the first electrode may be referred to as the second electrode, and Similarly, the second electrode may also be called the first electrode. Both the first and second electrodes are electrodes. Yes, but they are not the same electrodes.
[0108] The description in this application is for illustrative and descriptive purposes only and does not exhaust or limit the scope of the invention in the form disclosed. It is not intended to be limiting. Following the instructions in the above description and related drawings, many Numerous modifications, variations, and alternative embodiments will be obvious to those skilled in the art. Selection of Examples The description and other details best interpret the principles and practical applications of the present invention, and will be useful to those skilled in the art in understanding the various aspects of the present invention. To understand the embodiments and to make the most use of the various embodiments having the basic principles and various modifications For example, it is intended to be applied to a specific intended use. Therefore, it is understood that Thus, the claims are not limited to specific examples of the disclosed embodiments, but also include modifications and other examples. The embodiments are intended to be included within the scope of the attached claims.
Claims
1. A method for decoding video data, Multiple luminance samples are obtained from an encoded block, and the multiple luminance samples include luminance samples corresponding to boundary luminance positions that are directly adjacent to the boundary of the encoded block or directly adjacent to the extension of the boundary. If it is determined that one or more adjacent luminance samples of the encoding block are unavailable, the luminance sample corresponding to the boundary luminance position is assigned to the one or more adjacent luminance samples, and each of the one or more adjacent luminance samples corresponding to the luminance position is located outside the encoding block and directly adjacent to the boundary luminance position. Determining a boundary luminance sample based on at least one or more adjacent luminance samples and the luminance sample corresponding to the boundary luminance position, according to a predefined luminance interpolation scheme, Determining boundary saturation samples from boundary luminance samples according to a linear mapping model, Includes, The said boundary includes the first boundary, The boundary brightness position is directly adjacent to the corner of the coding block formed between the first boundary and the second boundary perpendicular to the first boundary, A method for decoding video data, wherein a luminance sample at a luminance position opposite to the boundary luminance position across the corner of the encoding block is obtained from a luminance sample corresponding to the boundary luminance position.
2. The method according to claim 1, wherein the adjacent luminance position includes an adjacent luminance position above, and the adjacent luminance position above includes a position directly above the coding block.
3. The method according to claim 1, wherein the adjacent luminance position includes the adjacent luminance position to the left, and the adjacent luminance position to the left includes the position directly to the left of the coding block.
4. The method according to claim 2, wherein the boundary luminance position is located inside the coding block and adjacent to the upper boundary of the coding block, or the boundary luminance position is located inside the left adjacent coding block and adjacent to the left extension of the upper boundary.
5. The method according to claim 3, wherein the boundary luminance position is located inside the coding block and adjacent to the left boundary of the coding block, or the boundary luminance position is located inside the adjacent coding block above and adjacent to the upper extension of the left boundary.
6. The method according to claim 1, wherein the predefined luminance interpolation scheme is determined based on at least one of a subsampling scheme corresponding to the plurality of luminance samples and syntax elements obtained from a bitstream.
7. The method according to claim 1, wherein the one or more adjacent luminance samples are located outside the image slice that overlaps the current coding block.
8. The plurality of luminance samples include a first set of luminance samples, and the method is Determining an internal luminance sample from the first set of luminance samples according to the predefined luminance interpolation scheme, In accordance with the linear mapping model, an internal saturation sample corresponding to the first set of luminance samples is determined based on the internal luminance sample, The method according to claim 1, further comprising:
9. The plurality of luminance samples further include internal luminance samples, The boundary luminance sample is determined according to the predefined luminance interpolation scheme, based on both the internal luminance sample and the one or more adjacent luminance samples and the luminance sample corresponding to the boundary luminance position. The method according to claim 1.
10. The method according to claim 1, wherein the one or more adjacent luminance samples include only one adjacent luminance sample that is located on the opposite side of the boundary with respect to the boundary luminance position and has a luminance sample assigned from the luminance sample corresponding to the boundary luminance position.
11. The one or more adjacent luminance samples further include at least one second adjacent luminance sample located on the opposite side of the first boundary with respect to the boundary luminance position, and a third adjacent luminance sample located on the opposite side of the second boundary with respect to the boundary luminance position. The method according to claim 1.
12. According to the subsampling scheme, the luminance and chrominance samples of the encoded block conform to the Y'CbCr ratio of three parts having one of the following ratio values: (1) 4:2:0, where four luminance samples in each of the 2x2 luminance sample blocks correspond to the blue contrast sample Cb and the red contrast sample Cr; (2) 4:2:2, where four luminance samples correspond to two blue contrast samples Cb and two red contrast samples Cr; (3) 4:4:4, where four luminance samples correspond to four blue contrast samples Cb and four red contrast samples Cr. The method according to claim 6.
13. The method according to claim 1, wherein six luminance samples in a 2x3 subarray are downsampled to alternative luminance samples according to the predefined luminance interpolation scheme, and at least two luminance samples from each left and right column in the 2x3 subarray are used to generate the alternative luminance samples.
14. The method according to claim 1, wherein five luminance samples are downsampled to alternative luminance samples according to the predefined luminance interpolation scheme and arranged in a cross-shaped subarray centered on the central pixel.
15. The plurality of luminance samples includes a first plurality of luminance samples, and the method is Obtaining a second set of multiple luminance samples and a second set of multiple saturation samples from the bitstream, Determining multiple alternative luminance samples having the same resolution as multiple saturation samples according to the predefined luminance interpolation scheme, By using the aforementioned alternative luminance samples and the second set of chrominance samples, a first parameter α and a second parameter β for the linear mapping model are obtained. The method according to claim 1, further comprising:
16. The method according to claim 1, wherein the boundary saturation sample Y is determined from the boundary luminance sample X according to the linear mapping model described using the following formula. Y = α*X + β Here, α and β are parameters.
17. A method for encoding video data, The current video frame is divided into one or more encoded blocks, Multiple luminance samples are obtained from an encoded block, and the multiple luminance samples include luminance samples corresponding to boundary luminance positions that are directly adjacent to the boundary of the encoded block or directly adjacent to the extension of the boundary. If it is determined that one or more adjacent luminance samples of the encoding block are unavailable, the luminance sample corresponding to the boundary luminance position is assigned to the one or more adjacent luminance samples, and each of the one or more adjacent luminance samples corresponding to the luminance position is located outside the encoding block and directly adjacent to the boundary luminance position. Determining a boundary luminance sample based on at least one or more adjacent luminance samples and the luminance sample corresponding to the boundary luminance position, according to a predefined luminance interpolation scheme, Determining boundary saturation samples from boundary luminance samples according to a linear mapping model, A bitstream is formed based on the boundary luminance sample and the boundary saturation sample, Includes, The said boundary includes the first boundary, The boundary brightness position is directly adjacent to the corner of the coding block formed between the first boundary and the second boundary perpendicular to the first boundary, A method for encoding video data, wherein the luminance samples at luminance positions opposite the boundary luminance position across the corner of the encoding block are obtained from luminance samples corresponding to the boundary luminance position.
18. Non-temporary computer-readable media and A processor for storing a bitstream decoded by the method described in any one of claims 1 to 16, Electronic devices including
19. Non-temporary computer-readable media and A processor that generates a bitstream by performing the encoding method described in claim 17 and stores the bitstream, Electronic devices including
20. A method for storing a bitstream, comprising storing a bitstream decoded by the method described in any one of claims 1 to 16.
21. A bitstream is generated by performing the method according to claim 17, To store the aforementioned bitstream, A method for storing a bitstream that includes [this].
Citation Information
Patent Citations
Luma-based chroma intra-prediction for video coding
US20170359597A1
Linear model chroma intra prediction for video coding
US20180077426A1
Linear model prediction mode with sample accessing for video coding
US20180176594A1
Downsampling process for linear model prediction mode
WO2016154008A1
Simplifications of cross-component linear model
WO2020076835A1
