Image processing method, processing equipment and storage medium

By determining the most likely mode list based on the sub-block characteristics of the current block during the video encoding and decoding process, the problem of ignoring the block detail characteristics in the prediction process is solved, and the processing effect and accuracy are improved.

CN120186342AActive Publication Date: 2025-06-20SHENZHEN TRANSSION HLDG CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510338031.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-19
Publication Date
2025-06-20
Estimated Expiration
2045-03-19

AI Technical Summary

Technical Problem

During the video encoding and decoding process, the prediction processing stage may ignore the details of the block, resulting in a lower accuracy of the most likely list, which in turn affects the processing effect.

Method used

By determining or obtaining the most likely pattern list based on the sub-block characteristics of the current block, it is ensured that the sub-block characteristics of the block are considered during the processing phase, thereby improving the processing effect.

Benefits of technology

By considering the sub-block characteristics of the block, a more suitable list of most likely patterns can be generated, which improves the accuracy and effectiveness of prediction processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120186342A_ABST
    Figure CN120186342A_ABST
Patent Text Reader

Abstract

The invention provides an image processing method, processing equipment and a storage medium. The image processing method comprises the following steps: determining or obtaining a most probable mode list according to sub-block features of a current block; through the technical scheme of the application, a more suitable most probable mode list can be determined or obtained, and further, in a processing stage (such as prediction processing), the processing effect can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and particularly relates to an image processing method, a processing device, and a storage medium. Background Art

[0002] The existing High Efficiency Video Coding Standard Protocol (H.266 / VVC) proposes a video frame coding technology to improve the coding performance without significantly increasing the computational complexity.

[0003] In the process of conceiving and implementing this application, the inventors found that at least the following problems exist: During the encoding and decoding process, for example, in the prediction processing stage (such as intra-frame prediction or inter-frame prediction), the most likely list method may be used for prediction processing. However, when determining or obtaining the most likely list, the detailed features of the block, such as the sub-block features of the block, will be ignored, resulting in a lower accuracy rate of the most likely list for some blocks, and further leading to a worse processing effect.

[0004] The foregoing description is provided to give general background information and does not necessarily constitute prior art. Summary of the Invention

[0005] In view of the above technical problems, this application provides an image processing method, a processing device, and a storage medium, aiming to consider the sub-block features of the block when determining or obtaining the most likely list, so as to determine or obtain a more appropriate most likely mode list. Further, in the processing stage (such as prediction processing), the processing effect can also be improved.

[0006] This application provides an image processing method, which can be applied to a processing device and includes the steps of:

[0007] S10, determining or obtaining the most likely mode list according to the sub-block features of the current block.

[0008] Optionally, the most likely mode list includes the most likely mode list of the current block and / or the most likely mode list of at least one sub-block.

[0009] Optionally, the sub-block features include at least one of the following:

[0010] The sub-block division rule determined or obtained according to at least one of the division rule, syntax element, and the features of the current block in the code stream;

[0011] At least one of the shape parameter, position parameter, size parameter, content complexity, and pixel type of the sub-block and / or the reference block;

[0012] At least one of the features of the current block, the pixel features of the reference template of the sub-block, the pixel features of the reference block, the similarity between the reference template of the sub-block and the reference block, the number of reference blocks, and the mode of the reference block.

[0013] Optionally, the reference block includes at least one of a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block and a candidate block corresponding to the current block and / or subblock.

[0014] Optionally, the feature of the current block is determined or obtained according to at least one of the following:

[0015] a size parameter of at least one of a current block, a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block, and a candidate block;

[0016] Pixel features of at least one of a reference template, a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block, and a candidate block of the current block;

[0017] Similarity between the reference template of the current block and at least one of neighbor pixels, non-neighbor pixels, co-located block pixels, temporal block pixels, cross-component block pixels, default block pixels, and candidate block pixels;

[0018] the number of at least one of neighbor blocks, non-neighbor blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks, and candidate blocks;

[0019] A mode of at least one of a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block, and a candidate block.

[0020] Optionally, step S10 includes the steps of:

[0021] S101, determining or obtaining at least one list construction rule and / or an execution order corresponding to at least one list construction rule according to sub-block characteristics of a current block;

[0022] S102: Determine or obtain a most probable pattern list according to at least one list construction rule and / or an execution order corresponding to at least one list construction rule.

[0023] Optionally, step S101 includes at least one of the following:

[0024] If the sub-block feature satisfies the first condition, determining at least one list construction rule as a first list construction rule;

[0025] If the sub-block feature does not satisfy the first condition, determining at least one list construction rule as a second list construction rule;

[0026] If the list construction rule includes both the first list construction rule and the second list construction rule, and the sub-block feature satisfies the second condition, the execution order of the first list construction rule is greater than the execution order of the second list construction rule;

[0027] If the list construction rules include both the first list construction rule and the second list construction rule, and the sub-block feature does not meet the second condition, then the execution order of the first list construction rule is less than that of the second list construction rule;

[0028] If the list construction rules only include the first list construction rule, then it is determined that the execution order of the first list construction rule corresponding to the sub-block feature that meets the third condition is greater than the execution order of the first list construction rule corresponding to the sub-block feature that meets the fourth condition;

[0029] If the list construction rules only include the second list construction rule, then it is determined that the execution order of the second list construction rule corresponding to the sub-block feature that meets the fifth condition is greater than the execution order of the second list construction rule corresponding to the sub-block feature that meets the sixth condition.

[0030] Optionally, the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and / or the sixth condition are determined or obtained according to at least one of the following:

[0031] The matching result between the sub-block division rule and the preset division rule or the range of the preset division rule;

[0032] The matching result between the shape parameter of the sub-block and / or the reference block and the preset shape parameter threshold or the range of the preset shape parameter;

[0033] The matching result between the position parameter of the sub-block and / or the reference block and the preset position parameter threshold or the range of the preset position parameter;

[0034] The matching result between the size parameter of the sub-block and / or the reference block and the preset size parameter threshold or the range of the preset size parameter;

[0035] The matching result between the content complexity of the sub-block and / or the reference block and the preset content complexity threshold or the range of the preset content complexity;

[0036] The matching result between the pixel type of the sub-block and / or the reference block and the preset pixel type or the range of the preset pixel type;

[0037] The matching result between the feature of the current block and the preset feature or the range of the preset feature;

[0038] The matching result between the pixel feature of the reference template of the sub-block and / or the pixel feature of the reference block and the preset pixel feature threshold or the range of the preset pixel feature;

[0039] The matching result between the similarity between the reference template of the sub-block and the reference block and the preset similarity threshold or the preset similarity interval;

[0040] The matching result between the number of reference blocks and the preset number or the preset number interval;

[0041] The pattern of the reference block and the matching result of the preset pattern or preset pattern range.

[0042] Optionally, the first list construction rule includes at least one of the following:

[0043] The length of the most likely pattern list is the first length;

[0044] The default pattern is located at the preset list position of the most likely pattern list;

[0045] Based on the calculation result of calculating the cost of at least one candidate pattern according to the first cost function, determine or obtain the position of at least one candidate pattern in the most likely pattern list;

[0046] Based on the scanning result of scanning at least one reference block in the first order, determine or obtain the most likely pattern list;

[0047] Based on the selected first quantity of reference blocks, determine or obtain the most likely pattern list;

[0048] Based on at least one reference block selected according to the first distance, determine or obtain the most likely pattern list;

[0049] Based on the distance between the current block and the reference block, sort the reference blocks, and based on the sorted reference blocks, determine or obtain the most likely pattern list;

[0050] Take the blocks within the first range as neighbor blocks, and based on at least one neighbor block, determine or obtain the most likely pattern list;

[0051] Based on the most likely pattern list of at least one other sub-block and / or reference block of the third quantity, determine or obtain the most likely pattern list of the sub-block;

[0052] Based on the preset sorting rule, determine or obtain the most likely pattern list.

[0053] Optionally, the second list construction rule includes at least one of the following:

[0054] The length of the most likely pattern list is the second length;

[0055] Based on the preset pattern sorting rule, determine the position of the default pattern in the most likely pattern list;

[0056] Based on the calculation result of calculating the cost of at least one candidate pattern according to the second cost function, determine or obtain the position of at least one candidate pattern in the most likely pattern list;

[0057] Based on the calculation result of calculating the cost of at least one candidate pattern according to the first cost function and the second cost function, determine or obtain the position of at least one candidate pattern in the most likely pattern list;

[0058] Determine or obtain a list of most likely patterns based on the scanning results of at least one reference block scanned in the second order;

[0059] Determine or obtain a list of most likely patterns based on the selected second quantity of reference blocks;

[0060] Determine or obtain a list of most likely patterns based on at least one reference block selected by the second distance;

[0061] Use the blocks within the second range as neighbor blocks, and determine or obtain a list of most likely patterns based on at least one neighbor block;

[0062] Determine or obtain a list of most likely patterns of a sub-block based on the list of most likely patterns of at least one other sub-block and / or reference block of the fourth quantity;

[0063] Determine or obtain a list of most likely patterns based on a neural network.

[0064] Optionally, the image processing method further includes the step of:

[0065] S20, process the sub-block according to the list of most likely patterns.

[0066] Optionally, step S20 includes: if the current block is to be predicted, perform prediction processing on the sub-block according to the list of most likely patterns determined or obtained based on the sub-block features of the current block.

[0067] Optionally, the image processing method further includes at least one of the following:

[0068] Determine or obtain the prediction processing result of the current block based on the prediction processing results of at least one sub-block;

[0069] Determine or obtain the reconstruction of the current block based on the prediction processing result of the current block.

[0070] This application also provides a processing device, including:

[0071] A processing module, configured to determine or obtain a list of most likely patterns according to the sub-block features of the current block.

[0072] This application also provides a processing device, including: a memory and a processor, where an image processing program is stored on the memory, and when the image processing program is executed by the processor, the steps of any one of the above image processing methods are implemented.

[0073] The processing device in this application can be a smart terminal or a server.

[0074] This application also provides a storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the above image processing methods are implemented.

[0075] As described above, the processing method of the present application can be applied to a processing device, including: determining or obtaining a most likely pattern list according to the sub-block features of the current block. Since the most likely prediction pattern list is determined or obtained according to the sub-block features of the current block, it can ensure that the most likely prediction pattern list has a relatively high accuracy applicable to the sub-blocks of the current block. Further, when predicting and processing the current block through the most likely list, the processing effect can also be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings required for the description of the embodiments. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0077] Figure 1 Schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present application;

[0078] Figure 2 Schematic diagram of a communication network system architecture provided by an embodiment of the present application;

[0079] Figure 3 Schematic diagram of the hardware structure of a controller 140 provided by the present application;

[0080] Figure 4 Schematic diagram of the hardware structure of a network node 150 provided by the present application;

[0081] Figure 5 Schematic flowchart of an image processing method shown according to the first embodiment;

[0082] Figure 6 Schematic flowchart of encoding and decoding in the image processing method;

[0083] Figure 7 Reference block of a width and height dimension in the image processing method shown according to the second embodiment;

[0084] Figure 8 Another reference block of a width and height dimension in the image processing method shown according to the second embodiment;

[0085] Figure 9 Yet another reference block of a width and height dimension in the image processing method shown according to the second embodiment;

[0086] Figure 10 Schematic diagram of the texture of a reference template of a sub-block in the image processing method shown according to the second embodiment;

[0087] Figure 11 It is a schematic diagram of the texture of the reference template of another sub-block in the image processing method shown in the second embodiment;

[0088] Figure 12 It is a schematic diagram of the neighbor blocks of the sub-block in the image processing method shown in the third embodiment;

[0089] Figure 13 It is another schematic flowchart of the image processing method shown in the fourth embodiment;

[0090] Figure 14 It is a schematic flowchart of the construction of the most likely mode list in the image processing method shown in the fourth embodiment;

[0091] Figure 15 It is another schematic flowchart of the image processing method shown in the first embodiment;

[0092] Figure 16 It is a schematic diagram of the processing module of the processing device.

[0093] The realization of the purpose of this application, functional features and advantages will be further described in conjunction with the embodiments with reference to the accompanying drawings. Through the above-mentioned accompanying drawings, the clear embodiments of this application have been shown, and there will be more detailed descriptions hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of this application in any way, but to illustrate the concept of this application to those skilled in the art by referring to specific embodiments. Detailed Embodiments

[0094] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. On the contrary, they are merely examples of devices and methods consistent with some aspects of this application as detailed in the appended claims.

[0095] It should be noted that in this document, the terms "include", "including", or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements not only includes those elements but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article, or device that includes such element. In addition, components, features, and elements with the same name in different embodiments of this application may have the same meaning or different meanings, and their specific meanings need to be determined based on their explanations in the specific embodiments or further in combination with the context in the specific embodiments.

[0096] It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this document, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining". Furthermore, as used herein, the singular forms "a", "an", and "the" are also intended to include the plural forms unless the context indicates otherwise. It should be further understood that the terms "include", "including" indicate the presence of the stated features, steps, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, kinds, and / or groups. The terms "or", "and / or", "including at least one of the following" used in this application can be interpreted inclusively, or mean any one or any combination. For example, "including at least one of the following: A, B, C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C", and again, "A, B, or C" or "A, B, and / or C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C". An exception to this definition only occurs when the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way.

[0097] It should be understood that although the steps in the flowchart in the embodiments of the present application are shown sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear indication in this article, there is no strict order limit for the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the figure may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same moment, but can be executed at different moments, and their execution order is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.

[0098] Depending on the context, the words "if" and "when" as used herein may be interpreted as "when" or "while" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determining" or "when detected (stated condition or event)" or "in response to detecting (stated condition or event)".

[0099] It should be noted that in this article, step codes such as S10 and S20 are used. The purpose is to more clearly and briefly express the corresponding content and do not constitute a substantial limitation in terms of order. Those skilled in the art may execute S20 first and then S10 during specific implementation, etc., but these should all be within the protection scope of the present application.

[0100] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0101] In the following description, the suffixes such as "module", "component" or "unit" used to represent elements are only for the convenience of explaining the present application and have no specific meaning in themselves. Therefore, "module", "component" or "unit" can be used interchangeably.

[0102] The intelligent terminal can be implemented in various forms. For example, the intelligent terminal described in the present application may include intelligent terminals such as mobile phones, tablet computers, laptop computers, palmtop computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.

[0103] In the following description, a mobile terminal will be taken as an example for illustration. Those skilled in the art will understand that, except for the components specifically for mobile purposes, the structure according to the embodiments of the present application can also be applied to fixed-type terminals.

[0104] Please refer to Figure 1 , which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present application. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (audio / video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art can understand that Figure 1 the mobile terminal structure shown in

[0105] does not limit the mobile terminal. The mobile terminal may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements. Figure 1 The following will specifically introduce each component of the mobile terminal:

[0106] The radio frequency unit 101 can be used for receiving and transmitting information or signals during a call. Specifically, after receiving the downlink information from the base station, it is sent to the processor 110 for processing. Additionally, it sends the uplink data to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc. Furthermore, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), TDD-LTE (Time Division Duplexing-Long Term Evolution), 5G, and 6G, etc.

[0107] WiFi belongs to short-distance wireless transmission technology. The mobile terminal can help users send and receive emails, browse the web, and access streaming media through the WiFi module 102, which provides users with wireless broadband Internet access. Although Figure 1 the WiFi module 102 is shown, it can be understood that it is not an essential component of the mobile terminal and can be omitted entirely within the scope of not changing the essence of the invention according to needs.

[0108] The audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in modes such as a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide an audio output related to a specific function executed by the mobile terminal 100 (such as a call signal reception sound, a message reception sound, etc.). The audio output unit 103 can include a speaker, a buzzer, etc.

[0109] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes the image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage media) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sounds (audio data) via the microphone 1042 in operating modes such as a phone call mode, a recording mode, a voice recognition mode, etc., and can process such sounds into audio data. The processed audio (voice) data can be output in a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in the case of the phone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) the noise or interference generated during the reception and transmission of audio signals.

[0110] The mobile terminal 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor and a proximity sensor. Optionally, the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used in applications for identifying the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as a pedometer, tapping), etc.; as for other sensors that the mobile phone can also be configured with, such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., they will not be elaborated here.

[0111] The display unit 106 is used to display the information input by the user or the information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 can be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), etc.

[0112] The user input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to the user settings and function controls of the mobile terminal. Optionally, the user input unit 107 can include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect touch operations of the user thereon or nearby (such as operations of the user using any suitable object or accessory such as a finger, a stylus, etc. on or near the touch panel 1071), and drive corresponding connection devices according to a preset program. The touch panel 1071 can include two parts: a touch detection device and a touch controller. Optionally, the touch detection device detects the touch orientation of the user, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 110, and can receive and execute the commands sent by the processor 110. In addition, the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 can also include other input devices 1072. Optionally, the other input devices 1072 can include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc., and specific details are not limited here.

[0113] Optionally, the touch panel 1071 can cover the display panel 1061. After the touch panel 1071 detects a touch operation thereon or nearby, it transmits the operation to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in Figure 1 the touch panel 1071 and the display panel 1061 are implemented as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal, and specific details are not limited here.

[0114] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device can include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headset port, and so on. The interface unit 108 can be used to receive inputs from an external device (such as data information, power, etc.) and transmit the received inputs to one or more components within the mobile terminal 100 or can be used to transmit data between the mobile terminal 100 and the external device.

[0115] The memory 109 can be used to store software programs and various data. The memory 109 mainly includes a program storage area and a data storage area. Optionally, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, phone book, etc.). In addition, the memory 109 can include high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0116] The processor 110 is the control center of the mobile terminal, connecting various parts of the entire mobile terminal through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and calling data stored in the memory 109, it executes various functions of the mobile terminal and processes data, thereby monitoring the mobile terminal as a whole. The processor 110 can include one or more processing units; preferably, the processor 110 can integrate an application processor and a modem processor. Optionally, the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 110.

[0117] The mobile terminal 100 can also include a power supply 111 (such as a battery) for powering each component. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system.

[0118] Although Figure 1 not shown, the mobile terminal 100 can also include a Bluetooth module, etc., which will not be elaborated here.

[0119] To facilitate the understanding of the embodiments of the present application, the communication network system on which the mobile terminal of the present application is based will be described below.

[0120] Please refer to Figure 2 , Figure 2 which is an architecture diagram of a communication network system provided by an embodiment of the present application. This communication network system is an LTE system of the general mobile communication technology. This LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and the operator's IP service 204 that are sequentially communicatively connected.

[0121] Optionally, the UE 201 may be the above-mentioned terminal 100, which will not be elaborated here.

[0122] The E-UTRAN 202 includes an eNodeB 2021 and other eNodeBs 2022, etc. Optionally, the eNodeB 2021 may be connected to other eNodeBs 2022 through a backhaul (such as an X2 interface), the eNodeB 2021 is connected to the EPC 203, and the eNodeB 2021 may provide access for the UE 201 to the EPC 203.

[0123] The EPC 203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving Gate Way) 2034, a PGW (PDN Gate Way) 2035, a PCRF (Policy and Charging Rules Function) 2036, etc. Optionally, the MME 2031 is a control node that processes the signaling between the UE 201 and the EPC 203 and provides bearer and connection management. The HSS 2032 is used to provide some registers to manage functions such as a home location register (not shown in the figure) and stores some user-specific information such as service characteristics and data rates. All user data can be sent through the SGW 2034. The PGW 2035 may provide IP address allocation for the UE 201 and other functions. The PCRF 2036 is a policy and charging control policy decision point for service data flows and IP bearer resources, and it selects and provides available policy and charging control decisions for a policy and charging enforcement function unit (not shown in the figure).

[0124] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem), or other IP services, etc.

[0125] Although the above has been described by taking the LTE system as an example, those skilled in the art should be aware that the present application is not only applicable to the LTE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, 5G, and future new network systems (such as 6G), etc., which are not limited here.

[0126] Figure 3Schematic diagram of the hardware structure of a controller 140 provided for this application. The controller 140 includes: a memory 1401 and a processor 1402. The memory 1401 is used to store program instructions, and the processor 1402 is used to call the program instructions in the memory 1401 to execute the steps performed by the controller in the first method embodiment. Its implementation principle and beneficial effects are similar, and will not be elaborated here.

[0127] Optionally, the above controller further includes a communication interface 1403, and this communication interface 1403 can be connected to the processor 1402 through a bus 1404. The processor 1402 can control the communication interface 1403 to implement the receiving and sending functions of the controller 140.

[0128] Figure 4 Schematic diagram of the hardware structure of a network node 150 provided for this application. The network node 150 includes: a memory 1501 and a processor 1502. The memory 1501 is used to store program instructions, and the processor 1502 is used to call the program instructions in the memory 1501 to execute the steps performed by the first node in the first method embodiment. Its implementation principle and beneficial effects are similar, and will not be elaborated here.

[0129] Optionally, the above controller further includes a communication interface 1503, and this communication interface 1503 can be connected to the processor 1502 through a bus 1504. The processor 1502 can control the communication interface 1503 to implement the receiving and sending functions of the network node 150.

[0130] The above integrated module implemented in the form of software function modules can be stored in a computer-readable storage medium. The above software function modules are stored in a storage medium and include several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute some steps of the methods in various embodiments of this application.

[0131] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a storage medium or transmitted from one storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

[0132] The first embodiment

[0133] Referring to Figure 5 , Figure 5 FIG. is a schematic flowchart of an image processing method shown according to the first embodiment. The image processing method of the embodiments of the present application can be applied to a processing device, including step S10: determining or obtaining a most likely mode list according to the sub-block features of the current block.

[0134] In this embodiment, the processing device can be a smart terminal, such as a mobile phone, a computer, etc., or a server, such as a local server or a cloud server. In this embodiment and the present application, the processing device is mainly exemplified by a smart terminal.

[0135] Optionally, the technical solution of this embodiment can be applied to fields such as image coding and decoding, video coding and decoding, hardware video coding and decoding, dedicated circuit video coding and decoding, real-time video coding and decoding, etc.

[0136] Optionally, for ease of understanding, a brief introduction to the coding and decoding architecture is first given: Referring to Figure 6, in the encoding and decoding framework, the input video frame can be segmented into blocks to obtain at least one block. Each block is subjected to frame transformation processing through a frame transformation module, and then the transformed video frame is input into modules such as transformation, quantization, intra-frame prediction, inter-frame coding, inverse quantization, inverse transformation, and loop filtering. The video frame processed by the quantization module is subjected to entropy coding to output bits such as 01011100. Motion estimation is performed based on the video frame obtained after loop filtering and the video frame after frame transformation processing to obtain motion information, and inter-frame prediction is performed based on the motion information.

[0137] Optionally, at the encoding end, the video frame is input into a frame processing module. After this module executes a certain selection rule, one or more operations among geometric transformation, downsampling, linear transformation, non-linear transformation, pre-filtering processing (in the case of filtering processing, there may be no mode information) are performed on the frame, and then the transformed frame is output. The transformed frame is input into subsequent modules such as transformation, quantization, intra-frame prediction, inter-frame coding, inverse quantization, and inverse transformation. The above processing results are input into a frame inverse transformation module, and after performing inverse geometric transformation, upsampling, filtering processing, etc., the decoded image is output. Optionally, loop filtering can be regarded as part of the frame inverse transformation module.

[0138] Optionally, at the decoding end, the bitstream is read, the transformation mode information (in the case of filtering, there may be no mode information) is parsed, inverse quantization, transformation, inter-frame prediction, intra-frame prediction, etc. are performed on the video stream, and the video frame (transformed at the encoding end) is decoded. After performing frame inverse transformation on the above video frame according to the mode information, the decoded image is output. Frame inverse transformation includes inverse geometric transformation, upsampling, filtering processing, etc. Optionally, loop filtering can be regarded as part of the frame inverse transformation module.

[0139] Optionally, during the encoding and decoding process, the most likely mode list may be used for processing in each link. For example, in the partitioning stage, the most likely mode list is used to obtain the partitioning mode to perform partitioning processing on the current block. In the prediction stage, the most likely mode list is used to obtain the prediction mode to perform prediction processing on the current block.

[0140] Optionally, for all blocks (such as image blocks), the most likely mode list is constructed in the same construction manner. For example, the most likely mode list is generated by sorting according to the selected mode (such as the prediction mode). However, due to the large number of features and differences between different blocks (such as image blocks), such as different sizes of sub-blocks within the block and different textures, etc., the accuracy of the most likely mode list on some blocks is low.

[0141] Optionally, the block in this embodiment can be an image block and can be at least one of the current block, neighbor block, non-neighbor block, co-located block, temporal block, cross-component block, default block, and candidate block.

[0142] Optionally, the current block may be an image block, and optionally, may be different blocks at different stages of encoding and decoding. For example, at the partitioning stage, it may be an image block to be partitioned, and at the prediction stage, it may be an image block to be predicted, etc.

[0143] Optionally, the current block may include at least one sub-block, and the features of at least one sub-block may be used as the sub-block features of the current block.

[0144] Optionally, the current block may include at least one sub-pixel region, and the features of at least one sub-pixel region may be used as the sub-block features of the current block.

[0145] Optionally, when the processing device is an encoding end, the current block may be processed according to the list of most likely modes determined or obtained based on the sub-block features of the current block.

[0146] Optionally, when the processing device is a decoding end, the current block may be processed according to the list of most likely modes determined or obtained based on the sub-block features of the current block.

[0147] Through the technical solution of this embodiment, it can be ensured that the list of most likely prediction modes is highly accurate for the sub-blocks of the current block. Further, when predicting and processing the current block through the most likely list, the processing effect can also be improved.

[0148] Second Embodiment

[0149] Based on the first embodiment, a second embodiment is proposed.

[0150] In this embodiment, the list of most likely modes includes the list of most likely modes of the current block and / or the list of most likely modes of at least one sub-block.

[0151] Optionally, the list of most likely modes of the current block may be determined or obtained according to the sub-block features of the current block;

[0152] Optionally, the list of most likely modes of at least one sub-block may be determined or obtained according to the sub-block features of the current block.

[0153] Optionally, the list of most likely modes of the current block may include at least one list of most likely sub-modes, and each list of most likely sub-modes corresponds to a sub-block. The list of most likely sub-modes may be used as the list of most likely modes of the sub-block.

[0154] Optionally, the list of most likely modes of the current block may also be processed based on the sub-block features to obtain K lists of most likely sub-modes. For example, for each sub-block, a candidate mode that matches the sub-block features of the sub-block is selected from the list of most likely modes of the current block, and the list of most likely sub-modes is generated based on the selected candidate mode. Optionally, K is a positive integer.

[0155] Optionally, the most likely pattern list of at least one sub-block can be determined or obtained based on the list of K most likely sub-patterns. For example, the list of the most likely sub-patterns can be directly used as the most likely pattern list of the sub-block, or the list of the most likely sub-patterns can be appropriately transformed (such as adjusting the positions of candidate patterns in the list of the most likely sub-patterns, etc.) to obtain the most likely pattern list of the sub-block.

[0156] Optionally, the most likely pattern list of the current block can also be determined or obtained based on the most likely pattern list of at least one sub-block. For example, the candidate patterns in the most likely pattern list of the current block can be determined or obtained according to the most likely pattern list of at least one sub-block.

[0157] Optionally, the sub-block features include at least one of the following methods 1 to 3.

[0158] Method 1: The sub-block division rule determined or obtained according to at least one of the division rules, syntax elements, and the features of the current block in the bitstream.

[0159] Optionally, the syntax element can be a flag bit or an index of the division rule, etc.

[0160] Optionally, after determining the division rule for dividing the current block into sub-blocks, the encoding end can encode the division rule and transmit it to the decoding end in the form of a bitstream. The decoding end can obtain the division rule in the bitstream and directly use the division rule in the bitstream as the sub-block division rule to divide the current block to obtain at least one sub-block.

[0161] Optionally, the decoding end can obtain the syntax element in the bitstream, select the corresponding division rule from at least one division rule according to the syntax element as the sub-block division rule, and divide the current block according to the sub-block division rule to obtain at least one sub-block.

[0162] Optionally, at least one sub-block division rule can also be determined or obtained according to the features of the current block, and the current block can be divided according to the at least one sub-block division rule to obtain at least one sub-block.

[0163] Optionally, the features of the current block can be the same as or different from the sub-block features. The features of the current block can include the pixel values, size parameters, etc. of the current block.

[0164] Optionally, the sub-blocks obtained after dividing the current block can be non-rectangular or rectangular.

[0165] Optionally, the sub-block division rule can be used as the sub-block feature, and the most likely pattern list can be determined or obtained according to the sub-block division rule.

[0166] Through the technical solution of this embodiment, it is possible to use the sub-block partitioning rule determined or obtained according to at least one of the partitioning rules, syntax elements, and characteristics of the current block in the bitstream as a sub-block feature, and then determine or obtain the most likely mode list according to the sub-block feature. Furthermore, it can be ensured that the most likely mode list is closely related to the sub-block partitioning rule, and then a more appropriate most likely mode list can be determined or obtained. When the current block is processed according to the most likely mode list subsequently, the processing effect can also be improved.

[0167] Method 2: at least one of the shape parameter, position parameter, size parameter, content complexity, and pixel type of the sub-block and / or reference block;

[0168] Optionally, the shape parameter may include the shape of the sub-block and / or reference block, such as a rectangle, trapezoid, etc.

[0169] Optionally, the position parameter may include the position where the sub-block and / or reference block is located, or the position of the sub-block and / or reference block relative to the current block. Optionally, the position parameter of the sub-block and / or reference block can be determined or obtained according to the pixel coordinates of the sub-block and / or reference block.

[0170] Optionally, the size parameter may include at least one of the width, height, width-to-height ratio, block size, and block area of the sub-block and / or reference block, and may also include parameters related to the size parameter of the block, such as the width after format conversion.

[0171] Optionally, the content complexity may be the content filling degree of the sub-block and / or reference block, and may include the content change degree of the sub-block and / or reference block, such as the texture transformation degree, color change information, etc.

[0172] Optionally, the pixel type may be the pixel type of at least one pixel in the sub-block and / or reference block. The pixel type can be set in advance. For example, pixels greater than the preset pixel threshold are one type of pixel, and pixels less than the preset pixel threshold are another type of pixel.

[0173] Optionally, at least one of the shape parameter, position parameter, size parameter, content complexity, and pixel type of the sub-block and / or reference block can be used as a sub-block feature, and the most likely mode list can be determined or obtained according to the sub-block feature.

[0174] For example, as Figures 7 - 9 shown, if Figures 7 - 9 are three different reference blocks, exemplarily, Figure 7 the width of the reference block in is 32 and the height is 32, Figure 8 the width of the reference block in is 32 and the height is 64, Figure 9 the width of the reference block in is 64 and the height is 30, then the width and height of the reference block in Figure 7 can be used, Figure 8Width and height of the reference block in the middle Figure 9 At least one of the width and height of the reference block in the middle is used as a sub-block feature.

[0175] Through the technical solution of this embodiment, at least one of the shape parameter, position parameter, size parameter, content complexity, and pixel type of the sub-block and / or reference block can be used as a sub-block feature, and then the most likely mode list can be determined or obtained according to the sub-block feature. Furthermore, it can be ensured that the most likely mode list is closely related to at least one of the shape parameter, position parameter, size parameter, content complexity, and pixel type of the sub-block and / or reference block, and then a more appropriate most likely mode list can be determined or obtained. When the current block is processed according to the most likely mode list subsequently, the processing effect can also be improved.

[0176] Method 3: At least one of the feature of the current block, the pixel feature of the reference template of the sub-block, the pixel feature of the reference block, the similarity between the reference template of the sub-block and the reference block, the number of reference blocks, and the mode of the reference block.

[0177] Optionally, the feature of the current block can be determined or obtained in the same or different way as the sub-block feature. The feature of the current block can include the sub-block feature, or the feature of the current block can be directly used as the sub-block feature.

[0178] Optionally, the reference template can be determined or obtained according to neighboring pixels (such as adjacent pixels) or pixels of other components. For example, a pixel region including neighboring pixels located above, to the left, and to the upper left of the current block and / or sub-block can be used as the reference template.

[0179] Optionally, the reference template can be a pixel region within the same component in the same frame (such as a reconstructed or predicted pixel region), or a pixel region within the same component in different frames. It can also be a pixel region across components / different components in the same frame.

[0180] Optionally, the shape of the reference template can be a regular shape, such as a rectangle, or an irregular shape, such as a trapezoid.

[0181] Optionally, the pixel feature can include the texture of the block (such as smooth or sharp), and can also include other features related to the pixels of the block, such as pixel values. Or when the current block is a chrominance component current block, it can include the luminance value of the current block, etc.

[0182] Optionally, the pixel feature of the reference template of the sub-block can be approximately used as the pixel feature of the sub-block. The pixel feature of the reference template of the sub-block can be used as the sub-block feature.

[0183] Optionally, the texture of the reference template of the sub-block can be as Figure 10 shown, and its texture changes quickly.

[0184] Optionally, the texture of the reference template of the sub-block can be as follows Figure 11 As shown, the texture changes smoothly.

[0185] Optionally, the pixel features of the reference block may be used as sub-block features.

[0186] Optionally, the reference template of the sub-block may be approximated as the pixels of the sub-block, and then the similarity of the pixels between the reference template of the sub-block and the reference block is calculated.

[0187] Optionally, when performing similarity calculation, a pre-set similarity function can be used for calculation, such as calculating the absolute difference between the reference template of the current block and the neighboring pixels, and determining the similarity between the reference template of the current block and the neighboring pixels based on the absolute difference. A neural network can also be used for calculation, which is not limited here.

[0188] Optionally, at least one of the number of reference blocks and a mode of using the reference blocks may be used as a sub-block feature.

[0189] Optionally, the most likely pattern list can be determined or obtained based on at least one of the features of the current block, the pixel features of the reference template of the sub-block, the pixel features of the reference block, the similarity between the reference template of the sub-block and the reference block, the number of reference blocks and the pattern of the reference block.

[0190] Through the technical solution of this embodiment, it is possible to use at least one of the features of the current block, the pixel features of the reference template of the sub-block, the pixel features of the reference block, the similarity between the reference template of the sub-block and the reference block, the number of reference blocks and the mode of the reference block as the sub-block features, and then determine or obtain the most likely mode list based on the sub-block features, and then ensure that the most likely mode list is closely related to at least one of the features of the current block, the pixel features of the reference template of the sub-block, the pixel features of the reference block, the similarity between the reference template of the sub-block and the reference block, the number of reference blocks and the mode of the reference block, and then determine or obtain a more appropriate most likely mode list, so that when the current block is subsequently processed according to the most likely mode list, the processing effect can also be improved.

[0191] Third embodiment

[0192] Based on the first embodiment or the second embodiment, the third embodiment is proposed.

[0193] In this embodiment, the reference block includes at least one of a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block and a candidate block corresponding to the current block and / or subblock.

[0194] Optionally, the neighbor block corresponding to the current block may be a block adjacent to the current block, and the neighbor block may include an adjacent block and a non-adjacent block.

[0195] Optionally, the neighbor blocks corresponding to the sub-blocks may be the blocks adjacent to the sub-blocks, and may include the neighbor blocks corresponding to the current block. For example, as Figure 12 shown, the neighbor blocks corresponding to the current block may be used as the neighbor blocks corresponding to the sub-blocks.

[0196] Optionally, the non-neighbor blocks corresponding to the current block may be the blocks not adjacent to the current block, and the non-neighbor blocks may include non-adjacent blocks.

[0197] Optionally, the non-neighbor blocks corresponding to the sub-blocks may be the blocks not adjacent to the sub-blocks.

[0198] Optionally, the co-located blocks corresponding to the current block may be the image blocks in the co-located image that have the same position and size as the current block to be processed (such as to be predicted). Optionally, the co-located image may be the image in the reference image that is closest in time to the current image.

[0199] Optionally, the co-located blocks corresponding to the sub-blocks may be the image blocks in the co-located image that have the same position and size as the sub-blocks, and may also be the co-located blocks corresponding to the current block.

[0200] Optionally, the temporal blocks corresponding to the current block may be the blocks distinguished in the time domain, such as the image blocks in the previous frame. For example, if there is video data including three frames of images, the first frame of image is played in the first second, the second frame of image is played in the second second, and the third frame of image is played in the third second. If the image block to be processed (such as predicted) at the current moment is the image block divided from the second frame of image, then the temporal block may be determined as the corresponding image block in the first frame of image.

[0201] Optionally, the temporal blocks corresponding to the sub-blocks may be the temporal blocks corresponding to the current block or the sub-blocks in the temporal blocks corresponding to the current block.

[0202] Optionally, the cross-component blocks may be the image blocks in different components from at least one current image block:

[0203] For example, if at least one current image block is the image block of the Y component, then the cross-component blocks may be the image blocks of the U component and / or the V component;

[0204] Another example is that if at least one current image block is the image block of the U component, then the cross-component blocks may be the image blocks of the Y component and / or the V component;

[0205] Still another example is that if at least one current image block is the image block of the V component, then the cross-component blocks may be the image blocks of the U component and / or the Y component.

[0206] Optionally, the cross-component blocks corresponding to the sub-blocks may be the cross-component blocks corresponding to the current block or the sub-blocks in the cross-component blocks corresponding to the current block.

[0207] Optionally, the default block may be a pre-set block, for example, a block with typical pixel characteristics pre-set by an encoder and / or a decoder.

[0208] Optionally, the candidate block corresponding to the current block may be determined or generated according to the candidate motion vector or candidate block vector of the current block.

[0209] Optionally, the candidate motion vector or candidate block vector may include the motion vector or block vector corresponding to at least one of a neighbor block, a non-neighbor block, a co-located block, a temporal block, a cross-component block, and a default block, and may also include the motion vector or block vector corresponding to at least one of the upper adjacent pixel, the upper non-adjacent pixel, the left adjacent pixel, the left non-adjacent pixel, the upper left adjacent pixel, and the upper left non-adjacent pixel of the current block, and may also include the motion vector or block vector of the current block, etc. Hereinafter, only the motion vector or block vector of the current block is taken as an example for illustration.

[0210] Optionally, the current block may be predicted according to the block vector, and the candidate block may be determined according to the prediction result of the block vector.

[0211] Optionally, the current block may be predicted according to the motion vector, and the candidate block may be determined according to the prediction result of the motion vector.

[0212] Optionally, the candidate block corresponding to the sub-block may be the candidate block corresponding to the current block or a sub-block of the candidate block corresponding to the current block.

[0213] Optionally, the shape parameter, and / or position parameter, and / or size parameter, and / or content complexity, and / or pixel type, and / or pixel feature of at least one of the neighbor block, non-neighbor block, co-located block, temporal block, cross-component block, default block, and candidate block corresponding to the current block and / or the sub-block may be used as the sub-block feature, and then the most likely mode list may be determined or obtained according to the sub-block feature.

[0214] Optionally, the similarity between the reference template of the sub-block and at least one of the neighbor block, non-neighbor block, co-located block, temporal block, cross-component block, default block, and candidate block corresponding to the current block and / or the sub-block may be used as the sub-block feature, and the most likely mode list may be determined or obtained according to the sub-block feature.

[0215] Optionally, the mode of at least one of the neighbor block, non-neighbor block, co-located block, temporal block, cross-component block, default block, and candidate block corresponding to the current block and / or the sub-block may be used as the sub-block feature, and the most likely mode list may be determined or obtained according to the sub-block feature.

[0216] Optionally, the feature of the current block is determined or obtained according to at least one of the following methods 4 to 8:

[0217] Mode 4: size parameter of at least one of the current block, neighbor block, non-neighbor block, co-located block, time domain block, cross-component block, default block and candidate block;

[0218] Optionally, a size parameter of at least one of the current block, neighbor block, non-neighbor block, co-located block, time domain block, cross-component block, default block and candidate block can be used as a feature of the current block, or the size parameter of at least one item can be appropriately deformed to obtain the feature of the current block.

[0219] At least one of the width, height, aspect ratio, block size and block area of ​​the current block may be used as the feature of the current block.

[0220] Optionally, at least one of the width, height, aspect ratio, block size and block area of ​​the neighboring block may be used as the feature of the current block.

[0221] Optionally, at least one of the width, height, aspect ratio, block size and block area of ​​the non-neighboring block may be used as the feature of the current block.

[0222] Optionally, at least one of the width, height, aspect ratio, block size and block area of ​​the co-located block may be used as the feature of the current block.

[0223] Optionally, at least one of the width, height, aspect ratio, block size and block area of ​​the time domain block may be used as the feature of the current block.

[0224] Optionally, at least one of the width, height, aspect ratio, block size and block area across the component blocks may be used as the feature of the current block.

[0225] Optionally, at least one of the width, height, aspect ratio, block size and block area of ​​the default block may be used as the feature of the current block.

[0226] Optionally, at least one of the width, height, aspect ratio, block size and block area of ​​the candidate block may be used as a feature of the current block.

[0227] Optionally, the width, height, aspect ratio, block size and / or block area of ​​at least one of the current block, neighboring block, non-neighboring block, co-located block, time domain block, cross-component block, default block and neighboring block can also be deformed (for example, format conversion, numerical conversion, addition or subtraction operations, etc.) to obtain the characteristics of the current block.

[0228] Through the technical solution of this embodiment, it is possible to determine or obtain the feature of the current block according to the size parameters of at least one of the current block, neighbor blocks, non-neighbor blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks, and then determine or obtain the sub-block feature according to the feature of the current block, and further determine or obtain the most likely mode list according to the sub-block feature. Furthermore, it is possible to ensure that the most likely mode list is closely related to the size parameters of the block, and thus a more appropriate most likely mode list can be determined or obtained. When the current block is processed according to the most likely mode list subsequently, the processing effect can also be improved.

[0229] Method 5: The pixel features of at least one of the reference template of the current block, neighbor blocks, non-neighbor blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks;

[0230] Optionally, the pixel features of at least one of the reference template of the current block, neighbor blocks, non-neighbor blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks can be used as the feature of the current block, or the pixel features of at least one item can be appropriately transformed (such as format conversion, numerical conversion, addition or subtraction operations, etc.) to obtain the feature of the current block.

[0231] Optionally, since the pixel features of a block can include the texture of the block, the degree of texture change, and pixel values, etc., the texture, the degree of texture change, and pixel values of at least one of the reference template of the current block, neighbor blocks, non-neighbor blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks can be used as the feature of the current block.

[0232] Through the technical solution of this embodiment, it is possible to determine or obtain the feature of the current block according to the pixel features of at least one of the reference template of the current block, neighbor blocks, non-neighbor blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks, and then determine or obtain the sub-block feature according to the feature of the current block, and further determine or obtain the most likely mode list according to the sub-block feature. Furthermore, it is possible to ensure that the most likely mode list is closely related to the pixel features of the block, and thus a more appropriate most likely mode list can be determined or obtained. When the current block is processed according to the most likely mode list subsequently, the processing effect can also be improved.

[0233] Method 6: The similarity between the reference template of the current block and at least one of the neighbor pixels, non-neighbor pixels, co-located block pixels, temporal block pixels, cross-component block pixels, default block pixels, and candidate block pixels;

[0234] Optionally, the neighbor pixels can be at least one pixel in the neighbor blocks.

[0235] Optionally, the non-neighbor pixels can be at least one pixel in the non-neighbor blocks.

[0236] Optionally, the co-location block pixel may be at least one pixel in the co-location block.

[0237] Optionally, the temporal block pixel may be at least one pixel in the temporal block.

[0238] Optionally, the cross-component block pixel may be at least one pixel in the cross-component block.

[0239] Optionally, the default block pixel may be at least one pixel in the default block.

[0240] Optionally, the candidate block pixel may be at least one pixel in the candidate block.

[0241] Optionally, the reference template of the current block may be approximated as the pixels of the current block, and then the similarity between the reference template of the current block and at least one of the neighbor pixels, non-neighbor pixels, co-location block pixels, temporal block pixels, cross-component block pixels, default block pixels, and candidate block pixels is calculated.

[0242] Optionally, when calculating the similarity, a pre-set similarity function may be used for calculation. For example, the absolute difference between the reference template of the current block and the neighbor pixels is calculated, and the similarity between the reference template of the current block and the neighbor pixels is determined based on the absolute difference.

[0243] Optionally, when calculating the similarity, a neural network may be used for determination. For example, the reference template of the current block and the neighbor pixels, non-neighbor pixels, co-location block pixels, temporal block pixels, cross-component block pixels, default block pixels, and candidate block pixels are directly input into the neural network, and the similarities between the reference template of the current block and the neighbor pixels, non-neighbor pixels, co-location block pixels, temporal block pixels, cross-component block pixels, default block pixels, and candidate block pixels are output.

[0244] Optionally, the similarity between the reference template of the current block and at least one of the neighbor pixels, non-neighbor pixels, co-location block pixels, temporal block pixels, cross-component block pixels, default block pixels, and candidate block pixels may be used as the feature of the current block, or the similarity of at least one item may be appropriately transformed (such as format conversion, numerical conversion, addition or subtraction operations, etc.) to obtain the feature of the current block.

[0245] Through the technical solution of this embodiment, it is possible to determine or obtain the feature of the current block according to the similarity between the reference template of the current block and at least one of the neighboring pixels, non-neighboring pixels, co-located block pixels, temporal block pixels, cross-component block pixels, default block pixels, and candidate block pixels, and then determine or obtain the sub-block feature according to the feature of the current block, and further determine or obtain the most likely mode list according to the sub-block feature. Furthermore, it can be ensured that the most likely mode list is closely related to the similarity of the block, and then a more appropriate most likely mode list can be determined or obtained. When the current block is processed according to the most likely mode list subsequently, the processing effect can also be improved.

[0246] Way seven, the quantity of at least one of the neighboring block, non-neighboring block, co-located block, temporal block, cross-component block, default block, and candidate block;

[0247] Optionally, taking the neighboring block as an example for illustration, the quantity of the neighboring blocks of the current block can be determined. For example, scan the neighboring blocks in a certain order and determine the quantity of the scanned neighboring blocks. For example, take the image blocks with a pixel distance less than the preset pixel distance from the current block as neighboring blocks and determine the quantity of the selected neighboring blocks. For example, take the image blocks within a certain range as neighboring blocks and determine the quantity of the selected neighboring blocks.

[0248] Optionally, it can be determined that the quantity of at least one of the neighboring block, non-neighboring block, co-located block, temporal block, cross-component block, default block, and candidate block is the feature of the current block. It is also possible to appropriately transform the quantity of at least one item (such as performing format conversion, numerical conversion, addition or subtraction operations, etc.) to obtain the feature of the current block.

[0249] Through the technical solution of this embodiment, it is possible to determine or obtain the feature of the current block according to the quantity of at least one of the neighboring block, non-neighboring block, co-located block, temporal block, cross-component block, default block, and candidate block, and then determine or obtain the sub-block feature according to the feature of the current block, and further determine or obtain the most likely mode list according to the sub-block feature. Furthermore, it can be ensured that the most likely mode list is closely related to the quantity of the block, and then a more appropriate most likely mode list can be determined or obtained. When the current block is processed according to the most likely mode list subsequently, the processing effect can also be improved.

[0250] Way eight, the mode of at least one of the neighboring block, non-neighboring block, co-located block, temporal block, cross-component block, default block, and candidate block.

[0251] Optionally, the mode may include at least one of the intra prediction mode, inter prediction mode, intra block vector mode, inter block vector mode, inter-frame partitioning method, cross-component prediction mode, geometric partitioning mode, spatial geometric partitioning mode, and block partitioning method.

[0252] Optionally, for different stages in the video encoding and decoding process, the mode adopted by at least one of the neighbor blocks, non-neighbor blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks can be used as the feature of the current block.

[0253] For example, in the inter prediction stage, at least one of the inter prediction modes used by neighbor blocks, non-neighbor blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks can be used as the feature of the current block.

[0254] Optionally, the mode of at least one of the neighbor blocks, non-neighbor blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks can be used as the feature of the current block, or the mode of at least one can be appropriately deformed to obtain the feature of the current block.

[0255] Through the technical solution of this embodiment, it is possible to determine or obtain the feature of the current block according to the mode of at least one of the neighbor blocks, non-neighbor blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks, then determine or obtain the sub-block feature according to the feature of the current block, and further determine or obtain the most likely mode list according to the sub-block feature. Furthermore, it can ensure that the most likely mode list is closely related to the mode of the block, and then a more appropriate most likely mode list can be determined or obtained, so that when the current block is processed according to the most likely mode list subsequently, the processing effect can also be improved.

[0256] Fourth Embodiment

[0257] Based on any of the above embodiments, a fourth embodiment is proposed.

[0258] In this embodiment, referring to Figure 13 , step S10 includes step S101 and step S102:

[0259] Step S101, determine or obtain at least one list construction rule according to the sub-block feature of the current block, and / or the execution order corresponding to at least one list construction rule;

[0260] Optionally, if the sub-block features of the current block are different, the corresponding list construction rules can be different.

[0261] Optionally, if the sub-block features of the current block are different, the execution orders of the corresponding list construction rules can be different.

[0262] Optionally, the correspondence between sub-block features and at least one list construction rule can be established in advance. After obtaining the actual sub-block features, at least one list construction rule can be determined or obtained according to the correspondence, and then the most likely pattern list can be constructed according to the at least one list construction rule to determine or obtain the most likely pattern list.

[0263] Optionally, different sub-block features may correspond to different list construction rules. For example, when the features of the current block include Feature 1, the list construction rule may include List Construction Rule 1, or when the features of the current block include Feature 2, the list construction rule may include List Construction Rule 2.

[0264] Optionally, different features of the current block may correspond to different numbers of list construction rules.

[0265] Optionally, the types of the corresponding list construction rules are different.

[0266] Optionally, the content of the corresponding list construction rules is different, and / or the execution order of the corresponding list construction rules is different.

[0267] For example, if the current block and / or sub-block is a smooth area (such as the sky, background), the dependence on the Planar mode can be reduced, and the DIMD (Decoder-side Intra Mode Derivation) mode or other modes suitable for smooth areas can be given priority. If there are areas with complex textures (such as edges, texture-dense areas) in the current block and / or sub-block, the weights of more non-adjacent blocks (such as non-neighbor blocks) or DIMD Blend Modes can be increased. That is, different textures of the current block and / or sub-block correspond to different list construction rules.

[0268] Optionally, the weights of DIMD Blend Modes can be dynamically adjusted according to the mode distribution and texture features of blocks such as neighbor blocks and non-neighbor blocks to make it more conform to the dynamic characteristics of sub-blocks in the current block.

[0269] Optionally, the length of the most likely pattern list can be dynamically adjusted according to the size of the current block and / or sub-block. For example, larger blocks use more patterns, and smaller blocks use fewer patterns.

[0270] Optionally, the number of candidate patterns can be dynamically adjusted according to the complexity of the block content of the current block and / or sub-block. More candidate patterns are used in complex areas, and fewer candidate patterns are used in simple areas.

[0271] Optionally, the content of the default mode can be dynamically adjusted according to the block mode or adjacent block mode of the current block and / or sub-block.

[0272] Optionally, a new default mode may be generated by combining the neighboring block mode and the DIMD mode to adapt to different video contents and scenes.

[0273] Step S102: determining or obtaining a most probable pattern list according to at least one list construction rule and / or an execution order corresponding to at least one list construction rule.

[0274] Optionally, after determining at least one list construction rule, a most probable pattern list including at least one candidate pattern may be constructed according to the at least one list construction rule and at least one candidate pattern.

[0275] Optionally, the candidate mode can be determined or obtained based on at least one of the neighbor blocks, non-neighbor blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block or sub-block, such as directly taking the mode of the neighbor block as the candidate mode. Optionally, different modes may correspond to different encoding and decoding stages, such as intra-frame prediction mode, inter-frame prediction mode, intra-frame block vector mode, inter-frame block vector mode, inter-frame partitioning method, cross-component prediction mode, geometric partitioning mode, spatial geometric partitioning mode and / or block partitioning method, etc.

[0276] Optionally, after determining at least one list construction rule and the execution order corresponding to the at least one list construction rule, the at least one list construction rule may be executed in sequence according to the execution order to construct the most probable pattern list.

[0277] Alternatively, if Figure 14 As shown, if the sub-blocks of the current block and its neighboring blocks are known, the current block and / or sub-block information, and / or neighboring block information can be input into a feature extraction module for feature extraction to obtain sub-block features. Optionally, the current block and / or sub-block information, and / or neighboring block information can include pixels of neighboring blocks, etc.

[0278] Optionally, Figure 14 The selector module in can select the switch to different list construction rules (such as list construction 1, list construction i and list construction n, etc.) according to the characteristics of the current block, so as to construct the most likely pattern list according to different list construction rules.

[0279] Through the technical solution of this embodiment, it is possible to determine or obtain the list construction rules and / or the execution order of the list construction rules corresponding to the most likely pattern list according to the sub-block characteristics of the current block, thereby reflecting that the most likely pattern has comprehensive consideration of the sub-block characteristics, and thus the most likely pattern list determined or obtained according to the list construction rules and / or the execution order of the list construction rules can be more accurate, and when the current block is subsequently processed according to the most likely pattern list, the processing effect can also be improved.

[0280] Fifth embodiment

[0281] Based on any of the above embodiments, a fifth embodiment is proposed.

[0282] In this embodiment, step S101 includes at least one of the following methods nine to fourteen:

[0283] Method nine: If the sub-block feature satisfies the first condition, determine at least one list construction rule as the first list construction rule;

[0284] Optionally, the first condition can be a pre-set condition. Optionally, the first condition can be set based on any feature of the current block.

[0285] Optionally, when constructing the most likely pattern list, the sub-block feature can be detected, and when it is determined that the sub-block feature satisfies the first condition, at least one list construction rule is selected from the pre-set at least one list construction rule as the first list construction rule, and the most likely pattern list is constructed according to the first list construction rule.

[0286] Optionally, for the same type of list construction rules, at least one list construction rule can be selected as the first list construction rule according to the sub-block feature, and the most likely pattern list is determined or obtained according to the first list construction rule.

[0287] Through the technical solution of this embodiment, it is possible to realize that the method for determining or obtaining the most likely pattern list is closely related to the sub-block feature, and when the sub-block feature satisfies the first condition, at least one list construction rule is determined as the first list construction rule, which can improve the accuracy of the most likely pattern list determined or obtained according to the first list construction rule in the current block, that is, a more suitable most likely pattern list can be generated.

[0288] Method ten: If the sub-block feature does not satisfy the first condition, determine at least one list construction rule as the second list construction rule;

[0289] Optionally, when constructing the most likely pattern list, the sub-block feature can be detected, and when it is determined that the sub-block feature does not satisfy the first condition, at least one list construction rule can be selected from the at least one list construction rule extracted and set as the second list construction rule, and the most likely pattern list is constructed according to the second list construction rule.

[0290] Optionally, for the same type of at least one list construction rule, at least one list construction rule can be selected according to the sub-block feature for constructing the most likely pattern list.

[0291] Optionally, if there is at least one list construction rule of the same type and the sub-block feature satisfies the first condition, at least one list construction rule can be selected from the list construction rules of the same type as the first list construction rule, and the most likely pattern list can be constructed according to the first list construction rule; and / or, if the sub-block feature does not satisfy the first condition, at least one list construction rule can be selected from the list construction rules of the same type as the second list construction rule, and the most likely pattern list can be constructed according to the second list construction rule.

[0292] Optionally, there can be at least one type of list construction rule.

[0293] Through the technical solution of this embodiment, it is possible to make the determination or acquisition method of the most likely pattern list closely related to the sub-block feature. When the sub-block feature does not satisfy the first condition, determining at least one list construction rule as the second list construction rule can improve the accuracy of the most likely pattern list determined or obtained according to the second list construction rule in the current block, that is, a more suitable most likely pattern list can be generated.

[0294] Method Eleven: If the list construction rule includes both the first list construction rule and the second list construction rule and the sub-block feature satisfies the second condition, the execution order of the first list construction rule is greater than that of the second list construction rule;

[0295] Optionally, the first condition and the second condition can be the same or different.

[0296] Optionally, if some sub-block features of the current block satisfy the first condition and some other sub-block features do not satisfy the first condition, it can be determined that the list construction rule for constructing the most likely pattern list includes both the first list construction rule and the second list construction rule.

[0297] Optionally, some sub-block features and some other sub-block features can be determined according to at least one of Method One and Method Three, and the some sub-block features and the some other sub-block features are different from each other.

[0298] Optionally, if the list construction rule corresponding to the most likely pattern list determined according to the sub-block feature includes the first list construction rule and the second list construction rule, at least one sub-block feature can be further judged. If there is at least one sub-block feature that satisfies the second condition, it can be determined that the execution order of the first list construction rule is greater than that of the second list construction rule.

[0299] Optionally, for the current block, if it has been determined that the list construction rules include a first list construction rule and a second list construction rule, the detection of at least one sub-block feature of the current block can be continued. If there is a sub-block feature that meets the second condition, when constructing the most likely pattern list, the first list construction rule can be preferentially executed, and then the second list construction rule can be executed until the most likely pattern list is determined or obtained.

[0300] Through the technical solution of this embodiment, it is possible to make the determination or obtaining method of the most likely pattern list closely related to the sub-block features. When the list construction rules include a first list construction rule and a second list construction rule, and the sub-block features meet the second condition, it is determined that the execution order of the first list construction rule is higher than that of the second list construction rule. Furthermore, the first list construction rule and the second list construction rule can be executed in sequence according to the execution order to determine or obtain the most likely pattern list. Further, since the most likely pattern list comprehensively considers the detailed features of the block, that is, the sub-block features, the processing effect can also be improved when the most likely pattern list is subsequently applied to process the current block.

[0301] Method 12: If the list construction rules include both a first list construction rule and a second list construction rule, and the sub-block features do not meet the second condition, the execution order of the first list construction rule is lower than that of the second list construction rule;

[0302] Optionally, for the current block, if there are some sub-block features that meet the first condition and there are other sub-block features that do not meet the first condition. For example, the sub-block features determined according to Method 1 meet the first condition, and the sub-block features determined according to Method 2 do not meet the first condition, it can be determined that the list construction rules include both a first list construction rule and a second list construction rule.

[0303] Optionally, at least one sub-block feature of the current block can be judged. If all sub-block features do not meet the second condition, it can be determined that the execution order of the first list construction rule is lower than that of the second list construction rule;

[0304] Optionally, at least one sub-block feature can be selected from all sub-block features of the current block. If the at least one selected sub-block feature meets the second condition, it can be determined that the execution order of the first list construction rule is higher than that of the second list construction rule; and / or, if the at least one selected sub-block feature does not meet the second condition, it can be determined that the execution order of the first list construction rule is lower than that of the second list construction rule.

[0305] Through the technical solution of this embodiment, it is possible to make the determination or acquisition method of the most likely pattern list closely related to the sub-block features. When the list construction rules include the first list construction rule and the second list construction rule, and the sub-block features do not meet the second condition, it is determined that the execution order of the first list construction rule is less than that of the second list construction rule. Furthermore, the second list construction rule and the first list construction rule can be executed in sequence according to the execution order to determine or obtain the most likely pattern list. Further, since the most likely pattern list comprehensively considers the detailed features of the block, that is, the sub-block features, the processing effect can also be improved when the most likely pattern list is subsequently applied to process the current block.

[0306] Way 13: If the list construction rules only include the first list construction rule, then determine that the execution order of the first list construction rule corresponding to the sub-block features that meet the third condition is greater than the execution order of the first list construction rule corresponding to the sub-block features that meet the fourth condition.

[0307] Optionally, the third condition can be the same as or different from the first condition or the second condition, and the fourth condition can be the same as or different from the first condition or the second condition. Optionally, the third condition and the fourth condition are different from each other.

[0308] Optionally, if the sub-block features of the current block meet the first condition and there are no sub-block features that do not meet the first condition, then it can be determined that the list construction rules only include the first list construction rule; or, if it is only necessary to detect at least one selected sub-block feature in the current block and it is detected that at least one selected sub-block feature meets the first condition, then it can be determined that the list construction rules only include the first list construction rule.

[0309] Optionally, the corresponding relationship between each list construction rule and at least one sub-block feature can be set in advance. That is, each list construction rule corresponds to at least one sub-block feature.

[0310] Optionally, if there is at least one first list construction rule, then the sub-block features corresponding to each first list construction rule can be determined.

[0311] Optionally, if there are sub-block features corresponding to the first list construction rule that meet the third condition and there are sub-block features corresponding to the first list construction rule that meet the fourth condition, then it can be determined that the execution order of the first list construction rule corresponding to the sub-block features that meet the third condition is greater than the execution order of the first list construction rule corresponding to the sub-block features that meet the fourth condition.

[0312] Optionally, if the fourth condition includes not meeting the third condition, that is, if the sub-block features corresponding to the first list construction rule do not meet the third condition, then it can be determined that the sub-block features corresponding to the first list construction rule meet the fourth condition.

[0313] Optionally, if the third condition includes not satisfying the fourth condition, that is, if the sub-block feature corresponding to the first list construction rule does not satisfy the fourth condition, it can be determined that the sub-block feature corresponding to the first list construction rule satisfies the third condition.

[0314] Optionally, the third condition and the fourth condition can also be independent of each other, and the priority of the first list construction rule corresponding to the sub-block feature that satisfies the third condition is higher than the priority of the first list construction rule corresponding to the sub-block feature that satisfies the fourth condition.

[0315] Through the technical solution of this embodiment, it is possible to realize that the determination or obtaining method of the most likely pattern list is closely related to the sub-block feature. When the list construction rule only includes the first list construction rule, the first list construction rule corresponding to the sub-block feature that satisfies the third condition will be preferentially executed, and then the first list construction rule corresponding to the sub-block feature that satisfies the fourth condition will be executed to determine or obtain the most likely pattern list. Further, since the most likely pattern list comprehensively considers the detailed features of the block, that is, the sub-block feature, the processing effect can also be improved when the most likely pattern list is subsequently used to process the current block.

[0316] Method 14: If the list construction rule only includes the second list construction rule, determine that the execution order of the second list construction rule corresponding to the sub-block feature that satisfies the fifth condition is greater than the execution order of the second list construction rule corresponding to the sub-block feature that satisfies the sixth condition.

[0317] Optionally, the fifth condition can be the same as or different from any one of the first to fourth conditions, the sixth condition can be the same as or different from any one of the first to fourth conditions, and the fifth condition and the sixth condition are different from each other.

[0318] Optionally, if the sub-block feature of the current block does not satisfy the first condition and there is no sub-block feature that satisfies the first condition, it can be determined that the list construction rule only includes the second list construction rule; or, if it is only necessary to detect at least one selected sub-block feature in the current block and it is detected that the selected sub-block feature does not satisfy the first condition, it can be determined that the list construction rule only includes the second list construction rule.

[0319] Optionally, the corresponding relationship between each list construction rule and at least one sub-block feature can be set in advance, that is, each list construction rule corresponds to at least one sub-block feature.

[0320] Optionally, if there is at least one second list construction rule, the sub-block feature corresponding to each second list construction rule can be determined.

[0321] Optionally, if there are sub-block features corresponding to the second list construction rule that satisfy the fifth condition and there are sub-block features corresponding to the second list construction rule that satisfy the sixth condition, then the execution order of the second list construction rule corresponding to the sub-block features that satisfy the fifth condition can be determined to be greater than the execution order of the second list construction rule corresponding to the sub-block features that satisfy the sixth condition.

[0322] Optionally, if the sixth condition includes not satisfying the fifth condition, that is, if the sub-block features corresponding to the second list construction rule do not satisfy the fifth condition, then it can be determined that the sub-block features corresponding to the second list construction rule satisfy the sixth condition.

[0323] Optionally, if the fifth condition includes not satisfying the sixth condition, that is, if the sub-block features corresponding to the second list construction rule do not satisfy the sixth condition, then it can be determined that the sub-block features corresponding to the second list construction rule satisfy the fifth condition.

[0324] Optionally, the fifth condition and the sixth condition can also be independent of each other, and the priority of the second list construction rule corresponding to the sub-block features that satisfy the fifth condition is higher than the priority of the second list construction rule corresponding to the sub-block features that satisfy the sixth condition.

[0325] Through the technical solution of this embodiment, it is possible to realize that the determination or obtaining method of the most likely pattern list is closely related to the sub-block features. When the list construction rule only includes the second list construction rule, the second list construction rule corresponding to the sub-block features that satisfy the fifth condition will be preferentially executed, and then the second list construction rule corresponding to the sub-block features that satisfy the sixth condition will be executed to determine or obtain the most likely pattern list. Further, since the most likely pattern list comprehensively considers the detailed features of the block, that is, the sub-block features, the processing effect can also be improved when the most likely pattern list is subsequently applied to process the current block.

[0326] Sixth Embodiment

[0327] Based on any of the above embodiments, the sixth embodiment is proposed.

[0328] In this embodiment, the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and / or the sixth condition are determined or obtained according to at least one of the following methods fifteen to twenty-five:

[0329] Method fifteen, the matching result between the sub-block division rule and the preset division rule or the preset division rule range;

[0330] Optionally, the preset division rule can be a rule for sub-block division of the current block set in advance, such as dividing along the diagonal, dividing according to a certain reference line, etc.

[0331] Optionally, the preset division rule range can include at least one division rule.

[0332] Optionally, the matching result includes a sub-block division rule, and whether it matches or does not match a preset division rule or a preset division rule range.

[0333] Optionally, if the sub-block division rule includes a preset division rule, it can be determined that the sub-block division rule matches the preset division rule; or, if the sub-block division rule is within the preset division rule range, it can be determined that the sub-block division rule matches the preset division rule range; or, if the sub-block division rule does not include the preset division rule, that is, the sub-block division rule is different from the preset division rule, it can be determined that the sub-block division rule does not match the preset division rule; or, if any division rule existing within the preset division rule range is different from the sub-block division rule, that is, the sub-block division rule is not within the preset division rule range, it can be determined that the sub-block division rule does not match the preset division rule range.

[0334] Optionally, if the sub-block division rule matches the preset division rule or the preset division range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and the sixth condition.

[0335] Optionally, if the sub-block division rule does not match the preset division rule or the preset division range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and the sixth condition.

[0336] The technical solution of this embodiment can determine or obtain the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and / or the sixth condition according to the matching result of the sub-block division rule and the preset division rule or the preset division rule range, and further determine or obtain the list construction rule and the execution order of the list construction rule, so that the most likely pattern list determined or obtained according to the list construction rule and the execution order of the list construction rule is more accurate. Further, since the most likely pattern list comprehensively considers the detailed features of the block, that is, the sub-block features, the processing effect can also be improved when the most likely pattern list is subsequently applied to process the current block.

[0337] Way Sixteen, the matching result of the shape parameter of the sub-block and / or the reference block and the preset shape parameter threshold or the preset shape parameter range;

[0338] Optionally, the preset shape parameter threshold can be any shape parameter set in advance, such as a rectangle.

[0339] Optionally, the preset shape parameter range can include at least one shape parameter.

[0340] Optionally, the matching result includes shape parameters of the sub-block and / or the reference block, and whether they match or do not match a preset shape parameter threshold or a preset shape parameter range.

[0341] Optionally, if the shape parameters of the sub-block and / or the reference block include a preset shape parameter threshold, it can be determined that the shape parameters of the sub-block and / or the reference block match the preset shape parameter threshold. For example, if the preset shape parameter threshold is a 2x2 rectangle and the shape parameter of the sub-block is also a 2x2 rectangle, it can be determined that the shape parameter of the sub-block matches the preset shape parameter threshold.

[0342] Optionally, if the shape parameter of the sub-block and / or the reference block is different from a preset shape parameter threshold, it may be determined that the shape parameter of the sub-block and / or the reference block does not match the preset shape parameter threshold.

[0343] Optionally, if the preset shape parameter range includes shape parameters of the sub-block and / or the reference block, it can be determined that the shape parameters of the sub-block and / or the reference block match the preset shape parameter range; alternatively, if the preset shape parameter range does not include shape parameters of the sub-block and / or the reference block, it can be determined that the shape parameters of the sub-block and / or the reference block do not match the preset shape parameter range.

[0344] Optionally, if the shape parameter of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or sub-block includes a preset shape parameter threshold, or is within a preset shape parameter range, it can be determined that the shape parameter of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or sub-block matches the preset shape parameter threshold, or matches the preset shape parameter range.

[0345] Optionally, if the shape parameters of the sub-block and / or the reference block match a preset shape parameter threshold or a preset shape parameter range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition and the sixth condition.

[0346] Optionally, if the shape parameters of the sub-block and / or the reference block do not match a preset shape parameter threshold or a preset shape parameter range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition and the sixth condition.

[0347] Through the technical solution of this embodiment, the first condition, the second condition, the third condition, the fourth condition, the fifth condition and / or the sixth condition can be determined or obtained according to the shape parameters of the sub-block and / or the reference block, and the matching results of the preset shape parameter threshold or the preset shape parameter range, and then the list construction rules and the execution order of the list construction rules can be determined or obtained, so that the most likely pattern list determined or obtained according to the list construction rules and the execution order of the list construction rules is more accurate. Furthermore, since the most likely pattern list comprehensively considers the detailed features of the block, that is, the sub-block features, the processing effect can also be improved when the most likely pattern list is subsequently applied to process the current block.

[0348] Mode seventeen, a matching result of a position parameter of a sub-block and / or a reference block and a preset position parameter threshold or a preset position parameter range;

[0349] Optionally, the preset position parameter threshold may be any position parameter set in advance.

[0350] Optionally, the preset position parameter range may include at least one position parameter.

[0351] Optionally, the matching result may include position parameters of the sub-block and / or the reference block, which match or do not match a preset position parameter threshold or a preset position parameter range.

[0352] Optionally, if the position parameters of the sub-block and / or the reference block include a preset position parameter threshold, it can be determined that the position parameters of the sub-block and / or the reference block match the preset position parameter threshold; alternatively, if the position parameters of the sub-block and / or the reference block are different from the preset position parameter threshold, that is, the preset position parameter threshold is not included, it can be determined that the position parameters of the sub-block and / or the reference block do not match the preset position parameter threshold; alternatively, if the preset position parameter range includes the position parameters of the sub-block and / or the reference block, it can be determined that the position parameters of the sub-block and / or the reference block match the preset position parameter range; alternatively, if the preset position parameter range does not include the position parameters of the sub-block and / or the reference block, it can be determined that the position parameters of the sub-block and / or the reference block do not match the preset position parameter range.

[0353] Optionally, if the position parameter of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or sub-block includes a preset position parameter threshold, or is within a preset position parameter range, it can be determined that the position parameter of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or sub-block matches the preset position parameter threshold, or matches the preset position parameter range.

[0354] Optionally, if the position parameters of the sub-block and / or the reference block match the preset position parameter threshold or the preset position parameter range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and the sixth condition.

[0355] Optionally, if the position parameters of the sub-block and / or the reference block do not match the preset position parameter threshold or the preset position parameter range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and the sixth condition.

[0356] Through the technical solution of this embodiment, according to the matching result of the position parameters of the sub-block and / or the reference block and the preset position parameter threshold or the preset position parameter range, the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and / or the sixth condition can be determined or obtained, and then the list construction rule and the execution order of the list construction rule can be determined or obtained, so that the most likely pattern list determined or obtained according to the list construction rule and the execution order of the list construction rule is more accurate. Further, since the most likely pattern list comprehensively considers the detailed features of the block, that is, the sub-block feature, the processing effect can also be improved when the most likely pattern list is subsequently used to process the current block.

[0357] Way 18, the matching result of the size parameters of the sub-block and / or the reference block and the preset size parameter threshold or the preset size parameter range;

[0358] Optionally, the preset size parameter threshold can be any size parameter set in advance, such as the aspect ratio.

[0359] Optionally, the preset size parameter range can include at least one size parameter.

[0360] Optionally, the matching result can include that the size parameters of the sub-block and / or the reference block match or do not match the preset size parameter threshold or the preset size parameter range.

[0361] Optionally, if the size parameters of the sub-block and / or the reference block include the preset size parameter threshold, it can be determined that the size parameters of the sub-block and / or the reference block match the preset size parameter threshold; or, if the size parameters of the sub-block and / or the reference block are different from the preset size parameter threshold, that is, do not include the preset size parameter threshold, it can be determined that the size parameters of the sub-block and / or the reference block do not match the preset size parameter threshold; or, if the preset size parameter range includes the size parameters of the sub-block and / or the reference block, it can be determined that the size parameters of the sub-block and / or the reference block match the preset size parameter range; or, if the preset size parameter range does not include the size parameters of the sub-block and / or the reference block, it can be determined that the size parameters of the sub-block and / or the reference block do not match the preset size parameter range.

[0362] Optionally, if the size parameter of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or sub-block includes a preset size parameter threshold, or is within a preset size parameter range, it can be determined that the size parameter of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or sub-block matches the preset size parameter threshold, or matches the preset size parameter range.

[0363] Optionally, if the size parameters of the sub-block and / or the reference block match a preset size parameter threshold or a preset size parameter range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition and the sixth condition.

[0364] Optionally, if the size parameters of the sub-block and / or the reference block do not match a preset size parameter threshold or a preset size parameter range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition and the sixth condition.

[0365] Through the technical solution of this embodiment, the first condition, the second condition, the third condition, the fourth condition, the fifth condition and / or the sixth condition can be determined or obtained according to the size parameters of the sub-block and / or the reference block, and the matching results of the preset size parameter threshold or the preset size parameter range, and then the list construction rules and the execution order of the list construction rules can be determined or obtained, so that the most likely mode list determined or obtained according to the list construction rules and the execution order of the list construction rules is more accurate. Furthermore, since the most likely mode list comprehensively considers the detailed features of the block, that is, the sub-block features, the processing effect can also be improved when the most likely mode list is subsequently applied to process the current block.

[0366] Mode 19: a matching result of the content complexity of the sub-block and / or the reference block and a preset content complexity threshold or a preset content complexity range;

[0367] Optionally, the preset content complexity threshold may be any content complexity set in advance.

[0368] Optionally, the preset content complexity range may include at least one content complexity.

[0369] Optionally, the matching result may include the content complexity of the sub-block and / or the reference block, which matches or does not match a preset content complexity threshold or a preset content complexity range.

[0370] Optionally, if the content complexity of the sub-block and / or the reference block includes a preset content complexity threshold, it can be determined that the content complexity of the sub-block and / or the reference block matches the preset content complexity threshold; alternatively, if the content complexity of the sub-block and / or the reference block is different from the preset content complexity threshold, that is, does not include the preset content complexity threshold, it can be determined that the content complexity of the sub-block and / or the reference block does not match the preset content complexity threshold; alternatively, if a preset content complexity range includes the content complexity of the sub-block and / or the reference block, it can be determined that the content complexity of the sub-block and / or the reference block matches the preset content complexity range; alternatively, if the preset content complexity range does not include the content complexity of the sub-block and / or the reference block, it can be determined that the content complexity of the sub-block and / or the reference block does not match the preset content complexity range.

[0371] Optionally, if the content complexity of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or sub-block includes a preset content complexity threshold, or is within a preset content complexity range, it can be determined that the content complexity of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or sub-block matches the preset content complexity threshold, or matches the preset content complexity range.

[0372] Optionally, if the content complexity of the sub-block and / or the reference block matches a preset content complexity threshold or a preset content complexity range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition and the sixth condition.

[0373] Optionally, if the content complexity of the sub-block and / or the reference block does not match a preset content complexity threshold or a preset content complexity range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition and the sixth condition.

[0374] Through the technical solution of this embodiment, the first condition, the second condition, the third condition, the fourth condition, the fifth condition and / or the sixth condition can be determined or obtained according to the content complexity of the sub-block and / or the reference block, and the matching result of the preset content complexity threshold or the preset content complexity range, and then the list construction rules and the execution order of the list construction rules can be determined or obtained, so that the most likely pattern list determined or obtained according to the list construction rules and the execution order of the list construction rules is more accurate. Furthermore, since the most likely pattern list comprehensively considers the detailed features of the block, that is, the sub-block features, the processing effect can also be improved when the most likely pattern list is subsequently applied to process the current block.

[0375] Mode 20: a matching result between a pixel type of a sub-block and / or a reference block and a preset pixel type or a preset pixel type range;

[0376] Optionally, the preset pixel type may be any pixel type set in advance.

[0377] Optionally, the preset pixel type range may include at least one pixel type.

[0378] Optionally, the matching result may include whether the pixel type of the sub-block and / or the reference block matches or does not match a preset pixel type or a preset pixel type range.

[0379] Optionally, if the pixel type of the sub-block and / or the reference block includes a preset pixel type, it can be determined that the pixel type of the sub-block and / or the reference block matches the preset pixel type; alternatively, if the pixel type of the sub-block and / or the reference block is different from the preset pixel type, that is, does not include the preset pixel type, it can be determined that the pixel type of the sub-block and / or the reference block does not match the preset pixel type; alternatively, if the preset pixel type range includes the pixel type of the sub-block and / or the reference block, it can be determined that the pixel type of the sub-block and / or the reference block matches the preset pixel type range; alternatively, if the preset pixel type range does not include the pixel type of the sub-block and / or the reference block, it can be determined that the pixel type of the sub-block and / or the reference block does not match the preset pixel type range.

[0380] Optionally, if the pixel type of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or sub-block includes a preset pixel type, or is within a preset pixel type range, it can be determined that the pixel type of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or sub-block matches the preset pixel type, or matches the preset pixel type range.

[0381] Optionally, if the pixel type of the sub-block and / or the reference block matches a preset pixel type or a preset pixel type range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition and the sixth condition.

[0382] Optionally, if the pixel type of the sub-block and / or the reference block does not match the preset pixel type or the preset pixel type range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition and the sixth condition.

[0383] Through the technical solution of this embodiment, the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and / or the sixth condition can be determined or obtained according to the pixel type of the sub-block and / or the reference block and the matching result of the preset pixel type or the preset pixel type range, and then the list construction rule and the execution order of the list construction rule can be determined or obtained, so that the most likely mode list determined or obtained according to the list construction rule and the execution order of the list construction rule is more accurate. Further, since the most likely mode list comprehensively considers the detailed features of the block, that is, the sub-block features, the processing effect can also be improved when the most likely mode list is subsequently applied to process the current block.

[0384] Way twenty-one, the matching result between the feature of the current block and the preset feature or the preset feature range;

[0385] Optionally, the preset feature can be any feature set in advance and can be at least one of the features of the current block and / or the sub-block features.

[0386] Optionally, the preset feature range can include at least one feature.

[0387] Optionally, the matching result can include that the features of the sub-block and / or the reference block match or do not match the preset feature or the preset feature range.

[0388] Optionally, if the feature of the current block includes the preset feature, it can be determined that the feature of the current block matches the preset feature; or, if the feature of the current block is different from the preset feature, that is, does not include the preset feature, it can be determined that the feature of the current block does not match the preset feature; or, if the preset feature range includes the feature of the current block, it can be determined that the feature of the current block matches the preset feature range; or, if the preset feature range does not include the feature of the current block, it can be determined that the feature of the current block does not match the preset feature range.

[0389] Optionally, if there is an intersection between the feature of the current block and the preset feature range, it can be determined that the feature of the current block matches the preset feature range.

[0390] Optionally, if the feature of the current block matches the preset feature or the preset feature range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and the sixth condition.

[0391] Optionally, if the feature of the current block does not match the preset feature or the preset feature range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and the sixth condition.

[0392] Optionally, if the sub-block feature includes a preset feature, or there is an intersection between the sub-block feature and the preset feature range, for example, the preset feature range includes at least one sub-block feature, it can be determined that the sub-block feature matches the preset feature or the preset feature range.

[0393] Through the technical solution of this embodiment, according to the feature of the current block and the matching result of the preset feature or the preset feature range, the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and / or the sixth condition can be determined or obtained, and then the list construction rule and the execution order of the list construction rule can be determined or obtained, so that the most likely pattern list determined or obtained according to the list construction rule and the execution order of the list construction rule is more accurate. Further, since the most likely pattern list comprehensively considers the detailed features of the block, that is, the sub-block feature, the processing effect can also be improved when the most likely pattern list is subsequently applied to process the current block.

[0394] Way 22, the matching result of the pixel feature of the reference template of the sub-block and / or the pixel feature of the reference block, and the preset pixel feature threshold or the preset pixel feature range;

[0395] Optionally, the preset pixel feature threshold can be any pixel feature set in advance. For example, the pixel feature of at least one reference block can be used as the preset pixel feature threshold.

[0396] Optionally, the preset pixel feature range can include at least one pixel feature.

[0397] Optionally, the matching result can include that the pixel feature of the reference template of the sub-block and / or the pixel feature of the reference block matches or does not match the preset pixel feature threshold or the preset pixel feature range.

[0398] Optionally, if the pixel feature of the reference template of the sub-block and / or the pixel feature of the reference block includes the preset pixel feature threshold, it can be determined that the pixel feature of the reference template of the sub-block and / or the pixel feature of the reference block matches the preset pixel feature threshold; or, if the pixel feature of the reference template of the sub-block and / or the pixel feature of the reference block is different from the preset pixel feature threshold, that is, does not include the preset pixel feature threshold, it can be determined that the pixel feature of the reference template of the sub-block and / or the pixel feature of the reference block does not match the preset pixel feature threshold; or, if the preset pixel feature range includes the pixel feature of the reference template of the sub-block and / or the pixel feature of the reference block, it can be determined that the pixel feature of the reference template of the sub-block and / or the pixel feature of the reference block matches the preset pixel feature range; or, if the preset pixel feature range does not include the pixel feature of the reference template of the sub-block and / or the pixel feature of the reference block, it can be determined that the pixel feature of the reference template of the sub-block and / or the pixel feature of the reference block does not match the preset pixel feature range.

[0399] Optionally, if the pixel features of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or sub-block include a preset pixel feature threshold, or are within a preset pixel feature range, it can be determined that the pixel features of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or sub-block match the preset pixel feature threshold, or match the preset pixel feature range.

[0400] Optionally, if the pixel features of the reference template of the sub-block and / or the pixel features of the reference block match a preset pixel feature threshold or a preset pixel feature range, it can be determined that the sub-block features satisfy at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition and the sixth condition.

[0401] Optionally, if the pixel features of the reference template of the sub-block and / or the pixel features of the reference block do not match a preset pixel feature threshold or a preset pixel feature range, it can be determined that the sub-block features satisfy at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition and the sixth condition.

[0402] Through the technical solution of this embodiment, the first condition, the second condition, the third condition, the fourth condition, the fifth condition and / or the sixth condition can be determined or obtained according to the matching results of the pixel features of the reference template of the sub-block and / or the pixel features of the reference block, and the preset pixel feature threshold or the preset pixel feature range, and then the list construction rules and the execution order of the list construction rules can be determined or obtained, so that the most likely pattern list determined or obtained according to the list construction rules and the execution order of the list construction rules is more accurate. Furthermore, since the most likely pattern list comprehensively considers the detailed features of the block, that is, the sub-block features, the processing effect can also be improved when the most likely pattern list is subsequently applied to process the current block.

[0403] Mode 23: the similarity between the reference template of the sub-block and the reference block, and the matching result of a preset similarity threshold or a preset similarity interval;

[0404] Optionally, the preset similarity threshold may be any similarity set in advance, such as 80%.

[0405] Optionally, the preset similarity interval may include at least one similarity.

[0406] Optionally, the matching result may include the similarity between the reference template of the sub-block and the reference block, and whether it matches or does not match a preset similarity threshold or a preset similarity interval.

[0407] Optionally, if the similarity between the reference template of the sub-block and the reference block is greater than a preset similarity threshold, it can be determined that the similarity between the reference template of the sub-block and the reference block matches the preset similarity threshold; or, if the similarity between the reference template of the sub-block and the reference block is less than or equal to the preset similarity threshold, it can be determined that the similarity between the reference template of the sub-block and the reference block does not match the preset similarity threshold.

[0408] Optionally, if the similarity between the reference template of the sub-block and the reference block is within a preset similarity interval, it can be determined that the similarity between the reference template of the sub-block and the reference block matches the preset similarity interval; or, if the similarity between the reference template of the sub-block and the reference block is not within the preset similarity interval, it can be determined that the similarity between the reference template of the sub-block and the reference block does not match the preset similarity interval.

[0409] Optionally, if the similarity between the reference template of the sub-block and the reference block matches the preset similarity threshold or the preset similarity interval, it can be determined that the sub-block features satisfy at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and the sixth condition.

[0410] Optionally, if the similarity between the reference template of the sub-block and the reference block does not match the preset similarity threshold or the preset similarity interval, it can be determined that the sub-block features satisfy at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and the sixth condition.

[0411] Through the technical solution of this embodiment, according to the matching result of the similarity between the reference template of the sub-block and the reference block and the preset similarity threshold or the preset similarity interval, the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and / or the sixth condition can be determined or obtained, and then the list construction rule and the execution order of the list construction rule can be determined or obtained, so that the most likely pattern list determined or obtained according to the list construction rule and the execution order of the list construction rule is more accurate. Further, since the most likely pattern list comprehensively considers the detailed features of the block, that is, the sub-block features, the processing effect can also be improved when the most likely pattern list is subsequently used to process the current block.

[0412] Method 24: The matching result of the number of reference blocks and the preset number or the preset number interval;

[0413] Optionally, the preset number can be any number set in advance, such as 5.

[0414] Optionally, the preset number interval can include at least one number.

[0415] Optionally, the matching result can include that the number of reference blocks matches or does not match the preset number or the preset number interval.

[0416] Optionally, if the number of reference blocks is greater than a preset number, it can be determined that the number of reference blocks matches the preset number; or, if the number of reference blocks is less than or equal to the preset number, it can be determined that the number of reference blocks does not match the preset number.

[0417] Optionally, if the number of reference blocks is within a preset number range, it can be determined that the number of reference blocks matches the preset number range; or, if the number of reference blocks is not within the preset number range, it can be determined that the number of reference blocks does not match the preset number range.

[0418] Optionally, if the number of reference blocks matches the preset number or the preset number range, it can be determined that the sub-block features satisfy at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and the sixth condition.

[0419] Optionally, if the number of reference blocks does not match the preset number or the preset number range, it can be determined that the sub-block features satisfy at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and the sixth condition.

[0420] Through the technical solution of this embodiment, according to the matching result of the number of reference blocks and the preset number or the preset number range, the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and / or the sixth condition can be determined or obtained, and then the list construction rule and the execution order of the list construction rule can be determined or obtained, so that the most likely pattern list determined or obtained according to the list construction rule and the execution order of the list construction rule is more accurate. Further, since the most likely pattern list comprehensively considers the detailed features of the blocks, that is, the sub-block features, the processing effect can also be improved when the most likely pattern list is subsequently used to process the current block.

[0421] Method 25, the matching result of the pattern of the reference block and the preset pattern or the preset pattern range.

[0422] Optionally, the preset pattern can be any pattern set in advance, and for different encoding and decoding stages, the corresponding preset patterns are different. For example, the preset pattern can be at least one of an intra prediction mode, an inter prediction mode, an intra block vector mode, an inter block vector mode, an inter partition mode, a cross-component prediction mode, a geometric partition mode, a spatial geometric partition mode, and a block partition mode.

[0423] Optionally, the preset pattern range can include at least one pattern, such as the preset pattern.

[0424] Optionally, the matching result can include that the pattern of the reference block matches or does not match the preset pattern or the preset pattern range.

[0425] Optionally, if a mode of at least one of a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block, and a candidate block corresponding to the current block and / or the sub-block is the same as a preset mode or is within a preset mode range, the matching result may be determined to be a match;

[0426] Optionally, if the mode of at least one of the neighbor blocks, non-neighbor blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or sub-block is different from the preset mode or is not within the preset mode range, the matching result can be determined to be a mismatch.

[0427] Optionally, if the pattern of the reference block matches a preset pattern or a preset pattern range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition and the sixth condition.

[0428] Optionally, if the mode of the reference block does not match the preset mode or the preset mode range, it can be determined that the sub-block feature satisfies at least one of the first condition, the second condition, the third condition, the fourth condition, the fifth condition and the sixth condition.

[0429] Through the technical solution of this embodiment, the first condition, the second condition, the third condition, the fourth condition, the fifth condition and / or the sixth condition can be determined or obtained according to the pattern of the reference block and the matching result of the preset pattern or the preset pattern range, and then the list construction rules and the execution order of the list construction rules can be determined or obtained, so that the most likely pattern list determined or obtained according to the list construction rules and the execution order of the list construction rules is more accurate. Furthermore, since the most likely pattern list comprehensively considers the detailed features of the block, that is, the sub-block features, the processing effect can also be improved when the most likely pattern list is subsequently applied to process the current block.

[0430] Seventh embodiment

[0431] Based on any of the above embodiments, a seventh embodiment is proposed.

[0432] In this embodiment, the first list construction rule includes at least one of the following methods 26 to 35:

[0433] Mode 26, the length of the most probable pattern list is the first length;

[0434] Optionally, the first length may be any length set in advance and is not limited here.

[0435] Optionally, the length of the most probable pattern list may be limited, such as 6 at the first level and 16 at the second level.

[0436] Optionally, if it is necessary to construct a most probable pattern list, the sub-block features can be determined and a suitable list construction rule can be selected based on the sub-block features. Optionally, when the sub-block features meet the first condition, the first list construction rule can be determined to include the length of the most probable pattern list being the first length.

[0437] Optionally, when constructing the most probable pattern list, the length of the most probable pattern list may be restricted according to the first list construction rule, that is, the length of the most probable pattern list is determined to be the first length.

[0438] Through the technical solution of this embodiment, it can be ensured that the length of the most probable pattern list is closely related to the sub-block characteristics, and when the sub-block characteristics meet the first condition, the first list construction rule for determining or obtaining the most probable pattern list includes that the length of the most probable pattern list is the first length, which can ensure that the most probable pattern list determined or obtained according to the first list construction rule is applicable to the sub-blocks of the current block with high accuracy. Furthermore, when the current block is predicted through the most probable list, the processing effect can also be improved.

[0439] Mode 27, the default mode is located at a preset list position of the most likely mode list;

[0440] Optionally, the default mode may be a mode set in advance, which may be at least one of a neighbor block mode, a non-neighbor block mode, a co-located block mode, a time domain block mode, a default block mode and a candidate block mode.

[0441] Optionally, the default mode can also be set based on user needs, and different modes can be set as default modes in different encoding and decoding stages, such as inter-frame prediction mode, intra-frame block vector mode, inter-frame block vector mode, inter-frame partitioning mode, cross-component prediction mode, geometric partitioning mode, spatial geometric partitioning mode and / or block partitioning mode.

[0442] Optionally, the preset list position may be a list position set in advance based on user needs, such as a head list position (ie, the first position) of the most probable mode list.

[0443] Optionally, if it is necessary to construct a most probable pattern list, the sub-block characteristics can be determined and a suitable list construction rule can be selected based on the sub-block characteristics. When the sub-block characteristics meet the first condition, at least one item from Methods 26 to 27 can be selected as the first list construction rule, and the most probable pattern list can be constructed based on the first list construction rule.

[0444] Optionally, the determined or obtained most probable pattern list has a corresponding length of a first length and / or a default pattern is located at a preset list position of the most probable pattern list.

[0445] Through the technical solution of this embodiment, it can be ensured that the most likely mode list is closely associated with the sub-block features. When the sub-block features meet the first condition, the first list construction rule for determining or obtaining the most likely mode list includes that the default mode is located at the preset list position of the most likely mode list, which can ensure that the most likely mode list determined or obtained according to the first list construction rule is more accurate for the sub-blocks of the current block. Further, when predicting the current block through the most likely list, the processing effect can also be improved.

[0446] Mode Twenty-Eight: Determine or obtain the position of at least one candidate mode in the most likely mode list according to the calculation result of calculating the cost of at least one candidate mode according to the first cost function.

[0447] Optionally, the first cost function can be a pre-set cost function, such as SAD (Sum of Absolute Differences), SATD (Sum of Transformed Absolute Differences), MRSAD (Mean Removal SAD), MRSATD (Mean-Removed Sum of Absolute Transformed Differences), etc.

[0448] Optionally, the first cost function can be used to calculate the cost of at least one candidate mode to obtain the calculated cost and use it as the calculation result.

[0449] Optionally, when calculating the cost of at least one candidate mode, the SAD method can be used for calculation. For example, SAD = Sum|Org - Pred| can be used for calculation, where Pred is the predicted block, Org is the original block, and Sum|| is the sum of the absolute values of all numerical values. For example, first determine the absolute value of the difference in pixel values at the same position in the original block and the predicted block, and then calculate the sum of the corresponding absolute values at all positions in the original block and the predicted block.

[0450] Optionally, if it is necessary to construct the most likely mode list, an appropriate list construction rule can be selected according to the sub-block features. For example, when the sub-block features meet the first condition, at least one of Modes Twenty-Six to Twenty-Eight can be selected as the first list construction rule, and the most likely mode list can be constructed according to the first list construction rule.

[0451] Optionally, the positions of the candidate modes in the determined or obtained most likely mode list can be obtained by sorting according to the costs calculated by the first cost function. For example, the smaller the cost, the more forward the position.

[0452] Through the technical solution of this embodiment, it can be ensured that the most probable mode list is closely related to the sub-block characteristics, and when the sub-block characteristics meet the first condition, the first list construction rule of the most probable mode list is determined or obtained, including the calculation result of the cost calculation of at least one candidate mode according to the first cost function, and the position of at least one candidate mode in the most probable mode list is determined or obtained. It can be ensured that the most probable mode list determined or obtained according to the first list construction rule is applicable to the sub-blocks of the current block with high accuracy. Furthermore, when the current block is predicted through the most probable list, the processing effect can also be improved.

[0453] Mode 29, determining or obtaining a most probable mode list according to a scanning result of scanning at least one reference block in a first order;

[0454] Optionally, the first order may be a scanning order set in advance, such as when scanning neighboring blocks, first scanning the neighboring blocks above the current block.

[0455] Optionally, the first order can be determined based on the position coordinates and / or size parameters of the target block and the current block. For example, the distance between the target block and the current block is determined based on the position coordinates of the target block and the current block, and the target block with the closest distance is scanned preferentially. For example, the scanning order can be determined based on the size parameter of the target block. The larger the size parameter, the higher the priority of the scanning order.

[0456] The target block may be a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block and / or a candidate block corresponding to the current block and / or subblock.

[0457] Optionally, taking neighbor blocks as an example, the center distances from the center of all neighbor blocks to the center of the current block and / or sub-block can be calculated, and all center distances can be arranged in order from small to large to obtain the order of neighbor blocks, and this order of neighbor blocks can be used as the first order.

[0458] Optionally, the first order corresponding to the neighboring blocks, the first order corresponding to the non-neighboring blocks, the first order corresponding to the co-located blocks, the first order corresponding to the time domain blocks, the first order corresponding to the cross-component blocks, and the first order corresponding to the candidate blocks may be the same or different, or may be partially the same and partially different.

[0459] Optionally, the scanning result may include at least one of at least one neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block and a candidate block scanned in the first order.

[0460] Optionally, at least one of at least one neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block and a candidate block may be scanned in a first order to obtain a scanning result.

[0461] Optionally, based on the scanning results, a corresponding pattern can be obtained in at least one scanned neighbor block, non-neighbor block, co-located block, time domain block, cross-component block, default block and / or candidate block, and the most likely pattern list can be determined or obtained based on the obtained pattern.

[0462] Optionally, at least one of the patterns of at least one scanned neighbor block, at least one non-neighbor block, at least one co-located block, at least one time domain block, at least one cross-component block, at least one default block and at least one candidate block can be obtained, and a cost calculation can be performed. The position of each pattern in the most probable pattern list is determined based on the cost calculation result, for example, the pattern with the smallest cost is sorted at the first place in the most probable pattern list.

[0463] Optionally, if it is necessary to construct a most probable pattern list, an appropriate list construction rule can be selected based on the sub-block characteristics. For example, when the sub-block characteristics meet the first condition, at least one item can be selected from methods 26 to 29 as the first list construction rule, and the most probable pattern list can be constructed based on the first list construction rule.

[0464] Optionally, at least one of a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block, and a candidate block corresponding to at least one current block or sub-block may be scanned in the first order to obtain a scanning result, and a most probable mode list may be determined or obtained based on the scanning result. For example, the most probable mode list includes a mode in a block corresponding to the scanning result.

[0465] Through the technical solution of this embodiment, it can be ensured that the most probable mode list is closely related to the sub-block characteristics, and when the sub-block characteristics meet the first condition, the first list construction rule for determining or obtaining the most probable mode list includes determining or obtaining the most probable mode list according to the scanning result of scanning at least one reference block in a first order, which can ensure that the most probable mode list determined or obtained according to the first list construction rule is applicable to the sub-blocks of the current block with high accuracy. Furthermore, when the current block is predicted through the most probable list, the processing effect can also be improved.

[0466] Mode 30, determining or obtaining a most probable mode list according to the selected first number of reference blocks;

[0467] Optionally, the first number may be the number of blocks set in advance. Optionally, the first numbers corresponding to different reference blocks may be the same or different.

[0468] Optionally, candidate patterns may be determined or obtained based on patterns in the selected first number of reference blocks, and a most probable pattern list including at least one candidate pattern may be determined or obtained.

[0469] Optionally, patterns in the selected first number of reference blocks may be used as candidate patterns, and patterns in neighboring blocks of the selected first number of reference blocks may also be used as candidate patterns.

[0470] Optionally, the most likely mode list can be determined or obtained based on the selected first number of current blocks, and / or at least one of neighbor blocks, non-neighbor blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the sub-blocks.

[0471] Optionally, if it is necessary to construct a most probable pattern list, an appropriate list construction rule can be selected based on the sub-block characteristics. For example, when the sub-block characteristics meet the first condition, at least one item from methods 26 to 30 can be selected as the first list construction rule, and the most probable pattern list can be constructed based on the first list construction rule.

[0472] Through the technical solution of this embodiment, it can be ensured that the most probable mode list is closely related to the sub-block characteristics, and when the sub-block characteristics meet the first condition, the first list construction rule for determining or obtaining the most probable mode list includes determining or obtaining the most probable mode list based on a selected first number of reference blocks, which can ensure that the most probable mode list determined or obtained according to the first list construction rule is applicable to the sub-blocks of the current block with high accuracy. Furthermore, when the current block is predicted through the most probable list, the processing effect can also be improved.

[0473] Mode 31, determining or obtaining a most probable mode list according to at least one reference block selected according to the first distance;

[0474] Optionally, the first distance may be a distance set in advance, and may be a pixel distance.

[0475] Optionally, the first distance may be determined or obtained according to a distance function set in advance, and the distance function may be a deformation of the pixel distance, such as the square of the pixel distance.

[0476] For example, if you need to calculate the distance from pixel 1 (x0, y0) to pixel 2 (x1, y1), you can use the distance function to calculate, that is, according to (x0-x1) 2 +(y0-y1) 2 Calculate to get the distance from pixel 1 to pixel 2.

[0477] Optionally, taking neighbor blocks as an example, the distance from at least one pixel in the neighbor block to at least one pixel in the reference template of the current block can be calculated according to a distance function, and used as the distance from the neighbor block to the current block, and the neighbor block can be selected based on the distance, such as selecting the first five neighbor blocks closest to each other, to determine or obtain the most likely pattern list.

[0478] Optionally, the first distances corresponding to different reference blocks may be the same or different.

[0479] Optionally, a candidate pattern may be determined or obtained based on a pattern in at least one reference block selected according to the first distance, and a most probable pattern list including at least one candidate pattern may be determined or obtained.

[0480] Optionally, the pattern of at least one reference block selected based on the first distance may be used as a candidate pattern. The pattern of a neighboring block of at least one reference block selected based on the first distance may also be used as a candidate pattern.

[0481] Optionally, the most likely mode list can be determined or obtained based on at least one current block selected according to the first distance, and / or at least one of a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block and a candidate block corresponding to the sub-block.

[0482] Optionally, if it is necessary to construct a most probable pattern list, an appropriate list construction rule can be selected based on the sub-block characteristics. For example, when the sub-block characteristics meet the first condition, at least one item can be selected from methods 26 to 31 as the first list construction rule, and the most probable pattern list can be constructed based on the first list construction rule.

[0483] Through the technical solution of this embodiment, it can be ensured that the most probable mode list is closely related to the sub-block characteristics, and when the sub-block characteristics meet the first condition, the first list construction rule for determining or obtaining the most probable mode list includes determining or obtaining the most probable mode list based on at least one reference block selected according to the first distance, which can ensure that the most probable mode list determined or obtained according to the first list construction rule is applicable to the sub-blocks of the current block with high accuracy. Furthermore, when the current block is predicted through the most probable list, the processing effect can also be improved.

[0484] Method 32: sorting the reference blocks according to the distance between the current block and the reference blocks, and determining or obtaining the most likely mode list according to the sorted reference blocks;

[0485] Optionally, the distance between the current block and each reference block can be determined, and the reference blocks can be sorted based on the distance, for example, the reference blocks corresponding to each distance can be sorted in order from small to large, or the reference blocks corresponding to each distance can be sorted in order from large to small.

[0486] Optionally, a pattern of the sorted reference blocks may be determined, and at least one candidate pattern may be determined or obtained based on the pattern of the sorted reference blocks, and a most probable pattern list including the at least one candidate pattern may be determined or obtained.

[0487] Optionally, some or all of the patterns in the sorted reference blocks may be selected as candidate patterns, for example, the top five patterns may be selected as candidate patterns.

[0488] Optionally, at least one of the neighbor blocks, non-neighbor blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block can be sorted according to the distance between the current block and at least one of the neighbor blocks, non-neighbor blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block, and the most likely mode list is determined or obtained according to the sorting result.

[0489] Optionally, at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the sub-block can be sorted according to the distance between the sub-block in the current block and at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the sub-block, and the most likely mode list is determined or obtained according to the sorting result.

[0490] Optionally, if it is necessary to construct a most probable pattern list, an appropriate list construction rule can be selected based on the sub-block characteristics. For example, when the sub-block characteristics meet the first condition, at least one item from Methods 26 to 32 can be selected as the first list construction rule, and the most probable pattern list can be constructed based on the first list construction rule.

[0491] Through the technical solution of this embodiment, it can be ensured that the most probable mode list is closely related to the sub-block characteristics, and when the sub-block characteristics meet the first condition, the first list construction rule for determining or obtaining the most probable mode list includes sorting the reference blocks according to the distance between the current block and the reference block, and determining or obtaining the most probable mode list based on the sorted reference blocks. This can ensure that the most probable mode list determined or obtained according to the first list construction rule is applicable to the sub-blocks of the current block with high accuracy. Furthermore, when the current block is predicted through the most probable list, the processing effect can also be improved.

[0492] Method 33, taking blocks within the first range as neighboring blocks, and determining or obtaining a most probable mode list according to at least one neighboring block;

[0493] Optionally, the first range may be a pixel range set in advance, and there is at least one image block within the first range.

[0494] Optionally, blocks within a first range from the current block and / or sub-block starting from the current block and / or sub-block may be used as neighbor blocks, and the modes of the neighbor blocks may be determined, and a most probable mode list may be determined or obtained based on the modes of the neighbor blocks. For example, the most probable mode list includes the modes of the neighbor blocks.

[0495] Optionally, if it is necessary to construct a most probable pattern list, an appropriate list construction rule can be selected based on the sub-block characteristics. For example, when the sub-block characteristics meet the first condition, at least one item from Methods 26 to 33 can be selected as the first list construction rule, and the most probable pattern list can be constructed based on the first list construction rule.

[0496] Through the technical solution of this embodiment, it can be ensured that the most probable mode list is closely related to the sub-block characteristics, and when the sub-block characteristics meet the first condition, the first list construction rule for determining or obtaining the most probable mode list includes taking blocks within the first range as neighboring blocks, and determining or obtaining the most probable mode list based on at least one neighboring block, which can ensure that the most probable mode list determined or obtained according to the first list construction rule is applicable to the sub-blocks of the current block with high accuracy. Furthermore, when the current block is predicted through the most probable list, the processing effect can also be improved.

[0497] Mode 34, determining or obtaining a most probable mode list of a sub-block according to a third number of most probable mode lists of at least one other sub-block and / or reference block;

[0498] Optionally, the third number may be the number of blocks set in advance, and may be a positive integer greater than zero.

[0499] Optionally, the current block may include at least one sub-block, and the at least one sub-block may include the current sub-block and other sub-blocks.

[0500] Optionally, if the most probable mode lists of other sub-blocks have been determined or obtained, the most probable mode list of the sub-block can be determined or obtained based on the most probable mode lists of some or all of the other sub-blocks, such as determining or obtaining the most probable mode list of the sub-block based on the most probable mode lists of at least one other sub-block of a third number.

[0501] Optionally, the most probable mode lists of a third number of reference blocks may be determined or obtained, and the most probable mode list of the sub-block may be determined or obtained based on the most probable mode list of at least one reference block.

[0502] Optionally, a most probable mode list of at least one of neighbor blocks, non-neighbor blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to a third number of current blocks or sub-blocks can be determined or obtained, and based on the most probable mode list of at least one item, a most probable mode list of the sub-block can be determined or obtained.

[0503] Optionally, candidate modes in the most probable mode list of at least one other sub-block and / or reference block may be determined, and some or all of the candidate modes may be selected as candidate modes in the most probable mode list of the sub-block.

[0504] Optionally, the length of the list of the most likely patterns of at least one other sub-block and / or reference block can be determined and used as the length of the list of the most likely patterns of the sub-block.

[0505] Optionally, the position of the default pattern in the list of the most likely patterns of at least one other sub-block and / or reference block can be determined, and based on this, the position of the default pattern in the list of the most likely patterns of the sub-block can be determined.

[0506] Optionally, if construction of the list of the most likely patterns is required, appropriate list construction rules can be selected according to the sub-block features. For example, when the sub-block features meet the first condition, at least one of Modes 26 to 34 can be selected as the first list construction rule, and the list of the most likely patterns can be constructed according to the first list construction rule.

[0507] Through the technical solution of this embodiment, it can be ensured that the list of the most likely patterns is closely related to the sub-block features, and when the sub-block features meet the first condition, the first list construction rule for determining or obtaining the list of the most likely patterns includes determining or obtaining the list of the most likely patterns of the sub-block according to the list of the most likely patterns of at least one other sub-block and / or reference block with a third quantity, which can ensure that the list of the most likely patterns determined or obtained according to the first list construction rule is highly accurate for the sub-blocks of the current block. Further, when the current block is predicted through the list of the most likely patterns, the processing effect can also be improved.

[0508] Mode 35: Determine or obtain the list of the most likely patterns according to a preset sorting rule.

[0509] Optionally, the preset sorting rule can be a sorting rule set in advance. For example, sorting can be performed in ascending order according to the cost values of the candidate patterns.

[0510] Optionally, if construction of the list of the most likely patterns is required, appropriate list construction rules can be selected according to the sub-block features. For example, when the sub-block features meet the first condition, at least one of Modes 26 to 35 can be selected as the first list construction rule, and the list of the most likely patterns can be constructed according to the first list construction rule.

[0511] Through the technical solution of this embodiment, it can be ensured that the list of the most likely patterns is closely related to the sub-block features, and when the sub-block features meet the first condition, the first list construction rule for determining or obtaining the list of the most likely patterns includes determining or obtaining the list of the most likely patterns according to the preset sorting rule, which can ensure that the list of the most likely patterns determined or obtained according to the first list construction rule is highly accurate for the sub-blocks of the current block. Further, when the current block is predicted through the list of the most likely patterns, the processing effect can also be improved.

[0512] Eighth Embodiment

[0513] Based on any of the above embodiments, an eighth embodiment is proposed.

[0514] In this embodiment, the second list construction rule includes at least one of the following methods thirty-six to forty-five:

[0515] Method thirty-six, the length of the most likely pattern list is the second length;

[0516] Optionally, the second length can be a pre-set list length. Optionally, different from the first length, the number of the second lengths can be at least one.

[0517] Optionally, the sub-block features of different sub-blocks correspond to different lengths of the most likely pattern lists.

[0518] Optionally, if there are at least one different sub-blocks, for each sub-block, the corresponding length of the most likely pattern list can be determined. Optionally, the lengths of the most likely pattern lists corresponding to each sub-block can all be different, or some can be the same and some can be different.

[0519] Optionally, if it is necessary to construct the most likely pattern list for the current block, an appropriate list construction rule can be selected according to the sub-block features. For example, when the sub-block features do not meet the first condition, it can be determined that the second list construction rule includes that the length of the most likely pattern list is the second length, and the most likely pattern list with the second length can be determined or obtained.

[0520] Optionally, if there are at least one sub-block features, and some sub-block features meet the first condition while some do not, the most likely pattern list can be constructed jointly according to the first list construction rule and the second list construction rule.

[0521] Optionally, if some sub-block features of the current block meet the first condition while some do not, at least one of the above methods twenty-seven to thirty-five can be used to determine or obtain the first list construction rule, and the second list construction rule can be determined or obtained according to method thirty-six. Then, the most likely pattern list can be determined or obtained according to the first list construction rule and the second list construction rule.

[0522] Through the technical solution of this embodiment, it can be ensured that the most likely pattern list is closely related to the sub-block features. When the sub-block features do not meet the first condition, it can be determined that the second list construction rule for determining or obtaining the most likely pattern list includes that the length of the most likely pattern list is the second length, which can ensure that the most likely pattern list determined or obtained according to the second list construction rule is highly accurate for the sub-blocks of the current block. Further, when the current block is predicted by the most likely list, the processing effect can also be improved.

[0523] Method 37: Determine the position of the default mode in the list of most likely modes according to the preset mode sorting rule;

[0524] Optionally, the preset mode sorting rule can be a pre-set sorting rule. For example, it can be sorted according to the cost of the mode, which can be the same as or different from the preset sorting rule.

[0525] Optionally, the sub-block features of different sub-blocks correspond to different methods for determining the position of the default mode in the list of most likely modes. For example, directly determine the position in the preset list, determine according to a preset mode sorting rule, or determine according to another mode sorting rule, etc.

[0526] Optionally, if there is at least one different sub-block, for each sub-block, the position of the default mode in the list of most likely modes can be determined according to different rules.

[0527] Optionally, if it is necessary to construct a list of most likely modes for the current block, an appropriate list construction rule can be selected according to the sub-block features. For example, when the sub-block features do not meet the first condition, it can be determined that the second list construction rule includes determining the position of the default mode in the list of most likely modes according to the preset mode sorting rule, and then constructing the list of most likely modes according to the second list construction rule.

[0528] Optionally, if some sub-block features of the current block meet the first condition and some do not, then the first list construction rule can be determined or obtained according to at least one of Method 26, Method 28 to Method 35, and the second list construction rule can be determined or obtained according to Method 37; or, the first list construction rule can also be determined or obtained according to at least one of Method 27 to Method 35, and the second list construction rule can be determined or obtained according to Method 36; or, the first list construction rule can also be determined or obtained according to at least one of Method 28 to Method 35, and the second list construction rule can be determined or obtained according to at least one of Method 36 to Method 37.

[0529] Optionally, the list of most likely modes can be determined or obtained according to the first list construction rule and the second list construction rule. For example, the list of most likely modes can be jointly constructed according to the first list construction rule and the second list construction rule.

[0530] Through the technical solution of this embodiment, it can be ensured that the most likely mode list is closely associated with the sub-block features. When the sub-block features do not meet the first condition, the second list construction rule for determining or obtaining the most likely mode list includes determining the position of the default mode in the most likely mode list according to the preset mode sorting rule, which can ensure that the most likely mode list determined or obtained according to the second list construction rule is highly accurate for the sub-blocks of the current block. Further, when predicting the current block through the most likely list, the processing effect can also be improved.

[0531] Method 38: Determine or obtain the position of at least one candidate mode in the most likely mode list according to the calculation result of calculating the cost of at least one candidate mode according to the second cost function;

[0532] Optionally, the second cost function can be a pre-set cost function and is different from the first cost function. It can be at least one of SAD (Sum of Absolute Differences), SATD (Sum of Transformed Absolute Differences), MRSAD (Mean Removal SAD), MRSATD (Mean-Removed Sum of Absolute Transformed Differences), etc.

[0533] Optionally, the sub-block features of different sub-blocks correspond to different cost functions.

[0534] Optionally, if there are at least two different sub-blocks, for each sub-block, it can be determined to calculate the cost of at least one candidate mode using its respective corresponding cost function, and then determine or obtain the position of at least one candidate mode in the most likely mode list according to the cost calculation result, thereby obtaining the finally generated most likely mode list.

[0535] Optionally, if it is necessary to construct the most likely mode list for the current block, an appropriate list construction rule can be selected according to the sub-block features. For example, when the sub-block features do not meet the first condition, it can be determined that the second list construction rule includes determining or obtaining the position of at least one candidate mode in the most likely mode list according to the calculation result of calculating the cost of at least one candidate mode according to the second cost function, and then constructing the most likely mode list according to the second list construction rule.

[0536] Optionally, if some of the sub-block features of the current block satisfy the first condition and some do not, at least one of the methods from method twenty-six to method thirty-five can be used to determine or obtain the first list construction rule. When the first list construction rule includes method twenty-six, at least one of the methods from method thirty-seven to method thirty-eight can be used to determine or obtain the second list construction rule; or, when the first list construction rule includes method twenty-seven, at least one of method thirty-six and method thirty-eight can be used to determine or obtain the second list construction rule; or, when the first list construction rule includes method twenty-eight, at least one of the methods from method thirty-six to method thirty-seven can be used to determine or obtain the second list construction rule.

[0537] Optionally, the most likely pattern list can be determined or obtained based on the first list construction rule and the second list construction rule. For example, the most likely pattern list can be constructed jointly according to the first list construction rule and the second list construction rule.

[0538] Through the technical solution of this embodiment, it can be ensured that the most likely pattern list is closely related to the sub-block features. When the sub-block features do not satisfy the first condition, the second list construction rule for determining or obtaining the most likely pattern list includes calculating the cost of at least one candidate pattern according to the second cost function, and determining or obtaining the position of at least one candidate pattern in the most likely pattern list, which can ensure that the most likely pattern list determined or obtained according to the second list construction rule is highly accurate for the sub-blocks of the current block. Further, when the current block is predicted and processed through the most likely list, the processing effect can also be improved.

[0539] Method thirty-nine: Determine or obtain the position of at least one candidate pattern in the most likely pattern list according to the calculation results of calculating the cost of at least one candidate pattern based on the first cost function and the second cost function;

[0540] Optionally, the first cost function and the second cost function can be used simultaneously to calculate the cost of at least one candidate pattern to obtain the corresponding calculation results, and the calculation results include the cost of at least one candidate pattern.

[0541] Optionally, for the same candidate pattern, the cost can be calculated using the first cost function, the cost can be calculated using the second cost function, and then the cost of the candidate pattern can be determined based on the calculation results of the two cost calculations. For example, the maximum or minimum calculation result can be selected as the cost of the candidate pattern.

[0542] Optionally, at least one candidate pattern can be sorted according to its cost, and the position of at least one candidate pattern in the most likely pattern list can be determined according to the sorting result.

[0543] Optionally, if it is necessary to construct a most likely pattern list for the current block, an appropriate list construction rule can be selected according to the sub-block features. For example, when the sub-block features do not meet the first condition, it can be determined that the second list construction rule includes calculating the costs of at least one candidate pattern according to a first cost function and a second cost function, determining or obtaining the positions of at least one candidate pattern in the most likely pattern list, and then constructing the most likely pattern list according to the second list construction rule.

[0544] Optionally, if some of the sub-block features of the current block meet the first condition and some do not, the first list construction rule can be determined or obtained according to at least one of Method 26 to Method 35. When the first list construction rule includes Method 26, the second list construction rule can be determined or obtained according to at least one of Method 37 to Method 39; or when the first list construction rule includes Method 27, the second list construction rule can be determined or obtained according to at least one of Method 36, Method 38, and Method 39; or when the first list construction rule includes Method 28, the second list construction rule can be determined or obtained according to at least one of Method 36 to Method 37.

[0545] Optionally, the most likely pattern list can be determined or obtained according to the first list construction rule and the second list construction rule. For example, the most likely pattern list can be jointly constructed according to the first list construction rule and the second list construction rule.

[0546] Through the technical solution of this embodiment, it can be ensured that the most likely pattern list is closely related to the sub-block features. When the sub-block features do not meet the first condition, it can be determined that the second list construction rule of the most likely pattern list includes calculating the costs of at least one candidate pattern according to a first cost function and a second cost function, determining or obtaining the positions of at least one candidate pattern in the most likely pattern list, which can ensure that the most likely pattern list determined or obtained according to the second list construction rule is highly accurate and applicable to the sub-blocks of the current block. Further, when the current block is predicted by the most likely list, the processing effect can also be improved.

[0547] Method 40: Determine or obtain the most likely pattern list according to the scanning results of scanning at least one reference block in a second order;

[0548] Optionally, the second order can be a pre-set scanning order. Optionally, it is different from the first order. For example, when scanning neighbor blocks, if the first order is to preferentially scan the neighbor blocks above the current block and / or sub-blocks, the second order can be to preferentially scan the neighbor blocks on the left of the current block and / or sub-blocks.

[0549] Optionally, the second order can be determined or obtained based on the position coordinates and / or size parameters of the target block and the current block. The specific process of determining or obtaining the second order can refer to the process of determining or obtaining the first order, which will not be repeated here.

[0550] Optionally, the second order corresponding to at least two of the neighbor blocks, non-neighbor blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or subblock may be different or the same.

[0551] Optionally, at least one of at least one neighbor block, non-neighbor block, co-located block, time domain block, cross-component block, default block and candidate block can be scanned according to the second order to obtain a corresponding pattern, and the obtained pattern can be used as a candidate pattern to determine or obtain a most likely pattern list.

[0552] Optionally, sub-block features of different sub-blocks correspond to different scanning orders.

[0553] Optionally, if there is at least one different sub-block, it is possible to determine for each sub-block the scanning order for scanning at least one reference block, and then determine or obtain the position of at least one candidate mode in the most probable mode list based on the scanning result, thereby obtaining the final generated most probable mode list.

[0554] Optionally, if it is necessary to construct a most probable pattern list for the current block, an appropriate list construction rule can be selected based on the sub-block characteristics. For example, when the sub-block characteristics do not satisfy the first condition, it can be determined that the second list construction rule includes determining or obtaining the most probable pattern list based on the scanning results of scanning at least one reference block in a second sequence, and then constructing the most probable pattern list according to the second list construction rule.

[0555] Optionally, if some sub-block features of the current block meet the first condition and other sub-block features do not meet the first condition, the first list construction rules can be determined or obtained according to at least one of methods 26 to 35, and when the first list construction rules include method 26, the second list construction rules can be determined or obtained according to at least one of methods 37 to 40; or, when the first list construction rules include method 27, the second list construction rules can be determined or obtained according to at least one of method 36, method 38, method 39 and method 40; or, when the first list construction rules include method 28, the second list construction rules can be determined or obtained according to at least one of method 36, method 37 and method 40.

[0556] Optionally, the most probable pattern list may be determined or obtained according to the first list construction rule and the second list construction rule, for example, the most probable pattern list may be constructed together according to the first list construction rule and the second list construction rule.

[0557] Through the technical solution of this embodiment, it can be ensured that the most probable mode list is closely related to the sub-block characteristics, and when the sub-block characteristics do not meet the first condition, the second list construction rule for determining or obtaining the most probable mode list includes determining or obtaining the most probable mode list according to the scanning result of scanning at least one reference block in the second sequence, which can ensure that the most probable mode list determined or obtained according to the second list construction rule is applicable to the sub-blocks of the current block with high accuracy. Furthermore, when the current block is predicted by the most probable list, the processing effect can also be improved.

[0558] Mode 41, determining or obtaining a most probable mode list according to the selected second number of reference blocks;

[0559] Optionally, the second number may be a number of blocks set in advance, optionally different from the first number.

[0560] Optionally, the second quantities corresponding to at least two of neighbor blocks, non-neighbor blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or subblock may be different or the same.

[0561] Optionally, a second number of selected neighbor blocks, and / or non-neighbor blocks, and / or co-located blocks, and / or time domain blocks, and / or cross-component blocks, and / or default blocks, and / or candidate blocks can be determined, and at least one mode corresponding thereto can be determined, and then the most likely mode list can be determined or obtained based on the at least one mode.

[0562] Optionally, sub-block features of different sub-blocks correspond to different numbers of reference blocks.

[0563] Optionally, if there is at least one different sub-block, corresponding rules can be used for each sub-block to select a certain number (first number or second number) of reference blocks, and determine or obtain at least one candidate mode based on the selected reference blocks (for example, using the mode of the selected reference block as the candidate mode), and determine or obtain a list of most likely modes including at least one candidate mode.

[0564] Optionally, if it is necessary to construct a most probable mode list for the current block, an appropriate list construction rule can be selected based on the sub-block characteristics. For example, when the sub-block characteristics do not meet the first condition, the second list construction rule can be determined to include determining or obtaining the most probable mode list based on a selected second number of reference blocks, and then constructing the most probable mode list according to the second list construction rule.

[0565] Optionally, if some sub-block features of the current block meet the first condition and other sub-block features do not meet the first condition, the first list construction rule can be determined or obtained according to at least one of methods 26 to 35, and when the first list construction rule includes method 26, the second list construction rule can be determined or obtained according to at least one of methods 37 to 41; or, when the first list construction rule includes method 27, the second list construction rule can be determined or obtained according to at least one of methods 36 and 38 to 41; or, when the first list construction rule includes method 28, the second list construction rule can be determined or obtained according to at least one of methods 36 to 37 and methods 40 to 41; or, when the first list construction rule includes method 29, the second list construction rule can be determined or obtained according to at least one of methods 36 to 39 and 41; or, when the first list construction rule includes method 30, the second list construction rule can be determined or obtained according to at least one of methods 36 to 40.

[0566] Optionally, the most probable pattern list may be determined or obtained according to the first list construction rule and the second list construction rule, for example, the most probable pattern list may be constructed together according to the first list construction rule and the second list construction rule.

[0567] Through the technical solution of this embodiment, it can be ensured that the most probable mode list is closely related to the sub-block characteristics, and when the sub-block characteristics do not meet the first condition, the second list construction rule for determining or obtaining the most probable mode list includes determining or obtaining the most probable mode list based on a selected second number of reference blocks, which can ensure that the most probable mode list determined or obtained according to the second list construction rule is applicable to the sub-blocks of the current block with high accuracy. Furthermore, when the current block is predicted through the most probable list, the processing effect can also be improved.

[0568] Mode 42, determining or obtaining a most probable mode list according to at least one reference block selected according to the second distance;

[0569] Optionally, the second distance may be a distance set in advance, such as a pixel distance, and optionally, different from the first distance.

[0570] Optionally, the second distance may be determined or obtained according to a distance function set in advance. The specific process of determining or obtaining the second distance may refer to the process of determining or obtaining the first distance, which will not be repeated here.

[0571] Optionally, the second distances corresponding to at least two of the neighbor blocks, non-neighbor blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks and candidate blocks corresponding to the current block and / or subblock may be different or the same.

[0572] Optionally, a second-distance selected neighbor block, and / or a non-neighbor block, and / or a co-located block, and / or a temporal-domain block, and / or a cross-component block, and / or a default block, and / or a candidate block may be determined, and at least one corresponding candidate mode (such as using the mode of the selected reference block as the candidate mode) may be determined, and a most-likely mode list including at least one candidate mode may be determined or obtained.

[0573] Optionally, if it is necessary to construct a most-likely mode list for the current block, an appropriate list construction rule may be selected according to the sub-block characteristics. For example, when the sub-block characteristics do not meet the first condition, it may be determined that the second list construction rule includes determining or obtaining the most-likely mode list according to at least one reference block selected by the second distance.

[0574] Optionally, if some sub-block characteristics of the current block meet the first condition and some do not, the first list construction rule may be determined or obtained according to at least one of Method 26 to Method 35. When the first list construction rule includes Method 26, the second list construction rule may be determined or obtained according to at least one of Method 37 to Method 42; or, when the first list construction rule includes Method 27, the second list construction rule may be determined or obtained according to at least one of Method 36, Method 38 to Method 42; or, when the first list construction rule includes Method 28, the second list construction rule may be determined or obtained according to at least one of the five methods of Method 36 to Method 37, Method 40 to Method 42; or, when the first list construction rule includes Method 29, the second list construction rule may be determined or obtained according to at least one of Method 36 to Method 39, Method 41 to Method 42; or, when the first list construction rule includes Method 30, the second list construction rule may be determined or obtained according to at least one of Method 36 to Method 40, Method 42; or, when the first list construction rule includes Method 31, the second list construction rule may be determined or obtained according to at least one of Method 36 to Method 41.

[0575] Optionally, the most-likely mode list may be determined or obtained according to the first list construction rule and the second list construction rule. For example, the most-likely mode list may be jointly constructed according to the first list construction rule and the second list construction rule.

[0576] Through the technical solution of this embodiment, it can be ensured that the most likely mode list is closely associated with the sub-block features. When the sub-block features do not meet the first condition, the second list construction rule for determining or obtaining the most likely mode list includes determining or obtaining the most likely mode list based on at least one reference block selected according to the second distance, which can ensure that the most likely mode list determined or obtained according to the second list construction rule is highly accurate for the sub-blocks of the current block. Further, when predicting the current block through the most likely list, the processing effect can also be improved.

[0577] Method 43: Use the blocks within the second range as neighbor blocks, and determine or obtain the most likely mode list based on at least one neighbor block.

[0578] Optionally, the second range can be a pre-set pixel range. Optionally, there is at least one block within the second range. Optionally, the second range is different from the first range.

[0579] Optionally, when determining the neighbor blocks of the current block, the blocks within the second range from the current block with the current block as the starting point can be used as neighbor blocks, and the most likely mode list can be determined or obtained based on the modes of the neighbor blocks.

[0580] Optionally, if it is necessary to construct the most likely mode list for the current block, an appropriate list construction rule can be selected according to the sub-block features. For example, when the sub-block features do not meet the first condition, it can be determined that the second list construction rule includes using the blocks within the second range as neighbor blocks and determining or obtaining the most likely mode list based on at least one neighbor block.

[0581] Optionally, if some sub-block features of the current block satisfy the first condition and some other sub-block features do not satisfy the first condition, at least one of the twenty-sixth to thirty-fifth methods may be used to determine or obtain the first list construction rule. When the first list construction rule includes the twenty-sixth method, at least one of the thirty-seventh to forty-third methods may be used to determine or obtain the second list construction rule; or, when the first list construction rule includes the twenty-seventh method, at least one of the thirty-sixth, thirty-eighth to forty-third methods may be used to determine or obtain the second list construction rule; or, when the first list construction rule includes the twenty-eighth method, at least one of the thirty-sixth to thirty-seventh, fortieth to forty-third methods may be used to determine or obtain the second list construction rule; or, when the first list construction rule includes the twenty-ninth method, at least one of the thirty-sixth to thirty-ninth, forty-first to forty-third methods may be used to determine or obtain the second list construction rule; or, when the first list construction rule includes the thirtieth method, at least one of the thirty-sixth to fortieth, forty-second, forty-third methods may be used to determine or obtain the second list construction rule; or, when the first list construction rule includes the thirty-first method, at least one of the thirty-sixth to forty-first, forty-third methods may be used to determine or obtain the second list construction rule; or, when the first list construction rule includes the thirty-third method, at least one of the thirty-sixth to forty-second methods may be used to determine or obtain the second list construction rule.

[0582] Optionally, the most likely pattern list may be determined or obtained according to the first list construction rule and the second list construction rule, such as jointly constructing the most likely pattern list according to the first list construction rule and the second list construction rule.

[0583] Optionally, according to a preset range / distance parameter, such as within 128 pixels above the current block and / or sub-block, or an area within 128 pixels from the center of the current block and / or sub-block, all blocks within this range / distance are obtained.

[0584] Optionally, the preset range parameter may be the first range or the second range.

[0585] Optionally, the distance parameter may be the first distance or the second distance.

[0586] Optionally, all blocks within this range / distance may be scanned according to a scanning order (such as the first order, or the second order, or a preset order) until a set number, such as 6 or 22, is reached. The patterns of the scanned blocks are used as candidate patterns, and a cost calculation is performed on at least one candidate pattern. Sorting is performed according to the cost calculation result to determine or obtain the most likely pattern list, and the most likely pattern list includes at least one sorted candidate pattern.

[0587] Optionally, the priorities of all blocks within the range / distance can be determined or obtained based on the size parameters (such as size or area) and position parameters (such as pixel coordinates and the distance from the current block) of all blocks within the range / distance. For example, the closer the distance to the current block, the higher the priority of the block, or the larger the size parameter, the higher the priority of the block, etc. Then, according to the priorities of all blocks within the range / distance, all blocks within the range / distance are sorted in descending order of priority to obtain a scanning order. The patterns of all blocks within the range / distance are sequentially obtained according to this scanning order until the set quantity, such as 6 or 22, is reached. The patterns of the scanned blocks are used as candidate patterns, and the cost of at least one candidate pattern is calculated. Sorting is performed according to the cost calculation results to determine or obtain the most likely pattern list, and the most likely pattern list includes at least one sorted candidate pattern.

[0588] Through the technical solution of this embodiment, it can be ensured that the most likely pattern list is closely associated with the sub-block features. When the sub-block features do not meet the first condition, the second list construction rule for determining or obtaining the most likely pattern list includes using the blocks within the second range as neighbor blocks, and determining or obtaining the most likely pattern list based on at least one neighbor block. It can be ensured that the most likely pattern list determined or obtained according to the second list construction rule has a relatively high accuracy for the sub-blocks of the current block. Further, when the current block is predicted and processed through the most likely list, the processing effect can also be improved.

[0589] Method forty-four: Determine or obtain the most likely pattern list of the sub-block according to the most likely pattern lists of at least one other sub-block and / or reference block of the fourth quantity;

[0590] Optionally, the fourth quantity can be the quantity of blocks set in advance, which can be a positive integer greater than zero and is optionally different from the third quantity.

[0591] Optionally, the sub-block features of different sub-blocks correspond to the most likely pattern lists of different quantities of other sub-blocks and / or reference blocks.

[0592] Optionally, if there are at least two different sub-blocks, the most likely pattern list corresponding to the respective quantities of other sub-blocks and / or reference blocks can be determined for each sub-block to determine or obtain the most likely pattern list of each sub-block: For example, for the first sub-block, the most likely pattern list of the sub-block can be determined or obtained according to the most likely pattern lists of at least one other sub-block and / or reference block of the third quantity; For another example, for the second sub-block, the most likely pattern list of the sub-block can be determined or obtained according to the most likely pattern lists of at least one other sub-block and / or reference block of the fourth quantity.

[0593] Optionally, if it is necessary to construct a most likely pattern list for the current block, an appropriate list construction rule can be selected according to the sub-block features. For example, when the sub-block features do not meet the first condition, it can be determined that the second list construction rule includes determining or obtaining the most likely pattern list of the sub-block according to the most likely pattern lists of at least one other sub-block and / or reference block of the fourth quantity.

[0594] Optionally, if some of the sub-block features of the current block meet the first condition and some do not meet the first condition, the first list construction rule can be determined or obtained according to at least one of Method 26 to Method 35. When the first list construction rule includes Method 26, the second list construction rule can be determined or obtained according to at least one of Method 37 to Method 44; or, when the first list construction rule includes Method 27, the second list construction rule can be determined or obtained according to at least one of Method 36, Method 38 to Method 44; or, when the first list construction rule includes Method 28, the second list construction rule can be determined or obtained according to at least one of the seven methods of Method 36 to Method 37, Method 40 to Method 44; or, when the first list construction rule includes Method 29, the second list construction rule can be determined or obtained according to at least one of the eight methods of Method 36 to Method 39, Method 41 to Method 44; or, when the first list construction rule includes Method 30, the second list construction rule can be determined or obtained according to at least one of Method 36 to Method 40, Method 42, Method 43, and Method 44; or, when the first list construction rule includes Method 31, the second list construction rule can be determined or obtained according to at least one of Method 36 to Method 41, Method 43, and Method 44; or, when the first list construction rule includes Method 33, the second list construction rule can be determined or obtained according to at least one of Method 36 to Method 42, and Method 44; or, when the first list construction rule includes Method 34, the second list construction rule can be determined or obtained according to at least one of Method 36 to Method 43.

[0595] Optionally, the most likely pattern list can be determined or obtained according to the first list construction rule and the second list construction rule. For example, the most likely pattern list can be jointly constructed according to the first list construction rule and the second list construction rule.

[0596] Through the technical solution of this embodiment, it can be ensured that the most likely pattern list is closely associated with the sub-block features. When the sub-block features do not meet the first condition, the second list construction rule for determining or obtaining the most likely pattern list includes determining or obtaining the most likely pattern list of the sub-block according to the most likely pattern lists of at least one other sub-block and / or reference block with a fourth quantity, which can ensure that the most likely pattern list determined or obtained according to the second list construction rule is highly accurate for the sub-blocks of the current block. Further, when the current block is predicted and processed through the most likely list, the processing effect can also be improved.

[0597] Mode forty-five: Determine or obtain the most likely pattern list according to the neural network.

[0598] Optionally, the neural network can be pre-set, such as a convolutional neural network, a federated neural network, etc.

[0599] Optionally, the features of the current block can be input into the neural network, and the most likely pattern list is output.

[0600] Optionally, different sub-blocks can adopt different construction methods to construct the most likely pattern list.

[0601] Optionally, if there are at least one different sub-blocks, each sub-block can adopt its corresponding method to construct its own most likely pattern list. For example, the first sub-block can determine or obtain the most likely pattern list according to the preset sorting rule, and the second sub-block can determine or obtain the most likely pattern list according to the neural network.

[0602] Optionally, if it is necessary to construct the most likely pattern list for the current block, an appropriate list construction rule can be selected according to the sub-block features. For example, when the sub-block features do not meet the first condition, it can be determined that the second list construction rule includes determining or obtaining the most likely pattern list according to the neural network.

[0603] Optionally, if some sub-block features of the current block satisfy the first condition and some other sub-block features do not satisfy the first condition, at least one of the twenty-sixth to thirty-fifth methods can be used to determine or obtain the first list construction rule. When the first list construction rule includes the twenty-sixth method, at least one of the thirty-seventh to forty-fifth methods is used to determine or obtain the second list construction rule; or, when the first list construction rule includes the twenty-seventh method, at least one of the thirty-sixth, thirty-eighth to forty-fifth methods is used to determine or obtain the second list construction rule; or, when the first list construction rule includes the twenty-eighth method, at least one of the thirty-sixth to thirty-seventh, fortieth to forty-fifth methods is used to determine or obtain the second list construction rule; or, when the first list construction rule includes the twenty-ninth method, at least one of the thirty-sixth to thirty-ninth, forty-first to forty-fifth methods is used to determine or obtain the second list construction rule; or, when the first list construction rule includes the thirtieth method, at least one of the thirty-sixth to fortieth, forty-second, forty-third, forty-fourth, and forty-fifth methods is used to determine or obtain the second list construction rule; or, when the first list construction rule includes the thirty-first method, at least one of the thirty-sixth to forty-first, forty-third, forty-fourth, and forty-fifth methods is used to determine or obtain the second list construction rule; or, when the first list construction rule includes the thirty-third method, at least one of the thirty-sixth to forty-second, forty-fourth, and forty-fifth methods is used to determine or obtain the second list construction rule; or, when the first list construction rule includes the thirty-fourth method, at least one of the thirty-sixth to forty-third, forty-fifth methods is used to determine or obtain the second list construction rule; or, when the first list construction rule includes the thirty-fifth method, at least one of the thirty-sixth to forty-fourth methods is used to determine or obtain the second list construction rule.

[0604] Optionally, the most likely pattern list can be determined or obtained according to the first list construction rule and the second list construction rule. For example, the most likely pattern list can be constructed jointly according to the first list construction rule and the second list construction rule.

[0605] Through the technical solution of this embodiment, it can be ensured that the most likely pattern list is closely related to the sub-block features. When the sub-block features do not satisfy the first condition, it is determined that the second list construction rule of the most likely pattern list includes determining or obtaining the most likely pattern list according to a neural network, which can ensure that the most likely pattern list determined or obtained according to the second list construction rule is highly accurate for the sub-blocks of the current block. Further, when the current block is predicted by the most likely list, the processing effect can also be improved.

[0606] The Ninth Embodiment

[0607] Based on any of the above embodiments, a ninth embodiment is proposed.

[0608] In this embodiment, referring to Figure 15 , the image processing method further includes step S20: processing the sub-block according to the most likely mode list.

[0609] Optionally, the sub-block can be processed according to the most likely mode list determined or obtained in any of the above embodiments, for example, at least one mode is selected from the most likely mode list to process the sub-block.

[0610] Optionally, when the most likely mode list includes at least one inter-frame prediction mode, at least one inter-frame prediction mode can be selected from the most likely mode list to perform inter-frame prediction processing on the sub-block.

[0611] Optionally, when the most likely mode list includes at least one intra-frame prediction mode, at least one intra-frame prediction mode can be selected from the most likely mode list to perform intra-frame prediction processing on the sub-block.

[0612] Optionally, when the most likely mode list includes at least one intra-frame block vector mode, at least one intra-frame block vector mode can be selected from the most likely mode list to perform intra-frame block vector processing on the sub-block.

[0613] Optionally, when the most likely mode list includes at least one inter-frame block vector mode, at least one inter-frame block vector mode can be selected from the most likely mode list to perform inter-frame block vector processing on the sub-block.

[0614] Optionally, when the most likely mode list includes at least one inter-frame partitioning method, at least one inter-frame partitioning method can be selected from the most likely mode list to perform inter-frame partitioning processing on the sub-block.

[0615] Optionally, when the most likely mode list includes at least one cross-component prediction mode, at least one cross-component prediction mode can be selected from the most likely mode list to perform prediction processing on the sub-block.

[0616] Optionally, when the most likely mode list includes at least one geometric partitioning mode, at least one geometric partitioning mode can be selected from the most likely mode list to perform partitioning processing on the sub-block.

[0617] Optionally, when the most likely mode list includes at least one spatial geometric partitioning mode, at least one spatial geometric partitioning mode can be selected from the most likely mode list to perform partitioning processing on the sub-block.

[0618] Optionally, when the most likely mode list includes at least one block partitioning method, at least one block partitioning method can be selected from the most likely mode list to perform partitioning processing on the sub-block.

[0619] Through the technical solution of this embodiment, it is possible to process sub-blocks using the most likely pattern list determined or obtained based on sub-block features. Since the most likely pattern list comprehensively considers sub-block features, the processing effect of sub-blocks can also be improved.

[0620] Optionally, step S20 includes: if the current block is to be predicted, predicting and processing the sub-blocks using the most likely pattern list determined or obtained based on the sub-block features of the current block.

[0621] Optionally, if it is necessary to predict the current block, at least one prediction pattern can be selected from the most likely pattern list determined or obtained based on the sub-block features of the current block, and the sub-blocks can be predicted and processed according to the at least one selected prediction pattern.

[0622] Optionally, if the current block includes at least one sub-block, for each sub-block, at least one prediction pattern can be selected from the most likely pattern list for prediction processing.

[0623] Optionally, in the most likely pattern list of the current block, at least one prediction pattern can be selected for each sub-block for prediction processing, and the prediction patterns selected for each sub-block can be the same or different.

[0624] Optionally, the most likely pattern lists corresponding to each sub-block can be the same or different.

[0625] Optionally, the most likely pattern lists of each sub-block can be determined, and for each sub-block, at least one prediction pattern can be selected from the most likely pattern list of the sub-block for prediction processing.

[0626] For example, if the current block includes sub-block 1, sub-block 2, and sub-block 3, then it is possible to:

[0627] Select at least one prediction pattern from the most likely pattern list of sub-block 1 to perform prediction processing on sub-block 1;

[0628] Select at least one prediction pattern from the most likely pattern list of sub-block 2 to perform prediction processing on sub-block 2;

[0629] Select at least one prediction pattern from the most likely pattern list of sub-block 3 to perform prediction processing on sub-block 3.

[0630] Through the technical solution of this embodiment, it is possible to perform prediction processing on sub-blocks using the most likely pattern list determined or obtained based on the sub-block features of the current block. Since the most likely pattern list comprehensively considers sub-block features, the prediction processing effect of sub-blocks can also be improved.

[0631] Optionally, the image processing method further includes at least one of Mode Forty-Six to Mode Forty-Seven.

[0632] Method forty-six: Determine or obtain the prediction processing result of the current block according to the prediction processing results of at least one sub-block.

[0633] Optionally, the prediction processing of at least one sub-block of the current block can be performed according to the most likely mode list, and then the prediction processing result of the current block can be determined or obtained according to the prediction processing results of at least one sub-block. For example, the prediction processing results of all sub-blocks of the current block are aggregated to obtain the prediction processing result of the current block; or, the prediction processing result of at least one sub-block of the current block is transformed to obtain the prediction processing result of the current block, etc.

[0634] Through the technical solution of this embodiment, the prediction processing result of the current block can be determined or obtained according to the prediction processing results of at least one sub-block. Since the prediction processing result of the current block comprehensively considers the prediction processing results of the sub-blocks, the accuracy of the prediction processing result of the current block can be ensured.

[0635] Method forty-seven: Determine or obtain the reconstruction of the current block according to the prediction processing result of the current block.

[0636] Optionally, the most likely mode list can be determined or obtained according to the sub-block characteristics of the current block, and the prediction processing of at least one sub-block can be performed according to the most likely mode list. The prediction processing result of the current block is determined or obtained according to the prediction processing results of at least one sub-block, and the reconstruction of the current block is determined or obtained according to the prediction processing result of the current block and the residual of the current block.

[0637] Through the technical solution of this embodiment, the reconstruction of the current block can be determined or obtained according to the prediction processing result of the current block, and the accuracy of the reconstruction of the current block can be ensured.

[0638] The embodiments of the present application further provide a processing device. Please refer to Figure 16 , Figure 16 , which is a schematic diagram of the functional modules of the processing device of the present application. It can be set in or be the processing device. The processing device includes:

[0639] Processing module A10, which is used to determine or obtain the most likely mode list according to the sub-block characteristics of the current block.

[0640] Optionally, the most likely mode list includes the most likely mode list of the current block and / or the most likely mode list of at least one sub-block.

[0641] Optionally, the sub-block characteristics include at least one of the following:

[0642] The sub-block division rule determined or obtained according to at least one of the division rule, syntax element and current block characteristics in the code stream;

[0643] At least one of a shape parameter, a position parameter, a size parameter, a content complexity and a pixel type of the sub-block and / or the reference block;

[0644] At least one of a feature of the current block, a pixel feature of a reference template of a sub-block, a pixel feature of a reference block, a similarity between the reference template of the sub-block and the reference block, the number of reference blocks, and a mode of reference blocks.

[0645] Optionally, the reference block includes at least one of a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block and a candidate block corresponding to the current block and / or subblock.

[0646] Optionally, the feature of the current block is determined or obtained according to at least one of the following:

[0647] a size parameter of at least one of a current block, a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block, and a candidate block;

[0648] Pixel features of at least one of a reference template, a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block, and a candidate block of the current block;

[0649] Similarity between the reference template of the current block and at least one of neighbor pixels, non-neighbor pixels, co-located block pixels, temporal block pixels, cross-component block pixels, default block pixels, and candidate block pixels;

[0650] the number of at least one of neighbor blocks, non-neighbor blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks, and candidate blocks;

[0651] A mode of at least one of a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block, and a candidate block.

[0652] Optionally, the processing module A10 is further configured to:

[0653] Determine or obtain at least one list construction rule and / or an execution order corresponding to at least one list construction rule according to the sub-block characteristics of the current block;

[0654] The most probable pattern list is determined or obtained according to at least one list construction rule and / or an execution order corresponding to at least one list construction rule.

[0655] Optionally, the processing module A10 is further configured to perform at least one of the following:

[0656] If the sub-block feature satisfies the first condition, determining at least one list construction rule as a first list construction rule;

[0657] If the sub-block feature does not satisfy the first condition, determining at least one list construction rule as a second list construction rule;

[0658] If the list construction rules include both a first list construction rule and a second list construction rule, and the sub-block features satisfy the second condition, then the execution order of the first list construction rule is greater than that of the second list construction rule;

[0659] If the list construction rules include both a first list construction rule and a second list construction rule, and the sub-block features do not satisfy the second condition, then the execution order of the first list construction rule is less than that of the second list construction rule;

[0660] If the list construction rules only include the first list construction rule, then determine that the execution order of the first list construction rule corresponding to the sub-block features satisfying the third condition is greater than the execution order of the first list construction rule corresponding to the sub-block features satisfying the fourth condition;

[0661] If the list construction rules only include the second list construction rule, then determine that the execution order of the second list construction rule corresponding to the sub-block features satisfying the fifth condition is greater than the execution order of the second list construction rule corresponding to the sub-block features satisfying the sixth condition.

[0662] Optionally, the first condition, the second condition, the third condition, the fourth condition, the fifth condition, and / or the sixth condition are determined or obtained according to at least one of the following:

[0663] The matching result between the sub-block division rule and the preset division rule or the range of the preset division rule;

[0664] The matching result between the shape parameters of the sub-block and / or the reference block and the preset shape parameter threshold or the range of the preset shape parameters;

[0665] The matching result between the position parameters of the sub-block and / or the reference block and the preset position parameter threshold or the range of the preset position parameters;

[0666] The matching result between the size parameters of the sub-block and / or the reference block and the preset size parameter threshold or the range of the preset size parameters;

[0667] The matching result between the content complexity of the sub-block and / or the reference block and the preset content complexity threshold or the range of the preset content complexity;

[0668] The matching result between the pixel type of the sub-block and / or the reference block and the preset pixel type or the range of the preset pixel types;

[0669] The matching result between the features of the current block and the preset features or the range of the preset features;

[0670] The matching result between the pixel features of the reference template of the sub-block and / or the pixel features of the reference block and the preset pixel feature threshold or the range of the preset pixel features;

[0671] The similarity between the reference template of the sub-block and the reference block, and the matching result with a preset similarity threshold or a preset similarity interval;

[0672] The number of reference blocks, and the matching result with a preset number or a preset number interval;

[0673] The pattern of the reference block, and the matching result with a preset pattern or a preset pattern range.

[0674] Optionally, the first list construction rule includes at least one of the following:

[0675] The length of the most likely pattern list is the first length;

[0676] The default pattern is located at a preset list position in the most likely pattern list;

[0677] Based on the calculation result of calculating the cost of at least one candidate pattern according to the first cost function, determine or obtain the position of at least one candidate pattern in the most likely pattern list;

[0678] Based on the scanning result of scanning at least one reference block in the first order, determine or obtain the most likely pattern list;

[0679] Based on the selected first number of reference blocks, determine or obtain the most likely pattern list;

[0680] Based on at least one reference block selected by the first distance, determine or obtain the most likely pattern list;

[0681] Based on the distance between the current block and the reference block, sort the reference blocks, and determine or obtain the most likely pattern list according to the sorted reference blocks;

[0682] Take the blocks within the first range as neighbor blocks, and determine or obtain the most likely pattern list according to at least one neighbor block;

[0683] Based on the most likely pattern list of at least one other sub-block and / or reference block of the third quantity, determine or obtain the most likely pattern list of the sub-block;

[0684] Determine or obtain the most likely pattern list according to the preset sorting rule.

[0685] Optionally, the second list construction rule includes at least one of the following:

[0686] The length of the most likely pattern list is the second length;

[0687] Determine the position of the default pattern in the most likely pattern list according to the preset pattern sorting rule;

[0688] Based on the calculation result of calculating the cost of at least one candidate pattern according to the second cost function, determine or obtain the position of at least one candidate pattern in the most likely pattern list;

[0689] Determine or obtain the position of at least one candidate pattern in the most likely pattern list according to the calculation result of calculating the cost of at least one candidate pattern based on the first cost function and the second cost function;

[0690] Determine or obtain the most likely pattern list according to the scanning result of scanning at least one reference block in the second order;

[0691] Determine or obtain the most likely pattern list according to the selected second quantity of reference blocks;

[0692] Determine or obtain the most likely pattern list according to at least one reference block selected by the second distance;

[0693] Use the blocks within the second range as neighbor blocks, and determine or obtain the most likely pattern list according to at least one neighbor block;

[0694] Determine or obtain the most likely pattern list of the sub-block according to the most likely pattern list of at least one other sub-block and / or reference block of the fourth quantity;

[0695] Determine or obtain the most likely pattern list according to the neural network.

[0696] Optionally, the processing module A10 is further configured to:

[0697] Process the sub-block according to the most likely pattern list.

[0698] Optionally, the processing module A10 is further configured to:

[0699] If the current block is to be predicted, perform prediction processing on the sub-block according to the most likely pattern list determined or obtained according to the sub-block feature of the current block.

[0700] Optionally, the processing module A10 is further configured to perform at least one of the following:

[0701] Determine or obtain the prediction processing result of the current block according to the prediction processing result of at least one sub-block;

[0702] Determine or obtain the reconstruction of the current block according to the prediction processing result of the current block.

[0703] The processing device provided in the embodiments of the present application is similar to the technical solutions shown in the corresponding method embodiments above in terms of implementation principle and beneficial effects, and will not be elaborated here.

[0704] The embodiments of the present application further provide a processing device, including a memory and a processor. An image processing program is stored on the memory, and when the image processing program is executed by the processor, the steps of the image processing method in any of the above embodiments are implemented.

[0705] An embodiment of the present application also provides a storage medium, on which an image processing program is stored. When the image processing program is executed by a processor, the steps of the image processing method in any of the above embodiments are implemented.

[0706] In the embodiments of the processing device and the storage medium provided by the present application, all technical features of any of the above embodiments of the image processing method may be included. The content of the specification expansion and explanation is basically the same as that of the above embodiments of the method, and will not be repeated here.

[0707] An embodiment of the present application also provides a computer program product, which includes computer program code. When the computer program code runs on a computer, the computer is enabled to execute the methods in various possible implementation manners as described above.

[0708] An embodiment of the present application also provides a chip, which includes a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device equipped with the chip executes the methods in various possible implementation manners as described above.

[0709] It can be understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided by the embodiments of the present application. The technical solutions of the present application can also be applied to other scenarios. For example, as is known to those of ordinary skill in the art, with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0710] The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0711] The steps in the method of the embodiment of the present application can be adjusted, combined, and deleted according to actual needs.

[0712] The units in the device of the embodiment of the present application can be combined, divided, and deleted according to actual needs.

[0713] In the present application, for the description of the same or similar term concepts, technical solutions, and / or application scenarios, generally only the first occurrence is described in detail. When it appears repeatedly later, for the sake of brevity, it is generally not repeated. When understanding the technical solutions and other contents of the present application, for the same or similar term concepts, technical solutions, and / or application scenarios that are not described in detail later, reference can be made to the relevant detailed descriptions before.

[0714] In the present application, the descriptions of the various embodiments have their own emphases. For the parts not described or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0715] The technical features of the technical solution of the present application can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope recorded in the present application.

[0716] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium as described above (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0717] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general computer, a special computer, a computer network, or other programmable devices. The computer instructions can be stored in a storage medium, or transmitted from one storage medium to another storage medium. For example, the computer instructions can be transmitted from a website, a computer, a server, or a data center to another website, a computer, a server, or a data center by wire (such as coaxial cable, optical fiber, digital subscriber line) or wirelessly (such as infrared, wireless, microwave, etc.). The storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more integrated available media. The available medium can be a magnetic medium (for example, a floppy disk, a storage disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)), etc.

[0718] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be included in the patent protection scope of the present application by the same token.

Claims

1. An image processing method, characterized in that: Includes steps: S10, determining or obtaining a most probable mode list according to sub-block features of the current block.

2. The method according to claim 1, characterized in that The most probable mode list includes the most probable mode list of the current block and / or the most probable mode list of at least one sub-block; and / or the sub-block feature includes at least one of the following: Determine or obtain a sub-block partitioning rule according to at least one of a partitioning rule in a bitstream, a syntax element, and a feature of a current block; At least one of a shape parameter, a position parameter, a size parameter, a content complexity and a pixel type of the sub-block and / or the reference block; At least one of a feature of the current block, a pixel feature of a reference template of a sub-block, a pixel feature of a reference block, a similarity between the reference template of the sub-block and the reference block, the number of reference blocks, and a mode of the reference blocks.

3. The method according to claim 2, characterized in that The reference block includes at least one of a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block, and a candidate block corresponding to the current block and / or the sub-block, and / or the feature of the current block is determined or obtained according to at least one of the following: a size parameter of at least one of a current block, a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block, and a candidate block; Pixel features of at least one of a reference template, a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block, and a candidate block of the current block; Similarity between the reference template of the current block and at least one of neighbor pixels, non-neighbor pixels, co-located block pixels, temporal block pixels, cross-component block pixels, default block pixels, and candidate block pixels; the number of at least one of neighbor blocks, non-neighbor blocks, co-located blocks, time domain blocks, cross-component blocks, default blocks, and candidate blocks; A mode of at least one of a neighbor block, a non-neighbor block, a co-located block, a time domain block, a cross-component block, a default block, and a candidate block.

4. The method according to any one of claims 1 to 3, characterized in that Step S10 includes the following steps: S101, determining or obtaining at least one list construction rule and / or an execution order corresponding to at least one list construction rule according to sub-block characteristics of a current block; S102: Determine or obtain a most probable pattern list according to at least one list construction rule and / or an execution order corresponding to at least one list construction rule.

5. The method according to claim 4, characterized in that Step S101 includes at least one of the following: If the sub-block feature satisfies the first condition, determining at least one list construction rule as a first list construction rule; If the sub-block feature does not satisfy the first condition, determining at least one list construction rule as a second list construction rule; If the list construction rule includes both the first list construction rule and the second list construction rule, and the sub-block feature satisfies the second condition, the execution order of the first list construction rule is greater than the execution order of the second list construction rule; If the list construction rule includes both the first list construction rule and the second list construction rule, and the sub-block feature does not satisfy the second condition, the execution order of the first list construction rule is lower than the execution order of the second list construction rule; If the list construction rules only include the first list construction rules, determining that the execution order of the first list construction rules corresponding to the sub-block features that satisfy the third condition is greater than the execution order of the first list construction rules corresponding to the sub-block features that satisfy the fourth condition; If the list construction rules only include the second list construction rules, it is determined that the execution order of the second list construction rules corresponding to the sub-block features that meet the fifth condition is greater than the execution order of the second list construction rules corresponding to the sub-block features that meet the sixth condition.

6. The method according to claim 5, characterized in that The first condition, the second condition, the third condition, the fourth condition, the fifth condition and / or the sixth condition are determined or obtained according to at least one of the following: The sub-block division rule and the matching result of the preset division rule or the preset division rule range; a shape parameter of the sub-block and / or the reference block, and a matching result of a preset shape parameter threshold or a preset shape parameter range; The position parameters of the sub-block and / or the reference block and the matching result of the preset position parameter threshold or the preset position parameter range; A size parameter of the sub-block and / or the reference block, and a matching result with a preset size parameter threshold or a preset size parameter range; a matching result between the content complexity of the sub-block and / or the reference block and a preset content complexity threshold or a preset content complexity range; A matching result of a pixel type of a sub-block and / or a reference block and a preset pixel type or a preset pixel type range; The feature of the current block and the matching result of the preset feature or the preset feature range; A matching result between the pixel features of the reference template of the sub-block and / or the pixel features of the reference block and a preset pixel feature threshold or a preset pixel feature range; similarity between the reference template of the sub-block and the reference block, and a matching result of a preset similarity threshold or a preset similarity interval; the number of reference blocks and the matching results of a preset number or a preset number interval; The pattern of the reference block matches the preset pattern or the preset pattern range.

7. The method according to claim 5, characterized in that The first list construction rules include at least one of the following: The length of the most probable pattern list is the first length; The default mode is located at a preset list position in the most likely mode list; Determine or obtain the position of at least one candidate mode in the most probable mode list by performing a cost calculation of at least one candidate mode according to a first cost function; Determine or obtain a most probable mode list according to a scanning result of scanning at least one reference block in a first order; determining or obtaining a list of most probable modes based on the selected first number of reference blocks; Determine or obtain a most probable mode list based on at least one reference block selected according to the first distance; According to the distance between the current block and the reference block, the reference blocks are sorted, and the most likely mode list is determined or obtained according to the sorted reference blocks; Taking blocks within the first range as neighbor blocks, determining or obtaining a most probable mode list according to at least one neighbor block; determining or obtaining a most probable mode list for a sub-block based on a third number of most probable mode lists of at least one other sub-block and / or reference blocks; Determine or obtain the most likely pattern list according to preset sorting rules.

8. The method according to claim 5, characterized in that The second list construction rules include at least one of the following: The length of the most probable pattern list is the second length; Determine the position of the default mode in the most likely mode list according to a preset mode sorting rule; Determine or obtain the position of the at least one candidate mode in the most probable mode list by performing a cost calculation of the at least one candidate mode according to a second cost function; Determine or obtain the position of at least one candidate mode in the most probable mode list according to the calculation result of the cost calculation of at least one candidate mode by the first cost function and the second cost function; Determine or obtain a most probable mode list according to a scanning result of scanning at least one reference block in a second order; determining or obtaining a most probable mode list based on the selected second number of reference blocks; Determine or obtain a most probable mode list based on at least one reference block selected according to the second distance; Taking blocks within the second range as neighbor blocks, determining or obtaining a most probable mode list according to at least one neighbor block; determining or obtaining a most probable mode list for the sub-block based on a fourth number of most probable mode lists of at least one other sub-block and / or reference block; Determine or obtain a list of most likely patterns based on a neural network.

9. The method according to any one of claims 1 to 3, characterized in that Also includes the steps: S20, processing the sub-block according to the most probable pattern list.

10. The method according to claim 9, characterized in that Step S20 includes: if the current block is to be predicted, performing prediction processing on the sub-blocks according to the most likely mode list determined or obtained based on the sub-block characteristics of the current block.

11. The method according to claim 10, characterized in that Also includes at least one of the following: Determine or obtain a prediction processing result of the current block according to the prediction processing result of at least one sub-block; The reconstruction of the current block is determined or obtained according to the prediction processing result of the current block.

12. A processing device, characterized in that: include: A memory and a processor, wherein an image processing program is stored in the memory, and when the image processing program is executed by the processor, the steps of the image processing method according to any one of claims 1 to 11 are implemented.

13. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the image processing method according to any one of claims 1 to 11 are implemented.

Citation Information

Patent Citations

  • Construction method of most probable prediction mode list, image coding method and processing device

    CN110312127A

  • Intra-frame prediction method and system and computer readable storage medium

    CN110958454A

  • Rhombus-shaped sidewalk and driveway block

    KR102771750B1