RU2777779C1 - Obtaining a parameter for in-frame prediction - Google Patents

Obtaining a parameter for in-frame prediction Download PDF

Info

Publication number
RU2777779C1
RU2777779C1 RU2021125411A RU2021125411A RU2777779C1 RU 2777779 C1 RU2777779 C1 RU 2777779C1 RU 2021125411 A RU2021125411 A RU 2021125411A RU 2021125411 A RU2021125411 A RU 2021125411A RU 2777779 C1 RU2777779 C1 RU 2777779C1
Authority
RU
Russia
Prior art keywords
samples
sample
chrominance
luminance
block
Prior art date
Application number
RU2021125411A
Other languages
Russian (ru)
Inventor
Кай Чжан
Ли ЧЖАН
Хунбинь Лю
Цзичжэн СЮЙ
Юэ Ван
Original Assignee
Бейджин Байтдэнс Нетворк Текнолоджи Ко., Лтд.
Байтдэнс Инк.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Бейджин Байтдэнс Нетворк Текнолоджи Ко., Лтд., Байтдэнс Инк. filed Critical Бейджин Байтдэнс Нетворк Текнолоджи Ко., Лтд.
Application granted granted Critical
Publication of RU2777779C1 publication Critical patent/RU2777779C1/en

Links

Images

Abstract

FIELD: video technology.
SUBSTANCE: invention relates to the field of video processing, in particular to video encoding. A video processing method is proposed, which includes determining, for conversion between the current video block of video, which is a chroma block, and the encoded representation of the video, the parameters of the inter-component linear model (CCLM) based on two or four chroma samples and/or corresponding brightness samples; and performing the transformation based on the definition.
EFFECT: providing a balanced compromise between complexity and increased compression efficiency.
22 cl, 31 dwg

Description

Область техники, к которой относится изобретениеThe field of technology to which the invention belongs

Настоящее изобретение относится к технологиям, устройствам и системам для обработки видео.The present invention relates to technologies, devices and systems for video processing.

Уровень техникиState of the art

Несмотря на прогресс в области сжатия видео, цифровое видео до сих пор занимает наибольшую полосу пропускания в интернете и других цифровых коммуникационных сетях. По мере увеличения количества подключенных устройств пользователя, выполненных с возможностью принимать и отображать видео, ожидается продолжение увеличения запроса полосы пропускания для использования цифрового видео.Despite advances in video compression, digital video still occupies the most bandwidth on the Internet and other digital communications networks. As the number of connected user devices capable of receiving and displaying video increases, the bandwidth demand for digital video use is expected to continue to increase.

Раскрытие сущности изобретенияDisclosure of the essence of the invention

В настоящем раскрытии представлены описания устройств, систем и способов, относящихся к цифровой обработке видео, и, например, получение упрощенной линейной модели для режима предсказания межкомпонентной линейной модели (CCLM) при кодировании видео. Описанные способы могут быть применены как к существующим стандартам кодирования видео (например, высокоэффективное кодирование видео (HEVC)), так и к перспективным стандартам кодирования видео (например, универсальное кодирование видео (VVC)) или к кодекам.The present disclosure provides descriptions of devices, systems, and methods related to digital video processing, and, for example, deriving a simplified linear model for inter-component linear model prediction mode (CCLM) in video coding. The described techniques can be applied to both existing video coding standards (eg, High Efficiency Video Coding (HEVC)), and future video coding standards (eg, Universal Video Coding (VVC)) or codecs.

В одном типичном аспекте для обеспечения способа обработки видео может быть использована технология по настоящему раскрытию. Способ содержит определение, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, параметров режима предсказания межкомпонентной линейной модели (CCLM) на основании выборок цветности, которые выбираются на основании W доступных верхних соседних выборках, W является целым числом; и выполнение преобразования на основании определения.In one exemplary aspect, the technology of the present disclosure may be used to provide a video processing method. The method comprises determining, for converting between the current video block, which is a chrominance block, and the encoded representation of the video, inter-component linear model (CCLM) prediction mode parameters based on chrominance samples that are selected based on W available upper neighbor samples, W being an integer ; and performing the conversion based on the determination.

В другом типичном аспекте для обеспечения способа обработки видео может быть использована технология по настоящему раскрытию. Способ содержит: определение, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, параметров режима предсказания межкомпонентной линейной модели (CCLM) на основании выборок цветности, которые выбираются на основании H доступных левых соседних выборках текущего блока видео; и выполнение преобразования на основании определения.In another exemplary aspect, the technology of the present disclosure may be used to provide a video processing method. The method comprises: determining, for converting between a current video block that is a chrominance block, and an encoded video representation, inter-component linear model (CCLM) prediction mode parameters based on chrominance samples that are selected based on H available left adjacent samples of the current video block; and performing the transformation based on the determination.

В другом типичном аспекте для обеспечения способа обработки видео может быть использована технология по настоящему раскрытию. Способ содержит: определение, для преобразования между текущим блоком видео, которое представляет собой блок цветности, и кодированным представлением видео, параметров межкомпонентной линейной модели (CCLM) на основании двух или четырех выборок цветности и/или соответствующих выборок яркости; и выполнение преобразования на основании определения.In another exemplary aspect, the technology of the present disclosure may be used to provide a video processing method. The method comprises: determining, for converting between the current video block, which is a chrominance block, and an encoded video representation, inter-component linear model (CCLM) parameters based on two or four chrominance samples and/or corresponding luma samples; and performing the transformation based on the determination.

В другом типичном аспекте для обеспечения способа обработки видео может быть использована технология по настоящему раскрытию. Способ содержит: выбор, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, выборки цветности на основании правила позиции, выборки цветности используются для получения параметров межкомпонентной линейной модели (CCLM); и выполнение преобразования на основании определения, в котором правило позиции указывает выбрать выборки цветности, которые расположены в пределах верхней строки и/или левого столбца текущего блока видео.In another exemplary aspect, the technology of the present disclosure may be used to provide a video processing method. The method comprises: selecting, for converting between the current video block, which is a chrominance block, and the encoded representation of the video, chroma samples based on a position rule, the chrominance samples are used to obtain inter-component linear model (CCLM) parameters; and performing a transformation based on the determination, wherein the position rule specifies to select chrominance samples that are located within the top row and/or left column of the current video block.

В другом типичном аспекте для обеспечения способа обработки видео может быть использована технология по настоящему раскрытию. Способ содержит: определение, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, позиции, на которых выборки яркости подвергнуты понижающей дискретизации, в котором выборки яркости после понижающей дискретизации используются для определения параметров межкомпонентной линейной модели (CCLM) на основании выборок цветности и выборок яркости после понижающей дискретизации, в котором выборки яркости после понижающей дискретизации находятся на позициях, соответствующих позициям выборок цветности, которые используются для получения параметров CCLM; и выполнение преобразования на основании определения.In another exemplary aspect, the technology of the present disclosure may be used to provide a video processing method. The method comprises: determining, for converting between the current video block, which is a chrominance block, and the encoded representation of the video, the positions at which the luminance samples are downsampled, in which the downsampled luminance samples are used to determine the parameters of the inter-component linear model (CCLM) based on chrominance samples and downsampled luminance samples, in which the downsampled luminance samples are at positions corresponding to positions of the chrominance samples that are used to derive the CCLM parameters; and performing the transformation based on the determination.

В другом типичном аспекте для обеспечения способа обработки видео может быть использована технология по настоящему раскрытию. Способ содержит: определение, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, способа для получения параметров межкомпонентной линейной модели (CCLM) с использованием выборок цветности и выборок яркости на основании условия кодирования, ассоциированного с текущим блоком видео; и выполнение преобразования на основании определения.In another exemplary aspect, the technology of the present disclosure may be used to provide a video processing method. The method comprises: determining, for converting between the current video block, which is a chrominance block, and the encoded video representation, a method for obtaining inter-component linear model (CCLM) parameters using chrominance samples and luma samples based on a coding condition associated with the current video block ; and performing the conversion based on the determination.

В другом типичном аспекте для обеспечения способа обработки видео может быть использована технология по настоящему раскрытию. Способ содержит: определение, для преобразования между текущим блоком видео, которое представляет собой блок цветности, и кодированным представлением видео, следует ли получать максимальные значения и/или минимальные значения компонента яркости и компонента цветности, которые используются для получения параметров межкомпонентной линейной модели (CCLM) на основании доступности левого соседнего блока и верхнего соседнего блока текущего блока видео; и выполнение преобразования на основании определения.In another exemplary aspect, the technology of the present disclosure may be used to provide a video processing method. The method comprises: determining, for converting between the current video block, which is a chrominance block, and the encoded video representation, whether the maximum values and/or minimum values of the luma component and the chrominance component should be obtained, which are used to obtain the parameters of the inter-component linear model (CCLM) based on the availability of the left neighbor block and the top neighbor block of the current video block; and performing the transformation based on the determination.

В еще одном типичном аспекте вышеописанный способ реализован в форме исполняемого машинного кода и сохраняется на машиночитаемом носителе.In yet another exemplary aspect, the method described above is implemented in the form of executable machine code and stored on a computer-readable medium.

В еще одном типичном аспекте предложено устройство, выполненное с возможностью выполнять вышеописанный способ. Устройство может включать в себя процессор, который запрограммирован для реализации этого способа.In yet another exemplary aspect, an apparatus is provided that is capable of performing the method described above. The device may include a processor that is programmed to implement this method.

В еще одном типичном аспекте устройство видеодекодера может реализовать описанный в настоящем документе способ.In yet another exemplary aspect, a video decoder apparatus may implement the method described herein.

Описанные выше и другие аспекты, и признаки раскрытой технологии более подробно изложены в описании и формуле изобретения со ссылкой на прилагаемые чертежи.The above and other aspects and features of the disclosed technology are set forth in more detail in the description and claims with reference to the accompanying drawings.

Краткое описание чертежейBrief description of the drawings

Фиг.1 показывает пример позиций выборок, используемых для получения весов линейной модели, используемой для межкомпонентного предсказания.1 shows an example of sample positions used to derive the weights of a linear model used for intercomponent prediction.

Фиг.2 показывает пример классификации соседних выборок на две группы.2 shows an example of classifying neighboring samples into two groups.

Фиг.3А показывает пример выборки цветности и ее соответствующих выборок яркости.3A shows an example of a chrominance sample and its corresponding luma samples.

Фиг.3B показывает пример фильтрации вниз для межкомпонентной линейной модели (CCLM) в модели совместного исследования (JEM).3B shows an example of down filtering for a cross-component linear model (CCLM) in a joint exploration model (JEM).

Фиг.4A и 4B показывают примеры только верхних соседних и только левых соседних выборок, используемых для предсказания на основании линейной модели, соответственно.4A and 4B show examples of top only neighbor and left neighbor only samples used for prediction based on a linear model, respectively.

Фиг.5 показывает пример прямой линии между минимальными и максимальными значениями яркости как функция соответствующих выборок цветности.5 shows an example of a straight line between the minimum and maximum luminance values as a function of the respective chrominance samples.

Фиг.6 показывает пример текущего блока цветности и его соседних выборок.6 shows an example of the current chrominance block and its adjacent samples.

Фиг.7 показывает пример разных частей блока цветности, предсказанного линейной моделью, используя только левые соседние выборки (LM-L) и линейной моделью с использованием только верхних соседних выборок (LM-A).7 shows an example of different parts of a chrominance block predicted by a linear model using only left neighbor samples (LM-L) and a linear model using only top neighbor samples (LM-A).

Фиг.8 показывает пример верхнего левого соседнего блока.Fig. 8 shows an example of the top left neighbor block.

Фиг.9 показывает пример выборок, используемые для получения линейной модели.Fig.9 shows an example of the samples used to obtain a linear model.

Фиг.10 показывает пример левого и нижне-левого столбцов и верхней и верхне-правой строк относительно текущего блока.10 shows an example of left and bottom-left columns and top and top-right rows relative to the current block.

Фиг.11 показывает пример текущего блока и его опорных выборок.11 shows an example of the current block and its reference samples.

Фиг.12 приведены примеры двух соседних выборок, когда доступны обе левая и верхняя соседние опорные выборки.12 shows examples of two adjacent samples when both left and top adjacent reference samples are available.

Фиг.13 показывает примеры двух соседних выборок, когда доступны только верхние соседние опорные выборки.13 shows examples of two adjacent samples when only top adjacent reference samples are available.

Фиг.14 показывает примеры двух соседних выборок, когда доступны только левые соседние опорные выборки.14 shows examples of two adjacent samples when only left adjacent reference samples are available.

Фиг.15 показывает примеры четырех соседних выборок, когда доступны обе левая, так и верхняя соседние опорные выборок.15 shows examples of four adjacent samples when both left and top adjacent reference samples are available.

Фиг.16 показывает пример таблиц поиска, используемых в производных LM.16 shows an example of lookup tables used in LM derivatives.

Фиг.17 показывает пример процесса получения LM параметра с 64 записями.17 shows an example of a process for obtaining an LM parameter with 64 entries.

Фиг.18А и фиг.18В показывает блок-схему алгоритма примера способа для обработки видео на основании некоторых реализаций раскрытой технологии.18A and 18B show a flowchart of an example method for video processing based on some implementations of the disclosed technology.

Фиг.19A и 19B показывают блок-схемы алгоритма примеров способов обработки видео на основании некоторых реализаций раскрытой технологии.19A and 19B show flowcharts of examples of video processing methods based on some implementations of the disclosed technology.

Фиг.20A-20С показывают блок-схемы алгоритма другого примера способа для обработки видео на основании некоторых реализаций раскрытой технологии.20A-20C show flowcharts of another exemplary method for video processing based on some implementations of the disclosed technology.

Фиг.21A и 21B являются блок-схемами примеров аппаратных платформ для реализации технологии декодирования или кодирования визуальной медийной информации, описанной в настоящем документе.21A and 21B are block diagrams of exemplary hardware platforms for implementing the visual media decoding or encoding technology described herein.

Фиг.22A и 22B показывают примеры процесса получения LM параметра с четырьмя записями. Фиг.22А показывает пример, когда и верхняя, так и левая соседние выборки доступны, и фиг.31B показывает пример, когда доступны только верхние соседние выборки и верхне-правая недоступна.Figa and 22B show examples of the process of obtaining the LM parameter with four entries. FIG. 22A shows an example where both top and left neighbor samples are available, and FIG. 31B shows an example where only top neighbor samples are available and top right is unavailable.

Фиг.23 показывает примеры соседних выборок для получения LIC параметров.23 shows examples of adjacent samples to obtain LIC parameters.

Осуществление изобретенияImplementation of the invention

Из-за увеличения потребности видео более высокого разрешения, в современных технологиях получили применение способы и технологии кодирования видео. Видеокодеки обычно включают в себя электронную цепь или программное обеспечение, которое сжимают или распаковывает цифровое видео и которые постоянно усовершенствуются для обеспечения более высокой эффективности кодирования. Видеокодек преобразует несжатое видео в сжатый формат или vice versa. Существуют сложные отношения между качеством видео, количеством данных, используемых для представления видео (определяется битовой скоростью), сложностью алгоритмов кодирования и декодирования, чувствительностью к потерям и ошибкам данных, простотой редактирования, произвольным доступом и сквозной задержкой (latency). Сжатый формат обычно соответствует стандартным спецификациям сжатия видео, например, стандарт высокоэффективного кодирования видео (HEVC) (также известный как H.265 или MPEG-H часть 2), стандарт универсального кодирования видео (VVC), который должен быть завершен, или другие текущие и/или перспективные стандарты кодирования видео.Due to the increasing demand for higher resolution video, video coding methods and techniques have been applied in modern technology. Video codecs typically include electronic circuitry or software that compresses or decompresses digital video and is constantly being improved to provide higher coding efficiency. The video codec converts uncompressed video to a compressed format, or vice versa. There are complex relationships between video quality, amount of data used to represent video (determined by bit rate), complexity of encoding and decoding algorithms, sensitivity to data loss and error, ease of editing, random access, and end-to-end latency. The compressed format generally conforms to standard video compression specifications, such as the High Efficiency Video Coding (HEVC) standard (also known as H.265 or MPEG-H Part 2), the Universal Video Coding (VVC) standard to be completed, or other current and /or future video coding standards.

Варианты осуществления раскрытой технологии могут применяться к существующим стандартам кодирования видео (например, HEVC, H.265) и перспективным стандартам для повышения производительности обработки. В настоящем документе для улучшения читаемости описания используются заголовки раздела и никоем образом описание или варианты осуществления (и/или реализации) не ограничиваются только соответствующими разделами.Embodiments of the disclosed technology may be applied to existing video coding standards (eg, HEVC, H.265) and future standards to improve processing performance. Section headings are used throughout this document to improve the readability of the description, and in no way is the description or embodiments (and/or implementations) limited to the respective sections.

1. Варианты осуществления межкомпонентного предсказания1. Embodiments of intercomponent prediction

Межкомпонентное предсказание представляет собой форму предсказания цветности к яркости, которое имеет хорошо сбалансированный компромисс между сложностью и повышением эффективности сжатия.Intercomponent prediction is a form of chroma-to-luminance prediction that has a well-balanced trade-off between complexity and increased compression efficiency.

1.1 Примеры межкомпонентной линейной модели (CCLM)1.1 Intercomponent Linear Model (CCLM) Examples

В некоторых вариантах осуществления для уменьшения межкомпонентной избыточности, в JEM используется режим предсказания межкомпонентной линейной модели (CCLM) (также называемого как LM), для которого предсказываются выборки цветности на основании восстановленных выборок яркости того же CU с использованием линейной модели следующим образом:In some embodiments, to reduce inter-component redundancy, JEM uses the inter-component linear model (CCLM) prediction mode (also referred to as LM), for which chrominance samples are predicted based on reconstructed luminance samples of the same CU using a linear model as follows:

Figure 00000001
Figure 00000001

Figure 00000002
представляет собой предсказанные выборки цветности в CU и
Figure 00000003
представляет собой восстановленные выборки яркости после понижающей дискретизации одинакового CU для цветовых форматов 4:2:0 или 4:2:2, где
Figure 00000003
представляет собой восстановленные выборки яркости одного и того же CU для цветового формата 4:4:4. CCLM параметры α и β получены путем минимизации ошибок регрессии между соседними восстановленными выборками яркости и цветности вокруг текущего блока следующим образом:
Figure 00000002
is the predicted chrominance samples in the CU and
Figure 00000003
represents the downsampled reconstructed luma samples of the same CU for 4:2:0 or 4:2:2 color formats, where
Figure 00000003
represents the reconstructed luminance samples of the same CU for the 4:4:4 color format. The CCLM parameters α and β are obtained by minimizing the regression errors between adjacent reconstructed luma and chrominance samples around the current block as follows:

Figure 00000004
Figure 00000004

Figure 00000005
представляет собой исходные (для цветного формата 4:4:4) или с понижающей дискретизацией (для цветных форматов 4:2:0 или 4:2:2) верхние и левые соседние восстановленные выборки яркости или исходные и левые соседние восстановленные выборки яркости,
Figure 00000006
представляет верхние и левые соседние восстановленные выборки цветности и значение
Figure 00000007
равно удвоенной минимальной ширине и высоты текущего блока кодирования цветности.
Figure 00000005
represents the original (for 4:4:4 color format) or downsampled (for 4:2:0 or 4:2:2 color formats) top and left adjacent reconstructed luma samples, or the original and left adjacent reconstructed luma samples,
Figure 00000006
represents the top and left adjacent reconstructed chrominance samples and value
Figure 00000007
is equal to twice the minimum width and height of the current chrominance coding block.

В некоторых вариантах осуществления и для блока кодирования с квадратной формой напрямую применяются вышеприведенные два уравнения. В других вариантах осуществления и для неквадратного блока кодирования сначала выполняется субдисретизация соседних выборок более длинной границы для получения одинакового количества выборок, что и для более короткой границы. На фиг.1 показано местоположение левой и верхней восстановленных выборок и выборка текущего блока, используемая в CCLM режиме.In some embodiments, the above two equations are directly applied to the square shaped coding block. In other embodiments, and for a non-square coding block, adjacent samples of the longer boundary are first subsampled to obtain the same number of samples as the shorter boundary. 1 shows the location of the left and top reconstructed samples and the current block sample used in the CCLM mode.

В некоторых вариантах осуществления выполняется вычисление минимизации ошибок регрессии как часть процесса декодирования, не так же, как операция поиска кодера, поэтому синтаксис не используется для передачи значений α и β.In some embodiments, the regression error minimization calculation is performed as part of the decoding process, not in the same way as the encoder lookup operation, so the syntax is not used to pass the values of α and β.

В некоторых вариантах осуществления CCLM режим предсказания также включает в себя предсказание между двумя компонентами цветности, например, компонент Cr (красный-разница) предсказывается из компонента Cb (голубой-разница). Вместо использования восстановленного сигнала выборки в остаточной области применяется CCLM Cb-to-Cr предсказание. Это реализуется путем добавления взвешенного восстановленного Cb остатка к исходному Cr внутреннему предсказанию для формирования окончательного Cr предсказания:In some embodiments, the CCLM prediction mode also includes prediction between two chrominance components, for example, the Cr (red-difference) component is predicted from the Cb (cyan-difference) component. Instead of using the reconstructed sample signal in the residual region, CCLM Cb-to-Cr prediction is applied. This is done by adding the weighted reconstructed Cb residual to the original Cr intra prediction to form the final Cr prediction:

Figure 00000008
Figure 00000008

Figure 00000009
представляет собой восстановленную Cb выборку остатка на позиции (i, j).
Figure 00000009
represents the reconstructed Cb sample of the remainder at position (i, j).

В некоторых вариантах осуществления коэффициент α масштабирования может быть получен аналогичным образом, как в CCLM предсказании яркости к цветности. Единственное отличие заключается в добавлении стоимости регрессии относительно значения α по умолчанию в функцию ошибки, так что полученный коэффициент масштабирования смещен к значению по умолчанию -0.5 следующим образом:In some embodiments, the scaling factor α may be obtained in a similar manner as in CCLM luminance-to-chrominance prediction. The only difference is the addition of the regression cost about the default value of α to the error function, so that the resulting scaling factor is biased towards the default value of -0.5 as follows:

Figure 00000010
Figure 00000010

Figure 00000011
представляет собой соседние восстановленные Сb выборки,
Figure 00000012
представляет собой соседние восстановленные Cr выборки и λ равна
Figure 00000013
.
Figure 00000011
is the adjacent reconstructed Cb samples,
Figure 00000012
is the adjacent reconstructed Cr samples and λ is equal to
Figure 00000013
.

В некоторых вариантах осуществления CCLM режим предсказания яркости к цветности добавляется в виде одного дополнительного режима внутрикадрового предсказания цветности. На стороне кодера для выбора режима внутрикадрового предсказания цветности добавляется еще одна RD проверка стоимости для компонентов цветности. Когда используются режимы внутрикадрового предсказания, отличные от CCLM режима предсказания яркости к цветности, для компонентов цветности CU, используется CCLM Cb-to-Cr предсказание для предсказания Cr компонента.In some embodiments, the CCLM luminance-to-chrominance prediction mode is added as one additional intra-frame chrominance prediction mode. On the encoder side, another RD cost check for the chrominance components is added to select the intra-frame chroma prediction mode. When intra-frame prediction modes other than CCLM luminance-to-chrominance prediction mode are used for CU chrominance components, CCLM Cb-to-Cr prediction is used to predict the Cr component.

1.2 Примеры множественной модели CCLM1.2 Multiple CCLM Model Examples

В JEM используют два CCLM режима: режим одной CCLM модели и режим множественной CCLM модели (MMLM). Как указано названием, для предсказания выборок цветности режим одной CCLM модели использует одну линейную модель из выборок яркости для всего CU, и MMLM может использовать две модели.JEM uses two CCLM modes: single CCLM model mode and multiple CCLM model (MMLM) mode. As indicated by the name, for chrominance sample prediction, the CCLM single model mode uses one linear model from the luma samples for the entire CU, and MMLM can use two models.

В MMLM соседние выборки яркости и соседние выборки цветности текущего блока классифицируются на две группы, каждая группа используется в качестве учебного набора для получения линейной модели (т.е. конкретные α и β получают для конкретной группы). Более того, выборки текущего блока яркости также классифицируются на основании того же правила для классификации соседних выборок яркости.In MMLM, neighboring luminance samples and neighboring chrominance samples of the current block are classified into two groups, each group is used as a training set to obtain a linear model (ie, specific α and β are obtained for a specific group). Moreover, the samples of the current luma block are also classified based on the same rule for classifying neighboring luma samples.

Фиг.2 показывает пример классификации соседних выборок на две группы. Пороговое значение рассчитывается как среднее значение соседних восстановленных выборок яркости. Соседняя выборка с Rec′L[x,y] <= Пороговое значение классифицируется в группу 1; в то время как соседняя выборка с Rec′L[x,y] > Пороговое значение классифицируется в группу 2.2 shows an example of classifying neighboring samples into two groups. The threshold value is calculated as the average of adjacent reconstructed luma samples. Adjacent sample with Rec′ L [x,y] <= Threshold is classified into group 1; while an adjacent sample with Rec′ L [x,y] > Threshold is classified into group 2.

Figure 00000014
Figure 00000014

1.3 Примеры фильтров понижающей дискретизации в CCLM1.3 Examples of downsampling filters in CCLM

В некоторых вариантах осуществления и для выполнения межкомпонентного предсказания для формата 4:2:0 цветности, в котором 4 выборки яркости соответствуют 1 выборке цветности, восстановленный блок яркости должен быть подвергнут понижающей дискретизации для соответствия размеру сигнала цветности. Фильтр понижающей дискретизации по умолчанию, используемый в CCLM режиме, заключается в следующем:In some embodiments, and in order to perform intercomponent prediction for a 4:2:0 chrominance format in which 4 luma samples correspond to 1 chroma sample, the reconstructed luminance block must be downsampled to fit the chrominance signal size. The default downsampling filter used in CCLM mode is as follows:

Figure 00000015
Figure 00000015

Понижающая дискретизация предполагает фазовые отношения «типа 0», как показано на фиг.3А для позиций выборок цветности относительно позиций выборок яркости, например, совместная выборка по горизонтали и интерстициальная выборка по вертикали.Downsampling assumes "type 0" phase relationships as shown in FIG. 3A for chrominance sample positions relative to luminance sample positions, eg, joint horizontal sampling and vertical interstitial sampling.

В качестве фильтра по умолчанию используется примерный 6-отводной фильтр понижающей дискретизации, определенный в (6), как для режима одной CCLM мидели, так и для режима множественной CCLM модели.The default filter is the exemplary 6-tap downsampling filter defined in (6) for both single CCLM midsection mode and multiple CCLM model mode.

В некоторых вариантах осуществления и для MMLM режима кодер может альтернативно выбрать один из четырех дополнительных фильтров понижающей дискретизации яркости, которые будут применяться для предсказания в CU, и отправить индекс фильтра для указания, который из них используется. Четыре выбранных фильтра понижающей дискретизации для MMLM режима, как показано на фиг.3В, представляют собой следующие:In some embodiments and for MMLM mode, the encoder may alternatively select one of the four additional luminance downsampling filters to be applied for prediction at the CU and send a filter index to indicate which one is used. The four selected downsampling filters for the MMLM mode, as shown in FIG. 3B, are as follows:

Figure 00000016
Figure 00000016

1.4 Многонаправленная LM (MDLM)1.4 Multidirectional LM (MDLM)

Данная используемая реализация предлагает многонаправленную LM (MDLM). В MDLM используются два дополнительных CCLM режима: LM-A, в котором параметры линейной модели получают только на основании верхних соседних (или выше соседних) выборок, как показано на фиг.4А, и LM-L, в котором параметры линейной модели получают только на основании левых соседних выборок, как показано на фиг.4В.This current implementation offers multi-directional LM (MDLM). MDLM uses two additional CCLM modes: LM-A, in which the linear model parameters are only obtained based on the top adjacent (or higher adjacent) samples, as shown in FIG. 4A, and LM-L, in which the linear model parameters are obtained only on the basis of the left adjacent samples, as shown in Fig.4B.

1.5 Упрощение межкомпонентной линейной модели1.5 Simplification of the intercomponent linear model

Данная используемая реализация предлагает заменить LMS алгоритм параметров α и β линейной модели путем уравнения прямой, так называемого двухточечного способа. 2 точки (пара яркости и цветности) (A, B) являются минимальными и максимальными значениями внутри набора соседних выборок яркости, как показано на фиг.5This used implementation proposes to replace the LMS algorithm of the parameters α and β of the linear model by a straight line equation, the so-called two-point method. The 2 points (luma and chrominance pair) (A, B) are the minimum and maximum values within a set of adjacent luma samples, as shown in Fig. 5

Здесь параметры α и β линейной модели получают в соответствии со следующим уравнением:Here, the parameters α and β of the linear model are obtained according to the following equation:

Figure 00000017
Figure 00000017

В некоторых вариантах осуществления следует не выполнять операцию разделения, необходимую при получении α, и следует заменить умножениями и сдвигами, как показано ниже:In some embodiments, the split operation required to obtain α should be omitted and should be replaced with multiplications and shifts, as shown below:

а= 0;a=0;

iShift = 16;iShift = 16;

int shift = (uiInternalBittDepth> 8)? uiInternalBitDepth - 9: 0;int shift = (uiInternalBittDepth > 8)? uiInternalBitDepth - 9:0;

int add = shift? 1 << (shift - 1): 0;int add = shift? 1 << (shift - 1): 0;

int diff = (MaxLuma- MinLuma + add) >> shift;int diff = (MaxLuma- MinLuma + add) >> shift;

if(diff> 0)if(diff > 0)

{{

int div = ((MaxChroma- MinChroma) * g_aiLMDivTableLow [diff - 1] + 32768) >> 16;int div = ((MaxChroma- MinChroma) * g_aiLMDivTableLow [diff - 1] + 32768) >> 16;

a = ((((MaxChroma- MinChroma) * g_aiLMDivTableHigh [diff - 1] + div + add) >> shift);a = ((((MaxChroma- MinChroma) * g_aiLMDivTableHigh [diff - 1] + div + add) >> shift);

}}

b = MinLuma [1] - ((a * MinLuma [0]) >> iShift);b = MinLuma[1] - ((a * MinLuma[0]) >> iShift);

Здесь S устанавливается равный iShift, α устанавливается равным a и β устанавливается равным b. Кроме того, g_aiLMDivTableLow и g_aiLMDivTablehigh являются двумя таблицами каждая с 512 записями, в котором каждая запись хранит 16-битное целое число.Here, S is set to iShift, α is set to a, and β is set to b. In addition, g_aiLMDivTableLow and g_aiLMDivTablehigh are two tables each with 512 entries, in which each entry stores a 16-bit integer.

Для получения предиктора цветности, что касается текущей VTM реализации, умножение заменяется целочисленной операцией как указано ниже:To get the chrominance predictor, as for the current VTM implementation, the multiplication is replaced by an integer operation as follows:

Figure 00000018
Figure 00000018

Данная реализация также проще, чем текущая VTM реализация, поскольку shift S всегда имеет одинаковое значение.This implementation is also simpler than the current VTM implementation, since shift S always has the same value.

1.6 Примеры CCLM в VVC1.6 CCLM examples in VVC

CCLM, как в JEM, принимается в VTM-2.0, но MM-CCLM в JEM не принимается в VTM-2.0. MDLM и упрощенная CCLM были приняты в VTM-3.0.CCLM as in JEM is accepted in VTM-2.0, but MM-CCLM in JEM is not accepted in VTM-2.0. MDLM and Simplified CCLM have been adopted in VTM-3.0.

1.7 Примеры компенсации локальной подсветки в JEM1.7 Examples of local illumination compensation in JEM

Компенсация локальной подсветки (LIC) основана на линейной модели для изменений освещения, используя коэффициент а масштабирования и смещение b. И используется или отключается адаптивно для каждого кодированного блока кодирования (CU) в режиме внешнего кодирования.Local Illumination Compensation (LIC) is based on a linear model for illumination changes using a scaling factor a and an offset b. And is used or disabled adaptively for each encoded coding unit (CU) in the intercoding mode.

Когда LIC применяется для CU, используется способ наименьших квадратных ошибок для получения параметров а и b с использованием соседних выборок текущего CU и их соответствующих опорных выборок. Более конкретно, как показано на фиг.23, используются субдискретизированные соседние выборки (2:1 субдискретизация) CU и соответствующие пиксели (идентифицированные информацией движения текущего CU или суб-CU) в опорном изображении. IC параметры получают и применяют для каждого направления предсказания отдельно.When LIC is applied to a CU, a least square error method is used to obtain parameters a and b using the current CU's neighbor samples and their respective reference samples. More specifically, as shown in FIG. 23, downsampled neighbor samples (2:1 subsampling) of CUs and corresponding pixels (identified by motion information of the current CU or sub-CU) in the reference picture are used. IC parameters are obtained and applied for each prediction direction separately.

Когда CU кодируется с использованием 2NX2N режима слияния, флаг LIC скопирован из соседних блоков аналогично копированию информации движения в режиме слияния; в противном случае, для CU сигнализируются флаг LIC для указания, применяется ли LIC или нет.When a CU is encoded using 2NX2N merge mode, the LIC flag is copied from adjacent blocks in the same way as motion information is copied in merge mode; otherwise, the LIC flag is signaled to the CU to indicate whether LIC is applied or not.

При использовании LIC для изображения требуется дополнительная проверка CU уровня RD для определения, применяется ли LIC или нет для CU. Когда LIC применяется для CU, используются сумма с удалением среднего значения абсолютной разности (MR-SAD) и сумма с удалением среднего значения абсолютной Адамара-преобразованной разности (MR-SATD), вместо SAD и SATD для поиска движения целочисленного пикселя и поиска движения дробного пикселя, соответственно.When using LIC for an image, an additional check of the RD level CU is required to determine if LIC is applied or not for the CU. When LIC is applied to CU, absolute difference mean sum removed (MR-SAD) and absolute Hadamard mean difference removed sum (MR-SATD) are used instead of SAD and SATD for integer pixel motion search and fractional pixel motion search , respectively.

С целью снижения сложности кодирования, в JEM применяется следующая схема кодирования: LIC отключен для всего изображения при отсутствии очевидного изменения освещения между текущим изображением и его опорными изображениями. Для идентификации данной ситуации, в кодере вычисляются гистограммы текущего изображения и каждого опорного изображения текущего изображения. Если разность гистограммы между текущим изображением и каждым опорным изображением текущего изображения меньше заданного порогового значения, LIC отключен для текущего изображения; в противном случае, LIC включен для текущего изображения.To reduce coding complexity, JEM uses the following coding scheme: LIC is disabled for the entire image when there is no obvious change in illumination between the current image and its reference images. To identify this situation, the encoder calculates the histograms of the current picture and each reference picture of the current picture. If the histogram difference between the current image and each reference image of the current image is less than a predetermined threshold, LIC is disabled for the current image; otherwise, LIC is enabled for the current image.

2 Примеры недостатков в существующих реализациях2 Examples of shortcomings in existing implementations

В JEM текущие реализации вводят двухточечный способ для замены LMS подхода LM режима. Хотя новый способ уменьшает количество дополнений и умножений в CCLM, но требуется решить следующие технические задачи:In JEM, current implementations introduce a point-to-point mode to replace the LMS approach of the LM mode. Although the new method reduces the number of additions and multiplications in CCLM, the following technical problems need to be solved:

1) для поиска минимальных и максимальных значений яркости, которые не являются дружескими к одной инструкции, требуется сравнение множества данных (SIMD) программного обеспечения.1) Finding minimum and maximum brightness values that are not friendly to a single instruction requires software data set (SIMD) comparison.

2) введены две таблицы поиска с 1024 записями хранения 16-битных чисел, с требованием 2K ROM памяти, которые не желательны в аппаратном обеспечении.2) Two lookup tables with 1024 16-bit number storage entries are introduced, requiring 2K ROM memory, which is not desirable in hardware.

3 Примерные способы для межкомпонентного предсказания при кодировании видео3 Exemplary methods for inter-component prediction in video coding

Варианты осуществления настоящего изобретения решают технические задачи существующих реализаций, обеспечивая, тем самым, кодирование видео с более высокой эффективностью кодирования и более низкой вычислительной сложностью. Упрощенные линейные модели для межкомпонентного предсказания, основанные на раскрытой технологии, могут усовершенствовать как существующие, так и будущие стандарты кодирования видео, которые пояснены в следующих примерах, описанных для различных реализаций. Примеры раскрытой технологии, представленные ниже, объясняют общие концепции и не предназначены для интерпретации как ограничения. В примере, если явно не указано иное, различные описанные в этих примерах признаки могут быть объединены.Embodiments of the present invention solve the technical problems of existing implementations, thereby providing video coding with higher coding efficiency and lower computational complexity. Simplified linear models for inter-component prediction based on the disclosed technology can enhance both existing and future video coding standards, which are explained in the following examples, described for various implementations. The examples of disclosed technology presented below explain the general concepts and are not intended to be interpreted as limiting. In the example, unless explicitly stated otherwise, the various features described in these examples may be combined.

В следующих примерах и способах термин «LM способ» включает в себя, но не ограничивается, LM режим в JEM или VTM и MMLM режим в JEM, левый-LM режим, который использует только левые соседние выборки для получения линейной модели, верхний-LM режим, который использует только верхние соседние выборки для получения линейной модели или других видов способов, которые используют восстановленные выборки яркости для получения блоков предсказания цветности. Все LM режимы, которые не являются LM-L, ни LM-A, называются нормальными LM режимами.In the following examples and methods, the term "LM method" includes, but is not limited to, LM mode in JEM or VTM and MMLM mode in JEM, left-LM mode, which uses only left adjacent samples to obtain a linear model, top-LM mode , which uses only upper neighbor samples to obtain a linear model, or other kinds of methods that use reconstructed luma samples to obtain chrominance prediction blocks. All LM modes that are neither LM-L nor LM-A are called normal LM modes.

В следующих примерах и способах Shift (x, s) определяется как

Figure 00000019
и Signshift (x, s) определяется какIn the following examples and methods, Shift(x, s) is defined as
Figure 00000019
and Signshift(x, s) is defined as

Figure 00000020
Figure 00000020

Здесь off является целым числом, таким как 0 или 2S-1.Here off is an integer such as 0 or 2 S-1 .

Высота и ширина токового блока цветности обозначены H и W соответственно.The height and width of the current chrominance block are denoted by H and W, respectively.

Фиг.6 показывает пример соседних выборок текущего блока цветности. Допустим, координата верхней левой выборки текущего блока цветности будет обозначаться как (x, y). Затем соседние выборки цветности (как показано на фиг.6) обозначены как:6 shows an example of adjacent samples of the current chrominance block. Let's say the coordinate of the top left sample of the current chrominance block will be denoted as (x, y). Next, adjacent chrominance samples (as shown in FIG. 6) are denoted as:

A: верхняя выборка слева: [x-1, y],A: top select left: [x-1, y],

B: верхняя средняя выборка слева: [x-1, y + H/2-1],B: top middle sample left: [x-1, y + H/2-1],

C: нижняя средняя выборка слева: [x-1, y + H/2],C: bottom middle sample left: [x-1, y + H/2],

D: нижняя выборка слева: [x-1, y + H-1],D: bottom sample left: [x-1, y + H-1],

E: продленная нижняя верхняя выборка слева: [x-1, y + H],E: extended lower left upper selection: [x-1, y + H],

F: продленная нижняя верхняя средняя выборка слева: [x-1, y+ H + H/2-1],F: extended lower upper middle sample left: [x-1, y + H + H/2-1],

G: продленная нижняя средняя выборка слева: [x-1, y + H + H/2],G: extended lower middle sample on the left: [x-1, y + H + H/2],

I: продленная нижняя выборка слева: [x-1, y + H + H-1],I: Extended lower selection on the left: [x-1, y + H + H-1],

J: левая выборка выше: [x, y-1],J: left sample above: [x, y-1],

K: левая средняя выборка выше: [x + W / 2-1, y-1],K: left middle sample above: [x + W / 2-1, y-1],

L: правая средняя выборка выше: [x + W / 2, y-1],L: Right mean sample above: [x+W/2, y-1],

M: правая выборка выше: [х + W-1, y-1],M: right sample above: [x + W-1, y-1],

N: продленная выше левая выборка выше: [x + W, y-1],N: extended above left sample above: [x + W, y-1],

O: продленная выше средняя выборка выше: [x + W + W / 2-1, y-1],O: extended above mean sample above: [x + W + W / 2-1, y-1],

P: продленная выше правая средняя выборка выше: [x + W + W / 2, y-1] иP: extended above right mean sample above: [x + W + W / 2, y-1] and

Q: продленная выше правая выборка выше: [x + W + W-1, y-1].Q: Extended right sample above: [x + W + W-1, y-1].

Пример 1. Параметры α и β в LM способах получают из выборок цветности на двух или более конкретных позицияхExample 1 Parameters α and β in LM Methods are Obtained from Chromaticity Samples at Two or More Specific Positions

a. Получение также зависит от соответствующих выборок яркости с пониженной дискретизацией выбранных выборок цветности. В качестве альтернативы получение также зависит от соответствующих выборок яркости выбранных выборок цветности, таких как, 4:4:4 цветного формата.a. The acquisition also depends on the corresponding downsampled luminance samples of the selected chrominance samples. Alternatively, the acquisition also depends on the respective luminance samples of the selected chrominance samples, such as 4:4:4 color format.

b. Например, параметры α и β в CCLM получают из выборок цветности на 2S (например, S = 2 или 3) позициях, такие как:b. For example, the parameters α and β in CCLM are derived from chrominance samples at 2 S (for example, S = 2 or 3) positions, such as:

i. Позиция {A, D, J, M};i. Position {A, D, J, M};

ii. Позиция {A, B, C, D, J, K, L, M};ii. Position {A, B, C, D, J, K, L, M};

iii. Позиция {A, I, J, Q};iii. Position {A, I, J, Q};

iv. Позиция {A, B, D, I, J, K, M, Q};iv. Position {A, B, D, I, J, K, M, Q};

v. Позиция {A, B, D, F, J, K, M, O};v. Position {A, B, D, F, J, K, M, O};

vi. Позиция {A, B, F, I, J, K, O, Q};vi. Position {A, B, F, I, J, K, O, Q};

vii. Позиция {A, C, E, I, J, L, N, Q};vii. Position {A, C, E, I, J, L, N, Q};

viii. Позиция {A, C, G, I, J, L, P, Q};viii. Position {A, C, G, I, J, L, P, Q};

ix. Позиция {A, C, E, G, J, L, N, P};ix. Position {A, C, E, G, J, L, N, P};

x. Позиция {A, B, C, D};x. Position {A, B, C, D};

xi. Позиция {A, B, D, I};xi. Position {A, B, D, I};

xii. Позиция {A, B, D, F};xi. Position {A, B, D, F};

xiii. Позиция {A, C, E, I};xiii. Position {A, C, E, I};

xiv. Позиция {A, C, G, I};xiv. Position {A, C, G, I};

xv. Позиция {A, C, E, G};xv. Position {A, C, E, G};

xvi. Позиция {J, K, L, M};xvi. Position {J, K, L, M};

xvii. Позиция {J, K, M, Q};xviii. Position {J, K, M, Q};

xviii. Позиция {J, K, M, O};xviii. Position {J, K, M, O};

хiх. Позиция {J, K, O, Q};xix. Position {J, K, O, Q};

xx. Позиция {J, L, N, Q};xx. Position {J, L, N, Q};

xxi. Позиция {J, L, P, Q};xxi. Position {J, L, P, Q};

xxii. Позиция {J, L, N, P};xxi. Position {J, L, N, P};

xxiii. Позиция {A, B, C, E, E, F, G, I};xxiii. Position {A, B, C, E, E, F, G, I};

xxiv. Позиция {J, K, L, M, N, O, P, Q}.xxiv. Position {J, K, L, M, N, O, P, Q}.

с. Например, параметры α и β в CCLM получают из выборок цветности на:With. For example, the parameters α and β in CCLM are derived from chrominance samples on:

i. Любая комбинация между {A, B, C, D, E, F, G, I} и {J, K, L, M, N, O, P, Q}, таких какi. Any combination between {A, B, C, D, E, F, G, I} and {J, K, L, M, N, O, P, Q}, such as

(а) позиция A и J;(a) position A and J;

(b) позиция B и K;(b) position B and K;

(c) позиция C и L;(c) position C and L;

(d) позиция D и M;(d) position D and M;

(e) позиция E и N;(e) position E and N;

(f) позиция F и O;(f) position F and O;

(g) позиция G и P;(g) position G and P;

(h) позиция I и Q;(h) position I and Q;

ii. Любые две разные позиции, извлеченные из {A, B, C, D, E, F, G}ii. Any two distinct positions extracted from {A, B, C, D, E, F, G}

(а) позиция A и B;(a) position A and B;

(b) позиция A и C;(b) position A and C;

(c) позиция A и D;(c) position A and D;

(d) позиция A и E;(d) position A and E;

(e) позиция A и F;(e) position A and F;

(f) позиция A и G;(f) position A and G;

(g) позиция A и I;(g) position A and I;

(h) позиция D и B;(h) position D and B;

(i) позиция D и C;(i) position D and C;

(j) позиция E и B;(j) position E and B;

(k) позиция E и C;(k) position E and C;

(l) позиция I и B;(l) position I and B;

(m) позиция I и C;(m) position I and C;

(n) позиция I и D;(n) position I and D;

(o) позиция I и E;(o) positions I and E;

(p) позиция I и F;(p) position I and F;

(q) позиция I и G;(q) position I and G;

iii. Любые две разные позиции, извлекли из {J, K, L, M, N, O, P, Q}iii. Any two different positions extracted from {J, K, L, M, N, O, P, Q}

(а) позиция J и K;(a) position J and K;

(b) позиция J и L;(b) position J and L;

(c) позиция J и M;(c) position J and M;

(d) позиция J и N;(d) position J and N;

(e) позиция J и O;(e) position J and O;

(f) позиция J и P;(f) position J and P;

(g) позиция J и Q;(g) position J and Q;

(h) позиция M и K;(h) position M and K;

(i) позиция M и L;(i) position M and L;

(j) позиция N и K;(j) position N and K;

(k) позиция N и L;(k) position N and L;

(l) позиция Q и K;(l) Q and K position;

(m) позиция Q и L;(m) Q and L positions;

(n) позиция Q и M;(n) position Q and M;

(o) позиция Q и N;(o) position Q and N;

(p) позиция Q и O;(p) Q and O position;

(q) позиция Q и P;(q) position Q and P;

(r) позиция Q и Q;(r) the position of Q and Q;

iv. В одном примере, если две выбранные позиции имеют одинаковое значение яркости, могут быть дополнительно проверены больше позиций.iv. In one example, if two selected positions have the same brightness value, more positions may be further tested.

d. Например, выполняется поиск не всех доступных выборок цветности для поиска минимального и максимального значений яркости для получения параметров α и β в CCLM с использованием двухточечного способа:d. For example, not all available chrominance samples are searched to find the minimum and maximum brightness values to obtain the parameters α and β in CCLM using the two-point method:

i. Одну выборку цветности из K выборок цветности (и их соответствующие выборки яркости с пониженной дискретизацией) включают в набор поиска. K может быть 2, 4, 6 или 8;i. One chroma sample of the K chroma samples (and their corresponding downsampled luma samples) is included in the search set. K may be 2, 4, 6 or 8;

(а) Например, если Rec[x,y] является верхней соседней выборкой, то включена в набор поиска только в том случае, если x%K == 0. Если Rec[x,y] является левой соседней выборкой, то включена в набор поиска только в том случае, если y%K == 0;(a) For example, if Rec[x,y] is the top adjacent sample, then only included in the search set if x%K == 0. If Rec[x,y] is the left neighbor, then included in search set only if y%K == 0;

ii. Только выборки цветности на конкретных позициях, таких как определенные в 1.a.i ~ 1.a.xxiv, включены в набор поиска.ii. Only chrominance samples at specific positions, such as those defined in 1.a.i ~ 1.a.xxiv, are included in the search set.

е. Для режима LM-L все выбранные выборки должны быть левыми соседними выборками.e. For LM-L mode, all selected samples must be left adjacent samples.

f. Для режима LM-A все выбранные выборки должны быть верхними соседними выборками.f. For LM-A mode, all selected samples must be upper adjacent samples.

g. Выбранные позиции могут быть зафиксированы, или они могут быть адаптивными:g. The selected positions can be fixed, or they can be adaptive:

i. В одном примере, какие позиции выбраны, может зависеть от ширины и высоты текущего блока цветности;i. In one example, which positions are selected may depend on the width and height of the current chroma block;

ii. В одном примере отображаются позиции, могут сигнализироваться из кодера в декодер, например, в VPS/SPS/PPS/ заголовок сегмента/заголовок группы плитки/плитка/CTU/CU/PU.ii. In one example, positions are displayed that can be signaled from an encoder to a decoder, for example, in VPS/SPS/PPS/segment header/tile group header/tile/CTU/CU/PU.

h. Выбранные выборки цветности используются для получения параметров α и β способом наименьших квадратов, как показано в уравнении (2) и уравнении (3). В уравнении (2) и уравнении (3) N является количеством выбранных выборок.h. The selected chrominance samples are used to obtain the parameters α and β by the least squares method, as shown in equation (2) and equation (3). In equation (2) and equation (3), N is the number of selected samples.

i. Пара выбранных выборок цветности используются для получения параметров α и β двухточечным способом.i. A pair of selected chrominance samples are used to obtain the parameters α and β in a point-to-point manner.

j. В одном примере, как выбрать выборки могут зависеть от доступности соседних блоков:j. In one example, how to select samples may depend on the availability of neighboring blocks:

i. Например, позиции A, D, J и M выбираются, если доступны как левые, так и верхние соседние блоки; позиции A и D выбираются, если доступен только левый соседний блок; и позиции J и M выбираются, если доступен только верхний соседний блок.i. For example, positions A, D, J, and M are selected if both left and top adjacent blocks are available; positions A and D are selected if only the left adjacent block is available; and positions J and M are selected if only the top neighboring block is available.

Пример 2. В первую очередь могут быть получены наборы параметров в CCLM режиме и затем объединены для формирования параметра окончательной линейной модели, используемой для кодирования одного блока. Предположим, что α1 и β1 получены из группы выборок цветности на конкретных позициях, обозначенных как группа 1, α2 и β2, полученные из группы выборок цветности на конкретных позициях, обозначенных как группа 2, ..., αn и βn полученные из группы выборок цветности на конкретных позициях, обозначаемых как группа N, то могут быть получены конечные α и β из (α1, β1), ... (αn, βn).Example 2 Parameter sets in CCLM mode may first be obtained and then combined to form the final linear model parameter used to encode one block. Assume that α 1 and β 1 are derived from the group of chrominance samples at specific positions designated as group 1, α 2 and β 2 are obtained from the group of chromaticity samples at specific positions designated as group 2, ..., α n and β n obtained from a group of chromaticity samples at specific positions, denoted as group N, then the final α and β from (α 1 , β 1 ), ... (α n , β n ) can be obtained.

а. В одном примере α рассчитывается как среднее значение α1, ... αn и β рассчитывается как среднее значение β1, ... βN.a. In one example, α is calculated as the average of α 1 ... α n and β is calculated as the average of β 1 , ... β N .

i. В одном примере α = SignsShift (α1 + α2, 1), β = SignShift (β1+ β2, 1).i. In one example, α = SignsShift (α 1 + α 2 , 1), β = SignShift (β 1 + β 2 , 1).

ii. В одном примере α=Shift (α1+ α2, 1), β = Shift(β1+ β2, 1).ii. In one example, α=Shift (α 1 + α 2 , 1), β = Shift(β 1 + β 2 , 1).

iii. Если (α1, β1) и (α2, β2) имеют разную точность, например, для получения CP предсказания цветности из его соответствующей выборки яркости с пониженной дискретизацией LR, рассчитывается какiii. If (α 1 , β 1 ) and (α 2 , β 2 ) are of different accuracy, for example, to obtain a chrominance prediction CP from its corresponding downsampled luminance sample LR is calculated as

Figure 00000021
с (α1, β1), но
Figure 00000021
with (α 1 , β 1 ), but

Figure 00000022
с (α2, β2) Sh1 не равен Sh2, то параметры должны быть смещены до объединения. Предположим, что Sh1 > Sh2, затем до объединения параметры должны быть смещены как:
Figure 00000022
with (α 2 , β 2 ) Sh 1 is not equal to Sh 2 , then the parameters must be shifted before combining. Assume that Sh 1 > Sh 2 , then prior to combining the parameters should be shifted as:

Figure 00000023
. Затем окончательная точность равна (α2, β2).
Figure 00000023
. Then the final precision is (α 2 , β 2 ).

Figure 00000024
Затем окончательная точность равна (α2, β2).
Figure 00000024
Then the final precision is (α 2 , β 2 ).

Figure 00000025
. Затем окончательная точность равна (α2, β2).
Figure 00000025
. Then the final precision is (α 2 , β 2 ).

(с)

Figure 00000026
. Затем окончательная точность равна (α1, β1)(With)
Figure 00000026
. Then the final precision is (α 1 , β 1 )

b. Некоторые примеры позиций в группы 1 и группы 2:b. Some examples of positions in groups 1 and groups 2:

i. Группа 1: Позиция A и D, группа 2: Позиция J и M.i. Group 1: Position A and D, group 2: Position J and M.

ii. Группа 1: Позиция A и I, группа 2: Позиция J и Q.ii. Group 1: Position A and I, group 2: Position J and Q.

iii. Группа 1: Позиция A и D, группа 2: Позиция E и I, где есть две группы, используемые для LM-L режима.iii. Group 1: Position A and D, group 2: Position E and I, where there are two groups used for LM-L mode.

iv. Группа 1: Позиция J и M, группа 2: Позиция N и Q, где есть две группы, используемые для LM-A режима.iv. Group 1: Position J and M, group 2: Position N and Q, where there are two groups used for LM-A mode.

v. Группа 1: Позиция A и B, группа 2: Позиция C и D, где есть две группы, используемые для LM-L режима.v. Group 1: Position A and B, group 2: Position C and D, where there are two groups used for LM-L mode.

vi. Группа 1: Позиция J и K, группа 2: Позиция L и M, где есть две группы, используемые для LM-A режима.vi. Group 1: Position J and K, group 2: Position L and M, where there are two groups used for LM-A mode.

Пример 3. Предположим, что два значения выборки цветности, обозначаемые в виде C0 и C1, и их соответствующие значения выборки яркости, обозначаемые как L0 и L1 (L0 <L1), являются входными значениями. Посредством выполнения двухточечного способа можно получить α и β с входными значениями, какExample 3 Suppose that two chrominance sample values, denoted as C0 and C1, and their respective luminance sample values, denoted as L0 and L1 (L0<L1), are input values. By performing the two-point method, one can obtain α and β with input values as

Figure 00000027
Figure 00000027

Битовые глубины выборок яркости и выборок цветности обозначены BL и BC. Одно или несколько упрощений для этой реализации включают в себя:Bit depths of luma samples and chrominance samples are denoted BL and BC. One or more simplifications for this implementation include:

а. α выводится как 0, если L1 равно L0. Альтернативно, когда L1 равен L0, вместо использования конкретного режима внутрикадрового предсказания (например, DM режим, DC или планарный) используется с использованием CCLM режима, для получения блока предсказания.a. α is output as 0 if L1 is equal to L0. Alternatively, when L1 is equal to L0, instead of using a specific intra prediction mode (eg, DM mode, DC, or planar), it is used using the CCLM mode to obtain a prediction block.

b. Операция разделения заменяется другими операциями без таблицы поиска. log2 операция может быть реализована путем проверки позиции наиболее значимой цифры.b. The split operation is replaced by other operations without a lookup table. log2 operation can be implemented by checking the position of the most significant digit.

i.

Figure 00000028
илиi.
Figure 00000028
or

Figure 00000029
Figure 00000029

ii.

Figure 00000030
илиii.
Figure 00000030
or

Figure 00000031
Figure 00000031

iii. Пример i или пример ii может быть выбран на основании значения L1-L0.iii. Example i or example ii may be selected based on the value of L1-L0.

(а) Например, пример i используется, если используется L1-L0 <T, в противном случае используется пример ii. Например, T может быть(a) For example, example i is used if L1-L0<T is used, otherwise example ii is used. For example, T might be

Figure 00000032
Figure 00000032

(b) Например, пример i используется, если

Figure 00000033
используется в противном случае пример ii.(b) For example, example i is used if
Figure 00000033
used otherwise example ii.

(c) Например, пример i используется, если

Figure 00000034
используется в противном случае пример ii.(c) For example, example i is used if
Figure 00000034
used otherwise example ii.

с. Операция разделения заменяется одной таблицей поиска, обозначенной как M [k].With. The split operation is replaced by a single lookup table, denoted as M[k].

i. Размер таблицы поиска, обозначенный V, меньше 2p, в котором p является целым числом, таким как 5, 6 или 7.i. The size of the lookup table, denoted V, is less than 2 p , where p is an integer such as 5, 6, or 7.

ii. Каждая запись таблицы поиска хранит F-бит целое число, например, F = 8 или 16.ii. Each lookup table entry stores the F-bit of an integer, such as F = 8 or 16.

В одном примере M [k-Z] = ((1 << S) + Off)/k, в котором S является целым числом, определяющим точность, например, S = F. Off является смещением, например, Off = (k + Z) >> 1. Z определяет начальную величину таблицы, например, Z = 1 или Z = 8 или Z = 32. Действительный ключ k запроса таблицы должен удовлетворять k> = Z.In one example, M[k-Z] = ((1 << S) + Off)/k, where S is an integer specifying precision, e.g. S = F. Off is an offset, e.g. Off = (k + Z) >> 1. Z defines the initial value of the table, for example, Z = 1 or Z = 8 or Z = 32. A valid table query key k must satisfy k>= Z.

iii. k=Shift(L1-L0, W) используется в качестве ключа для запроса таблицы поиска.iii. k=Shift(L1-L0, W) is used as the key to query the lookup table.

(а) В одном примере W зависит от BL, V и Z.(a) In one example, W depends on BL, V, and Z.

(b) В одном примере W также зависит от значения L1-L0.(b) In one example, W also depends on the value of L1-L0.

iv. Если k не является действительным ключом для запроса таблицы поиска (k-Z <0 или k-Z> = V), α выводится как 0.iv. If k is not a valid key to query the lookup table (k-Z < 0 or k-Z > = V), α is output as 0.

v. Например,v. For example,

Figure 00000035
или
Figure 00000035
or

Figure 00000036
Figure 00000036

vi. Чтобы получить предсказание цветности CP из соответствующей (например, с понижающей дискретизацией для 4:2:0) выборки яркости LR, вычисляется, какvi. To obtain the chrominance prediction CP from the corresponding (eg downsampled for 4:2:0) luma sample LR is computed as

Figure 00000037
или
Figure 00000037
or

Figure 00000038
Figure 00000038

vii. Sh может быть фиксированным числом, или может зависеть от значений C0, C1, L0, L1, используемых для вычисления α и β.vii. Sh may be a fixed number, or may depend on the values of C0, C1, L0, L1 used to calculate α and β.

(a) Sh может зависеть от BL, BC, V, S и D.(a) Sh may depend on BL, BC, V, S and D.

(b) D может зависеть от Sh.(b) D may depend on Sh.

viii. Размер таблицы поиска, обозначаемый V, равен 2P, в котором P является целым числом, таким как 5, 6, 7 или 8. В качестве альтернативы V установлено на 2P - M (например, M равен 0).viii. The size of the lookup table, denoted V, is 2 P , where P is an integer such as 5, 6, 7, or 8. Alternatively, V is set to 2 P - M (eg, M is 0).

ix. Предположим, α = P/Q (например, Q = L1-L0, P = C1-C0 или они получают другими способами), то α рассчитывается с таблицей поиска в виде α = Shift(P×M[k−Z], D) или α = SignShift(P×M[k−Z], D), в котором k является ключом (индекс) для запроса записи в таблице поиска.ix. Suppose α = P/Q (e.g. Q = L1-L0, P = C1-C0 or they get it in other ways), then α is calculated with the lookup table as α = Shift(P×M[k−Z], D ) or α = SignShift(P×M[k−Z], D), where k is the key (index) to query for the entry in the lookup table.

(a) В одном примере k получается из Q с функцией: k = f (Q).(a) In one example, k is obtained from Q with the function: k = f(Q).

(b) В одном примере k получается из Q и P, с функцией: k = f (Q, P).(b) In one example, k is obtained from Q and P, with the function: k = f(Q, P).

(c) В одном примере k является действительным в конкретном диапазоне [kMin, kMax]. Например, kMin = Z и kMax = V + Z.(c) In one example, k is valid in a specific range [kMin, kMax]. For example, kMin = Z and kMax = V + Z.

(d) в одном примере k = Shift (Q, W),(d) in one example k = Shift(Q, W),

а. W может зависеть от BL, V и Z.a. W may depend on BL, V and Z.

b. W может зависеть от значения Q.b. W may depend on the value of Q.

с. В одном примере, когда k рассчитывается как Shift (Q, W), то α рассчитывается с таблицей поиска в виде With. In one example, when k is calculated as Shift(Q, W), then α is calculated with a lookup table of the form

α = (Shift(P×M[k−Z], D)) << W или α = (Shift(P×M[k−Z], D)) << W or

α = (SignShift(P×M[k−Z], D)) << Wα = (SignShift(P×M[k−Z], D)) << W

(e) В одном примере k получается по-разному с различными значениями Q.(e) In one example, k is obtained differently with different values of Q.

а. Например, k = Q при Q <= kMax и k = Shift (Q, W) при Q> kMax. Например, W выбирается как наименьшее положительное целое число, что обеспечивает не превышение Shift (Q, W) над kMax.a. For example, k = Q when Q <= kMax and k = Shift(Q, W) when Q > kMax. For example, W is chosen as the smallest positive integer, which ensures that Shift (Q, W) does not exceed kMax.

b. Например, k = Min (kMax, Q).b. For example, k = Min(kMax, Q).

с. Например, k = Max (kMin, Min (kMax, Q)).With. For example, k = Max(kMin, Min(kMax, Q)).

(f) В одном примере, когда Q <0, -Q используется для замены Q в расчете. Тогда -α выводится.(f) In one example, when Q<0, -Q is used to replace Q in the calculation. Then -α is output.

(g) В одном примере, когда Q равно 0, то α устанавливается значением по умолчанию, такое как 0 или 1.(g) In one example, when Q is 0, then α is set to a default value such as 0 or 1.

(h) В одном примере, когда Q равно 2E E> = 0, то α = Shift(P, E) или α = SignShift(P, E).(h) In one example, when Q is 2 E E>=0, then α=Shift(P, E) or α=SignShift(P, E).

d. Все операции для получения LM параметров должны быть в пределах K битов, K может составлять 8, 10, 12, 16, 24 или 32.d. All operations to obtain LM parameters must be within K bits, K can be 8, 10, 12, 16, 24, or 32.

i. Если переходная переменная может превышать диапазон, представленный ограниченным битом, то должно быть выполнено ограничение или смещение вправо для нахождения в пределах ограниченных битов.i. If the transient variable can exceed the range represented by the restricted bit, then a constraint or right shift must be performed to be within the restricted bits.

Пример 4. Один из одного блока цветности может использовать множество линейных моделей и выбор множественной линейной модели зависит от позиции выборок цветности в пределах блока цветности.Example 4 One chrominance block can use multiple linear models and the choice of multiple linear models depends on the position of the chrominance samples within the chrominance block.

а. В одном примере LM-L и LM-A режим можно комбинировать в одном блоке цветности.a. In one example, LM-L and LM-A mode can be combined in one chrominance block.

b. В одном примере некоторые выборки предсказаны LM-L режимом и другие выборки предсказаны LM-A режимом.b. In one example, some samples are predicted by the LM-L mode and other samples are predicted by the LM-A mode.

i. Фиг.7 показывает пример. Предположим, что верхняя левая выборка находится на позиции (0,0). Выборки на позиции (x, y) с x> y (или x> = y) предсказывают LM-A и другие выборки предсказаны LM-L.i. Fig. 7 shows an example. Let's assume that the top left sample is at position (0,0). Samples at position (x, y) with x>y (or x>=y) predict LM-A and other samples are predicted by LM-L.

с. Предположим, что предсказание LM-L и LM-A для выборки на позиции (x, y) обозначается как Р1 (x, y) и Р2 (x, y) соответственно, то конечное предсказание Р (x, y) рассчитывается как взвешенная сумма P1 (x, y) и Р2 (x, y).With. Suppose that the LM-L and LM-A predictions for the sample at position (x, y) are denoted as P1 (x, y) and P2 (x, y) respectively, then the final prediction P (x, y) is calculated as a weighted sum P1 (x, y) and P2 (x, y).

i. P (x, y) = w1 * Р1 (x, y) + w2 * Р2 (x, y)i. P(x, y) = w1 * P1 (x, y) + w2 * P2 (x, y)

(а) w1 + w2 = 1.(a) w1 + w2 = 1.

ii. P (x, y) = (w1 * P1 (x, y) + w2 * P2 (x, y) + Offset) >> shift, в котором смещение может быть 0 или 1 << (shift-1) и Shift является целым числом, таким как 1, 2, 3 ....ii. P(x, y) = (w1 * P1 (x, y) + w2 * P2 (x, y) + Offset) >> shift in which offset can be 0 or 1 << (shift-1) and Shift is an integer such as 1, 2, 3....

(а) w1 + w2 = 1 << shift.(a) w1 + w2 = 1 << shift.

iii. P (x, y) = (w1 * P1 (x, y) + ((1 << shift) -w1) * P2 (x, y) + Offset) >> shift, в котором смещение может быть 0 или 1 << (shift-1) и shift является целым числом, таким как 1, 2, 3 ....iii. P(x, y) = (w1 * P1(x, y) + ((1 << shift) -w1) * P2 (x, y) + Offset) >> shift, in which the offset can be 0 or 1 < < (shift-1) and shift is an integer such as 1, 2, 3 ....

iv. w1 и w2 могут зависеть от позиции (x, y)iv. w1 and w2 can depend on position (x, y)

(а) Например, w1> w2 (например, w1 = 3, w2 = 1), если x <y,(a) For example, w1 > w2 (for example, w1 = 3, w2 = 1), if x < y,

(b) Например, w1 <w2 (например, w1 = 1, w2 = 3), если x> y,(b) For example, w1 < w2 (for example, w1 = 1, w2 = 3) if x > y,

(c) Например, w1 = w2 (например, w1 = 2, w2 = 2), если x == y,(c) For example, w1 = w2 (e.g. w1 = 2, w2 = 2) if x == y,

(d) Например, w1 - w2 увеличивается, если y-x увеличивается, когда x <y,(d) For example, w1 - w2 is incremented if y-x is incremented when x < y,

(e) Например, w2 - w1 увеличивается, если x-y увеличивается, когда x> y.(e) For example, w2 - w1 is incremented if x-y is incremented when x > y.

Пример 5. Предложено, что соседние выборки (включающие в себя выборки цветности и их соответствующие выборки яркости, которые могут быть подвергнуты понижающей дискретизации), делятся на N групп. Максимальное значение яркости и минимальное значение яркости для k-ой группы (с k = 0, 1, ..., N-1) обозначается как MaxLk и MinLk и их соответствующие значения цветности обозначаются как MaxCk и MinCk соответственно.Example 5 It is proposed that adjacent samples (including chrominance samples and their corresponding luma samples that can be downsampled) are divided into N groups. The maximum luminance value and the minimum luminance value for the k-th group (with k = 0, 1, ..., N-1) are denoted as MaxL k and MinL k and their respective chromaticity values are denoted as MaxC k and MinC k respectively.

а. В одном примере MахL рассчитывается как MaxL=f1(MaxLS0, MaxLS1, …, MaxLSm); MaxC is рассчитывается как MaxC=f2(MaxCS0, MaxCS1,…MaxCSm); MinL рассчитывается как MinL=f3(MinLS0, MinLS1,…MinLSm). MinC рассчитывается как MinC=f3(MinCS0, MinCS1, …, MinCSm). f1, f2, f3 и f4 являются функциями. Посредством выполнения двухточечного способа получают α и β с входом, как:a. In one example, MaxL is calculated as MaxL=f1(MaxL S0 , MaxL S1 , ..., MaxL Sm ); MaxC is calculated as MaxC=f2(MaxC S0 , MaxC S1 ,…MaxC Sm ); MinL is calculated as MinL=f3(MinL S0 , MinL S1 ,…MinL Sm ). MinC is calculated as MinC=f3(MinC S0 , MinC S1 , …, MinC Sm ). f1, f2, f3 and f4 are functions. By performing the two-point method, one obtains α and β with input as:

Figure 00000039
Figure 00000039

i. В одном примере f1, f2, f3 и f4 все представляют функцию усреднения.i. In one example, f1, f2, f3, and f4 all represent an averaging function.

ii. S0, S1, ... Sm являются индексами выбранных групп, которые используются для расчета α и β.ii. S0, S1, ... Sm are the indices of the selected groups, which are used to calculate α and β.

(1) Например, все группы используются, например, S0 = 0, S1 = 1, ... Sm = N-1.(1) For example, all groups are used, for example, S0 = 0, S1 = 1, ... Sm = N-1.

(2) Например, используются две группы, например, m = 1, S0=0, S1 = N-1. (2) For example, two groups are used, eg m=1, S0=0, S1=N-1.

(3) Например, не все группы используются, например, m <N-1, S0 = 0, S1 = 2, S3 = 4, ...(3) For example, not all groups are used, for example, m < N-1, S0 = 0, S1 = 2, S3 = 4, ...

b. В одном примере выборки (или выборки c пониженной дискретизацией), расположенные на верхних строках, могут быть классифицированы к одной группе и выборки (или выборки c пониженной дискретизацией), расположенные в левом столбце блока, можно классифицировать в другую группу.b. In one example, the samples (or downsamples) located on the top rows can be classified into one group and the samples (or downsamples) located in the left column of the block can be classified into another group.

c. В одном примере выборки (или выборки c пониженной дискретизацией) классифицируются на основании их местоположений или координат.c. In one example, samples (or downsampled samples) are classified based on their locations or coordinates.

i. Для примеров, выборки могут быть классифицированы на две группы.i. For examples, the samples can be classified into two groups.

(1) Для выборки с координатой (x, y), расположенной на верхней строке, классифицируется в группу S0, если х% P = Q, в котором P и Q являются целыми числами, например, P = 2, Q = 1, P = 2, Q = 0 или P = 4, Q = 0; В противном случае, классифицируется в группу S1.(1) For a sample with coordinate (x, y) located on the top row, is classified in group S0 if x% P = Q, in which P and Q are integers, for example, P = 2, Q = 1, P = 2, Q = 0 or P = 4, Q = 0; Otherwise, it is classified in group S1.

(2) Для выборки с координатой (x, y), расположенной в левом столбце, классифицируется в группу S0, если y% P = Q, в котором P и Q являются целыми числами, например, P = 2, Q = 1, P = 2, Q = 0 или P = 4, Q = 0; В противном случае, классифицируется в группу S1.(2) For a sample with coordinate (x, y) located in the left column, is classified into group S0 if y% P = Q, in which P and Q are integers, for example, P = 2, Q = 1, P = 2, Q = 0 or P = 4, Q = 0; Otherwise, it is classified in group S1.

(3) Только выборки в одной группе, такой как S0, используются для поиска MахC и MахL. Например, MaxL= MaxLS0 и MaxC= MaxCS0.(3) Only samples in one group, such as S0, are used to search for MaxC and MaxL. For example, MaxL= MaxLS0 and MaxC= MaxCS0.

d. В одном примере используются только частичные из соседних выборок (или выборки c пониженной дискретизацией), используются для разделенных на группы N.d. In one example, only partials from adjacent samples (or downsampled samples) are used for the grouped N.

e. Количество групп (например, N) и/или индексы выбранных групп и/или функции (f1/f2/f3/f4) могут быть предварительно определены или сигнализируются в SPS/VPS/PPS/заголовок изображений/заголовок сегмента/заголовок группы плитки/LCUs/LCU/CUs.e. Number of groups (e.g. N) and/or indexes of selected groups and/or functions (f1/f2/f3/f4) can be pre-defined or signaled in SPS/VPS/PPS/image header/segment header/tile group header/LCUs /LCU/CUs.

f. В одном примере, как выбрать выборки для каждой группы может зависеть от доступности соседних блоков.f. In one example, how to select samples for each group may depend on the availability of neighboring blocks.

i. Например, MaxL0 /MaxC0 и MinL0 /MinC0 определены из позиции A и D; MaxL1 /MaxC1 и MinL1 /MinC1 определены из позиции J и M, затем MaxL= (MaxL0 + MaxL1)/ 2, MaxC= (MaxC0 + MaxC1)/ 2, MinL= (MinL0 + MinL1)/ 2, MinC= (MinC0 + MinC1)/ 2, когда доступны как левые, так и верхние соседние блоки.i. For example, MaxL 0 /MaxC 0 and MinL 0 /MinC 0 are defined from positions A and D; MaxL 1 /MaxC 1 and MinL 1 /MinC 1 are defined from position J and M, then MaxL= (MaxL 0 + MaxL 1 )/ 2, MaxC= (MaxC 0 + MaxC 1 )/ 2, MinL= (MinL 0 + MinL 1 )/ 2, MinC= (MinC 0 + MinC 1 )/ 2 when both left and top adjacent blocks are available.

ii. Например, MaxL/MaxC и MinL/MinC непосредственно определены из позиции A и D, когда доступен только левый соседний блок.ii. For example, MaxL/MaxC and MinL/MinC are directly determined from position A and D when only the left adjacent block is available.

(1) Альтернативно, α и β устанавливаются равными значениям по умолчанию, если верхний соседний блок недоступен. Например, α = 0 и β = 1 << (bitDepth -1), в котором bitDepth является битовой глубиной выборок цветности.(1) Alternatively, α and β are set to default values if the top neighbor block is not available. For example, α = 0 and β = 1 << (bitDepth -1), in which bitDepth is the bit depth of the chrominance samples.

iii. Например, MaxL/MaxC и MinL/MinC непосредственно определены из позиции J и M, когда доступен только верхний соседний блок.iii. For example, MaxL/MaxC and MinL/MinC are directly determined from the J and M position when only the top adjacent block is available.

(1) Альтернативно, α и β устанавливаются равными значениям по умолчанию, если левый соседний блок недоступен. Например, α = 0 и β = 1 << (bitDepth -1), в котором bitDepth является битовой глубиной выборок цветности.(1) Alternatively, α and β are set to default values if the left neighbor block is not available. For example, α = 0 and β = 1 << (bitDepth -1), in which bitDepth is the bit depth of the chrominance samples.

g. В одном примере, как выбрать выборки для каждой группы может зависеть от ширины и высоты блока.g. In one example, how to select samples for each group may depend on the width and height of the box.

h. В одном примере, как выбрать выборки для каждой группы может зависеть от значений выборок.h. In one example, how to select samples for each group may depend on the values of the samples.

i, в одном примере, выбираются две выборки с наибольшим значением яркости и минимальным значением яркости для первой группы. И все остальные выборки находятся во второй группе.i, in one example, the two samples with the highest brightness value and the minimum brightness value for the first group are selected. And all other samples are in the second group.

Пример 6. Предлагается, что и как применить LM-L и LM-A режим, может зависеть от ширины (W) и высоты (H) текущего блока.Example 6. It is proposed that and how to apply LM-L and LM-A mode may depend on the width (W) and height (H) of the current block.

(а) Например, LM-L нельзя применять, если W> K × H. например, K = 2.(a) For example, LM-L cannot be applied if W > K × H. for example, K = 2.

(b) Например, LM-A нельзя применять, если H> K × W, например, K = 2.(b) For example, LM-A cannot be applied if H > K × W, for example, K = 2.

(c) Если один из LM-L и LM-A не может быть применен, не следует сигнализировать флаг для указания использования LM-L или LM-A.(c) If one of LM-L and LM-A cannot be applied, no flag should be signaled to indicate the use of LM-L or LM-A.

Пример 7. Флаг сигнализируется для указания, применяется ли CCLM режим. Контекст, используемый в арифметическом кодировании кода флага, может зависеть от того, применяет ли верхний левый соседний блок, как показано на фиг.8, CCLM режим или нет.Example 7 A flag is signaled to indicate whether the CCLM mode is applied. The context used in the arithmetic encoding of the flag code may depend on whether the upper left neighbor block, as shown in FIG. 8, applies the CCLM mode or not.

(a) В одном примере используется первый контекст, если верхний левый соседний блок применяет CCLM режим; и второй контекст используется, если верхний левый соседний блок не применяет CCLM режим.(a) In one example, the first context is used if the upper left neighbor block applies the CCLM mode; and the second context is used if the upper left neighbor block does not apply the CCLM mode.

(b) В одном примере, если верхний левый соседний блок недоступен, то рассматривается как не применение CCLM режима.(b) In one example, if the upper left neighbor block is not available, then it is considered as not applying the CCLM mode.

(c) В одном примере, если верхний левый соседний блок недоступен, то рассматривается как применение CCLM режима.(c) In one example, if the upper left neighbor block is not available, then it is considered as applying the CCLM mode.

(d) В одном примере, если верхний левый соседний блок не является внутрикодированным, то рассматривается как не применение CCLM режима.(d) In one example, if the top-left neighbor block is not intra-coded, then it is considered as not applying the CCLM mode.

(е) В одном примере, если верхний левый соседний блок не является внутрикодированным, то рассматривается как применение CCLM режима.(e) In one example, if the top-left neighbor block is not intra-coded, then it is considered as applying the CCLM mode.

Пример 8. Указания или кодовые слова DM и LM режимов могут быть закодированы в разных порядках от последовательности к последовательности/изображению к изображению/плитки к плитке/блока к блоку.Example 8 DM and LM mode indications or codewords can be encoded in different orders from sequence to sequence/image to image/tile to tile/block to block.

(a) Порядок кодирования указаний DM и LM (например, во-первых, код LM режима, если нет, то код DM режима; или, во-первых, код, будь то DM режим, если нет, то код LM режима) может быть зависеть от информации режима одного или нескольких соседних блоков.(a) The order in which the DM and LM indications are encoded (e.g., first, the LM mode code, if not, then the DM mode code; or, first, the code, whether it is DM mode, if not, then the LM mode code) may be dependent on the mode information of one or more neighboring blocks.

(b) В одном примере, когда верхний левый блок текущего блока доступен и кодируется с помощью LM режима, то сначала кодируется указание LM режима.(b) In one example, when the top left block of the current block is available and encoded with the LM mode, then the LM mode indication is encoded first.

(c) В качестве альтернативы, когда верхний левый блок текущего блока доступен и закодирован DM режимом, то сначала кодируется указание DM режима.(c) Alternatively, when the top left block of the current block is available and encoded by the DM mode, then the DM mode indication is encoded first.

(d) Альтернативно, когда верхний левый блок текущего блока доступен и закодирован non-LM режимом (например, DM режим или другие режимы внутрикадрового предсказания, за исключением LM), то сначала кодируется указание DM режима.(d) Alternatively, when the top left block of the current block is available and encoded in a non-LM mode (eg, DM mode or other intra prediction modes other than LM), then the DM mode indication is encoded first.

(е) В одном примере указания порядка могут быть сигнализированы в SPS/VPS/PPS/ заголовке изображения/заголовке сегмента/заголовке группы плитки/LCUs/LCU/CUs.(e) In one example, ordering indications may be signaled in SPS/VPS/PPS/image header/segment header/tile group header/LCUs/LCU/CUs.

Пример 9. В приведенных выше примерах выборки (или выборки с пониженной дискретизацией) могут быть расположены за пределами диапазона 2 × W верхних соседних выборок или 2 × H левых соседних выборок, как показано на фиг.6.Example 9 In the above examples, the samples (or downsampled samples) may be located outside the range of 2 x W top neighbor samples or 2 x H left neighbor samples, as shown in FIG.

(a) Посредством LM режима или LM-L режима может быть использована соседняя выборка RecC[x-1, y+d], в котором d находится в диапазоне [T, S]. T может быть меньше 0 и S может быть больше 2H-1. Например, Т = -4 и S = 3H. В другом примере T = 0, S = мах (2H, W + H). В еще одном примере, T = 0 и S = 4H.(a) By means of LM mode or LM-L mode, the adjacent sample RecC[x-1, y+d] can be used in which d is in the range [T, S]. T may be less than 0 and S may be greater than 2H-1. For example, T = -4 and S = 3H. In another example, T = 0, S = max(2H, W + H). In yet another example, T=0 and S=4H.

(b) Посредством LM режима или LM-А режима может быть использована соседняя выборка RecC[x+d, y], в котором d находится в диапазоне [T, S]. Т может быть меньше 0 и S может быть больше 2 W-1. Например, T = -4 и S = 3W. В другом примере Т = 0, S = max (2W, W + H). В еще одном примере, T = 0 и S = 4W.(b) By LM mode or LM-A mode, an adjacent sample of RecC[x+d, y] in which d is in the range [T, S] can be used. T may be less than 0 and S may be greater than 2 W-1. For example, T = -4 and S = 3W. In another example, T=0, S=max(2W, W+H). In yet another example, T=0 and S=4W.

Пример 10. В одном примере соседние выборки цветности и их соответствующие выборки яркости (могут быть подвергнуты пониженной дискретизации) подвергаются пониженной дискретизации до получения параметров α и β линейной модели, как раскрыты в примерах 1-7. Предположим, что ширина и высота текущего блока цветности является W и H.Example 10 In one example, adjacent chrominance samples and their corresponding luminance samples (may be downsampled) are downsampled to obtain linear model parameters α and β as disclosed in Examples 1-7. Let's assume that the width and height of the current chroma block is W and H.

(a) В одном примере, следует ли и как выполнять процесс понижающей дискретизации может зависеть от W и H.(a) In one example, whether and how the downsampling process should be performed may depend on W and H.

(b) В одном примере количество соседних выборок, используемых для получения параметров слева от текущего блока, и количество соседних выборок, используемых для получения параметров выше от текущего блока, должно быть одинаковым после процесса понижающей дискретизации.(b) In one example, the number of adjacent samples used to obtain parameters to the left of the current block and the number of adjacent samples used to obtain parameters above from the current block must be the same after the downsampling process.

(c) В одном примере соседние выборки цветности и их соответствующие выборки яркости (могут быть подвергнуты пониженной дискретизации) не подвергаются пониженной дискретизации, если W равно H.(c) In one example, adjacent chrominance samples and their corresponding luminance samples (may be downsampled) are not downsampled if W is equal to H.

(d) В одном примере соседние выборки цветности и их соответствующие выборки яркости (подвергаются пониженной дискретизации) слева от текущего блока, подвергаются пониженной дискретизации, если W<H.(d) In one example, adjacent chrominance samples and their corresponding luma samples (downsampled) to the left of the current block are downsampled if W<H.

(i) В одном примере одна выборка цветности в каждой выборке Н/W цветности выбирается для использования для получения α и β. Другие выборки цветности отбрасываются. Например, предположим, что R [0, 0] представляет верхнюю левую выборку текущего блока, затем R [-1, k * H/W], K от 0 до W-1, выбираются для использования для получения α и β.(i) In one example, one chroma sample in each H/W chroma sample is selected to be used to obtain α and β. Other chrominance samples are discarded. For example, suppose R[0, 0] represents the top left sample of the current block, then R[-1, k * H/W], K from 0 to W-1, are chosen to be used to obtain α and β.

(е) В одном примере соседние выборки цветности и их соответствующие выборки яркости (могут быть подвержены пониженной дискретизации) выше текущего блока, подвергаются пониженной дискретизации, если W> H.(e) In one example, neighboring chrominance samples and their corresponding luma samples (may be downsampled) above the current block are downsampled if W > H.

(ii) В одном примере для получения α и β выбирается одна выборка цветности в каждой из выборок цветности W/H. Другие выборки цветности отбрасываются. Например, предположим, что R [0, 0] представляет верхнюю левую выборку текущего блока, затем для получения α и β выбираются R [K * W/H, -1], K из 0 до H-1.(ii) In one example, one chrominance sample in each of the W/H chrominance samples is selected to obtain α and β. Other chrominance samples are discarded. For example, suppose R[0, 0] represents the top left sample of the current block, then R[K * W/H, -1], K from 0 to H-1 are selected to obtain α and β.

(ii) Фиг.9 показывает примеры выборок, которые должны быть выбраны, когда для получения α и β используются позиция D и позиция M на фиг.6, и выполняется пониженная дискретизация, когда W> H.(ii) Fig. 9 shows examples of samples to be taken when position D and position M in Fig. 6 are used to obtain α and β, and downsampling is performed when W > H.

Пример 11. Соседние исходно восстановленные выборки/с пониженной дискретизацией и/или исходно восстановленные выборки/с пониженной дискретизацией могут быть дополнительно уточнены перед использованием в процессе предсказания линейной модели или в процессе межкомпонентного цветового предсказания.Example 11 Adjacent original-recovered/downsampled samples and/or original-recovered/downsampled samples may be further refined before being used in a linear model prediction process or an intercomponent color prediction process.

(а) «должны быть уточнены» может относиться к обработке фильтрации.(a) "should be specified" may refer to filtering processing.

(b) «должны быть уточнены» может относиться к любой нелинейной обработке.(b) "should be refined" may refer to any non-linear processing.

(c) Предлагается, что выбираются несколько соседних выборок (включающие в себя выборки цветности и их соответствующие выборки яркости, которые могут быть подвергнуты пониженной дискретизации) для расчета C1, C0, L1 и L0 для получения α и β, например, α = (C1-C0) / (L1-L0) и β = C0 - αL0.(c) It is proposed that several adjacent samples (including the chrominance samples and their corresponding luminance samples that can be downsampled) be selected to compute C1, C0, L1 and L0 to obtain α and β, e.g., α = (C1 -C0) / (L1-L0) and β = C0 - αL0.

(d) В одном примере S соседние выборки яркости (могут быть подвергнуты пониженной дискретизации), обозначаемые как Lх1, Lх2, ..., LxS и их соответствующие выборки цветности, обозначаемые как Cx1, Cx2, ... CхS, используются для получения C0 и L0, и Т соседние выборки яркости (могут быть подвергнуты пониженной дискретизации), обозначаемые как Ly1, Ly2, ..., LyT и их соответствующие выборки цветности, обозначаемые как Cy1, Cy2, ... CyT используются для получения C1 и L1 как:(d) In one example, S adjacent luminance samples (may be downsampled), denoted as Lx1, Lx2, ..., LxS, and their respective chrominance samples, denoted as Cx1, Cx2, ... CxS, are used to obtain C0 and L0 and T adjacent luma samples (may be downsampled) denoted Ly1, Ly2, ..., LyT and their respective chrominance samples denoted Cy1, Cy2, ... CyT are used to derive C1 and L1 as :

(i) C0=f0(Cx1, Cx2, … CxS), L0=f1(Lx1, Lx2, … LxS), C1=f2(Cy1, Cy2, … CyT), L1=f4(Ly1, Ly2, … LyT). f0, f1, f2 и f3 являются любыми функциями.(i) C0=f0(Cx1, Cx2, … CxS), L0=f1(Lx1, Lx2, … LxS), C1=f2(Cy1, Cy2, … CyT), L1=f4(Ly1, Ly2, … LyT) . f0, f1, f2 and f3 are any functions.

(ii) В одном примере f0 идентична f1.(ii) In one example, f0 is identical to f1.

(iii) В одном примере f2 идентична f3.(iii) In one example, f2 is identical to f3.

(iv) В одном примере f0 f1 f2 f3 идентичны.(iv) In one example f0 f1 f2 f3 are identical.

1. Например, все функции являются функцией усреднения.1. For example, all functions are an averaging function.

(v) В одном примере S равна T.(v) In one example, S is equal to T.

1. В одном примере набор {x1, x2, ... xS} идентичен набору {y1, y2, ..., yТ}.1. In one example, the set {x1, x2, ... xS} is identical to the set {y1, y2, ..., yT}.

(vi) В одном примере Lх1, Lх2, ..., LхS выбираются в качестве наименьших выборок яркости группы выборок яркости.(vi) In one example, Lx1, Lx2, ..., LxS are selected as the smallest luminance samples of a group of luminance samples.

1. Например, группа выборок яркости включает в себя все соседние выборки, используемые в VTM-3.0, для получения линейных параметров CCLM.1. For example, a group of luminance samples includes all adjacent samples used in VTM-3.0 to obtain linear CCLM parameters.

2. Например, группа выборок яркости включает в себя частичные соседние выборки, используемые в VTM-3.0 для получения линейных параметров CCLM.2. For example, the group of luminance samples includes partial adjacent samples used in VTM-3.0 to obtain linear CCLM parameters.

а. Например, группа выборок яркости включает в себя четыре выборки, как показано на фиг.2-5.a. For example, the luminance sample group includes four samples as shown in FIGS. 2-5.

(vii) В одном примере Ly1, Ly2, ..., LyS выбираются в качестве самых больших выборок S яркости группы выборок яркости.(vii) In one example, Ly1, Ly2, ..., LyS are selected as the largest luminance samples S of the group of luminance samples.

1. Например, группа выборок яркости включает в себя все соседние выборки, используемые в VTM-3.0, для получения линейных параметров CCLM.1. For example, a group of luminance samples includes all adjacent samples used in VTM-3.0 to obtain linear CCLM parameters.

2. Например, группа выборок яркости включает в себя частичные соседние выборки, используемые в VTM-3.0, для получения линейных параметров CCLM.2. For example, the group of luminance samples includes partial adjacent samples used in VTM-3.0 to obtain linear CCLM parameters.

a. Например, группа выборок яркости включает в себя четыре выборки, как показано на фиг.2-5.a. For example, the luminance sample group includes four samples as shown in FIGS. 2-5.

Пример 12. Предлагается выбрать другие соседние или соседние выборки с пониженной дискретизацией на основании наибольшей соседней или соседней выборки с пониженной дискретизацией в данном наборе соседних или соседних выборок с пониженной дискретизацией.Example 12 It is proposed to select other downsampling neighbor or neighbor samples based on the largest downsampling neighbor or neighbor sample in a given set of downsampling neighbor or neighbor samples.

(a) В одном примере обозначается наибольшая соседняя или соседняя выборка с пониженной дискретизацией, расположенная на позиции (x0, y0). Затем для выбора других выборок могут быть использованы выборки в области (x0-d1, y0), (x0, y0-d2), (x0 + d3, y0), (x0, y0 + d4). Число целых чисел {d1, d2, d3, d4} может зависеть от позиции (x0, y0). Например, если (x0, y0) находится слева от текущего блока, то d1 = d3 = 1 и d2 = d4 = 0. Если (x0, y0) находится выше текущего блока, то d1 = d3 = 0 и d2 = d4 = 1.(a) In one example, the largest adjacent or downsampled adjacent sample located at position (x0, y0) is denoted. Then, samples in the region (x0-d1, y0), (x0, y0-d2), (x0 + d3, y0), (x0, y0 + d4) can be used to select other samples. The number of integers {d1, d2, d3, d4} may depend on the position (x0, y0). For example, if (x0, y0) is to the left of the current block, then d1 = d3 = 1 and d2 = d4 = 0. If (x0, y0) is above the current block, then d1 = d3 = 0 and d2 = d4 = 1 .

(b) В одном примере обозначают наименьшую соседнюю или соседнюю выборку с пониженной дискретизацией, расположенную на позиции (x1, y1). Затем для выбора других выборок могут быть использованы выборки в области (x1-d1, y1), (x1, y1-d2), (x1 + d3, y1), (x1, y1 + d4). Целые числа {d1, d2, d3, d4} могут зависеть от позиции (x1, y1). Например, если (x1, y1) находится слева от текущего блока, то d1 = d3 = 1 и d2 = d4 = 0. Если (x1, y1) находится выше текущего блока, то d1 = d3 = 0 и d2 = d4 = 1.(b) In one example, the smallest adjacent or downsampled adjacent sample located at position (x1, y1) is denoted. Then, samples in the region (x1-d1, y1), (x1, y1-d2), (x1 + d3, y1), (x1, y1 + d4) can be used to select other samples. The integers {d1, d2, d3, d4} may depend on the position (x1, y1). For example, if (x1, y1) is to the left of the current block, then d1 = d3 = 1 and d2 = d4 = 0. If (x1, y1) is above the current block, then d1 = d3 = 0 and d2 = d4 = 1 .

(c) В одном примере верхние выборки представляют выборки одной цветовой компоненты (например, цветовой компоненты яркости). Выборки, используемые в CCLM/межкомпонентной цвета процессе, могут быть получены соответствующими координатами второй цветовой компоненты.(c) In one example, the top samples represent samples of one color component (eg, the luminance color component). The samples used in the CCLM/intercomponent color process can be obtained by corresponding coordinates of the second color component.

(d) Аналогичный способ можно использовать для получения наименьших выборок.(d) A similar method can be used to obtain the smallest samples.

Пример 13. В приведенных выше примерах яркость и цветность могут быть переключены. Альтернативно, цветной компонент яркости может быть заменен основным цветовым компонентом (например, G) и цветовой компонент цветности может быть заменен на зависимый цветовой компонент (например, В или R).Example 13 In the above examples, brightness and chrominance can be switched. Alternatively, the luminance color component may be replaced by a primary color component (eg, G) and the chrominance color component may be replaced by a dependent color component (eg, B or R).

Пример 14. Выбор местоположений выборок цветности (и/или соответствующих выборок яркости) может зависеть от закодированной информации режима.Example 14 The choice of chrominance sample locations (and/or corresponding luminance samples) may depend on the encoded mode information.

(a) В качестве альтернативы, кроме того, может зависеть от доступности соседних выборок, таких как левый столбец или верхняя строка или верхняя правая строка или нижний левый столбец. Фиг.10 изображает концепции левого столбца/верхней строки/верхней правой строки/нижнего левого столбца относительно блока.(a) Alternatively, it may also depend on the availability of adjacent samples such as left column or top row or top right row or bottom left column. 10 depicts the concepts of left column/top row/top right row/bottom left column relative to a block.

(b) В качестве альтернативы, кроме того, может зависеть от доступности выборок, расположенных на конкретных позициях, таких как 1-а верхняя правая выборка и/или 1-я нижняя левая выборка.(b) Alternatively, it may also depend on the availability of samples located at particular positions, such as the 1st top right sample and/or the 1st bottom left sample.

(c) В качестве альтернативы, кроме того, может зависеть от размеров блока.(c) Alternatively, it may also depend on block sizes.

(i) Альтернативно, кроме того, может зависеть от соотношения между шириной и высотой текущего блока цветности (и/или яркости).(i) Alternatively, it may also depend on the relationship between the width and height of the current chrominance (and/or luma) block.

(ii) В качестве альтернативы, кроме того, может зависеть от того, равна ли ширина и/или высота K (например, k = 2).(ii) Alternatively, it may also depend on whether the width and/or height is equal to K (eg, k = 2).

(d) В одном примере, когда текущий режим представляет собой нормальный LM режим, можно применять следующие способы выбора выборок цветности (и/или выборок яркости с пониженной дискретизацией или без таковой):(d) In one example, when the current mode is the normal LM mode, the following methods for selecting chroma samples (and/or luma samples with or without downsampling) can be applied:

(i) Если доступны как левый столбец, так и верхняя строка, то могут быть выбраны две выборки левого столбца и две верхние строки. Они могут быть расположены на (предположим, верхняя левая координата текущего блока равна (x, y)):(i) If both the left column and the top row are available, then two samples of the left column and two top rows may be selected. They can be located at (assume the top left coordinate of the current block is (x, y)):

1. (x-1, y), (x, y-1), (x-1, y+H-1) и (x + W-1, y-1)1. (x-1, y), (x, y-1), (x-1, y+H-1) and (x + W-1, y-1)

2. (x-1, y), (x, y-1), (x-1, y + H - H/W -1) и (x + W-1, y-1). Например, когда H больше, чем W.2. (x-1, y), (x, y-1), (x-1, y + H - H/W -1) and (x + W-1, y-1). For example, when H is greater than W.

3. (x-1, y), (x, y-1), (x-1, y + H -1) и (x + W - W/H-1, y-1). Например, когда H меньше, чем W.3. (x-1, y), (x, y-1), (x-1, y + H -1) and (x + W - W/H-1, y-1). For example, when H is less than W.

4. (x-1, y), (x, y-1), (x-1, y + H – max(1, H/W)) и (x + W- max(1, W/H), y-1). 4. (x-1, y), (x, y-1), (x-1, y + H - max(1, H/W)) and (x + W- max(1, W/H) , y-1).

(ii) Если доступна только верхняя строка, то выбраны выборки только из верхней строки.(ii) If only the top row is available, then only the top row samples are selected.

1. Например, могут быть выбраны четыре выборки верхней строки.1. For example, four samples of the top row may be selected.

2. Например, могут быть выбраны две выборки.2. For example, two samples may be selected.

3. Как выбрать выборки могут зависеть от ширины/высоты. Например, четыре выборки выбираются, когда W > 2 и две выборки выбираются при W = 2.3. How to select samples may depend on width/height. For example, four samples are selected when W > 2 and two samples are selected when W = 2.

4. Выбранные выборки могут быть расположены на (предположим, что верхняя левая координата текущего блока равна (x, y)):4. The selected selections can be located at (assume the top left coordinate of the current block is (x, y)):

a. (x, y-1), (x + W/4, y-1), (x + 2*W/4, y-1), (x + 3*W/4, y – 1)a. (x, y-1), (x + W/4, y-1), (x + 2*W/4, y-1), (x + 3*W/4, y – 1)

b. (x, y-1), (x + W/4, y-1), (x + 3*W/4, y – 1), (x + W-1, y -1)b. (x, y-1), (x + W/4, y-1), (x + 3*W/4, y – 1), (x + W-1, y -1)

c. (x, y-1), (x + (2W)/4, y-1), (x + 2*(2W)/4, y-1), (x + 3*(2W)/4, y – 1). c. (x, y-1), (x + (2W)/4, y-1), (x + 2*(2W)/4, y-1), (x + 3*(2W)/4, y - one).

Например, когда доступна верхняя правая строка, или когда доступна 1-я верхняя правая выборка.For example, when the top right row is available, or when the 1st top right sample is available.

d. (x, y-1), (x + (2W)/4, y-1), (x + 3*(2W)/4, y – 1), (x + (2W)-1, y -1) d. (x, y-1), (x + (2W)/4, y-1), (x + 3*(2W)/4, y – 1), (x + (2W)-1, y -1 )

Например, когда доступна верхняя правая строка или, когда доступна 1-я верхняя правая выборка.For example, when the top right row is available or when the 1st top right sample is available.

(iii) Если доступен только левый столбец, выбраны только выборки из левого столбца.(iii) If only the left column is available, only the selections from the left column are selected.

1. Например, могут быть выбраны четыре выборки левого столбца;1. For example, four samples of the left column may be selected;

2. Например, могут быть выбраны две выборки левого столбца;2. For example, two samples of the left column may be selected;

3. Как выбрать выборки может зависеть от ширины/высоты. Например, четыре выборки выбираются при H> 2 и две выборки, когда H = 2.3. How to choose samples may depend on width/height. For example, four samples are selected when H > 2 and two samples when H = 2.

4. Выбранные выборки могут быть расположены на:4. Selected samples can be located on:

a. (x-1, y), (x -1, y + H/4), (x -1, y + 2*H/4), (x -1, y + 3*H/4)a. (x-1, y), (x -1, y + H/4), (x -1, y + 2*H/4), (x -1, y + 3*H/4)

b. (x-1, y), (x - 1, y+ 2*H/4), (x -1, y + 3*H/4), (x -1, y + H-1)b. (x-1, y), (x - 1, y+ 2*H/4), (x -1, y + 3*H/4), (x -1, y + H-1)

c. (x-1, y), (x -1, y + (2H)/4), (x -1, y + 2*(2H)/4), (x -1, y + 3*(2H)/4). c. (x-1, y), (x -1, y + (2H)/4), (x -1, y + 2*(2H)/4), (x -1, y + 3*(2H) /four).

Например, если доступен левый столбец или, когда будет доступна 1-я нижняя левая выборка.For example if the left column is available or when the 1st bottom left selection will be available.

d. (x-1, y), (x - 1, y+ 2*(2H)/4), (x -1, y + 3*(2H)/4), (x -1, y + (2H)-1). d. (x-1, y), (x - 1, y+ 2*(2H)/4), (x -1, y + 3*(2H)/4), (x -1, y + (2H)- one).

Например, когда доступен нижний левый столбец или, когда доступна 1-я нижняя левая выборка.For example, when the bottom left column is available or when the 1st bottom left selection is available.

(iv) Для приведенных выше примеров могут быть выбраны только две из четырех выборок.(iv) For the examples above, only two of the four samples can be selected.

(e) В одном примере, когда текущий режим представляет собой LM режим-A, то можно выбрать выборки в соответствии с примером 11 (d) (ii).(e) In one example, when the current mode is LM mode-A, then samples can be selected according to example 11(d)(ii).

(f) в одном примере, когда текущий режим представляет собой LM-L режим, то можно выбрать выборки в соответствии с примером 11 (d) (iii).(f) in one example, when the current mode is the LM-L mode, then samples can be selected according to Example 11(d)(iii).

(g) выбранные выборки яркости (например, в соответствии с выбранными местоположениями цветности) могут быть сгруппированы в 2 группы, одна имеет наибольшее значение и наименьшее значение всех выбранных выборок, другая группа состоит из всех оставшихся выборок.(g) the selected luminance samples (eg, according to the selected chrominance locations) may be grouped into 2 groups, one having the highest value and the lowest value of all the selected samples, the other group consisting of all the remaining samples.

(i) Два максимальных значения 2 групп усредняются как максимальное значение в 2-точечном способе; два минимальных значения 2 групп усредняются как минимальное значение в 2-точечном способе для получения LM параметров.(i) The two maximum values of the 2 groups are averaged as the maximum value in the 2-point mode; the two minimum values of the 2 groups are averaged as the minimum value in the 2-point method to obtain the LM parameters.

(ii) Когда выбраны только 4 выборки, усреднены два наибольших значения выборок, усреднены два наименьших значения выборки и усредненные значения используются в качестве входных значений в 2-точечного способа для получения LM параметров.(ii) When only 4 samples are selected, the two largest sample values are averaged, the two smallest sample values are averaged, and the average values are used as input values in the 2-point method to obtain the LM parameters.

Пример 15. В приведенных выше примерах яркость и цветность могут быть переключены. Альтернативно, цветной компонент яркости может быть заменен основным цветовым компонентом (например, G) и цветной компонент цветности может быть заменен на зависимую цветовую компоненту (например, B или R).Example 15 In the above examples, brightness and chrominance can be switched. Alternatively, the luminance color component may be replaced with a primary color component (eg, G) and the chrominance color component may be replaced with a dependent color component (eg, B or R).

Пример 16. Предлагается выбрать верхние соседние выборки цветности (и/или их соответствующие выборки яркости, которые могут быть подвержены понижающей дискретизации) на основании первого значения смещения позиции (обозначена как F) и значение шага (обозначено как S). Предположим, что ширина доступных верхних соседних выборок для использования равна W.Example 16 It is proposed to select the top adjacent chrominance samples (and/or their respective luma samples, which may be downsampled) based on a first position offset value (denoted F) and a stride value (denoted S). Assume that the width of the available top neighbor samples to use is W.

а. В одном примере W может быть установлена на ширину текущего блока.a. In one example, W may be set to the width of the current block.

b. В одном примере W может быть установлена значение (L * ширина текущего блока), в котором L представляет собой целое значение.b. In one example, W may be set to (L * current block width), where L is an integer value.

с. В одном примере, когда доступны как верхние, так и левые блоки, W может быть установлена на ширину текущего блока.With. In one example, when both top and left boxes are available, W may be set to the width of the current box.

i. В качестве альтернативы, когда левый блок недоступен, W может быть установлена на (L * ширина текущего блока), в котором L является целочисленным значением.i. Alternatively, when the left box is not available, W can be set to (L * current box width), in which L is an integer value.

ii. В одном примере L может зависеть от доступности верхнего правого блока. Альтернативно, L может зависеть от доступности одной верхней левой выборки.ii. In one example, L may depend on the availability of the upper right block. Alternatively, L may depend on the availability of one upper left sample.

d. В одном примере W может зависеть от кодированного режима.d. In one example, W may be coded mode dependent.

i. В одном примере W может быть установлена на ширину текущего блока, если текущий блок закодирован как LM режим;i. In one example, W may be set to the width of the current block if the current block is encoded as LM mode;

ii. W может быть установлена на (L * ширина текущего блока), в которой L является целочисленным значением, если текущий блок кодируется как LM-A режим.ii. W may be set to (L * current block width) in which L is an integer value if the current block is encoded as LM-A mode.

L может зависеть от доступности верхнего правого блока. Альтернативно, L может зависеть от доступности одной верхней левой выборки.L may depend on the availability of the upper right block. Alternatively, L may depend on the availability of one upper left sample.

e. Предположим, что верхняя левая координата текущего блока равна (x0, y0), затем выбираются верхние соседние выборки на позициях (x0+F+K×S, y0-1) с K =0, 1, 2,…kMax.e. Suppose the top left coordinate of the current block is (x0, y0), then the top adjacent samples at positions (x0+F+K×S, y0-1) are selected with K =0, 1, 2,…kMax.

f. В одном примере F= W/P. P является целым числом.f. In one example, F= W/P. P is an integer.

i. Например, Р = 2i, в котором i является целым числом, таким как 1 или 2.i. For example, P = 2 i , where i is an integer such as 1 or 2.

ii. В качестве альтернативы, F = W/P + offset.ii. Alternatively, F = W/P + offset.

g. В одном примере S = W/Q. Q является целым числом.g. In one example, S=W/Q. Q is an integer.

i. Например, Q = 2j, в котором j является целым числом, таким как 1 или 2.i. For example, Q = 2 j , where j is an integer such as 1 or 2.

h. Например, F = S/R. R является целым числом.h. For example, F = S/R. R is an integer.

i. Например, R = 2M, в котором M является целым числом, таким как 1 или 2.i. For example, R = 2 M , where M is an integer such as 1 or 2.

i. В одном примере S = F/Z. Z является целым числом.i. In one example, S=F/Z. Z is an integer.

i. Например, Z = 2n, в котором n представляет собой целое число, такое как 1 или 2.i. For example, Z = 2 n , where n is an integer such as 1 or 2.

j. kMax и/или F и/или S и/или offset могут зависеть от режима предсказания (например, LM, LM-A или LM-L) текущего блока;j. kMax and/or F and/or S and/or offset may depend on the prediction mode (eg, LM, LM-A, or LM-L) of the current block;

k. kMax и/или F и/или S и/или offset могут зависеть от ширины и/или высоты текущего блока.k. kMax and/or F and/or S and/or offset may depend on the width and/or height of the current block.

l. kMax и/или F и/или S и/или offset могут зависеть от доступности соседних выборок.l. kMax and/or F and/or S and/or offset may depend on the availability of neighboring samples.

m. kMax и/или F и/или S и/или offset могут зависеть от W.m. kMax and/or F and/or S and/or offset may depend on W.

n. Например, kMax = 1, F = W/4, S = W/2, offset= 0. Альтернативно, кроме того, настройки выполняются, если текущий блок кодируется LM, доступны, как левая, так и верхняя соседние выборки, и W> = 4.n. For example, kMax = 1, F = W/4, S = W/2, offset= 0. Alternatively, in addition, adjustments are made if the current block is LM encoded, both left and top adjacent samples are available, and W> = 4.

о. Например, kMax = 3, F = W/8, S = W/4, offset = 0. В качестве альтернативы, кроме того, настройки выполняются, если текущий блок должен закодировать LM, доступны только верхние соседние выборки и W> = 4.about. For example, kMax = 3, F = W/8, S = W/4, offset = 0. Alternatively, further adjustments are made if the current block is to encode LM, only upper adjacent samples are available, and W >= 4.

р. Например, kМax = 3, F = W/8, S= W/4, offset = 0. Альтернативно, кроме того, настройки выполняются, если текущий блок является LM-A закодированным и W> = 4.R. For example, kMax = 3, F = W/8, S= W/4, offset = 0. Alternatively, in addition, adjustments are made if the current block is LM-A encoded and W>=4.

q. Например, kMax = 1, F = 0, S = 1, offset = 0. Альтернативно, кроме того, настройки выполняются, если W равно 2.q. For example, kMax = 1, F = 0, S = 1, offset = 0. Alternatively, in addition, settings are made if W is 2.

Пример 17. Предлагается выбрать левые соседние выборки цветности (и/или их соответствующие выборки яркости, которые могут быть подвергнуты пониженной дискретизации) на основании первого значения смещения позиции (обозначено, как F) и значение шага (обозначено, как S). Предположим, что высота доступных левых соседних выборок, которые следует использовать, равна H.Example 17 It is proposed to select left adjacent chrominance samples (and/or their respective luma samples that can be downsampled) based on a first position offset value (denoted as F) and a stride value (denoted as S). Assume that the height of the available left adjacent samples to be used is H.

а. В одном примере H может быть установлена на высоту текущего блока.a. In one example, H may be set to the height of the current block.

b. В одном примере H можно установить на (L * высоту текущего блока), в котором L представляет собой целочисленное значение.b. In one example, H can be set to (L * height of the current block), where L is an integer value.

с. В одном примере, когда доступны как верхние, так и левые блоки, H может быть установлена на высоту текущего блока.With. In one example, when both top and left boxes are available, H can be set to the height of the current box.

i. В качестве альтернативы, когда верхний блок НЕ доступен, H может быть установлено на (L * высоту текущего блока), в котором L представляет собой целое число.i. Alternatively, when the top box is NOT available, H can be set to (L * height of the current box), where L is an integer.

ii. В одном примере L может зависеть от доступности нижнего левого блока. В качестве альтернативы L может зависеть от доступности одной нижней левой выборки.ii. In one example, L may depend on the availability of the lower left block. Alternatively, L may depend on the availability of one bottom left sample.

iii. Альтернативно, H может быть установлена на (высота текущего блока + ширина текущего блока), если необходимо доступность верхних правых соседних блоков.iii. Alternatively, H can be set to (current box height + current box width) if accessibility of top right neighbor boxes is needed.

(a) В одном примере та же H верхних соседних выборок выбирается для LM-A режима и LM режима, когда левые соседние выборки недоступны.(a) In one example, the same H top neighbor samples are selected for LM-A mode and LM mode when left neighbor samples are unavailable.

d. В одном примере H может зависеть от кодированного режима.d. In one example, H may be coded mode dependent.

i. В одном примере Н может быть установлена на высоту текущего блока, если текущий блок закодирован как LM режим;i. In one example, H may be set to the height of the current block if the current block is encoded as LM mode;

ii. W может быть установлена на (L * Высота текущего блока), в котором L является целочисленным значением, если текущий блок закодирован как LM-L режим.ii. W can be set to (L * Height of the current block), where L is an integer value, if the current block is encoded as LM-L mode.

(a) L может зависеть от доступности нижнего левого блока. Альтернативно, L может зависеть от доступности одной верхней левой выборки.(a) L may depend on the availability of the lower left block. Alternatively, L may depend on the availability of one upper left sample.

(b). Альтернативно, W может быть установлена на (высота текущего блока + ширина текущего блока), если требуемые нижние левые соседние блоки доступны.(b). Alternatively, W can be set to (current box height + current box width) if the required bottom left adjacent boxes are available.

(c) В одном примере одинаковая W левых соседних выборок выбираются для LM-L режима и LM режима, когда выше соседние выборки недоступны.(c) In one example, the same W left adjacent samples are selected for LM-L mode and LM mode when no higher adjacent samples are available.

е. Предположим, что верхняя левая координата текущего блока составляет (x0, y0), затем выбираются левые соседние выборки на позициях (x0-1, y0+F+K×S) с K =0, 1, 2,…kMax.e. Suppose the top left coordinate of the current block is (x0, y0), then the left adjacent samples at positions (x0-1, y0+F+K×S) are selected with K=0, 1, 2,…kMax.

f. В одном примере F = H/P. P является целым числом.f. In one example, F=H/P. P is an integer.

i. Например, Р = 2i, в котором i является целым числом, таким как 1 или 2.i. For example, P = 2 i , where i is an integer such as 1 or 2.

ii. Альтернативно, F = H/P + offset.ii. Alternatively, F = H/P + offset.

g. В одном примере S = H/Q. Q является целым числом.g. In one example, S=H/Q. Q is an integer.

i. Например, Q = 2J, в котором j является целым числом, таким как 1 или 2.i. For example, Q = 2 J , where j is an integer such as 1 or 2.

h. В одном примере F = S/R. R является целым числом.h. In one example, F=S/R. R is an integer.

i. Например, R = 2M, в котором M является целым числом, таким как 1 или 2.i. For example, R = 2 M , where M is an integer such as 1 or 2.

i. В одном примере S = F/Z. Z является целым числом.i. In one example, S=F/Z. Z is an integer.

i. Например, Z = 2n, в котором n представляет собой целое число, такое как 1 или 2.i. For example, Z = 2 n , where n is an integer such as 1 or 2.

j. kMax и/или F и/или S и/или offset могут зависеть от режима предсказания (например, LM, LM-A или LM-L) текущего блока;j. kMax and/or F and/or S and/or offset may depend on the prediction mode (eg, LM, LM-A, or LM-L) of the current block;

k. kMax и/или F и/или S и/или offset могут зависеть от ширины и/или высоты текущего блока.k. kMax and/or F and/or S and/or offset may depend on the width and/or height of the current block.

l. kMax и/или F и/или S и/или offset могут зависеть от H.l. kMax and/or F and/or S and/or offset may depend on H.

m. kMax и/или F и/или S и/или offset могут зависеть от доступности соседних выборок.m. kMax and/or F and/or S and/or offset may depend on the availability of neighboring samples.

n. Например, kMax=1, F= H/4, S= H/2, offset = 0. Альтернативно, кроме того, настройки выполняются, если текущий блок кодируется LM, доступны как левые, так и верхние соседние выборки и H> = 4.n. For example, kMax=1, F= H/4, S= H/2, offset=0. Alternatively, further adjustments are made if the current block is LM encoded, both left and top adjacent samples are available, and H>=4 .

о. Например, kMax=3, F= H/8, S= H/4, offset = 0. В качестве альтернативы, кроме того, настройки выполняются, если текущий блок кодируется LM, доступны только верхние соседние выборки и H> = 4.about. For example, kMax=3, F= H/8, S= H/4, offset=0. Alternatively, further adjustments are made if the current block is LM coded, only upper adjacent samples are available, and H>=4.

р. Например, kMax=3, F= H/8, S= H/4, offset = 0. Альтернативно, кроме того, настройки выполняются, если текущий блок кодируется LM-L и H> = 4.R. For example, kMax=3, F= H/8, S= H/4, offset=0. Alternatively, in addition, settings are made if the current block is encoded with LM-L and H>=4.

q. Например, kMax=1, F= 0, S= 1, offset = 0, если H равно 2.q. For example, kMax=1, F= 0, S= 1, offset = 0 if H is 2.

Пример 18. Предположим, что для получения параметров линейной модели выбираются две или четырех соседних выборки цветности (и/или их соответствующие выборки яркости, которые могут быть подвержены понижающей дискретизации).Example 18 Suppose that two or four adjacent chrominance samples (and/or their corresponding luma samples, which may be downsampled) are selected to obtain linear model parameters.

а. В одном примере получают maxY/maxC и minY/minC из двух или четырех соседних выборок цветности (и/или их соответствующих выборок яркости, которые могут быть подвержены понижающей дискретизации, и затем используются для получения параметров линейной модели с применением 2-точечного подхода.a. In one example, maxY/maxC and minY/minC are obtained from two or four adjacent chrominance samples (and/or their respective luma samples, which may be downsampled) and then used to derive linear model parameters using a 2-point approach.

b. В одном примере, при наличии двух соседних выборок цветности (и/или их соответствующих выборок яркости, которые могут быть подвержены понижающей дискретизации), которые выбираются для получения maxY/maxC и minY/minC, minY устанавливается на наименьшее значение выборки яркости и minC является соответствующим значением выборки цветности; maxY устанавливается на наибольшее значение выборки яркости и maxC является его соответствующим значением выборки цветности.b. In one example, given two adjacent chrominance samples (and/or their respective luminance samples that may be downsampled) that are selected to obtain maxY/maxC and minY/minC, minY is set to the smallest luma sample value and minC is the corresponding chrominance sample value; maxY is set to the largest luma sample value and maxC is its corresponding chrominance sample value.

с. В одном примере, при наличии четырех соседних выборок цветности (и/или их соответствующих выборок яркости, которые могут быть подвержены понижающей дискретизации), которые выбираются для получения maxY/maxC и minY/minC, выборки яркости и их соответствующие выборки цветности разделены на два массива G0 и G1, каждый из которых содержит две выборки яркости и их соответствующие выборки яркости.With. In one example, given four adjacent chrominance samples (and/or their respective luminance samples, which may be downsampled) that are selected to produce maxY/maxC and minY/minC, the luminance samples and their respective chrominance samples are divided into two arrays G0 and G1, each containing two luminance samples and their respective luminance samples.

i. Предположим, что четыре выборки яркости и их соответствующие выборки цветности обозначаются как S0, S1, S2, S3, и они могут быть разделены на две группы в любом порядке. Например:i. Assume that the four luma samples and their respective chrominance samples are designated as S0, S1, S2, S3, and they can be divided into two groups in any order. For example:

(a) G0={S0, S1}, G1={S2, S3};(a) G0={S0, S1}, G1={S2, S3};

(b) G0={S1, S0}, G1={S3, S2};(b) G0={S1, S0}, G1={S3, S2};

(c) G0={S0, S2}, G1={S1, S3};(c) G0={S0, S2}, G1={S1, S3};

(d) G0={S2, S0}, G1={S3, S1};(d) G0={S2, S0}, G1={S3, S1};

(e) G0={S1, S2}, G1={S0, S3};(e) G0={S1, S2}, G1={S0, S3};

(f) G0={S2, S1}, G1={S3, S0};(f) G0={S2, S1}, G1={S3, S0};

(g) G0={S0, S3}, G1={S1, S2};(g) G0={S0, S3}, G1={S1, S2};

(h) G0={S3, S0}, G1={S2, S1};(h) G0={S3, S0}, G1={S2, S1};

(i) G0={S1, S3}, G1={S0, S2};(i) G0={S1, S3}, G1={S0, S2};

(j) G0={S3, S1}, G1={S2, S0};(j) G0={S3, S1}, G1={S2, S0};

(k) G0={S3, S2}, G1={S0, S1};(k) G0={S3, S2}, G1={S0, S1};

(l) G0={S2, S3}, G1={S1, S0};(l) G0={S2, S3}, G1={S1, S0};

(m) G0 и G1 могут быть переменны.(m) G0 and G1 may be variable.

ii. В одном примере значение выборки яркости G0 [0] и G0 [1] сравниваются, если значение выборки яркости G0 [0] больше, чем значение выборки яркости G0 [1], то выборки яркости и его соответствующая выборка цветности G0 [0] поменяются с G0 [1].ii. In one example, the luma sample value G0[0] and G0[1] are compared, if the luminance sample value G0[0] is greater than the luminance sample value G0[1], then the luminance samples and its corresponding chrominance sample G0[0] will change from G0 [1].

(a) Альтернативно, если значение выборки яркости G0 [0] превышает или равно значению выборки яркости G0 [1], то выборка яркости и его соответствующее значение цветности G0 [0] взаимно заменяются с G0 [1] (a) Alternatively, if the luma sample value G0[0] is greater than or equal to the luma sample value G0[1], then the luma sample and its corresponding chrominance value G0[0] are interchanged with G0[1]

(b) Альтернативно, если значение выборки яркости G0 [0] меньше значения выборки яркости G0 [1], то выборка яркости и его соответствующее значение цветности G0 [0] взаимно заменяются с G0 [1] (b) Alternatively, if the luma sample value G0[0] is less than the luma sample value G0[1], then the luminance sample and its corresponding chrominance value G0[0] are interchanged with G0[1]

(c) В качестве альтернативы, если значение выборки яркости G0 [0] меньше или равно величине выборки яркости G0 [1], выборка яркости и его соответствующая выборка цветности G0 [0] поменяются с G0 [1].(c) Alternatively, if the value of the luma sample G0[0] is less than or equal to the value of the luma sample G0[1], the luma sample and its corresponding chrominance sample G0[0] will be swapped with G0[1].

iii. В одном примере значение выборки яркости G1 [0] и G1 [1] сравниваются, если значение выборки яркости G1 [0] больше, чем значение выборки яркости G1 [1], выборки яркости и его соответствующая выборка цветности G1 [0] поменяются с G1 [1].iii. In one example, the luma sample value of G1[0] and G1[1] are compared, if the luma sample value of G1[0] is greater than the luma sample value of G1[1], the luminance sample and its corresponding chrominance sample G1[0] will swap with G1 [one].

(a) Альтернативно, если значение выборки яркости G0 [0] превышает или равно значению выборки яркости G1 [1], то выборка яркости и его соответствующее значение цветности G1 [0] взаимно заменяются с G1 [1] (a) Alternatively, if the luma sample value G0[0] is greater than or equal to the luma sample value G1[1], then the luminance sample and its corresponding chrominance value G1[0] are interchanged with G1[1]

(b) Альтернативно, если значение выборки яркости G1 [0] меньше значения выборки яркости G1 [1], то выборка яркости и его соответствующее значение цветности G1 [0] взаимно заменяются с G1 [1] (b) Alternatively, if the luminance sample value G1[0] is less than the luma sample value G1[1], then the luminance sample and its corresponding chroma value G1[0] are interchanged with G1[1]

(c) В качестве альтернативы, если значение выборки яркости G1 [0] меньше или равно величине выборки яркости G1 [1], выборка яркости и его соответствующая выборка цветности G1 [0] поменяются с G1 [1].(c) Alternatively, if the luma sample value of G1[0] is less than or equal to the luma sample value of G1[1], the luminance sample and its corresponding chrominance sample G1[0] will be swapped with G1[1].

iv. В одном примере сравнивается значение выборки яркости G0 [0] и G1 [1], если значение выборки яркости G0 [0] больше, чем (или меньше, чем или не больше, чем, или не меньше, чем) значение выборки яркости G1 [1], то G0 и G1 поменяются.iv. In one example, the luminance sample value G0[0] and G1[1] are compared if the luminance sample value G0[0] is greater than (or less than or not greater than, or not less than) the luminance sample value G1[ 1], then G0 and G1 will change.

(a) В одном примере значение выборки яркости G0 [0] и G1 [0] сравниваются, если значение выборки яркости G0 [0] больше, чем (или меньше, чем или не больше, чем или не меньше, чем) значение выборки яркости G1 [0], затем G0 и G1 поменяются.(a) In one example, the luminance sample value G0[0] and G1[0] are compared if the luminance sample value G0[0] is greater than (or less than or not greater than or not less than) the luminance sample value G1[0], then G0 and G1 will swap.

(b) В одном примере сравнивается значение выборки яркости G0 [1] и G1 [0], если значение выборки яркости G0 [1] больше, чем (или меньше, чем или не больше, чем или не меньше) значение выборки яркости G1 [0], затем G0 и G1 поменяются.(b) One example compares the luminance sample value G0[1] and G1[0] if the luminance sample value G0[1] is greater than (or less than or not greater than or not less than) the luminance sample value G1[ 0], then G0 and G1 will change.

(c) В одном примере сравнивается значение выборки яркости G0 [1] и G1 [1], если значение выборки яркости G0 [1] больше, чем (или меньше, чем или не больше, чем или не меньше, чем) значение выборки яркости G1 [1], затем G0 и G1 поменяются.(c) One example compares the luminance sample value of G0[1] and G1[1] if the luminance sample value of G0[1] is greater than (or less than or not greater than or not less than) the luminance sample value G1 [1], then G0 and G1 will swap.

v. В одном примере значение выборки яркости G0 [0] и G1 [1] сравниваются, если значение выборки яркости G0 [0] больше, чем (или меньше, чем или не больше, чем или не меньше) значение выборки яркости G1 [1], затем G0 [0] и G1 [1] поменяются.v. In one example, the luminance sample value G0[0] and G1[1] are compared if the luminance sample value G0[0] is greater than (or less than or not greater than or not less than) the luminance sample value G1[1], then G0[0] and G1[1] will swap.

(a) В одном примере значение выборки яркости G0 [0] и G1 [0] сравниваются, если значение выборки яркости G0 [0] больше, чем (или меньше, чем или не больше, чем или не меньше, чем) значение выборки яркости G1 [0], затем G0 [0] и G1 [0] поменяются.(a) In one example, the luminance sample value G0[0] and G1[0] are compared if the luminance sample value G0[0] is greater than (or less than or not greater than or not less than) the luminance sample value G1[0], then G0[0] and G1[0] will swap.

(b) В одном примере сравнивается значение выборки яркости G0 [1] и G1 [0], если значение выборки яркости G0 [1] больше, чем (или меньше, чем или не больше, чем или не меньше) значения выборки яркости G1 [0], затем G0 [1] и G1 [0] поменяются.(b) One example compares the luminance sample value G0[1] and G1[0] if the luminance sample value G0[1] is greater than (or less than or not greater than or not less than) the luminance sample value G1[ 0], then G0[1] and G1[0] will swap.

(c) В одном примере сравнивается значение выборки яркости G0 [1] и G1 [1], если значение выборки яркости G0 [1] больше, чем (или меньше, чем или не больше, чем или не меньше, чем) значение выборки яркости G1 [1], затем G0 [1] и G1 [1] поменяются.(c) One example compares the luminance sample value of G0[1] and G1[1] if the luminance sample value of G0[1] is greater than (or less than or not greater than or not less than) the luminance sample value G1[1], then G0[1] and G1[1] will swap.

vi. В одном примере maxY рассчитывается как в среднем значения выборки яркости G0 [0] и G0 [1], maxC рассчитывается как среднее значение значений выборки цветности G0 [0] и G0 [1].vi. In one example, maxY is calculated as the average of the luminance sample values G0[0] and G0[1], maxC is calculated as the average of the chrominance sample values G0[0] and G0[1].

(a) В качестве альтернативы maxY рассчитывается как среднее значение выборки яркости G1 [0] и G1 [1], maxC рассчитывается как среднее значение значений выборки цветности G1 [0] и G1 [1].(a) Alternatively, maxY is calculated as the average of the G1[0] and G1[1] luma samples, maxC is calculated as the average of the G1[0] and G1[1] chroma samples.

vii. В одном примере minY рассчитывается как среднее значение выборки яркости G0 [0] и G0 [1], minC рассчитывается как среднее значение значений выборки цветности G0 [0] и G0 [1].vii. In one example, minY is calculated as the average of the luminance sample values G0[0] and G0[1], minC is calculated as the average of the chrominance sample values G0[0] and G0[1].

В качестве альтернативы minY рассчитывается как среднее значение выборки яркости G1 [0] и G1 [1], minC рассчитывается как среднее значение выборки цветности G1 [0] и G1 [1].Alternatively, minY is calculated as the average of the G1[0] and G1[1] luma samples, minC is calculated as the average of the G1[0] and G1[1] chrominance samples.

d. В одном примере, при наличии только двух соседних выборок цветности (и/или их соответствующих выборок яркости, которые могут быть подвергнуты понижающей дискретизации), они сначала заполняются для получения четырех выборок цветности (и/или их соответствующих выборок яркости), затем четыре выборки цветности (и/или их соответствующие выборки яркости) используются для получения CCLM параметров.d. In one example, if there are only two adjacent chrominance samples (and/or their respective luma samples that can be downsampled), they are first padded to obtain four chrominance samples (and/or their respective luma samples), then four chroma samples. (and/or their respective luma samples) are used to obtain the CCLM parameters.

i. В одном примере две заполненные выборки цветности (и/или их соответствующие выборки яркости) скопированы из двух доступных соседних выборок цветности (и/или их соответствующих выборок яркости, которые могут быть подвергнуты понижающей дискретизации).i. In one example, two populated chroma samples (and/or their respective luma samples) are copied from two available adjacent chroma samples (and/or their respective luma samples, which can be downsampled).

Пример 19: Во всех приведенных выше примерах выбранные выборки цветности должны быть расположены в пределах верхней строки (то есть с W выборок), как показано на фиг.10, и/или в левом столбце (то есть с H выборок), в котором W и H представляют собой ширину и высоту текущего блока.Example 19: In all of the above examples, the selected chrominance samples should be located within the top row (i.e. with W samples) as shown in FIG. 10 and/or in the left column (i.e. with H samples) in which W and H represent the width and height of the current block.

а. Альтернативно, вышеуказанное ограничение может быть применено, когда текущий блок закодирован нормальным LM режимом.a. Alternatively, the above limitation may be applied when the current block is encoded in normal LM mode.

b. Альтернативно, выбранные выборки цветности должны быть расположены в пределах верхней строки (то есть, с W выборок) и верхней правой строки с H выборок.b. Alternatively, the selected chrominance samples should be located within the top row (ie, with W samples) and the top right row with H samples.

i. Альтернативно, кроме того, вышеприведенное ограничение может быть применено, когда текущий блок кодируется с помощью LM-A режима.i. Alternatively, in addition, the above restriction may be applied when the current block is encoded using the LM-A mode.

ii. Альтернативно, кроме того, вышеприведенное ограничение может быть применено, когда текущий блок закодирован с помощью LM-A режима или нормальным LM режимом с доступной верхней строкой, но с недоступным левым столбцом.ii. Alternatively, in addition, the above restriction may be applied when the current block is encoded with LM-A mode or normal LM mode with the top row available but the left column not available.

с. Альтернативно, выбранные выборки цветности должны быть расположены в левом столбце (т.е. с H выборками) и нижнем левом столбце с W выборок.With. Alternatively, the selected chrominance samples should be located in the left column (ie with H samples) and the bottom left column with W samples.

i. Альтернативно, кроме того, вышеприведенное ограничение может применяться, когда текущий блок закодирован LM-L режимом.i. Alternatively, in addition, the above restriction may apply when the current block is encoded in the LM-L mode.

ii. Альтернативно, кроме того, вышеприведенное ограничение может быть применено, когда текущий блок кодируется с помощью LM-L режима или нормальным LM режимом с недоступной верхней строкой, но доступным левым столбцом.ii. Alternatively, in addition, the above restriction may be applied when the current block is encoded using LM-L mode or normal LM mode with the top row not available but the left column available.

Пример 20Example 20

В одном примере необходимо выполнить понижающую дискретизацию только соседних выборок яркости на позициях, где требуются соответствующие выборки цветности для получения CCLM параметров.In one example, only adjacent luminance samples need to be downsampled at positions where corresponding chrominance samples are required to obtain CCLM parameters.

Пример 21Example 21

Как выполнять способы, раскрытые в этом документе, могут зависеть от цветового формата (например, 4:2:0 или 4:4:4).How to perform the methods disclosed in this document may depend on the color format (eg, 4:2:0 or 4:4:4).

а. В качестве альтернативы, как выполнять способы, раскрытые в этом документе, могут зависеть от битовой глубины (например, 8-бит или 10-бит).a. Alternatively, how to perform the methods disclosed in this document may depend on the bit depth (eg, 8-bit or 10-bit).

b. В качестве альтернативы, как выполнять способы, раскрытые в этом документе, могут зависеть от способа цветного представления (например, RGB или YCbCr).b. Alternatively, how to perform the methods disclosed in this document may depend on the color representation method (eg, RGB or YCbCr).

с. В качестве альтернативы, как выполнять способы, раскрытые в этом документе, могут зависеть от способа цветного представления (например, RGB или YCbCr).With. Alternatively, how to perform the methods disclosed in this document may depend on the color representation method (eg, RGB or YCbCr).

d. В качестве альтернативы, как проводить способы, раскрытые в этом документе, могут зависеть от местоположения нисходящей дискретизации цветности.d. Alternatively, how to conduct the methods disclosed in this document may depend on the location of the chroma downsampling.

Пример 22Example 22

Независимо от того, следует ли получать максимальные/минимальные значения компоненты яркости и цветности, используемых для получения CCLM параметров, может зависеть от доступности соседних выборок. Например, максимальные/минимальные значения для компонентов яркости и цветности, используемые для получения CCLM параметров, не могут быть получены, если оба левые, так и верхние соседние блоки недоступны.Whether or not to obtain the maximum/minimum values of the luma and chrominance components used to obtain the CCLM parameters may depend on the availability of neighboring samples. For example, the maximum/minimum values for the luminance and chrominance components used to derive the CCLM parameters cannot be obtained if both left and top neighbor blocks are not available.

а. Следует ли получать максимальные/минимальные значения компонентов яркости и цветности, используемых для получения CCLM параметров, могут зависеть от количества доступных соседних выборок. Например, максимальные/минимальные значения для компоненты яркости и цветности, используемые для получения CCLMM параметров, не могут быть получены, если numSampL == 0 и numSampT == 0. В другом примере максимальные/минимальные значения для компонентов яркости и цветности используются для получения CCLM параметров, не могут быть получены, если if numSampL + numSampT == 0. В двух примерах numSampL и numSampT являются количеством доступных соседних выборок слева и выше соседних блоков.a. Whether to obtain the maximum/minimum values of the luminance and chrominance components used to obtain the CCLM parameters may depend on the number of adjacent samples available. For example, the maximum/minimum values for the luminance and chrominance components used to derive the CCLMM parameters cannot be obtained if numSampL == 0 and numSampT == 0. In another example, the maximum/minimum values for the luma and chrominance components are used to obtain the CCLM parameters cannot be retrieved if if numSampL + numSampT == 0. In the two examples, numSampL and numSampT are the number of available adjacent samples to the left and above adjacent blocks.

b. Следует ли получить максимальные/минимальные значения компонентов яркости и цветности, используемые для получения CCLM параметров, может зависеть от количества выбранных выборок, используемых для получения параметров. Например, максимальные/минимальные значения для компонентов яркости и цветности, используемые для получения CCLM параметров, не могут быть получены, если cntL == 0 и cntT == 0. В другом примере максимальные/минимальные значения для компонентов яркости и цветности используются для получения CCLM параметров, не могут быть получены, если cntL + cntT == 0. В двух примерах cntL и cntT являются количеством избранных выборок слева и выше соседних блоков.b. Whether to obtain the maximum/minimum values of the luma and chrominance components used to obtain the CCLM parameters may depend on the number of selected samples used to obtain the parameters. For example, the maximum/minimum values for the luma and chrominance components used to derive the CCLM parameters cannot be obtained if cntL == 0 and cntT == 0. In another example, the maximum/minimum values for the luma and chrominance components are used to obtain the CCLM parameters cannot be obtained if cntL + cntT == 0. In the two examples, cntL and cntT are the number of select samples left and above neighboring blocks.

Пример 23Example 23

В одном примере предлагаемый способ получения параметров, используемых в CCLM, может использоваться для получения параметров, используемых в LIC или других инструментах кодирования, которые применяют линейную модель.In one example, the proposed method for obtaining parameters used in CCLM can be used to obtain parameters used in LIC or other coding tools that use a linear model.

а. Описанные выше примеры могут применяться к LIC, например, путем замены «соседних выборок цветности» на «соседние выборки текущего блока» и заменой «соответствующих выборок яркости» «соседними выборками опорного блока».a. The examples described above can be applied to the LIC, for example, by replacing "adjacent chrominance samples" with "adjacent samples of the current block" and replacing "corresponding luma samples" with "adjacent reference block samples".

b. В одном примере выборки, используемые для получения LIC параметра, могут исключать выборки определенных позиций в верхней строке и/или левом столбце.b. In one example, the samples used to derive the parameter LIC may exclude samples of certain positions in the top row and/or left column.

i. В одном примере выборки, используемые для получения LIC параметра, могут исключить первую одну в верхней строке.i. In one example, the samples used to obtain the parameter LIC may exclude the first one in the top row.

(a) Предположим, что координата верхней левой выборки является (x0, y0), предложено исключить (x0, y0-1) для использования LIC параметров.(a) Assuming that the top left sample coordinate is (x0, y0), it is suggested to exclude (x0, y0-1) to use the LIC parameters.

ii. В одном примере выборки, используемые для получения LIC параметра, могут исключить первую одну в левом столбце.ii. In one example, the samples used to obtain the parameter LIC may exclude the first one in the left column.

(a) Предположим, что координата верхней левой выборки представляет собой (x0, y0), предложено исключить (x0-1, y0) для использования LIC параметров.(a) Assuming that the top left sample coordinate is (x0, y0), it is suggested to exclude (x0-1, y0) to use the LIC parameters.

iii. Следует ли применять вышеописанные способы и/или как определить конкретные позиции, может зависеть от доступности левой столбца/верхней строки.iii. Whether the methods described above should be applied and/or how to determine specific positions may depend on the availability of the left column/top row.

iv. Следует ли применять вышеописанные способы и/или как определить конкретные позиции, может зависеть от размера блока.iv. Whether the methods described above should be used and/or how specific positions should be determined may depend on the block size.

с. В одном примере N соседние выборки (которые могут быть подвергнуты понижающей дискретизации) текущего блока и N соответствующих соседних выборок (которые могут быть соответственно подвергнуты понижающей дискретизации) опорного блока, могут быть использованы для получения параметров, используемых для LIC.With. In one example, N adjacent samples (which may be downsampled) of the current block and N corresponding adjacent samples (which may be downsampled, respectively) of the reference block may be used to derive the parameters used for the LIC.

i. Например, N равен 4.i. For example, N is 4.

ii. В одном примере N соседние выборки могут быть определены как N/2 выборки из верхней строки; и N/2 выборки из левой столбца.ii. In one example, N adjacent samples may be defined as N/2 samples from the top row; and N/2 samples from the left column.

(a) В качестве альтернативы N соседних выборок могут быть определены как N выборки из верхней строки или левого столбца.(a) Alternatively, N adjacent samples may be defined as N samples from the top row or left column.

iii. В другом примере N равен min (L, T), в котором Т является общим количеством доступных соседних выборок (которые могут подвергнуты понижающей дискретизации) текущего блока.iii. In another example, N is min(L, T), where T is the total number of available adjacent samples (which may be downsampled) of the current block.

(а) в одном примере L установлен на 4(a) in one example, L is set to 4

iv. В одном примере выбор координат N выборок может следовать правилу для выбора N выборок в CCLM процессе.iv. In one example, the selection of N sample coordinates may follow the rule for selecting N samples in the CCLM process.

v. В одном примере выбор координат N выборок может следовать правилу для выбора N выборок в LM-A процессе.v. In one example, the selection of N sample coordinates may follow the rule for selecting N samples in the LM-A process.

vi. В одном примере выбор координат N выборок может следовать правилу для выбора N выборок в LM-L процессе.vi. In one example, the selection of N sample coordinates may follow the rule for selecting N samples in an LM-L process.

vii. В одном примере, как выбрать N выборки может зависеть от доступности верхней строки/левого столбца.vii. In one example, how to select N samples may depend on the availability of the top row/left column.

d. В одном примере могут быть выбраны N соседние выборки (которые могут подвергнуты понижающей дискретизации) текущего блока и соответствующие соседние выборки (которые могут соответственно подвергнуты понижающей дискретизации) опорного блока, используемые для получения параметров, для использования в LIC, на основании позиций выборок.d. In one example, N adjacent samples (which may be downsampled) of the current block and corresponding adjacent samples (which may respectively be downsampled) of the reference block used to derive parameters may be selected for use in the LIC, based on sample positions.

i. Способ выбора может зависеть от ширины и высоты текущего блока.i. The selection method may depend on the width and height of the current block.

ii. Способ выбора может зависеть от доступности соседних блоков.ii. The selection method may depend on the availability of neighboring blocks.

iii. Например, соседние выборки K1 могут быть выбраны из левых соседних выборок и соседние выборки K2 выбирают из верхних соседних выборок, если доступны как верхние, так и левые соседние выборки. Например, K1 = К2 = 2.iii. For example, K1 adjacent samples may be selected from left adjacent samples and K2 adjacent samples selected from top adjacent samples if both top and left adjacent samples are available. For example, K1 = K2 = 2.

iv. Например, соседние выборки K1 могут быть выбраны из левых соседних выборок, если доступны только левые соседние выборки. Например, K1 = 4.iv. For example, K1 neighbor samples may be selected from left neighbor samples if only left neighbor samples are available. For example, K1 = 4.

v. Например, соседние выборки K2 могут быть выбраны из верхних соседних выборок, если доступны только верхние соседние выборки. Например, K2 = 4.v. For example, K2 neighbor samples may be selected from top neighbor samples if only top neighbor samples are available. For example, K2 = 4.

vi. Например, верхние выборки могут быть выбраны с первым значением смещения позиции (обозначены как F) и значением шага (обозначено как S), которые могут зависеть от измерения текущего блока и доступности соседних блоков.vi. For example, the top samples may be selected with a first position offset value (denoted as F) and a stride value (denoted as S), which may depend on the measurement of the current block and the availability of adjacent blocks.

(a) Например, способы, раскрытые в примере 16, могут быть применены для получения F и S.(a) For example, the methods disclosed in Example 16 can be applied to obtain F and S.

vii. Например, левые выборки могут быть выбраны с первым значением смещения позиции (обозначены как F) и значением шага (обозначено как S), которые могут зависеть от измерения текущего блока и доступности соседних блоков.vii. For example, the left samples may be selected with a first position offset value (denoted as F) and a stride value (denoted as S), which may depend on the measurement of the current block and the availability of adjacent blocks.

(а) Например, способы, раскрытые в примере 17, могут быть применены для получения F и S.(a) For example, the methods disclosed in Example 17 can be applied to obtain F and S.

е. В одном примере предлагаемый способ получения параметров, используемых в CCLM, также может быть использован для получения параметров, используемых в LIC, когда текущий блок является аффинно-кодированным.e. In one example, the proposed method for obtaining the parameters used in the CCLM can also be used to obtain the parameters used in the LIC when the current block is affine coded.

f. Вышеуказанные способы могут быть использованы для получения параметров, используемых в других инструментах кодирования, которые опираются на линейную модель.f. The above methods can be used to obtain parameters used in other coding tools that rely on a linear model.

В другом примере предлагается режим межкомпонентного предсказания, в котором выборки цветности предсказаны с соответствующими восстановленными выборками яркости в соответствии с моделью предсказания, как показано в уравнении 12. В уравнении 12 PredC(x, y) обозначает предсказание выборки цветности. α и β являются двумя параметрами модели. Rec’L(x, y) являются выборками яркости с пониженной дискретизацией.In another example, an intercomponent prediction mode is proposed in which chroma samples are predicted with corresponding reconstructed luma samples according to a prediction model as shown in Equation 12. In Equation 12, Pred C (x, y) denotes chroma sample prediction. α and β are two model parameters. Rec'L(x, y) are downsampled luma samples.

Figure 00000040
(12)
Figure 00000040
(12)

Для процесса понижающей дискретизации яркости применяется шестиотводной фильтр для блока A на фиг.11, как показано в уравнении 13For the luminance downsampling process, a six-tap filter is applied to block A in Fig. 11 as shown in Equation 13

Figure 00000041
(13)
Figure 00000041
(13)

Верхние окружающие опорные выборки яркости, затененные на фиг.11, не подвергаются процессу понижающей дискретизации с помощью 3-отводного фильтра, как показано в уравнении 14. Левые окружающие опорные выборки яркости подвергаются понижающей дискретизации согласно уравнению 15. Если левая или верхняя выборки недоступны, будет использоваться 2-отводной фильтр, определенный в уравнении 16 и уравнении 17.The top surrounding luminance reference samples, shaded in FIG. 11, are not downsampled by the 3-tap filter as shown in Equation 14. The left surrounding luminance reference samples are downsampled according to Equation 15. If the left or top samples are not available, there will be use the 2-tap filter defined in Equation 16 and Equation 17.

Figure 00000042
Figure 00000042

В частности, окружающие опорные выборки яркости подвергаются процессу понижающей дискретизации до одинакового размера опорных выборок цветности. Размер обозначается как ширина и высота. Для получения α и β используются только две или четыре соседние выборки. Таблица поиска применяется для необязательного выполнения операции разделения при получении α и β. Ниже проиллюстрированы способы получения.In particular, the surrounding luminance reference samples are subjected to a downsampling process to the same size of the chrominance reference samples. The size is indicated as width and height. Only two or four adjacent samples are used to obtain α and β. A lookup table is used to optionally perform a split operation when obtaining α and β. The production methods are illustrated below.

3.1 Примерные способы до двух выборок3.1 Exemplary methods for up to two samples

(1) Соотношение r ширины и высоты рассчитывается, как показано в уравнении 18(1) The ratio r of width and height is calculated as shown in equation 18

Figure 00000043
Figure 00000043

(2) Если верхние и левые блоки доступны, выбираются 2 выборки, расположенные на posA первой верхней линии и posL первой левой линии. Для упрощения описания ширина предполагается как более длинная сторона. Получение posA и posL показано в уравнении 19 (индекс позиции начинается с 0). Фиг.12 показывает некоторые примеры разной ширины и соотношения высоты (1, 2, 4 и 8 соответственно). Выбранные выборки затенены.(2) If top and left blocks are available, select 2 samples located at posA of the first top line and posL of the first left line. To simplify the description, the width is assumed to be the longer side. The derivation of posA and posL is shown in Equation 19 (position index starts at 0). 12 shows some examples of different widths and height ratios (1, 2, 4 and 8 respectively). Selected samples are shaded.

Figure 00000044
Figure 00000044

(3) Если верхний блок доступен, когда левый блок недоступен, выбираются первая и posA точки верхней линии, как показано на фиг.13.(3) If the top block is available when the left block is not available, the first and posA points of the top line are selected, as shown in FIG.

(4) если левый блок доступен, когда верхний блок недоступен, выбирается первая и posL точки левой линии, как показано на фиг.14.(4) if the left block is available when the top block is not available, the first and posL points of the left line are selected, as shown in FIG.

(5) получают модель предсказания цветности в зависимости от значений яркости и цветности выбранных выборок.(5) obtain a chrominance prediction model depending on the luminance and chrominance values of the selected samples.

(6) если не используется ни один из левых и верхних блоков, используется модель предсказания по умолчанию, с α равна 0, β равен 1 << (BitDepth-1), в котором BitDepth представляет собой битовую глубину выборок цветности.(6) if none of the left and top blocks are used, the default prediction model is used, with α equal to 0, β equal to 1 << (BitDepth-1), in which BitDepth is the bit depth of the chrominance samples.

3.2 Примерные способы до четырех выборок3.2 Exemplary methods for up to four samples

(1) Соотношение r ширины и высоты рассчитывается по уравнению 18.(1) The width-to-height ratio r is calculated from Equation 18.

(2) Если верхние и левые блоки доступны, выбираются 4 выборки, расположенные на первой и posA первой верхней линии, первой и posL первой левой линии. Получение posA и posL иллюстрируется в управлении 19. Фиг.15 показывает некоторые примеры различного соотношения ширины и высоты (1, 2, 4 и 8 соответственно). Выбранные выборки затенены.(2) If the top and left blocks are available, select the 4 samples located on the first and posA of the first top line, the first and posL of the first left line. The acquisition of posA and posL is illustrated in control 19. FIG. 15 shows some examples of different ratios of width and height (1, 2, 4 and 8 respectively). Selected samples are shaded.

(3) Если верхний блок доступен, когда левый блок недоступен, выбираются первая и posA точки верхней линии, как показано на фиг.13.(3) If the top block is available when the left block is not available, the first and posA points of the top line are selected, as shown in FIG.

(4) Если левый блок доступен, в то время как верхний блок недоступен, выбираются первая и posL точки левой линии, как показано на фиг.14.(4) If the left block is available while the top block is not available, the first and posL points of the left line are selected, as shown in FIG.

(5) Если не используется ни одна из левых и верхних блоков, используется модель предсказания по умолчанию, α равен 0, β равен 1 << (BitDepth-1), в котором BitDepth представляет собой битовую глубину выборки цветности.(5) If none of the left and top blocks is used, the default prediction model is used, α is 0, β is 1 << (BitDepth-1), in which BitDepth is the chrominance sampling bit depth.

3.3 Примерные способы, использующие таблицы поиска при LM получении3.3 Exemplary methods using lookup tables in LM acquisition

Фиг.16 показывает пример таблиц поиска с 128, 64 и 32 записями и каждая запись представлена 16 битами. Процесс 2-точечного LM получения упрощается, как показано в таблице 1 и фиг.17 с 64 записями. Следует отметить, что первая запись может не храниться в таблице.16 shows an example of lookup tables with 128, 64 and 32 entries and each entry is represented by 16 bits. The 2-point LM acquisition process is simplified as shown in Table 1 and FIG. 17 with 64 entries. Note that the first entry may not be stored in the table.

Следует также отметить, что, хотя каждая запись в примерных таблицах имеет 16 бит, можно легко преобразовать в число с меньшими битами (например, 8 бит или 12 битов). Например, таблица записей с 8 битами может быть получена как:It should also be noted that although each entry in the exemplary tables is 16 bits, it can easily be converted to a number with smaller bits (eg, 8 bits or 12 bits). For example, a table of records with 8 bits can be obtained as:

g_aiLMDivTableHighSimp_64_8[i] = (g_aiLMDivTableHighSimp_64[i]+128) >> 8.g_aiLMDivTableHighSimp_64_8[i] = (g_aiLMDivTableHighSimp_64[i]+128) >> 8.

Например, таблица записей с 12 битами может быть получена как:For example, a table of entries with 12 bits can be obtained as:

g_aiLMDivTableHighSimp_64_12[i] = (g_aiLMDivTableHighSimp_64[i]+8) >> 4.g_aiLMDivTableHighSimp_64_12[i] = (g_aiLMDivTableHighSimp_64[i]+8) >> 4.

Таблица 1: Упрощенный процесс LM полученияTable 1: Simplified LM acquisition process

Figure 00000045
Figure 00000045

Следует отметить, что maxLuma и minLuma могут указывать максимальные и минимальные значения выборок яркости выбранных позиций. Альтернативно, они могут указывать функцию максимальной и минимальной выборки яркости выбранных позиций, таких как усреднение. Когда выбраны только 4 позиции, они также могут указывать среднее двух больших значений яркости и среднее двух меньших значений яркости. Дополнительно, как указано на фиг.17, maxChroma и minChroma представляют значения цветности, соответствующих maxLuma и minLuma.It should be noted that maxLuma and minLuma may indicate the maximum and minimum values of the luminance samples of the selected positions. Alternatively, they may indicate a function of the maximum and minimum brightness sampling of the selected positions, such as averaging. When only 4 positions are selected, they can also indicate the average of two large brightness values and the average of two smaller brightness values. Additionally, as indicated in FIG. 17, maxChroma and minChroma represent the chrominance values corresponding to maxLuma and minLuma.

3.3 Способ № 4 до четырех выборок3.3 Method #4 up to four samples

Предположим, что ширина блока и высота текущего блока представляют собой W и H соответственно. И верхняя левая координата текущего блока цветности составляет [0, 0].Suppose the box width and current box height are W and H respectively. And the top left coordinate of the current chroma block is [0, 0].

Если верхние и левые блоки являются доступными и текущий режим является нормальным LM режимом (исключающий LM-A и LM-L), выбираются 2 выборки цветности, расположенные в верхней строке и 2 выборки цветности, расположенные в левом столбце.If the top and left blocks are available and the current mode is the normal LM mode (excluding LM-A and LM-L), the 2 chroma samples located in the top row and the 2 chroma samples located in the left column are selected.

Координаты двух верхних выборок являются [floor(W/4), -1] and [floor (3*W/4), -1]. The coordinates of the top two samples are [floor(W/4), -1] and [floor(3*W/4), -1].

Координаты двух левых выборок равны [-1, floor(H/4)] and [-1, floor (3*H/4)].The coordinates of the two left samples are [-1, floor(H/4)] and [-1, floor(3*H/4)].

Выбранные выборки окрашены в красном, как показано на фиг.22А.Selected samples are colored in red as shown in FIG. 22A.

Впоследствии 4 выборки сортируются в соответствии с интенсивностью выборки яркости и классифицированы на 2 группы. Две большие выборки и две малые выборки соответственно усреднены. Модель межкомпонентного предсказания получается с 2 усредненными точками. Альтернативно, для получения LM параметров используются максимальное и минимальное значение четырех выборок.Subsequently, the 4 samples are sorted according to the luminance sampling intensity and classified into 2 groups. Two large samples and two small samples are averaged, respectively. The intercomponent prediction model is obtained with 2 averaged points. Alternatively, the maximum and minimum values of the four samples are used to obtain the LM parameters.

Если верхний блок доступен, когда левый блок недоступен, выбираются четыре выборки цветности из верхнего блока, когда W > 2 и 2 выборки цветности выбираются при W = 2.If the top block is available when the left block is not available, four chroma samples from the top block are selected when W > 2 and 2 chroma samples are selected when W = 2.

Координаты четырех выбранных верхних выборок являются [[W/8, -1], [W/8 + W/4, -1], [W/8 + 2*W/4, -1] и [W/8 + 3*W/4, -1]. The coordinates of the four selected top samples are [[W/8, -1], [W/8 + W/4, -1], [W/8 + 2*W/4, -1] and [W/8 + 3 *W/4, -1].

Выбранные выборки окрашены в красный цвет, как показано на фиг.22B.Selected samples are colored red as shown in FIG. 22B.

Если левый блок доступен, когда верхний блок недоступен, выбираются четыре выборки цветности из левого блока, когда H> 2 и 2 выборки цветности, когда H = 2.If the left block is available when the top block is not available, four chroma samples are taken from the left block when H > 2 and 2 chroma samples when H = 2.

Координаты выбранных четверых левых выборок равны [-1, H/8], [-1, H/8 + H/4], [-1, H/8 + 2*H/4, -1] и [-1, H/8 + 3*H/4].The coordinates of the selected four left samples are [-1, H/8], [-1, H/8 + H/4], [-1, H/8 + 2*H/4, -1] and [-1, H/8 + 3*H/4].

Если ни один из: левый и верхний блоков не доступен, используется предсказание по умолчанию, с α равен 0, β равен 1 << (BitDepth-1), в котором BitDepth представляет собой битовую глубину выборок цветности.If none of the: left and top blocks are available, the default prediction is used, with α equal to 0, β equal to 1 << (BitDepth-1), in which BitDepth is the bit depth of the chrominance samples.

Если текущий режим представляет собой LM-A режим, выбираются четыре выборки цветности из верхнего блока, когда W' > 2 и 2 выборки цветности выбираются при W' = 2. W' является доступным количеством верхних соседних выборок, которое может быть 2 * W.If the current mode is the LM-A mode, four chrominance samples are selected from the top block when W' > 2 and 2 chroma samples are selected when W' = 2. W' is the available number of top adjacent samples, which can be 2 * W.

Координаты четырех выбранных верхних выборок являются [W’/8, -1], [W’/8 + W’/4, -1], [W’/8 + 2*W’/4, -1] и [W’/8 + 3*W’/4, -1].The coordinates of the four selected top samples are [W'/8, -1], [W'/8 + W'/4, -1], [W'/8 + 2*W'/4, -1] and [W '/8 + 3*W'/4, -1].

Если текущий режим представляет собой LM-L режим, выбираются четыре выборки цветности из левого блока, когда выбираются выборки цветности при H'=2. H' является доступным количеством левых соседних выборок, которое может быть 2 * Н.If the current mode is the LM-L mode, four chrominance samples are selected from the left block when chrominance samples are selected at H'=2. H' is the available number of left adjacent samples, which can be 2 * H.

Координаты четырех выбранных верхних выборок являются [-1, H’/8], [-1, H’/8 + H’/4], [-1, H’/8 + 2*H’/4, -1] и [-1, H’/8 + 3*H’/4].The coordinates of the four selected top samples are [-1, H'/8], [-1, H'/8 + H'/4], [-1, H'/8 + 2*H'/4, -1] and [-1, H'/8 + 3*H'/4].

3.5 Пример варианта осуществления для модификации текущего VVC стандарта для использования CCLM предсказания3.5 Example embodiment for modifying the current VVC standard to use CCLM prediction

8.3.4.2.8 Спецификация INTRA_LT_CCLM, INTRA_L_CCLM и INTRA_T_CCLM режим внутрикадрового предсказания8.3.4.2.8 Specification INTRA_LT_CCLM, INTRA_L_CCLM and INTRA_T_CCLM intra prediction mode

Уравнения описаны в этом разделе, используя нумерацию уравнений, соответствующие уравнения, которые используются в текущем проекте VVC стандарта.The equations are described in this section using equation numbering corresponding to the equations that are used in the current draft VVC standard.

Входные данные в процессе:Input data in the process:

- режим внутрикадрового предсказания predModeIntra.- intraframe prediction mode predModeIntra.

- местоположение выборки (xTbC, yTbC) верхней левой выборки текущего блока преобразования относительно верхней левой выборки текущего изображения,- location of the sample (xTbC, yTbC) of the upper left sample of the current transformation block relative to the upper left sample of the current image,

- переменная nTbW, указывающая ширину блока преобразования,- variable nTbW indicating the width of the transform block,

- переменная nTbH, указывающая высоту блока преобразования,- variable nTbH indicating the height of the transform block,

- соседние выборки цветности p [x][y], с x = −1, y = 0..2 * nTbH − 1 и x = 0.. 2 * nTbW − 1, y = − 1.are adjacent chromaticity samples p[x][y], with x = −1, y = 0..2 * nTbH − 1 and x = 0.. 2 * nTbW − 1, y = − 1.

Выходные данные этого процесса являются предсказанные выборки predSamples[x][y] с x = 0..nTbW − 1, y = 0..nTbH − 1The output of this process is the predicted samples predSamples[x][y] with x = 0..nTbW − 1, y = 0..nTbH − 1

Текущее местоположение яркости (xTbY, yTbY) получено следующим образом:The current brightness location (xTbY, yTbY) is obtained as follows:

(xTbY, yTbY) = (xTbC << 1, yTbC << 1) (xTbY, yTbY) = (xTbC << 1, yTbC << 1) (8-155)(8-155)

Переменные availL, availT и availTL получены следующим образом:The availL, availT and availTL variables are derived as follows:

......

- Если PredModeIntra равно INTRA_LT_CCLM, применяется следующее:- If PredModeIntra is equal to INTRA_LT_CCLM, the following applies:

numSampT = availT ? nTbW : 0
numSampL = availL ? nTbH : 0
numSampT = availT ? ntbW : 0
numSampL = availL ? nTbH : 0
(8-156)
(8-157)
(8-156)
(8-157)

- В противном случае применяется следующее:- Otherwise, the following applies:

Figure 00000046
Figure 00000046

Переменная bCTUboundary получена следующим образом:The bCTUboundary variable is obtained as follows:

bCTUboundary = (yTbC & (1 << (CtbLog2SizeY − 1) − 1) = = 0) ? TRUE: FALSE. (8-160) bCTUboundary = (yTbC & (1 << (CtbLog2SizeY − 1) − 1) = = 0) ? TRUE: FALSE. (8-160)

Выборки предсказания predSamples[x][y] with x = 0..nTbW − 1, y = 0..nTbH − 1 получены следующим образом:The prediction samples predSamples[x][y] with x = 0..nTbW − 1, y = 0..nTbH − 1 are obtained as follows:

- Если оба numSampL and numSampT равны 0, применяется следующее:- If both numSampL and numSampT are 0, the following applies:

predSamples[x][y] = 1 << (BitDepthC − 1) predSamples[x][y] = 1 << (BitDepth C − 1) (8-161)(8-161)

- В противном случае применяются следующие упорядоченные этапы:- Otherwise, the following ordered steps apply:

1. ... [[Нет изменений в текущей спецификации]1. ... [[No change to current specification]

2. ...2. ...

3. ...3. ...

4. ...four. ...

5. ...5. ...

6. ...... [Нет изменений в текущей спецификации]6. ...... [No change to current specification]

7. Переменные minY, maxY, minC и maxC получены следующим образом:7. Variables minY, maxY, minC and maxC are obtained as follows:

- Переменная minY устанавливается равным 1 << (BitDEpthy) + 1 и переменная maxY устанавливается равной -1.- The minY variable is set to 1 << (BitDEpthy) + 1 and the maxY variable is set to -1.

- Если availL равен TRUE и predModeIntra равен INTRA_LT_CCLM, переменная aboveIs4 устанавливается равной 0; в противном случае устанавливается равным 1.- If availL is TRUE and predModeIntra is INTRA_LT_CCLM, aboveIs4 is set to 0; otherwise set to 1.

- Если availT равен TRUE и predModeIntra равен INTRA_LT_CCLM, переменная LeftIs4 устанавливается равной 0; в противном случае устанавливается равным 1.- If availT is TRUE and predModeIntra is INTRA_LT_CCLM, LeftIs4 is set to 0; otherwise set to 1.

- Переменные массивов startPos[] и pickStep[] получены следующим образом:- Array variables startPos[] and pickStep[] are obtained as follows:

- startPos[0] = actualTopTemplateSampNum >> (2 + aboveIs4);- startPos[0] = actualTopTemplateSampNum >> (2 + aboveIs4);

- pickStep[0] = std::max(1, actualTopTemplateSampNum >> (1 + aboveIs4));- pickStep[0] = std::max(1, actualTopTemplateSampNum >> (1 + aboveIs4));

- startPos[1] = actualLeftTemplateSampNum >> (2 + leftIs4);- startPos[1] = actualLeftTemplateSampNum >> (2 + leftIs4);

- pickStep[1] = std::max(1, actualLeftTemplateSampNum >> (1 + leftIs4));- pickStep[1] = std::max(1, actualLeftTemplateSampNum >> (1 + leftIs4));

- Переменная cnt устанавливается равной 0.- The cnt variable is set to 0.

- Если predModeIntra равна INTRA_LT_CCLM, переменная nSX устанавливается равной nTbW, nSY устанавливается равным nTbH; В противном случае nSX устанавливается, равным numSampLT и nSY устанавливается равным numSampL.- If predModeIntra is equal to INTRA_LT_CCLM, nSX is set to nTbW, nSY is set to nTbH; Otherwise, nSX is set to numSampLT and nSY is set to numSampL.

- Если availT равно TRUE и predModeIntra не равно INTRA_L_CCLM, переменные selectLumaPix, selectChromaPix получены следующим образом:- If availT is TRUE and predModeIntra is not equal to INTRA_L_CCLM, selectLumaPix, selectChromaPix variables are obtained as follows:

- При startPos[0]+cnt* pickStep[0] < nSX and cnt < 4, применяется следующее:- With startPos[0]+cnt* pickStep[0] < nSX and cnt < 4, the following applies:

- - selectLumaPix[cnt] = pTopDsY[startPos[0]+cnt* pickStep[0]];- - selectLumaPix[cnt] = pTopDsY[startPos[0]+cnt* pickStep[0]];

- selectChromaPix[cnt]= p[startPos[0]+cnt* pickStep[0]][−1];- selectChromaPix[cnt]= p[startPos[0]+cnt* pickStep[0]][−1];

- cnt++;-cnt++;

- Если availL равен TRUE и predModeIntra не равен INTRA_T_CCLM, переменные selectLumaPix, selectChromaPix получены следующим образом:- If availL is TRUE and predModeIntra is not equal to INTRA_T_CCLM, selectLumaPix, selectChromaPix variables are obtained as follows:

- - При startPos[1]+cnt* pickStep[1] < nSY and cnt < 4, применяется следующее:- - When startPos[1]+cnt* pickStep[1] < nSY and cnt < 4, the following applies:

- selectLumaPix[cnt] = pLeftDsY [startPos[1]+cnt* pickStep[1]];- selectLumaPix[cnt] = pLeftDsY [startPos[1]+cnt* pickStep[1]];

- selectChromaPix[cnt]= p[-1][startPos[1]+cnt* pickStep[1]];- selectChromaPix[cnt]= p[-1][startPos[1]+cnt* pickStep[1]];

- cnt++;-cnt++;

- Если cnt равно 2, применяется следующее:- If cnt is 2, the following applies:

- Если selectLumaPix[0] > selectLumaPix[1], minY устанавливается равным selectLumaPix[1], minC устанавливается равным selectChromaPix[1], maxY устанавливается равным selectLumaPix[0] и maxC устанавливается равным selectChromaPix[0]; в противном случае, maxY устанавливается равным selectLumaPix[1], maxC устанавливается равным selectChromaPix[1], minY устанавливается равным selectLumaPix[0] и minC устанавливается равным selectChromaPix[0].- If selectLumaPix[0] > selectLumaPix[1], minY is set to selectLumaPix[1], minC is set to selectChromaPix[1], maxY is set to selectLumaPix[0] and maxC is set to selectChromaPix[0]; otherwise, maxY is set to selectLumaPix[1], maxC is set to selectChromaPix[1], minY is set to selectLumaPix[0], and minC is set to selectChromaPix[0].

- В противном случае, если cnt равно 4, применяется следующее:- Otherwise, if cnt is 4, the following applies:

- Переменные массивы minGrpIdx и maxGrpIdx инициализируются как:- Variable arrays minGrpIdx and maxGrpIdx are initialized as:

- minGrpIdx[0] = 0, minGrpIdx[1] = 1, maxGrpIdx[0] = 2, maxGrpIdx[1] = 3;- minGrpIdx[0] = 0, minGrpIdx[1] = 1, maxGrpIdx[0] = 2, maxGrpIdx[1] = 3;

- применяется следующее- the following applies

- Если selectLumaPix[minGrpIdx[0]] > selectLumaPix[minGrpIdx[1]], заменить minGrpIdx[0] и minGrpIdx[1];- If selectLumaPix[minGrpIdx[0]] > selectLumaPix[minGrpIdx[1]], replace minGrpIdx[0] and minGrpIdx[1];

- Если selectLumaPix[maxGrpIdx[0]] > selectLumaPix[maxGrpIdx[1]], заменить maxGrpIdx[0] и maxGrpIdx[1];- If selectLumaPix[maxGrpIdx[0]] > selectLumaPix[maxGrpIdx[1]], replace maxGrpIdx[0] and maxGrpIdx[1];

- Если selectLumaPix[minGrpIdx[0]] > selectLumaPix[maxGrpIdx[1]], заменить minGrpIdx и maxGrpIdx;- If selectLumaPix[minGrpIdx[0]] > selectLumaPix[maxGrpIdx[1]], replace minGrpIdx and maxGrpIdx;

- Если selectLumaPix[minGrpIdx[1]] > selectLumaPix[maxGrpIdx[0]], заменить minGrpIdx[1] и maxGrpIdx[0];- If selectLumaPix[minGrpIdx[1]] > selectLumaPix[maxGrpIdx[0]], replace minGrpIdx[1] and maxGrpIdx[0];

- maxY, maxC, minY and minC получены следующим образом:- maxY, maxC, minY and minC are obtained as follows:

- maxY =(selectLumaPix[maxGrpIdx[0]]+selectLumaPix[maxGrpIdx[1]]+1)>>1;- maxY =(selectLumaPix[maxGrpIdx[0]]+selectLumaPix[maxGrpIdx[1]]+1)>>1;

- maxC =(selectChromaPix[maxGrpIdx[0]]+selectChromaPix[maxGrpIdx[1]]+1)- maxC =(selectChromaPix[maxGrpIdx[0]]+selectChromaPix[maxGrpIdx[1]]+1)

>>1;>>1;

- maxY =(selectLumaPix[minGrpIdx [0]]+selectLumaPix[minGrpIdx [1]]+1)>>1;- maxY =(selectLumaPix[minGrpIdx [0]]+selectLumaPix[minGrpIdx [1]]+1)>>1;

- maxC =(selectChromaPix[minGrpIdx[0]]+ selectChromaPix [minGrpIdx [1]]+1)>>1;- maxC =(selectChromaPix[minGrpIdx[0]]+ selectChromaPix [minGrpIdx[1]]+1)>>1;

8. Переменные a, b и k получают следующим образом:8. Variables a, b and k are obtained as follows:

[окончание изменения][end change]

3.6. Другой примерный рабочий проект по предложенному CCLM предсказанию3.6. Another exemplary working draft on the proposed CCLM prediction

В этом разделе описан еще один примерный вариант осуществления, который показывает модификации, которые могут быть сделаны в текущем рабочем проекте VVC стандарта. Номера уравнения здесь относятся к соответствующим номерам уравнения в VVC стандарте.This section describes another exemplary embodiment that shows modifications that can be made to the current working draft of the VVC standard. The equation numbers here refer to the corresponding equation numbers in the VVC standard.

Спецификация INTRA_LT_CCLM, INTRA_L_CCLM и INTRA_T_CCLM режима внутрикадрового предсказания.Specification of INTRA_LT_CCLM, INTRA_L_CCLM and INTRA_T_CCLM of the intra-frame prediction mode.

[Добавить в текущий рабочий проект VVC, как показано ниже][Add to current VVC working project as below]

Количество доступных соседних выборок цветности на верхнем и верхнем правом numTopSamp и количество доступных соседних выборок цветности слева и лево-ниже nLeftSamp получены следующим образом:The number of available adjacent chrominance samples on the top and top right numTopSamp and the number of available adjacent chrominance samples on the left and left-below nLeftSamp are obtained as follows:

- Если PredModeIntra равно INTRA_LT_CCLM, применяется следующее:- If PredModeIntra is equal to INTRA_LT_CCLM, the following applies:

numSampT = availT ? nTbW : 0numSampT = availT ? ntbW : 0 (8-157)(8-157) numSampL = availL ? nTbH : 0numSampL = availL ? nTbH : 0 (8-158)(8-158)

- В противном случае применяется следующее:- Otherwise, the following applies:

numSampT = (availT && predModeIntra = = INTRA_T_CCLM) ?
(nTbW + Min(numTopRight, nTbH)) : 0
numSampT = (availT && predModeIntra == INTRA_T_CCLM) ?
(nTbW + Min(numTopRight, nTbH)) : 0
(8-159)(8-159)
numSampL = (availL && predModeIntra = = INTRA_L_CCLM) ?
(nTbH + Min(numLeftBelow, nTbW)) : 0
numSampL = (availL && predModeIntra == INTRA_L_CCLM) ?
(nTbH + Min(numLeftBelow, nTbW)) : 0
(8-160)(8-160)

Переменная bCTUboundary получена следующим образом:The bCTUboundary variable is obtained as follows:

bCTUboundary = (yTbC & (1 << (CtbLog2SizeY − 1) − 1) = = 0) ? TRUE : FALSE. (8-161)bCTUboundary = (yTbC & (1 << (CtbLog2SizeY − 1) − 1) = = 0) ? TRUE : FALSE. (8-161)

Переменная cntN и массив pickPosN[] с N, замененным на L и T, получены следующим образом:The variable cntN and the array pickPosN[] with N replaced by L and T are obtained as follows:

- Переменная numIs4N устанавливается равной ((availN && predModeIntra == INTRA_LT_CCLM) ? 0 : 1).- The numIs4N variable is set to ((availN && predModeIntra == INTRA_LT_CCLM) ? 0 : 1).

- Переменная startPosN устанавливается равной numSampN >> (2 + numIs4N).- The variable startPosN is set to numSampN >> (2 + numIs4N).

- Переменная pickStepN устанавливается равной Max(1, numSampN >> (1 + numIs4N)).- The pickStepN variable is set to Max(1, numSampN >> (1 + numIs4N)).

- Если availN равна TRUE и predModeIntra равна INTRA_LT_CCLM или INTRA_N_CCLM, cntN устанавливается равным (1 + numIs4N) << 1, и pickPosN[pos] устанавливается равным (startPosN + pos * pickStepN), с pos = 0..(cntN – 1). - If availN is TRUE and predModeIntra is INTRA_LT_CCLM or INTRA_N_CCLM, cntN is set to (1 + numIs4N) << 1, and pickPosN[pos] is set to (startPosN + pos * pickStepN), with pos = 0..(cntN - 1) .

- В противном случае cntN устанавливается равным 0.- Otherwise, cntN is set to 0.

Выборки предсказания predSamples[x][y] с x = 0..nTbW − 1, y = 0..nTbH − 1 получены следующим образом:The prediction samples predSamples[x][y] with x = 0..nTbW − 1, y = 0..nTbH − 1 are obtained as follows:

- Если оба numSampL и numSampT равны 0, применяется следующее:- If both numSampL and numSampT are 0, the following applies:

predSamples[x][y] = 1 << (BitDepthC − 1)predSamples[x][y] = 1 << (BitDepth C − 1) (8-162)(8-162)

- В противном случае применяются следующие упорядоченные этапы:- Otherwise, the following ordered steps apply:

1. Совместно расположенные выборки яркости pY[x][y] with x = 0..nTbW * 2 − 1, y= 0..nTbH * 2 − 1 устанавливаются равными восстановленным выборкам яркости перед процессом фильтрации деблокинга на местоположениях (xTbY + x, yTbY + y).1. Co-located luma samples pY[x][y] with x = 0..nTbW * 2 − 1, y= 0..nTbH * 2 − 1 are set equal to the reconstructed luma samples before the deblocking filtering process at the locations (xTbY + x , yTbY + y).

2. Соседние выборки яркости pY[x][y] получены следующим образом:2. Neighboring brightness samples pY[x][y] are obtained as follows:

- Когда numSampL больше 0, соседние левые выборки яркости pY[x][y] с x = −1..−3, y = 0..2 * numSampL − 1, устанавливаются равными восстановленным выборкам яркости до процесса фильтрации деблокинга на местоположениях (xTbY + x , yTbY +y).- When numSampL is greater than 0, adjacent left luma samples pY[x][y] with x = −1..−3, y = 0..2 * numSampL − 1, are set equal to the reconstructed luma samples prior to the deblocking filtering process at locations ( xTbY + x , yTbY + y).

- Когда numSampT больше 0, соседние верхние выборки яркости pY[x][y] с x = 0..2 * numSampT − 1, y = −1, −2, устанавливаются равными восстановленным выборкам яркости до процесса фильтрации деблокинга на местоположениях (xTbY+ x, yTbY + y).- When numSampT is greater than 0, adjacent top luminance samples pY[x][y] with x = 0..2 * numSampT − 1, y = −1, −2, are set equal to the reconstructed luminance samples prior to the deblocking filtering process at locations (xTbY+ x, yTbY + y).

- Когда availTL равно TRUE, соседние верхние левые выборки яркости pY[x][y] с x = −1, y = −1, −2 устанавливаются равными восстановленным выборкам яркости до процесса фильтрации деблокинга на местоположениях (xTbY+ x, yTbY + y).- When availTL is TRUE, the adjacent upper left luminance samples pY[x][y] with x = −1, y = −1, −2 are set equal to the reconstructed luminance samples prior to the deblocking filtering process at locations (xTbY+ x, yTbY + y) .

3. Совместно расположенные выборки яркости после понижающей дискретизации pDsY[x][y] с x = 0..nTbW − 1, y = 0..nTbH – 1 получены следующим образом:3. Downsampled co-located brightness samples pDsY[x][y] with x = 0..nTbW − 1, y = 0..nTbH – 1 are obtained as follows:

- Если sps_cclm_colocated_chroma_flag равен 1, применяется следующее:- If sps_cclm_colocated_chroma_flag is 1, the following applies:

- pDsY[x][y]с x = 1..nTbW − 1, y = 1..nTbH − 1 получено следующим образом:- pDsY[x][y] with x = 1..nTbW − 1, y = 1..nTbH − 1 obtained as follows:

pDsY[x][y] = (pY[2* x][2*y − 1] +
 pY[2 * x − 1][2 * y] + 4* pY[2 * x][2 * y] + pY[2 * x + 1][2 * y] + 
pY[2 * x][2 * y + 1] + 4) >> 3
pDsY[x][y] = (pY[2* x][2*y − 1] +
pY[2 * x − 1][2 * y] + 4* pY[2 * x][2 * y] + pY[2 * x + 1][2 * y] +
pY[2 * x][2 * y + 1] + 4) >> 3
(8-163)(8-163)

- Если availL равно TRUE, pDsY[0][y] с y = 1..nTbH − 1 получено следующим образом:- If availL is TRUE, pDsY[0][y] with y = 1..nTbH − 1 is obtained as follows:

Figure 00000047
Figure 00000047

- В противном случае, pDsY[0][y] с y = 1..nTbH − 1 получено следующим образом:- Otherwise, pDsY[0][y] with y = 1..nTbH − 1 is obtained as follows:

pDsY[0][y] = (pY[0][2* y − 1] + 2 * pY[0][2 * y] + pY[0][2* y + 1] + 2) >>2pDsY[0][y] = (pY[0][2* y − 1] + 2 * pY[0][2 * y] + pY[0][2* y + 1] + 2) >>2 (8-165)(8-165)

- Если availT равно TRUE, pDsY[x][0] с x = 1..nTbW − 1 получено следующим образом:- If availT is TRUE, pDsY[x][0] with x = 1..nTbW − 1 is obtained as follows:

Figure 00000048
Figure 00000048

- Иначе, pDsY[x][0] с x = 1..nTbW − 1 получено следующим образом:- Otherwise, pDsY[x][0] with x = 1..nTbW − 1 is obtained as follows:

pDsY[x][0] = (pY[2 * x − 1][0] + 2 * pY[2 * x][0] + pY[2 * x + 1][0] + 2) >> 2pDsY[x][0] = (pY[2 * x − 1][0] + 2 * pY[2 * x][0] + pY[2 * x + 1][0] + 2) >> 2 (8-167)(8-167)

- Если availL равно TRUE и availT равно TRUE, pDsY[0][0] получено следующим образом:- If availL is TRUE and availT is TRUE, pDsY[0][0] is obtained as follows:

pDsY[0][0] = (pY[0][−1] +
pY[−1][0] + 4 * pY[0][0] + pY[1][0] + 
pY[0][1] + 4) >> 3
pDsY[0][0] = (pY[0][−1] +
pY[−1][0] + 4 * pY[0][0] + pY[1][0] +
pY[0][1] + 4) >> 3
(8-168)(8-168)

- В противном случае, если availL равно TRUE и availT равно FALSE, pDsY[0][0] получено следующим образом:- Otherwise, if availL is TRUE and availT is FALSE, pDsY[0][0] is obtained as follows:

- pDsY[0][0] = (pY[−1][0] + 2 * pY[0][0] + pY[1][0] + 2) >> 2- pDsY[0][0] = (pY[−1][0] + 2 * pY[0][0] + pY[1][0] + 2) >> 2 (8-169)(8-169)

- В противном случае, если availL равно FALSE и availT равно TRUE, pDsY[0][0] получено следующим образом:- Otherwise, if availL is FALSE and availT is TRUE, pDsY[0][0] is obtained as follows:

pDsY[0][0] = (pY[0][−1] + 2 * pY[0][0] + pY[0][1] + 2) >> 2pDsY[0][0] = (pY[0][−1] + 2 * pY[0][0] + pY[0][1] + 2) >> 2 (8-170)(8-170)

- В противном случае (availL равно FALSE и availT равно FALSE), pDsY[0][0] получено следующим образом:- Otherwise (availL is FALSE and availT is FALSE), pDsY[0][0] is obtained as follows:

- pDsY[0][0] = pY[0][0]- pDsY[0][0] = pY[0][0] (8-171)(8-171)

- Иначе, применяется следующее:- Otherwise, the following applies:

- pDsY[x][y] с x = 1..nTbW − 1, y = 0..nTbH − 1 получено следующим образом:- pDsY[x][y] with x = 1..nTbW − 1, y = 0..nTbH − 1 is obtained as follows:

pDsY[x][y] = (pY[2 * x − 1][2 * y] + 
pY[2 * x − 1][2 * y + 1] + 2* pY[2 * x][2 * y] +
 2*pY[2 * x][2 * y + 1] + pY[2 * x + 1][2 * y] + 
pY[2 * x + 1][2 * y + 1] + 4) >> 3
pDsY[x][y] = (pY[2 * x − 1][2 * y] +
pY[2 * x − 1][2 * y + 1] + 2* pY[2 * x][2 * y] +
2*pY[2 * x][2 * y + 1] + pY[2 * x + 1][2 * y] +
pY[2 * x + 1][2 * y + 1] + 4) >> 3
(8-172)(8-172)

- Если availL равно TRUE, pDsY[0][y] с y = 0..nTbH − 1 получено следующим образом:- If availL is TRUE, pDsY[0][y] with y = 0..nTbH − 1 is obtained as follows:

Figure 00000049
Figure 00000049

- В противном случае, pDsY[0][y] с y = 0..nTbH − получено следующим образом:- Otherwise, pDsY[0][y] with y = 0..nTbH − obtained as follows:

- pDsY[0][y] = (pY[0][2 * y] + pY[0][2 * y + 1] + 1) >> 1 (8-174)- pDsY[0][y] = (pY[0][2 * y] + pY[0][2 * y + 1] + 1) >> 1 (8-174)

4. When numSampL превышает 0, выбранные соведние левые выборки цвета pSelC[idx] устанавливаются равными p[-1][pickPosL[idx]] с idx = 0..(cntL – 1), и выбранные соседние левые выборки яркости после понижающей дискретизации pSelDsY[idx] с idx = 0..(cntL-1) получены следующим образом:4. When numSampL is greater than 0, the selected adjacent left color samples pSelC[idx] are set to p[-1][pickPosL[idx]] with idx = 0..(cntL – 1), and the selected adjacent left luma samples after downsampling pSelDsY[idx] with idx = 0..(cntL-1) are obtained as follows:

- переменная y устанавливается равной pickPosL[idx].- variable y is set equal to pickPosL[idx].

- если sps_cclm_colocated_chroma_flag равен 1, то применяется следующее:- if sps_cclm_colocated_chroma_flag is 1 then the following applies:

- если y > 0 || availTL == TRUE,- if y > 0 || availTL == TRUE,

pSelDsY[idx] = (pY[−2][2 * y − 1] +
pY[−3][2 * y] + 4 * pY[−2][2 * y] + 
pY[−1][2 * y] + pY[−2]
[2 * y + 1] + 4) >> 3
pSelDsY[idx] = (pY[−2][2 * y − 1] +
pY[−3][2 * y] + 4 * pY[−2][2 * y] +
pY[−1][2 * y] + pY[−2]
[2 * y + 1] + 4) >> 3
(8-175)(8-175)

- в противном случае, - otherwise,

pSelDsY[idx] = (pY[−3][0] + 2 * pY[−2][0] + pY[−1][0] + 2) >> 2 (8-177)pSelDsY[idx] = (pY[−3][0] + 2 * pY[−2][0] + pY[−1][0] + 2) >> 2 (8-177)

- в противном случае, применяется слудующее:- otherwise, the following applies:

pSelDsY[idx] = (pY[−1][2 * y] + pY[−1][2 * y + 1] + 
2* pY[−2][2 * y] + 2*pY[−2][2 * y + 1] + (8-178)
pY[−3][2 * y] + pY[−3][2 * y + 1] + 4) >> 3
pSelDsY[idx] = (pY[−1][2 * y] + pY[−1][2 * y + 1] +
2*pY[−2][2 * y] + 2*pY[−2][2 * y + 1] + (8-178)
pY[−3][2 * y] + pY[−3][2 * y + 1] + 4) >> 3
(8-178)(8-178)

5. Когда numSampT больше 0, выбранные соседние верхние выборки цветности pSelC[idx] устанавливаются равными p[pickPosT[idx]][-1] с idx = 0..(cntT – 1), и соседние верхние выборки яркости после понижающей дискретизации pSelDsY[idx] с idx = cntL..(cntL + cntT – 1) определены, как ниже указано:5. When numSampT is greater than 0, the selected adjacent chroma top samples pSelC[idx] are set to p[pickPosT[idx]][-1] with idx = 0..(cntT – 1), and the downsampled adjacent luminance top samples pSelDsY [idx] with idx = cntL..(cntL + cntT - 1) are defined as follows:

- переменная x установлена равной pickPosT[idx - cntL].- variable x is set equal to pickPosT[idx - cntL].

- если sps_cclm_colocated_chroma_flag равен 1, то применяется следующее:- if sps_cclm_colocated_chroma_flag is 1 then the following applies:

- если x > 0:- if x > 0:

- если bCTUboundary равен FALSE, то применяется следующее:- if bCTUboundary is FALSE, then the following applies:

Figure 00000050
Figure 00000050

- в противном случае (bCTUboundary равно TRUE), применяется следующее:- otherwise (bCTUboundary is TRUE), the following applies:

pSelDsY[idx] = (pY[2 * x − 1][−1] + 
2* pY[2 * x][−1] + pY[2 * x + 1][−1] + 2) >> 2
pSelDsY[idx] = (pY[2 * x − 1][−1] +
2* pY[2 * x][−1] + pY[2 * x + 1][−1] + 2) >> 2
(8-180)(8-180)

- в противном случае:- otherwise:

- если availTL равен TRUE и bCTUboundary равен FALSE, то применяется следующее:- if availTL is TRUE and bCTUboundary is FALSE, then the following applies:

pSelDsY[idx] = (pY[0][−3] +
pY[−1][−2] + 4 * pY[0][−2] + pY[1][−2] + 
pY[0][−1] + 4) >> 3
pSelDsY[idx] = (pY[0][−3] +
pY[−1][−2] + 4 * pY[0][−2] + pY[1][−2] +
pY[0][−1] + 4) >> 3
(8-181)(8-181)

- в противном случае, если availTL равен TRUE и bCTUboundary равен TRUE, то применяется следующее:- otherwise, if availTL is TRUE and bCTUboundary is TRUE, then the following applies:

pSelDsY[idx] = (pY[−1][−1] + 
2* pY[0][−1] + pY[1][−1] + 2) >> 2
pSelDsY[idx] = (pY[−1][−1] +
2* pY[0][−1] + pY[1][−1] + 2) >> 2
(8-182)(8-182)

- иначе, если availTL равен FALSE и bCTUboundary равен FALSE, то применяется следующее:Otherwise, if availTL is FALSE and bCTUboundary is FALSE, then the following applies:

pSelDsY[idx] = (pY[0][−3] + 2 * pY[0][−2] + pY[0][−1] + 2) >> 2 (8-183)pSelDsY[idx] = (pY[0][−3] + 2 * pY[0][−2] + pY[0][−1] + 2) >> 2 (8-183)

- в противном случае (availTL равен FALSE и bCTUboundary равен TRUE), применяется следующее:- otherwise (availTL is FALSE and bCTUboundary is TRUE), the following applies:

pSelDsY[idx] = pY[0][−1]pSelDsY[idx] = pY[0][−1] (8-184)(8-184)

- в противном случае, применяется следующее:- otherwise, the following applies:

- если x > 0:- if x > 0:

- если bCTUboundary равен FALSE, то применяется следующее:- if bCTUboundary is FALSE, then the following applies:

pSelDsY[idx] = (pY[2 * x − 1][−2] + pY[2 * x − 1][−1] + 
2* pY[2 * x][−2] +
 2*pY[2 * x][−1] + pY[2 * x + 1][−2] + pY[2 * x + 1][−1] + 4) >> 3
pSelDsY[idx] = (pY[2 * x − 1][−2] + pY[2 * x − 1][−1] +
2* pY[2 * x][−2] +
2*pY[2 * x][−1] + pY[2 * x + 1][−2] + pY[2 * x + 1][−1] + 4) >> 3
(8-185)(8-185)

- иначе (bCTUboundary равно TRUE), то применяется следующее:- otherwise (bCTUboundary is TRUE), then the following applies:

pSelDsY[idx] = (pY[2 * x − 1][−1] + 
2* pY[2 * x][−1] + 
pY[2 * x + 1][−1] + 2) >> 2
pSelDsY[idx] = (pY[2 * x − 1][−1] +
2* pY[2 * x][−1] +
pY[2 * x + 1][−1] + 2) >> 2
(8-186)(8-186)

- иначе:- otherwise:

- если availTL равно TRUE и bCTUboundary равно FALSE, то применяется следующее:- if availTL is TRUE and bCTUboundary is FALSE, then the following applies:

pSelDsY[idx] = (pY[− 1][−2] + pY[− 1][−1] + 
2* pY[0][−2] + 2*pY[0][−1] + pY[1][−2] + pY[1][−1] + 4) >> 3
pSelDsY[idx] = (pY[− 1][−2] + pY[− 1][−1] +
2* pY[0][−2] + 2*pY[0][−1] + pY[1][−2] + pY[1][−1] + 4) >> 3
(8-187)(8-187)

- в противном случае, если availTL равно TRUE и bCTUboundary равно TRUE, то применяется следующее:Otherwise, if availTL is TRUE and bCTUboundary is TRUE, then the following applies:

pSelDsY[idx] = (pY[− 1][−1] + 
2* pY[0][−1] + 
pY[1][−1] + 2) >> 2
pSelDsY[idx] = (pY[− 1][−1] +
2*pY[0][−1] +
pY[1][−1] + 2) >> 2
(8-188)(8-188)

- в противном случае, если availTL равно FALSE и bCTUboundary равно FALSE, то применяется следующее:Otherwise, if availTL is FALSE and bCTUboundary is FALSE, then the following applies:

pSelDsY[idx] = (pY[0][−2] + pY[0][−1] + 1) >> 1pSelDsY[idx] = (pY[0][−2] + pY[0][−1] + 1) >> 1 (8-189)(8-189)

- в противном случае (availTL равно FALSE и bCTUboundary равно TRUE), применяется следующее:- otherwise (availTL is FALSE and bCTUboundary is TRUE), the following applies:

pSelDsY[idx] = pY[0][−1]pSelDsY[idx] = pY[0][−1] (8-190)(8-190)

6. Переменные minY, maxY, minC and maxC получены слудующим образом:6. Variables minY, maxY, minC and maxC are obtained as follows:

--

- когда cntT+cntL равно 2, set pSelC[idx + 2] = pSelC[idx] and pSelDsY[idx + 2] = pSelDsY[idx], с idx = 0 и 1.- when cntT+cntL is 2, set pSelC[idx + 2] = pSelC[idx] and pSelDsY[idx + 2] = pSelDsY[idx], with idx = 0 and 1.

- массивы minGrpIdx[] и maxGrpIdx[] установлены как: minGrpIdx[0] = 0, minGrpIdx[1] = 1, maxGrpIdx[0] = 2, maxGrpIdx[1] = 3.- arrays minGrpIdx[] and maxGrpIdx[] are set as: minGrpIdx[0] = 0, minGrpIdx[1] = 1, maxGrpIdx[0] = 2, maxGrpIdx[1] = 3.

- если pSelDsY[minGrpIdx[0]] > pSelDsY[minGrpIdx[1]], менять (minGrpIdx[0], minGrpIdx[1]).- if pSelDsY[minGrpIdx[0]] > pSelDsY[minGrpIdx[1]], change (minGrpIdx[0], minGrpIdx[1]).

- если pSelDsY[maxGrpIdx[0]] > pSelDsY[maxGrpIdx[1]], менять (maxGrpIdx[0], maxGrpIdx[1]).- if pSelDsY[maxGrpIdx[0]] > pSelDsY[maxGrpIdx[1]], change (maxGrpIdx[0], maxGrpIdx[1]).

- если pSelDsY[minGrpIdx[0]] > pSelDsY[maxGrpIdx[1]], менять (minGrpIdx, maxGrpIdx).- if pSelDsY[minGrpIdx[0]] > pSelDsY[maxGrpIdx[1]], change (minGrpIdx, maxGrpIdx).

- если pSelDsY[minGrpIdx[1]] > pSelDsY[maxGrpIdx[0]], менять (minGrpIdx[1], maxGrpIdx[0]).- if pSelDsY[minGrpIdx[1]] > pSelDsY[maxGrpIdx[0]], change (minGrpIdx[1], maxGrpIdx[0]).

- maxY = (pSelDsY[maxGrpIdx[0]] + pSelDsY[maxGrpIdx[1]] + 1) >> 1.- maxY = (pSelDsY[maxGrpIdx[0]] + pSelDsY[maxGrpIdx[1]] + 1) >> 1.

- maxC = (pSelC[maxGrpIdx[0]] + pSelC[maxGrpIdx[1]] + 1) >> 1.- maxC = (pSelC[maxGrpIdx[0]] + pSelC[maxGrpIdx[1]] + 1) >> 1.

- minY = (pSelDsY[minGrpIdx[0]] + pSelDsY[minGrpIdx[1]] + 1) >> 1.- minY = (pSelDsY[minGrpIdx[0]] + pSelDsY[minGrpIdx[1]] + 1) >> 1.

- minC = (pSelC[minGrpIdx[0]] + pSelC[minGrpIdx[1]] + 1) >> 1.- minC = (pSelC[minGrpIdx[0]] + pSelC[minGrpIdx[1]] + 1) >> 1.

7. Переменные a, b и k получены следующим образом:7. Variables a, b and k are obtained as follows:

- Если numSampL равен 0 и numSampT равен 0, применяется следующее:- If numSampL is 0 and numSampT is 0, the following applies:

k = 0k = 0 (8-208)(8-208) a = 0a = 0 (8-209)(8-209) b = 1 << (BitDepthC − 1)b = 1 << (BitDepth C − 1) (8-210)(8-210)

- В противном случае, применяется следующее:- Otherwise, the following applies:

diff = maxY − minYdiff = maxY − minY (8-211)(8-211)

- Если diff не равно 0, применяется следующее:- If diff is not equal to 0, the following applies:

- diffC = maxC − minC- diffC = maxC − minC (8-212)(8-212) x = Floor(Log2(diff))x = Floor(Log2(diff)) (8-213)(8-213) normDiff = ((diff << 4) >> x) & 15normDiff = ((diff << 4) >> x) & 15 (8-214)(8-214) x += (normDiff != 0) ? 1 : 0x += (normDiff != 0) ? ten (8-215)(8-215) y = Floor(Log2(Abs (diffC))) + 1y = Floor(Log2(Abs (diffC))) + 1 (8-216)(8-216) a = (diffC * (divSigTable[normDiff] | 8) + 2y − 1) >> ya = (diffC * (divSigTable[normDiff] | 8) + 2 y − 1 ) >> y (8-217)(8-217) k = ((3 + x − y) < 1) ? 1 : 3 + x − yk = ((3 + x − y) < 1) ? 1 : 3 + x − y (8-218)(8-218) a = ((3 + x − y) < 1) ? Sign(a) * 15 : aa = ((3 + x − y) < 1) ? Sign(a) * 15 : a (8-219)(8-219) b = minC − ((a * minY) >> k)b = minC − ((a * minY) >> k) (8-220)(8-220)

где divSigTable[] указано согласно:where divSigTable[] is specified as per:

divSigTable[] = {0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0}divSigTable[] = {0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0} (8-221)(8-221)

- в противном случае (diff равен 0), применяется следующее:- otherwise (diff is 0), the following applies:

- k = 0- k = 0 (8-222)(8-222) a = 0a = 0 (8-223)(8-223) b = minCb = minC (8-224)(8-224)

8. Выборки предсказания predSamples[x][y] с x = 0..nTbW − 1, y = 0.. nTbH − 1 получены следующим образом:8. The prediction samples predSamples[x][y] with x = 0..nTbW − 1, y = 0.. nTbH − 1 are obtained as follows:

predSamples[x][y] = Clip1C(((pDsY[x][y] * a) >> k) + b) (8-225)predSamples[x][y] = Clip1C(((pDsY[x][y] * a) >> k) + b) (8-225)

[завершение примера варианта осуществления][end of exemplary embodiment]

3.7. Еще один примерный рабочий проект по предложенному CCLM предсказанию3.7. Another exemplary working draft on the proposed CCLM prediction

В этом разделе описан еще один примерный вариант осуществления, который показывает модификации, которые могут быть сделаны в текущем рабочем проекте VVC стандарта. Номера уравнения здесь относятся к соответствующим номерам уравнений в VVC стандарте.This section describes another exemplary embodiment that shows modifications that can be made to the current working draft of the VVC standard. The equation numbers here refer to the corresponding equation numbers in the VVC standard.

Спецификация INTRA_LT_CCLM, INTRA_L_CCLM и INTRA_T_CCLM режима внутрикадрового предсказанияSpecification of INTRA_LT_CCLM, INTRA_L_CCLM and INTRA_T_CCLM intra prediction mode

......

Количество доступных соседних выборок цветности на верхней и верхней правой numTopSamp и количество доступных выборок соседних цветности левой и лево-нижней nLeftSamp получены следующим образом:The number of available adjacent chromaticity samples on the top and top right numTopSamp and the number of available adjacent chromaticity samples of the left and left-bottom nLeftSamp are obtained as follows:

- если predModeIntra равен INTRA_LT_CCLM, применяется следующее:- if predModeIntra is equal to INTRA_LT_CCLM, the following applies:

numSampT = availT ? nTbW : 0numSampT = availT ? ntbW : 0 (8-157)(8-157) numSampL = availL ? nTbH : 0numSampL = availL ? nTbH : 0 (8-158)(8-158)

- в противном случае, применяется следующее:- otherwise, the following applies:

numSampT = (availT && predModeIntra = = INTRA_T_CCLM) ?
(nTbW + Min(numTopRight, nTbH)) : 0
numSampT = (availT && predModeIntra == INTRA_T_CCLM) ?
(nTbW + Min(numTopRight, nTbH)) : 0
(8-159)(8-159)
numSampL = (availL && predModeIntra = = INTRA_L_CCLM) ?
(nTbH + Min(numLeftBelow, nTbW)) : 0
numSampL = (availL && predModeIntra == INTRA_L_CCLM) ?
(nTbH + Min(numLeftBelow, nTbW)) : 0
(8-160)(8-160)

Переменная bCTUboundary получена следующим образом:The bCTUboundary variable is obtained as follows:

bCTUboundary = (yTbC & (1 << (CtbLog2SizeY − 1) − 1) = = 0) ? TRUE: FALSEbCTUboundary = (yTbC & (1 << (CtbLog2SizeY − 1) − 1) = = 0) ? TRUE: FALSE (8-161)(8-161)

Переменная cntN и массив pickPosN[] с N, замененный на L и T, получена следующим образом:The variable cntN and the array pickPosN[] with N replaced with L and T are obtained as follows:

- Переменная numIs4N установлена равной ((availN && predModeIntra == INTRA_LT_CCLM) ? 0 : 1).- The numIs4N variable is set to ((availN && predModeIntra == INTRA_LT_CCLM) ? 0 : 1).

- Переменная startPosN установлена равной numSampN >> (2 + numIs4N).- Variable startPosN is set equal to numSampN >> (2 + numIs4N).

-Переменная pickStepN установлена равной Max(1, numSampN >> (1 + numIs4N)).- The pickStepN variable is set to Max(1, numSampN >> (1 + numIs4N)).

- если availN равна TRUE и predModeIntra равен INTRA_LT_CCLM или INTRA_N_CCLM, cntN установлена равной Min(numSampN, (1 + numIs4N) << 1), и pickPosN[pos] установлена равной (startPosN + pos * pickStepN), с pos = 0..(cntN – 1). - if availN is TRUE and predModeIntra is INTRA_LT_CCLM or INTRA_N_CCLM, cntN is set to Min(numSampN, (1 + numIs4N) << 1), and pickPosN[pos] is set to (startPosN + pos * pickStepN), with pos = 0.. (cntN - 1).

- иначе, cntN установлена равной 0.- otherwise, cntN is set to 0.

Выборки предсказания predSamples[x][y] с x = 0..nTbW − 1, y = 0..nTbH − 1 получены следующим образом:The prediction samples predSamples[x][y] with x = 0..nTbW − 1, y = 0..nTbH − 1 are obtained as follows:

- если обе numSampL и numSampT равны 0, применяется следующее:- if both numSampL and numSampT are 0, the following applies:

predSamples[x][y] = 1 << (BitDepthC − 1)predSamples[x][y] = 1 << (BitDepthC - 1) (8-162)(8-162)

- в противном случае, применяются следующие упорядоченные этапы:Otherwise, the following ordered steps apply:

1. Совместно размещенные выборки яркости pY[x][y] с x = 0..nTbW * 2 − 1, y= 0..nTbH * 2 − 1 устанавливаются равными восстановленным выборкам яркости до выполнения процесса фильтрации деблокинга на местоположениях (xTbY + x, yTbY + y).1. Jointly allocated luma samples pY[x][y] with x = 0..nTbW * 2 − 1, y= 0..nTbH * 2 − 1 are set equal to the reconstructed luma samples prior to the deblocking filtering process at the locations (xTbY + x, yTbY + y).

2. Соседние выборки яркости pY[x][y] получают следующим образом:2. Adjacent luma samples pY[x][y] are obtained as follows:

- когда numSampL больше 0, соседние левые выборки яркости pY[x][y] с x = −1..−3, y = 0..2 * numSampL − 1 установлены равными восстановленным выборкам яркости до выполнения процесса фильтрации деблокинга на местоположениях (xTbY + x , yTbY +y).- when numSampL is greater than 0, adjacent left luma samples pY[x][y] with x = −1..−3, y = 0..2 * numSampL − 1 are set equal to the reconstructed luminance samples prior to performing the deblocking filtering process on locations ( xTbY + x , yTbY + y).

- когда numSampT больше 0, соседние верхние выборки яркости pY[x][y] с x = 0..2 * numSampT − 1, y = −1, −2, установлены равными восстановленным выборкам яркости до выполнения процесса фильтрации деблокинга на местоположениях (xTbY+ x, yTbY + y).- when numSampT is greater than 0, adjacent top luminance samples pY[x][y] with x = 0..2 * numSampT − 1, y = −1, −2, are set equal to the reconstructed luminance samples prior to performing the deblocking filtering process on locations ( xTbY+ x, yTbY + y).

-когда availTL равно TRUE, соседние верхние левые выборки яркости pY[x][y] с x = −1, y = −1, −2, установлены равными восстановленным выборкам яркости до выполнения процесса фильтрации деблокинга на местоположениях (xTbY+ x, yTbY + y).- when availTL is TRUE, the adjacent top left luma samples pY[x][y] with x = −1, y = −1, −2, are set equal to the reconstructed luminance samples prior to performing the deblocking filtering process on locations (xTbY+ x, yTbY + y).

3. Совместно размещенные выборки яркости после понижающей дискретизации pDsY[x][y] с x = 0..nTbW − 1, y = 0..nTbH − 1 получены следующим образом:3. Downsampled co-located luma samples pDsY[x][y] with x = 0..nTbW − 1, y = 0..nTbH − 1 are obtained as follows:

- если sps_cclm_colocated_chroma_flag равен 1, применяется следующие:- if sps_cclm_colocated_chroma_flag is 1, the following apply:

- pDsY[x][y] с x = 1..nTbW − 1, y = 1..nTbH − 1 описаны как ниже указано:- pDsY[x][y] with x = 1..nTbW − 1, y = 1..nTbH − 1 are described as follows:

pDsY[x][y]=(pY[2*x][2*y−1] +
pY[2 * x − 1][2*y] +4*pY[2*x][2*y] + pY[2*x +1][2*y] +pY[2 * x][2*y + 1] + 4) >> 3
pDsY[x][y]=(pY[2*x][2*y−1] +
pY[2 * x − 1][2*y] +4*pY[2*x][2*y] + pY[2*x +1][2*y] +pY[2 * x][2 *y + 1] + 4) >> 3

(8-163)

(8-163)

- если availL равен TRUE, pDsY[0][y] с y = 1..nTbH − 1 получено следующим образом:- if availL is TRUE, pDsY[0][y] with y = 1..nTbH − 1 is obtained as follows:

pDsY[0][y]=(pY[0][2*y−1]+
pY[−1][2*y]+4*pY[0][2*y]+pY[1][2*y] + pY[0][2*y + 1] + 4) >> 3
pDsY[0][y]=(pY[0][2*y−1]+
pY[−1][2*y]+4*pY[0][2*y]+pY[1][2*y] + pY[0][2*y + 1] + 4) >> 3
(8-164)(8-164)

- в противном случае, pDsY[0][y] с y = 1..nTbH − 1 получено следующим образом:- otherwise, pDsY[0][y] with y = 1..nTbH − 1 is obtained as follows:

pDsY[0][y] = (pY[0][2*y − 1] + 2*pY[0][2*y] + pY[0][2* y + 1] + 2) >> 2pDsY[0][y] = (pY[0][2*y − 1] + 2*pY[0][2*y] + pY[0][2* y + 1] + 2) >> 2 (8-165)(8-165)

- если availT равен TRUE, pDsY[x][0] с x = 1..nTbW − 1 получено следующим образом:- if availT is TRUE, pDsY[x][0] with x = 1..nTbW − 1 is obtained as follows:

pDsY[x][0] = (pY[2 *x][−1] +
 pY[2 * x − 1][0] + 4 * pY[2 * x][0] + pY[2 * x + 1][0] + 
pY[2 * x][1] + 4) >> 3
pDsY[x][0] = (pY[2 *x][−1] +
pY[2 * x − 1][0] + 4 * pY[2 * x][0] + pY[2 * x + 1][0] +
pY[2 * x][1] + 4) >> 3
(8-166)(8-166)

- в противном случае, pDsY[x][0] с x = 1..nTbW − 1 получено следующим образом:- otherwise, pDsY[x][0] with x = 1..nTbW − 1 is obtained as follows:

pDsY[x][0] = (pY[2*x − 1][0] + 2*pY[2* x][0] + pY[2 * x + 1][0] + 2) >> 2 (8-167)pDsY[x][0] = (pY[2*x − 1][0] + 2*pY[2* x][0] + pY[2 * x + 1][0] + 2) >> 2 (8-167)

- если availL равен TRUE и availT равен TRUE, pDsY[0][0] получено следующим образом:- if availL is TRUE and availT is TRUE, pDsY[0][0] is obtained as follows:

pDsY[0][0] = (pY[0][−1] +
 pY[−1][0] + 4 * pY[0][0] + pY[1][0] + 
pY[0][1] + 4) >> 3
pDsY[0][0] = (pY[0][−1] +
pY[−1][0] + 4 * pY[0][0] + pY[1][0] +
pY[0][1] + 4) >> 3
(8-168)(8-168)

- в противном случае, если availL равно TRUE и availT равно FALSE, pDsY[0][0] получено следующим образом:- otherwise, if availL is TRUE and availT is FALSE, pDsY[0][0] is obtained as follows:

pDsY[0][0] = (pY[−1][0] + 2 * pY[0][0] + pY[1][0] + 2) >> 2 (8-169)pDsY[0][0] = (pY[−1][0] + 2 * pY[0][0] + pY[1][0] + 2) >> 2 (8-169)

- в противном случае, если availL равен FALSE и availT равен TRUE, pDsY[0][0] получено следующим образом:- otherwise, if availL is FALSE and availT is TRUE, pDsY[0][0] is obtained as follows:

pDsY[0][0] = (pY[0][−1] + 2 * pY[0][0] + pY[0][1] + 2) >> 2 (8-170)pDsY[0][0] = (pY[0][−1] + 2 * pY[0][0] + pY[0][1] + 2) >> 2 (8-170)

- в противном случае, (availL равен FALSE и availT равен FALSE), pDsY[0][0] получено следующим образом:- otherwise, (availL is FALSE and availT is FALSE), pDsY[0][0] is obtained as follows:

pDsY[0][0] = pY[0][0]pDsY[0][0] = pY[0][0] (8-171)(8-171)

- в противном случае, применяется следующее:- otherwise, the following applies:

pDsY[x][y] с x = 1..nTbW − 1, y = 0..nTbH − 1 получено следующим образом:pDsY[x][y] with x = 1..nTbW − 1, y = 0..nTbH − 1 is obtained as follows:

pDsY[x][y] = (pY[2 * x − 1][2 * y] +pY[2 * x − 1][2 * y + 1] + 
2* pY[2 * x][2 * y] + 2*pY[2 * x][2 * y + 1] + 
pY[2 * x + 1][2 * y] + pY[2 * x + 1][2 * y + 1] + 4) >> 3
pDsY[x][y] = (pY[2 * x − 1][2 * y] +pY[2 * x − 1][2 * y + 1] +
2*pY[2 * x][2 * y] + 2*pY[2 * x][2 * y + 1] +
pY[2 * x + 1][2 * y] + pY[2 * x + 1][2 * y + 1] + 4) >> 3
(8-172)(8-172)

- если availL равен TRUE, pDsY[0][y] с y = 0..nTbH − 1 получено следующим образом:- if availL is TRUE, pDsY[0][y] with y = 0..nTbH − 1 is obtained as follows:

pDsY[0][y] = (pY[−1][2 * y] + pY[−1][2 * y + 1] + 
2* pY[0][2 * y] + 2*pY[0][2*y + 1] + pY[1][2 * y] +
 pY[1][2 * y + 1] + 4) >> 3
pDsY[0][y] = (pY[−1][2 * y] + pY[−1][2 * y + 1] +
2* pY[0][2 * y] + 2*pY[0][2*y + 1] + pY[1][2 * y] +
pY[1][2 * y + 1] + 4) >> 3
(8-173)(8-173)

- в противном случае, pDsY[0][y] с y = 0..nTbH − 1 получено следующим образом:- otherwise, pDsY[0][y] with y = 0..nTbH − 1 is obtained as follows:

pDsY[0][y] = (pY[0][2 * y] + pY[0][2 * y + 1] + 1) >> 1 (8-174)pDsY[0][y] = (pY[0][2 * y] + pY[0][2 * y + 1] + 1) >> 1 (8-174)

4. Когда numSampL больше 0, выбранные соседние левые выборки цветности pSelC[idx] устанавливаются равными p[-1][pickPosL[idx]] с idx = 0..(cntL – 1) и выбранные соседние левые выборки яркости после понижающей дискретизации pSelDsY[idx] с idx = 0..(cntL-1) получено следующим образом:4. When numSampL is greater than 0, the selected adjacent left chrominance samples pSelC[idx] are set equal to p[-1][pickPosL[idx]] with idx = 0..(cntL – 1) and the selected adjacent left luma samples after downsampling pSelDsY [idx] with idx = 0..(cntL-1) is obtained as follows:

- переменная y установлена равной pickPosL[idx].- variable y is set equal to pickPosL[idx].

- если sps_cclm_colocated_chroma_flag равен 1, применяется следующее:- if sps_cclm_colocated_chroma_flag is 1, the following applies:

- если y > 0 || availTL == TRUE,- if y > 0 || availTL == TRUE,

pSelDsY[idx]=(pY[−2][2*y−1]+
pY[−3][2*y] + 4*pY[−2][2*y] + pY[−1][2*y] + pY[−2][2* y + 1] + 4) >> 3
pSelDsY[idx]=(pY[−2][2*y−1]+
pY[−3][2*y] + 4*pY[−2][2*y] + pY[−1][2*y] + pY[−2][2* y + 1] + 4) >> 3
(8-175)(8-175)

- в противном случае, - otherwise,

pSelDsY[idx] = (pY[−3][0] + 2 * pY[−2][0] + pY[−1][0] + 2) >> 2pSelDsY[idx] = (pY[−3][0] + 2 * pY[−2][0] + pY[−1][0] + 2) >> 2 (8-177)(8-177)

- в противном случае, применяется следующее:- otherwise, the following applies:

pSelDsY[idx]=(pY[−1][2*y]+pY[−1][2*y+1]+
2*pY[−2][2*y] + 2*pY[−2][2*y + 1] + pY[−3][2 * y] + pY[−3][2 * y + 1] + 4) >> 3
pSelDsY[idx]=(pY[−1][2*y]+pY[−1][2*y+1]+
2*pY[−2][2*y] + 2*pY[−2][2*y + 1] + pY[−3][2 * y] + pY[−3][2 * y + 1 ] + 4) >> 3
(8-178)(8-178)

5. Когда numSampT больше 0, выбранные соседние верхние выборки цветности pSelC[idx] устанавливаются равными p[pickPosT[idx]][-1] с idx = 0..(cntT – 1), и соседние верхние выборки яркости после понижающей дискретизации pSelDsY[idx] с idx = cntL..(cntL + cntT – 1) указаны следующим образом:5. When numSampT is greater than 0, the selected adjacent chroma top samples pSelC[idx] are set to p[pickPosT[idx]][-1] with idx = 0..(cntT – 1), and the downsampled adjacent luminance top samples pSelDsY [idx] with idx = cntL..(cntL + cntT – 1) are specified as follows:

- переменная x устанавливается равной pickPosT[idx - cntL].- variable x is set equal to pickPosT[idx - cntL].

- если sps_cclm_colocated_chroma_flag равен 1, применяется следующее:- if sps_cclm_colocated_chroma_flag is 1, the following applies:

- если x > 0:- if x > 0:

- если bCTUboundary равно FALSE применяется следующее:- if bCTUboundary is FALSE, the following applies:

pSelDsY[idx]=(pY[2*x][−3]+
pY[2* x − 1[−2] + 4*pY[2* x][−2] + pY[2 * x + 1][−2] + pY[2* x][−1] + 4) >> 3
pSelDsY[idx]=(pY[2*x][−3]+
pY[2* x − 1[−2] + 4*pY[2* x][−2] + pY[2 * x + 1][−2] + pY[2* x][−1] + 4 ) >> 3
(8-179)(8-179)

- в противном случае (bCTUboundary равна TRUE), применяется следующее:- otherwise (bCTUboundary is TRUE), the following applies:

pSelDsY[idx]=(pY[2*x−1]−1] +
2*pY[2 * x][−1] + pY[2*x + 1][−1] + 2) >> 2
pSelDsY[idx]=(pY[2*x−1]−1] +
2*pY[2 * x][−1] + pY[2*x + 1][−1] + 2) >> 2
(8-180)(8-180)

- в противном случае:- otherwise:

- если availTL равно TRUE и bCTUboundary равно FALSE, применяется следующее:- if availTL is TRUE and bCTUboundary is FALSE, the following applies:

pSelDsY[idx]=(pY[0][−3]+
pY[−1][−2] + 4* pY[0][−2] + pY[1][−2] + pY[0][−1] + 4) >> 3
pSelDsY[idx]=(pY[0][−3]+
pY[−1][−2] + 4* pY[0][−2] + pY[1][−2] + pY[0][−1] + 4) >> 3
(8-181)(8-181)

-в противном случае, если availTL равно TRUE и bCTUboundary равно TRUE, применяется следующее:- otherwise, if availTL is TRUE and bCTUboundary is TRUE, the following applies:

pSelDsY[idx]=(pY[−1][−1]+
2*pY[0][−1] + pY[1][−1] +2) >> 2
pSelDsY[idx]=(pY[−1][−1]+
2*pY[0][−1] + pY[1][−1] +2) >> 2
(8-182)(8-182)

- в противном случае, если availTL равно FALSE и bCTUboundary равно FALSE, применяется следующее:- otherwise, if availTL is FALSE and bCTUboundary is FALSE, the following applies:

pSelDsY[idx] = (pY[0][−3] + 2 * pY[0][−2] + pY[0][−1] + 2) >> 2pSelDsY[idx] = (pY[0][−3] + 2 * pY[0][−2] + pY[0][−1] + 2) >> 2 (8-183)(8-183)

- в противном случае (availTL равно FALSE и bCTUboundary равно TRUE), применяется следующее:- otherwise (availTL is FALSE and bCTUboundary is TRUE), the following applies:

pSelDsY[idx] = pY[0][−1]pSelDsY[idx] = pY[0][−1] (8-184)(8-184)

- в противном случае, применяется следующее:- otherwise, the following applies:

- если x > 0:- if x > 0:

- если bCTUboundary равно FALSE, применяется следующее:- if bCTUboundary is FALSE, the following applies:

pSelDsY[idx]=(pY[2*x−1][−2]+pY[2*x−1][−1]+
2*pY[2*x][−2] +2*pY[2*x][−1] +pY[2*x + 1][−2] + pY[2*x + 1][−1] + 4) >> 3
pSelDsY[idx]=(pY[2*x−1][−2]+pY[2*x−1][−1]+
2*pY[2*x][−2] +2*pY[2*x][−1] +pY[2*x + 1][−2] + pY[2*x + 1][−1 ] + 4) >> 3
(8-185)(8-185)

- иначе, (bCTUboundary равно TRUE), применяется следующее:- otherwise, (bCTUboundary is TRUE), the following applies:

pSelDsY[idx]=(pY[2*x−1][−1]+
2*pY[2 * x][−1] + pY[2*x + 1][−1] + 2) >> 2
pSelDsY[idx]=(pY[2*x−1][−1]+
2*pY[2 * x][−1] + pY[2*x + 1][−1] + 2) >> 2
(8-186)(8-186)

- в противном случае:- otherwise:

- если availTL равно TRUE и bCTUboundary равно FALSE, применяется следующее:- if availTL is TRUE and bCTUboundary is FALSE, the following applies:

pSelDsY[idx]=(pY[−1][−2]+pY[−1][−1]+
2*pY[0][−2] +2*pY[0][−1] + pY[1][−2] +pY[1][−1] + 4) >> 3
pSelDsY[idx]=(pY[−1][−2]+pY[−1][−1]+
2*pY[0][−2] +2*pY[0][−1] + pY[1][−2] +pY[1][−1] + 4) >> 3
(8-187)(8-187)

- в противном случае, если availTL равно TRUE и bCTUboundary равно TRUE, применяется следующее:- otherwise, if availTL is TRUE and bCTUboundary is TRUE, the following applies:

pSelDsY[idx]=(pY[−1][−1]+
2*pY[0][−1] + pY[1][−1] + 2) >> 2
pSelDsY[idx]=(pY[−1][−1]+
2*pY[0][−1] + pY[1][−1] + 2) >> 2
(8-188)(8-188)

- в противном случае, если availTL равно FALSE и bCTUboundary равно FALSE, применяется следующее:- otherwise, if availTL is FALSE and bCTUboundary is FALSE, the following applies:

pSelDsY[idx] = (pY[0][−2] + pY[0][−1] + 1) >> 1 pSelDsY[idx] = (pY[0][−2] + pY[0][−1] + 1) >> 1 (8-189)(8-189)

- в противном случае (availTL равно FALSE и bCTUboundary равно TRUE), применяется следующее:- otherwise (availTL is FALSE and bCTUboundary is TRUE), the following applies:

pSelDsY[idx] = pY[0][−1] pSelDsY[idx] = pY[0][−1] (8-190)(8-190)

6. Когда cntT+ cntL не равно 0, переменные minY, maxY, minC and maxC получают следующим образом:6. When cntT+ cntL is not equal to 0, the variables minY, maxY, minC and maxC are obtained as follows:

--

- когда cntT+cntL равен 2, устанавливают pSelComp[3] равен pSelComp [0], pSelComp[2] равен pSelComp[1], pSelComp[0] равен pSelComp [1] и pSelComp[1] равен pSelComp[3] с Comp заменённым на DsY и C.- when cntT+cntL is 2, set pSelComp[3] equal to pSelComp[0], pSelComp[2] equal to pSelComp[1], pSelComp[0] equal to pSelComp[1] and pSelComp[1] equal to pSelComp[3] with Comp replaced by DsY and C.

- массивы minGrpIdx[] и maxGrpIdx[] установлены как: minGrpIdx[0] = 0, minGrpIdx[1] = 1, maxGrpIdx[0] = 2, maxGrpIdx[1] = 3.- arrays minGrpIdx[] and maxGrpIdx[] are set as: minGrpIdx[0] = 0, minGrpIdx[1] = 1, maxGrpIdx[0] = 2, maxGrpIdx[1] = 3.

- если pSelDsY[minGrpIdx[0]] > pSelDsY[minGrpIdx[1]], поменять (minGrpIdx[0], minGrpIdx[1]).- if pSelDsY[minGrpIdx[0]] > pSelDsY[minGrpIdx[1]], change (minGrpIdx[0], minGrpIdx[1]).

- если pSelDsY[maxGrpIdx[0]] > pSelDsY[maxGrpIdx[1]], поменять (maxGrpIdx[0], maxGrpIdx[1]).- if pSelDsY[maxGrpIdx[0]] > pSelDsY[maxGrpIdx[1]], change (maxGrpIdx[0], maxGrpIdx[1]).

- если pSelDsY[minGrpIdx[0]] >pSelDsY[maxGrpIdx[1]], поменять (minGrpIdx, maxGrpIdx).- if pSelDsY[minGrpIdx[0]] >pSelDsY[maxGrpIdx[1]], change (minGrpIdx, maxGrpIdx).

- если pSelDsY[minGrpIdx[1]] > pSelDsY[maxGrpIdx[0]], поменять (minGrpIdx[1], maxGrpIdx[0]).- if pSelDsY[minGrpIdx[1]] > pSelDsY[maxGrpIdx[0]], change (minGrpIdx[1], maxGrpIdx[0]).

- maxY = (pSelDsY[maxGrpIdx[0]] + pSelDsY[maxGrpIdx[1]] + 1) >> 1.- maxY = (pSelDsY[maxGrpIdx[0]] + pSelDsY[maxGrpIdx[1]] + 1) >> 1.

- maxC = (pSelC[maxGrpIdx[0]] + pSelC[maxGrpIdx[1]] + 1) >> 1.- maxC = (pSelC[maxGrpIdx[0]] + pSelC[maxGrpIdx[1]] + 1) >> 1.

- minY = (pSelDsY[minGrpIdx[0]] + pSelDsY[minGrpIdx[1]] + 1) >> 1.- minY = (pSelDsY[minGrpIdx[0]] + pSelDsY[minGrpIdx[1]] + 1) >> 1.

- minC = (pSelC[minGrpIdx[0]] + pSelC[minGrpIdx[1]] + 1) >> 1.- minC = (pSelC[minGrpIdx[0]] + pSelC[minGrpIdx[1]] + 1) >> 1.

7. переменные a, b и k получены следующим образом:7. variables a, b and k are obtained as follows:

- если numSampL равен 0 и numSampT равен 0, применяется следующее:- if numSampL is 0 and numSampT is 0, the following applies:

k = 0k = 0 (8-208)(8-208) a = 0a = 0 (8-209)(8-209) b = 1 << (BitDepthC − 1)b = 1 << (BitDepth C − 1) (8-210)(8-210)

- в противном случае, применяется следующее:- otherwise, the following applies:

diff = maxY − minYdiff = maxY − minY (8-211)(8-211)

- если diff не равен 0, применяется следующее:- if diff is not equal to 0, the following applies:

diffC = maxC − minCdiffC = maxC − minC (8-212)(8-212) x = Floor(Log2(diff))x = Floor(Log2(diff)) (8-213)(8-213) normDiff = ((diff << 4) >> x) & 15normDiff = ((diff << 4) >> x) & 15 (8-214)(8-214) x += (normDiff != 0) ? 1 : 0x += (normDiff != 0) ? ten (8-215)(8-215) y = Floor(Log2(Abs (diffC))) + 1y = Floor(Log2(Abs (diffC))) + 1 (8-216)(8-216) a = (diffC * (divSigTable[normDiff] | 8) + 2y − 1) >> ya = (diffC * (divSigTable[normDiff] | 8) + 2y − 1) >> y (8-217)(8-217) k = ((3 + x − y) < 1) ? 1 : 3 + x − yk = ((3 + x − y) < 1) ? 1 : 3 + x − y (8-218)(8-218) a = ((3 + x − y) < 1) ? Sign(a) * 15 : aa = ((3 + x − y) < 1) ? Sign(a) * 15 : a (8-219)(8-219) b = minC − ((a * minY) >> k)b = minC − ((a * minY) >> k) (8-220)(8-220)

где divSigTable[] определяется следующим образом:where divSigTable[] is defined like this:

divSigTable[] = {0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0}divSigTable[] = {0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0} (8-221)(8-221)

- иначе (diff равно 0), применяется следующее:- otherwise (diff is 0), the following applies:

k = 0k = 0 (8-222)(8-222) a = 0a = 0 (8-223)(8-223) b = minCb = minC (8-224)(8-224)

8. Выборки предсказания predSamples[x][y] с x = 0..nTbW − 1, y = 0.. nTbH − 1 получены следующим образом:8. The prediction samples predSamples[x][y] with x = 0..nTbW − 1, y = 0.. nTbH − 1 are obtained as follows:

predSamples[x][y] = Clip1C(((pDsY[x][y] * a) >> k) + b) predSamples[x][y] = Clip1C(((pDsY[x][y] * a) >> k) + b) (8-225)(8-225)

3.8 Альтернативный рабочий проект по предлагаемому CCLM предсказанию3.8 Alternative working draft for the proposed CCLM prediction

В этом разделе описан альтернативный примерный вариант осуществления, который показывает другие модификации, которые могут быть выполнены в текущем рабочем проекте VVC стандарта. Номера уравнения здесь относятся к соответствующим номерам уравнения в VVC стандарте.This section describes an alternative exemplary embodiment that shows other modifications that may be made in the current working draft of the VVC standard. The equation numbers here refer to the corresponding equation numbers in the VVC standard.

Спецификация INTRA_LT_CCLM, INTRA_L_CCLM и INTRA_T_CCLM режима внутрикадрового предсказанияSpecification of INTRA_LT_CCLM, INTRA_L_CCLM and INTRA_T_CCLM intra prediction mode

......

Количество доступных соседних выборок цветности на верхней и верхней правой numTopSamp и количество доступных соседних выборок цветности левой и левой нижней nLeftSamp получены следующим образом:The number of available adjacent chroma samples on the top and top right numTopSamp and the number of available adjacent chroma samples of the left and bottom left nLeftSamp are obtained as follows:

- если predModeIntra равен INTRA_LT_CCLM, применяется следующее:- if predModeIntra is equal to INTRA_LT_CCLM, the following applies:

numSampT = availT ? nTbW : 0numSampT = availT ? ntbW : 0 (8-157)(8-157) numSampL = availL ? nTbH : 0numSampL = availL ? nTbH : 0 (8-158)(8-158)

- в противном случае, применяется следующее:- otherwise, the following applies:

Figure 00000051
Figure 00000051

Переменная bCTUboundary получена следующим образом:The bCTUboundary variable is obtained as follows:

bCTUboundary = (yTbC & (1<<(CtbLog2SizeY−1)− 1) = = 0)? TRUE: FALSE. (8-161)bCTUboundary = (yTbC & (1<<(CtbLog2SizeY−1)− 1) = = 0)? TRUE: FALSE. (8-161)

Переменная cntN и массив pickPosN[] с N заменным на L and T, получены следующим образом:The variable cntN and the array pickPosN[] with N replaced by L and T are obtained as follows:

- переменная numIs4N установлена равным ((availT && availL && predModeIntra == INTRA_LT_CCLM) ? 0 : 1).- variable numIs4N is set equal to ((availT && availL && predModeIntra == INTRA_LT_CCLM) ? 0 : 1).

- переменная startPosN установлена равным numSampN >> (2 + numIs4N).- variable startPosN is set equal to numSampN >> (2 + numIs4N).

- переменная pickStepN установлена равным Max(1, numSampN >> (1 + numIs4N)).- variable pickStepN is set to Max(1, numSampN >> (1 + numIs4N)).

- если availN равно TRUE и predModeIntra равен INTRA_LT_CCLM or INTRA_N_CCLM, cntN установлена равным Min(numSampN, (1 + numIs4N) << 1) и pickPosN[pos] установлена равным (startPosN + pos * pickStepN), с pos = 0..(cntN – 1). - if availN is TRUE and predModeIntra is INTRA_LT_CCLM or INTRA_N_CCLM, cntN is set to Min(numSampN, (1 + numIs4N) << 1) and pickPosN[pos] is set to (startPosN + pos * pickStepN), with pos = 0..( cntN - 1).

- в противном случае, cntN установлена равным 0.- otherwise, cntN is set to 0.

Выборки предсказания predSamples[x][y] с x = 0..nTbW − 1, y = 0..nTbH − 1 получены следующим образом:The prediction samples predSamples[x][y] with x = 0..nTbW − 1, y = 0..nTbH − 1 are obtained as follows:

- если обе numSampL и numSampT равны 0, применятся следующее:- if both numSampL and numSampT are 0, the following applies:

predSamples[x][y] = 1 << (BitDepthC − 1) predSamples[x][y] = 1 << (BitDepthC - 1) (8-162)(8-162)

- в противном случае, применяются следующие упорядоченные этапы:Otherwise, the following ordered steps apply:

1. Совместно расположенные выборки яркости pY[x][y] с x = 0..nTbW * 2 − 1, y= 0..nTbH * 2 − 1 установлены равными восстановленным выборкам яркости до выполнения процесса фильтрации деблокинга на местоположениях (xTbY + x, yTbY + y).1. Co-located luma samples pY[x][y] with x = 0..nTbW * 2 − 1, y= 0..nTbH * 2 − 1 are set equal to the reconstructed luma samples prior to the deblocking filtering process at the locations (xTbY + x, yTbY + y).

2. Соседние выборки яркости pY[x][y] получены следующим образом:2. Neighboring brightness samples pY[x][y] are obtained as follows:

- когда numSampL больше 0, соседние левые выборки яркости pY[x][y] с x = −1..−3, y = 0..2 * numSampL – 1 установлены равными восстановленным выборкам яркости до выполнения процесса фильтрации деблокинга на местоположениях (xTbY + x , yTbY +y).- when numSampL is greater than 0, adjacent left luma samples pY[x][y] with x = −1..−3, y = 0..2 * numSampL – 1 are set equal to the reconstructed luminance samples prior to performing the deblocking filtering process on locations ( xTbY + x , yTbY + y).

- когда numSampT больше 0, соседние верхние выборки яркости pY[x][y] с x = 0..2 * numSampT − 1, y = −1, −2, установлены равными восстановленным выборкам яркости до выполнения процесса фильтрации деблокинга на местоположениях (xTbY+ x, yTbY + y).- when numSampT is greater than 0, adjacent top luminance samples pY[x][y] with x = 0..2 * numSampT − 1, y = −1, −2, are set equal to the reconstructed luminance samples prior to performing the deblocking filtering process on locations ( xTbY+ x, yTbY + y).

- когда availTL равен TRUE, соседние верхние левые выборки яркости pY[x][y] с x = −1, y = −1, −2 установлены равными восстановленным выборкам яркости до выполнения процесса фильтрации деблокинга на местоположениях (xTbY+ x, yTbY + y).- when availTL is TRUE, the adjacent upper left luminance samples pY[x][y] with x = −1, y = −1, −2 are set equal to the reconstructed luminance samples prior to performing the deblocking filtering process at the locations (xTbY+ x, yTbY + y ).

3. Соседние выборки яркости после понижающей дискретизации pDsY[x][y] с x = 0..nTbW − 1, y = 0..nTbH − 1 получены следующим образом:3. Downsampled adjacent brightness samples pDsY[x][y] with x = 0..nTbW − 1, y = 0..nTbH − 1 are obtained as follows:

- если sps_cclm_colocated_chroma_flag равен 1, применяется следующее:- if sps_cclm_colocated_chroma_flag is 1, the following applies:

pDsY[x][y] с x = 1..nTbW − 1, y = 1..nTbH − 1 получено следующим образом:pDsY[x][y] with x = 1..nTbW − 1, y = 1..nTbH − 1 is obtained as follows:

pDsY[x][y]=(pY[2*x][2*y−1]+
pY[2 * x − 1][2 * y] + 4 * pY[2*x][2*y] + pY[2* x + 1][2 * y] + pY[2* x][2 * y + 1] + 4) >> 3
pDsY[x][y]=(pY[2*x][2*y−1]+
pY[2 * x − 1][2 * y] + 4 * pY[2*x][2*y] + pY[2* x + 1][2 * y] + pY[2* x][2 *y + 1] + 4) >> 3
(8-163)(8-163)

- если availL равно TRUE, pDsY[0][y] с y = 1..nTbH − 1 получено следующим образом:- if availL is TRUE, pDsY[0][y] with y = 1..nTbH − 1 is obtained as follows:

pDsY[0][y]=(pY[0][2*y−1]+
pY[−1][2*y] + 4*pY[0][2*y] + pY[1][2*y] + pY[0][2*y + 1] + 4) >> 3
pDsY[0][y]=(pY[0][2*y−1]+
pY[−1][2*y] + 4*pY[0][2*y] + pY[1][2*y] + pY[0][2*y + 1] + 4) >> 3
(8-164)(8-164)

- в противном случае, pDsY[0][y] with y = 1..nTbH − 1 получено следующим образом:- otherwise, pDsY[0][y] with y = 1..nTbH − 1 is obtained as follows:

pDsY[0][y] = (pY[0][2*y − 1] + 2*pY[0][2*y] + pY[0][2* y + 1] + 2) >> 2 pDsY[0][y] = (pY[0][2*y − 1] + 2*pY[0][2*y] + pY[0][2* y + 1] + 2) >> 2 (8-165)(8-165)

- если availT равен TRUE, pDsY[x][0] с x = 1..nTbW − 1 получено следующим образом:- if availT is TRUE, pDsY[x][0] with x = 1..nTbW − 1 is obtained as follows:

pDsY[x][0]=(pY[2*x][−1]+
pY[2*x − 1][0] + 4*pY[2 * x][0] + pY[2* x + 1][0] + pY[2* x][1] + 4) >> 3
pDsY[x][0]=(pY[2*x][−1]+
pY[2*x − 1][0] + 4*pY[2 * x][0] + pY[2* x + 1][0] + pY[2* x][1] + 4) >> 3
(8-166)(8-166)

- в противном случае, pDsY[x][0] with x = 1..nTbW − 1 получено следующим образом:- otherwise, pDsY[x][0] with x = 1..nTbW − 1 is obtained as follows:

pDsY[x][0] = (pY[2*x − 1][0] + 2* pY[2*x][0] + pY[2*x + 1][0] + 2) >> 2 (8-167)pDsY[x][0] = (pY[2*x − 1][0] + 2* pY[2*x][0] + pY[2*x + 1][0] + 2) >> 2 (8-167)

- если availL равен TRUE и availT равен TRUE, pDsY[0][0] получено следующим образом:- if availL is TRUE and availT is TRUE, pDsY[0][0] is obtained as follows:

pDsY[0][0]=(pY[0][−1]+
pY[−1][0] + 4*pY[0][0] + pY[1][0] + pY[0][1] + 4) >> 3
pDsY[0][0]=(pY[0][−1]+
pY[−1][0] + 4*pY[0][0] + pY[1][0] + pY[0][1] + 4) >> 3
(8-168)(8-168)

- в противном случае, если availL равен TRUE и availT равен FALSE, pDsY[0][0] получено следующим образом:- otherwise, if availL is TRUE and availT is FALSE, pDsY[0][0] is obtained as follows:

pDsY[0][0] = (pY[−1][0] + 2 * pY[0][0] + pY[1][0] + 2) >> 2pDsY[0][0] = (pY[−1][0] + 2 * pY[0][0] + pY[1][0] + 2) >> 2 (8-169)(8-169)

- в противном случае, если availL равен FALSE и availT равен TRUE, pDsY[0][0] получено следующим образом:- otherwise, if availL is FALSE and availT is TRUE, pDsY[0][0] is obtained as follows:

pDsY[0][0] = (pY[0][−1] + 2*pY[0][0] + pY[0][1] + 2) >> 2pDsY[0][0] = (pY[0][−1] + 2*pY[0][0] + pY[0][1] + 2) >> 2 (8-170)(8-170)

- в противном случае (availL равен FALSE и availT равен FALSE), pDsY[0][0] получено следующим образом:- otherwise (availL is FALSE and availT is FALSE), pDsY[0][0] is obtained as follows:

pDsY[0][0] = pY[0][0] (8-171)pDsY[0][0] = pY[0][0] (8-171)

- в противном случае, применяется следующее:- otherwise, the following applies:

pDsY[x][y] with x = 1..nTbW − 1, y = 0..nTbH − 1 получено следующим образом:pDsY[x][y] with x = 1..nTbW − 1, y = 0..nTbH − 1 is obtained as follows:

pDsY[x][y]=(pY[2*x−1][2*y]+pY[2*x−1][2*y+1]+
2* pY[2* x][2* y] + 2*pY[2*x][2*y + 1] + pY[2* x + 1][2* y] + pY[2* x + 1][2*y + 1] + 4) >> 3
pDsY[x][y]=(pY[2*x−1][2*y]+pY[2*x−1][2*y+1]+
2* pY[2* x][2* y] + 2*pY[2*x][2*y + 1] + pY[2* x + 1][2* y] + pY[2* x + 1][2*y + 1] + 4) >> 3
(8-172)(8-172)

- если availL равно TRUE, pDsY[0][y] with y = 0..nTbH − 1 получено следующим образом:- if availL is TRUE, pDsY[0][y] with y = 0..nTbH − 1 is obtained as follows:

pDsY[0][y]=(pY[−1][2*y]+pY[−1][2*y+1]+
2* pY[0][2 * y] + 2*pY[0][2*y + 1] + pY[1][2 * y] + pY[1][2 * y + 1] + 4) >> 3
pDsY[0][y]=(pY[−1][2*y]+pY[−1][2*y+1]+
2* pY[0][2 * y] + 2*pY[0][2*y + 1] + pY[1][2 * y] + pY[1][2 * y + 1] + 4) >> 3
(8-173)(8-173)

- в противном случае, pDsY[0][y] с y = 0..nTbH − 1 получено следующим образом:- otherwise, pDsY[0][y] with y = 0..nTbH − 1 is obtained as follows:

pDsY[0][y] = (pY[0][2* y] + pY[0][2* y + 1] + 1) >> 1 pDsY[0][y] = (pY[0][2* y] + pY[0][2* y + 1] + 1) >> 1 (8-174)(8-174)

4. Когда numSampL больше 0, выбранные соседние левые выборки цветности pSelC[idx] установлены равные p[-1][pickPosL[idx]] с idx = 0..(cntL – 1), и выбранные соседние левые выборки яркости после понижающей дискретизации pSelDsY[idx] with idx = 0..(cntL-1) получены следующим образом:4. When numSampL is greater than 0, the selected adjacent left chroma samples pSelC[idx] are set equal to p[-1][pickPosL[idx]] with idx = 0..(cntL – 1), and the selected adjacent left luma samples after downsampling pSelDsY[idx] with idx = 0..(cntL-1) are obtained as follows:

- переменная y is устанавливается равной pickPosL[idx].- variable y is is set equal to pickPosL[idx].

- если sps_cclm_colocated_chroma_flag равен 1, применяется следующее:- if sps_cclm_colocated_chroma_flag is 1, the following applies:

- если y > 0 || availTL == TRUE,- if y > 0 || availTL == TRUE,

pSelDsY[idx]=(pY[−2][2*y−1]+
pY[−3][2*y] + 4* pY[−2][2*y] + pY[−1][2*y] + pY[−2][2* y + 1] + 4) >> 3
pSelDsY[idx]=(pY[−2][2*y−1]+
pY[−3][2*y] + 4* pY[−2][2*y] + pY[−1][2*y] + pY[−2][2* y + 1] + 4) >> 3
(8-175)(8-175)

- в противном случае, - otherwise,

pSelDsY[idx] = (pY[−3][0] + 2 * pY[−2][0] + pY[−1][0] + 2) >> 2 (8-177)pSelDsY[idx] = (pY[−3][0] + 2 * pY[−2][0] + pY[−1][0] + 2) >> 2 (8-177)

- в противном случае, применяется следующее:- otherwise, the following applies:

pSelDsY[idx]=(pY[−1][2*y]+pY[−1][2*y+1]+
2*pY[−2][2*y] + 2*pY[−2][2*y + 1] + pY[−3][2* y] + pY[−3][2*y +1] +4)
>> 3
pSelDsY[idx]=(pY[−1][2*y]+pY[−1][2*y+1]+
2*pY[−2][2*y] + 2*pY[−2][2*y + 1] + pY[−3][2* y] + pY[−3][2*y +1 ]+4)
>> 3
(8-178)(8-178)

5. Когда numSampT больше 0, выбранные соседние верхние выборки цветности pSelC[idx] устанавливаются равными p[pickPosT[idx – cntL]][-1] с idx = cntL..(cntL + cntT – 1), и соседние верхние выборки яркости после понижающей дискретизации pSelDsY[idx] с idx = cntL..(cntL + cntT – 1) указаны следующим образом:5. When numSampT is greater than 0, the selected adjacent chroma top samples pSelC[idx] are set to p[pickPosT[idx – cntL]][-1] with idx = cntL..(cntL + cntT – 1), and the adjacent luminance top samples after downsampling pSelDsY[idx] with idx = cntL..(cntL + cntT – 1) are given as follows:

- переменная x установлена равной pickPosT[idx – cntL].- variable x is set equal to pickPosT[idx – cntL].

- если sps_cclm_colocated_chroma_flag равен 1, применяется следующее:- if sps_cclm_colocated_chroma_flag is 1, the following applies:

- если x > 0:- if x > 0:

- если bCTUboundary равно FALSE, применяется следующее:- if bCTUboundary is FALSE, the following applies:

pSelDsY[idx]=(pY[2*x][−3] +
pY[2*x − 1][−2] + 4*pY[2* x][−2] + pY[2*x + 1][−2] +pY[2* x][−1] + 4) >> 3
pSelDsY[idx]=(pY[2*x][−3] +
pY[2*x − 1][−2] + 4*pY[2* x][−2] + pY[2*x + 1][−2] +pY[2* x][−1] + 4) >> 3
(8-179)(8-179)

- иначе, (bCTUboundary равно TRUE), применяется следующее:- otherwise, (bCTUboundary is TRUE), the following applies:

pSelDsY[idx]=(pY[2*x−1][−1] +
2* pY[2*x][−1] + pY[2* x + 1][−1] + 2) >> 2
pSelDsY[idx]=(pY[2*x−1][−1] +
2* pY[2*x][−1] + pY[2* x + 1][−1] + 2) >> 2
(8-180)(8-180)

- в противном случае:- otherwise:

- если availTL равно TRUE и bCTUboundary равно FALSE, применяется следующее:- if availTL is TRUE and bCTUboundary is FALSE, the following applies:

pSelDsY[idx]=(pY[0][−3] +
pY[−1][−2] + 4 * pY[0][−2] + pY[1][−2] + pY[0][−1] + 4) >> 3
pSelDsY[idx]=(pY[0][−3] +
pY[−1][−2] + 4 * pY[0][−2] + pY[1][−2] + pY[0][−1] + 4) >> 3
(8-181)(8-181)

- иначе, если availTL равно TRUE и bCTUboundary равно TRUE, применяется следующее:Otherwise, if availTL is TRUE and bCTUboundary is TRUE, the following applies:

pSelDsY[idx]=(pY[−1][−1] +
2* pY[0][−1] + pY[1][−1] + 2) >> 2
pSelDsY[idx]=(pY[−1][−1] +
2* pY[0][−1] + pY[1][−1] + 2) >> 2
(8-182)(8-182)

- иначе, если availTL равен FALSE и bCTUboundary равен FALSE, применяется следующее:Otherwise, if availTL is FALSE and bCTUboundary is FALSE, the following applies:

pSelDsY[idx] = (pY[0][−3] + 2 * pY[0][−2] + pY[0][−1] + 2) >> 2 (8-183)pSelDsY[idx] = (pY[0][−3] + 2 * pY[0][−2] + pY[0][−1] + 2) >> 2 (8-183)

- иначе (availTL равна FALSE и bCTUboundary равна TRUE), применяется следующее:- otherwise (availTL is FALSE and bCTUboundary is TRUE), the following applies:

pSelDsY[idx] = pY[0][−1] pSelDsY[idx] = pY[0][−1] (8-184)(8-184)

- иначе, применяется следующее:- otherwise, the following applies:

- если x > 0:- if x > 0:

- если bCTUboundary равно FALSE, применяется следующее:- if bCTUboundary is FALSE, the following applies:

pSelDsY[idx]=(pY[2*x−1][−2]+pY[2*x−1][−1] +
2* pY[2*x][−2] + 2*pY[2 * x][−1] + pY[2 * x + 1][−2] + pY[2 * x + 1][−1] + 4) >> 3
pSelDsY[idx]=(pY[2*x−1][−2]+pY[2*x−1][−1] +
2* pY[2*x][−2] + 2*pY[2 * x][−1] + pY[2 * x + 1][−2] + pY[2 * x + 1][−1 ] + 4) >> 3
(8-185)(8-185)

-иначе, (bCTUboundary равно TRUE), применяется следующее:-otherwise, (bCTUboundary is TRUE), the following applies:

pSelDsY[idx]=(pY[2*x−1][−1] +
2* pY[2 * x][−1] + pY[2 * x + 1][−1] + 2) >> 2
pSelDsY[idx]=(pY[2*x−1][−1] +
2* pY[2 * x][−1] + pY[2 * x + 1][−1] + 2) >> 2
(8-186)(8-186)

- иначе:- otherwise:

- если availTL равно TRUE и bCTUboundary равно FALSE, применяется следующее:- if availTL is TRUE and bCTUboundary is FALSE, the following applies:

pSelDsY[idx]=(pY[−1][−2]+pY[−1][−1] +
2*pY[0][−2] + 2*pY[0][−1] + pY[1][−2] + pY[1][−1] + 4) >> 3
pSelDsY[idx]=(pY[−1][−2]+pY[−1][−1] +
2*pY[0][−2] + 2*pY[0][−1] + pY[1][−2] + pY[1][−1] + 4) >> 3
(8-187)(8-187)

- иначе, если availTL равно TRUE и bCTUboundary равно TRUE, применяется следующее:Otherwise, if availTL is TRUE and bCTUboundary is TRUE, the following applies:

pSelDsY[idx]=(pY[−1][−1] +
2* pY[0][−1] + pY[1][−1] + 2) >> 2
pSelDsY[idx]=(pY[−1][−1] +
2* pY[0][−1] + pY[1][−1] + 2) >> 2
(8-188)(8-188)

- иначе, если availTL равно FALSE и bCTUboundary равно FALSE, применяется следующее:Otherwise, if availTL is FALSE and bCTUboundary is FALSE, the following applies:

pSelDsY[idx] = (pY[0][−2] + pY[0][−1] + 1) >> 1 pSelDsY[idx] = (pY[0][−2] + pY[0][−1] + 1) >> 1 (8-189)(8-189)

- иначе, (availTL равно FALSE и bCTUboundary равно TRUE), применяется следующее:- otherwise, (availTL is FALSE and bCTUboundary is TRUE), the following applies:

pSelDsY[idx] = pY[0][−1] pSelDsY[idx] = pY[0][−1] (8-190)(8-190)

6. Когда cntT+ cntL не равно 0, переменные minY, maxY, minC and maxC получены как ниже указано:6. When cntT+ cntL is not equal to 0, the variables minY, maxY, minC and maxC are obtained as follows:

--

- когда cntT+cntL равен 2, установить pSelComp[3] равным pSelComp [0], pSelComp[2] равным pSelComp[1], pSelComp[0] равным pSelComp [1] и pSelComp[1] равным pSelComp[3] с Comp замененный DsY и C.- when cntT+cntL is 2, set pSelComp[3] to pSelComp[0], pSelComp[2] to pSelComp[1], pSelComp[0] to pSelComp[1] and pSelComp[1] to pSelComp[3] with Comp replaced by DsY and C.

- массивы minGrpIdx[] и maxGrpIdx[] установлены как: minGrpIdx[0] = 0, minGrpIdx[1] = 2, maxGrpIdx[0] = 1, maxGrpIdx[1] = 3.- arrays minGrpIdx[] and maxGrpIdx[] are set as: minGrpIdx[0] = 0, minGrpIdx[1] = 2, maxGrpIdx[0] = 1, maxGrpIdx[1] = 3.

- если pSelDsY[minGrpIdx[0]] > pSelDsY[minGrpIdx[1]], Swap(minGrpIdx[0], minGrpIdx[1]).- if pSelDsY[minGrpIdx[0]] > pSelDsY[minGrpIdx[1]], Swap(minGrpIdx[0], minGrpIdx[1]).

- если pSelDsY[maxGrpIdx[0]] > pSelDsY[maxGrpIdx[1]], Swap(maxGrpIdx[0], maxGrpIdx[1]).- if pSelDsY[maxGrpIdx[0]] > pSelDsY[maxGrpIdx[1]], Swap(maxGrpIdx[0], maxGrpIdx[1]).

- если pSelDsY[minGrpIdx[0]] > pSelDsY[maxGrpIdx[1]], Swap(minGrpIdx, maxGrpIdx).- if pSelDsY[minGrpIdx[0]] > pSelDsY[maxGrpIdx[1]], Swap(minGrpIdx, maxGrpIdx).

- если pSelDsY[minGrpIdx[1]] > pSelDsY[maxGrpIdx[0]], Swap(minGrpIdx[1], maxGrpIdx[0]).- if pSelDsY[minGrpIdx[1]] > pSelDsY[maxGrpIdx[0]], Swap(minGrpIdx[1], maxGrpIdx[0]).

- maxY = (pSelDsY[maxGrpIdx[0]] + pSelDsY[maxGrpIdx[1]] + 1) >> 1.- maxY = (pSelDsY[maxGrpIdx[0]] + pSelDsY[maxGrpIdx[1]] + 1) >> 1.

- maxC = (pSelC[maxGrpIdx[0]] + pSelC[maxGrpIdx[1]] + 1) >> 1.- maxC = (pSelC[maxGrpIdx[0]] + pSelC[maxGrpIdx[1]] + 1) >> 1.

- minY = (pSelDsY[minGrpIdx[0]] + pSelDsY[minGrpIdx[1]] + 1) >> 1.- minY = (pSelDsY[minGrpIdx[0]] + pSelDsY[minGrpIdx[1]] + 1) >> 1.

- minC = (pSelC[minGrpIdx[0]] + pSelC[minGrpIdx[1]] + 1) >> 1.- minC = (pSelC[minGrpIdx[0]] + pSelC[minGrpIdx[1]] + 1) >> 1.

7. Переменные a, b и k получены следующим образом:7. Variables a, b and k are obtained as follows:

- если numSampL равно 0 и numSampT равно 0, применяется следующее:- if numSampL is 0 and numSampT is 0, the following applies:

k = 0k = 0 (8-208)(8-208) a = 0a = 0 (8-209)(8-209) b = 1 << (BitDepthC − 1)b = 1 << (BitDepth C - 1) (8-210)(8-210)

- в противном случае, применяется следующее:- otherwise, the following applies:

diff = maxY − minY diff = maxY − minY (8-211)(8-211)

- если diff не равно 0, применяется следующее:- if diff is not equal to 0, the following applies:

diffC = maxC − minCdiffC = maxC − minC (8-212)(8-212) x = Floor(Log2(diff))x = Floor(Log2(diff)) (8-213)(8-213) normDiff = ((diff << 4) >> x) & 15normDiff = ((diff << 4) >> x) & 15 (8-214)(8-214) x += (normDiff != 0) ? 1 : 0x += (normDiff != 0) ? ten (8-215)(8-215) y = Floor(Log2(Abs (diffC))) + 1y = Floor(Log2(Abs (diffC))) + 1 (8-216)(8-216) a = (diffC * (divSigTable[normDiff] | 8) + 2y − 1) >> ya = (diffC * (divSigTable[normDiff] | 8) + 2y − 1) >> y (8-217)(8-217) k = ((3 + x − y) < 1) ? 1 : 3 + x − yk = ((3 + x − y) < 1) ? 1 : 3 + x − y (8-218)(8-218) a = ((3 + x − y) < 1) ? Sign(a) * 15 : aa = ((3 + x − y) < 1) ? Sign(a) * 15 : a (8-219)(8-219) b = minC − ((a * minY) >> k)b = minC − ((a * minY) >> k) (8-220)(8-220)

когда divSigTable[] указано как:when divSigTable[] is specified as:

divSigTable[] = {0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0} (8-221)divSigTable[] = {0, 7, 6, 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 0} (8-221)

- в противном случае, (diff равно 0), применяется следующее:- otherwise, (diff is 0), the following applies:

k = 0k = 0 (8-222)(8-222) a = 0a = 0 (8-223)(8-223) b = minCb = minC (8-224)(8-224)

8. Выборки предсказания predSamples[x][y] с x = 0..nTbW − 1, y = 0.. nTbH − 1 получены следующим образом:8. The prediction samples predSamples[x][y] with x = 0..nTbW − 1, y = 0.. nTbH − 1 are obtained as follows:

predSamples[x][y] = Clip1C(((pDsY[x][y] * a) >> k) + b) (8-225).predSamples[x][y] = Clip1C(((pDsY[x][y] * a) >> k) + b) (8-225).

Приведенные выше примеры могут быть добавлены в контекст способов, описанных ниже, например, способы 1800, 1900 и 2000 которые могут быть реализованы в кодере и/или декодере видео.The above examples may be added in the context of the methods described below, for example, methods 1800, 1900, and 2000 which may be implemented in a video encoder and/or decoder.

Фиг.18 показывает блок-схему алгоритма примерного способа для обработки видео. Способ 1800 включает в себя этап 1812 определения, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, параметров межкомпонентной линейной модели (CCLM) на основании выборок цветности, которые выбираются на основании W доступных верхних соседних выборок, W является целым числом. Способ 1810 дополнительно включает в себя этап 1814 выполнения преобразования на основании определения.18 shows a flowchart of an exemplary method for video processing. Method 1800 includes a step 1812 of determining, for converting between the current video block, which is a chroma block, and the encoded representation of the video, inter-component linear model (CCLM) parameters based on chrominance samples that are selected based on W available upper neighbor samples, W is an integer. The method 1810 further includes an act 1814 of performing a transformation based on the determination.

Фиг.18B показывает блок-схему примерного способа для обработки видео. Способ 1820 включает в себя этап 1822 определения, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, параметров режима предсказания межкомпонентной линейной модели (CCLM) на основании выборок цветности, которые выбираются на основании H доступных левых соседних выборок текущего блока видео. Способ 1820 дополнительно включает в себя этап 1824 выполнения преобразования на основании определения.Figv shows a flowchart of an exemplary method for video processing. Method 1820 includes a step 1822 of determining, for converting between the current video block, which is a chrominance block, and the encoded representation of the video, inter-component linear model (CCLM) prediction mode parameters based on chrominance samples that are selected based on H available left neighbor samples. current video block. The method 1820 further includes an act 1824 of performing a transformation based on the determination.

Фиг.19А показывает блок-схему алгоритма примерного способа для обработки видео. Способ 1910 включает в себя этап 1912 определения, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, параметров межкомпонентной линейной модели (CCLM) на основании двух или четырех выборок цветности и/или соответствующих выборок яркости. Способ 1910 дополнительно включает в себя этап 1914 выполнения преобразования на основании определения.19A shows a flowchart of an exemplary method for video processing. Method 1910 includes a step 1912 of determining, for converting between the current video block, which is a chrominance block, and the encoded representation of the video, inter-component linear model (CCLM) parameters based on two or four chrominance samples and/or corresponding luma samples. The method 1910 further includes an act 1914 of performing a transformation based on the determination.

Фиг.19B показывает блок-схему алгоритма примерного способа для обработки видео. Способ 1920 включает в себя этап 1922 выбора, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, выборок цветности на основании правила позиции, выборки цветности, используемые для получения параметров межкомпонентной линейной модели (CCLM). Способ 1920 дополнительно включает в себя этап 1924 выполнения преобразования на основании определения. В этом примере правило позиции указывает выбрать выборки цветности, которые расположены в пределах верхней строки и/или левого столбца текущего блока видео.19B shows a flowchart of an exemplary method for video processing. The method 1920 includes a selection step 1922 for converting between the current video block, which is a chrominance block, and the encoded representation of the video, chroma samples based on the position rule, chrominance samples used to derive inter-component linear model (CCLM) parameters. The method 1920 further includes an act 1924 of performing a transformation based on the determination. In this example, the position rule specifies to select chrominance samples that are located within the top row and/or left column of the current video block.

Фиг.20А показывает блок-схему алгоритма примерного способа для обработки видео. Способ 2010 включает в себя этап 2012 определения, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, позиций, на которых выборки яркости подвержены понижающей дискретизации, в котором выборки яркости после понижающей дискретизации используются для определения параметров межкомпонентной линейной модели (CCLM) на основании выборок цветности и выборок яркости, подверженных понижающей дискретизации, в котором выборки яркости, подверженные понижающей дискретизации, находятся на позициях, соответствующих позициям выборок цветности, которые используются для получения CCLM параметров. Способ 2010 дополнительно включает в себя этап 2024 выполнения преобразования на основании определения.Figa shows a flowchart of an exemplary method for video processing. The method 2010 includes a step 2012 of determining, for converting between the current video block, which is a chrominance block, and the encoded representation of the video, the positions at which the luminance samples are downsampled, in which the downsampled luminance samples are used to determine inter-component linear parameters. model (CCLM) based on chrominance samples and downsampled luminance samples, in which the downsampled luma samples are at positions corresponding to the positions of the chrominance samples that are used to derive the CCLM parameters. The method 2010 further includes a step 2024 of performing a transformation based on the definition.

Фиг.20B показывает блок-схему последовательности операций примерного способа для обработки видео. Способ 2020 включает в себя этап 2022 определения, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, способа для получения параметров межкомпонентной линейной модели (CCLM) с использованием выборок цветности и выборок яркости, на основании состояния кодирования, ассоциированного с текущим блоком видео. Способ 2020 дополнительно включает в себя этап 2024 выполнения преобразования на основании определения.Figv shows a flowchart of the sequence of operations of an exemplary method for video processing. The method 2020 includes a step 2022 of determining, for converting between the current video block, which is a chrominance block, and the encoded representation of the video, a method for deriving inter-component linear model (CCLM) parameters using chrominance samples and luma samples, based on the encoding state, associated with the current video block. The method 2020 further includes a step 2024 of performing a transformation based on the definition.

Фиг.20C показывает блок-схему последовательности операций примерного способа для обработки видео. Способ 2030 включает в себя этап 2032 определения, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, следует ли получать максимальные значения и/или минимальные значения компоненты яркости и компоненты цветности, которые используются для получения параметров межкомпонентной линейной модели (CCLM) на основании доступности левого соседнего блока и верхнего соседнего блока текущего блока видео. Способ 2030 дополнительно включает в себя этап 2034 выполнения преобразования на основании определения.20C shows a flowchart of an exemplary method for video processing. The method 2030 includes a step 2032 of determining, for converting between the current video block, which is a chrominance block, and the encoded representation of the video, whether to obtain maximum and/or minimum values of the luma component and the chrominance component that are used to obtain the parameters of the inter-component linear model (CCLM) based on the availability of the left neighbor block and the top neighbor block of the current video block. The method 2030 further includes a step 2034 of performing a transformation based on the definition.

4 Пример реализаций представленной технологии4 Example implementations of the presented technology

Фиг.21А является блок-схемой устройства 3000. Устройство 3000 может использоваться для реализации одного или нескольких способов, описанных в настоящем документе. Устройство 3000 может быть воплощено в смартфоне, планшете, компьютере, приемнике интернета вещах (IоT) и т.д. Устройство 3000 может включать в себя один или несколько процессоров 3002, одну или несколько памяти 3004 и схему 3006 обработки видео. Процессор (процессоры) 3002 может быть выполнен с возможностью реализации одного или нескольких способов (включающий в себя, но не ограничиваясь, способы, как показано на фиг.18-29C), описанных в настоящем документе. Память (памяти) 3004 могут использоваться для хранения данных и кода, используемых для реализации способов и технологий, описанных в настоящем документе. Схема 3006 обработки видео может использоваться для реализации, в форме аппаратных схем, некоторых описанных в настоящем документе технологий.21A is a block diagram of a device 3000. Device 3000 may be used to implement one or more of the methods described herein. Device 3000 may be embodied in a smartphone, tablet, computer, internet of things (IoT) receiver, and so on. Device 3000 may include one or more processors 3002, one or more memories 3004, and video processing circuitry 3006. The processor(s) 3002 may be configured to implement one or more of the methods (including, but not limited to, the methods as shown in FIGS. 18-29C) described herein. Memory(s) 3004 may be used to store data and code used to implement the methods and technologies described herein. Video processing circuitry 3006 may be used to implement, in the form of hardware circuits, some of the technologies described herein.

Фиг.21B является еще одним примером блок-схемы системы обработки видео, в которой могут быть реализованы раскрытые технологии. Фиг.21B является блок-схемой, показывающей примерную систему 3100 обработки видео, в которой могут быть реализованы различные способы, раскрытые в данном документе. Различные реализации могут включать в себя некоторые или все компоненты системы 3100. Система 3100 может включать в себя вход 3102 для приема контента видео. Контент видео может быть принят в необработанном или несжатом формате, например, 8 или 10 битных значений многокомпонентных пикселей, или может быть принят в сжатом или кодированном формате. Вход 3102 может представлять сетевой интерфейс, интерфейс периферической шины или интерфейс хранения. Примеры сетевого интерфейса включают в себя проводные интерфейсы, такие как Ethernet, пассивная оптическая сеть (PON) и т.д., и беспроводные интерфейсы, такие как Wi-Fi или сотовые интерфейсы.21B is another example of a block diagram of a video processing system in which the disclosed technologies may be implemented. 21B is a block diagram showing an exemplary video processing system 3100 in which the various methods disclosed herein may be implemented. Various implementations may include some or all of the components of system 3100. System 3100 may include an input 3102 for receiving video content. The video content may be received in a raw or uncompressed format, such as 8 or 10 bit multicomponent pixel values, or may be received in a compressed or encoded format. Input 3102 may represent a network interface, a peripheral bus interface, or a storage interface. Examples of a network interface include wired interfaces such as Ethernet, passive optical network (PON), etc., and wireless interfaces such as Wi-Fi or cellular interfaces.

Система 3100 может включать в себя компонент 3104 кодирования, который может реализовывать различные способы кодирования или шифрования, описанные в настоящем документе. Компонент 3104 кодирования может снизить среднюю битовую скорость видео от входа 3102 к выходу компонента 3104 кодирования для получения кодированного представления видео. Поэтому технологии кодирования иногда называют технологиями сжатия видео или транскодирования видео. Выходные данные компонента 3104 кодирования могут быть либо храниться, либо передаваться посредством коммуникации, подключенной, как представлена компонентом 3106. Сохраненный или сообщенный битовый поток (или кодированный) представления видео, принятый на входе 3102, может использоваться компонентом 3108 для генерирования значений пикселей или отображаемого видео, которое отправляется в интерфейс 3110 отображения. Процесс генерирования видео для просмотра пользователем из представления битового потока иногда называют распаковкой видео. Кроме того, в то время как некоторые операции обработки видео называются операциями или инструментами «кодирования», очевидно, что инструменты или операции кодирования используются в кодере и соответствующих инструментах или операциями декодирования, которые являются обратными кодированию, которые будут выполняться декодером.System 3100 may include an encoding component 3104 that may implement various encoding or encryption techniques described herein. The encoding component 3104 may reduce the average video bit rate from the input 3102 to the output of the encoding component 3104 to obtain an encoded representation of the video. Therefore, encoding technologies are sometimes referred to as video compression or video transcoding technologies. The output of encoding component 3104 may be either stored or transmitted via a communication connected as represented by component 3106. The stored or reported bitstream (or encoded) of the video representation received at input 3102 may be used by component 3108 to generate pixel values or displayed video , which is sent to the interface 3110 display. The process of generating video for viewing by the user from a bitstream representation is sometimes referred to as video decompression. In addition, while some video processing operations are referred to as "encoding" operations or tools, it is clear that encoding tools or operations are used in the encoder and corresponding decoding tools or operations that are the reverse of the encoding to be performed by the decoder.

Примеры интерфейса периферийной шины или интерфейса дисплея могут включать в себя универсальную последовательную шину (USB) или мультимедийный интерфейс высокой четкости (HDMI) или DisplayPort и так далее. Примеры интерфейсов хранения включают в себя SATA (последовательные передовые технологии вложения), интерфейс PCI, IDE и тому подобное. Технологии, описанные в настоящем документе, могут быть воплощены в различных электронных устройствах, таких как мобильные телефоны, ноутбуки, смартфоны или другие устройства, которые выполнены с возможностью выполнять цифровую обработку данных и/или видео.Examples of a peripheral bus interface or a display interface may include Universal Serial Bus (USB) or High Definition Multimedia Interface (HDMI) or DisplayPort, and so on. Examples of storage interfaces include SATA (Serial Advanced Attachment Technology), PCI interface, IDE, and the like. The technologies described herein may be embodied in various electronic devices such as mobile phones, laptops, smartphones, or other devices that are capable of performing digital data processing and/or video.

В некоторых вариантах осуществления способы кодирования видео могут быть реализованы с использованием устройства, которое реализовано на аппаратной платформе, как описано со ссылкой на фиг.21А или фиг.21В.In some embodiments, video coding methods may be implemented using a device that is implemented on a hardware platform as described with reference to FIG. 21A or FIG. 21B.

Различные технологии, предпочтительно включенные в некоторые варианты осуществления, могут быть описаны с использованием следующего формата на основании пунктов условий.Various technologies preferably included in some embodiments may be described using the following format based on clauses.

Первый набор пунктов описывает конкретные признаки и аспекты описанных технологий, перечисленных в предшествующем разделе, включающий в себя, например, примеры 16 и 17.The first set of clauses describes specific features and aspects of the described technologies listed in the preceding section, including, for example, examples 16 and 17.

1. Способ обработки видео, содержащий: определение для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, параметров режима предсказания межкомпонентной линейной модели на основании выборок цветности, которые выбираются на основании W доступных верхних соседних выборок, W является целым числом; и выполнение преобразования на основании определения.1. A video processing method, comprising: determining, for converting between the current video block, which is a chrominance block, and the encoded representation of the video, inter-component linear model prediction mode parameters based on chrominance samples that are selected based on W available upper adjacent samples, W is an integer; and performing the conversion based on the determination.

2. Способ по п. 1, в котором CCLM режим предсказания использует линейный режим для получения значений предсказания компонента цветности из другого компонента.2. The method of claim 1, wherein the CCLM prediction mode uses a linear mode to obtain prediction values of a chrominance component from another component.

3. Способ по п. 1, в котором W устанавливается на i) ширину текущего блока видео, ii) L раз ширины текущего блока видео, L быть целым числом, iii) сумму высоты текущего блока видео и ширины текущего блока видео или iv) сумму ширины текущего блока видео и количества доступных верхних правых соседних выборок.3. The method of claim 1, wherein W is set to i) the width of the current video block, ii) L times the width of the current video block, L being an integer, iii) the sum of the height of the current video block and the width of the current video block, or iv) the sum the width of the current video block and the number of available upper right adjacent samples.

4. Способ по п. 1, в котором W зависит от доступности, по меньшей мере, одного из верхнего соседнего блока или левого соседнего блока текущего блока видео.4. The method of claim 1, wherein W depends on the availability of at least one of the top neighbor or left neighbor of the current video block.

5. Способ по п. 1, в котором W зависит от режима кодирования текущего блока видео.5. The method of claim 1, wherein W depends on the coding mode of the current video block.

6. Способ по п. 3, в котором L имеет значение в зависимости от доступности верхнего правого блока или верхней левой выборки, которая расположена рядом с текущим блоком видео.6. The method of claim. 3, in which L has a value depending on the availability of the top right block or the top left sample, which is located next to the current block of video.

7. Способ по п. 1, в котором выборки цветности выбираются на основании первого значения (F) смещения позиции и значения (S) шага, которые зависят от W.7. The method of claim 1, wherein the chrominance samples are selected based on a first position offset value (F) and a step value (S) that depend on W.

8. Способ по п. 7, в котором верхняя левая выборка имеет координату (x0, y0), и выбранные выборки цветности имеют координаты (x0 + F + K × S, y0-1), K является целым числом между 0 и kМax.8. The method of claim 7, wherein the top left sample has coordinate (x0, y0) and the selected chrominance samples have coordinates (x0 + F + K × S, y0-1), K is an integer between 0 and kMax.

9. Способ по п. 8, в котором F = W/P или F = W/P + offset, P является целым числом.9. The method of claim 8, wherein F = W/P or F = W/P + offset, P is an integer.

10. Способ по п. 9, в котором F = W >> (2 + numIs4T), в котором numIs4T равен 1 в случае наличия четырех соседних выборок, выбранных в пределах верхней соседней строки и, в противном случае, numIs4T равен 0, в котором символ >> означает арифметический сдвиг символа вправо.10. The method of claim 9, wherein F = W >> (2 + numIs4T), wherein numIs4T is 1 if there are four adjacent samples selected within the top adjacent row and numIs4T is 0 otherwise, in where the symbol >> means the arithmetic shift of the character to the right.

11. Способ по п. 7, в котором S = W Q, Q является целым числом.11. The method of claim 7, wherein S = W Q, Q is an integer.

12. Способ по п. 7, в котором S не менее 1.12. The method according to p. 7, in which S is not less than 1.

13. Способ по п. 11 или 12, в котором S = Mах (1, W >> (1 + numIs4T)), в котором numIs4T равно 1 в случае наличия четырех соседних выборок, выбранных в пределах верхней соседней строки и, иначе numIs4T равно 0, в котором символ >> означает арифметический сдвиг символа вправо.13. The method of claim 11 or 12, wherein S = Max(1, W >> (1 + numIs4T)), wherein numIs4T is 1 if there are four adjacent samples selected within the top adjacent row and numIs4T otherwise is 0, in which the symbol >> means the arithmetic shift of the character to the right.

14. Способ по п. 10 или 13, в котором numIs4T равен 1 в случае, когда доступны верхние соседние выборки, доступны левые соседние выборки и текущий блок видео кодируется нормальным CCLM, который отличается от первого CCLM, использующий только левые соседние выборки, и отличается от второго CCLM, используя только верхние соседние выборки.14. The method of claim 10 or 13, wherein numIs4T is equal to 1 in the case where top neighbor samples are available, left neighbor samples are available, and the current video block is encoded with a normal CCLM that is different from the first CCLM using only left neighbor samples, and different from the second CCLM using only the top adjacent samples.

15. Способ по п. 7 в котором F = S/R, R является целым числом.15. The method according to claim 7, wherein F = S/R, R is an integer.

16. Способ по п. 7, в котором S = F/Z, Z является целым числом.16. The method of claim 7, wherein S = F/Z, Z is an integer.

17. Способ по любому из пп. 8-16, в котором, по меньшей мере, один из Kмах, F, S или offset зависит от режима предсказания текущего блока видео, который является одним из: первым CCLM, использующий только левые соседние выборки, вторым CCLM с использованием только верхних соседних выборок, нормальным CCLM с использованием как левых соседних, так и верхних соседних выборок, либо другими режимами, отличными от первого CCLM, второй CCLM и нормального CCLM.17. The method according to any one of paragraphs. 8-16, wherein at least one of Kmax, F, S, or offset depends on the prediction mode of the current video block, which is one of: first CCLM using only left neighbor samples, second CCLM using only top neighbor samples. , normal CCLM using both left neighbor and top neighbor samples, or modes other than first CCLM, second CCLM, and normal CCLM.

18. Способ по любому из пп. 8-16, в котором, по меньшей мере, один из Kмах, F, S или offset зависит от ширины и/или высоты текущего блока видео.18. The method according to any one of paragraphs. 8-16, wherein at least one of Kmax, F, S, or offset is dependent on the width and/or height of the current video block.

19. Способ по любому из пп. 8-16, в котором, по меньшей мере, один из Kмах, F, S или offset зависит от доступности соседних выборок.19. The method according to any one of paragraphs. 8-16, wherein at least one of Kmax, F, S, or offset depends on the availability of adjacent samples.

20. Способ по любому из пп. 8-16, в котором, по меньшей мере один из Kмах, F, S или offset зависит от W.20. The method according to any one of paragraphs. 8-16, in which at least one of Kmax, F, S or offset depends on W.

21. Способ обработки видео, содержащий: определение, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, параметров режима предсказания межкомпонентной линейной модели (CCLM) на основании выборок цветности, которые выбираются на основании H доступности левых соседних выборок текущего блока видео; и выполнение преобразования на основании определения.21. A video processing method, comprising: determining, for converting between the current video block, which is a chrominance block, and the encoded representation of the video, inter-component linear model (CCLM) prediction mode parameters based on chrominance samples that are selected based on H availability of left neighbors samples of the current video block; and performing the conversion based on the determination.

22. Способ по п. 21, в котором CCLM режим предсказания использует линейный режим для получения значений предсказания компонента цветности из другого компонента.22. The method of claim 21, wherein the CCLM prediction mode uses a linear mode to obtain prediction values of a chrominance component from another component.

23. Способ по п. 21, в котором H устанавливается на один из i) высоту текущего блока видео, ii) L раз высоты текущего блока видео, L является целым числом, iii) сумму высоты текущего блока видео и ширины текущего блока видео или iv) сумму высоты текущего блока видео и количества доступных левых нижних соседних выборок.23. The method of claim 21, wherein H is set to one of i) the height of the current video block, ii) L times the height of the current video block, L is an integer, iii) the sum of the height of the current video block and the width of the current video block, or iv ) the sum of the height of the current video block and the number of available left lower adjacent samples.

24. Способ по п. 21, в котором H зависит от доступности, по меньшей мере, одного из верхнего соседнего блока или левого соседнего блока текущего блока видео.24. The method of claim 21, wherein H depends on the availability of at least one of the top neighbor or left neighbor of the current video block.

25. Способ по п. 21, в котором Н зависит от режима кодирования текущего блока видео.25. The method of claim 21, wherein H depends on the coding mode of the current video block.

26. Способ по п. 23, в котором L имеет значение в зависимости от доступности нижнего левого блока или нижней левой выборки, которая расположена рядом с текущим блоком видео.26. The method of claim 23, wherein L has a value depending on the availability of a lower left block or a lower left sample that is adjacent to the current block of video.

27. Способ по п. 21, в котором выборки цветности выбираются на основании первого значения (F) смещения позиции и значения (S) шага, которые зависят от H.27. The method of claim 21, wherein the chrominance samples are selected based on a first position offset value (F) and a step value (S) that depend on H.

28. Способ по п. 27, в котором верхняя левая выборка имеет координату (x0, y0) и выбранные выборки цветности имеют координаты (x0-1, y0 + F + K × S), K является целым числом между 0 и kМax.28. The method of claim 27, wherein the top left sample has coordinate (x0, y0) and the selected chrominance samples have coordinates (x0-1, y0 + F + K × S), K is an integer between 0 and kMax.

29. Способ по п. 27, в котором F = H/P или F = H/P + offset, P является целым числом.29. The method of claim 27, wherein F = H/P or F = H/P + offset, P is an integer.

30. Способ по п. 29, в котором F = H >> (2 + numIs4L), в котором numIs4L равно 1 в случае наличия четырех выбранных соседних выборок в левом соседнем столбце; в противном случае равен 0.30. The method according to p. 29, in which F = H >> (2 + numIs4L), in which numIs4L is equal to 1 in the case of four selected adjacent samples in the left adjacent column; otherwise it is 0.

31. Способ по п. 27, в котором S = H/Q, Q является целым числом.31. The method of claim 27, wherein S=H/Q, Q is an integer.

32. Способ по п. 27, в котором S равен не менее 1.32. The method of claim 27, wherein S is at least 1.

33. Способ по п. 31 или 32, в котором s = max (1, Н >> (1 + numIs4L)), в котором numIs4L равен 1 в случае наличия четырех выбранных соседних выборок в левом соседнем столбце и в противном случае, numIs4L равно 0.33. The method of claim 31 or 32, wherein s = max(1, H >> (1 + numIs4L)), wherein numIs4L is 1 if there are four selected adjacent samples in the left adjacent column, and otherwise, numIs4L equals 0.

34. Способ по п. 30 или 33, в котором numIs4L равен 1 в случае, если доступны верхние соседние выборки, доступны левые соседние выборки и текущий блок видео кодируется нормальным CCLM, который отличается от первого CCLM, использующий только левые соседние выборки, и отличается от второго CCLM, использующий только верхние соседние выборки.34. The method of claim 30 or 33, wherein numIs4L is equal to 1 if top neighbor samples are available, left neighbor samples are available, and the current video block is encoded with a normal CCLM that is different from the first CCLM using only left neighbor samples, and different from the second CCLM using only the top neighboring samples.

35. Способ по п. 27, в котором F = S R, R является целым числом.35. The method of claim 27, wherein F = S R, R is an integer.

36. Способ по п. 27, в котором S = F/Z, Z является целым числом.36. The method of claim 27, wherein S=F/Z, Z is an integer.

37. Способ по любому из пп. 28-36, в котором, по меньшей мере, один из Kмах, F, S или offset зависит от режима предсказания текущего блока видео, который является одним из: первым CCLM, использующий только левые соседние выборки, вторым CCLM с использованием только верхних соседних выборок, нормальным CCLM с использованием, как левых соседних, так и верхних соседних выборок, либо другие режимы, отличные от первого CCLM, второй CCLM и нормального CCLM.37. The method according to any one of paragraphs. 28-36, wherein at least one of Kmax, F, S, or offset depends on the prediction mode of the current video block, which is one of: first CCLM using only left neighbor samples, second CCLM using only top neighbor samples. , normal CCLM using both left adjacent and top adjacent samples, or other modes other than first CCLM, second CCLM, and normal CCLM.

38. Способ по любому из пп. 28-36, в котором, по меньшей мере, один из Kмах, F, S или offset зависит от ширины и/или высоты текущего блока видео.38. The method according to any one of paragraphs. 28-36, wherein at least one of Kmax, F, S, or offset is dependent on the width and/or height of the current video block.

39. Способ по любому из пп. 28-36, в котором, по меньшей мере, один из Kмах, F, S или offset зависит от H.39. The method according to any one of paragraphs. 28-36, in which at least one of Kmax, F, S, or offset depends on H.

40. Способ по любому из пп. 28-36, в котором, по меньшей мере, один из Kмах, F, S или offset зависит от доступности соседних выборок.40. The method according to any one of paragraphs. 28-36, wherein at least one of Kmax, F, S, or offset depends on the availability of adjacent samples.

41. Способ по п. 21, в котором H устанавливается на сумму высоты текущего блока видео и ширины текущего блока видео в случае доступности верхнего правого соседнего блока текущего блока видео.41. The method of claim 21, wherein H is set to the sum of the height of the current video block and the width of the current video block if the top right adjacent block of the current video block is available.

42. Способ по п. 21, в котором в случае, когда левые соседние выборки недоступны, выбранные выборки цветности имеют высоту H независимо от того, имеет ли текущий блок видео первый CCLM, используя только верхние соседние выборки или нет.42. The method of claim 21, wherein in the case where left neighbor samples are not available, the selected chrominance samples have a height H regardless of whether the current video block has the first CCLM using only the top neighbor samples or not.

43. Способ по п. 1, в котором W устанавливается на сумму высоты текущего блока видео и ширины текущего блока видео в случае наличия нижнего левого соседнего блока текущего блока видео.43. The method of claim 1, wherein W is set to the sum of the height of the current video block and the width of the current video block in the case of a lower left adjacent block of the current video block.

44. Способ по п. 1, в котором в случае недоступности верхних соседних выборок, выбранные выборки цветности имеют номер W, независимо от того, имеет ли текущий блок видео первый CCLM, используя только левые соседние выборки или нет.44. The method of claim 1, wherein if no top neighbor samples are available, the selected chrominance samples are numbered W, regardless of whether the current video block has the first CCLM using only left neighbor samples or not.

45. Способ по любому из пп. 1-44, в котором выполнение преобразования включает в себя генерирование кодированного представления из текущего блока.45. The method according to any one of paragraphs. 1-44, wherein performing the transformation includes generating an encoded representation from the current block.

46. Способ по любому из пп. 1-44, в котором выполнение преобразования включает в себя генерирование текущего блока из закодированного представления.46. The method according to any one of paragraphs. 1-44, wherein performing the transformation includes generating a current block from the encoded representation.

47. Устройство в системе видео, содержащее процессор и постоянную память с инструкциями, в котором инструкции при выполнении процессором побуждают процессор выполнить способ по любому из пп. 1-46.47. An apparatus in a video system, comprising a processor and read-only memory with instructions, wherein the instructions, when executed by the processor, cause the processor to execute the method of any one of claims. 1-46.

48. Компьютерный программный продукт, хранящийся на постоянном машиночитаемом носителе, компьютерный программный продукт включает в себя программный код для выполнения способа по любому из пп. 1-46.48. Computer program product stored on a permanent computer-readable medium, a computer program product includes a program code for performing the method according to any one of paragraphs. 1-46.

Второй набор пунктов описывает конкретные признаки и аспекты раскрытых технологий, перечисленных в предшествующем разделе, включающий в себя, например, примеры 18 и 19.The second set of clauses describes specific features and aspects of the disclosed technologies listed in the preceding section, including, for example, examples 18 and 19.

1. Способ обработки видео, содержащий: определение, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, параметров межкомпонентной линейной модели (CCLM) на основании двух или четырех выборок цветности и/или соответствующих выборок яркости; и выполнение преобразования на основании определения.1. A video processing method, comprising: determining, for converting between the current video block, which is a chrominance block, and the encoded video representation, inter-component linear model (CCLM) parameters based on two or four chrominance samples and/or corresponding luminance samples; and performing the conversion based on the determination.

2. Способ по п. 1, в котором соответствующие выборки яркости получают посредством понижающей дискретизации.2. The method of claim 1, wherein the respective luminance samples are obtained by downsampling.

3. Способ по п. 1, в котором прежде всего получают MaxY/MaxC, MinY и MinC и используются для получения параметров.3. The method of claim 1, wherein MaxY/MaxC, MinY and MinC are first obtained and used to obtain the parameters.

4. Способ по п. 3, в котором параметры получают на основании 2-точечного похода.4. The method according to claim 3, in which the parameters are obtained based on a 2-point hike.

5. Способ по п. 3, в котором две выборки цветности выбраны для получения MaxY/MaxC и MinY/MinC, и в котором MinY устанавливается на меньшее значение выборки яркости, MinС является его соответствующим значением выборки цветности, MaxY установлено на наибольшее значение выборки яркости и MaxC является его соответствующим значением выборки цветности.5. The method of claim 3, wherein two chrominance samples are selected to obtain MaxY/MaxC and MinY/MinC, and wherein MinY is set to the smaller luma sample value, MinC is its corresponding chroma sample value, MaxY is set to the largest luminance sample value and MaxC is its corresponding chroma sample value.

6. Способ по п. 3, в котором четыре выборки цветности выбираются для получения MaxY/MaxC и MinY/MinC и, в котором четыре выборки цветности и соответствующие выборки яркости делятся на два массива G0 и G1, каждый массив включает в себя две выборки цветности и их соответствующие выборки яркости.6. The method of claim 3, wherein four chrominance samples are selected to obtain MaxY/MaxC and MinY/MinC, and wherein the four chrominance samples and corresponding luminance samples are divided into two arrays G0 and G1, each array includes two chrominance samples and their respective brightness samples.

7. Способ по п. 6, в котором два массива G0 и G1 включают в себя один из следующих наборов:7. The method of claim 6, wherein the two arrays G0 and G1 include one of the following sets:

i) G0 = {S0, S1}, G1 = {S2, S3},i) G0 = {S0, S1}, G1 = {S2, S3},

ii) G0 = {S1, S0}, G1 = {S3, S2},ii) G0 = {S1, S0}, G1 = {S3, S2},

iii) G0 = {S0, S2}, G1 = {S1, S3},iii) G0 = {S0, S2}, G1 = {S1, S3},

iv) G0 = {S2, S0}, G1 = {S3, S1},iv) G0 = {S2, S0}, G1 = {S3, S1},

v) G0 = {S1, S2}, G1 = {S0, S3},v) G0 = {S1, S2}, G1 = {S0, S3},

vi) G0 = {S2, S1}, G1 = {S3, S0},vi) G0 = {S2, S1}, G1 = {S3, S0},

vii) G0 = {S0, S3}, G1 = {S1, S2},vii) G0 = {S0, S3}, G1 = {S1, S2},

viii) G0 = {S3, S0}, G1 = {S2, S1},viii) G0 = {S3, S0}, G1 = {S2, S1},

ix) G0 = {S1, S3}, G1 = {S0, S2},ix) G0 = {S1, S3}, G1 = {S0, S2},

x) G0 = {S3, S1}, G1 = {S2, S0},x) G0 = {S3, S1}, G1 = {S2, S0},

xi) G0 = {S3, S2}, G1 = {S0, S1} илиxi) G0 = {S3, S2}, G1 = {S0, S1} or

xii) G0 = {S2, S3}, G1 = {S1, S0} иxii) G0 = {S2, S3}, G1 = {S1, S0} and

В котором S0, S1, S2, S3 включают в себя четыре выборки цветности соответственно и дополнительно включают в себя соответствующие выборки яркости, соответственно.Wherein S0, S1, S2, S3 include four chrominance samples, respectively, and further include corresponding luma samples, respectively.

8. Способ по п. 7, в котором при сравнении двух значений выборки яркости G0 [0] и G0 [1], выборка цветности и ее соответствующая выборка яркости в G0 [0] заменяются на те же в G0 [1].8. The method of claim 7, wherein when comparing two luma sample values G0[0] and G0[1], the chrominance sample and its corresponding luminance sample in G0[0] are replaced with those in G0[1].

9. Способ по п. 8, в котором выборка цветности и ее соответствующая выборка яркости G0 [0] заменяются на те же G0 [1] в случае, когда значение выборки яркости G0 [0] больше, чем значение выборки яркости G0 [1].9. The method of claim 8, wherein the chrominance sample and its corresponding luminance sample G0[0] are replaced with the same G0[1] in case the luminance sample value G0[0] is greater than the luminance sample value G0[1] .

10. Способ по п. 7, в котором при сравнении двух значений выборки яркости G1 [0] и G1 [1], выборка цветности и ее соответствующая выборка яркости в G1 [0] заменяются на те же G1 [1].10. The method of claim 7, wherein when two luma sample values G1[0] and G1[1] are compared, the chrominance sample and its corresponding luminance sample in G1[0] are replaced by the same G1[1].

11. Способ по п. 10, в котором выборка цветности и ее соответствующая выборка яркости G1 [0] заменяются на те же G1 [1] в случае, когда значение выборки яркости G1 [0] больше, чем значение выборки яркости G1 [1].11. The method of claim 10, wherein the chrominance sample and its corresponding luminance sample G1[0] are replaced by the same G1[1] in the case where the luminance sample value of G1[0] is greater than the luminance sample value of G1[1] .

12. Способ по п. 6, в котором при сравнении двух значений выборки яркости G0 [0] и G1 [1], выборки цветности и их соответствующие выборки яркости G0 заменяются на те же G1.12. The method of claim 6, wherein when two luminance sample values G0[0] and G1[1] are compared, the chrominance samples and their corresponding luminance samples G0 are replaced by the same G1.

13. Способ по п. 12, в котором выборки цветности и их соответствующие выборки яркости G0 заменяются на те же G1 в случае, когда значение выборки яркости G0 [0] больше, чем значение выборки яркости G1 [1].13. The method of claim 12, wherein the chrominance samples and their corresponding luminance samples G0 are replaced by the same G1 in the case where the luminance sample value G0[0] is greater than the luminance sample value G1[1].

14. Способ по п. 7, в котором при сравнении двух значений выборки яркости G0 [1] и G1 [0], выборка цветности и ее соответствующая выборка яркости G0 [1] заменяется на ту же G1 [0].14. The method of claim 7, wherein when comparing two luminance sample values G0[1] and G1[0], the chrominance sample and its corresponding luminance sample G0[1] are replaced with the same G1[0].

15. Способ по п. 14, в котором выборка цветности и ее соответствующая выборка яркости G0 [1] заменяются на ту же G1 [0] в случае, когда значение выборки яркости G0 [1] больше, чем значение выборки яркости G1 [0].15. The method of claim 14, wherein the chrominance sample and its corresponding luminance sample G0[1] are replaced by the same G1[0] in the case where the luminance sample value of G0[1] is greater than the luminance sample value of G1[0] .

16. Способ по п. 7, в котором при сравнении двух значений выборки яркости G0 [0], G0 [1], G1 [0] и G1 [1], последующие операции замены проводятся выборочно в порядке: i) операция замены выборки цветности и ее соответствующей выборки яркости G0 [0] на те же из G0 [1], ii) операция замены выборки цветности и ее соответствующей выборки яркости G1 [0] на те же G1 [1], iii) операция замены выборок цветности и их соответствующих выборок яркости G0 на те же G1 и iv) операция замены выборки цветности и ее соответствующей выборки яркости G0 [1] на те же G1 [0].16. The method of claim 7, wherein when comparing two luminance sample values G0[0], G0[1], G1[0] and G1[1], subsequent replacement operations are performed selectively in the order: i) chrominance sampling operation and its corresponding luminance sample G0[0] with those of G0[1], ii) the operation of replacing the chroma sample and its corresponding luminance sample G1[0] with the same G1[1], iii) the operation of replacing the chrominance samples and their respective luminance samples G0 with the same G1 and iv) the operation of replacing a chrominance sample and its corresponding luma sample G0 [1] with the same G1 [0].

17. Способ по п. 7 или 16, в котором maxY рассчитывается на основании суммы значений выборки яркости G1 [0] и G1 [1] и maxC рассчитывается на основании суммы значений выборки яркости G1 [0] и G1 [1].17. The method of claim 7 or 16, wherein maxY is calculated based on the sum of the luminance sample values G1[0] and G1[1] and maxC is calculated based on the sum of the luminance sample values G1[0] and G1[1].

18. Способ по п. 7 или 16, в котором maxY рассчитывается как среднее значений выборки яркости G0 [0] и G0 [1] и maxC рассчитывается как среднее значений выборки цветности G0 [0] и G0 [1] или среднее значений выборки цветности G1 [0] и G1 [1].18. The method according to claim 7 or 16, wherein maxY is calculated as the average of the luminance sample values G0[0] and G0[1] and maxC is calculated as the average of the chrominance sample values G0[0] and G0[1] or the average of the chrominance sample values G1[0] and G1[1].

19. Способ по п. 7 или 16, в котором minY рассчитывается на основании суммы значений выборки яркости G0 [0] и G0 [1] и minC рассчитывается суммы значений выборки G0 [0] и G0 [1].19. The method according to claim 7 or 16, wherein minY is calculated based on the sum of the luminance sample values G0[0] and G0[1] and minC is calculated from the sum of the sample values G0[0] and G0[1].

20. Способ по п. 7 или 16, в котором minY вычисляется на основании среднего значений выборки яркости G0 [0] и G0 [1] и minC рассчитывается на основании значений выборки цветности G0 [0] и G0 [1]20. The method of claim 7 or 16, wherein minY is calculated based on the average of the luminance sample values G0[0] and G0[1] and minC is calculated based on the chrominance sample values G0[0] and G0[1]

21. Способ по пп. 17-20, в котором maxY и maxC или расчеты minY и minC после любой из операций замены, которые выполняются при сравнении двух значений выборки яркости G0 [0], G0 [1], G1 [0] и G1 [1], в котором операции замены включают в себя: i) операцию замены выборки цветности и ее соответствующей выборки яркости G1 [0] на те же в G1 [1], ii) операция замены выборок цветности и их соответствующих выборок яркости G0 [0] или G0 [1] на те же из G1 [0] или G1 [1] и iii) операция замены выборки цветности и ее соответствующей выборки яркости G0 [1] на ту же из G1 [0] или iv) операция замены выборки цветности и соответствующих выборок яркости G0 [0] на G0 [1].21. The method according to paragraphs. 17-20, wherein maxY and maxC or minY and minC calculations after any of the replacement operations that are performed when comparing two luminance sample values G0[0], G0[1], G1[0] and G1[1], wherein the replacement operations include: i) the operation of replacing the chrominance sample and its corresponding luminance sample G1[0] with the same ones in G1[1], ii) the operation of replacing the chrominance samples and their corresponding luminance samples G0[0] or G0[1] to those of G1[0] or G1[1] and iii) the operation of replacing a chrominance sample and its corresponding luminance sample G0[1] with the same of G1[0] or iv) the operation of replacing a chrominance sample and the corresponding luminance samples G0[ 0] to G0 [1].

22. Способ по п. 1, в котором в случае наличия только двух выборок цветности, на двух доступных выборках цветности выполняется заполнение для предоставления четырех выборок цветности и также выполненная на двух соответствующих доступных выборок яркости для предоставления четырех выборок яркости.22. The method of claim 1, wherein if there are only two chroma samples, padding is performed on the two available chroma samples to provide four chroma samples and is also performed on the two corresponding available luma samples to provide four luma samples.

23. Способ по п. 22, в котором четыре выборки цветности включают в себя две доступные выборки цветности и две выборки цветности заполнения, которые скопированы из двух доступных выборок цветности и четыре соответствующих выборок яркости включают в себя две доступные выборки яркости и две выборки заполнения яркости, которые скопированы из двух доступных выборок яркости.23. The method of claim 22, wherein the four chroma samples include two available chroma samples and two fill chroma samples that are copied from the two available chroma samples and the four corresponding luma samples include two available luminance samples and two luminance fill samples. , which are copied from the two available brightness samples.

24. Способ по п. 7, в котором S0, S1, S2, S3 являются выборками цветности и соответствующие выборки яркости выбираются в заданном порядке в пределах верхней строки и/или левого столбца текущего блока видео.24. The method of claim 7, wherein S0, S1, S2, S3 are chrominance samples and the corresponding luminance samples are selected in a predetermined order within the top row and/or left column of the current video block.

25. Способ для обработки видео, содержащий: выбор, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, выборок цветности на основании правила позиции, выборки цветности используются для получения параметров межкомпонентной линейной модели (CCLM); и выполнение преобразования на основании определения, в котором правило позиции указывает выбрать выборки цветности, которые расположены в пределах верхней строки и/или левой столбца текущего блока видео.25. A method for video processing, comprising: selecting, for converting between the current video block, which is a chrominance block, and the encoded representation of the video, chrominance samples based on the position rule, chrominance samples are used to obtain inter-component linear model (CCLM) parameters; and performing a transformation based on the determination, wherein the position rule specifies to select chrominance samples that are located within the top row and/or left column of the current video block.

26. Способ по п. 25, в котором верхняя строка и левый столбец имеют W выборки и Н выборки, соответственно W и H, являются шириной и высотой текущего блока видео, соответственно.26. The method of claim 25, wherein the top row and left column have W samples and H samples, respectively. W and H are the width and height of the current video block, respectively.

27. Способ по п. 26, в котором правило позиции применяется для текущего блока видео, закодированного нормальным CCLM режимом, отличающийся от первого CCLM режима, который использует только верхние соседние выборки для получения параметров межкомпонентной линейной модели и от второго CCLM режима, который использует только левые соседние выборки для получения параметров межкомпонентной линейной модели.27. The method of claim 26, wherein the position rule is applied to the current block of video encoded in a normal CCLM mode, different from the first CCLM mode, which uses only upper neighbor samples to obtain inter-component linear model parameters, and from the second CCLM mode, which uses only left adjacent samples to obtain the parameters of the intercomponent linear model.

28. Способ по п. 26, в котором правило позиции указывает выбрать выборки цветности, которые расположены в пределах верхней строки и верхней правой строки текущего блока видео.28. The method of claim 26, wherein the position rule specifies to select chrominance samples that are located within the top row and top right row of the current video block.

29. Способ по п. 28, в котором верхняя строка и верхняя правая строка имеют W выборок и H выборок, соответственно, W и H являются шириной и высотой текущего блока видео, соответственно.29. The method of claim 28, wherein the top row and top right row have W samples and H samples, respectively, W and H being the width and height of the current video block, respectively.

30. Способ по п. 28, в котором выбираются только доступные выборки в пределах верхней строки и верхней правой строки.30. The method of claim 28, wherein only the available samples within the top row and top right row are selected.

31. Способ по п. 28, в котором правило позиции применяется для текущего блока видео, кодированного первым CCLM режимом, который использует только верхние соседние выборки для получения параметров межкомпонентной линейной модели.31. The method of claim 28, wherein the position rule is applied to the current block of video encoded by the first CCLM mode, which uses only upper adjacent samples to obtain inter-component linear model parameters.

32. Способ по п. 28, в котором правило позиции применяется к случаю доступности верхней строки, и левый столбец недоступен, и что текущий блок видео закодирован нормальным CCLM режимом, который отличается от первого CCLM режима, который использует только верхние соседние выборки для получения параметров CCLM, и от второго CCLM режима, который использует только в левые соседние выборки для получения параметров межкомпонентной линейной модели.32. The method of claim 28, wherein the position rule is applied to the case where the top row is available and the left column is not available, and that the current video block is encoded in a normal CCLM mode that is different from the first CCLM mode, which only uses top adjacent samples to obtain parameters. CCLM, and from the second CCLM mode, which uses only the left adjacent samples to obtain the parameters of the intercomponent linear model.

33. Способ по любому из пп. 26-32, в котором numSampT устанавливается на основании правила, указывающего, что numSampT устанавливается равным nTbW в случае, когда доступны верхние соседние выборки, и numSampT устанавливается равным 0 в случае, когда верхние соседние выборки недоступны и, в котором numSampT представляет собой количество выборок цветности в пределах верхней соседней строки, используемой для получения параметров межкомпонентной линейной модели, и nTbW представляет собой ширину текущего блока видео.33. The method according to any one of paragraphs. 26-32, in which numSampT is set based on a rule indicating that numSampT is set to nTbW in the case where top neighbor samples are available, and numSampT is set to 0 in the case when top neighbor samples are not available, and in which numSampT is the number of samples. chrominance within the upper adjacent row used to obtain the parameters of the inter-component linear model, and nTbW is the width of the current video block.

34. Способ по п. 33, в котором правило применяется для текущего блок видео, закодированного нормальным CCLM режимом, который отличается от первого CCLM режима, который использует только верхние соседние выборки для получения CCLM, и от второго CCLM режима, который использует только левые соседние выборки для получения параметров межкомпонентной линейной модели.34. The method of claim 33, wherein the rule is applied to the current block of video encoded with a normal CCLM mode that differs from a first CCLM mode that uses only top neighbor samples to obtain CCLM, and from a second CCLM mode that uses only left neighbor samples. sampling to obtain the parameters of the intercomponent linear model.

35. Способ по любому из пп. 26-32, в котором numSampT устанавливается на основании правила, указывающего, что numSampT устанавливается равным nTbW + Min(numTopRight, nTbH) в случае, если верхние соседние выборки доступны и текущий блок видео кодируется первым CCLM режимом, который использует только верхние соседние выборки для получения параметров межкомпонентной линейной модели и, в противном случае, numSampT устанавливается равным 0 и, в котором numSampT представляет собой количество выборок цветности в пределах верхней соседней строки, используемой для получения параметров межкомпонентной линейной модели, nTbW и nTbH представляют собой ширину и высоту текущего блока, соответственно, и numTopRight представляет собой количество доступных верхних правых соседних выборок.35. The method according to any one of paragraphs. 26-32, in which numSampT is set based on a rule indicating that numSampT is set to nTbW + Min(numTopRight, nTbH) in case top neighbor samples are available and the current video block is encoded by a first CCLM mode that uses only top neighbor samples for get the inter-component linear model parameters and, otherwise, numSampT is set to 0 and, in which numSampT is the number of chrominance samples within the top adjacent row used to obtain the inter-component linear model parameters, nTbW and nTbH are the width and height of the current block, respectively, and numTopRight is the number of available top right adjacent samples.

36. Способ по п. 25, в котором правило позиции указывает выбрать выборки цветности, которые расположены в левом столбце и в нижнем левом столбце текущего блока видео.36. The method of claim 25, wherein the position rule specifies to select chrominance samples that are located in the left column and lower left column of the current video block.

37. Способ по п. 36, и, в котором левый столбец и нижний левый столбец имеют H выборок и W выборок, соответственно, W и H являются шириной и высотой текущего блока видео соответственно.37. The method of claim 36, wherein the left column and lower left column have H samples and W samples, respectively, W and H are the width and height of the current video block, respectively.

38. Способ по п. 36, в котором выбираются только доступные выборки в левом столбце и нижнем левом столбце.38. The method of claim 36, wherein only the available samples in the left column and lower left column are selected.

39. Способ по п. 36, в котором правило позиции применяется для текущего блока видео, кодированного вторым CCLM режимом, который использует только левые соседние выборки для получения параметров межкомпонентной линейной модели.39. The method of claim 36, wherein the position rule is applied to the current block of video encoded in the second CCLM mode, which uses only left adjacent samples to obtain inter-component linear model parameters.

40. Способ по п. 36, в котором правило позиции применяется к случаю, когда верхняя строка недоступна и левый столбец доступен и, что текущий блок видео кодируется нормальным CCLM режимом, который отличается от первого CCLM режима, который использует только верхние соседние выборки для получения параметров CCLM, и от второго CCLM режима, который использует только левые соседние выборки для получения параметров межкомпонентной линейной модели.40. The method of claim 36, wherein the position rule is applied to the case where the top row is not available and the left column is available, and that the current block of video is encoded in a normal CCLM mode that is different from the first CCLM mode, which only uses top adjacent samples to obtain CCLM parameters, and from a second CCLM mode that uses only left adjacent samples to obtain the intercomponent linear model parameters.

41. Способ по любому из пп. 36-40, в котором numSampL устанавливается на основании правила, указывающего, что numSampL устанавливается равным nTbH в случае, если левые соседние выборки доступны и, в противном случае, numSampL устанавливается равным 0 и, в котором numSampL представляет количество выборок цветности в левом соседнем столбце, используемом для получения параметров межкомпонентной линейной модели, и nTbH представляет собой высоту текущего блока видео.41. The method according to any one of paragraphs. 36-40, wherein numSampL is set based on a rule indicating that numSampL is set to nTbH if left adjacent samples are available and otherwise, numSampL is set to 0, and wherein numSampL represents the number of chrominance samples in the left adjacent column. , used to obtain the parameters of the inter-component linear model, and nTbH is the height of the current video block.

42. Способ по п. 41, в котором правило применяется для текущего блока видео, кодированного нормальным CCLM режимом, который отличается от первого CCLM режима, который использует только верхние соседние выборки для получения CCLM, и от второго CCLM режима, который использует только левые соседние выборки для получения CCLM.42. The method of claim 41, wherein the rule is applied to the current block of video encoded in a normal CCLM mode that differs from a first CCLM mode that uses only top neighbor samples to obtain CCLM, and from a second CCLM mode that uses only left neighbor samples. samples to obtain CCLM.

43. Способ по любому из пп. 36-40, в котором numSampL установлен на основании правила, указывающее, что numSampL устанавливается равным nTbH + Min(numLeftBelow, nTbW) в случае, когда левые соседние выборки доступны и текущий блок видео кодируется с помощью второго CCLM режима, который использует только левые соседние выборки для получения параметров межкомпонентной линейной модели и, что в противном случае, numSampL устанавливается равным 0, и в которой numSampL представляет собой количество выборок цветности в левом соседнем столбце, используемого для получения параметров межкомпонентной линейной модели, nTbW и nTbH представляют собой ширину и высоту текущего блока, соответственно, и numLeftBelow представляет собой количество доступных нижних левых соседних выборок.43. The method according to any one of paragraphs. 36-40, in which numSampL is set based on a rule indicating that numSampL is set to nTbH + Min(numLeftBelow, nTbW) in the case where left neighbor samples are available and the current video block is encoded with a second CCLM mode that only uses left neighbors. samples to obtain the intercomponent linear model parameters and, otherwise, numSampL is set to 0, and where numSampL is the number of chroma samples in the left adjacent column used to obtain the intercomponent linear model parameters, nTbW and nTbH are the width and height of the current block, respectively, and numLeftBelow is the number of available lower left adjacent samples.

44. Способ по любого из пп. 25-43, в котором выборки яркости, соответствующие выбранным выборкам цветности, используются для получения параметров межкомпонентной линейной модели.44. The method according to any one of paragraphs. 25-43, in which the luminance samples corresponding to the selected chrominance samples are used to derive the inter-component linear model parameters.

45. Способ по п. 44, в котором выборки яркости получают посредством понижающей дискретизации.45. The method of claim 44, wherein the luminance samples are obtained by downsampling.

46. Способ по любому из пп. 1-45, в котором выполнение преобразования включает в себя генерирование кодированного представления из текущего блока.46. The method according to any one of paragraphs. 1-45, wherein performing the transformation includes generating an encoded representation from the current block.

47. Способ по любому из пп. 1-45, в котором выполнение преобразования включает в себя генерирование текущего блока из закодированного представления.47. The method according to any one of paragraphs. 1-45, wherein performing the transformation includes generating a current block from the encoded representation.

48. Способ по любому из пп. 1-47, в котором CCLM использует совместно расположенные выборки компонента яркости с понижающей дискретизацией для получения значений предсказания выборок компонента цветности текущего блока на основании линейной модели, включающей в себя параметры межкомпонентной линейной модели.48. The method according to any one of paragraphs. 1-47, in which the CCLM uses downsampling co-located luma component samples to obtain chrominance component sample prediction values of the current block based on a linear model including inter-component linear model parameters.

49. Устройство в системе видео, включающее в себя процессор и постоянную память с инструкциями, в котором инструкции при выполнении процессором побуждают процессор выполнять способ по любому из пп. 1-48.49. An apparatus in a video system, including a processor and read-only memory with instructions, wherein the instructions, when executed by the processor, cause the processor to perform the method of any one of claims. 1-48.

50. Компьютерный программный продукт, хранящийся на постоянном машиночитаемом носителе, компьютерный программный продукт включает в себя программный код для выполнения способа по любому из пп. 1-48.50. Computer program product stored on a permanent computer-readable medium, the computer program product includes program code for performing the method according to any one of paragraphs. 1-48.

Третий набор пунктов описывает конкретные признаки и аспекты раскрытых технологий, перечисленных в предшествующем разделе, включающий в себя, например, примеры 20, 21, 22.The third set of clauses describes specific features and aspects of the disclosed technologies listed in the preceding section, including, for example, examples 20, 21, 22.

1. Способ обработки видео, содержащий: определение, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, позиций, на которых выборки яркости подвержены понижающей дискретизации, в котором выборки яркости после понижающей дискретизации используются для определения параметров межкомпонентной линейной модели (CCLM) на основании выборок цветности и выборок яркости после понижающей дискретизации, в котором выборки яркости после понижающей дискретизации находятся на позициях, соответствующие позициям выборок цветности, которые используются для получения CCLM параметров; и выполнение преобразования на основании определения.1. A video processing method, comprising: determining, for converting between the current video block, which is a chrominance block, and the encoded representation of the video, the positions at which the luminance samples are downsampled, in which the luminance samples after the downsampling are used to determine the parameters of the intercomponent a linear model (CCLM) based on the downsampled chroma samples and the downsampled luminance samples, in which the downsampled luminance samples are at positions corresponding to the positions of the chrominance samples that are used to derive the CCLM parameters; and performing the transformation based on the determination.

2. Способ по п. 1, в котором выборки яркости не подвержены понижающей дискретизации на позиции, которая находится вне текущего блока видео и не используется для определения CCLM параметров.2. The method of claim 1, wherein the luminance samples are not downsampled at a position that is outside the current video block and is not used to determine the CCLM parameters.

3. Способ для обработки видео, содержащий: определение, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, способа для получения параметров межкомпонентной линейной модели (CCLM) с использованием выборок цветности и выборок яркости на основании состояния кодирования, ассоциированного с текущим блоком видео; и выполнение преобразования на основании определения.3. A method for video processing, comprising: determining, for converting between the current video block, which is a chrominance block, and the encoded representation of the video, a method for obtaining intercomponent linear model (CCLM) parameters using chrominance samples and luminance samples based on the coding state , associated with the current video block; and performing the conversion based on the determination.

4. Способ по п. 3, в котором состояние кодирования соответствует цветовому формату текущего блока видео.4. The method of claim 3, wherein the encoding state corresponds to the color format of the current video block.

5. Способ по п. 4, в котором цветовой формат представляет собой 4:2:0 или 4:4:4.5. The method of claim 4, wherein the color format is 4:2:0 or 4:4:4.

6. Способ по п. 3, в котором условие кодирования соответствует способу цветового представления текущего блока видео.6. The method of claim 3, wherein the encoding condition corresponds to the color representation method of the current video block.

7. Способ по п. 6, в котором способ цветового представления является RGB или YCbCr.7. The method of claim 6, wherein the color representation method is RGB or YCbCr.

8. Способ по п. 3, в котором выборки цветности подвержены понижающей дискретизации и определение зависит от местоположений выборок цветности после понижающей дискретизации.8. The method of claim 3, wherein the chrominance samples are downsampled and the determination depends on the locations of the downsampled chrominance samples.

9. Способ по п. 3, в котором способ получения параметров содержит определение параметров CCLM на основании выборок цветности и выборок яркости, которые выбраны из группы соседних выборок цветности на основании правила позиции.9. The method of claim 3, wherein the method for obtaining the parameters comprises determining CCLM parameters based on chrominance samples and luma samples that are selected from a group of adjacent chrominance samples based on a position rule.

10. Способ по п. 3, в котором способ получения параметров содержит определение параметров CCLM на основании максимальных и минимальных значений выборок цветности и выборок яркости.10. The method of claim 3, wherein the method for obtaining the parameters comprises determining the CCLM parameters based on the maximum and minimum values of the chrominance samples and the luma samples.

11. Способ по п. 3, в котором способ получения параметров содержит определение параметров CCLM, которые полностью определяются двумя выборками цветности и соответствующими двумя выборками яркости.11. The method of claim 3, wherein the method for obtaining the parameters comprises determining CCLM parameters that are entirely determined by two chrominance samples and corresponding two luma samples.

12. Способ по п. 3, в котором способ получения параметров содержит определение параметров CCLM с использованием таблицы параметров, записи которой получают в соответствии с двумя значениями выборки цветности и двумя значениями выборки яркости.12. The method of claim 3, wherein the method for obtaining the parameters comprises determining the CCLM parameters using a parameter table whose entries are obtained according to two chrominance sample values and two luma sample values.

13. Способ для обработки видео, содержащий: определение, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, следует ли получать максимальные значения и/или минимальные значения компонента яркости и компонента цветности, используемые для получения параметров межкомпонентной линейной модели (CCLM), на основании доступности левого соседнего блока и верхнего соседнего блока текущего блока видео; и выполнение преобразования на основании определения.13. A method for video processing, comprising: determining, for converting between the current video block, which is a chrominance block, and the encoded video representation, whether to obtain the maximum values and/or minimum values of the luminance component and the chrominance component used to obtain the parameters of the intercomponent a linear model (CCLM), based on the availability of the left neighbor block and the top neighbor block of the current video block; and performing the transformation based on the determination.

14. Способ по п. 13, в котором максимальные значения и/или минимальные значения не получают в том случае, если левый соседний блок и верхний соседний блок недоступны.14. The method of claim 13, wherein the maximum values and/or minimum values are not obtained if the left neighbor block and the top neighbor block are not available.

15. Способ по п. 13, в котором определение определений на основании количества доступных соседних выборок текущего блока видео и, в котором доступные соседние выборки используются для получения параметров межкомпонентной линейной модели.15. The method of claim 13, wherein determining the definitions based on the number of available adjacent samples of the current video block, and wherein the available adjacent samples are used to derive inter-component linear model parameters.

16. Способ по п. 15, в котором максимальные значения и/или минимальные значения не получают в случае numSampL == 0 и numSampT == 0, numSampL и numSampT указывают количество доступных соседних выборок из левого соседнего блока и количество доступных соседних выборок из верхнего блока, соответственно, и, в котором доступные соседние выборки из левого соседнего блока и доступные соседние выборки из верхнего соседнего блока используются для получения параметров межкомпонентной линейной модели.16. The method of claim 15, wherein no maximum values and/or minimum values are obtained in the case of numSampL == 0 and numSampT == 0, numSampL and numSampT indicate the number of available neighbor samples from the left neighbor block and the number of available neighbor samples from the top block, respectively, and in which the available neighbor samples from the left neighbor block and the available neighbor samples from the top neighbor block are used to obtain the intercomponent linear model parameters.

17. Способ по п. 15, в котором максимальные значения и/или минимальные значения не получают в случае numSampL + numSampT == 0, numSampL и numSampT указывают количество доступных соседних выборок из левого соседнего блока и количество доступных соседних выборок из верхнего соседнего блока, соответственно, и в котором доступные соседние выборки из левого соседнего блока и доступные соседние выборки из верхнего соседнего блока используются для получения параметров межкомпонентной линейной модели.17. The method of claim 15, wherein no maximum values and/or minimum values are obtained in the case of numSampL + numSampT == 0, numSampL and numSampT indicate the number of available neighbor samples from the left neighbor block and the number of available neighbor samples from the top neighbor block, respectively, and in which the available neighbor samples from the left neighbor block and the available neighbor samples from the top neighbor block are used to derive the intercomponent linear model parameters.

18. Способ по любому из пп. 1-17, в котором выполнение преобразования включает в себя генерирование кодированного представления из текущего блока.18. The method according to any one of paragraphs. 1-17, wherein performing the transformation includes generating an encoded representation from the current block.

19. Способ по любому из пп. 1-17, в котором выполнение преобразования включает в себя генерирование текущего блока из закодированного представления.19. The method according to any one of paragraphs. 1-17, wherein performing the transformation includes generating a current block from the encoded representation.

20. Устройство в системе видео, содержащее процессор и постоянную память с инструкциями, в котором инструкции при выполнении процессором побуждают процессор выполнить способ по любому из пп. 1-19.20. An apparatus in a video system, comprising a processor and read-only memory with instructions, wherein the instructions, when executed by the processor, cause the processor to execute the method of any one of claims. 1-19.

21. Компьютерный программный продукт, хранящийся на постоянном машиночитаемом носителе, компьютерный программный продукт включает в себя программный код для выполнения способа по любому из пп. 1-19.21. Computer program product stored on a permanent computer-readable medium, the computer program product includes program code for performing the method according to any one of paragraphs. 1-19.

Четвертый набор пунктов описывает конкретные признаки и аспекты раскрытых технологий, перечисленных в предшествующем разделе.The fourth set of clauses describes specific features and aspects of the disclosed technologies listed in the preceding section.

1. Способ обработки видео, содержащий: определение для текущего ведеоблока, который содержит блок цветности и основан на двух или более выборок цветности, набор значений параметров линейной модели, в котором две или более выборки цветности выбираются из группы соседних выборок цветности в блок цветности, и построение на основании линейной модели текущего ведеоблока. 1. A video processing method, comprising: determining for a current video block that contains a chrominance block and is based on two or more chrominance samples, a set of linear model parameter values in which two or more chrominance samples are selected from a group of adjacent chrominance samples into a chrominance block, and construction based on the linear model of the current video block.

2. Способ по п. 1, в котором верхняя-левая выборка блока цветности представляет собой (x, y), в котором ширина и высота блока цветности представляют собой W и H, соответственно, а в том, что группа соседних выборок цветности содержит:2. The method of claim 1, wherein the top-left chroma block sample is (x, y), wherein the chroma block width and height are W and H, respectively, and in that the group of adjacent chrominance samples comprises:

Выборка А координатами (x - 1, y),Sample A coordinates (x - 1, y),

Выборка D с координатами (x - 1, y + h - 1),Sample D with coordinates (x - 1, y + h - 1),

Выборка J с координатами (x, y - 1), иSample J with coordinates (x, y - 1), and

Выборка М с координатами (x + w - 1, y - 1).Sample M with coordinates (x + w - 1, y - 1).

3. Способ по п. 2, в котором верхний левый соседний блок и вышеупомянутый соседний блок текущего видеоблока доступны и, в котором два или более выборки цветности содержат выборки A, D, J и M.3. The method of claim 2, wherein the upper left adjacent block and the aforementioned adjacent block of the current video block are available, and wherein the two or more chrominance samples comprise A, D, J, and M samples.

4. Способ по п. 2, в котором верхний левый соседний блок текущего видеоблока доступен, и в котором два или более выборки цветности содержат выборки A и D.4. The method of claim 2, wherein the top left adjacent block of the current video block is available, and wherein two or more chrominance samples contain samples A and D.

5. Способ по п. 2, в котором верхний соседний блок текущего видеоблока доступен, и в котором две или более выборки цветности содержат выборки J и M.5. The method of claim 2, wherein the top adjacent block of the current video block is available, and wherein two or more chrominance samples contain J and M samples.

6. Способ обработки видео, содержащий: генерирование для текущего видеоблока, который содержит блок цветности, множество групп, содержащих выборки цветности и яркости соседнего блока текущего видеоблока; определение, на основании множества групп, максимальных и минимальных значений, набор значений для параметров линейной модели; и восстановление на основании линейной модели текущего видеоблока.6. A video processing method, comprising: generating for the current video block, which contains the chrominance block, a plurality of groups containing samples of the chrominance and brightness of the neighboring block of the current video block; determining, based on the plurality of groups, maximum and minimum values, a set of values for the parameters of the linear model; and reconstructing based on the linear model of the current video block.

7. Способ по п. 6, в котором генерирование множества групп основано на доступности соседнего блока текущего видеоблока.7. The method of claim 6, wherein generating the plurality of groups is based on the availability of a neighboring block of the current video block.

8. Способ по п. 6, в котором множество групп составляют S0 и S1, в котором максимальное значение яркости рассчитывается как maxL = f1(maxLS0, maxLS1,…, maxLSm, где f1 представляет собой первую функцию и maxLSi является максимальным значением яркости группы Si множества групп, в котором максимальное значение цветности рассчитывается как maxC = f2(maxCS0, maxCS1,…, maxCSm, где f2 представляет собой вторую функцию, maxCSi является максимальным значением цветности группы Si, в которой минимальное значение яркости рассчитывается как minL = f3(minLS0, minLS1,…, minLSm), в котором f3 представляет собой третью функцию, и minLSi является минимальным значением яркости группы Si, где рассчитывается минимальное значение цветности как minC = f4(minCS0, minCS1,…, minCSm), в котором f4 представляет собой четвертую функцию, и minCSi является максимальным значением цветности из группы Si, и, в котором параметры линейной модели Содержит α и β, которые рассчитываются как α = (maxC − minC) / (maxL − minL) and β = minC − α×minL.8. The method according to claim 6, wherein the plurality of groups are S0 and S1, wherein the maximum luminance value is calculated as maxL = f1(maxL S0 , maxL S1 ,…, maxL Sm , where f1 is the first function and maxL Si is the maximum the brightness value of the group Si of the set of groups, in which the maximum chromaticity value is calculated as maxC = f2(maxC S0 , maxC S1 ,…, maxC Sm , where f2 is the second function, maxC Si is the maximum chromaticity value of the group Si, in which the minimum luminance value is calculated as minL = f3(minL S0 , minL S1 ,…, minL Sm ) where f3 is the third function and minL Si is the minimum luminance value of the Si group, where the minimum chromaticity value is calculated as minC = f4(minC S0 , minC S1 ,…, minC Sm ) where f4 is the fourth function and minC Si is the maximum chromaticity value from the group Si, and where the linear model parameters Contains α and β which are calculated as α = ( maxC − minC) / (maxL − minL) and β = minC − α×minL.

9. Способ по п. 8, в котором верхняя левая выборка блока цветности представляет собой (x, y), в котором ширина и высота блока цветности представляют собой W и H, соответственно, и в котором группа соседних выборок цветности содержит.9. The method of claim 8, wherein the top left chrominance block sample is (x, y), wherein the chroma block width and height are W and H, respectively, and wherein the group of adjacent chrominance samples comprises.

Выборку А координатами (x - 1, y),Sample A with coordinates (x - 1, y),

Выборку D с координатами (x - 1, y + h - 1),Sample D with coordinates (x - 1, y + h - 1),

Выборку J с координатами (x, y - 1) иSample J with coordinates (x, y - 1) and

Выборку М с координатами (x + w - 1, y - 1).Sample M with coordinates (x + w - 1, y - 1).

10. Способ по п. 9, в котором доступны верхний левый соседний блока и верхний блок текущего видеоблока, в котором максимальные значения яркости и цветности и минимальные значения яркости и цветности для группы S0 (maxLS0, maxCS0, minLS0 и minLS0 соответственно) основаны на выборках A и D, в которой максимальные значения яркости и цветности и минимальные значения яркости и цветности для группы S1 (maxLS1, maxCS1, minLS1 и minLS1 соответственно) основаны на выборках J и M, в котором10. The method according to claim 9, in which the upper left adjacent block and the upper block of the current video block are available, in which the maximum luma and chrominance values and the minimum luminance and chrominance values for the group S0 (maxL S0 , maxC S0 , minL S0 and minL S0 respectively ) are based on samples A and D, in which the maximum luminance and chrominance values and minimum luminance and chrominance values for group S1 (maxL S1 , maxC S1 , minL S1 and minL S1 , respectively) are based on samples J and M, in which

maxL = (maxLS0 + maxLS1) / 2, maxC = (maxCS0 + maxCS1) / 2,maxL = (maxL S0 + maxL S1 ) / 2, maxC = (maxC S0 + maxC S1 ) / 2,

minL = (minLS0 + minLS1) / 2 and minC = (minCS0 + minCS1)/2.minL = (minL S0 + minL S1 ) / 2 and minC = (minC S0 + minC S1 )/2.

11. Способ по п. 9, в котором доступен верхний левый соседний блок текущего видеоблока, и в котором maxL, maxC, minL и minC основаны на выборках A и D.11. The method of claim 9, wherein the top left adjacent block of the current video block is available, and wherein maxL, maxC, minL, and minC are based on samples A and D.

12. Способ по п. 9, в котором доступен выше соседний блок текущего видеоблока, и в котором maxL, maxC, minL and minC основаны на выборках J и M.12. The method of claim 9, wherein an upstream block of the current video block is available, and wherein maxL, maxC, minL and minC are based on J and M samples.

13. Способ по п. 6, в котором параметры линейной модели содержат α и β, которые рассчитываются как13. The method according to claim 6, in which the parameters of the linear model contain α and β, which are calculated as

α = 0 и β = 1 << (bitDepth − 1),α = 0 and β = 1 << (bitDepth − 1),

в котором BitDepth является битовой глубиной выборки цветности.in which BitDepth is the bit depth of the chrominance sample.

14. Способ по п. 6, в котором генерирование множества групп основано на высоте или ширине текущего видеоблока.14. The method of claim 6, wherein generating the plurality of groups is based on the height or width of the current video block.

15. Способ для обработки видео, содержащий:15. Method for video processing, comprising:

генерирование выборок яркости и цветности с понижающей дискретизацией путем понижающей дискретизации выборок яркости и цветности соседнего блока текущего видеоблока с высотой (H) и шириной (W);generating downsampled luma and chrominance samples by downsampling the luminance and chrominance samples of a neighboring block of the current video block with height (H) and width (W);

определение, основанное на выборках яркости и цветности с понижающей дискретизацией, набора значений для параметров линейной модели для текущего видеоблока; иdetermining, based on downsampled luma and chrominance samples, a set of values for the linear model parameters for the current video block; and

восстановление, основанное на линейной модели, текущего видеоблока.restoration, based on a linear model, of the current video block.

16. Способ по п. 15, в котором понижающая дискретизация основана на высоте или ширине.16. The method of claim 15 wherein the downsampling is based on height or width.

17. Способ по п. 16, в котором W < H.17. The method according to p. 16, in which W < H.

18. Способ по п. 16, где W > H.18. The method according to claim 16, where W > H.

19. Способ по п. 15, в котором верхняя левая выборка текущего видеоблока представляет собой R [0, 0], в котором выборки цветности с понижающей дискретизацией содержат выборки R [-1, k × H / W] и где K - неотрицательное целое число от 0 до W-1. 19. The method of claim 15, wherein the top left sample of the current video block is R[0, 0], wherein the downsampled chrominance samples comprise R[-1, k×H/W] samples, and where K is a non-negative integer a number from 0 to W-1.

20. Способ по п. 15, в котором верхняя левая выборка текущего видеоблока представляет собой R [0, 0], в котором выборки цветности с понижающей дискретизацией содержат выборки R [K × H / W, -1], и K - неотрицательное целое число от 0 до H-1.20. The method of claim 15, wherein the top left sample of the current video block is R[0, 0], wherein the downsampled chrominance samples comprise R[K × H/W, −1] samples, and K is a non-negative integer number from 0 to H-1.

21. Способ по п. 15, в котором процесс уточнения выполняется на выборках яркости и цветности с понижающей дискретизацией перед использованием определения набора значений для параметров линейной модели для текущего видеоблока.21. The method of claim 15, wherein the refinement process is performed on the downsampled luminance and chrominance samples before using the determination of a set of values for the linear model parameters for the current video block.

22. Способ по п. 21, в котором процесс уточнения содержит процесс фильтрации.22. The method of claim 21, wherein the refinement process comprises a filtering process.

23. Способ по п. 21, в котором процесс уточнения содержит нелинейный процесс.23. The method of claim 21, wherein the refinement process comprises a non-linear process.

24. Способ по 15, в котором параметры линейной модели являются α и β, в котором α = (C1−C0) / (L1−L0) и β = C0 − αL0, где C0 и C1 являются выборками цветности и в котором L0 и L1 являются выборками яркости.24. The method of 15, wherein the linear model parameters are α and β, wherein α = (C1−C0) / (L1−L0) and β = C0 − αL0, where C0 and C1 are chrominance samples, and wherein L0 and L1 are brightness samples.

25. Способ по п. 24, в котором C0 и L0 основываются на S выборках яркости и цветности с понижающей дискретизацией, обозначены {Lx1, Lx2, …, LxS} и {Cx1, Cx2, …, CxS}, соответственно, где C1 и L1 основаны на T выборках яркости и цветности с понижающей дискретизацией, обозначаемые {Ly1, Ly2, …, LyT} и {Cy1, Cy2, …, CyT}, соответственно,25. The method of claim 24, wherein C0 and L0 are based on S downsampled luminance and chrominance samples, denoted {Lx1, Lx2, ..., LxS} and {Cx1, Cx2, ..., CxS}, respectively, where C1 and L1 are based on T downsampled luminance and chrominance samples, denoted {Ly1, Ly2, ..., LyT} and {Cy1, Cy2, ..., CyT}, respectively,

когда C0 = f0(Cx1, Cx2, …, CxS), L0 = f1(Lx1, Lx2, …, LxS), C1 = f2(Cy1, Cy2, …, CyT) и L1 = f1(Ly1, Ly2, …, LyT), иwhen C0 = f0(Cx1, Cx2, …, CxS), L0 = f1(Lx1, Lx2, …, LxS), C1 = f2(Cy1, Cy2, …, CyT) and L1 = f1(Ly1, Ly2, …, LyT), and

в котором f0, f1, f2 и f3 являются функциями.where f0, f1, f2 and f3 are functions.

26. Способ по п. 25, в котором f0 и f1 являются первой функцией.26. The method of claim 25, wherein f0 and f1 are the first function.

27. Способ по п. 25, в котором f2 и f3 являются второй функцией.27. The method of claim 25, wherein f2 and f3 are the second function.

28. Способ по п. 25, в котором f0, f1, f2 и f3 представляют собой третью функцию.28. The method of claim 25, wherein f0, f1, f2, and f3 are the third function.

29. Способ по п. 28, в котором третья функция является функцией усреднения.29. The method of claim 28, wherein the third function is an averaging function.

30. Способ по п. 25, в котором S = T.30. The method according to claim 25, in which S = T.

31. Способ по п. 25, в котором {lx1, lx2, ..., lxs} являются минимальными выборками группы выборок яркости.31. The method of claim 25, wherein {lx1, lx2, ..., lxs} are minimum samples of the group of luma samples.

32. Способ по п. 25, в котором {lx1, lx2, ..., lxs} являются наибольшими выборками группы выборок яркости.32. The method of claim 25, wherein {lx1, lx2, ..., lxs} are the largest samples of the group of luma samples.

33. Способ по п. 31 или 32, в котором группа выборок яркости содержит все соседние выборки, используемые в VTM-3.0, для получения параметров линейной модели.33. The method of claim 31 or 32, wherein the luminance sample group contains all adjacent samples used in VTM-3.0 to derive the linear model parameters.

34. Способ по п. 31 или 32, в котором группа выборок яркости содержит подмножество соседних выборок, используемых в VTM-3.0, для получения параметров линейной модели и, в котором подмножество исключает все соседние выборки.34. The method of claim 31 or 32, wherein the luminance sample group comprises a subset of adjacent samples used in VTM-3.0 to derive the linear model parameters, and wherein the subset excludes all adjacent samples.

35. Способ по п. 1, в котором выбираются две или более выборки цветности из одного или нескольких левых столбцов, верхней строки, верхней правой строки или нижнего левого столбца относительно текущего видеоблока.35. The method of claim 1, wherein two or more chrominance samples are selected from one or more left columns, top row, top right row, or bottom left column relative to the current video block.

36. Способ по п. 1, в котором выборки выбираются на основании соотношения высоты текущего видеоблока для получения ширины текущего видеоблока.36. The method of claim 1, wherein the samples are selected based on the height ratio of the current video block to obtain the width of the current video block.

37. Способ по п. 1, в котором две или более выборки блока цветности выбираются на основе режима кодирования текущего видеоблока.37. The method of claim 1, wherein two or more chrominance block samples are selected based on the coding mode of the current video block.

38. Способ по п. 37, в котором режим кодирования текущего видеоблока является первым линейным режимом, который отличается от второго линейного режима, который использует только для левых соседних выборок, и третий линейный режим, который использует только верхние соседние выборки, в которых координаты верхней левой выборки текущего видеоблока представляют собой (X, Y) и, где ширина и высота текущего видеоблока являются W и H, соответственно.38. The method of claim 37, wherein the encoding mode of the current video block is a first linear mode that is different from a second linear mode that only uses left adjacent samples, and a third linear mode that uses only upper adjacent samples in which the coordinates of the top the left samples of the current video block are (X, Y) and where the width and height of the current video block are W and H, respectively.

39. Способ по п. 38, в котором две или более выборки цветности содержат выборки с координатами (x-1, y), (x, y-1), (x-1, y + h-1) и (X + W-1, Y-1).39. The method of claim 38, wherein the two or more chrominance samples comprise samples with coordinates (x-1, y), (x, y-1), (x-1, y+h-1), and (X+ W-1, Y-1).

40. Способ по п. 38, в котором две или более выборки цветности содержат выборки с координатами (X-1, Y), (x, y-1), (x - 1, y + h - h / w -1) и (X + W-1, Y-1) и где H> W.40. The method of claim 38, wherein the two or more chrominance samples contain samples with coordinates (X-1, Y), (x, y-1), (x - 1, y + h - h / w -1) and (X + W-1, Y-1) and where H> W.

41. Способ по п. 38, в котором две или более выборки цветности содержат выборки с координатами (X-1, Y), (x, y-1), (x - 1, y + h -1) и (x + w - w / h-1, y-1) и где h <w.41. The method of claim 38, wherein the two or more chroma samples comprise samples with coordinates (X-1, Y), (x, y-1), (x - 1, y + h -1) and (x + w - w / h-1, y-1) and where h < w.

42. Способ по п. 38, в котором две или более выборки цветности содержат выборки с координатами (x-1, y), (x, y-1), (x-1, y + h - max (1 , H / w)) и (x + w- max (1, w / h), y-1).42. The method of claim 38, wherein the two or more chrominance samples comprise samples with coordinates (x-1, y), (x, y-1), (x-1, y + h - max (1 , H / w)) and (x+w-max(1, w/h), y-1).

43. Способ по п. 38, в котором две или более выборки цветности содержат выборки с координатами (x, y-1), (x + w / 4, y-1), (x + 2 * w / 4 , y-1) и (x + 3 * w / 4, y - 1).43. The method of claim 38, wherein the two or more chroma samples comprise samples with coordinates (x, y-1), (x + w / 4, y-1), (x + 2 * w / 4 , y- 1) and (x + 3 * w / 4, y - 1).

44. Способ по п. 38, в котором две или более выборки цветности содержат выборки с координатами (x, y-1), (x + w / 4, y-1), (x + 3 * w / 4 , y - 1) и (x + w - 1, y -1).44. The method of claim 38, wherein the two or more chrominance samples comprise samples with coordinates (x, y-1), (x + w / 4, y-1), (x + 3 * w / 4 , y - 1) and (x + w - 1, y -1).

45. Способ по п. 38, в котором две или более выборки цветности содержат выборки с координатами (x, y-1), (x + (2w) / 4, y-1), (x + 2 * 2W) / 4, Y-1) и (x + 3 * (2w) / 4, y - 1).45. The method of claim 38, wherein the two or more chrominance samples contain samples with coordinates (x, y-1), (x + (2w) / 4, y-1), (x + 2 * 2W) / 4 , Y-1) and (x + 3 * (2w) / 4, y - 1).

46. Способ по п. 38, в котором две или более выборки цветности содержат выборки с координатами (x, y-1), (x + (2w) / 4, y-1), (x + 3 * 2 Вт) / 4, y - 1) и (x + (2w) -1, y-1).46. The method of claim 38, wherein the two or more chroma samples comprise samples with coordinates (x, y-1), (x + (2w) / 4, y-1), (x + 3 * 2W) / 4, y - 1) and (x + (2w) -1, y-1).

47. Способ по п. 38, в котором две или более выборки цветности содержат выборки с координатами (x-1, y), (x -1, y + h / 4), (x -1, y + 2 * H / 4) и (x -1, y + 3 * h / 4).47. The method of claim 38, wherein the two or more chroma samples comprise samples with coordinates (x-1, y), (x -1, y + h / 4), (x -1, y + 2 * H / 4) and (x -1, y + 3 * h / 4).

48. Способ по п. 38, в котором две или более выборки цветности содержат выборки с координатами (x - 1, y), (x - 1, y + 2 * h / 4), (x -1, y + 3 * H / 4) и (x -1, y + h-1).48. The method of claim 38, wherein the two or more chroma samples comprise samples with coordinates (x - 1, y), (x - 1, y + 2 * h / 4), (x -1, y + 3 * H / 4) and (x -1, y + h-1).

49. Способ по п. 38, в котором две или более выборки цветности содержат выборки с координатами (X-1, Y), (x -1, y + (2H) / 4), (x -1, y + 2 * (2H) / 4) и (x -1, y + 3 * (2H) / 4).49. The method of claim 38, wherein the two or more chrominance samples comprise samples with coordinates (X-1, Y), (x -1, y + (2H) / 4), (x -1, y + 2 * (2H) / 4) and (x -1, y + 3 * (2H) / 4).

50. Способ по п. 38, в котором две или более выборки цветности содержат выборки с координатами (X-1, Y), (x - 1, y + 2 * (2H) / 4), (x -1, Y + 3 * (2H) / 4) и (x -1, y + (2H) -1).50. The method of claim 38, wherein the two or more chrominance samples comprise samples with coordinates (X-1, Y), (x - 1, y + 2 * (2H) / 4), (x -1, Y + 3 * (2H) / 4) and (x -1, y + (2H) -1).

51. Способ по любому из пп. 39-50, в котором выбирают ровно две из четырех выборок для определения набора значений для параметров линейной модели.51. The method according to any one of paragraphs. 39-50, in which exactly two of the four samples are selected to determine a set of values for the linear model parameters.

52. Способ по любому из пп. 1-51.52. The method according to any one of paragraphs. 1-51.

53. Устройство для кодирования видео содержащее процессор, выполненный с возможностью выполнять способ по любому из пп. 1-51.53. Device for encoding video containing a processor configured to perform the method according to any one of paragraphs. 1-51.

54. Устройство в системе видео, содержащее процессор и постоянную память с инструкциями на ней, в котором инструкции при выполнении процессором побуждают процессор выполнить способ по любому из пп. 1-51.54. A device in a video system, comprising a processor and read-only memory with instructions thereon, wherein the instructions, when executed by the processor, cause the processor to execute the method of any one of claims. 1-51.

55. Компьютерный программный продукт, хранящийся на постоянном машиночитаемом носителе, компьютерный программный продукт включает в себя программный код для выполнения способа по любому из пп. 1-51.55. Computer program product stored on a permanent computer-readable medium, the computer program product includes program code for performing the method according to any one of paragraphs. 1-51.

Как очевидно из вышеизложенного, в настоящем документе было приведено описание конкретных вариантов осуществления настоящего изобретения в целях иллюстрации, но могут быть осуществлены различные модификации в рамках объема настоящего изобретения. Соответственно, настоящее изобретение не ограничено, за исключением прилагаемой формулой изобретения.As is apparent from the foregoing, specific embodiments of the present invention have been described herein for purposes of illustration, but various modifications may be made within the scope of the present invention. Accordingly, the present invention is not limited except by the appended claims.

Реализации предмета изобретения и функциональных операций, описанных в этом патентном документе, могут быть осуществлены в различных системах, цифровой электронной схеме или в компьютерном программном обеспечении, встроенной программе или аппаратном обеспечении, включающим в себя структуры, раскрытые в этой спецификации и их структурных эквивалентах, или в комбинациях одного или нескольких из них. Реализации описанного в этой спецификации предмета изобретения могут быть осуществлены в виде одного или нескольких компьютерных программных продуктов, т.е. одного или нескольких модулей компьютерных программных инструкций, закодированных на материальном и постоянном машиночитаемом носителе, для выполнения или для управления операцией, устройства обработки данных. Машиночитаемый носитель может быть машиночитаемым устройством хранения, машиночитаемой подложкой для хранения, устройством памяти, композицией, влияющей на машиночитаемый передаваемый сигнал или комбинацию одного или нескольких из них. Термин «блок обработки данных» или «устройство обработки данных» охватывает все устройства, приспособления и машины для обработки данных, включающие в себя в качестве примера программируемый процессор, компьютер или множество процессоров или компьютеров. Дополнительно к аппаратному обеспечению, устройство может включать в себя код, который формирует условия выполнения упомянутой компьютерной программы, например, код, который формирует встроенную программу процессора, стек протокола, систему управления базами данных, операционную систему или комбинацию одного или больше из них.Implementations of the subject matter and functional operations described in this patent document may be implemented in various systems, digital electronic circuitry, or computer software, firmware, or hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them. Implementations of the subject matter described in this specification may be implemented as one or more computer program products, i. one or more modules of computer program instructions, encoded on a tangible and permanent computer-readable medium, for executing or controlling an operation of a data processing device. The computer-readable medium may be a computer-readable storage device, a computer-readable storage substrate, a memory device, a composition affecting a computer-readable transmitted signal, or a combination of one or more of them. The term "data processing unit" or "data processing device" encompasses all data processing devices, appliances, and machines, including by way of example a programmable processor, a computer, or a plurality of processors or computers. In addition to hardware, the device may include code that generates the conditions for executing said computer program, such as code that generates a processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of these.

Компьютерная программа (также известная как программа, программное обеспечение, программное приложение, скрипт или код) может быть записана в любой форме языка программирования, включающей в себя скомпилированные или интерпретированные языки, и может быть развернута в любой форме, включающей в себя как автономную программу или модуль, компонент, подпрограмму или другой блок, подходящий для использования в вычислительной среде. Компьютерная программа не обязательно соответствует файлу в файловой системе. Программа может храниться в части файла, который содержит другие программы или данные (например, один или несколько скриптов, хранящихся в документе языка разметки), в одном файле, выделенном рассматриваемой программе, либо в нескольких скоординированных файлах (например, файлы, которые хранят один или несколько модулей, подпрограмм или части кода). Компьютерная программа может быть развернута для выполнения на одном компьютере или на нескольких компьютерах, которые расположены на одном месте или распределены на нескольких местах и взаимосвязаны с помощью сети связи.A computer program (also known as a program, software, software application, script, or code) may be written in any form of a programming language, including compiled or interpreted languages, and may be deployed in any form, including as a standalone program or a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program does not necessarily correspond to a file in a file system. A program may be stored in a portion of a file that contains other programs or data (for example, one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in several coordinated files (for example, files that store one or more multiple modules, subroutines, or pieces of code). A computer program may be deployed to run on a single computer or on multiple computers that are located at one location or distributed across multiple locations and interconnected via a communications network.

Процессы и логические потоки, описанные в этой спецификации, могут выполняться одним или несколькими программируемыми процессорами, выполняющими одну или несколько компьютерных программ для выполнения функций, работающих на входных данных и генерирующих выходные данные. Процессы и логические потоки также могут быть выполнены, и устройство также может быть реализовано, как специальная логическая схема, например, FPGA (программируемая пользователем вентильная матрица) или ASIC (специализированная интегральная схема).The processes and logical flows described in this specification may be executed by one or more programmable processors executing one or more computer programs to perform functions that operate on inputs and generate outputs. Processes and logic flows can also be executed, and the device can also be implemented as a dedicated logic circuit, such as an FPGA (Field Programmable Gate Array) or ASIC (Application Specific Integrated Circuit).

Процессоры, подходящие для выполнения компьютерной программы, включают в себя в качестве примера, как микропроцессоры общего назначения, так и специального назначения, и любой тип цифрового компьютера. Как правило, процессор принимает инструкции и данные из постоянной памяти или памяти произвольного доступа или обоих. Основные элементы компьютера являются процессором для выполнения инструкций и одним или несколькими устройствами памяти для хранения инструкций и данных. Как правило, компьютер также будет включать в себя или оперативно соединен с для приема данных или передачи данных, или оба, одно или несколько устройств хранения данных большого объема, например, магнитных, магнит-оптических дисков или оптических дисков. Однако компьютер не должен иметь такие устройства. Машиночитаемые носители, подходящие для хранения компьютерных программных инструкций и данных, включают в себя все формы постоянной память, устройств памяти и информации, включающие в себя, в качестве примера, полупроводниковые устройства памяти, например, EPROM, EЕPROM и устройства флэш-памяти. Процессор и память могут быть дополнены или включены в систему, логической схемой специального назначения.Processors suitable for executing a computer program include, by way of example, both general purpose and special purpose microprocessors and any type of digital computer. Typically, a processor receives instructions and data from read-only memory or random access memory, or both. The main elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include, or be operatively connected to for receiving data or transmitting data, or both, one or more mass storage devices such as magnetic, magneto-optical disks, or optical disks. However, the computer must not have such devices. Computer-readable media suitable for storing computer program instructions and data include all forms of read-only memory, memory devices and information, including, by way of example, semiconductor memory devices such as EPROM, EEPROM, and flash memory devices. The processor and memory may be supplemented or incorporated into the system with special purpose logic.

Спецификация вместе с чертежами должна рассматриваться только в качестве примера, в котором примерный означает пример. Используемый в настоящем документе предлог «или» охватывает значение «и/или», если только контекст явно не указывает иное.The specification, together with the drawings, is to be considered as an example only, in which exemplary means example. As used herein, the preposition "or" encompasses the meaning of "and/or" unless the context clearly indicates otherwise.

Настоящий патентный документ содержит множество отличительных признаков, но они не должны рассматриваться как ограничения объема любого изобретения или того, что может быть заявлено, но скорее как описания признаков, которые могут быть специфическими для конкретных вариантов осуществления конкретных изобретений. Конкретные признаки, которые описаны в этом патентном документе в контексте отдельных вариантов осуществления, также могут быть реализованы в комбинации в одном варианте осуществления. И наоборот, различные признаки, которые описаны в контексте одного варианта осуществления, также могут быть реализованы в нескольких вариантах осуществления отдельно или в любой подходящей подкомбинации. Более того, хотя описанные ранее признаки могут рассматриваться, как действующие в определенных комбинациях и, даже первоначально заявленные как таковые, один или несколько признаков из заявленной комбинации могут в некоторых случаях, могут быть исключены из комбинации, и заявляемая комбинация может быть использована в качестве подкомбинации или изменения подкомбинации.This patent document contains many distinctive features, but they should not be construed as limiting the scope of any invention or what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of particular inventions. Specific features that are described in this patent document in the context of separate embodiments may also be implemented in combination in one embodiment. Conversely, various features that are described in the context of one embodiment may also be implemented in multiple embodiments alone or in any suitable subcombination. Moreover, although the previously described features may be considered to work in certain combinations and, even initially claimed as such, one or more features from the claimed combination may, in some cases, be excluded from the combination, and the claimed combination can be used as a subcombination. or subcombination changes.

Аналогично, в то время как на чертежах операции изображены в определенном порядке, не следует рассматривать данный порядок как требуемый для выполнения таковых операций, как указанный порядок или что все иллюстрированные операции должны быть выполнены для получения требуемых результатов. Более того, разделение различных компонентов системы в вариантах осуществления, описанных в этом патентном документе, не следует понимать, как требуемое разделение во всех вариантах осуществления.Likewise, while the drawings show the operations in a specific order, this order should not be construed as being required to perform such operations, as a specified order, or that all the illustrated operations must be performed to obtain the required results. Moreover, the separation of the various components of the system in the embodiments described in this patent document should not be understood as a required separation in all embodiments.

Описаны только несколько реализаций и примеров, и могут быть осуществлены другие реализации, улучшения и вариации на основании описания и чертежей, которые приведены в настоящем патентном документе.Only a few implementations and examples are described, and other implementations, improvements and variations can be made based on the description and drawings, which are given in this patent document.

Claims (38)

1. Способ кодирования видеоданных, содержащий этапы, на которых:1. A method for encoding video data, comprising the steps of: определяют, для преобразования между текущим видеоблоком видео, который представляет собой блок цветности, и кодированным потоком видео, параметров межкомпонентной линейной модели (CCLM) на основании maxY, maxC, minY и minC, где maxY, maxC, minY и minC получены из двух или четырех показателей, причем показатель имеет отображение с выборкой цветности и соответствующей выборкой яркости; иdetermine, for conversion between the current video video block, which is a chrominance block, and the encoded video stream, intercomponent linear model (CCLM) parameters based on maxY, maxC, minY, and minC, where maxY, maxC, minY, and minC are derived from two or four indicators, and the indicator has a display with a sample of color and a corresponding sample of brightness; and выполняют преобразование на основании определения; иperforming a transformation based on the determination; and применяют, в ответ на отображение двух выборок цветности и двух соответствующих выборок яркости с двумя исходными показателями, используемыми для получения maxY, maxC, minY и minC, операцию заполнения для генерирования двух заполненных выборок цветности и двух заполненных выборок яркости.applying, in response to mapping two chrominance samples and two corresponding luminance samples with two original metrics used to obtain maxY, maxC, minY and minC, a padding operation to generate two filled chrominance samples and two filled luminance samples. 2. Способ по п.1, в котором соответствующие выборки яркости получают посредством понижающей дискретизации в случае, когда цветовой формат текущего видеоблока является 4:2:0 или 4:2:2, и соответствующие выборки яркости получают без понижающей дискретизации в случае, когда цветовой формат текущего видеоблока является 4:4:4.2. The method of claim 1, wherein the corresponding luminance samples are obtained by downsampling in the case where the color format of the current video block is 4:2:0 or 4:2:2, and the corresponding luminance samples are obtained without downsampling in the case where the color format of the current video block is 4:4:4. 3. Способ по п.1, в котором указанные два исходных показателя обозначены в качестве S0 и S1, а два отображенных показателя, с которыми отображены две заполненные выборки цветности и две заполненные выборки яркости, обозначены в качестве S2 и S3, при этом операция заполнения выполняется в следующем порядке:3. The method of claim 1, wherein said two raw metrics are designated as S0 and S1, and the two mapped metrics with which two filled chrominance samples and two filled luma samples are displayed are designated as S2 and S3, wherein the filling operation is performed in the following order: i) выборка цветности и соответствующая выборка яркости отображенная с S0 копируется в качестве выборки цветности и соответствующей выборки яркости отображенных с S3, соответственно;i) the chrominance sample and the corresponding luma sample mapped with S0 are copied as the chroma sample and the corresponding luma sample mapped with S3, respectively; ii) выборка цветности и соответствующая выборка яркости отображенная с S1 копируется в качестве выборки цветности и соответствующей выборки яркости отображенных с S2, соответственно;ii) the chrominance sample and the corresponding luma sample mapped from S1 are copied as the chroma sample and the corresponding luma sample mapped from S2, respectively; iii) выборка цветности и соответствующая выборка яркости отображенная с S1 копируется в качестве выборки цветности и соответствующей выборки яркости отображенных с S0, соответственно;iii) the chroma sample and the corresponding luma sample mapped with S1 are copied as the chroma sample and the corresponding luma sample mapped with S0, respectively; iv) выборка цветности и соответствующая выборка яркости отображенная с S3 копируется в качестве выборки цветности и соответствующей выборки яркости отображенных с S1, соответственно.iv) The chrominance sample and the corresponding luma sample mapped from S3 are copied as the chroma sample and the corresponding luma sample mapped from S1, respectively. 4. Способ по п.1 или 2, в котором maxY равно или более одной из двух выборок яркости отображенных с двумя исходными индексами, maxC равно выборке цветности соответствующей наибольшей выборке яркости, minY равно или менее одной из двух выборок яркости отображенных с двумя исходными показателями, а minC равно выборке цветности соответствующей наименьшей выборке яркости.4. The method according to claim 1 or 2, wherein maxY is equal to or greater than one of the two luminance samples displayed with two initial indices, maxC is equal to the chrominance sample corresponding to the largest luminance sample, minY is equal to or less than one of the two luma samples displayed with two initial indices , and minC is equal to the chrominance sample corresponding to the smallest luma sample. 5. Способ по п.1 или 2, в котором, в ответ на использование четырех выборок цветности и четырех соответствующих выборок яркости отображенных на четыре показателя для получения maxY, maxC, minY и minC, четыре показателя разделяют на два массива G0 и G1, причем каждый массив содержит два показателя.5. The method of claim 1 or 2, wherein, in response to using four chrominance samples and four corresponding luminance samples mapped to four metrics to obtain maxY, maxC, minY, and minC, the four metrics are divided into two arrays G0 and G1, wherein each array contains two indicators. 6. Способ по п.5, в котором G0[0]=S0, G0[1]= S2, G1[0]=S1 b G1[1]=S3, причем каждый из S0, S1, S2 и S3 представляют собой один показатель, отображенный с выборкой цветности и соответствующей выборкой яркости.6. The method of claim 5, wherein G0[0]=S0, G0[1]=S2, G1[0]=S1 b G1[1]=S3, wherein S0, S1, S2, and S3 are each one metric displayed with a chroma sample and a corresponding luma sample. 7. Способ по п.6, дополнительно содержащий этапы, на которых применяют первое сравнение между выборками яркости G0[0] и выборками яркости G0[1] и выборочно переставляют G0[0] и G0[1], на основе первого сравнения.7. The method of claim 6, further comprising applying a first comparison between luminance samples G0[0] and luminance samples G0[1] and selectively swapping G0[0] and G0[1] based on the first comparison. 8. Способ по п.7, дополнительно содержащий этап, на котором выполняют перестановку между G0[0] и G0[1] в ответ на то, что выборка яркости G0[0] больше выборки яркости G0[1].8. The method of claim 7, further comprising performing a permutation between G0[0] and G0[1] in response to the luminance sample G0[0] being larger than the luminance sample G0[1]. 9. Способ по п.7 или 8, дополнительно содержащий этапы, на которых применяют второе сравнение между выборками яркости G1[0] и выборками яркости G1[1] после первого сравнения и выборочно переставляют G1[0] и G1[1], на основе второго сравнения.9. The method according to claim 7 or 8, further comprising applying a second comparison between the luminance samples G1[0] and the luminance samples G1[1] after the first comparison, and selectively swapping G1[0] and G1[1], by basis of the second comparison. 10. Способ по п.9, дополнительно содержащий этап, на котором выполняют перестановку между G1[0] и G1[1] в ответ на то, что выборка яркости G1[0] больше выборки яркости G1[1].10. The method of claim 9, further comprising performing a permutation between G1[0] and G1[1] in response to the G1[0] luminance sample being greater than the G1[1] luminance sample. 11. Способ по п.9 или 10, дополнительно содержащий этапы, на которых применяют третье сравнение между выборками яркости G0[0] и выборками яркости G1[1] после второго сравнения и выборочно переставляют G0 и G1, на основе третьего сравнения, причем этап перестановки G0 и G1 содержит подэтапы, на которых переставляют G0[0] и G1[0] и переставляют G0[1] и G1[1].11. The method of claim 9 or 10, further comprising the steps of applying a third comparison between the luminance samples G0[0] and the luminance samples G1[1] after the second comparison, and selectively swapping G0 and G1 based on the third comparison, wherein the step the permutation of G0 and G1 contains substeps in which G0[0] and G1[0] are permuted and G0[1] and G1[1] are permuted. 12. Способ по п.11, дополнительно содержащий этап, на котором выполняют перестановку между G0 и G1 в ответ на то, что выборка яркости G0[0] больше выборки яркости G1[1].12. The method of claim 11, further comprising performing a permutation between G0 and G1 in response to the luminance sample G0[0] being larger than the luminance sample G1[1]. 13. Способ по п.11 или 12, дополнительно содержащий этапы, на которых применяют четвертое сравнение между выборками яркости G0[1] и выборками яркости G1[0] после третьего сравнения и выборочно переставляют G0[1] и G1[0], на основе четвертого сравнения.13. The method of claim 11 or 12, further comprising applying a fourth comparison between luminance samples G0[1] and luminance samples G1[0] after the third comparison, and selectively swapping G0[1] and G1[0] by the basis of the fourth comparison. 14. Способ по п.13, дополнительно содержащий этап, на котором выполняют перестановку между G0[1] и G1[0] в ответ на то, что выборка яркости G0[1] больше выборки яркости G1[0].14. The method of claim 13, further comprising performing a permutation between G0[1] and G1[0] in response to the luminance sample G0[1] being greater than the luminance sample G1[0]. 15. Способ по п.13 или 14, дополнительно содержащий этап, на котором получают maxY на основе среднего значения выборок яркости G1[0] и G1[1] и maxC на основе среднего значения выборок цветности G1[0] и G1[1] после четвертого сравнения.15. The method according to claim 13 or 14, further comprising obtaining maxY based on the average of the luminance samples G1[0] and G1[1] and maxC based on the average of the chrominance samples G1[0] and G1[1] after the fourth comparison. 16. Способ по п.13 или 14, дополнительно содержащий этап, на котором получают minY на основе среднего значения выборок яркости G0[0] и G0[1] и minC на основе среднего значения выборок цветности G0[0] и G0[1] после четвертого сравнения.16. The method according to claim 13 or 14, further comprising obtaining minY based on the average of the luminance samples G0[0] and G0[1] and minC based on the average of the chrominance samples G0[0] and G0[1] after the fourth comparison. 17. Способ по любому из пп.1-16, в котором преобразование включает в себя кодирование текущего блока видео в битовый поток.17. The method according to any one of claims 1-16, wherein the transformation includes encoding the current block of video into a bitstream. 18. Способ по любому из пп.1-16, в котором преобразование включает в себя декодирование текущего блока видео из битового потока.18. The method of any one of claims 1-16, wherein the transformation includes decoding the current block of video from the bitstream. 19. Устройство кодирования видеоданных, содержащее процессор и постоянную память, хранящую команды, вызывающие, при исполнении процессором, выполнение процессором:19. A video data encoding device containing a processor and a read-only memory storing instructions that cause, when executed by the processor, the execution by the processor: определения, для преобразования между текущим видеоблоком видео, который представляет собой блок цветности, и кодированным потоком видео, параметров межкомпонентной линейной модели (CCLM) на основании maxY, maxC, minY и minC, где maxY, maxC, minY и minC получены из двух или четырех показателей, причем показатель имеет отображение с выборкой цветности и соответствующей выборкой яркости; иdetermining, for converting between the current video video block, which is a chrominance block, and the encoded video stream, intercomponent linear model (CCLM) parameters based on maxY, maxC, minY, and minC, where maxY, maxC, minY, and minC are derived from two or four indicators, and the indicator has a display with a sample of color and a corresponding sample of brightness; and преобразования на основании определения; иtransformations based on the definition; and применения, в ответ на отображение двух выборок цветности и двух соответствующих выборок яркости с двумя исходными показателями, используемыми для получения maxY, maxC, minY и minC, операции заполнения для генерирования двух заполненных выборок цветности и двух заполненных выборок яркости.applying, in response to displaying two chrominance samples and two corresponding luminance samples with two raw metrics used to obtain maxY, maxC, minY, and minC, a padding operation to generate two filled chrominance samples and two filled luminance samples. 20. Устройство по п.19, в котором соответствующие выборки яркости получают посредством понижающей дискретизации в случае, когда цветовой формат текущего видеоблока является 4:2:0 или 4:2:2, и соответствующие выборки яркости получают без понижающей дискретизации в случае, когда цветовой формат текущего видеоблока является 4:4:4.20. The apparatus of claim 19, wherein the corresponding luminance samples are obtained by downsampling in the case where the color format of the current video block is 4:2:0 or 4:2:2, and the corresponding luminance samples are obtained without downsampling in the case where the color format of the current video block is 4:4:4. 21. Машиночитаемый носитель информации, хранящий команды, вызывающие выполнение процессором:21. A machine-readable storage medium that stores instructions that cause the processor to execute: определения, для преобразования между текущим видеоблоком видео, который представляет собой блок цветности, и кодированным потоком видео, параметров межкомпонентной линейной модели (CCLM) на основании maxY, maxC, minY и minC, где maxY, maxC, minY и minC получены из двух или четырех показателей, причем показатель имеет отображение с выборкой цветности и соответствующей выборкой яркости; иdetermining, for converting between the current video video block, which is a chrominance block, and the encoded video stream, intercomponent linear model (CCLM) parameters based on maxY, maxC, minY, and minC, where maxY, maxC, minY, and minC are derived from two or four indicators, and the indicator has a display with a sample of color and a corresponding sample of brightness; and преобразования на основании определения; иtransformations based on the definition; and применения, в ответ на отображение двух выборок цветности и двух соответствующих выборок яркости с двумя исходными показателями, используемыми для получения maxY, maxC, minY и minC, операции заполнения для генерирования двух заполненных выборок цветности и двух заполненных выборок яркости.applying, in response to displaying two chrominance samples and two corresponding luminance samples with two raw metrics used to obtain maxY, maxC, minY, and minC, a padding operation to generate two filled chrominance samples and two filled luminance samples. 22. Машиночитаемый носитель информации, хранящий битовый поток видео, сгенерированный устройством обработки видеоданных посредством выполнения способа, содержащего этапы, на которых:22. A computer-readable storage medium that stores a video bitstream generated by a video data processing device by executing a method comprising the steps of: определяют, для преобразования между текущим видеоблоком видео, который представляет собой блок цветности, и кодированным потоком видео, параметров межкомпонентной линейной модели (CCLM) на основании maxY, maxC, minY и minC, где maxY, maxC, minY и minC получены из двух или четырех показателей, причем показатель имеет отображение с выборкой цветности и соответствующей выборкой яркости; иdetermine, for conversion between the current video video block, which is a chrominance block, and the encoded video stream, intercomponent linear model (CCLM) parameters based on maxY, maxC, minY, and minC, where maxY, maxC, minY, and minC are derived from two or four indicators, and the indicator has a display with a sample of color and a corresponding sample of brightness; and выполняют преобразование на основании определения; иperforming a transformation based on the determination; and применяют, в ответ на отображение двух выборок цветности и двух соответствующих выборок яркости с двумя исходными показателями, используемыми для получения maxY, maxC, minY и minC, операции заполнения для генерирования двух заполненных выборок цветности и двух заполненных выборок яркости.applying, in response to mapping two chrominance samples and two corresponding luminance samples with two original metrics used to obtain maxY, maxC, minY and minC, a padding operation to generate two filled chroma samples and two filled luminance samples.
RU2021125411A 2019-02-24 2020-02-24 Obtaining a parameter for in-frame prediction RU2777779C1 (en)

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
CNPCT/CN2019/075993 2019-02-24
CNPCT/CN2019/076195 2019-02-26
CNPCT/CN2019/079396 2019-03-24
CNPCT/CN2019/079431 2019-03-25
CNPCT/CN2019/079769 2019-03-26

Publications (1)

Publication Number Publication Date
RU2777779C1 true RU2777779C1 (en) 2022-08-09

Family

ID=

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHRISTIAN HELMRICH, Improved robustness for calculation of cross-component linear model parameters, Joint Video Experts Team (JVET) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11, JVET-M0093-v1, 13th Meeting: Marrakech, 9-18 Jan. 2019. WO 2018118940 A1 - 2018.06.28. US 2018063531 A1 - 2018.03.01. RU 2336663 C1 - 2008.10.20. JUNYAN HUO et al., CE3-related: Fixed Reference Samples Design for CCLM, Joint Video Experts Team (JVET) of ITU-T SG16 WP3 and ISO/IEC JTC 1/SC 29/WG11, JVET-M0211-v1, 13th Meeting, Marrakech, 9-18 Jan. 2019. GUILLAUME LAROCHE et al., CE3-5.1 Cross-component linear model simplification, Joint Video Exploration Team of ISO/IEC JTC1/SC29/WG11 and ITU-T SG.16, JVET-L0191, 12th Meeting: Macao, 3-12 Oct. 2018. *

Similar Documents

Publication Publication Date Title
KR102472756B1 (en) Parameter derivation for intra prediction
AU2020226565B2 (en) Neighbouring sample selection for intra prediction
AU2019391197B2 (en) Context-based intra prediction
US20200252619A1 (en) Position based intra prediction
US11902507B2 (en) Parameter derivation for intra prediction
CN113767631B (en) Conditions in parameter derivation for intra prediction
CN113632474B (en) Parameter derivation for inter-prediction
RU2777779C1 (en) Obtaining a parameter for in-frame prediction
RU2810900C2 (en) Selection of neighbouring sample for internal prediction
RU2806083C2 (en) Context-based internal prediction