Video picture component prediction method and device, and computer storage medium
By filtering pixel points and constructing a component linear model, the method addresses the high complexity of video component prediction in existing standards, enhancing video encoding/decoding efficiency.
Patent Information
- Application Number
- JP2024108422
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2018-10-12
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-26
- Estimated Expiration
- 2039-10-11
AI Technical Summary
The complexity of video component prediction in existing video coding standards, such as H.265/HEVC and the upcoming Versatile Video Coding (VVC), is high due to the use of linear models that require finding maximum and minimum values from a large number of adjacent reference blocks, leading to low efficiency in color difference prediction, which affects video encoding and decoding efficiency.
A method and apparatus that reduces the complexity of video component prediction by performing a filtering process on sample values of pixel points to obtain filtered reference sample values, determining a prediction-waiting image component reference value, and constructing a component linear model based on these values to improve prediction efficiency.
The method reduces the workload of filtering operations, decreases the complexity of building the component linear model, and enhances video encoding/decoding efficiency by improving prediction efficiency.
Smart Images

Figure 2024129129000001
Abstract
Description
[Technical field]
[0001] The embodiments of the present application relate to the technical field of video encoding and decoding, and in particular to a method and apparatus for predicting video image components, and a computer storage medium. [Background technology]
[0002] With the increasing demand for video display quality from people, new video applications such as high definition and ultra-high definition video have emerged. As the expansion of such high-resolution, high-quality video viewing applications progresses, the requirements for video compression technology are also increasing. H.265 / High Efficiency Video Coding (HEVC) is the current latest international video compression standard, which is about 50% improved over the previous generation video coding standard H.264 / Advanced Video Coding (AVC). However, it still cannot meet the rapid development needs of video applications, especially new video applications such as ultra-high definition video and virtual reality (VR).
[0003] A coding tool adopted in the next-generation video encoding standard, Versatile Video Coding (VVC), employs a linear model-based prediction method, in which the chrominance prediction value of the chrominance component can be obtained by the luma component reconstructed via a linear model.
[0004] However, when predicting video components using a linear model, after performing a downsampling process using pixel values of the luminance adjacent region, it is necessary to find the maximum and minimum values from the reference sample points obtained by downsampling to construct a linear model. Since the number of adjacent reference blocks is large, the complexity of constructing the model in the above manner is high, resulting in low efficiency of chrominance prediction, thereby affecting the efficiency of video encoding and decoding. Summary of the Invention
[0005] The embodiments of the present application provide a video image component prediction method and apparatus, and a computer storage medium, which can reduce the complexity of video component prediction and improve prediction efficiency, thereby improving video encoding and decoding efficiency.
[0006] The technical solutions of the embodiments of the present application can be realized as follows.
[0007] An embodiment of the present application provides a video content prediction method, the method comprising: Obtaining a set of reference values for a first image component of a current block; determining a plurality of first image component reference values from the set of first image component reference values; performing a first filtering process on sample values of pixel points corresponding to the plurality of first image component reference values to obtain a plurality of filtered first image reference sample values; determining a prediction-to-be-predicted image component reference value corresponding to the plurality of filtered first image reference sample values, the prediction-to-be-predicted image component being an image component different from the first image component; Determining parameters of a component linear model based on the plurality of filtered first image reference sample values and the prediction-to-be-predicted image component reference values, the component linear model representing a linear mapping relationship that maps the sample values of the first image component to the sample values of the prediction-to-be-predicted image component; performing a mapping operation on the reconstructed value of the first image component of the current block based on the component linear model to obtain a mapping value; determining a prediction value for the to-be-predicted image component of the current block based on the mapping value.
[0008] An embodiment of the present application provides a video content prediction device, the device comprising: an acquisition unit configured to acquire a set of reference values of a first image component of a current block; and a determination unit configured to determine a plurality of first image component reference values from the set of reference values of the first image component. a filtering unit configured to respectively perform a first filtering process on sample values of pixel points corresponding to the plurality of first image component reference values to obtain a plurality of filtered first image reference sample values; a prediction unit configured to determine a prediction value of the to-be-predicted image component of the current block based on the mapping value, The determination unit is further configured to determine prediction-awaiting image component reference values corresponding to the plurality of filtered first image reference sample values, the prediction-awaiting image component being an image component different from the first image component, and to determine parameters of a component linear model based on the plurality of filtered first image reference sample values and the prediction-awaiting image component reference values, the component linear model representing a linear mapping relationship that maps the sample values of the first image component to the sample values of the prediction-awaiting image component, The filtering unit is further configured to perform a mapping operation on the reconstructed value of the first image component of the current block based on the component linear model to obtain a mapping value.
[0009] An embodiment of the present application provides a video content prediction device, the device comprising: a memory configured to store executable video component prediction instructions; and a processor configured to implement a video content prediction method according to an embodiment of the present application when executing executable video content prediction instructions stored in the memory.
[0010] An embodiment of the present application provides a computer-readable storage medium including executable video component prediction instructions, which, when executed by a processor, are configured to implement a video component prediction method according to an embodiment of the present application.
[0011] In an embodiment of the present application, a video image component prediction method is provided, in which a video image component prediction device first performs the selection of a plurality of first image component reference values according to a reference value set of a first image component corresponding to a current block directly obtained, then performs a filtering process according to the pixel point positions of the selected plurality of first image component reference values to obtain a plurality of filtered first image reference sample values, then finds image component reference values to be predicted corresponding to the plurality of filtered first image reference sample values, obtains component linear model parameters, and builds a component linear model according to the parameters of the component linear model, and then uses the built component linear model to perform a prediction process of the image component to be predicted. In the component linear model construction process, first performs the selection of a plurality of first image component reference values, and then performs a filtering process according to the positions corresponding to the selected plurality of first image component reference values to construct a component linear model, thereby reducing the workload of the filtering process of the pixel points corresponding to the current block, i.e., reducing the filtering operation, thereby reducing the complexity of the construction of the component linear model, further reducing the complexity of video component prediction, improving prediction efficiency, and improving video encoding and decoding efficiency. [Brief description of the drawings]
[0012] [Figure 1] FIG. 2 is a schematic diagram illustrating the relationship between a current block and adjacent reference pixel points according to an embodiment of the present application; [Diagram 2] FIG. 1 is an architecture diagram of a video image component prediction system according to an embodiment of the present application. [Figure 3A] 1 is a schematic block diagram of a video encoding system according to an embodiment of the present application; [Figure 3B] FIG. 1 is a schematic block diagram of a video decoding system according to an embodiment of the present application; [Figure 4] 1 is a flow chart 1 of a video image component prediction method in an embodiment of the present application; [Diagram 5] 2 is a flow chart 2 of a video image component prediction method in an embodiment of the present application; [Figure 6]3 is a flow chart 3 of a video image component prediction method in an embodiment of the present application; [Figure 7] FIG. 1 is a structural diagram for constructing a predictive model based on maximum and minimum values according to an embodiment of the present application; [Figure 8] 1 is a schematic structural diagram of a video image component prediction device according to an embodiment of the present application; [Figure 9] 2 is a schematic structural diagram of a video image component prediction device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in more detail below with reference to the drawings. The embodiments described below are not intended to limit the present application, and all other embodiments obtained without the creative efforts of those skilled in the art are within the protection scope of the present application.
[0014] Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art. The terms used herein are only used to describe the embodiments of the present application and are not intended to limit the present application.
[0015] Below, we will first explain the concepts of intraframe prediction, video encoding and decoding, etc.
[0016] The main function of predictive coding and decoding in video coding and decoding is to use the existing reconstructed image in space or time to generate a predicted value of the current block, and then transmit only the difference between the original value and the predicted value, thereby achieving the purpose of reducing the amount of transmitted data.
[0017] The main function of intra-frame prediction is to generate a prediction value of a current block using a current block and a pixel unit in one row on the top and one column on the left side adjacent to the current block. As shown in Fig. 1, each pixel unit of the current block 101 is predicted using the reconstructed neighboring pixels around the current block 101 (i.e., the pixel unit in the top row 102 and the pixel unit in the left column 103 adjacent to the current block).
[0018] In the embodiment of the present application, for a video image, three image components are generally used to represent a processing block, where the three image components are a luminance component, a blue color difference component, and a red color difference component, respectively. Specifically, the luminance component is generally represented by the symbol Y, the blue color difference component is generally represented by the symbol Cb, and the red color difference component is generally represented by the symbol Cr.
[0019] At present, the common sampling format of video images is the YCbCr format, which includes the following formats:
[0020] 4:4:4 format: means that the blue difference or red difference components are not downsampled, which means that for every four consecutive pixel points of each scan line, we extract four samples of the luminance component, four samples of the blue difference component, and four samples of the red difference component.
[0021] 4:2:2 format: means that the luminance component is sampled horizontally at a ratio of 2:1 with respect to the blue-difference or red-difference components, and no downsampling is performed vertically. This means that for every four consecutive pixel points of each scan line, four samples of the luminance component, two samples of the blue-difference component, and two samples of the red-difference component are extracted.
[0022] 4:2:0 format: means that the luminance component is sampled horizontally with respect to the blue-difference or red-difference component at 2:1, and downsampled vertically at 2:1, which means that for every two consecutive pixel points in a horizontal and vertical scan line, two samples of the luminance component, one sample of the blue-difference component, and one sample of the red-difference component are extracted.
[0023] Under the condition that the video image adopts YCbCr of 4:2:0 format, when the luminance component of the video image is a processing block of size 2N×2N, the corresponding blue difference component or red difference component is a processing block of size N×N, where N is the side length of the processing block. In the embodiment of the present application, the 4:2:0 format is taken as an example for description below, but the technical solution of the embodiment of the present application is also applicable to other sampling formats.
[0024] Based on the above concept, an embodiment of the present application provides a network architecture of a video encoding and decoding system including a video image component prediction method for intra-frame prediction. FIG. 2 is a configuration structural diagram of a network architecture for video encoding and decoding according to an embodiment of the present application. As shown in FIG. 2, the network architecture includes one or more electronic devices 11 to 1N and a communication network 01, where the electronic devices 11 to 1N may perform video interaction through the communication network 01. In the implementation process, the electronic devices may be various types of devices with video encoding and decoding functions. For example, the electronic devices may include mobile phones, tablet computers, personal computers, personal digital assistants, navigators, digital phones, video phones, televisions, sensing devices, servers, etc., but the embodiments of the present application are not limited thereto. Here, the intra-frame prediction device in the embodiment of the present application may be the above-mentioned electronic devices.
[0025] Here, the electronic device in the embodiment of the present application has a video encoding / decoding function, and typically includes a video decoder and a video decoder.
[0026] 3A, the configuration structure of the video encoder 21 includes a transform and quantization unit 211, an intraframe estimation unit 212, an intraframe prediction unit 213, a motion compensation unit 214, a motion estimation unit 215, an inverse transform and inverse quantization unit 216, a filter control analysis unit 217, a filtering unit 218, an entropy coding unit 219, and a decoded image cache unit 210, etc. Here, the filtering unit 218 can realize deblocking filtering and Sample Adaptive Offset (SAO) filtering, and the entropy coding unit 219 can realize header information coding and Context-based Adaptive Binary Arithmetic Coding (CABAC). For the input source video data, a block to be coded of one current video frame can be obtained by dividing a coding tree unit (CTU), and then residual information obtained by performing intraframe prediction or interframe prediction on the block to be coded is transformed by the transform and quantization unit 211 (including transforming the residual information from pixel domain to transform domain and quantizing the obtained transform coefficients, thereby further reducing the bit rate). The intraframe estimation unit 212 and the intraframe prediction unit 213 are configured to perform intraframe prediction on the block to be coded, for example, to determine an intraframe prediction mode used to code the block to be coded. The motion compensation unit 214 and the motion estimation unit 215 are configured to perform interframe prediction coding of the block to be coded with respect to one or more blocks in one or more reference frames, and provide temporal prediction information. Here, the motion estimation unit 215 is configured to estimate a motion vector, and the motion of the block to be coded can be estimated based on the motion vector, and then the motion compensation unit 214 performs motion compensation based on the motion vector. After determining the intra prediction mode, the intra prediction unit 213 is further configured to provide the selected intra prediction data to the entropy coding unit 219, and the motion estimation unit 215 also sends the motion vector data determined by calculation to the entropy coding unit 219. Furthermore, the inverse transform and inverse quantization unit 216 is configured to reconstruct the to-be-coded block, i.e., reconstruct a residual block in the pixel domain, and artifacts caused by blocking effect of the reconstructed residual block are removed by the filter control analysis unit 217 and the filtering unit 218, and then add the reconstructed residual block to one prediction block in the frame of the decoded image cache unit 210 to generate a reconstructed video coding block.The entropy coding unit 219 is configured to code various coding parameters and quantized transform coefficients, and in a CABAC-based coding algorithm, the context content may be based on neighboring coding blocks, and may be used to code information indicating the determined intraframe prediction mode and output a bitstream of the video data. The decoded picture cache unit 210 is configured to store reconstructed video coding blocks used for prediction reference. As the video is coded, new reconstructed video coding blocks are continuously generated, and these reconstructed video coding blocks are stored in the decoded picture cache unit 210.
[0027] As shown in FIG. 3B, the configuration structure of the video decoder 22 corresponding to the video encoder 21 includes an entropy decoding unit 221, an inverse transform and inverse quantization unit 222, an intraframe prediction unit 223, a motion compensation unit 224, a filtering unit 225, and a decoded image cache unit 226, etc. Here, the entropy decoding unit 221 can realize header information decoding and CABAC decoding, and the filtering unit 225 can realize deblocking filtering and SAO filtering. After performing the encoding process shown in FIG. 3A on the input video signal, output a bitstream of the video signal. The bitstream is input to the video decoder 22, which is first processed by the entropy decoding unit 221 to obtain decoded transform coefficients. The transform coefficients are processed by the inverse transform and inverse quantization unit 222 to generate residual blocks in the pixel domain. The intra prediction unit 223 may be configured to generate prediction data for the currently decoded block based on the determined intra prediction mode and data of the previously decoded block from the current frame or image. The motion compensation unit 224 analyzes the motion vectors and other relevant syntax elements to determine prediction information for the currently decoded block, and uses the prediction information to generate a prediction block for the currently decoded block being decoded. The residual block from the inverse transform and inverse quantization unit 222 is summed with the corresponding prediction block generated by the intra prediction unit 223 or the motion compensation unit 224 to generate a decoded video block. Artifacts due to blocking effects in the decoded video block are removed by the filtering unit 225, thereby improving quality. The decoded video block is then stored in the decoded image cache unit 226, which stores reference images used for subsequent intra prediction or motion compensation, and is also used for output display of the video signal.
[0028] Based on this, the technical solution of the present application will be described in more detail below with reference to the accompanying drawings and embodiments. The video image component prediction method provided in the embodiments of the present application refers to prediction in an intra-frame prediction process for predictive encoding and decoding, i.e., it may be provided to the video encoder 21 or applied to the video decoder 22, but the embodiments of the present application are not limited thereto.
[0029] In the next-generation video coding standard H.266, in order to further improve the coding / decoding performance and coding / decoding efficiency, cross-component prediction (CCP: Cross-component Prediction) is extended and improved, and cross-component linear model prediction (CCLM: Cross-component Linear Model Prediction) is proposed. In H.266, CCLM realizes prediction from luminance component to blue difference component, from luminance component to red difference component, and between blue difference component and red difference component. Below, we will explain the video component prediction method based on the background of conventional CCLM.
[0030] An embodiment of the present application provides a video image component prediction method, the method is applied to a video image component prediction device, and the functions realized by the method can be realized by calling a program code by a processor in the video image component prediction device. Of course, the program code can be stored in a computer storage medium, and obviously, the video image component prediction device includes at least a processor and a storage medium.
[0031] FIG. 4 is an implementation flowchart of a video image component prediction method in an embodiment of the present application. As shown in FIG. 4, the method includes the following steps:
[0032] In step S101, the first image component reference value of the current block is obtained.
[0033] In step S102, a plurality of first image component reference values are determined from the set of reference values for the first image component.
[0034] In step S103, a first filtering process is performed on the sample values of pixel points corresponding to the plurality of first image component reference values, respectively, to obtain a plurality of filtered first image reference sample values.
[0035] In step S104, a prediction-to-be-predicted image component reference value corresponding to the plurality of filtered first image reference sample values is determined, where the prediction-to-be-predicted image component is an image component different from the first image component.
[0036] In step S105, parameters of a component linear model are determined based on the first image reference sample values after multiple filtering and the image component reference values to be predicted, where the component linear model represents a linear mapping relationship that maps the sample values of the first image component to the sample values of the image component to be predicted.
[0037] In step S106, a mapping process is performed on the reconstructed value of the first image component of the current block based on the component linear model to obtain a mapping value.
[0038] In step S107, a prediction value of the image component to be predicted of the current block is determined based on the mapping value.
[0039] In step S101, in the embodiment of the present application, the current block is a coding block or a decoding block waiting for image component prediction. In the embodiment of the present application, the video image component prediction device obtains a first image component reference value of the current block, where the first image component reference value set includes one or more first image component reference values. The reference value of the current block can be obtained from a reference block, and the reference block can be an adjacent block of the current block or a non-adjacent block of the current block, but the embodiment of the present application is not limited thereto.
[0040] In some embodiments of the present application, the video image component prediction device determines one or more reference pixel points located at positions other than the current block, and determines the one or more reference pixel points as one or more first image component reference values.
[0041] In an embodiment of the present application, an adjacent processing block corresponding to a current block is a processing block adjacent to one or more sides of the current block, and the one or more adjacent sides may refer to a top side adjacent to the current block, or may refer to a left side adjacent to the current block, or may refer to a top side and a left side adjacent to the current block, but it should be noted that the embodiment of the present application is not limited thereto.
[0042] In some embodiments of the present application, the video image component prediction unit determines pixel points adjacent to the current block as one or more reference pixel points.
[0043] In the embodiment of the present application, the one or more reference pixel points may be adjacent pixel points or non-adjacent pixel points, but it should be noted that the embodiment of the present application is not limited thereto. In the present application, adjacent pixel points are taken as an example.
[0044] Here, the pixel points adjacent to one or more sides corresponding to the adjacent processing block of the current block are used as one or more adjacent reference pixel points corresponding to the current block, and each adjacent reference pixel point corresponds to three image component reference values (i.e., a first image component reference value, a second image component reference value, and a third image component reference value). Therefore, the video image component prediction device can obtain the reference value of the first image component at each adjacent reference pixel point of the one or more adjacent reference pixel points corresponding to the current block as a reference value set of the first image component, thus obtaining one or more first image component reference values. That is, the one or more first image component reference values represent the reference values of the corresponding first image components of one or more adjacent pixel points in the adjacent reference block corresponding to the current block. Here, the first image components in the embodiments of the present application are used to predict other image components.
[0045] In some embodiments of the present application, the combination of the first image component and the prediction-to-be-predicted image component includes at least one of the following:
[0046] The first image component is a luminance component, and the image component to be predicted is a first or second chrominance component, or The first image component is a first chrominance component, and the image component to be predicted is a luminance component or a second chrominance component, or The first image component is a second chrominance component, and the image component to be predicted is a luminance component or a first chrominance component, or The first image component is a first color component, and the image component to be predicted is a second color component or a third color component, or The first image component is a second color component, and the image component to be predicted is the first color component or the third color component, or The first image component is the third color component, and the image component to be predicted is the second color component or the first color component.
[0047] In some embodiments of the present application, the first color component is a red component, the second color component is a green component, and the third color component is a blue component.
[0048] Here, the first color difference component may be a blue color difference component, and the second color difference component may be a red color difference component, or the first color difference component may be a red color difference component, and the second color difference component may be a blue color difference component. Here, the first color difference component and the second color difference component only need to represent the blue color difference component and the red color difference component, respectively.
[0049] An example will be described in which the first color difference component may be a blue color difference component and the second color difference component may be a red color difference component. When the first image component is a luminance component and the image component to be predicted is the first color difference component, the video image component prediction device can predict the blue color difference component using the luminance component. When the first image component is a luminance component and the image component to be predicted is the second color difference component, the video image component prediction device can predict the red color difference component using the luminance component. When the first image component is a first color difference component and the image component to be predicted is the second color difference component, the video image component prediction device can predict the red color difference component using the blue color difference component. When the first image component is a second color difference component and the image component to be predicted is the first color difference component, the video image component prediction device can predict the blue color difference component using the red color difference component.
[0050] In step S102, the video image component prediction device may determine a plurality of first image component reference values from one or more first image component reference values.
[0051] In some embodiments of the present application, the video image component prediction device may compare one or more first image component reference values included in a reference value set for the first image component to determine a maximum first image component reference value and a minimum first image component reference value.
[0052] In some embodiments of the present application, the video image component prediction device can determine, from one or more first image component reference values, a maximum value and a minimum value among a plurality of first image component reference values, and can determine, from the one or more first image component reference values, a reference value representing the maximum or minimum first image component reference value.
[0053] For example, the video image component prediction unit determines a maximum first image component reference value and a minimum first image component reference value from a set of first image component reference values.
[0054] In the embodiment of the present application, the video image component prediction device can obtain the maximum first image component reference value and the minimum first image component reference value in various ways.
[0055] In scheme 1, each first image component reference value of one or more first image component reference values is compared in sequence to determine a maximum first image component reference value and a minimum first image component reference value.
[0056] In method 2, at least two first image component reference values at preset positions are selected from one or more first image component reference values, and the at least two first sub-image component reference values are divided into a maximum image component reference value set and a minimum image component reference value set according to numerical value magnitude, and the maximum first image component reference value and the minimum first image component reference value are obtained based on the maximum image component reference value set and the minimum image component reference value set.
[0057] That is, in the embodiment of the present application, the video image component prediction device selects the largest value among the first image component reference values as the largest first image component reference value, and selects the smallest value among the first image component reference values as the smallest first image component reference value. The determination method may be sequentially compared two by two, or may be determined after sorting, and the embodiment of the present application does not limit the specific determination method.
[0058] The video image component prediction device may also select some first image component reference values corresponding to preset positions (preset pixel point positions) from pixel point positions corresponding to one or more first image component reference values as at least two first image component reference values, and then divide according to the at least two first image component reference values to obtain a maximum data set (maximum image component reference value set) and a minimum data set (minimum image component reference value set), and determine the maximum first image component reference value and the minimum first image component reference value based on the maximum data set and the minimum data set. Here, the process of determining the maximum first image component reference value and the minimum first image component reference value based on the maximum data set and the minimum data set may be: performing an averaging process on the maximum data set to obtain the maximum first image component reference value, and performing an averaging process on the minimum data set to obtain the minimum first image component reference value, and the maximum and minimum values may also be determined using other methods, but the embodiment of the present application is not limited thereto.
[0059] It should be noted that the number of values in the largest and smallest data sets are integers greater than or equal to 1, and the number of values in the two sets may be the same or different, although embodiments of the present application are not limited thereto.
[0060] After determining several first image component reference values corresponding to preset positions as at least two first sub-image component reference values, the video image component prediction device can also directly select the maximum value among the at least two first sub-image component reference values as the maximum first image component reference value, and directly select the minimum value among the at least two first sub-image component reference values as the minimum first image component reference value.
[0061] Exemplarily, the video image component prediction device may take M (M may be a value greater than 4 or may not be limited) largest first sub-image component reference values among the at least two first sub-image component reference values as a maximum image component reference value set, and at least two first sub-image component reference values other than the M largest first sub-image component reference values as a minimum image component reference value set, and finally perform an averaging process on the maximum image component reference value set to obtain the maximum first image component reference value, and perform an averaging process on the minimum image component reference value set to obtain the minimum first image component reference value.
[0062] It should be noted that in the embodiment of the present application, the maximum and minimum first image component reference values may be maximum and minimum values directly determined by the magnitude of the numerical values, or after selecting first image component reference values (at least two first sub-image component reference values) that can represent the validity of the reference values at the preset position, the valid first image component reference values are divided to obtain one set of relatively large numerical values and one set of relatively small numerical values, and then the maximum first image component reference value is determined according to the set of relatively large numerical values, and the minimum first image component reference value is determined according to the set of relatively small numerical values, or the maximum and minimum first image component reference values are directly determined from the set of valid first image component reference values corresponding to the preset position according to the magnitude of the numerical values.
[0063] In the embodiment of the present application, the manner in which the video image component prediction device determines the maximum first image component reference value and the minimum first image component reference value is not limited. For example, the video image component prediction device can divide one or more first image component reference values into three or four sets according to their sizes, and then process each set to obtain one representative parameter, and then select the maximum and minimum parameters from the representative parameters as the maximum first image component reference value and the minimum first image component reference value.
[0064] In the embodiment of the present application, the selection of the preset positions can select positions that represent the validity of the first image component reference value, and the number of the preset positions is not limited (e.g., it can be 4 or 6). The preset positions can be all positions of the neighboring pixel points, but the embodiment of the present application is not limited thereto.
[0065] For example, at a preset position, a preset number of first image component reference values may be selected from both sides based on the center of the row or column in which it is located according to the sampling frequency, or the first image component reference values may be located at other positions except the edge positions of the row or column, but the embodiments of the present application are not limited thereto.
[0066] The allocation of the preset positions in the rows and columns may be uniform or may be allocated according to a preset manner, but the embodiment of the present application is not limited thereto. For example, if the number of preset positions is four, and adjacent rows and adjacent columns are positions corresponding to one or more first image component reference values, two first image component reference values may be selected from the first image component reference values corresponding to the adjacent rows, and two first image component reference values may be selected from the first image component reference values corresponding to the adjacent columns. Or, one first image component reference value may be selected from the first image component reference values corresponding to the adjacent rows, and three first image component reference values may be selected from the first image component reference values corresponding to the adjacent columns, but the embodiment of the present application is not limited thereto.
[0067] The video image component prediction device can determine the maximum and minimum values of the one or more first image component reference values from the one or more first image component reference values. That is, obtain the maximum value (maximum first image component reference value) of the one or more first image component reference values and the minimum value (minimum first image component reference value) of the one or more first image component reference values. Or, obtain the maximum and minimum first image component reference values through processing after determining multiple reference values from preset positions of the one or more first image component reference values. Here, in order to match or approach the sampling positions of other video components, it is necessary to perform filtering based on the pixel point positions corresponding to the maximum and minimum first image component reference values before performing subsequent processing.
[0068] In step S103, the video image component prediction device respectively performs a first filtering process on the sample values of the pixel points corresponding to the determined multiple first image component reference values to obtain multiple filtered first image reference sample values.
[0069] In an embodiment of the present application, the multiple filtered first image reference sample values may be a maximum filtered first image component reference value and a minimum filtered first image component reference value, or multiple reference sample values including a maximum filtered first image component reference value and a minimum filtered first image component reference value, or other multiple reference sample values, but the embodiment of the present application is not limited thereto.
[0070] In an embodiment of the present application, the video image component prediction device performs a filtering process (i.e., a first filtering process) on pixel point positions (i.e., sample values of corresponding pixel points) corresponding to the determined first image component reference values, thereby obtaining corresponding multiple filtered first image reference sample values, and thereby constructing a component linear model based on the multiple filtered first image reference sample values.
[0071] In some embodiments of the present application, the video image component prediction device performs a first filtering process on sample values of pixel points corresponding to the maximum first image component reference value and the minimum first image component reference value, respectively, to obtain a filtered maximum first image component reference value and a filtered minimum first image component reference value.
[0072] In addition, since the determined multiple first image component reference values may be a maximum first image component reference value and a minimum first image component reference value, the filtering process can perform a filtering process (i.e., a first filtering process) on the pixel point positions (i.e., sample values of the corresponding pixel points) to determine the maximum first image component reference value and the minimum first image component reference value, thereby obtaining corresponding maximum filtered first image component reference values and minimum filtered image component reference values (i.e., multiple filtered first image reference sample values), and in this way, a component linear model can be subsequently constructed based on the maximum filtered first image component reference value and the minimum filtered first image component reference value.
[0073] In the embodiment of the present application, the filtering method may be, but is not limited to, upsampling, downsampling, low-pass filtering, etc. Here, the downsampling method may include, but is not limited to, averaging, interpolation, median, etc.
[0074] In an embodiment of the present application, the first filtering process may be downsampling filtering and low-pass filtering.
[0075] For example, the video image component prediction device may perform downsampling filtering on pixel point positions for determining the maximum first image component reference value and the minimum first image component reference value to obtain corresponding filtered maximum first image component reference value and filtered minimum first image component reference value.
[0076] In the following, an example will be described in which downsampling is an average method.
[0077] The video component prediction device performs an average calculation of the first image component for an area formed by the position corresponding to the maximum first image component reference value and its adjacent pixel point positions, and fuses the pixels of this block area into one pixel, and the average result is the first image component reference value corresponding to the pixel point after the fusion, i.e., the maximum first image component reference value after filtering. Similarly, the video component prediction device performs an average calculation of the first image component for an area formed by the position corresponding to the minimum first image component reference value and its adjacent pixel point positions, and fuses the pixels of this block area into one pixel, and the average result is the first image component reference value corresponding to the pixel point after the fusion, i.e., the minimum first image component reference value after filtering.
[0078] In addition, in the embodiment of the present application, the downsampling process of the video image component prediction device is realized by a filter, and specifically, the position range of the vector pixel points adjacent to the position corresponding to the maximum first image component reference value can be determined by the type of filter, but the embodiment of the present application is not limited to this.
[0079] In the embodiment of the present application, the type of the filter may be a 6-tap filter or a 4-tap filter, but the embodiment of the present application is not limited thereto.
[0080] In steps S104 and S105, the video image component prediction device determines prediction-awaiting image component reference values corresponding to the first image reference sample values after the multiple filtering, where the prediction-awaiting image component is an image component different from the first image component (e.g., the second image component or the third image component), and then determines parameters of a component linear model based on the first image reference sample values after the multiple filtering and the prediction-awaiting image component reference values, where the component linear model represents a linear mapping relationship (functional relationship) that maps the sample values of the first image component to the sample values of the prediction-awaiting image component.
[0081] In some embodiments of the present application, the video image component prediction device determines a maximum prediction-awaiting image component reference value corresponding to the maximum first image component reference value after filtering, and a minimum prediction-awaiting image component reference value corresponding to the minimum first image component reference value after filtering.
[0082] In addition, in an embodiment of the present application, the video image component prediction device can construct a component linear model (i.e., a simplified cross-component linear model prediction (CCLM)) by deriving model parameters (i.e., parameters of the component linear model) according to the principle of "determining a line by two points" using a maximum and minimum value construction method.
[0083] In the embodiment of the present application, the video image component prediction device performs downsampling (i.e., filtering) to realize alignment with the position of the image to be predicted. In this way, it is possible to determine the prediction-awaiting image component reference value corresponding to the first image component reference sample value after filtering. For example, it determines the maximum prediction-awaiting image component reference value corresponding to the maximum first image component reference value after filtering, and the minimum prediction-awaiting image component reference value corresponding to the minimum first image component reference value after filtering. In this way, the video image component prediction device determines two points, namely (the maximum first image component reference value after filtering, the maximum prediction-awaiting image component reference value) and (the minimum first image component reference value after filtering, the minimum prediction-awaiting image component reference value), and therefore, according to the principle of "determining a line by two points", it can derive model parameters and build a component linear model.
[0084] In some embodiments of the present application, the video image component prediction device determines parameters of a component linear model based on the maximum first image component reference value after filtering, the maximum image component reference value to be predicted, the minimum first image component reference value after filtering, and the minimum image component reference value to be predicted, where the component linear model represents a linear mapping relationship that maps sample values of the first image component to sample values of the image component to be predicted.
[0085] In some embodiments of the present application, the video image component prediction device determines the parameters of the component linear model according to the maximum first image component reference value after filtering, the maximum prediction-awaiting image component reference value, the minimum first image component reference value after filtering, and the minimum prediction-awaiting image component reference value, and may include the following methods. In method (1), the parameters of the component linear model include a multiplication factor and an additive offset. Therefore, the video image component prediction device can calculate a first difference value between the maximum prediction-awaiting image component reference value and the minimum prediction-awaiting image component reference value, calculate a second difference value between the maximum first image component reference value and the minimum first image component reference value, set the multiplication factor as the ratio of the first difference value and the second difference value, calculate a first product between the maximum first image component reference value and the multiplication factor, and set the additive offset as the difference value between the maximum prediction-awaiting image component reference value and the first product, or calculate a second product between the minimum first image component reference value and the multiplication factor, and set the additive offset as the difference value between the minimum prediction-awaiting image component reference value and the second product. In method (2), a first sub-component linear model is constructed using the maximum first image component reference value after filtering, the maximum image component reference value waiting for prediction, and a preset initial linear model, a second sub-component linear model is constructed using the minimum first image component reference value after filtering, the minimum image component reference value waiting for prediction, and the preset initial linear model, model parameters are obtained based on the first sub-component linear model and the second sub-component linear model, and a component linear model is constructed using the model parameters and the preset initial linear model.
[0086] Here, the above-mentioned values are set or designed according to actual conditions, and the embodiments of the present application are not limited thereto.
[0087] Illustratively, since the component linear model represents a linear mapping relationship between the first image component and the image component to be predicted, the video image component prediction device can predict the image component to be predicted based on the first image component and the component linear model, and the image component to be predicted in the embodiment of the present application can be a chrominance component.
[0088] Exemplarily, the component linear model may be as shown in Equation (1) below.
[0089] C = αY + β (1) where Y represents the first image component reconstruction value corresponding to a particular pixel point in the current block (downsampled), C represents the second image component prediction value corresponding to that particular pixel point in the current block, and α and β are model parameters of the component linear model.
[0090] Here, the specific realization of the model parameters will be described in detail in the following examples.
[0091] The video image component prediction device selects the maximum and minimum first image component reference values according to one or more first image component reference values corresponding to the current block directly obtained, and then performs downsampling according to the positions corresponding to the selected maximum and minimum first image component reference values to construct a component linear model. In this way, the workload of the downsampling process of the pixel points corresponding to the current block is reduced, i.e., the filtering operation is reduced, thereby reducing the complexity of constructing the component linear model, further reducing the complexity of video component prediction, improving the prediction efficiency, and improving the video encoding and decoding efficiency.
[0092] In step S106 and step S107, in an embodiment of the present application, after obtaining the component linear model, the video image component prediction device can directly perform video component prediction on the current block using the component linear model, thereby obtaining a predicted value of the image component to be predicted. Here, the video image component prediction device can perform a mapping process on the reconstruction value of the first image component of the current block based on the component linear model to obtain a mapping value, and then determine a predicted value of the image component to be predicted of the current block based on the mapping value.
[0093] In some embodiments of the present application, the video image component prediction device performs a second filtering operation on the reconstructed value of the first image component to obtain a second filter value of the reconstructed value of the first image component, and performs a mapping operation on the second filter value based on the component linear model to obtain a mapping value.
[0094] In some embodiments of the present application, the video image component prediction unit sets the mapping value as the predicted value of the image component of the current block to be predicted.
[0095] Here, the second filtering process may be downsampling filtering or low-pass filtering.
[0096] In some embodiments of the present application, the video image component prediction device may also perform a third filtering process on the mapping value to obtain a third filter value of the mapping value, and set the third filter value as a prediction value of the image component to be predicted of the current block.
[0097] Here, the third filtering process may be low-pass filtering.
[0098] In the present embodiment, the predicted value represents a predicted value of the second image component or a predicted value of the third image component corresponding to one or more pixel points of the current block.
[0099] In the process of constructing the component linear model, a selection of a plurality of first image component reference values is performed, and then a filtering process is performed based on the positions corresponding to the selected plurality of first image component reference values to construct the component linear model, thereby reducing the workload of the filtering process of the pixel points corresponding to the current block, that is, the filtering operation is reduced, thereby reducing the complexity of constructing the component linear model, further reducing the complexity of video component prediction, improving the prediction efficiency, and improving the efficiency of video encoding and decoding.
[0100] In some embodiments of the present application, as shown in FIG. 5, the embodiments of the present application further provide a video image component prediction method, the method including the following steps:
[0101] In step S201, a set of reference values for the first image component of the current block is obtained.
[0102] In step S202, the reference values in the set of reference values for the first image component are compared to determine the maximum and minimum first image component reference value.
[0103] In step S203, a first filtering process is performed on the sample values of the pixel points corresponding to the maximum first image component reference value and the minimum first image component reference value, respectively, to obtain the maximum first image component reference value after filtering and the minimum first image component reference value after filtering.
[0104] In step S204, a maximum prediction-waiting image component reference value corresponding to the maximum first image component reference value after filtering, and a minimum prediction-waiting image component reference value corresponding to the minimum first image component reference value after filtering are determined.
[0105] In step S205, parameters of a component linear model are determined based on the maximum first image component reference value after filtering, the maximum image component reference value waiting to be predicted, the minimum first image component reference value after filtering, and the minimum image component reference value waiting to be predicted, where the component linear model represents a linear mapping relationship that maps sample values of the first image component to sample values of the image component waiting to be predicted.
[0106] In step S206, a mapping process is performed on the reconstructed value of the first image component of the current block based on the component linear model to obtain a mapping value.
[0107] In step S207, a prediction value of the image component to be predicted of the current block is determined based on the mapping value.
[0108] In the embodiment of the present application, the process of steps S201 to S207 has already been described in the above embodiment, and will not be described again here.
[0109] In addition, when the video image component prediction device performs prediction, for the first image component reconstruction value of the current block, first image component filtering is performed on the current block to obtain a first image component reconstruction value corresponding to the current block, and then a predicted value of the image component to be predicted of the current block is obtained based on the component linear model and the first image component reconstruction value.
[0110] In the embodiment of the present application, after the video image component prediction device obtains the component linear model, the smallest unit for predicting the current block is a pixel point, so it is necessary to predict the prediction value of the image component to be predicted corresponding to each pixel point of the current block by the first image component reconstruction value corresponding to the pixel point. Here, the video image component prediction device first performs a first image component filtering (for example, downsampling) on the current block to obtain the first image component reconstruction value corresponding to the current block, specifically, obtains the first image component reconstruction value of each pixel point corresponding to the current block.
[0111] In the present embodiment, the first image component reconstruction values represent reconstruction values of the first image component corresponding to one or more pixel points of the current block.
[0112] As a result, the video image component prediction device can perform a mapping process on the reconstructed value of the first image component of the current block using the component linear model to obtain a mapping value, and obtain a predicted value of the image component of the current block to be predicted based on the mapping value.
[0113] In some embodiments of the present application, as shown in FIG. 6, a specific implementation of step S204 may include steps S2041-S2042 as follows.
[0114] In step S2041, a prediction-waiting image component reference value of the current block is obtained.
[0115] In step S2042, the maximum prediction-waiting image component reference value and the minimum prediction-waiting image component reference value are determined from the prediction-waiting image component reference values.
[0116] In an embodiment of the present application, a video image component prediction device constructs a component linear model based on a maximum image component reference value after filtering and a minimum image component reference value after filtering, and in this process, based on the principle of "determining a line by two points", when a first image component is the abscissa and an image component to be predicted is the ordinate, the values of the abscissa of the two points are known, and before determining a linear model, i.e., a component linear model, according to the principle of "determining a line by two points", the values of the ordinate corresponding to the two points need to be determined.
[0117] In some embodiments of the present application, the video image component prediction device converts a sampling point (Sample) position of the first image component reference value corresponding to the maximum first image component reference value to a position of the first sampling point, sets the maximum prediction-awaiting image component reference value as a reference value at the position of the first sampling point among the prediction-awaiting image component reference values, converts a sampling point position of the first image component reference value corresponding to the minimum first image component reference value to a position of the second sampling point, and sets the minimum prediction-awaiting image component reference value as a reference value at the position of the second sampling point among the prediction-awaiting image component reference values.
[0118] Take as an example that reference pixel point is adjacent pixel point for illustrative purposes.Video image component prediction device can obtain one or more prediction-awaiting image component reference values corresponding to current block according to the above description of adjacent block, where one or more prediction-awaiting image component reference values can refer to the reference values of prediction-awaiting image components at each adjacent reference pixel point of one or more reference pixel points corresponding to current block, and use it as one prediction-awaiting image component reference value, thus video image component prediction device obtains one or more prediction-awaiting image component reference values.
[0119] The video image component prediction device finds a first adjacent reference pixel point where the maximum first image component reference value after filtering is located from pixel points corresponding to one or more prediction-awaiting image component reference values, and uses the prediction-awaiting image component reference value corresponding to the first adjacent reference pixel point as the maximum prediction-awaiting image component reference value, that is, determines the maximum prediction-awaiting image component reference value corresponding to the maximum first image component reference value after filtering, finds a second adjacent reference pixel point where the minimum first image component reference value after filtering is located from pixel points corresponding to one or more prediction-awaiting image component reference values, and uses the prediction-awaiting image component reference value corresponding to the second adjacent reference pixel point as the minimum prediction-awaiting image component reference value, that is, determines the minimum prediction-awaiting image component reference value corresponding to the minimum first image component reference value after filtering. Finally, according to the principle of "determining a line by two points", a straight line is determined based on two points, (the maximum first image component reference value after filtering, the maximum prediction-awaiting image component reference value) and (the minimum first image component reference value after filtering, the minimum prediction-awaiting image component reference value), and the function (mapping relationship) represented by the straight line is a component linear model.
[0120] In some embodiments of the present application, the video image component prediction device also first performs filtering on adjacent pixel point positions to obtain one or more prediction-awaiting image component reference values of the filtered pixel point, then finds a first adjacent reference pixel point from the filtered pixel point positions where the maximum first image component reference value after filtering is located, and uses the prediction-awaiting image component reference value (one of the one or more prediction-awaiting image component reference values) corresponding to the first adjacent reference pixel point as the maximum prediction-awaiting image component reference value, that is, determines the maximum prediction-awaiting image component reference value corresponding to the maximum first image component reference value after filtering, and finds a second adjacent reference pixel point from the filtered pixel point positions where the minimum first image component reference value after filtering is located, and uses the prediction-awaiting image component reference value corresponding to the second adjacent reference pixel point as the minimum prediction-awaiting image component reference value, that is, determines the minimum prediction-awaiting image component reference value corresponding to the minimum first image component reference value after filtering.
[0121] It should be noted that the video image component prediction device can also perform filtering on adjacent pixel point positions first, and this process is filtering the image component to be predicted (for example, chrominance image component), and the embodiment of the present application is not limited thereto. That is, in the embodiment of the present application, the video image component prediction device can perform a fourth filtering process on the image component reference value to be predicted to obtain the image component reconstruction value to be predicted.
[0122] Here, the fourth filtering process may be low-pass filtering.
[0123] In some embodiments of the present application, the process of the video image component prediction device constructing a component linear model includes: constructing a first sub-component linear model using the maximum first image component reference value after filtering, the maximum image component reference value to be predicted, and a preset initial linear model; constructing a second sub-component linear model using the minimum first image component reference value after filtering, the minimum image component reference value to be predicted, and the preset initial linear model; obtaining model parameters based on the first sub-component linear model and the second sub-component linear model; and constructing a component linear model using the model parameters and the preset initial linear model.
[0124] In the present embodiment, the preset initial linear model is an initial model whose model parameters are unknown.
[0125] For example, the preset initial linear model may be in the form of Equation (1), in which α and β are unknown, and a two-dimensional second equation can be constructed using the first sub-component linear model and the second sub-component linear model to obtain the model parameters α and β, and α and β can be substituted into Equation (1) to obtain a linear mapping relationship model between the first image component and the image component to be predicted.
[0126] For example, the model parameters (α and β shown in Equation (2) below) are derived according to the principle of “determining a line by two points” by finding the maximum first image component reference value (the maximum first image component reference value after filtering) and the minimum first image component reference value (the minimum first image component reference value after filtering).
number
[0127] Here, L max and L min represents the maximum and minimum values found from the first image component reference values corresponding to the left side and / or top side that are not downsampled, and C max and C min , L max and L min 7 is a schematic structural diagram showing how to construct a prediction model based on the maximum and minimum values of a current block. Here, the horizontal coordinate represents the first image component reference value of the current block, the vertical coordinate represents the image component reference value of the current block to be predicted, and L max and L min , and C max and C. min According to the above, the model parameters α and β can be calculated through formula (2), and the constructed prediction model is C=αY+β. In the actual prediction process, Y represents the first image component reconstruction value corresponding to a pixel point in the current block, and C represents the image component prediction value to be predicted corresponding to the pixel point in the current block.
[0128] Apparently, the video image component prediction device first selects the maximum and minimum first image component reference values according to one or more first image component reference values corresponding to the current block obtained directly, and then performs downsampling (filtering) according to the positions corresponding to the selected maximum and minimum first image component reference values to construct a component linear model. In this way, the workload of the downsampling process of the pixel points corresponding to the current block is reduced, that is, the filtering operation is reduced, thereby reducing the complexity of constructing the component linear model, further reducing the complexity of video component prediction, improving the prediction efficiency, and improving the video encoding and decoding efficiency.
[0129] Based on the above embodiment, the embodiment of the present application provides a video content prediction device, and each unit of the device and each module included in each unit can be realized by a processor in the video content prediction device, and of course can also be realized by a specific logic circuit. In the implementation process, the processor can be a central processing unit, a microprocessor, a digital signal processor (DSP), or a field programmable gate array, etc.
[0130] As shown in FIG. 8, a video component prediction device 3 according to an embodiment of the present application includes: an acquisition unit 30 configured to acquire a set of reference values for a first image component of a current block, said set of reference values for the first image component comprising one or more first image component reference values; a determiner 31 configured to determine a plurality of first image component reference values from the set of reference values for the first image component; a filtering unit (32) configured to respectively perform a first filtering process on sample values of pixel points corresponding to the plurality of first image component reference values to obtain a plurality of filtered first image reference sample values; a prediction unit 33 configured to determine a prediction value of the to-be-predicted image component of the current block based on the mapping value, The determination unit 31 is further configured to determine a prediction-awaiting image component reference value corresponding to the plurality of filtered first image reference sample values, the prediction-awaiting image component being an image component different from the first image component, and to determine a parameter of a component linear model based on the plurality of filtered first image reference sample values and the prediction-awaiting image component reference value, the component linear model represents a linear mapping relationship that maps the sample value of the first image component to the sample value of the prediction-awaiting image component, The filtering unit 32 is further configured to perform a mapping operation on the reconstructed values of the first image component of the current block based on the component linear model to obtain mapped values.
[0131] In some embodiments of the present application, the determination unit 31 is further configured to compare the reference values included in the reference value set for the first image component to determine a maximum first image component reference value and a minimum first image component reference value.
[0132] In some embodiments of the present application, the filtering unit 32 is further configured to perform the first filtering process on sample values of pixel points corresponding to the maximum first image component reference value and the minimum first image component reference value, respectively, to obtain a filtered maximum first image component reference value and a filtered minimum first image component reference value.
[0133] In some embodiments of the present application, the determination unit 31 is further configured to determine a maximum prediction-waiting image component reference value corresponding to the maximum first image component reference value after the filtering, and a minimum prediction-waiting image component reference value corresponding to the minimum first image component reference value after the filtering.
[0134] In some embodiments of the present application, the determination unit 31 is further configured to determine parameters of a component linear model based on the maximum first image component reference value after filtering, the maximum image component reference value waiting for prediction, the minimum first image component reference value after filtering, and the minimum image component reference value waiting for prediction, where the component linear model represents a linear mapping relationship that maps sample values of the first image component to sample values of the image component waiting for prediction.
[0135] In some embodiments of the present application, the determining unit 31 is further configured to determine one or more reference pixel points located outside the current block; The obtaining unit 30 is further configured to determine the one or more reference pixel points as the one or more first image component reference values.
[0136] In some embodiments of the present application, the determining unit 31 is further configured to determine pixel points neighboring the current block as the one or more reference pixel points.
[0137] In some embodiments of the present application, the filtering unit 32 is further configured to perform a second filtering process on the reconstructed value of the first image component to obtain a second filter value of the reconstructed value of the first image component, and to perform a mapping process on the second filter value based on the component linear model to obtain the mapping value.
[0138] In some embodiments of the present application, the second filtering process is downsampling filtering or low-pass filtering.
[0139] In some embodiments of the present application, the prediction unit 33 is further configured to set the mapping value as a prediction value of the to-be-predicted image component of the current block.
[0140] In some embodiments of the present application, the filtering unit 32 is further configured to perform a third filtering operation on the mapping value to obtain a third filtered value of the mapping value; The prediction unit 33 is further configured to set the third filter value as a predicted value of the prediction-awaiting image component of the current block.
[0141] In some embodiments of the present application, the third filtering process is a low-pass filtering.
[0142] In some embodiments of the present application, the determination unit 31 is further configured to obtain prediction waiting image component reference values of the current block, and determine the maximum prediction waiting image component reference value and the minimum prediction waiting image component reference value from the prediction waiting image component reference values.
[0143] In some embodiments of the present application, the filtering unit 32 is further configured to perform a fourth filtering operation on the prediction-to-be-predicted image component reference value to obtain a prediction-to-be-predicted image component reconstruction value.
[0144] In some embodiments of the present application, the fourth filtering process is a low-pass filtering.
[0145] In some embodiments of the present application, the determination unit 31 is further configured to convert a position of a sampling point of the first image component reference value corresponding to the maximum first image component reference value to a position of a first sampling point, set the maximum prediction-awaiting image component reference value as a reference value at the position of the first sampling point among the prediction-awaiting image component reference values, convert a position of a sampling point of the first image component reference value corresponding to the minimum first image component reference value to a position of a second sampling point, and set the minimum prediction-awaiting image component reference value as a reference value at the position of the second sampling point among the prediction-awaiting image component reference values.
[0146] In some embodiments of the present application, the determination unit 31 is further configured to construct a first sub-component linear model using the maximum first image component reference value after filtering, the maximum image component reference value to be predicted, and a preset initial linear model, construct a second sub-component linear model using the minimum first image component reference value after filtering, the minimum image component reference value to be predicted, and the preset initial linear model, obtain model parameters based on the first sub-component linear model and the second sub-component linear model, and construct the component linear model using the model parameters and the preset initial linear model.
[0147] In some embodiments of the present application, the determination unit 31 is further configured such that parameters of the component linear model include a multiplicative factor and an additive offset, calculate a first difference value between the maximum prediction-waiting image component reference value and the minimum prediction-waiting image component reference value, calculate a second difference value between the maximum first image component reference value and the minimum first image component reference value, set the multiplicative factor as a ratio of the first difference value and the second difference value, calculate a first product between the maximum first image component reference value and the multiplicative factor, and set the additive offset as the difference value between the maximum prediction-waiting image component reference value and the first product, or calculate a second product between the minimum first image component reference value and the multiplicative factor, and set the additive offset as the difference value between the minimum prediction-waiting image component reference value and the second product.
[0148] In some embodiments of the present application, the first image component is a luminance component, and the image component to be predicted is a first or second chrominance component, or the first image component is the first chrominance component, and the prediction-to-be-predicted image component is the luminance component or the second chrominance component; or the first image component is the second chrominance component, and the image component to be predicted is the luminance component or the first chrominance component; or The first image component is a first color component, and the image component to be predicted is a second color component or a third color component, or the first image component is the second color component, and the image component to be predicted is the first color component or the third color component; or The first image component is the third color component, and the image component to be predicted is the second color component or the first color component.
[0149] In some embodiments of the present application, the first color component is a red component, the second color component is a green component, and the third color component is a blue component.
[0150] In some embodiments of the present application, the first filtering process is downsampling filtering or low-pass filtering.
[0151] It should be noted that in the embodiments of the present application, when the above video component prediction method is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. Based on this understanding, the essential part of the technical solution of the embodiments of the present application, i.e., the part that contributes to the related art, may be embodied in the form of a software product, and the computer software product is stored in one storage medium and includes several instructions for causing an electronic device (which may be a mobile phone, a tablet computer, a personal computer, a personal digital assistant, a navigator, a digital telephone, a video telephone, a television, a sensing device, a server, etc.) to execute all or part of the method described in each embodiment of the present application. The above storage medium includes various media that can store program code, such as a U disk, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk. Thus, the embodiments of the present application are not limited to a specific combination of hardware and software.
[0152] In practical application, as shown in FIG. 9, a video content prediction device according to an embodiment of the present application includes: a memory 34 configured to store executable video content prediction instructions; and a processor 35 configured, when executing executable video content prediction instructions stored in said memory 34, to implement the steps of the video content prediction method provided in the above embodiments.
[0153] Correspondingly, an embodiment of the present application provides a computer-readable storage medium having video component prediction instructions stored thereon, which, when executed by the processor 35, realizes the steps of the video component prediction method provided in the above embodiment.
[0154] It should be noted here that the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, and has the same beneficial effects as the method embodiments. Technical details not disclosed in the embodiments of the storage medium and device of the present application can be understood by referring to the description of the embodiments of the method of the present application.
[0155] The above content is merely a specific embodiment of the present application, and the protection scope of the present application is not limited thereto. Any modifications or replacements that a person skilled in the art can easily think of within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims. [Industrial Applicability]
[0156] In the embodiment of the present application, the video component prediction device first determines a plurality of first image component reference values according to the reference value set of the first image component corresponding to the current block directly obtained, and then performs a filtering process according to the positions corresponding to the determined plurality of first image component reference values to construct a component linear model. In this way, the workload of the filtering process of the pixel points corresponding to the current block is reduced, i.e., the filtering operation is reduced, thereby reducing the complexity of constructing the component linear model, further reducing the complexity of video component prediction, improving prediction efficiency, and improving video encoding and decoding efficiency.
Claims
1. 1. A method for predicting an image component, comprising: determining a reference sample set of a first image component of the current block; determining a plurality of first image component reference samples from the first image component reference sample set, the plurality of first image component reference samples corresponding to four preset sample locations; performing a first filtering process on the plurality of first image component reference samples respectively to obtain a plurality of filtered first image reference samples; determining a prediction-to-be-predicted image component reference sample corresponding to the plurality of filtered first image reference samples, the prediction-to-be-predicted image component being an image component different from the first image component; determining parameters of a component linear model based on the plurality of filtered first image reference samples and the prediction-to-be-predicted image component reference samples, the component linear model representing a linear mapping relationship that maps the samples of the first image component to the samples of the prediction-to-be-predicted image component; performing a mapping operation on the reconstructed samples of the first image component of the current block based on the component linear model to obtain mapping samples; determining a prediction sample of the prediction-to-be-predicted image component of the current block based on the mapping sample; Image component prediction methods.
2. Determining a reference sample set for a first image component of a current block includes: determining adjacent samples of the current block as a reference sample set of the first image component; The method of claim 1 .
3. the neighboring samples of the current block include at least one of samples in one or more neighboring rows above the current block, and samples in one or more neighboring columns to the left of the current block; The method of claim 2 .
4. Determining a plurality of first image component reference samples from the first image component reference sample set includes: determining reference samples from samples in one or more adjacent rows above the current block and samples in one or more adjacent columns to the left of the current block based on preset positions, the number of the preset positions being four; determining the plurality of first image component reference samples based on the determined reference samples. The method of claim 3 .
5. Determining parameters of a component linear model based on the plurality of filtered first image reference samples and the to-be-predicted image component reference samples includes: determining a maximum filtered first image component reference sample and a minimum filtered first image component reference sample based on the plurality of filtered first image reference samples; determining a maximum prediction-waiting image component reference sample corresponding to the maximum first image component reference sample after the filtering, and a minimum prediction-waiting image component reference sample corresponding to the minimum first image component reference sample after the filtering; determining parameters of the component linear model based on the filtered maximum first image component reference sample, the filtered minimum first image component reference sample, the maximum prediction-awaiting image component reference sample, and the minimum prediction-awaiting image component reference sample; The method of claim 1 .
6. performing a mapping operation on reconstructed samples of the first image component of the current block based on the component linear model to obtain mapping samples; performing a second filtering operation on the reconstructed samples of the first image component to obtain second filtered samples of the reconstructed samples of the first image component; and performing a mapping process on the second filtered samples based on the component linear model to determine the mapped samples. The method of claim 1 .
7. 1. A method for predicting an image component, comprising the steps of: determining a reference sample set of a first image component of the current block; determining a plurality of first image component reference samples from the first image component reference sample set, the plurality of first image component reference samples corresponding to four preset sample locations; performing a first filtering process on the plurality of first image component reference samples respectively to obtain a plurality of filtered first image reference samples; determining a prediction-to-be-predicted image component reference sample corresponding to the plurality of filtered first image reference samples, the prediction-to-be-predicted image component being an image component different from the first image component; determining parameters of a component linear model based on the plurality of filtered first image reference samples and the prediction-to-be-predicted image component reference samples, the component linear model representing a linear mapping relationship that maps the samples of the first image component to the samples of the prediction-to-be-predicted image component; performing a mapping operation on the reconstructed samples of the first image component of the current block based on the component linear model to obtain mapping samples; determining a prediction sample of the prediction-to-be-predicted image component of the current block based on the mapping sample; Image component prediction methods.
8. Determining a reference sample set for a first image component of a current block includes: determining adjacent samples of the current block as a reference sample set of the first image component; The method of claim 7 .
9. the neighboring samples of the current block include at least one of samples in one or more neighboring rows above the current block, and samples in one or more neighboring columns to the left of the current block; The method of claim 8 .
10. Determining a plurality of first image component reference samples from the first image component reference sample set includes: determining reference samples from samples in one or more adjacent rows above the current block and samples in one or more adjacent columns to the left of the current block based on preset positions, the number of the preset positions being four; determining the plurality of first image component reference samples based on the determined reference samples. The method of claim 9 .
11. Determining parameters of a component linear model based on the plurality of filtered first image reference samples and the to-be-predicted image component reference samples includes: determining a maximum filtered first image component reference sample and a minimum filtered first image component reference sample based on the plurality of filtered first image reference samples; determining a maximum prediction-waiting image component reference sample corresponding to the maximum first image component reference sample after the filtering, and a minimum prediction-waiting image component reference sample corresponding to the minimum first image component reference sample after the filtering; determining parameters of the component linear model based on the filtered maximum first image component reference sample, the filtered minimum first image component reference sample, the maximum prediction-awaiting image component reference sample, and the minimum prediction-awaiting image component reference sample; The method of claim 7 .
12. performing a mapping operation on reconstructed samples of the first image component of the current block based on the component linear model to obtain mapping samples; performing a second filtering operation on the reconstructed samples of the first image component to obtain second filtered samples of the reconstructed samples of the first image component; and performing a mapping process on the second filtered samples based on the component linear model to determine the mapped samples. The method of claim 7 .
13. 1. A decoding device, comprising: a memory configured to store executable video component prediction instructions; A processor configured to implement the method of any one of claims 1 to 6 when executing executable video component prediction instructions stored in the memory.
14. 1. An encoding device, comprising: a memory configured to store executable video component prediction instructions; A processor configured to implement the method of any one of claims 7 to 12 when executing executable video component prediction instructions stored in the memory.
15. A non-volatile computer readable medium having stored thereon a bitstream obtained by the method for predicting image components according to any one of claims 7 to 12 executed by one or more processors.
Citation Information
Patent Citations
Image processing apparatus and image processing method
JP2013110502A
Video image component prediction method and apparatus - Computer storage medium
JP7518065B2
Reference Pixel Reduction for Intra LM Prediction
US20130188703A1
