RU2810900C2 - Selection of neighbouring sample for internal prediction - Google Patents

Selection of neighbouring sample for internal prediction Download PDF

Info

Publication number
RU2810900C2
RU2810900C2 RU2021127209A RU2021127209A RU2810900C2 RU 2810900 C2 RU2810900 C2 RU 2810900C2 RU 2021127209 A RU2021127209 A RU 2021127209A RU 2021127209 A RU2021127209 A RU 2021127209A RU 2810900 C2 RU2810900 C2 RU 2810900C2
Authority
RU
Russia
Prior art keywords
samples
chroma samples
cclm
current video
video block
Prior art date
Application number
RU2021127209A
Other languages
Russian (ru)
Other versions
RU2021127209A (en
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 Бейджин Байтдэнс Нетворк Текнолоджи Ко., Лтд.
Publication of RU2021127209A publication Critical patent/RU2021127209A/en
Application granted granted Critical
Publication of RU2810900C2 publication Critical patent/RU2810900C2/en

Links

Abstract

FIELD: video processing.
SUBSTANCE: invention relates to technologies, devices and systems for video processing. The result is achieved in that the video processing method includes determining the cross-component linear model (CCLM) prediction mode parameters based on chroma samples that are selected based on the available W top adjacent samples, where W is an integer, for conversion between the current video block of the video, which is a chrominance block, and the encoded representation of the video; and performing a conversion based on the determination.
EFFECT: increased efficiency of video processing.
14 cl, 31 dwg

Description

Перекрестная ссылка на родственные заявкиCross reference to related applications

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

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

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

Несмотря на прогресс в области сжатия видео, цифровое видео до сих пор занимает наибольшую полосу пропускания в интернете и других цифровых коммуникационных сетях. По мере увеличения количества подключенных устройств пользователя, выполненных с возможностью принимать и отображать видео, ожидается продолжение увеличения запроса полосы пропускания для использования цифрового видео.Despite advances in video compression, digital video still consumes 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 demand for bandwidth for digital video use is expected to continue to increase.

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

В настоящем раскрытии представлены описания устройств, систем и способов, относящихся к цифровой обработке видео, и, например, получение упрощенной линейной модели для режима межкомпонентного предсказания по линейной модели (CCLM) при кодировании видео. Описанные способы могут быть применены как к существующим стандартам кодирования видео (например, высокоэффективное кодирование видео (HEVC)), так и к перспективным стандартам кодирования видео (например, универсальное кодирование видео (VVC)) или к кодекам.The present disclosure provides descriptions of devices, systems and methods related to digital video processing and, for example, the derivation of a simplified linear model for a cross-component linear model (CCLM) mode in video encoding. The described methods can be applied to both existing video coding standards (eg, High Efficiency Video Coding (HEVC)) and future video coding standards (eg, Versatile 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 defining, for transforming between a current video block, which is a chrominance block, and an encoded video representation, cross-component linear model (CCLM) prediction mode parameters based on chrominance samples that are selected based on W available top neighboring samples, W being an integer ; and performing a conversion based on the definition.

В другом типичном аспекте для обеспечения способа обработки видео может быть использована технология по настоящему раскрытию. Способ содержит: определение, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, параметров режима предсказания межкомпонентной линейной модели (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 conversion between a current video block, which is a chrominance block, and an encoded video representation, cross-component linear model (CCLM) prediction mode parameters based on chroma samples that are selected based on H available left adjacent samples of the current video block; and performing a conversion based on the definition.

В другом типичном аспекте для обеспечения способа обработки видео может быть использована технология по настоящему раскрытию. Способ содержит: определение, для преобразования между текущим блоком видео, которое представляет собой блок цветности, и кодированным представлением видео, параметров межкомпонентной линейной модели (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 conversion between a current video block, which is a chroma block, and a coded representation of the video, cross-component linear model (CCLM) parameters based on two or four chroma samples and/or corresponding luma samples; and performing a conversion based on the definition.

В другом типичном аспекте для обеспечения способа обработки видео может быть использована технология по настоящему раскрытию. Способ содержит: выбор, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, выборки цветности на основании правила позиции, выборки цветности используются для получения параметров межкомпонентной линейной модели (CCLM); и выполнение преобразования на основании определения, в котором правило позиции указывает выбрать выборки цветности, которые расположены в пределах верхней строки и/или левого столбца текущего блока видео.In another exemplary aspect, the technology of the present disclosure may be used to provide a video processing method. The method comprises: selecting, to transform between a current video block, which is a chrominance block, and a coded representation of the video, chrominance samples based on a position rule, the chroma samples being used to obtain the parameters of a cross-component linear model (CCLM); and performing a conversion based on the determination in which the position rule specifies to select chroma 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 conversion between a current video block, which is a chrominance block, and a coded video representation, positions at which luminance samples are downsampled, wherein the luminance samples after downsampling are used to determine the parameters of a cross-component linear model (CCLM) based on the chrominance samples and the downsampled luminance samples, wherein the downsampled luminance samples are at positions corresponding to positions of the chrominance samples that are used to obtain the CCLM parameters; and performing a conversion based on the definition.

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

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

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

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

В еще одном типичном аспекте устройство видеодекодера может реализовать описанный в настоящем документе способ.In yet another exemplary aspect, a video decoder device 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 drawings

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

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

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

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

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

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

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

Фиг.7 показывает пример разных частей блока цветности, предсказанного линейной моделью, используя только левые соседние выборки (LM-L) и линейной моделью с использованием только верхних соседних выборок (LM-A).FIG. 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 a top left adjacent block.

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

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

Фиг.11 показывает пример текущего блока и его опорных выборок.FIG. 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 показывает примеры двух соседних выборок, когда доступны только верхние соседние опорные выборки.FIG. 13 shows examples of two adjacent samples when only the top adjacent reference samples are available.

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

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

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

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

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

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

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

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

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

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

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

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

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

1. Варианты осуществления межкомпонентного предсказания1. Options for implementing inter-component prediction

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

1.1 Примеры межкомпонентной линейной модели (CCLM)1.1 Examples of cross-component linear model (CCLM)

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

(1)(1)

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

(2)(2) и And (3)(3)

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

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

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

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

(4)(4)

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

В некоторых вариантах осуществления коэффициент α масштабирования может быть получен аналогичным образом, как в CCLM предсказании яркости к цветности. Единственное отличие заключается в добавлении стоимости регрессии относительно значения α по умолчанию в функцию ошибки, так что полученный коэффициент масштабирования смещен к значению по умолчанию -0.5 следующим образом:In some embodiments, the scaling factor α may be obtained in a similar manner as in CCLM luma to chrominance prediction. The only difference is to add the regression cost relative to 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:

(5) (5)

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

В некоторых вариантах осуществления CCLM режим предсказания яркости к цветности добавляется в виде одного дополнительного режима внутреннего предсказания цветности. На стороне кодера для выбора режима внутреннего предсказания цветности добавляется еще одна RD проверка стоимости для компонентов цветности. Когда используются режимы внутреннего предсказания, отличные от CCLM режима предсказания яркости к цветности, для компонентов цветности CU, используется CCLM Cb-to-Cr предсказание для предсказания Cr компонента.In some CCLM embodiments, a luminance to chrominance prediction mode is added as one additional intra-chrominance prediction mode. On the encoder side, another RD cost check for the chrominance components is added to select the intra-chrominance prediction mode. When intra prediction modes other than the CCLM luma-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 Examples of multiple CCLM model

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

В MMLM соседние выборки яркости и соседние выборки цветности текущего блока классифицируются на две группы, каждая группа используется в качестве учебного набора для получения линейной модели (т.е., конкретные α и β получают для конкретной группы). Более того, выборки текущего блока яркости также классифицируются на основании того же правила для классификации соседних выборок яркости.In MMLM, neighboring luma 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 (i.e., specific α and β are obtained for a specific group). Moreover, 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.FIG. 2 shows an example of classifying adjacent samples into two groups. The threshold value is calculated as the average of neighboring reconstructed luminance samples. The adjacent sample with Rec′ L [x,y] <= Threshold value is classified into group 1; while the neighboring sample with Rec′ L [x,y] >Threshold value is classified into group 2.

(6)(6)

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

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

(7)(7)

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

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

В некоторых вариантах осуществления и для MMLM режима кодер может альтернативно выбрать один из четырех дополнительных фильтров понижающей дискретизации яркости, которые будут применяться для предсказания в CU, и отправить индекс фильтра для указания, который из них используется. Четыре выбранных фильтра понижающей дискретизации для MMLM режима, как показано на фиг.3В, представляют собой следующие:In some embodiments and for MMLM mode, the encoder may alternatively select one of four additional luminance downsampling filters to be applied for prediction to 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:

(8)(8) (9)(9) (10(10 (11)(eleven)

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

Данная используемая реализация предлагает многонаправленную LM (MDLM). В MDLM используются два дополнительных CCLM режима: LM-A, в котором параметры линейной модели получают только на основании верхних соседних (или выше соседних) выборок, как показано на фиг.4А, и LM-L, в котором параметры линейной модели получают только на основании левых соседних выборок, как показано на фиг.4В.This implementation used offers multi-directional LM (MDLM). MDLM uses two additional CCLM modes: LM-A, in which the linear model parameters are obtained only from the top neighboring (or higher neighboring) samples, as shown in Fig. 4A, and LM-L, in which the linear model parameters are obtained only from based on 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 parameters α and β of the linear model by equation of a straight line, the so-called two-point method. The 2 points (luminance and chrominance pair) (A, B) are the minimum and maximum values within a set of adjacent luminance samples, as shown in Fig. 5

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

В некоторых вариантах осуществления следует не выполнять операцию разделения, необходимую при получении α, и следует заменить умножениями и сдвигами, как показано ниже:In some embodiments, the division operation required in obtaining α should be omitted, and should be replaced by 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 equal to iShift, α is set equal to a and β is set equal to b. Additionally, g_aiLMDivTableLow and g_aiLMDivTablehigh are two tables each with 512 entries, in which each entry stores a 16-bit integer.

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

Данная реализация также проще, чем текущая 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 to VVC examples

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 were adopted in VTM-3.0.

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

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

Когда LIC применяется для CU, используется способ наименьших квадратных ошибок для получения параметров а и b с использованием соседних выборок текущего CU и их соответствующих опорных выборок. Более конкретно, как показано на фиг.23, используются субдискретизированные соседние выборки (2:1 субдискретизация) CU и соответствующие пиксели (идентифицированные информацией движения текущего CU или суб-CU) в опорном изображении. IC параметры получают и применяют для каждого направления предсказания отдельно.When LIC is applied to a CU, the least square error method is used to obtain the a and b parameters using the current CU's neighboring samples and their corresponding reference samples. More specifically, as shown in FIG. 23, subsampled adjacent samples (2:1 subsampling) of the CU and corresponding pixels (identified by the motion information of the current CU or sub-CU) in the reference image 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 merging mode, the LIC flag is copied from neighboring blocks similar to copying motion information in merging 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 on an image, an additional RD level CU check is required to determine whether LIC is applied or not on the CU. When LIC is applied to CU, sum with mean absolute difference removed (MR-SAD) and sum with mean absolute absolute difference removed (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 illumination change between the current image and its reference images. To identify this situation, the encoder calculates histograms of the current image and each reference image of the current image. If the histogram difference between the current image and each reference image of the current image is less than a specified 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 method to replace the LMS approach of the LM mode. Although the new method reduces the number of additions and multiplications in CCLM, it still requires solving the following technical problems:

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

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

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

Варианты осуществления настоящего изобретения решают технические задачи существующих реализаций, обеспечивая, тем самым, кодирование видео с более высокой эффективностью кодирования и более низкой вычислительной сложностью. Упрощенные линейные модели для межкомпонентного предсказания, основанные на раскрытой технологии, могут усовершенствовать как существующие, так и будущие стандарты кодирования видео, которые пояснены в следующих примерах, описанных для различных реализаций. Примеры раскрытой технологии, представленные ниже, объясняют общие концепции и не предназначены для интерпретации как ограничения. В примере, если явно не указано иное, различные описанные в этих примерах признаки могут быть объединены.Embodiments of the present invention solve technical problems of existing implementations, thereby providing video encoding with higher encoding efficiency and lower computational complexity. Simplified linear models for inter-component prediction based on the disclosed technology can improve both current and future video coding standards, which are illustrated in the following examples described for various implementations. The examples of technology disclosed below explain general concepts and are not intended to be interpreted as limitations. In the example, unless explicitly stated otherwise, 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 the top neighbor samples to obtain a linear model, or other kinds of methods that use the 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) определяется как и Signshift (x, s) определяется какIn the following examples and methods, Shift(x, s) is defined as and Signshift(x, s) is defined as

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

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

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

A: верхняя выборка слева: [x-1, y],A: top left selection: [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 left selection: [x-1, y + H-1],

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

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

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

I: продленная нижняя выборка слева: [x-1, y + H + H-1],I: extended bottom left selection: [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 middle 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 average sample above: [x + W + W/2-1, y-1],

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

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

Пример 1. Параметры α и β в LM способах получают из выборок цветности на двух или более конкретных позициях.Example 1. The 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 luma samples of the selected chrominance samples. Alternatively, the acquisition also depends on the corresponding luminance samples of the selected chroma samples, such as a 4:4:4 color format.

b. Например, параметры α и β в CCLM получают из выборок цветности на 2S (например, S = 2 или 3) позициях, такие как:b. For example, the parameters α and β in CCLM are obtained from chroma samples at 2 S (e.g. 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};xii. Position {A, B, D, F};

xiii. Позиция {A, C, E, I};xii. 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};xvii. 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};xxii. 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 obtained from the 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 of 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 different 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) position 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 drawn from {J, K, L, M, N, O, P, Q}

(а) позиция J и K;(a) position of 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) J and O position;

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

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

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

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

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

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

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

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

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

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

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

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

(r) позиция Q и Q;(r) 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 luminance values to obtain the α and β parameters in CCLM using a two-point method.

i. Одну выборку цветности из К выборок цветности (и их соответствующие выборки яркости с пониженной дискретизацией) включают в набор поиска. 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 can be 2, 4, 6 or 8.

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

ii. Только выборки цветности на конкретных позициях, таких как определенные в 1.a.i ~ 1.a.xxiv, включены в набор поиска.ii. Only chroma 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 top 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, the mapping positions may be signaled from the encoder to the 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 least squares, as shown in equation (2) and equation (3). In Equation (2) and Equation (3), N is the number of samples selected.

i. Пара выбранных выборок цветности используются для получения параметров α и β двухточечным способом.i. A pair of selected chrominance samples are used to obtain the parameters α and β in a two-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 adjacent block is available.

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

а. В одном примере α рассчитывается как среднее значение α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 ) have different precision, for example, to obtain a chrominance prediction CP from its corresponding downsampled luminance sample LR is calculated as

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

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

- . Затем окончательная точность равна (α2, β2).- . The final precision is then (α 2 , β 2 ).

- . Затем окончательная точность равна (α2, β2).- . The final precision is then (α 2 , β 2 ).

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

b.Некоторые примеры позиций в группы 1 и группы 2:b.Some examples of positions in group 1 and group 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: J and M position, group 2: N and Q position, 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: J and K position, group 2: L and M position, 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 corresponding luma sample values, denoted as L0 and L1 (L0 < L1), are the input values. By performing the point-to-point method, one can obtain α and β with input values as

Битовые глубины выборок яркости и выборок цветности обозначены BL и BC. Одно или несколько упрощений для этой реализации включают в себя:The bit depths of luma samples and chrominance samples are designated 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 particular intra prediction mode (eg, DM mode, DC or planar) is used using CCLM mode to obtain the 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. илиi. or

ii. илиii. or

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 could be

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

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

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

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

ii. Каждая запись таблицы поиска хранит F-бит целое число, например, F = 8 или 16.ii. Each lookup table entry stores an F-bit 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, in which S is an integer defining the precision, e.g. S = F. Off is the offset, e.g. Off = (k + Z ) >> 1. Z specifies 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 for the lookup table query (k-Z <0 or k-Z> = V), α is output as 0.

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

или or

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

или or

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 by V, is 2 P , in which P is an integer such as 5, 6, 7, or 8. Alternatively, V is set to 2 P - M (for example, 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 (for example, Q = L1-L0, P = C1-C0 or they are obtained in other ways), then α is calculated with a lookup table in the form α = Shift(P×M[k−Z], D ) or α = SignShift(P×M[k−Z], D), in which k is the key (index) to query 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 the 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 for Q <= kMax and k = Shift (Q, W) for Q > kMax. For example, W is chosen to be the smallest positive integer that ensures 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 a transient variable can exceed the range represented by the limited bit, then a constraint or right shift must be performed to be within the limited bits.

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

а. В одном примере LM-L и LM-A режим можно комбинировать в одном блоке цветности.A. In one example, LM-L and LM-A mode can be combined in one chroma 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) are predicted by 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 the prediction LM-L and LM-A for the sample at position (x, y) are denoted by 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 (for example, w1 = 2, w2 = 2), if x == y,

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

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

Пример 5. Предложено, что соседние выборки (включающие в себя выборки цветности и их соответствующие выборки яркости, которые могут быть подвергнуты понижающей дискретизации), делятся на N груп Максимальное значение яркости и минимальное значение яркости для k-ой группы (с k = 0, 1, ..., N-1) обозначается как MaxLk и MinLk и их соответствующие значения цветности обозначаются как MaxCk и MinCk соответственно.Example 5: It is proposed that the adjacent samples (including the chrominance samples and their corresponding luma samples, which can be downsampled) are divided into N groups. The maximum luma value and the minimum luma value for the kth group (with k = 0, 1, ..., N-1) are denoted as MaxL k and MinL k and their corresponding 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 point-to-point method, α and β are obtained with input as:

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, for example, 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, samples (or downsampled samples) located in the top rows can be classified into one group, and samples (or downsampled samples) located in the left column of a 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, 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, classify into group S0 if x% P = Q in which P and Q are integers, e.g. P = 2, Q = 1, P = 2, Q = 0 or P = 4, Q = 0; Otherwise, classified into 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, classified into group S0 if y% P = Q in which P and Q are integers, e.g. P = 2, Q = 1, P = 2, Q = 0 or P = 4, Q = 0; Otherwise, classified into 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 partial ones from adjacent samples (or downsampled samples) are used to split N into groups.

e. Количество групп (например, N) и/или индексы выбранных групп и/или функции (f1/f2/f3/f4) могут быть предварительно определены или сигнализируются в SPS/VPS/PPS/заголовок изображений/заголовок сегмента/заголовок группы плитки/LCUs/LCU/CUs.e. The number of groups (e.g. N) and/or indices of selected groups and/or functions (f1/f2/f3/f4) can be predefined 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 determined from position A and D; MaxL 1 /MaxC 1 and MinL 1 /MinC 1 are determined from the position of 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 their default values if the upper adjacent block is unavailable. For example, α = 0 and β = 1 << (bitDepth -1), in which bitDepth is the bit depth of the chroma samples.

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

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

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

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, two samples with the largest 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 suggested 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. e.g. K = 2.

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

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

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

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

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

(c) В одном примере, если верхний левый соседний блок недоступен, то рассматривается как применение CCLM режима.(c) In one example, if the top left adjacent block is unavailable, then it is considered to be in CCLM mode.

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

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

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

(a) Порядок кодирования указаний DM и LM (например, во-первых, код LM режима, если нет, то код DM режима; или, во-первых, код, будь то DM режим, если нет, то код LM режима) может быть зависеть от информации режима одного или нескольких соседних блоков.(a) The order of encoding the DM and LM instructions (e.g., first, the LM mode code, if not, then the DM mode code; or, first, the code, whether 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 using the LM mode, the LM mode indication is encoded first.

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

(d) Альтернативно, когда верхний левый блок текущего блока доступен и закодирован non-LM режимом (например, DM режим или другие режимы внутреннего предсказания, за исключением LM), то сначала кодируется указание DM режима.(d) Alternatively, when the upper 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, order indications may be signaled in the SPS/VPS/PPS/picture header/segment header/tile group header/LCUs/LCUs/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 the 2×W top adjacent samples or the 2×H left adjacent samples, as shown in FIG. 6.

(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 LM mode or LM-L mode, the adjacent sample RecC[x-1, y+d] in which d is in the range [T, S] can be used. 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 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, the adjacent sample 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 another example, T = 0 and S = 4W.

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

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

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

(c) В одном примере соседние выборки цветности и их соответствующие выборки яркости (могут быть подвергнуты пониженной дискретизации) не подвергаются пониженной дискретизации, если W равно H.(c) In one example, adjacent chrominance samples and their corresponding luma samples (which 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 chroma 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 selected to be used to obtain α and β.

(е) В одном примере соседние выборки цветности и их соответствующие выборки яркости (могут быть подвержены пониженной дискретизации) выше текущего блока, подвергаются пониженной дискретизации, если W> H.(e) In one example, adjacent chrominance samples and their corresponding luma samples (which 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 chroma sample in each of the W/H chroma samples is selected to obtain α and β. Other chroma 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 selected when position D and position M in FIG. 6 are used to obtain α and β, and downsampling is performed when W>H.

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

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

(b) «должны быть уточнены» может относиться к любой нелинейной обработке.(b) "to be specified" 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 luma samples, which may be downsampled) are selected to calculate 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 Lx1, Lx2, ..., LxS, and their corresponding chrominance samples, denoted Cx1, Cx2, ... CxS, are used to obtain C0 both L0 and T adjacent luminance samples (may be downsampled), denoted Ly1, Ly2, ..., LyT and their corresponding chrominance samples, denoted Cy1, Cy2, ... CyT are used to obtain 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 averaging functions.

(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 neighboring samples used in VTM-3.0 to obtain linear CCLM parameters.

2. Например, группа выборок яркости включает в себя частичные соседние выборки, используемые в VTM-3.0 для получения линейных параметров CCLM.2. For example, a group of luminance samples includes partial neighboring 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 a group of luminance samples.

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

2. Например, группа выборок яркости включает в себя частичные соседние выборки, используемые в VTM-3.0, для получения линейных параметров CCLM.2. For example, a group of luminance samples includes partial neighboring 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 adjacent or adjacent downsampled samples based on the largest adjacent or adjacent downsampled sample in a given set of adjacent or adjacent downsampled 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 neighbor or downsampled neighbor located at position (x0, y0) is denoted. Samples in the region (x0-d1, y0), (x0, y0-d2), (x0 + d3, y0), (x0, y0 + d4) can then be used to select other samples. The number of integers {d1, d2, d3, d4} can 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, denote the smallest neighbor or adjacent downsampled sample located at position (x1, y1). Samples in the region (x1-d1, y1), (x1, y1-d2), (x1 + d3, y1), (x1, y1 + d4) can then be used to select other samples. Integers {d1, d2, d3, d4} can 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 the 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 chroma 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 selection 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 the left column or top row or the top right row or bottom left column. 10 depicts the concepts of left column/top row/top right row/bottom left column with respect to a block.

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

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

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

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

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

(i) Если доступны как левый столбец, так и верхняя строка, то могут быть выбраны две выборки левого столбца и две верхние строки. Они могут быть расположены на (предположим, верхняя левая координата текущего блока равна (x, y)):(i) If both the left column and the top row are available, then the two left column samples and the top two rows can be selected. They can be located at (assuming 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 samples from the top row 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 the width/height. For example, four samples are selected when W > 2 and two samples are selected when W = 2.

4. Выбранные выборки могут быть расположены на (предположим, что верхняя левая координата текущего блока равна (x, y)):4. Selected samples 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 - 1).

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

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

1. Например, могут быть выбраны четыре выборки левого столбца;1. For example, four samples of the left column can 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 the width/height. For example, four samples are selected when H > 2 and two samples when H = 2.

4. Выбранные выборки могут быть расположены на:4. Selected selections 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) /4).

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

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

(iv) Для приведенных выше примеров могут быть выбраны только две из четырех выборок.(iv) For the above examples, 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 in accordance with 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 in accordance with Example 11(d)(iii).

(g) выбранные выборки яркости (например, в соответствии с выбранными местоположениями цветности) могут быть сгруппированы в 2 группы, одна имеет наибольшее значение и наименьшее значение всех выбранных выборок, другая группа состоит из всех оставшихся выборок.(g) The selected luminance samples (eg according to the selected chroma locations) can be grouped into 2 groups, one having the highest value and the lowest value of all selected samples, the other group consisting of all 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 method; 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 averaged 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, the 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).

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

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

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

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

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

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

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

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 can be set to (L * current block width), in which L is an integer value if the current block is encoded in LM-A mode.

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

e. Предположим, что верхняя левая координата текущего блока равна (x0, y0), затем выбираются верхние соседние выборки на позициях (x0+F+K×S, y0-1) с K =0, 1, 2,…kMax.e. Assume that the top left coordinate of the current block is (x0, y0), then select the top neighboring samples at positions (x0+F+K×S, y0-1) 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 , in which 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 , in which 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 , in which 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 , in which 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, the settings 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> = 4O. For example, kMax = 3, F = W/8, S = W/4, offset = 0. Alternatively, in addition, settings are made if the current block is to encode LM, only the top 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, the settings are made if the current block is LM-A coded 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, the settings are made if W is 2.

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

а. В одном примере H может быть установлена на высоту текущего блока.A. In one example, H could 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), in which L is an integer value.

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

i. В качестве альтернативы, когда верхний блок НЕ доступен, H может быть установлено на (L * высоту текущего блока), в котором L представляет собой целое число.i. Alternatively, when the top block is NOT available, H can be set to (L * height of the current block), in which 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 lower left sample.

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

(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 not available.

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

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), in which L is an integer value if the current block is encoded in 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 top-left sample.

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

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

е. Предположим, что верхняя левая координата текущего блока составляет (x0, y0), затем выбираются левые соседние выборки на позициях (x0-1, y0+F+K×S) с K =0, 1, 2,…kMax e. Assume that the top left coordinate of the current block is (x0, y0), then select the left neighboring samples at positions (x0-1, y0+F+K×S) 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 , in which 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 , in which 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 , in which 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 , in which 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, in addition, the settings 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> = 4O. For example, kMax=3, F= H/8, S= H/4, offset = 0. Alternatively, in addition, settings are made if the current block is LM encoded, only the top 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, the settings are made if the current block is encoded 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 luminance samples, which may be downsampled) are selected to obtain the parameters of the linear model.

а. В одном примере получают maxY/maxC и minY/minC из двух или четырех соседних выборок цветности (и/или их соответствующих выборок яркости, которые могут быть подвержены понижающей дискретизации, и затем используются для получения параметров линейной модели с применением 2- точечного подхода.A. In one example, maxY/maxC and minY/minC are obtained from two or four adjacent chroma samples (and/or their corresponding luminance samples, which may be downsampled, and then used to obtain the 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 corresponding luma samples, which may be downsampled) that are selected to produce maxY/maxC and minY/minC, minY is set to the smallest luma sample value and minC is the corresponding chroma 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 chroma samples (and/or their corresponding luminance samples, which may be downsampled) that are selected to obtain maxY/maxC and minY/minC, the luminance samples and their corresponding chrominance samples are divided into two arrays G0 and G1, each containing two luma samples and their corresponding luma samples.

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

- G0={S0, S1}, G1={S2, S3};- G0={S0, S1}, G1={S2, S3};

- G0={ S1, S0}, G1={S3, S2};- G0={ S1, S0}, G1={S3, S2};

- G0={S0, S2}, G1={S1, S3};- G0={S0, S2}, G1={S1, S3};

- G0={S2, S0}, G1={S3, S1};- G0={S2, S0}, G1={S3, S1};

- G0={S1, S2}, G1={S0, S3};- G0={S1, S2}, G1={S0, S3};

- G0={S2, S1}, G1={S3, S0};- G0={S2, S1}, G1={S3, S0};

- G0={S0, S3}, G1={S1, S2};- G0={S0, S3}, G1={S1, S2};

- G0={S3, S0}, G1={S2, S1};- G0={S3, S0}, G1={S2, S1};

- G0={S1, S3}, G1={S0, S2};- G0={S1, S3}, G1={S0, S2};

- G0={S3, S1}, G1={S2, S0};- G0={S3, S1}, G1={S2, S0};

- G0={S3, S2}, G1={S0, S1};- G0={S3, S2}, G1={S0, S1};

- G0={S2, S3}, G1={S1, S0};- G0={S2, S3}, G1={S1, S0};

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

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

(a) Альтернативно, если значение выборки яркости G0 [0] превышает или равно значению выборки яркости G0 [1], то выборка яркости и его соответствующее значение цветности G0 [0] взаимно заменяются с G0 [1] (a) Alternatively, if the luminance sample value G0[0] is greater than or equal to the luminance sample value G0[1], then the luminance 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 luminance sample value G0[0] is less than the luminance 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 luma sample value G0[0] is less than or equal to the luma sample value 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 luminance sample value of G1[0] and G1[1] are compared, if the luminance sample value of G1[0] is greater than the luminance sample value of G1[1], the luminance sample and its corresponding chrominance sample G1[0] will be swapped with G1 [1].

(a) Альтернативно, если значение выборки яркости G0 [0] превышает или равно значению выборки яркости G1 [1], то выборка яркости и его соответствующее значение цветности G1 [0] взаимно заменяются с G1 [1] (a) Alternatively, if the luminance sample value G0[0] is greater than or equal to the luminance 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 luminance sample value G1[1], then the luminance sample and its corresponding chrominance 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 luma 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. One example compares the luminance sample value G0[0] and G1[1] 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 switch.

(b) В одном примере сравнивается значение выборки яркости G0 [1] и G1 [0], если значение выборки яркости G0 [1] больше, чем (или меньше, чем или не больше, чем или не меньше) значение выборки яркости G1 [0], затем G0 и G1 поменяются.(b) One example compares the luminance sample value of G0[1] and G1[0] 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 of 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 change.

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] are swapped.

(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 change.

(b) В одном примере сравнивается значение выборки яркости G0 [1] и G1 [0], если значение выборки яркости G0 [1] больше, чем (или меньше, чем или не больше, чем или не меньше) значения выборки яркости G1 [0], затем G0 [1] и G1 [0] поменяются.(b) One example compares the luminance sample value of G0[1] and G1[0] 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 of G1[ 0], then G0 [1] and G1 [0] will change.

(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 change.

vi. В одном примере maxY рассчитывается как в среднем значения выборки яркости G0 [0] и G0 [1], maxC рассчитывается как среднее значение значений выборки цветности G0 [0] и G0 [1].vi. In one example, maxY is calculated as the average of the luma sample values G0[0] and G0[1], maxC is calculated as the average of the chroma 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 luma sample values of G1[0] and G1[1], maxC is calculated as the average of the chroma sample values of G1[0] and G1[1].

vii. В одном примере minY рассчитывается как среднее значение выборки яркости G0 [0] и G0 [1], minC рассчитывается как среднее значение значений выборки цветности G0 [0] и G0 [1].vii. In one example, minY is calculated as the average of the luma sample values G0[0] and G0[1], minC is calculated as the average of the chroma 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 luma samples of G1[0] and G1[1], minC is calculated as the average of the chrominance samples of G1[0] and G1[1].

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

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

Пример 19: Во всех приведенных выше примерах выбранные выборки цветности должны быть расположены в пределах верхней строки (то есть, с W выборок), как показано на фиг.10, и/или в левом столбце (то есть, с H выборок), в котором W и H представляют собой ширину и высоту текущего блока.Example 19: In all of the above examples, the selected chrominance samples must 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 where 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 limitation may be applied when the current block is encoded using LM-A mode.

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

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

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

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

Пример 20Example 20

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

Пример 21Example 21

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

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

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

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

d. В качестве альтернативы, как проводить способы, раскрытые в этом документе, могут зависеть от местоположения нисходящей дискретизации цветности.d. Alternatively, how to carry out the methods disclosed herein 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 derive the CCLM parameters may depend on the availability of neighboring samples. For example, the maximum/minimum values for the luma and chrominance components used to obtain CCLM parameters cannot be obtained if both the left and top adjacent blocks are unavailable.

а. Следует ли получать максимальные/минимальные значения компонентов яркости и цветности, используемых для получения CCLM параметров, могут зависеть от количества доступных соседних выборок. Например, максимальные/минимальные значения для компоненты яркости и цветности, используемые для получения CCLMM параметров, не могут быть получены, если numSampL == 0 и numSampT == 0. В другом примере максимальные/минимальные значения для компонентов яркости и цветности используются для получения CCLM параметров не могут быть получены, если if numSampL + numSampT == 0. В двух примерах numSampL и numSampT являются количеством доступных соседних выборок слева и выше соседних блоков.A. 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 neighboring samples available. For example, the maximum/minimum values for the luma and chrominance components used to obtain 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 obtained if if numSampL + numSampT == 0. In the two examples, numSampL and numSampT are the number of available neighboring samples to the left and above the neighboring 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 obtain 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 selected samples to the left and above the 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 apply a linear model.

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

b. В одном примере выборки, используемые для получения LIC параметра, могут исключать выборки определенных позиций в верхней строке и/или левом столбце.b. In one example, the samples used to obtain the LIC parameter 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 LIC parameter may exclude the first one in the top row.

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

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

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

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

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

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

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

ii. В одном примере N соседние выборки могут быть определены как N/2 выборки из верхней строки; и N/2 выборки из левой столбца.ii. In one example, N adjacent samples can 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 can be defined as N samples from the top row or left column.

iii. В другом примере N равен min (L, T), в котором Т является общим количеством доступных соседних выборок (которые могут подвергнуты понижающей дискретизации) текущего блока.iii. In another example, N is equal to min(L, T), in which T is the total number of available neighboring 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, selecting the coordinates of N samples may follow the rule for selecting N samples in a CCLM process.

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

vi. В одном примере выбор координат N выборок может следовать правилу для выбора N выборок в LM-L процессе.vi. In one example, selecting the coordinates of N samples 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 neighboring samples (which may be downsampled) of the current block and corresponding neighboring samples (which may be correspondingly downsampled) of the reference block may be selected to obtain parameters for use in the LIC based on the positions of the samples.

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, the K1 neighbor samples may be selected from the left neighbor samples and the K2 neighbor samples are selected from the top neighbor samples if both the top and left neighbor samples are available. For example. K1 = K2 = 2.

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

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

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

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

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

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

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

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 inter-component prediction mode is proposed in which chroma samples are predicted with corresponding reconstructed luma samples according to the prediction model as shown in Equation 12. In Equation 12, Pred C (x, y) denotes the prediction of the chroma sample. α and β are two parameters of the model. Rec'L(x, y) are downsampled luminance samples.

(12)(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.

(13) (13)

Верхние окружающие опорные выборки яркости, затененные на фиг.11, не подвергаются процессу понижающей дискретизации с помощью 3-отводного фильтра, как показано в уравнении 14. Левые окружающие опорные выборки яркости подвергаются понижающей дискретизации согласно уравнению 15. Если левая или верхняя выборки недоступны, будет использоваться 2-отводной фильтр, определенный в уравнении 16 и уравнении 17.The top surrounding luminance reference samples, shaded in FIG. 11, are not subject to the downsampling process using a 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.

(14)(14) (15)(15) (16)(16) (17)(17)

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

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

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

(18)(18)

(2) Если верхние и левые блоки доступны, выбираются 2 выборки, расположенные на posA первой верхней линии и posL первой левой линии. Для упрощения описания ширина предполагается как более длинная сторона. Получение posA и posL показано в уравнении 19 (индекс позиции начинается с 0). Фиг.12 показывает некоторые примеры разной ширины и соотношения высоты (1, 2, 4 и 8 соответственно). Выбранные выборки затенены.(2) If the top and left blocks are available, 2 samples located on posA of the first top line and posL of the first left line are selected. 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). Figure 12 shows some examples of different widths and height ratios (1, 2, 4 and 8, respectively). Selected selections are shaded.

(19)(19)

(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. 13

(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. 14

(5) получают модель предсказания цветности в зависимости от значений яркости и цветности выбранных выборок.(5) obtain a chromaticity prediction model depending on the brightness and chromaticity 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 represents the bit depth of the chroma samples.

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

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

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

(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. 14.

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

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

Фиг.16 показывает пример таблиц поиска с 128, 64 и 32 записями и каждая запись представлена 16 битами. Процесс 2-точечного LM получения упрощается, как показано в таблице 1 и фиг.17 с 64 записями. Следует отметить, что первая запись может не храниться в таблице.FIG. 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. It should be noted that the first record may not be stored in the table.

Следует также отметить, что, хотя каждая запись в примерных таблицах имеет 16 бит, можно легко преобразовать в число с меньшими битами (например, 8 бит или 12 битов). Например, таблица записей с 8 битами может быть получена как:It should also be noted that although each entry in the example tables is 16 bits, it can easily be converted to a number with smaller bits (e.g. 8 bits or 12 bits). For example, a table of entries with 8 bits could 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 could 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

int iDeltaLuma = maxLuma – minLuma;int iDeltaLuma = maxLuma – minLuma;

const int TABLE_PRECISION = 16; // It may be 8 or 12.const int TABLE_PRECISION = 16; // It may be 8 or 12.

const int BIT_DEPTH = 10; // Bit depth for samples.const int BIT_DEPTH = 10; // Bit depth for samples.

int shift = TABLE_PRECISION;int shift = TABLE_PRECISION;

if( iDeltaLuma > 64) {if( iDeltaLuma > 64) {

int depthshift = BIT_DEPTH - 6; // 64 is equal to 2^6.int depthshift = BIT_DEPTH - 6; // 64 is equal to 2^6.

iDeltaLuma = ( iDeltaLuma + (1<<(depthshift-1)))>> depthshift;iDeltaLuma = ( iDeltaLuma + (1<<(depthshift-1)))>> depthshift;

shift -= depthshift;shift -= depthshift;

}}

a = (((maxChroma – minChroma)*g_aiLMDivTableHighSimp_64[iDeltaLuma-1] + (1<<(shift-1)))>>shift;a = (((maxChroma – minChroma)*g_aiLMDivTableHighSimp_64[iDeltaLuma-1] + (1<<(shift-1)))>>shift;

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

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

Предположим, что ширина блока и высота текущего блока представляет собой W и H соответственно. И верхняя левая координата текущего блока цветности составляет [0, 0].Let's assume that the block width and height of the current block 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 brightness sample 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 value 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, four chroma samples are selected from the top block 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, four chroma samples are selected 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 represents the bit depth of the chroma samples.

Если текущий режим представляет собой LM-A режим, выбираются четыре выборки цветности из верхнего блока, когда W' > 2 и 2 выборки цветности выбираются при W' = 2. W' является доступным количеством верхних соседних выборок, которое может быть 2 * W.If the current mode is 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 neighboring 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 of an implementation 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 those used in the current draft of the VVC standard.

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

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

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

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

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

- соседние выборки цветности p [x][y], с x = −1, y = 0..2 * nTbH − 1 и x = 0.. 2 * nTbW − 1, y = − 1.- 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:

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

......

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

numSampT = availT ? nTbW : 0 (8-156)numSampT = availT ? nTbW: 0 (8-156)

numSampL = availL ? nTbH : 0 (8-157)numSampL = availL ? nTbH: 0 (8-157)

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

numSampT = (availT && predModeIntra = = INTRA_T_CCLM ) ?
(nTbW + numTopRight ):0
numSampT = (availT && predModeIntra = = INTRA_T_CCLM ) ?
(nTbW + numTopRight ):0
(8-158)(8-158)

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

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

Выборки предсказания predSamples[ x ][ y ] with x = 0..nTbW − 1, y = 0..nTbH − 1 получены следующим образом: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. ...4. ...

5. ...5. ...

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

7. Переменные minY, maxY, minC и maxC получены следующим образом:7. The 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, the variable aboveIs4 is set to 0; otherwise it is set to 1.

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

- Переменные массивов startPos[] и pickStep[] получены следующим образом:- The startPos[] and pickStep[] array variables 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, the variable 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, the selectLumaPix, selectChromaPix variables are obtained as follows:

- При startPos[0]+cnt* pickStep[0] < nSX and cnt < 4, применяется следующее:- When 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, the 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 инициализируются как:- The array variables 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 of change]

3.6 Другой примерный рабочий проект по предложенному CCLM предсказанию3.6 Another sample working design for CCLM's proposed 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.

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

Количество доступных соседних выборок цветности на верхнем и верхнем правом numTopSamp и количество доступных соседних выборок цветности слева и лево-ниже nLeftSamp получены следующим образом:The number of available neighboring chroma samples on the top and top-right numTopSamp and the number of available neighboring chroma samples on 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 : numSampT = availT ? nTbW: (8-157)(8-157) numSampL = availL ? nTbHnumSampL = availL ? nTbH (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. bCTUboundary = ( 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 by L and T are obtained as follows:

- Переменная numIs4N устанавливается равной ((availN && predModeIntra == INTRA_LT_CCLM ) ? 0 : 1).- The variable numIs4N 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 variable pickStepN 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 получены следующим образом: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 brightness samples pY[ x ][ y ] with x = 0..nTbW * 2 − 1, y= 0..nTbH * 2 − 1 are set equal to the reconstructed brightness samples before the deblocking filtering process at 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, the adjacent left luminance samples pY[ x ][ y ] with x = −1..−3, y = 0..2 * numSampL − 1, are set equal to the reconstructed luminance samples before 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 before 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 top left luminance samples pY[ x ][ y ] with x = −1, y = −1, −2 are set equal to the reconstructed luminance samples before the deblocking filtering process at locations ( xTbY+ x, yTbY + y ) .

3. Совместно расположенные выборки яркости после понижающей дискретизации pDsY[ x ][ y ] с x = 0..nTbW − 1, y = 0..nTbH – 1 получены следующим образом:3. Co-located brightness samples after downsampling 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 ] с 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 ] с 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) >> 2 pDsY[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 was obtained using the following formula:

- 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 − получено следующим облазом:- Otherwise, pDsY[ 0 ][ y ] with y = 0..nTbH − 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 ] с idx = 0..(cntL-1) получены следующим облазом:4. When numSampL exceeds 0, the selected co-left color samples pSelC[idx] are set to p[-1][pickPosL[idx]] with idx = 0..(cntL – 1), and the selected adjacent left luminance samples after downsampling pSelDsY[ idx ] with idx = 0..(cntL-1) are obtained using the following format:

- переменная 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 ) >> 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 neighboring top chrominance samples pSelC[idx] are set to p[ pickPosT[ idx ]][ -1 ] with idx = 0..( cntT – 1 ), and the neighboring top luminance samples after downsampling pSelDsY [ idx ] with idx = cntL..(cntL + cntT – 1) are defined as below:

- переменная x установлена равной pickPosT[ idx - cntL ].- variable x is set 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:

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, 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 ) >> 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, 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 ) >> 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. Переменные minY, maxY, minC and maxC получены слудующим образом:6. The 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.- minGrpIdx[] and maxGrpIdx[] arrays 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 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 ) & 15 normDiff = ( ( diff << 4 ) >> x ) & 15 (8-214)(8-214) x +=(normDiff != 0) ? 1 : 0x +=(normDiff != 0) ? 10 (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 − y k = ( ( 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[ ] указано согласно:de divSigTable[ ] is specified according to:

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 equals 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. 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 example embodiment]

3.7 Еще один примерный рабочий проект по предложенному CCLM предсказанию3.7 Another rough draft of CCLM's proposed 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 neighboring chroma samples on the top and top-right numTopSamp and the number of available neighboring chroma samples on 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:

numSampT = ( availT && predModeIntra = = INTRA_T_CCLM ) ? numSampT = ( availT && predModeIntra = = INTRA_T_CCLM ) ?

( nTbW + Min( numTopRight, nTbH )) : 0( nTbW + Min( numTopRight, nTbH )) : 0 (8-159)(8-159)

numSampL = ( availL && predModeIntra = = INTRA_L_CCLM ) ? numSampL = ( availL && predModeIntra = = INTRA_L_CCLM ) ?

( nTbH + Min( numLeftBelow, nTbW )) : 0 ( 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).-Variable numIs4N is set to (( availN && predModeIntra == INTRA_LT_CCLM ) ? 0 : 1).

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

-Переменная pickStepN установлена равной Max( 1, numSampN >> ( 1 + numIs4N )).-The variable pickStepN 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 получены следующим образом: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 ) (8-162)predSamples[ x ][ y ] = 1 << ( BitDepthC − 1 ) (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 brightness samples pY[ x ][ y ] with x = 0..nTbW * 2 − 1, y= 0..nTbH * 2 − 1 are set equal to the reconstructed brightness samples before performing the deblocking filtering process on 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 luminance samples pY[ x ][ y ] with x = −1..−3, y = 0..2 * numSampL − 1 are set equal to the reconstructed luminance samples before 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 before 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 before performing the deblocking filtering process on locations ( xTbY+ x, yTbY + y).

3.Совместно размещенные выборки яркости после понижающей дискретизации pDsY[ x ][ y ] с x = 0..nTbW − 1, y = 0..nTbH − 1 получены следующим образом:3. Co-located brightness samples after downsampling 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 are described as below:

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 ] + (8-164)
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 ] + (8-164)
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) >> 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 ] с 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 (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 ) >> 1pDsY[ 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 ] с idx = 0..(cntL-1) получено следующим образом:4. When numSampL is greater than 0, the selected neighboring left chroma samples pSelC[idx] are set to p[ -1 ][ pickPosL[ idx ]] with idx = 0..(cntL – 1) and the selected neighboring left luminance samples after downsampling pSelDsY [ idx ] with idx = 0..(cntL-1) is obtained as follows:

-переменная y установлена равной pickPosL[ idx ].-variable y is set 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 ]][ -1 ] с idx = 0..( cntT – 1 ), и соседние верхние выборки яркости после понижающей дискретизации pSelDsY[ idx ] с idx = cntL..(cntL + cntT – 1) указаны следующим образом:5. When numSampT is greater than 0, the selected neighboring top chrominance samples pSelC[idx] are set to p[ pickPosT[ idx ]][ -1 ] with idx = 0..( cntT – 1 ), and the neighboring top luminance samples after downsampling 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) >> 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] = 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 << ( BitDepthC − 1) (8-210)(8-210)

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

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

-если diff не равен 0, применяется следующее:-if diff is not 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) ? 10 (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 as follows:

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 equals 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. 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)

3.8 Альтернативный рабочий проект по предлагаемому CCLM предсказанию3.8 Alternative working design for CCLM's proposed prediction

В этом разделе описан альтернативный примерный вариант осуществления, который показывает другие модификации, которые могут быть выполнены в текущем рабочем проекте VVC стандарта. Номера уравнения здесь относятся к соответствующим номерам уравнения в VVC стандарте.This section describes an alternative exemplary embodiment that shows other modifications that may 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 neighboring chroma samples on the top and top right numTopSamp and the number of available neighboring chroma samples on 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:

numSampT = ( availT && predModeIntra = = INTRA_T_CCLM ) ? numSampT = ( availT && predModeIntra = = INTRA_T_CCLM ) ?

(nTbW + Min( numTopRight, nTbH )) : 0(nTbW + Min( numTopRight, nTbH )) : 0 (8-159)(8-159)

numSampL = ( availL && predModeIntra = = INTRA_L_CCLM ) ? numSampL = ( availL && predModeIntra = = INTRA_L_CCLM ) ?

(nTbH + Min( numLeftBelow, nTbW )) : 0(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 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 to (( availT && availL && predModeIntra == INTRA_LT_CCLM ) ? 0 : 1).

-переменная startPosN установлена равным numSampN >> ( 2 + numIs4N ).-variable startPosN is set 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 получены следующим образом: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 will apply:

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 brightness samples pY[ x ][ y ] with x = 0..nTbW * 2 − 1, y= 0..nTbH * 2 − 1 are set equal to the reconstructed brightness samples before performing the deblocking filtering process on 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 luminance samples pY[ x ][ y ] with x = −1..−3, y = 0..2 * numSampL – 1 are set equal to the reconstructed luminance samples before 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 before 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 before performing the deblocking filtering process on locations ( xTbY+ x, yTbY + y ).

3. Соседние выборки яркости после понижающей дискретизации pDsY[ x ][ y ] с x = 0..nTbW − 1, y = 0..nTbH − 1 получены следующим образом:3. Adjacent brightness samples after downsampling 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) >> 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 ] 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 ) >> 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) >> 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] pDsY[0][0] = pY[0][0] (8-171)(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 ) >> 1pDsY[ 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 neighboring left chroma samples pSelC[idx] are set to p[ -1 ][ pickPosL[ idx ]] with idx = 0..(cntL – 1), and the selected neighboring left luminance samples after downsampling pSelDsY[ idx ] with idx = 0..(cntL-1) are obtained as follows:

-переменная y is устанавливается равной 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 ) >> 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 neighboring top chrominance samples pSelC[ idx ] are set to p[ pickPosT[ idx – cntL ]][ -1 ] with idx = cntL..( cntL + cntT – 1 ), and the neighboring top luminance samples after downsampling pSelDsY[ idx ] with idx = cntL..( cntL + cntT – 1) are specified as follows:

-переменная x установлена равной pickPosT[ idx – cntL ].-variable x is set 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, применяется следующее:-else, 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, применяется следующее:-else, 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, применяется следующее:-else, 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, применяется следующее:-else, if availTL is FALSE and bCTUboundary is FALSE, 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.Когда 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 below:

--

-когда 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] = 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 << ( BitDepthC − 1) (8-210)(8-210)

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

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

-если diff не равно 0, применяется следующее:-if diff is not 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) ? 10 (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 }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. 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 to 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А показывает блок-схему алгоритма примерного способа для обработки видео. Способ 1820 включает в себя этап 1822 определения, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, параметров режима предсказания межкомпонентной линейной модели (CCLM) на основании выборок цветности, которые выбираются на основании W доступных верхних соседних выборок, W является целым числом. Способ 1810 дополнительно включает в себя этап 1814 выполнения преобразования на основании определения.FIG. 18A shows a flowchart of an exemplary method for video processing. Method 1820 includes determining step 1822, for converting between the current video block, which is a chrominance block, and the encoded video representation, cross-component linear model (CCLM) prediction mode parameters based on chroma samples that are selected based on the W available top neighbor samples. , W is an integer. Method 1810 further includes the step 1814 of performing a conversion based on the determination.

Фиг.18B показывает блок-схему примерного способа для обработки видео. Способ 1820 включает в себя этап 1822 определения, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, параметров режима предсказания межкомпонентной линейной модели (CCLM) на основании выборок цветности, которые выбираются на основании H доступных левых соседних выборок текущего блока видео. Способ 1820 дополнительно включает в себя этап 1824 выполнения преобразования на основании определения.FIG. 18B shows a flow diagram of an exemplary method for video processing. Method 1820 includes determining step 1822 for converting between the current video block, which is a chroma block, and the encoded video representation, cross-component linear model (CCLM) prediction mode parameters based on chroma samples that are selected based on H available left neighbor samples. current video block. Method 1820 further includes the step 1824 of performing a conversion based on the determination.

Фиг.19А показывает блок-схему алгоритма примерного способа для обработки видео. Способ 1910 включает в себя этап 1912 определения, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, параметров межкомпонентной линейной модели (CCLM) на основании двух или четырех выборок цветности и/или соответствующих выборок яркости. Способ 1910 дополнительно включает в себя этап 1914 выполнения преобразования на основании определения.FIG. 19A shows a flowchart of an exemplary method for video processing. Method 1910 includes a step 1912 of determining, to transform between the current video block, which is a chrominance block, and the encoded video representation, cross-component linear model (CCLM) parameters based on two or four chroma samples and/or corresponding luma samples. Method 1910 further includes the step 1914 of performing a conversion based on the determination.

Фиг.19B показывает блок-схему алгоритма примерного способа для обработки видео. Способ 1920 включает в себя этап 1922 выбора, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, выборок цветности на основании правила позиции, выборки цветности, используемые для получения параметров межкомпонентной линейной модели (CCLM). Способ 1920 дополнительно включает в себя этап 1924 выполнения преобразования на основании определения. В этом примере правило позиции указывает выбрать выборки цветности, которые расположены в пределах верхней строки и/или левого столбца текущего блока видео.FIG. 19B shows a flowchart of an exemplary method for video processing. Method 1920 includes a selection step 1922 for converting between the current video block, which is a chroma block, and a coded representation of the video, chrominance samples based on a position rule, the chrominance samples used to obtain the cross-component linear model (CCLM) parameters. Method 1920 further includes the step 1924 of performing a conversion based on the determination. In this example, the position rule specifies to select chroma samples that are located within the top row and/or left column of the current video block.

Фиг.20А показывает блок-схему алгоритма примерного способа для обработки видео. Способ 2010 включает в себя этап 2012 определения, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, позиций, на которых выборки яркости подвержены понижающей дискретизации, в котором выборки яркости после понижающей дискретизации используются для определения параметров межкомпонентной линейной модели (CCLM) на основании выборок цветности и выборок яркости, подверженных понижающей дискретизации, в котором выборки яркости, подверженные понижающей дискретизации, находятся на позициях, соответствующих позициям выборок цветности, которые используются для получения CCLM параметров. Способ 2010 дополнительно включает в себя этап 2014 выполнения преобразования на основании определения.FIG. 20A shows a flowchart of an exemplary method for video processing. Method 2010 includes determining step 2012, for converting between a current video block, which is a chroma block, and a coded representation of the video, positions at which luminance samples are downsampled, wherein the luminance samples after downsampling are used to determine intercomponent linear parameters model (CCLM) based on the chrominance 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 obtain the CCLM parameters. The method 2010 further includes the step 2014 of performing a conversion based on the determination.

Фиг.20B показывает блок-схему последовательности операций примерного способа для обработки видео. Способ 2020 включает в себя этап 2022 определения, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, способа для получения параметров межкомпонентной линейной модели (CCLM) с использованием выборок цветности и выборок яркости, на основании состояния кодирования, ассоциированного с текущим блоком видео. Способ 2020 дополнительно включает в себя этап 2024 выполнения преобразования на основании определения.FIG. 20B shows a flowchart of an exemplary method for video processing. Method 2020 includes determining step 2022, for converting between a current video block, which is a chroma block, and an encoded representation of the video, a method for deriving cross-component linear model (CCLM) parameters using chroma samples and luma samples, based on the encoding state. associated with the current video block. Method 2020 further includes the step 2024 of performing a conversion based on the determination.

Фиг.20C показывает блок-схему последовательности операций примерного способа для обработки видео. Способ 2030 включает в себя этап 2032 определения, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, следует ли получать максимальные значения и/или минимальные значения компоненты яркости и компоненты цветности, которые используются для получения параметров межкомпонентной линейной модели (CCLM) на основании доступности левого соседнего блока и верхнего соседнего блока текущего блока видео. Способ 2030 дополнительно включает в себя этап 2034 выполнения преобразования на основании определения.FIG. 20C shows a flowchart of an exemplary method for video processing. Method 2030 includes determining step 2032, for converting between the current video block, which is a chrominance block, and the encoded video representation, whether to obtain maximum values and/or minimum values of the luma component and the chrominance component that are used to obtain the intercomponent linear parameters. model (CCLM) based on the accessibility of the left neighbor block and the top neighbor block of the current video block. Method 2030 further includes the step 2034 of performing a conversion based on the determination.

4 Пример реализаций представленной технологии4 Example implementations of the presented technology

Фиг.21А является блок-схемой устройства 3000. Устройство 3000 может использоваться для реализации одного или нескольких способов, описанных в настоящем документе. Устройство 3000 может быть воплощено в смартфоне, планшете, компьютере, приемнике интернета вещах (IоT) и т.д. Устройство 3000 может включать в себя один или несколько процессоров 3002, одну или несколько памяти 3004 и схему 3006 обработки видео. Процессор (процессоры) 3002 может быть выполнен с возможностью реализации одного или нескольких способов (включающий в себя, но не ограничиваясь, способы, как показано на фиг.18-29C), описанных в настоящем документе. Память (памяти) 3004 могут использоваться для хранения данных и кода, используемых для реализации способов и технологий, описанных в настоящем документе. Схема 3006 обработки видео может использоваться для реализации, в форме аппаратных схем, некоторых описанных в настоящем документе технологий.FIG. 21A is a block diagram of an apparatus 3000. The apparatus 3000 may be used to implement one or more of the methods described herein. The device 3000 may be embodied in a smartphone, tablet, computer, Internet of Things (IoT) receiver, etc. 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, 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 hardware circuit form, some of the technologies described herein.

Фиг.21B является еще одним примером блок-схемы системы обработки видео, в которой могут быть реализованы раскрытые технологии. Фиг.30B является блок-схемой, показывающей примерную систему 3100 обработки видео, в которой могут быть реализованы различные способы, раскрытые в данном документе. Различные реализации могут включать в себя некоторые или все компоненты системы 3100. Система 3100 может включать в себя вход 3102 для приема контента видео. Контент видео может быть принят в необработанном или несжатом формате, например, 8 или 10 битных значений многокомпонентных пикселей, или может быть принят в сжатом или кодированном формате. Вход 3102 может представлять сетевой интерфейс, интерфейс периферической шины или интерфейс хранения. Примеры сетевого интерфейса включают в себя проводные интерфейсы, такие как Ethernet, пассивная оптическая сеть (PON) и т.д., и беспроводные интерфейсы, такие как Wi-Fi или сотовые интерфейсы.FIG. 21B is another example of a block diagram of a video processing system in which the disclosed technologies may be implemented. FIG. 30B is a block diagram showing an exemplary video processing system 3100 in which various methods disclosed herein may be implemented. Various implementations may include some or all of the components of the system 3100. The 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 multi-component 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 methods described herein. The encoding component 3104 may reduce the average bit rate of the video 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 called video compression technologies 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 video representation bitstream (or encoded) received at input 3102 may be used by component 3108 to generate pixel values or display video , which is sent to display interface 3110. The process of generating video for user viewing from a bitstream representation is sometimes called video decompression. Additionally, while some video processing operations are called "encoding" operations or tools, it is apparent that the encoding tools or operations are used in the encoder and the corresponding decoding tools or operations, which are the inverse of the encoding that would be performed by the decoder.

Примеры интерфейса периферийной шины или интерфейса дисплея могут включать в себя универсальную последовательную шину (USB) или мультимедийный интерфейс высокой четкости (HDMI) или DisplayPort и так далее. Примеры интерфейсов хранения включают в себя SATA (последовательные передовые технологии вложения), интерфейс PCI, IDE и тому подобное. Технологии, описанные в настоящем документе, могут быть воплощены в различных электронных устройствах, таких как мобильные телефоны, ноутбуки, смартфоны или другие устройства, которые выполнены с возможностью выполнять цифровую обработку данных и/или видео.Examples of a peripheral bus interface or 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, IDE, and the like. The technologies described herein may be implemented in various electronic devices, such as mobile phones, laptops, smartphones, or other devices that are capable of performing digital data and/or video processing.

В некоторых вариантах осуществления способы кодирования видео могут быть реализованы с использованием устройства, которое реализовано на аппаратной платформе, как описано со ссылкой на фиг.21А или фиг.21В.In some embodiments, video encoding 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 the embodiments may be described using the following format based on the clauses.

Первый набор пунктов описывает конкретные признаки и аспекты описанных технологий, перечисленных в предшествующем разделе, включающий в себя, например, примеры 16 и 17.The first set of paragraphs 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 conversion between a current video block, which is a chrominance block, and an encoded video representation, intercomponent linear model prediction mode parameters based on chrominance samples that are selected based on W available top neighboring samples, W being integer; and performing a conversion based on the definition.

2. Способ по 1, в котором режим предсказания CCLM использует линейный режим для получения значений предсказания компонента цветности из другого компонента.2. The method of 1, wherein the CCLM prediction mode uses the linear mode to obtain prediction values of a chrominance component from another component.

3. Способ по 1, в котором W устанавливается на i) ширину текущего блока видео, ii) L раз ширины текущего блока видео, L быть целым числом, iii) сумму высоты текущего блока видео и ширины текущего блока видео или iv) сумму ширины текущего блока видео и количества доступных верхних правых соседних выборок.3. Method according to 1, in which 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 of the width of the current video block and the number of available top-right adjacent samples.

4. Способ по 1, в котором W зависит от доступности, по меньшей мере, одного из верхнего соседнего блока или левого соседнего блока текущего блока видео.4. The method of 1, wherein W depends on the availability of at least one of the upper adjacent block or the left adjacent block of the current video block.

5. Способ по 1, в котором W зависит от режима кодирования текущего блока видео.5. Method according to 1, in which W depends on the encoding mode of the current video block.

6. Способ по 3, в котором L имеет значение в зависимости от доступности верхнего правого блока или верхней левой выборки, которая расположена рядом с текущим блоком видео.6. Method according to 3, in which L is valued depending on the availability of the top right block or the top left sample that is located next to the current video block.

7. Способ по 1, в котором выборки цветности выбираются на основании первого значения (F) смещения позиции и значения (S) шага, которые зависят от W.7. The method of 1, wherein the chroma 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 7, in which the top left sample has a 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. Способ по 7, в котором F = W/P или F = W/P + offset, P является целым числом.9. Method according to 7, in which F = W/P or F = W/P + offset, P is an integer.

10. Способ по 9, в котором F = W >> (2 + numIs4T), в котором numIs4T равен 1 в случае наличия четырех соседних выборок, выбранных в пределах верхней соседней строки и, в противном случае, numIs4T равен 0, в котором символ>> означает арифметический сдвиг вправо.10. Method according to 9, in which F = W >> (2 + numIs4T), in which numIs4T is equal to 1 in case of four adjacent samples selected within the top adjacent row and, otherwise, numIs4T is equal to 0, in which the symbol >> means arithmetic right shift.

11. Способ по 6, в котором S = W Q, Q является целым числом.11. Method according to 6, in which S = W Q, Q is an integer.

12. Способ по 6, в котором S не менее 1.12. Method according to 6, in which S is not less than 1.

13. Способ по 11 или 12, в котором S = Mах (1, W >> (1 + numIs4T)), в котором numIs4T равно 1 в случае наличия четырех соседних выборок, выбранных в пределах верхней соседней строки и, иначе numIs4T равно 0, в котором символ>> означает арифметический сдвиг вправо.13. Method according to 11 or 12, in which S = Max (1, W >> (1 + numIs4T)), in which numIs4T is equal to 1 in the case of four adjacent samples selected within the upper adjacent row and, otherwise, numIs4T is equal to 0 , in which the symbol >> means an arithmetic shift to the right.

14. Способ по 10 или 13, в котором numIs4T равен 1 в случае, когда доступны верхние соседние выборки, доступны левые соседние выборки и текущий блок видео кодируется нормальным CCLM, который отличается от первого CCLM, использующий только левые соседние выборки, и отличается от второго CCLM, используя только верхние соседние выборки.14. The method of 10 or 13, wherein numIs4T is equal to 1 in the case where top adjacent samples are available, left adjacent samples are available, and the current video block is encoded by a normal CCLM, which is different from the first CCLM using only left adjacent samples, and different from the second CCLM using only the top neighboring samples.

15. Способ по 7, в котором F = S/R, R является целым числом.15. Method according to 7, in which F = S/R, R is an integer.

16. Способ по 7, в котором S = F/Z, Z является целым числом.16. Method according to 7, in which S = F/Z, Z is an integer.

17. Способ по любому из 8-16, в котором, по меньшей мере, один из Kмах, F, S или offset зависит от режима предсказания текущего блока видео, который является одним из первым CCLM, использующий только левые соседние выборки, вторым CCLM с использованием только верхних соседних выборок, нормальным CCLM с использованием как левых соседних, так и верхних соседних выборок, либо другими режимами, отличными от первого CCLM, второй CCLM и нормального CCLM.17. The method as in any one of 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 the first CCLM using only left adjacent samples, the second CCLM with using only the top neighbor samples, normal CCLM using both left neighbor and top neighbor samples, or other modes other than first CCLM, second CCLM, and normal CCLM.

18. Способ по любому из 8-16, в котором, по меньшей мере, один из Kмах, F, S или offset зависит от ширины и/или высоты текущего блока видео.18. The method as in any one of 8-16, wherein at least one of Kmax, F, S or offset depends on the width and/or height of the current video block.

19. Способ по любому из 8-16, в котором, по меньшей мере, один из Kмах, F, S или offset зависит от доступности соседних выборок.19. The method as in any one of 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 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 transforming between a current video block, which is a chrominance block, and an encoded video representation, cross-component linear model (CCLM) prediction mode parameters based on chroma samples that are selected based on H availability of left neighbors samples of the current video block; and performing a conversion based on the definition.

22. Способ по 21, в котором режим предсказания CCLM использует линейный режим для получения значений предсказания компонента цветности из другого компонента.22. The method of 21, wherein the CCLM prediction mode uses the 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 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 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 height of the current video block and the number of available bottom-left adjacent samples.

24. Способ по 21, в котором H зависит от доступности, по меньшей мере, одного из верхнего соседнего блока или левого соседнего блока текущего блока видео.24. The method of 21, wherein H depends on the availability of at least one of the upper adjacent block or the left adjacent block of the current video block.

25. Способ по 21, в котором Н зависит от режима кодирования текущего блока видео.25. Method according to 21, in which H depends on the encoding mode of the current video block.

26. Способ по 23, в котором L имеет значение в зависимости от доступности нижнего левого блока или нижней левой выборки, которая расположена рядом с текущим блоком видео.26. The method of 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 video block.

27. Способ по 21, в котором выборки цветности выбираются на основании первого значения (F) смещения позиции и значения (S) шага, которые зависят от H.27. The method of 21, wherein the chroma 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 27, wherein the top left sample has a coordinate (x0, y0) and the selected chroma 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 according to 27, in which F = H/P or F = H/P + offset, P is an integer.

30. Способ по 29, в котором F = H >> (2 + numIs4L), в котором numIs4L равно 1 в случае наличия четырех выбранных соседних выборок в левом соседнем столбце; в противном случае равен 0.30. The method of 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 equal to 0.

31. Способ по 27, в котором S = H/Q, Q является целым числом.31. Method according to 27, in which S = H/Q, Q is an integer.

32. Способ по 27, в котором S равен не менее 1.32. Method according to 27, in which S is equal to at least 1.

33. Способ по 31 или 32, в котором s = max (1, Н >> (1 + numIs4L)), в котором numIs4L равен 1 в случае наличия четырех выбранных соседних выборок в левом соседнем столбце и в противном случае, numIs4L равно 0.33. The method of 31 or 32, in which s = max (1, H >> (1 + numIs4L)), in which numIs4L is 1 if there are four selected adjacent samples in the left adjacent column and otherwise, numIs4L is 0 .

34. Способ по 30 или 33, в котором numIs4L равен 1 в случае, если доступны верхние соседние выборки, доступны левые соседние выборки и текущий блок видео кодируется нормальным CCLM, который отличается от первого CCLM, использующий только левые соседние выборки, и отличается от второго CCLM, использующий только верхние соседние выборки.34. The method of 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 by a normal CCLM that is different from the first CCLM using only left neighbor samples and different from the second CCLM using only top neighboring samples.

35. Способ по 27, в котором F = S R, R является целым числом.35. Method according to 27, in which F = S R, R is an integer.

36. Способ по 27, в котором S = F/Z, Z является целым числом.36. Method according to 27, in which S = F/Z, Z is an integer.

37. Способ по любому из 28-36, в котором, по меньшей мере, один из Kмах, F, S или offset зависит от режима предсказания текущего блока видео, который является одним из первых CCLM, использующий только левые соседние выборки, вторым CCLM с использованием только верхних соседних выборок, третьим CCLM с использованием, как левых соседних, так и верхних соседних выборок, либо другие режимы, отличные от первого CCLM, второй CCLM и третьего CCLM.37. The method as in any one of 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 the first CCLM using only left adjacent samples, the second CCLM with using only the top neighbor samples, a third CCLM using both the left neighbor and top neighbor samples, or other modes other than the first CCLM, second CCLM, and third CCLM.

38. Способ по любому из 28-36, в котором, по меньшей мере, один из Kмах, F, S или offset зависит от ширины и/или высоты текущего блока видео.38. The method as in any one of 28-36, wherein at least one of Kmax, F, S or offset depends 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 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 as in any one of 28-36, wherein at least one of Kmax, F, S, or offset depends on the availability of neighboring samples.

41. Способ по 21, в котором H устанавливается на сумму высоты текущего блока видео и ширины текущего блока видео в случае доступности верхнего правого соседнего блока текущего блока видео.41. The method of 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 21, wherein in the case where left neighboring samples are not available, the selected chroma samples have height H regardless of whether the current video block has a first CCLM using only the top neighboring samples or not.

43. Способ по 1, в котором W устанавливается на сумму высоты текущего блока видео и ширины текущего блока видео в случае наличия нижнего левого соседнего блока текущего блока видео.43. Method according to 1, in which 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 1, wherein in the case of unavailability of the top neighboring samples, the selected chroma samples are numbered W, regardless of whether the current video block has a first CCLM using only the left neighboring samples or not.

45. Способ по любому из 1-44, в котором выполнение преобразования включает в себя генерирование кодированного представления из текущего блока.45. The method as in any one of 1-44, wherein performing the transformation includes generating an encoded representation from the current block.

46. Способ по любому из 1-44, в котором выполнение преобразования включает в себя генерирование текущего блока из закодированного представления.46. The method as in any one of 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 a read-only instruction memory, wherein the instructions, when executed by the processor, cause the processor to execute the method of any one of 1-46.

48. Компьютерный программный продукт, хранящийся на постоянном машиночитаемом носителе, компьютерный программный продукт включает в себя программный код для выполнения способа по любому из 1-46.48. A computer program product stored on a non-transitory computer readable medium, the computer program product includes program code for performing the method of any one of 1-46.

Десятый набор пунктов описывает конкретные признаки и аспекты раскрытых технологий, перечисленных в предшествующем разделе, включающий в себя, например, примеры 18 и 19.The tenth set of paragraphs 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, to transform between a current video block, which is a chrominance block, and an encoded video representation, cross-component linear model (CCLM) parameters based on two or four chroma samples and/or corresponding luminance samples; and performing a conversion based on the definition.

2. Способ по 1, в котором соответствующие выборки яркости получают посредством понижающей дискретизации.2. The method of 1, wherein the corresponding luminance samples are obtained by downsampling.

3. Способ по 1, в котором MaxY/MaxC и MinY/MinC получены в первую очередь, и используются для получения параметров.3. Method according to 1, in which MaxY/MaxC and MinY/MinC are obtained first and are used to obtain parameters.

4. Способ по 3, в котором параметры получают на основании 2-точечного подхода.4. Method according to 3, in which the parameters are obtained based on the 2-point approach.

5. Способ по 3, в котором две выборки цветности выбраны для получения MaxY/MaxC и MinY/MinC, и в котором MinY устанавливается на меньшее значение выборки яркости, MinС является его соответствующим значением выборки цветности, MaxY установлено на наибольшее значение выборки яркости и MaxC является его соответствующим значением выборки цветности.5. The method of 3, wherein two chroma samples are selected to obtain MaxY/MaxC and MinY/MinC, and wherein MinY is set to the smaller luminance 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. Method according to 3, in which four chroma samples are selected to obtain MaxY/MaxC and MinY/MinC and, in which the four chroma samples and corresponding luma samples are divided into two arrays G0 and G1, each array including two chroma samples and their corresponding brightness samples.

7. Способ по 6, в котором два массива G0 и G1 включают в себя один из следующих наборов:7. Method according to 6, in which 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 включают в себя четыре выборки цветности соответственно и дополнительно включают в себя соответствующие выборки яркости, соответственно.where 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 7, wherein when comparing two luminance sample values G0[0] and G0[1], the chrominance sample and its corresponding luminance sample in G0[0] are replaced with the same in G0[1].

9. Способ по 8, в котором выборка цветности и ее соответствующая выборка яркости G0 [0] заменяются на те же G0 [1] в случае, когда значение выборки яркости G0 [0] больше, чем значение выборки яркости G0 [1].9. The method of 8, wherein the chrominance sample and its corresponding luma sample G0[0] are replaced by the same G0[1] in the case where the luma sample value G0[0] is greater than the luma sample value G0[1].

10. Способ по 7, в котором при сравнении двух значений выборки яркости G1 [0] и G1 [1], выборка цветности и ее соответствующая выборка яркости в G1 [0] заменяются на те же G1 [1].10. The method of 7, wherein when comparing two luma sample values G1[0] and G1[1], the chrominance sample and its corresponding luma 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 10, wherein the chrominance sample and its corresponding luma sample G1[0] are replaced by the same G1[1] in the case where the luma sample value G1[0] is greater than the luma sample value G1[1].

12. Способ по 6, в котором при сравнении двух значений выборки яркости G0 [0] и G1 [1], выборки цветности и их соответствующие выборки яркости G0 [0] или G0 [1] заменяются на те же G1 [0] или G1 [1].12. Method according to 6, in which, when comparing two luminance sample values G0[0] and G1[1], the chrominance samples and their corresponding luminance samples G0[0] or G0[1] are replaced by the same G1[0] or G1 [1].

13. Способ по 12, в котором выборки цветности и их соответствующие выборки яркости G0 [0] заменяются на те же G1 [0] в случае, когда значение выборки яркости G0 [0] больше, чем значение выборки яркости G1 [1].13. The method of 12, wherein the chrominance samples and their corresponding luminance samples G0[0] are replaced by the same G1[0] 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 7, in which when comparing two luminance sample values G0[1] and G1[0], the chrominance sample and its corresponding luminance sample G0[1] are replaced by the same G1[0].

15. Способ по 14, в котором выборка цветности и ее соответствующая выборка яркости G0 [1] заменяются на ту же G1 [0] в случае, когда значение выборки яркости G0 [1] больше, чем значение выборки яркости G1 [0].15. The method as in 14, wherein the chrominance sample and its corresponding luma sample G0[1] are replaced by the same G1[0] in the case where the luma sample value G0[1] is greater than the luma sample value G1[0].

16. Способ по 7, в котором при сравнении двух значений выборки яркости G0 [0], G0 [1], G1 [0] и G1 [1], последующие операции замены проводятся в порядке: i) операция замены выборки цветности и ее соответствующей выборки яркости G0 [0] на те же из G0 [1], ii) операция замены выборки цветности и ее соответствующей выборки яркости G1 [0] на те же G1 [1], iii) операция замены выборок цветности и их соответствующих выборок яркости G0 [0] на те же G1 [0] и iv) операция замены выборки цветности и ее соответствующей выборки яркости G0 [1] на те же G1 [0].16. The method of 7, wherein when comparing two luminance sample values G0[0], G0[1], G1[0] and G1[1], subsequent replacement operations are carried out in the order: i) replacement operation of the chrominance sample and its corresponding luminance samples G0 [0] with the same ones from G0 [1], ii) the operation of replacing the chroma samples and their corresponding luminance samples G1 [0] with the same G1 [1], iii) the operation of replacing the chrominance samples and their corresponding luminance samples G0 [0] with the same G1[0] and iv) the operation of replacing the 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 7 or 16, wherein maxY is calculated from the sum of the luminance sample values of G1[0] and G1[1], and maxC is calculated from the sum of the chrominance sample values of G1[0] and G1[1].

18. Способ по 7 или 16, в котором maxY рассчитывается на основании среднего значений выборки яркости G1 [0] и G1 [1], и мaxC рассчитывается на основании среднего значений выборки цветности G1 [0] и G1 [1].18. The method of 7 or 16, wherein maxY is calculated based on the average of the luma sample values of G1[0] and G1[1], and maxC is calculated based on the average of the chroma sample values of G1[0] and G1[1].

19. Способ по 7 или 16, в котором minY рассчитывается как сумма значений выборки яркости G0 [0] и G0 [1] и minC рассчитывается на основании суммы значений выборки цветности G0 [0] и G0 [1].19. The method of 7 or 16, wherein minY is calculated as the sum of the luma sample values G0[0] and G0[1], and minC is calculated based on the sum of the chrominance sample values G0[0] and G0[1].

20. Способ по 7 или 16, в котором minY рассчитывается как среднее значений выборки яркости G0 [0] и G0 [1] и minC рассчитывается на основании среднего значений выборки цветности G0 [0] и G0 [1].20. The method of 7 or 16, wherein minY is calculated as the average of the luminance sample values G0[0] and G0[1] and minC is calculated based on the average of the chroma 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] на те же из G1 [0] и iii) операция замены выборки цветности и ее соответствующей выборки яркости G0 [1] на ту же из G1 [0] или iv) операцию замены выборки цветности и соответствующие выборки яркости G0 [0] на те же в G0 [1].21. The method of 17 or 20, which performs maxY and maxC calculations 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], in which the replacement operations include: i) the operation of replacing the chroma sample and its corresponding luma sample G1[0] with those in G1[1], ii) the operation of replacing the chroma samples and their corresponding luma samples G0[0 ] with the same ones from G1[0] and iii) the operation of replacing the chrominance sample and its corresponding luma sample G0[1] with the same one from G1[0] or iv) the operation of replacing the chroma sample and the corresponding luma samples G0[0] with those same in G0 [1].

22. Способ по 1, в котором в случае наличия только двух выборок цветности, на двух доступных выборках цветности выполняется заполнение для предоставления четырех выборок цветности и также выполняется на двух соответствующих доступных выборках яркости G0 [0] на те же в G0 [1].22. The method of 1, wherein in the case of 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 G0[0] to the same in G0[1].

23. Способ по 22, в котором четыре выборки цветности включают в себя две доступные выборки цветности и две выборки цветности заполнения, которые скопированы из двух доступных выборок цветности и четыре соответствующие выборки яркости включают в себя две доступные выборки яркости и две выборки яркости заполнения, которые скопированы из двух доступных выборок яркости.23. The method of 22, wherein the four chrominance samples include two available chrominance samples and two fill chroma samples that are copied from the two available chroma samples, and the four corresponding luma samples include two available luma samples and two fill luma samples that copied from two available brightness samples.

24. Способ по 7, в котором S0, S1, S2, S3 являются выборками цветности и соответствующие выборки яркости выбираются в заданном порядке в пределах верхней строки и/или левого столбца текущего блока видео.24. The method of 7, wherein S0, S1, S2, S3 are chrominance samples and corresponding luma samples are selected in a predetermined order within the top row and/or left column of the current video block.

25. Способ обработки видео, содержащий: выбор, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, выборок цветности на основании правила позиции, выборки цветности используются для получения параметров межкомпонентной линейной модели (CCLM); и выполнение преобразования на основании определения, в котором правило позиции указывает выбрать выборки цветности, которые расположены в пределах верхней строки и/или левой столбца текущего блока видео.25. A video processing method, comprising: selecting, to transform between a current video block, which is a chrominance block, and a coded representation of the video, chrominance samples based on a position rule, the chroma samples being used to obtain the parameters of a cross-component linear model (CCLM); and performing the conversion based on the determination in which the position rule specifies to select chroma 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 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 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 the top adjacent samples to obtain parameters of the intercomponent linear model, and from the second CCLM mode, which uses only the left neighbors samples to obtain the parameters of the intercomponent linear model.

28. Способ по 26, в котором правило позиции указывает выбрать выборки цветности, которые расположены в пределах верхней строки и верхней правой строки текущего блока видео.28. The method of 26, wherein the position rule specifies to select chroma 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 28, wherein the top row and the top right row have W samples and H samples, respectively, W and H are the width and height of the current video block, respectively.

30. Способ по 28, в котором выбираются только доступные выборки в пределах верхней строки и верхней правой строки.30. The method of 28, wherein only the available samples within the top row and the top right row are selected.

31. Способ по 28, в котором правило позиции применяется для текущего блока видео, кодированного первым CCLM режимом, который использует только верхние соседние выборки для получения параметров межкомпонентной линейной модели.31. The method of 28, wherein the position rule is applied to the current block of video encoded with a first CCLM mode that uses only the top adjacent samples to obtain intercomponent linear model parameters.

32. Способ по 28, в котором правило позиции применяется к случаю доступности верхней строки, и левый столбец недоступен, и что текущий блок видео закодирован нормальным CCLM режимом, который отличается от первого CCLM режима, который использует только верхние соседние выборки для получения параметров CCLM, и от второго CCLM режима, который использует только в левые соседние выборки для получения параметров межкомпонентной линейной модели.32. The method of 28, wherein the position rule is applied to the case that the top row is available and the left column is not available, and that the current block of video is encoded in a normal CCLM mode, which is different from the first CCLM mode, which uses only the top adjacent samples to obtain CCLM parameters, 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 as in any one of 26 to 32, wherein numSampT is set based on a rule indicating that numSampT is set equal to nTbW in the case where upper adjacent samples are available, and numSampT is set equal to 0 in the case where upper neighboring samples are not available and, in where numSampT represents the number of chroma samples within the top adjacent row used to obtain the intercomponent linear model parameters, and nTbW represents the width of the current video block.

34. Способ по 33, в котором правило применяется для текущего блок видео, закодированного нормальным CCLM режимом, который отличается от первого CCLM режима, который использует только верхние соседние выборки для получения CCLM, и от второго CCLM режима, который использует только левые соседние выборки для получения параметров межкомпонентной линейной модели.34. The method of 33, wherein the rule is applied to the current block of video encoded in a normal CCLM mode, which differs from the first CCLM mode, which uses only the top adjacent samples to obtain the CCLM, and from the second CCLM mode, which uses only the left adjacent samples to obtain the CCLM. obtaining 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 as in any one of 26-32, wherein numSampT is set based on a rule indicating that numSampT is set equal to nTbW + Min( numTopRight, nTbH ) in case the top adjacent samples are available and the current video block is encoded by the first CCLM mode that uses only the top adjacent samples to obtain the interlinear model parameters and, otherwise, numSampT is set to 0 and, in which numSampT represents the number of chroma samples within the top adjacent row used to obtain the intercomponent linear model parameters, nTbW and nTbH represent the width and height of the current block, respectively, and numTopRight represents the number of available top-right neighboring samples.

36. Способ по 25 в котором правило позиции указывает выбрать выборки цветности, которые расположены в левом столбце и в нижнем левом столбце текущего блока видео.36. Method according to 25 in which the position rule specifies to select chroma samples that are located in the left column and in the lower left column of the current video block.

37. Способ по 36, и, в котором левый столбец и нижний левый столбец имеют H выборок и W выборок, соответственно, W и H являются шириной и высотой текущего блока видео соответственно.37. The method of 36, and wherein the left column and the 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. Method as in 36, which selects only the available samples in the left column and lower left column.

39. Способ по 36, в котором правило позиции применяется для текущего блока видео, кодированного вторым CCLM режимом, который использует только левые соседние выборки для получения параметров межкомпонентной линейной модели.39. The method of 36, wherein the position rule is applied to the current block of video encoded with a second CCLM mode that uses only left adjacent samples to obtain intercomponent linear model parameters.

40. Способ по 36, в котором правило позиции применяется к случаю, когда верхняя строка недоступна и левый столбец доступен и, что текущий блок видео кодируется нормальным CCLM режимом, который отличается от первого CCLM режима, который использует только верхние соседние выборки для получения CCLM, и от второго CCLM режима, который использует только левые соседние выборки для получения параметров межкомпонентной линейной модели.40. The method of 36, wherein the position rule is applied to the case that the top row is not available and the left column is available and that the current video block is encoded in a normal CCLM mode, which is different from the first CCLM mode, which uses only the top adjacent samples to obtain the CCLM, and from the second CCLM mode, which uses only left neighbor samples to obtain the parameters of the intercomponent linear model.

41. Способ по любому из 36-40, в котором numSampL устанавливается на основании правила, указывающего, что numSampL устанавливается равным nTbH в случае, если левые соседние выборки доступны и, в противном случае, numSampL устанавливается равным 0 и, в котором numSampL представляет количество выборок цветности в левом соседнем столбце, используемом для получения параметров межкомпонентной линейной модели, и nTbH представляет собой высоту текущего блока видео.41. The method as in any one of 36-40, wherein numSampL is set based on a rule indicating that numSampL is set equal to nTbH in case left adjacent samples are available and, otherwise, numSampL is set equal to 0 and, wherein numSampL represents the number chrominance samples in the left adjacent column used to obtain the intercomponent linear model parameters, and nTbH represents the height of the current video block.

42. Способ по 41, в котором правило применяется для текущего блока видео, кодированного нормальным CCLM режимом, который отличается от первого CCLM режима, который использует только верхние соседние выборки для получения параметров межкомпонентной линейной модели, и от второго CCLM режима, который использует только левые соседние выборки для получения параметров межкомпонентной линейной модели.42. The method of 41, wherein the rule is applied to a current block of video encoded in a normal CCLM mode, which differs from the first CCLM mode, which uses only the top adjacent samples to obtain intercomponent linear model parameters, and from the second CCLM mode, which uses only the left ones adjacent samples to obtain the parameters of the between-component linear model.

43. Способ по любому из 36-40, в котором numSampL установлен на основании правила, указывающее, что numSampL устанавливается равным nTbH + Min( numLeftBelow, nTbW ) в случае, когда левые соседние выборки доступны и текущий блок видео кодируется с помощью второго CCLM режима, который использует только левые соседние выборки для получения параметров межкомпонентной линейной модели и, что в противном случае, numSampL устанавливается равным 0, и в которой numSampL представляет собой количество выборок цветности в левом соседнем столбце, используемого для получения параметров межкомпонентной линейной модели, nTbW и nTbH представляют собой ширину и высоту текущего блока, соответственно, и numLeftBelow представляет собой количество доступных нижних левых соседних выборок.43. The method as in any one of 36-40, wherein numSampL is set based on a rule indicating that numSampL is set equal to nTbH + Min( numLeftBelow, nTbW ) in the case where left adjacent samples are available and the current video block is encoded using the second CCLM mode , which uses only the left adjacent samples to obtain the between-linear model parameters and that otherwise, numSampL is set to 0, and in which numSampL represents the number of chroma samples in the left adjacent column used to obtain the between-linear model parameters, nTbW and nTbH represent the width and height of the current block, respectively, and numLeftBelow represents the number of available lower left neighboring samples.

44. Способ по любого из 25-43, в котором выборки яркости, соответствующие выбранным выборкам цветности, используются для получения параметров межкомпонентной линейной модели.44. The method of any one of 25-43, wherein luma samples corresponding to the selected chrominance samples are used to obtain parameters of the intercomponent linear model.

45. Способ по 44, в котором выборки яркости получают посредством понижающей дискретизации.45. The method of 44, wherein the luminance samples are obtained by downsampling.

46. Способ по любому из 1-45, в котором выполнение преобразования включает в себя генерирование кодированного представления из текущего блока.46. The method as in any one of 1-45, wherein performing the transformation includes generating an encoded representation from the current block.

47. Способ по любому из 1-45, в котором выполнение преобразования включает в себя генерирование текущего блока из закодированного представления.47. The method as in any one of 1-45, wherein performing the transformation includes generating a current block from the encoded representation.

48. Способ по любому из 1-45, в котором CCLM использует совместно размещенные выборки компонента яркости с понижающей дискретизацией для получения значений предсказания выборок компонента цветности текущего блока на основании линейной модели, включающей в себя межкомпонентную линейную модель.48. The method as in any one of 1-45, wherein CCLM uses co-located downsampled luminance component samples to obtain prediction values of the chrominance component samples of the current block based on a linear model including an intercomponent linear model.

49. Устройство в системе видео, включающее в себя процессор и постоянную память с инструкциями, в котором инструкции при выполнении процессором побуждают процессор выполнять способ по любому из 1-48.49. An apparatus in a video system including a processor and a read-only instruction memory, wherein the instructions, when executed by the processor, cause the processor to execute the method of any one of 1-48.

50. Компьютерный программный продукт, хранящийся на постоянном машиночитаемом носителе, компьютерный программный продукт включает в себя программный код для выполнения способа по любому из 1-48.50. A computer program product stored on a non-transitory computer readable medium, the computer program product includes program code for performing the method of any one of 1-48.

Третий набор пунктов описывает конкретные признаки и аспекты раскрытых технологий, перечисленных в предшествующем разделе, включающий в себя, например, примеры 20, 21, 22.The third set of paragraphs 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 conversion between a current video block, which is a chrominance block, and a coded representation of the video, positions at which luminance samples are downsampled, wherein the luminance samples after downsampling are used to determine inter-component parameters a linear model (CCLM) based on the chrominance 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 obtain the CCLM parameters; and performing a conversion based on the definition.

2. Способ по 1, в котором выборки яркости не подвержены понижающей дискретизации на позиции, которая находится вне текущего блока видео и не используется для определения CCLM параметров.2. Method as in 1, in which the luminance samples are not downsampled to a position that is outside the current video block and is not used to determine the CCLM parameters.

3. Способ обработки видео, содержащий: определение, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, способа для получения параметров межкомпонентной линейной модели (CCLM) с использованием выборок цветности и выборок яркости на основании состояния кодирования, ассоциированного с текущим блоком видео; и выполнение преобразования на основании определения.3. A video processing method, comprising: defining, for transforming between a current video block, which is a chrominance block, and an encoded video representation, a method for deriving cross-component linear model (CCLM) parameters using chroma samples and luma samples based on the encoding state, associated with the current video block; and performing a conversion based on the definition.

4. Способ по 3, в котором состояние кодирования соответствует цветовому формату текущего блока видео.4. Method according to 3, in which the encoding state corresponds to the color format of the current video block.

5. Способ по 4, в котором цветовой формат представляет собой 4:2:0 или 4:4:4.5. Method according to 4, in which the color format is 4:2:0 or 4:4:4.

6. Способ по 3, в котором условие кодирования соответствует способу цветового представления текущего блока видео.6. Method according to 3, in which the encoding condition corresponds to the color representation method of the current video block.

7. Способ по 6, в котором способ цветового представления является RGB или YCbCr.7. The method of 6, wherein the color representation method is RGB or YCbCr.

8. Способ по 3, в котором выборки цветности подвержены понижающей дискретизации и определение зависит от местоположений выборок цветности после понижающей дискретизации.8. The method of 3, wherein the chrominance samples are downsampled and the determination depends on the locations of the chrominance samples after downsampling.

9. Способ по 3, в котором способ получения параметров содержит определение параметров CCLM на основании выборок цветности и выборок яркости, которые выбраны из группы соседних выборок цветности на основании правила позиции.9. The method of 3, wherein the parameter deriving method comprises determining CCLM parameters based on chroma samples and luma samples that are selected from a group of adjacent chroma samples based on a position rule.

10. Способ по 3, в котором способ получения параметров содержит определение параметров CCLM на основании максимальных и минимальных значений выборок цветности и выборок яркости.10. The method of 3, wherein the method of obtaining the parameters comprises determining the CCLM parameters based on the maximum and minimum values of the chroma samples and the luma samples.

11. Способ по 3, в котором способ получения параметров содержит определение параметров CCLM, которые полностью определяются двумя выборками цветности и соответствующими двумя выборками яркости.11. The method of 3, wherein the parameter deriving method comprises determining CCLM parameters that are entirely determined by two chroma samples and corresponding two luma samples.

12. Способ по 3, в котором способ получения параметров содержит определение параметров CCLM с использованием таблицы параметров, записи которой получают в соответствии с двумя значениями выборки цветности и двумя значениями выборки яркости.12. The method of 3, wherein the parameter obtaining method comprises determining CCLM parameters using a parameter table whose entries are obtained in accordance with two chrominance sample values and two luma sample values.

13. Способ для обработки видео, содержащий: определение, для преобразования между текущим блоком видео, который представляет собой блок цветности, и кодированным представлением видео, следует ли получать максимальные значения и/или минимальные значения компонента яркости и компонента цветности, используемые для получения параметров межкомпонентной линейной модели (CCLM), на основании доступности левого соседнего блока и верхнего соседнего блока текущего блока видео; и выполнение преобразования на основании определения.13. A method for processing video, comprising: determining, for conversion between a current video block, which is a chrominance block, and an encoded video representation, whether to obtain the maximum values and/or minimum values of the luma component and the chrominance component used to obtain the intercomponent parameters linear model (CCLM), based on the availability of the left neighbor block and the top neighbor block of the current video block; and performing a conversion based on the definition.

14. Способ по 13, в котором максимальные значения и/или минимальные значения не получают в том случае, если левый соседний блок и верхний соседний блок недоступны.14. The method of 13, wherein the maximum values and/or minimum values are not obtained if the left adjacent block and the upper adjacent block are not available.

15. Способ по 13, в котором определение определений на основании количества доступных соседних выборок текущего блока видео и, в котором доступные соседние выборки используются для получения параметров межкомпонентной линейной модели.15. The method of 13, wherein determining definitions based on the number of available neighboring samples of the current block of video, and wherein the available neighboring samples are used to obtain parameters of the intercomponent linear model.

16. Способ по 15, в котором максимальные значения и/или минимальные значения не получают в случае numSampL == 0 и numSampT == 0, numSampL и numSampT указывают количество доступных соседних выборок из левого соседнего блока и количество доступных соседних выборок из верхнего блока, соответственно, и, в котором доступные соседние выборки из левого соседнего блока и доступные соседние выборки из верхнего соседнего блока используются для получения параметров межкомпонентной линейной модели.16. The method of 15, wherein maximum values and/or minimum values are not obtained in the case of numSampL == 0 and numSampT == 0, numSampL and numSampT indicate the number of available adjacent samples from the left adjacent block and the number of available adjacent samples from the upper block, respectively, and wherein the available neighboring samples from the left neighboring block and the available neighboring samples from the upper neighboring block are used to obtain the parameters of the between-component linear model.

17. Способ по 15, в котором максимальные значения и/или минимальные значения не получают в случае numSampL + numSampT == 0, numSampL и numSampT указывают количество доступных соседних выборок из левого соседнего блока и количество доступных соседних выборок из верхнего соседнего блока, соответственно, и в котором доступные соседние выборки из левого соседнего блока и доступные соседние выборки из верхнего соседнего блока используются для получения параметров межкомпонентной линейной модели.17. The method of 15, wherein the maximum values and/or minimum values are not obtained in the case of numSampL + numSampT == 0, numSampL and numSampT indicate the number of available adjacent samples from the left adjacent block and the number of available adjacent samples from the upper adjacent block, respectively, and wherein the available neighboring samples from the left neighboring block and the available neighboring samples from the upper neighboring block are used to obtain parameters of the between-component linear model.

18. Способ по любому из 1-17, в котором выполнение преобразования включает в себя генерирование кодированного представления из текущего блока.18. The method as in any one of 1-17, wherein performing the transformation includes generating an encoded representation from the current block.

19. Способ по любому из 1-17, в котором выполнение преобразования включает в себя генерирование текущего блока из закодированного представления.19. The method as in any one of 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 a read-only instruction memory, wherein the instructions, when executed by the processor, cause the processor to execute the method of any one of 1-19.

21. Компьютерный программный продукт, хранящийся на постоянном машиночитаемом носителе, компьютерный программный продукт включает в себя программный код для выполнения способа по любому из 1-19.21. A computer program product stored on a non-transitory computer readable medium, the computer program product includes program code for performing the method of any one of 1-19.

Четвертый набор пунктов описывает конкретные признаки и аспекты раскрытых технологий, перечисленных в предшествующем разделе.The fourth set of paragraphs describes specific features and aspects of the disclosed technologies listed in the previous section.

1. Способ обработки видео, содержащий: определение для текущего блока, который содержит блок цветности и основан на двух или более выборках цветности, набора значений параметров линейной модели, в котором две или более выборки цветности выбираются из группы соседних выборок цветности для блока цветности; и выполнение восстановления на основании линейной модели текущего блока видео. 1. A video processing method, comprising: determining, for a current block that contains a chroma block and is based on two or more chroma samples, a set of linear model parameter values in which two or more chroma samples are selected from a group of adjacent chroma samples for the chroma block; and performing reconstruction based on the linear model of the current video block.

2. Способ по 1, в котором верхняя левая выборка блока цветности равна (х,у), в котором ширина и высота блока цветности равна W и Н, соответственно, и в котором группа соседний выборок цветности содержит:2. Method according to 1, in which the upper left sample of the chrominance block is equal to (x,y), in which the width and height of the chrominance block are equal to W and H, respectively, and in which the group of adjacent chroma samples contains:

Выборка А координатами (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).

3. Способ по 2, в котором верхний левый соседний блок и вышеупомянутый соседний блок текущего видеоблока доступны и, в котором два или более выборки цветности содержат выборки A, D, J и M.3. The method of 2, wherein the upper left adjacent block and the above-mentioned adjacent block of the current video block are available, and wherein two or more chrominance samples contain A, D, J and M samples.

4. Способ по 2, в котором верхний левый соседний блок текущего видеоблока доступен, и в котором два или более выборки цветности содержат выборки A и D.4. The method of 2, wherein the upper left adjacent block of the current video block is available, and wherein two or more chrominance samples contain A and D samples.

5. Способ по 2, в котором верхний соседний блок текущего видеоблока доступен, и в котором две или более выборки цветности содержат выборки J и M.5. Method according to 2, in which the upper adjacent block of the current video block is available, and in which two or more chrominance samples contain J and M samples.

6. Способ обработки видео, содержащий: генерирование для текущего видеоблока, который содержит блок цветности, множество групп, содержащих выборки цветности и яркости соседнего блока текущего видеоблока; определение, на основании множества групп, максимальных и минимальных значений, набора значений для параметров линейной модели; определение на основании максимальных и минимальных значений набора значений параметров линейной модели; и восстановление на основании линейной модели текущего видеоблока.6. A method for processing video, comprising: generating for the current video block, which contains a chrominance block, a plurality of groups containing chrominance and brightness samples of an adjacent block of the current video block; determining, based on a variety of groups, maximum and minimum values, a set of values for the parameters of the linear model; determining, based on the maximum and minimum values, a set of linear model parameter values; and restoration based on the linear model of the current video block.

7. Способ по 6, в котором генерирование множества групп основано на доступности соседнего блока текущего видеоблока.7. The method of 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. Method according to 6, in which a plurality of groups constitute S0 and S1, in which the maximum brightness value is calculated as maxL = f1(maxL S0 , maxL S1 ,..., maxL Sm , where f1 is the first function and maxL Si is the maximum brightness value group Si of a set of groups, in which the maximum chromaticity value is calculated as maxC = f2(maxC S0 , maxC S1 ,…, maxC Sm , where f2 represents the second function, maxC Si is the maximum chromaticity value of group Si, in which the minimum luminance value is calculated as minL = f3(minL S0 , minL S1 ,…, minL Sm ), in which f3 represents the third function, and minL Si is the minimum luminance value of the Si group, where the minimum chrominance value is calculated as minC = f4(minC S0 , minC S1 , ..., minC Sm ), in which f4 represents the fourth function, and minC Si is the maximum chromaticity value from the group Si, and, in which the parameters of the linear model Contains α and β, which are calculated as α = ( maxC − minC )/( maxL − minL ) and β = minC − α×minL.

9. Способ по 8, в котором верхняя левая выборка блока цветности представляет собой (x, y), в котором ширина и высота блока цветности представляют собой W и H, соответственно, и в котором группа соседних выборок цветности содержит.9. The method of 8, wherein the upper left sample of the chrominance block is (x, y), wherein the width and height of the chrominance block are W and H, respectively, and wherein the group of adjacent chrominance samples contains.

Выборку А координатами (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 of 9, in which the upper left adjacent block and the upper block of the current video block are available, in which the maximum luminance and chrominance values and the minimum luminance and chrominance values for group S0 (maxL S0 , maxC S0 , minL S0 and minL S0 , respectively) are based on 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 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 9, wherein a higher adjacent block of the current video block is available, and wherein maxL, maxC, minL and minC are based on the J and M samples.

13. Способ по 6, в котором параметры линейной модели содержат α и β, которые рассчитываются как13. Method according to 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 chroma sample.

14. Способ по 6, в котором генерирование множества групп основано на высоте или ширине текущего видеоблока.14. The method of 6, wherein generating the plurality of groups is based on the height or width of the current video block.

15. Способ обработки видео, содержащий:15. A method for processing video, containing:

Генерирование выборок яркости и цветности с понижающей дискретизацией путем понижающей дискретизации выборок яркости и цветности соседнего блока текущего видеоблока с высотой (H) и шириной (W);Generating downsampled luminance and chrominance samples by downsampling luminance and chrominance samples of an adjacent block of the current video block with height (H) and width (W);

Определение, основанное на выборках яркости и цветности с понижающей дискретизацией, набора значений для параметров линейной модели для текущего видеоблока; иDetermination, based on downsampled luma and chrominance samples, of a set of values for the linear model parameters for the current video block; And

Восстановление, основанное на линейной модели, текущего видеоблока.Linear model-based reconstruction of the current video block.

16. Способ по 15, в котором понижающая дискретизация основана на высоте или ширине.16. The method of 15, wherein the downsampling is based on height or width.

17. Способ по 16, в котором W <H.17. Method according to 16, in which W <H.

18. Способ по 16, где W> H.18. Method according to 16, where W> H.

19. Способ по 15, в котором верхняя левая выборка текущего видеоблока представляет собой R [0, 0], в котором выборки цветности с понижающей дискретизацией содержат выборки R [-1, k × H/W] и где K - неотрицательное целое число от 0 до W-1. 19. The method of 15, wherein the top left sample of the current video block is R[0, 0], wherein the downsampled chroma samples comprise R[-1, k × H/W] samples, and where K is a non-negative integer of 0 to W-1.

20. Способ по 15, в котором верхняя левая выборка текущего видеоблока представляет собой R [0, 0], в котором выборки цветности с понижающей дискретизацией содержат выборки R [K × H/W, -1], и K - неотрицательное целое число от 0 до H-1.20. The method of 15, wherein the top left sample of the current video block is R[0, 0], wherein the downsampled chroma samples comprise R[K × H/W, -1] samples, and K is a non-negative integer of 0 to H-1.

21. Способ по 15, в котором процесс уточнения выполняется на выборках яркости и цветности с понижающей дискретизацией перед использованием определения набора значений для параметров линейной модели для текущего видеоблока.21. The method of 15, wherein the refinement process is performed on the downsampled luma 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 21, wherein the refinement process comprises a filtering process.

23. Способ по 21, в котором процесс уточнения содержит нелинейный процесс.23. The method of 21, wherein the refinement process comprises a nonlinear process.

24. Способ по 15, в котором параметры линейной модели являются α и β, в котором α = (C1−C0)/(L1−L0) и β = C0 − αL0 , где C0 и C1 являются выборками цветности и в котором L0 и L1 являются выборками яркости.24. The method according to 15, in which the parameters of the linear model are α and β, in which α = (C1−C0)/(L1−L0) and β = C0 − αL0, where C0 and C1 are chroma samples, and in which L0 and L1 are luminance 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 24, wherein C0 and L0 are based on S downsampled luma and chrominance samples, denoted {Lx1, Lx2, ..., LxS} and {Cx1, Cx2, ..., CxS}, respectively, where C1 and L1 are based on T downsampled luma 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), иin which, 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 являются функциями.In which f0, f1, f2 and f3 are functions.

26. Способ по 25, в котором f0 и f1 являются первой функцией.26. Method according to 25, in which f0 and f1 are the first function.

27. Способ по 25, в котором f2 и f3 являются второй функцией.27. Method according to 25, in which f2 and f3 are the second function.

28. Способ по 25, в котором f0, f1, f2 и f3 представляют собой третью функцию.28. The method according to 25, in which f0, f1, f2 and f3 represent the third function.

29. Способ по 28, в котором третья функция является функцией усреднения.29. Method according to 28, in which the third function is an averaging function.

30. Способ по 25, в котором S = T.30. Method according to 25, in which S = T.

31. Способ по 25, в котором {lx1, lx2, ..., lxs} являются минимальными выборками группы выборок яркости.31. Method according to 25, in which {lx1, lx2, ..., lxs} are the minimum samples of the group of luminance samples.

32. Способ по 25, в котором {lx1, lx2, ..., lxs} являются наибольшими выборками группы выборок яркости.32. Method according to 25, in which {lx1, lx2, ..., lxs} are the largest samples of the group of luminance samples.

33. Способ по 31 или 32, в котором группа выборок яркости содержит все соседние выборки, используемые в VTM-3.0, для получения параметров линейной модели.33. The method of 31 or 32, wherein the group of luminance samples contains all adjacent samples used in VTM-3.0 to obtain the parameters of the linear model.

34. Способ по 31 или 32, в котором группа выборок яркости содержит подмножество соседних выборок, используемых в VTM-3.0, для получения параметров линейной модели и, в котором подмножество исключает все соседние выборки.34. The method of 31 or 32, wherein the group of luminance samples contains a subset of neighboring samples used in VTM-3.0 to obtain parameters of the linear model, and wherein the subset excludes all neighboring samples.

35. Способ по 1, в котором выбираются две или более выборки цветности из одного или нескольких левых столбцов, верхней строки, верхней правой строки или нижнего левого столбца относительно текущего видеоблока.35. The method of 1, wherein two or more chroma 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 1, wherein 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 1, wherein two or more chroma block samples are selected based on the encoding mode of the current video block.

38. Способ по 37, в котором режим кодирования текущего видеоблока является первым линейным режимом, который отличается от второго линейного режима, который использует только для левых соседних выборок, и третий линейный режим, который использует только верхние соседние выборки, в которых координаты верхней левой выборки текущего видеоблока представляют собой (х, у) и, где ширина и высота текущего видеоблока являются W и H, соответственно.38. The method of 37, wherein the encoding mode of the current video block is a first linear mode that is different from a second linear mode that uses only left adjacent samples, and a third linear mode that uses only top adjacent samples in which the coordinates of the top left sample 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 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- 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 38, wherein the two or more chroma samples comprise 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 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 38, in which two or more chroma samples contain 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 38, in which two or more chroma samples contain 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 38, in which two or more chroma samples contain 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 38, wherein the two or more chrominance samples comprise 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 38, wherein the two or more chrominance samples comprise samples with coordinates (x, y-1), (x + (2w)/4, y-1), (x + 3 * 2 W)/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 38, wherein the two or more chroma samples contain 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 38, wherein the two or more chrominance samples contain 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 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 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 as in any one of 39-50, wherein exactly two of the four samples are selected to determine a set of values for the parameters of the linear model.

52. Способ по любому 1-51.52. Method according to any 1-51.

53. Устройство для кодирования видео содержащее процессор, выполненный с возможностью выполнять способ по любому 1-51.53. A video encoding device comprising a processor configured to perform the method of any 1-51.

54. Устройство в системе видео, содержащее процессор и постоянную память с инструкциями на ней, в котором инструкции при выполнении процессором побуждают процессор выполнить способ по любому из 1-51.54. An apparatus in a video system comprising a processor and a 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 1-51.

55. Компьютерный программный продукт, хранящийся на постоянном машиночитаемом носителе, компьютерный программный продукт включает в себя программный код для выполнения способа по любому из 1-51.55. A computer program product stored on a non-transitory computer readable medium, the computer program product includes program code for performing the method of any one of 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 embodied in various systems, digital electronic circuitry, or computer software, firmware, or hardware incorporating 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 in the form of one or more computer program products, i.e. one or more modules of computer program instructions, encoded on a tangible and non-transitory computer-readable medium, for executing or for controlling the 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 transmission signal, or a combination of one or more of these. The term "data processing unit" or "data processing apparatus" covers all devices, apparatus and machines for processing data, including by way of example a programmable processor, a computer, or a plurality of processors or computers. In addition to the hardware, the device may include code that configures the execution conditions of said computer program, such as code that configures 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) can be written in any form of a programming language, including compiled or interpreted languages, and can be deployed in any form, including as a stand-alone 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 on a file system. A program may be stored in part 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 multiple coordinated files (for example, files that store one or more several 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 input data and generate output data. 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 Application 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, the processor receives instructions and data from read-only memory or random-access memory, or both. The basic elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Typically, the computer will also include, or operatively coupled 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 should not have such devices. Computer-readable media suitable for storing computer program instructions and data include all forms of read-only memory, memory and information devices, including, by way of example, semiconductor memory devices such as EPROMs, EEPROMs, and flash memory devices. The processor and memory can be supplemented or included in the system with special-purpose logic circuitry.

Спецификация вместе с чертежами должна рассматриваться только в качестве примера, в котором примерный означает пример. Используемый в настоящем документе предлог «или» охватывает значение «и/или», если только контекст явно не указывает иное.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” covers the meaning “and/or” unless the context clearly indicates otherwise.

Настоящий патентный документ содержит множество отличительных признаков, но они не должны рассматриваться как ограничения объема любого изобретения или того, что может быть заявлено, но скорее как описания признаков, которые могут быть специфическими для конкретных вариантов осуществления конкретных изобретений. Конкретные признаки, которые описаны в этом патентном документе в контексте отдельных вариантов осуществления, также могут быть реализованы в комбинации в одном варианте осуществления. И наоборот, различные признаки, которые описаны в контексте одного варианта осуществления, также могут быть реализованы в нескольких вариантах осуществления отдельно или в любой подходящей подкомбинации. Более того, хотя описанные ранее признаки могут рассматриваться, как действующие в определенных комбинациях и, даже первоначально заявленные как таковые, один или несколько признаков из заявленной комбинации могут в некоторых случаях, могут быть исключены из комбинации, и заявляемая комбинация может быть использована в качестве подкомбинации или изменения подкомбинации.This patent document contains many distinctive features, but these are not to be construed as limitations on 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 individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of one embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although previously described features may be considered to operate in certain combinations and even initially claimed as such, one or more features from a claimed combination may, in some cases, be excluded from the combination and the claimed combination may be used as a subcombination or subcombination changes.

Аналогично, в то время как на чертежах операции изображены в определенном порядке, не следует рассматривать данный порядок как требуемый для выполнения таковых операций, как указанный порядок или что все иллюстрированные операции должны быть выполнены для получения требуемых результатов. Более того, разделение различных компонентов системы в вариантах осуществления, описанных в этом патентном документе, не следует понимать, как требуемое разделение во всех вариантах осуществления.Likewise, while the drawings depict operations in a particular order, that order should not be construed as being required to perform such operations, as the order indicated, or that all of the illustrated operations must be performed to obtain the desired results. Moreover, the separation of various system components in the embodiments described in this patent document should not be understood as requiring separation in all embodiments.

Описаны только несколько реализаций и примеров, и могут быть осуществлены другие реализации, улучшения и вариации на основании описания и чертежей, которые приведены в настоящем патентном документе.Only a few implementations and examples are described, and other implementations, improvements and variations may be made based on the description and drawings that are given herein.

Claims (59)

1. Способ обработки видео данных, содержащий этапы, на которых:1. A method for processing video data, containing the steps of: определяют, для преобразования между текущим видеоблоком видео, представляющим собой блок цветности и битовым потоком видео, параметры межкомпонентной линейной модели (CCLM) по меньшей мере на основании выбранных выборок цветности, выбранных из соседних выборок цветности для текущего видеоблока, причем положения выбранных выборок цветности получены из первого значения сдвига позиции (F) и значения шага значения (S), где F и S получены по меньшей мере на основе доступности соседних выборок цветности текущего видеоблока и величины текущего видеоблока;determine, for conversion between the current video video block, which is a chroma block and the video bitstream, intercomponent linear model (CCLM) parameters based on at least selected chroma samples selected from adjacent chroma samples for the current video block, wherein the positions of the selected chroma samples are obtained from a first position shift value (F) and a value step value (S), where F and S are obtained based at least on the availability of adjacent chrominance samples of the current video block and the size of the current video block; применяют CCLM к выборкам яркости, расположенным в блоке яркости, соответствующем текущему видеоблоку, для получения значений предсказания текущего видеоблока; и applying CCLM to the luminance samples located in the luminance block corresponding to the current video block to obtain prediction values of the current video block; And выполняют преобразование на основании значений предсказания, причемperform a transformation based on the prediction values, wherein выбранные выборки цветности являются поднабором соседних выборок цветности, основанным на размере текущего видеоблока, а CCLM является режимом внутрикадрового предсказания, selected chrominance samples are a subset of neighboring chroma samples based on the size of the current video block, and CCLM is an intra-frame prediction mode, соседние выборки цветности содержат левые соседние выборки цветности, верхние соседние выборки цветности, верхние правые соседние выборки цветности или нижние левые соседние выборки цветности относительно текущего видеоблока,adjacent chroma samples contain left adjacent chroma samples, upper adjacent chroma samples, upper right adjacent chroma samples, or lower left adjacent chroma samples relative to the current video block, в ответ на то, что соседние выборки цветности текущего видеоблока являются недоступными, значения предсказания текущего видеоблока устанавливаются как значения по умолчанию, in response to neighboring chrominance samples of the current video block being unavailable, the prediction values of the current video block are set to default values, значение по умолчанию равно 1<<(BitDepth-1), где BitDepth является битовой глубиной выборок цветности,the default value is 1<<(BitDepth-1), where BitDepth is the bit depth of the chroma samples, F=Floor(M/2i), где М - количество соседних выборок цветности, используемых для получения выбранных выборок цветности в горизонтальном направлении, или F=Floor(N/2i), где N - количество соседних выборок цветности, используемых для получения выбранных выборок цветности в вертикальном направлении, i равно 2 или 3, а операция Floor используется для получения целой части числа,F=Floor(M/2 i ), where M is the number of adjacent chroma samples used to obtain the selected chroma samples in the horizontal direction, or F=Floor(N/2 i ), where N is the number of adjacent chroma samples used to obtain selected chrominance samples in the vertical direction, i is 2 or 3, and the Floor operation is used to obtain the integer part of the number, S=Max(1, Floor(M/2j)) или S=Max(1, Floor(N/2j)), где j равно 1 или 2, а операция Max используется для получения максимального из множества чисел,S=Max(1, Floor(M/2 j )) or S=Max(1, Floor(N/2 j )), where j is 1 or 2, and the Max operation is used to obtain the maximum of a set of numbers, режим CCLM текущего видеоблока является одним из: первого режима CCLM, в котором параметры CCLM получают на основе левых соседних выборок цветности и верхних соседних выборок цветности, второго режима CCLM, в котором параметры CCLM получают на основе левых соседних выборок цветности и нижних левых соседних выборок, или третьего режима CCLM, в котором параметры CCLM получают на основе верхних соседних выборок цветности и верхних правых соседних выборок цветности, иthe CCLM mode of the current video block is one of: a first CCLM mode in which the CCLM parameters are obtained based on the left neighboring chroma samples and the upper neighboring chroma samples, a second CCLM mode in which the CCLM parameters are obtained based on the left neighboring chroma samples and the lower left neighboring samples, or a third CCLM mode in which the CCLM parameters are obtained based on the top neighboring chroma samples and the top right neighboring chroma samples, and в ответ на то, что режим CCLM является первым режимом CCLM и верхние соседние выборки цветности доступны, значение M равно значению W.in response to the CCLM mode being the first CCLM mode and the upper adjacent chroma samples being available, the value of M is equal to the value of W. 2. Способ по п. 1, в котором оба значения, M и N, меньше или равны W + H и определяются, на основе режима CCLM текущего видеоблока, где W и H являются, соответственно, шириной и высотой текущего видеоблока.2. The method of claim 1, wherein both values, M and N, are less than or equal to W + H and are determined based on the CCLM mode of the current video block, where W and H are, respectively, the width and height of the current video block. 3. Способ по п. 1, в котором, в ответ на выбор двух выборок цветности в горизонтальном направлении, позициями двух выбранных выборок цветности в горизонтальном направлении являются Floor(M/4) и Floor(M/4) + Floor(M/2).3. The method of claim 1, wherein, in response to selecting two chroma samples in the horizontal direction, the positions of the two selected chroma samples in the horizontal direction are Floor(M/4) and Floor(M/4) + Floor(M/2 ). 4. Способ по п. 1, в котором в ответ на выбор двух выборок цветности в вертикальном направлении, позициями двух выбранных выборок цветности в вертикальном направлении являются Floor(N/4) и Floor(N/4) + Floor(N/2).4. The method of claim 1, wherein in response to selecting two chroma samples in the vertical direction, the positions of the two selected chroma samples in the vertical direction are Floor(N/4) and Floor(N/4) + Floor(N/2) . 5. Способ по п. 1, в котором в ответ на выбор четырех выборок цветности в горизонтальном направлении, позициями четырех выбранных выборок цветности в горизонтальном направлении являются Floor(M/8), Floor(M/8) + Floor(M/4), Floor(M/8) + 2*Floor(M/4) и Floor(M/8) + 3*Floor(M/4).5. The method of claim 1, wherein in response to selecting four chroma samples in the horizontal direction, the positions of the four selected chroma samples in the horizontal direction are Floor(M/8), Floor(M/8) + Floor(M/4) , Floor(M/8) + 2*Floor(M/4) and Floor(M/8) + 3*Floor(M/4). 6. Способ по п. 1, в котором, в ответ на выбор четырех выборок цветности в вертикальном направлении, позициями четырех выбранных выборок цветности в вертикальном направлении являются Floor(N/8), Floor(N/8) + Floor(N/4), Floor(N/8) + 2*Floor(N/4) и Floor(N/8) + 3*Floor(N/4).6. The method of claim 1, wherein, in response to selecting four chroma samples in the vertical direction, the positions of the four selected chroma samples in the vertical direction are Floor(N/8), Floor(N/8) + Floor(N/4 ), Floor(N/8) + 2*Floor(N/4) and Floor(N/8) + 3*Floor(N/4). 7. Способ по п. 1, в котором в ответ на то, что режим CCLM является третьим режимом, доступны верхние соседние выборки цветности и не доступны верхние правые соседние выборки цветности, а значение M равно значению W.7. The method of claim 1, wherein, in response to the CCLM mode being the third mode, the top adjacent chroma samples are available and the top right adjacent chroma samples are not available, and the value of M is equal to the value of W. 8. Способ по п. 1, в котором в ответ на то, что режим CCLM является первым режимом и левые соседние выборки цветности доступны, значение N равно значению H.8. The method of claim 1, wherein, in response to the CCLM mode being the first mode and the left adjacent chroma samples being available, the value of N is equal to the value of H. 9. Способ по п. 1, в котором, в ответ на то, что режим CCLM является вторым режимом, доступны левые соседние выборки цветности и не доступны нижние левые выборки цветности, а значение N равно значению H.9. The method of claim 1, wherein, in response to the CCLM mode being the second mode, left adjacent chroma samples are available and lower left chroma samples are not available, and the value of N is equal to the value of H. 10. Способ по п. 1, в котором этап преобразования содержит подэтап, на котором кодируют текущий видеоблок в битовый поток.10. The method of claim 1, wherein the conversion step comprises a substep of encoding the current video block into a bitstream. 11. Способ по п. 1, в котором этап преобразования содержит подэтап, на котором декодируют текущий видеоблок из битового потока.11. The method of claim 1, wherein the conversion step comprises a substep of decoding the current video block from the bit stream. 12. Устройство обработки видеоданных, содержащее процессор и постоянную память с записанными в ней командами, вызывающими, при исполнении процессором, выполнение указанным процессором:12. A video data processing device containing a processor and permanent memory with commands written in it, causing, when executed by the processor, execution by the specified processor: определения, для преобразования между текущим видеоблоком видео, представляющим собой блок цветности и битовым потоком видео, параметры межкомпонентной линейной модели (CCLM) по меньшей мере на основании выбранных выборок цветности, выбранных из соседних выборок цветности для текущего видеоблока, причем положения выбранных выборок цветности получены из первого значения сдвига позиции (F) и значения шага значения (S), где F и S получены по меньшей мере на основе доступности соседних выборок цветности текущего видеоблока и величины текущего видеоблока;determining, for conversion between a current video video block representing a chrominance block and a video bitstream, intercomponent linear model (CCLM) parameters based on at least selected chroma samples selected from adjacent chroma samples for the current video block, wherein the positions of the selected chroma samples are derived from a first position shift value (F) and a value step value (S), where F and S are obtained based at least on the availability of adjacent chrominance samples of the current video block and the size of the current video block; применения CCLM к выборкам яркости, расположенным в блоке яркости соответствующем текущему видеоблоку для получения значений предсказания текущего видеоблока; и applying CCLM to the luminance samples located in the luminance block corresponding to the current video block to obtain prediction values of the current video block; And выполнения преобразования на основании значений предсказания, причемperforming a transformation based on the prediction values, wherein выбранные выборки цветности являются поднабором соседних выборок цветности, основанным на размере текущего видеоблока, а CCLM является режимом внутрикадрового предсказания, selected chrominance samples are a subset of neighboring chroma samples based on the size of the current video block, and CCLM is an intra-frame prediction mode, соседние выборки цветности содержат левые соседние выборки цветности, верхние соседние выборки цветности, верхние правые соседние выборки цветности или нижние левые соседние выборки цветности относительно текущего видеоблока,adjacent chroma samples contain left adjacent chroma samples, upper adjacent chroma samples, upper right adjacent chroma samples, or lower left adjacent chroma samples relative to the current video block, в ответ на то, что соседние выборки цветности текущего видеоблока являются недоступными, значения предсказания текущего видеоблока устанавливаются как значения по умолчанию, in response to neighboring chrominance samples of the current video block being unavailable, the prediction values of the current video block are set to default values, значение по умолчанию равно 1<<(BitDepth-1), где BitDepth является битовой глубиной выборок цветности,the default value is 1<<(BitDepth-1), where BitDepth is the bit depth of the chroma samples, F=Floor(M/2i), где М - количество соседних выборок цветности, используемых для получения выбранных выборок цветности в горизонтальном направлении, или F=Floor(N/2i), где N - количество соседних выборок цветности, используемых для получения выбранных выборок цветности в вертикальном направлении, i равно 2 или 3, а операция Floor используется для получения целой части числа,F=Floor(M/2 i ), where M is the number of adjacent chroma samples used to obtain the selected chroma samples in the horizontal direction, or F=Floor(N/2 i ), where N is the number of adjacent chroma samples used to obtain selected chrominance samples in the vertical direction, i is 2 or 3, and the Floor operation is used to obtain the integer part of the number, S=Max(1, Floor(M/2j)) или S=Max(1, Floor(N/2j)), где j равно 1 или 2, а операция Max используется для получения максимального из множества чисел,S=Max(1, Floor(M/2 j )) or S=Max(1, Floor(N/2 j )), where j is 1 or 2, and the Max operation is used to obtain the maximum of a set of numbers, режим CCLM текущего видеоблока является одним из: первого режима CCLM, в котором параметры CCLM получают, на основе левых соседних выборок цветности и верхних соседних выборок цветности, второго режима CCLM, в котором параметры CCLM получают на основе левых соседних выборок цветности и нижних левых соседних выборок, или третьего режима CCLM, в котором параметры CCLM получают на основе верхних соседних выборок цветности и верхних правых соседних выборок цветности, иthe CCLM mode of the current video block is one of: a first CCLM mode in which the CCLM parameters are obtained based on the left neighboring chroma samples and the upper neighboring chroma samples, a second CCLM mode in which the CCLM parameters are obtained based on the left neighboring chroma samples and the lower left neighboring samples , or a third CCLM mode in which the CCLM parameters are obtained based on the top adjacent chroma samples and the top right adjacent chrominance samples, and в ответ на то, что режим CCLM является первым режимом CCLM и верхние соседние выборки цветности доступны, значение M равно значению W.in response to the CCLM mode being the first CCLM mode and the upper adjacent chroma samples being available, the value of M is equal to the value of W. 13. Машиночитаемый носитель информации, хранящий команды, вызывающие выполнение процессором:13. A computer-readable storage medium that stores instructions that cause the processor to execute: определения, для преобразования между текущим видеоблоком видео, представляющим собой блок цветности и битовым потоком видео, параметры межкомпонентной линейной модели (CCLM) по меньшей мере на основании выбранных выборок цветности, выбранных из соседних выборок цветности для текущего видеоблока, причем положения выбранных выборок цветности получены из первого значения сдвига позиции (F) и значения шага значения (S), где F и S получены по меньшей мере на основе доступности соседних выборок цветности текущего видеоблока и величины текущего видеоблока;determining, for conversion between a current video video block representing a chrominance block and a video bitstream, intercomponent linear model (CCLM) parameters based on at least selected chroma samples selected from adjacent chroma samples for the current video block, wherein the positions of the selected chroma samples are derived from a first position shift value (F) and a value step value (S), where F and S are obtained based at least on the availability of adjacent chrominance samples of the current video block and the size of the current video block; применения CCLM к выборкам яркости, расположенным в блоке яркости, соответствующем текущему видеоблоку, для получения значений предсказания текущего видеоблока; и applying CCLM to the luminance samples located in the luminance block corresponding to the current video block to obtain prediction values of the current video block; And выполнения преобразования на основании значений предсказания, причемperforming a transformation based on the prediction values, wherein выбранные выборки цветности являются поднабором соседних выборок цветности, основанным на размере текущего видеоблока, а CCLM является режимом внутрикадрового предсказания, selected chrominance samples are a subset of neighboring chroma samples based on the size of the current video block, and CCLM is an intra-frame prediction mode, соседние выборки цветности содержат левые соседние выборки цветности, верхние соседние выборки цветности, верхние правые соседние выборки цветности или нижние левые соседние выборки цветности относительно текущего видеоблока,adjacent chroma samples contain left adjacent chroma samples, upper adjacent chroma samples, upper right adjacent chroma samples, or lower left adjacent chroma samples relative to the current video block, в ответ на то, что соседние выборки цветности текущего видеоблока являются недоступными, значения предсказания текущего видеоблока устанавливаются как значения по умолчанию, in response to neighboring chrominance samples of the current video block being unavailable, the prediction values of the current video block are set to default values, значение по умолчанию равно 1<<(BitDepth-1), где BitDepth является битовой глубиной выборок цветности,the default value is 1<<(BitDepth-1), where BitDepth is the bit depth of the chroma samples, F=Floor(M/2i), где М - количество соседних выборок цветности, используемых для получения выбранных выборок цветности в горизонтальном направлении, или F=Floor(N/2i), где N - количество соседних выборок цветности, используемых для получения выбранных выборок цветности в вертикальном направлении, i равно 2 или 3, а операция Floor используется для получения целой части числа,F=Floor(M/2 i ), where M is the number of adjacent chroma samples used to obtain the selected chroma samples in the horizontal direction, or F=Floor(N/2 i ), where N is the number of adjacent chroma samples used to obtain selected chrominance samples in the vertical direction, i is 2 or 3, and the Floor operation is used to obtain the integer part of the number, S=Max(1, Floor(M/2j)) или S=Max(1, Floor(N/2j)), где j равно 1 или 2, а операция Max используется для получения максимального из множества чисел,S=Max(1, Floor(M/2 j )) or S=Max(1, Floor(N/2 j )), where j is 1 or 2, and the Max operation is used to obtain the maximum of a set of numbers, режим CCLM текущего видеоблока является одним из: первого режима CCLM, в котором параметры CCLM получают на основе левых соседних выборок цветности и верхних соседних выборок цветности, второго режима CCLM, в котором параметры CCLM получают на основе левых соседних выборок цветности и нижних левых соседних выборок, или третьего режима CCLM, в котором параметры CCLM получают на основе верхних соседних выборок цветности и верхних правых соседних выборок цветности, иthe CCLM mode of the current video block is one of: a first CCLM mode in which the CCLM parameters are obtained based on the left neighboring chroma samples and the upper neighboring chroma samples, a second CCLM mode in which the CCLM parameters are obtained based on the left neighboring chroma samples and the lower left neighboring samples, or a third CCLM mode in which the CCLM parameters are obtained based on the top neighboring chroma samples and the top right neighboring chroma samples, and в ответ на то, что режим CCLM является первым режимом CCLM и верхние соседние выборки цветности доступны, значение M равно значению W.in response to the CCLM mode being the first CCLM mode and the upper adjacent chroma samples being available, the value of M is equal to the value of W. 14. Способ сохранения битового потока видео, содержащий этапы, на которых:14. A method for storing a video bitstream, comprising the steps of: определяют, для преобразования между текущим видеоблоком видео, представляющим собой блок цветности и битовым потоком видео, параметры межкомпонентной линейной модели (CCLM) по меньшей мере на основании выбранных выборок цветности, выбранных из соседних выборок цветности для текущего видеоблока, причем положения выбранных выборок цветности получены из первого значения сдвига позиции (F) и значения шага значения (S), где F и S получены по меньшей мере на основе доступности соседних выборок цветности текущего видеоблока и величины текущего видеоблока;determine, for conversion between the current video video block, which is a chroma block and the video bitstream, intercomponent linear model (CCLM) parameters based on at least selected chroma samples selected from adjacent chroma samples for the current video block, wherein the positions of the selected chroma samples are obtained from a first position shift value (F) and a value step value (S), where F and S are obtained based at least on the availability of adjacent chrominance samples of the current video block and the size of the current video block; применяют CCLM к выборкам яркости, расположенным в блоке яркости, соответствующем текущему видеоблоку, для получения значений предсказания текущего видеоблока; applying CCLM to the luminance samples located in the luminance block corresponding to the current video block to obtain prediction values of the current video block; генерируют битовый поток из текущего видеоблока, на основе определения, и generating a bitstream from the current video block, based on the definition, and сохраняют битовый поток на энергонезависимом машиночитаемом носителе информации; причемstoring the bit stream on a non-volatile computer-readable storage medium; and выбранные выборки цветности являются поднабором соседних выборок цветности, основанным на размере текущего видеоблока, а CCLM является режимом внутрикадрового предсказания, selected chrominance samples are a subset of neighboring chroma samples based on the size of the current video block, and CCLM is an intra-frame prediction mode, соседние выборки цветности содержат левые соседние выборки цветности, верхние соседние выборки цветности, верхние правые соседние выборки цветности или нижние левые соседние выборки цветности относительно текущего видеоблока,adjacent chroma samples contain left adjacent chroma samples, upper adjacent chroma samples, upper right adjacent chroma samples, or lower left adjacent chroma samples relative to the current video block, в ответ на то, что соседние выборки цветности текущего видеоблока являются недоступными, значения предсказания текущего видеоблока устанавливаются как значения по умолчанию, in response to neighboring chrominance samples of the current video block being unavailable, the prediction values of the current video block are set to default values, значение по умолчанию равно 1<<(BitDepth-1), где BitDepth является битовой глубиной выборок цветности,the default value is 1<<(BitDepth-1), where BitDepth is the bit depth of the chroma samples, F=Floor(M/2i), где М - количество соседних выборок цветности, используемых для получения выбранных выборок цветности в горизонтальном направлении, или F=Floor(N/2i), где N - количество соседних выборок цветности, используемых для получения выбранных выборок цветности в вертикальном направлении, i равно 2 или 3, а операция Floor используется для получения целой части числа,F=Floor(M/2 i ), where M is the number of adjacent chroma samples used to obtain the selected chroma samples in the horizontal direction, or F=Floor(N/2 i ), where N is the number of adjacent chroma samples used to obtain selected chrominance samples in the vertical direction, i is 2 or 3, and the Floor operation is used to obtain the integer part of the number, S=Max(1, Floor(M/2j)) или S=Max(1, Floor(N/2j)), где j равно 1 или 2, а операция Max используется для получения максимального из множества чисел,S=Max(1, Floor(M/2 j )) or S=Max(1, Floor(N/2 j )), where j is 1 or 2, and the Max operation is used to obtain the maximum of a set of numbers, режим CCLM текущего видеоблока является одним из: первого режима CCLM, в котором параметры CCLM получают на основе левых соседних выборок цветности и верхних соседних выборок цветности, второго режима CCLM, в котором параметры CCLM получают на основе левых соседних выборок цветности и нижних левых соседних выборок, или третьего режима CCLM, в котором параметры CCLM получают на основе верхних соседних выборок цветности и верхних правых соседних выборок цветности, иthe CCLM mode of the current video block is one of: a first CCLM mode in which the CCLM parameters are obtained based on the left neighboring chroma samples and the upper neighboring chroma samples, a second CCLM mode in which the CCLM parameters are obtained based on the left neighboring chroma samples and the lower left neighboring samples, or a third CCLM mode in which the CCLM parameters are obtained based on the top neighboring chroma samples and the top right neighboring chroma samples, and в ответ на то, что режим CCLM является первым режимом CCLM и верхние соседние выборки цветности доступны, значение M равно значению W.in response to the CCLM mode being the first CCLM mode and the upper adjacent chroma samples being available, the value of M is equal to the value of W.
RU2021127209A 2019-02-22 2020-02-24 Selection of neighbouring sample for internal prediction RU2810900C2 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CNPCT/CN2019/075874 2019-02-22
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 (2)

Publication Number Publication Date
RU2021127209A RU2021127209A (en) 2023-03-15
RU2810900C2 true RU2810900C2 (en) 2023-12-29

Family

ID=

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9307237B2 (en) * 2012-01-19 2016-04-05 Futurewei Technologies, Inc. Reference pixel reduction for intra LM prediction
RU2603548C2 (en) * 2012-04-26 2016-11-27 Сони Корпорейшн Production of intra prediction mode for chrominance values
US20180115787A1 (en) * 2015-04-12 2018-04-26 Lg Electronics Inc. Method for encoding and decoding video signal, and apparatus therefor
WO2018092870A1 (en) * 2016-11-21 2018-05-24 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Coding device, decoding device, coding method, and decoding method
WO2018116802A1 (en) * 2016-12-22 2018-06-28 シャープ株式会社 Image decoding device, image coding device, and image predicting device
WO2018174457A1 (en) * 2017-03-22 2018-09-27 엘지전자(주) Image processing method and device therefor
WO2018181448A1 (en) * 2017-03-31 2018-10-04 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Image coding device, image decoding device, image coding method, and image decoding method
WO2018236028A1 (en) * 2017-06-21 2018-12-27 엘지전자(주) Intra-prediction mode-based image processing method and apparatus therefor
WO2018236031A1 (en) * 2017-06-21 2018-12-27 엘지전자(주) Intra-prediction mode-based image processing method and apparatus therefor

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9307237B2 (en) * 2012-01-19 2016-04-05 Futurewei Technologies, Inc. Reference pixel reduction for intra LM prediction
RU2603548C2 (en) * 2012-04-26 2016-11-27 Сони Корпорейшн Production of intra prediction mode for chrominance values
US20180115787A1 (en) * 2015-04-12 2018-04-26 Lg Electronics Inc. Method for encoding and decoding video signal, and apparatus therefor
WO2018092870A1 (en) * 2016-11-21 2018-05-24 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Coding device, decoding device, coding method, and decoding method
WO2018116802A1 (en) * 2016-12-22 2018-06-28 シャープ株式会社 Image decoding device, image coding device, and image predicting device
WO2018174457A1 (en) * 2017-03-22 2018-09-27 엘지전자(주) Image processing method and device therefor
WO2018181448A1 (en) * 2017-03-31 2018-10-04 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Image coding device, image decoding device, image coding method, and image decoding method
WO2018236028A1 (en) * 2017-06-21 2018-12-27 엘지전자(주) Intra-prediction mode-based image processing method and apparatus therefor
WO2018236031A1 (en) * 2017-06-21 2018-12-27 엘지전자(주) Intra-prediction mode-based image processing method and apparatus therefor

Similar Documents

Publication Publication Date Title
KR102472756B1 (en) Parameter derivation for intra prediction
AU2020226565B2 (en) Neighbouring sample selection for intra prediction
US11025915B2 (en) Complexity reduction in parameter derivation intra prediction
US11057642B2 (en) Context-based intra prediction
US11902507B2 (en) Parameter derivation for intra prediction
US20210400260A1 (en) Conditions in parameter derivation for intra prediction
WO2020192717A1 (en) Parameter derivation for inter prediction
RU2810900C2 (en) Selection of neighbouring sample for internal prediction
RU2777779C1 (en) Obtaining a parameter for in-frame prediction
RU2806083C2 (en) Context-based internal prediction