Image processing method, processing device and storage medium

By considering the sub-block features of a block in video coding and optimizing the construction and execution order of the most likely pattern list, the problem of low prediction accuracy caused by ignoring sub-block features in existing technologies is solved, thus improving the prediction effect of image processing.

CN120186342BActive Publication Date: 2026-05-29SHENZHEN TRANSSION HLDG CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN TRANSSION HLDG CO LTD
Filing Date
2025-03-19
Publication Date
2026-05-29

Smart Images

  • Figure CN120186342B_ABST
    Figure CN120186342B_ABST
Patent Text Reader

Abstract

The application provides an image processing method, a processing device and a storage medium. The image processing method comprises the following steps: determining or obtaining a most probable mode list according to the sub-block characteristics of a current block. Through the technical scheme, the most probable mode list can be determined or obtained more appropriately, and the processing effect can be further improved in the processing stage (such as prediction processing).
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, specifically to an image processing method, processing device, and storage medium. Background Technology

[0002] The existing high-efficiency video coding standard protocol (H.266 / VVC) proposes a video frame coding technique to improve coding performance without significantly increasing computational complexity.

[0003] In the process of conceiving and implementing this application, the inventors discovered at least the following problems: During the encoding and decoding process, such as the prediction processing stage (e.g., intra-frame prediction or inter-frame prediction), the most probable list method may be used for prediction processing. However, when determining or obtaining the most probable list, the detailed features of the block, such as the sub-block features of the block, are ignored, which leads to a decrease in the accuracy of the most probable list in some blocks, and thus a deterioration in the processing effect.

[0004] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the Invention

[0005] To address the aforementioned technical problems, this application provides an image processing method, processing device, and storage medium, which aims to consider the sub-block features of blocks when determining or obtaining the most likely list, so as to determine or obtain a more suitable most likely pattern list. Furthermore, it can also improve the processing effect during the processing stage (such as predictive processing).

[0006] This application provides an image processing method, applicable to a processing device, comprising the following steps:

[0007] S10: Determine or obtain a list of most likely patterns based on the characteristics of the sub-blocks of the current block.

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

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

[0010] The sub-block partitioning rule is determined or obtained based on at least one of the partitioning rules in the bitstream, syntax elements, and characteristics of the current block;

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

[0012] 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 blocks are at least one of the following: features of the current block, pixel features of the reference template of the sub-block, pixel features of the reference block, similarity between the reference template of the sub-block and the reference block, number of reference blocks, and pattern of reference blocks.

[0013] Optionally, the reference block includes at least one of the following: neighboring blocks, non-neighboring blocks, co-occurring blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-blocks.

[0014] Optionally, the characteristics of the current block are determined or obtained based on at least one of the following:

[0015] Size parameter of at least one of the following: current block, neighboring block, non-neighboring block, co-occurring block, temporal block, cross-component block, default block, and candidate block;

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

[0017] The similarity between the reference template of the current block and at least one of the following: neighboring pixels, non-neighboring 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 the following: neighboring blocks, non-neighboring blocks, co-occurring blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks;

[0019] A pattern consisting of at least one of the following: neighboring block, non-neighboring block, co-occurring block, temporal block, cross-component block, default block, and candidate block.

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

[0021] S101, determine or obtain at least one list construction rule and / or the execution order corresponding to at least one list construction rule based on the sub-block characteristics of the current block;

[0022] S102, determine or obtain the most likely pattern list based on at least one list construction rule and / or the 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 features satisfy the first condition, then at least one list construction rule is determined as the first list construction rule;

[0025] If the sub-block features do not satisfy the first condition, then at least one list construction rule is determined as the 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, then 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 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, then the execution order of the first list construction rule is less than the execution order of the second list construction rule.

[0028] If the list construction rules only include the first list construction rules, then 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.

[0029] If the list construction rules only include the second list construction rules, then the execution order of the second list construction rules corresponding to the sub-block features that satisfy the fifth condition is greater than the execution order of the second list construction rules corresponding to the sub-block features that satisfy 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 based on at least one of the following:

[0031] The matching results between the sub-block partitioning rules and the preset partitioning rules or the range of preset partitioning rules;

[0032] The shape parameters of the sub-blocks and / or reference blocks, and the matching results with preset shape parameter thresholds or preset shape parameter ranges;

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

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

[0035] The content complexity of sub-blocks and / or reference blocks, and the matching result with a preset content complexity threshold or a preset content complexity range;

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

[0037] The features of the current block and the matching results with preset features or a preset feature range;

[0038] The matching result 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 preset pixel feature range;

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

[0040] The number of reference blocks and the matching results with a preset number or a preset number range;

[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 rules include at least one of the following:

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

[0044] The default mode is located in the preset list position of the most likely mode list;

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

[0046] The most likely pattern list is determined or obtained based on the scan results of scanning at least one reference block in the first order;

[0047] The most likely pattern list is determined or obtained based on the first number of reference blocks selected;

[0048] The most likely pattern list is determined or obtained based on at least one reference block selected from the first distance;

[0049] 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 based on the sorted reference blocks;

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

[0051] The most likely pattern list of the sub-blocks is determined or obtained based on the most likely pattern list of at least one other sub-block and / or reference block of the third number;

[0052] The most likely pattern list is determined or obtained based on the preset sorting rules.

[0053] Optionally, the second list construction rules include at least one of the following:

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

[0055] The position of the default mode in the most likely mode list is determined according to the preset mode sorting rules;

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

[0057] Based on the calculation results of the cost calculation of at least one candidate mode according to the first cost function and the second cost function, the position of at least one candidate mode in the most likely mode list is determined or obtained.

[0058] The most likely pattern list is determined or obtained based on the scan results of scanning at least one reference block in the second order;

[0059] The most likely pattern list is determined or obtained based on the selected second number of reference blocks;

[0060] The most likely pattern list is determined or obtained based on at least one reference block selected according to the second distance;

[0061] Take the blocks in the second range as neighboring blocks, and determine or obtain the most likely pattern list based on at least one neighboring block;

[0062] The most likely pattern list of the sub-blocks is determined or obtained based on the most likely pattern list of at least one other sub-block and / or reference block of the fourth number;

[0063] The most likely pattern list is determined or obtained based on the neural network.

[0064] Optionally, the image processing method further includes the following steps:

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

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

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

[0068] The prediction result of the current block is determined or obtained based on the prediction result of at least one sub-block;

[0069] The reconstruction of the current block is determined or obtained based on the prediction processing results of the current block.

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

[0071] The processing module is used to determine or obtain a list of most likely patterns based on the characteristics of the sub-blocks of the current block.

[0072] This application also provides a processing device, including: a memory and a processor, wherein the memory stores an image processing program, and when the image processing program is executed by the processor, it implements the steps of any of the image processing methods described above.

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

[0074] This application also provides a storage medium storing a computer program that, when executed by a processor, implements the steps of any of the image processing methods described above.

[0075] As described above, the processing method of this application can be applied to a processing device, including: determining or obtaining a list of most likely patterns based on the sub-block characteristics of the current block. Since the list of most likely prediction patterns is determined or obtained based on the sub-block characteristics of the current block, it can be ensured that the most likely prediction pattern list is highly accurate in applying to the sub-blocks of the current block. Furthermore, when performing prediction processing on the current block using the most likely list, the processing effect can also be improved. Attached Figure Description

[0076] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without any creative effort.

[0077] Figure 1 A schematic diagram of the hardware structure of a mobile terminal to implement the various embodiments of this application;

[0078] Figure 2 A communication network system architecture diagram provided in this application embodiment;

[0079] Figure 3 A schematic diagram of the hardware structure of a controller 140 provided in this application;

[0080] Figure 4 A schematic diagram of the hardware structure of a network node 150 provided in this application;

[0081] Figure 5 This is a flowchart illustrating the image processing method according to the first embodiment;

[0082] Figure 6 This is a flowchart illustrating the encoding and decoding process in image processing methods.

[0083] Figure 7 It is a reference block with a width and height dimension in the image processing method shown in the second embodiment;

[0084] Figure 8 It is a reference block with another width and height dimension in the image processing method shown according to the second embodiment;

[0085] Figure 9 It is another reference block with width and height dimensions in the image processing method shown in the second embodiment;

[0086] Figure 10 This is a texture diagram of a reference template for a sub-block in the image processing method shown in the second embodiment;

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

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

[0089] Figure 13 This is another schematic flowchart of the image processing method according to the fourth embodiment;

[0090] Figure 14 This is a schematic diagram of a construction process for a list of most likely patterns in an image processing method according to the fourth embodiment;

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

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

[0093] The realization of the objectives, functional features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. The accompanying drawings have illustrated specific embodiments of this application, which will be described in more detail below. These drawings and textual descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this application to those skilled in the art through reference to specific embodiments. Detailed Implementation

[0094] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses 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 "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, components, features, and elements with the same names in different embodiments of this application may have the same meaning or different meanings, the specific meaning of which must be determined by its interpretation in that specific embodiment or further in conjunction with the context of that specific embodiment.

[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 used only to distinguish information of the same type from one another. For example, without departing from the scope of this document, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word “if” as used herein may be interpreted as “when…” or “in response to determination”. Furthermore, as used herein, the singular forms “a,” “an,” and “the” are intended to also include the plural forms unless the context indicates otherwise. It should be further understood that the terms “comprising,” “including,” and “including” indicate the presence of the stated feature, step, operation, element, component, item, kind, and / or group, 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,” etc., as used in this application, may be interpreted as inclusive, or mean any one or any combination thereof. 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." Similarly, "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." Exceptions to this definition only occur 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 flowcharts of this application's embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.

[0098] Depending on the context, the words “if” or “suppose” as used here can be interpreted as “when” or “in response to determination” or “in response to detection.” Similarly, depending on the context, the phrases “if determination” or “if detection (of the stated condition or event)” can be interpreted as “when determination” or “in response to determination” or “when detection (of the stated condition or event)” or “in response to detection (of the stated condition or event).”

[0099] It should be noted that step designations such as S10 and S20 are used in this document for the purpose of more clearly and concisely describing the corresponding content, and do not constitute a substantial limitation on the order. In specific implementation, those skilled in the art may execute S20 first and then S10, etc., but these should all be within the protection scope of this application.

[0100] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0101] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.

[0102] Smart terminals can be implemented in various forms. For example, the smart terminals described in this application may include smart terminals such as mobile phones, tablets, laptops, handheld 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] The following description will use a mobile terminal as an example. Those skilled in the art will understand that, apart from elements specifically designed for mobile purposes, the construction according to the embodiments of this application can also be applied to fixed-type terminals.

[0104] Please see Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of this 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 will understand that... Figure 1 The mobile terminal structure shown does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0105] The following is combined Figure 1 A detailed introduction to each component of the mobile terminal:

[0106] The radio frequency unit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 110; additionally, it transmits uplink data to the base station. Typically, 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, and a duplexer. Furthermore, the radio frequency unit 101 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may 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.

[0107] WiFi is a short-range wireless transmission technology. Mobile terminals, through the WiFi module 102, can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 1 WiFi module 102 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted as needed without changing the nature of the invention.

[0108] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into audio signals and output them as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, etc. Furthermore, the audio output unit 103 can also provide audio output related to specific functions performed by the mobile terminal 100 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may 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 image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or 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 medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) in operating modes such as telephone call mode, recording mode, and voice recognition mode, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in telephone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.

[0110] The mobile terminal 100 also 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 ambient light level, and the proximity sensor can turn off the display panel 1061 and / or backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.

[0111] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0112] User input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Optionally, user input unit 107 may include touch panel 1071 and other input devices 1072. Touch panel 1071, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 1071), and drive corresponding connection devices according to a pre-set program. Touch panel 1071 may include a touch detection device and a touch controller. Optionally, the touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 110, and can receive and execute commands sent by processor 110. In addition, touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Optionally, other input devices 1072 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc., without being specifically limited here.

[0113] Optionally, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 based on the type of touch event. Although in Figure 1 In this embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, 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. The specific implementation is not limited here.

[0114] Interface unit 108 serves as an interface through which at least one external device can connect to mobile terminal 100. For example, the external device may 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 headphone port, and so on. Interface unit 108 may be used to receive input (e.g., data, power, etc.) from the external device and transmit the received input to one or more elements within mobile terminal 100, or it may be used to transmit data between mobile terminal 100 and the external device.

[0115] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a program storage area and a data storage area. Optionally, the program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0116] The processor 110 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. Optionally, the application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 110.

[0117] The mobile terminal 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.

[0118] although Figure 1 As not shown, the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.

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

[0120] Please see Figure 2 , Figure 2 This application provides a communication network system architecture diagram. The communication network system is an LTE system based on the universal mobile communication technology. The 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 services 204, which are connected in sequence.

[0121] Optionally, UE201 can be the aforementioned terminal 100, which will not be described in detail here.

[0122] E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. Optionally, eNodeB2021 can connect to other eNodeB2022 via backhaul (e.g., X2 interface), and eNodeB2021 connects to EPC203, providing access from UE201 to EPC203.

[0123] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gateway) 2034, PGW (Packet Data Network Gateway) 2035, and PCRF (Policy and Charging Rules Function) 2036, etc. Optionally, MME2031 is the control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as the Home Location Register (not shown in the figure) and stores user-specific information such as service characteristics and data rates. All user data can be sent through SGW2034. PGW2035 can provide UE 201 IP address allocation and other functions. PCRF2036 is the policy and charging control decision point for service data flow and IP bearer resources. It selects and provides available policy and charging control decisions for the policy and charging enforcement function unit (not shown in the figure).

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

[0125] Although the above description uses the LTE system as an example, those skilled in the art should know that this application is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, 5G and future new network systems (such as 6G), etc., without limitation.

[0126] Figure 3This is a schematic diagram of the hardware structure of a controller 140 provided in 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 embodiment of the above method. The implementation principle and beneficial effects are similar, and will not be described again here.

[0127] Optionally, the controller further includes a communication interface 1403, which can be connected to the processor 1402 via 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 This application provides a schematic diagram of the hardware structure of a network node 150. 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 embodiment of the above method. The implementation principle and beneficial effects are similar, and will not be described again here.

[0129] Optionally, the controller further includes a communication interface 1503, which can be connected to the processor 1502 via 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 integrated modules described above, implemented as software functional modules, can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application.

[0131] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a storage medium or transmitted from one storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk, SSD), etc.

[0132] First Embodiment

[0133] Reference Figure 5 , Figure 5 This is a flowchart illustrating the image processing method according to the first embodiment. The image processing method of this application embodiment can be applied to a processing device, including step S10: determining or obtaining a list of most likely patterns based on 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 or computer, or a server, such as a local server or a cloud server. This embodiment and this application primarily use a smart terminal as an example for illustration.

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

[0136] Optionally, for ease of understanding, a brief introduction to the encoding / decoding architecture will be provided first: (Refer to...) Figure 6In the encoding and decoding framework, the input video frame can be divided into blocks to obtain at least one block. Each block is processed by the frame transformation module. The transformed video frame is then input into modules such as transformation, quantization, intra-frame prediction, inter-frame coding, inverse quantization, inverse transform, and loop filtering. The video frame processed by the quantization module is entropy encoded, and the output bits are 01011100, etc. Motion estimation is performed based on the video frame obtained after loop filtering and the video frame processed by frame transformation to obtain motion information. Inter-frame prediction is then performed based on the motion information.

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

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

[0139] Optionally, during the encoding and decoding process, each stage may use the most likely pattern list for processing. For example, in the partitioning stage, the most likely pattern list is used to obtain the partitioning pattern to partition the current block; in the prediction stage, the most likely pattern list is used to obtain the prediction pattern to predict the current block.

[0140] Optionally, the most probable pattern list is constructed using the same method for all blocks (such as image blocks). For example, the most probable pattern list is generated by sorting the selected patterns (such as prediction patterns). However, since there are many features between different blocks (such as image blocks) and there are differences, such as different sizes and textures of sub-blocks within a block, the accuracy of the most probable pattern list is low on some blocks.

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

[0142] Optionally, the current block can be an image block. Optionally, it can be a different block at different stages of encoding and decoding. For example, in the segmentation stage, it can be an image block to be segmented, and in the prediction stage, it can be an image block to be predicted.

[0143] Optionally, the current block may include at least one sub-block, and the characteristics of at least one sub-block may be used as the sub-block characteristics 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 can be processed based on the most likely pattern list determined or obtained from the sub-block features of the current block.

[0146] Optionally, when the processing device is a decoding end, the current block can be processed based on the most likely pattern list determined or obtained from the sub-block characteristics of the current block.

[0147] The technical solution of this embodiment can ensure that the most likely prediction pattern list is highly accurate when applied to the sub-blocks of the current block. Furthermore, it can also improve the processing effect when performing prediction processing on the current block using the most likely list.

[0148] Second Embodiment

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

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

[0151] Optionally, the most likely pattern list of the current block can be determined or obtained based on the characteristics of the sub-blocks of the current block;

[0152] Optionally, a list of the most likely patterns for at least one sub-block can be determined or obtained based on the sub-block characteristics of the current block.

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

[0154] Optionally, the most likely pattern list of the current block can be processed based on the sub-block features to obtain K most likely sub-pattern lists. For example, for each sub-block, a candidate pattern that matches the sub-block features of the current block can be selected from the most likely pattern list of the current block, and the most likely sub-pattern list can be generated based on the selected candidate pattern. 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 K most likely sub-pattern lists. For example, the most likely sub-pattern list can be directly used as the most likely pattern list of the sub-block. Alternatively, the most likely sub-pattern list can be appropriately transformed (such as adjusting the position of the candidate pattern in the most likely sub-pattern list) to obtain the most likely pattern list of the sub-block.

[0156] Alternatively, the most likely pattern list of the current block can 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 based on 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 one to three.

[0158] Method 1: Determine or obtain the sub-block partitioning rule based on at least one of the partitioning rules in the bitstream, syntax elements, and characteristics of the current block;

[0159] Alternatively, syntax elements can be flags, indexes of partitioning rules, etc.

[0160] Optionally, after determining the partitioning rules for the current block to obtain sub-blocks, the encoding end can encode the partitioning rules and transmit them to the decoding end in the form of a bitstream. The decoding end can obtain the partitioning rules in the bitstream and directly use the partitioning rules in the bitstream as sub-block partitioning rules to partition the current block and obtain at least one sub-block.

[0161] Optionally, the decoding end can obtain syntax elements in the bitstream, select the corresponding partitioning rule from at least one partitioning rule based on the syntax elements as the sub-block partitioning rule, and partition the current block according to the sub-block partitioning rule to obtain at least one sub-block.

[0162] Optionally, at least one sub-block partitioning rule can be determined or obtained based on the characteristics of the current block, and the current block can be partitioned according to the at least one sub-block partitioning 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 features of the sub-blocks. The features of the current block can include the pixel values, size parameters, etc.

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

[0165] Optionally, the sub-block partitioning rules can be used as sub-block features, and the most likely pattern list can be determined or obtained based on the sub-block partitioning rules.

[0166] The technical solution of this embodiment can be used to determine or obtain sub-block partitioning rules based on at least one of the partitioning rules, syntax elements and features of the current block in the code stream, and then determine or obtain the most likely pattern list based on the sub-block features. This can ensure that the most likely pattern list is closely related to the sub-block partitioning rules, and thus determine or obtain a more suitable most likely pattern list, so as to improve the processing effect when processing the current block according to the most likely pattern list in the future.

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

[0168] Optionally, the shape parameters may include the shape of the sub-blocks and / or reference blocks, such as rectangles, trapezoids, etc.

[0169] Optionally, the position parameters may include the location of the sub-block and / or the reference block, or the position of the sub-block and / or the reference block relative to the current block. Optionally, the position parameters of the sub-block and / or the reference block may be determined or obtained based on the pixel coordinates of the sub-block and / or the reference block.

[0170] Optionally, the size parameters may include at least one of the following: width, height, aspect ratio, block size, and block area of ​​the sub-block and / or reference block. They may also include parameters related to the block's size parameters, such as the width after format transformation.

[0171] Optionally, content complexity can be the content fill level of sub-blocks and / or reference blocks, which may include the degree of content variation of sub-blocks and / or reference blocks, such as the degree of texture transformation, color change information, etc.

[0172] Optionally, the pixel type can 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 larger than a preset pixel threshold are classified as one type of pixel, and pixels smaller than the preset pixel threshold are classified as another type of pixel.

[0173] Optionally, at least one of the shape parameters, position parameters, size parameters, content complexity, and pixel type of the sub-block and / or reference block can be used as sub-block features, and the most likely pattern list can be determined or obtained based on the sub-block features.

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

[0175] The technical solution of this embodiment can be used to take at least one of the shape parameters, position parameters, size parameters, content complexity, and pixel type of the sub-block and / or reference block as sub-block features, and then determine or obtain the most likely pattern list based on the sub-block features. This can ensure that the most likely pattern list is closely related to at least one of the shape parameters, position parameters, size parameters, content complexity, and pixel type of the sub-block and / or reference block, thereby determining or obtaining a more suitable most likely pattern list, so that the processing effect can be improved when the current block is processed according to the most likely pattern list.

[0176] Method 3: at least one of the following: features of the current block, pixel features of the reference template of the sub-block, pixel features of the reference block, similarity between the reference template of the sub-block and the reference block, number of reference blocks, and pattern of the reference block.

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

[0178] Optionally, the reference template can be determined or obtained based on 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, pixel features may include the texture of the block (such as smoothness or sharpness), and may also include other features related to the pixels of the block, such as pixel values, or, when the current block is the current block of the chroma component, the luminance value of the current block, etc.

[0182] Alternatively, the pixel features of the reference template of the sub-block can be approximated as the pixel features of the sub-block.

[0183] Optionally, the texture of the reference template for the sub-block can be as follows: Figure 10 As shown, its texture transformation is fast.

[0184] Optionally, the texture of the reference template for the sub-block can be as follows: Figure 11 As shown, its texture transformation is smooth.

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

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

[0187] Alternatively, when performing similarity calculation, a pre-set similarity function can be used, 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, and there are no restrictions on this.

[0188] Alternatively, at least one of the number of reference blocks and the mode used by the reference blocks can be used as a sub-block feature.

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

[0190] The technical solution of this embodiment can be implemented by taking at least one of the following as sub-block features: 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. Then, the most likely pattern list can be determined or obtained based on the sub-block features. This ensures that the most likely pattern list is closely related to at least one of the following: 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. This allows for the determination or obtaining of a more suitable most likely pattern list, thereby improving the processing effect when the current block is processed according to the most likely pattern list in the future.

[0191] Third Embodiment

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

[0193] In this embodiment, the reference block includes at least one of the following: neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-blocks.

[0194] Optionally, the neighboring block corresponding to the current block can be a block adjacent to the current block, and the neighboring block can include adjacent blocks and non-adjacent blocks.

[0195] Optionally, the neighboring block corresponding to the child block can be a block adjacent to the child block, and can include the neighboring block corresponding to the current block, for example, such as Figure 12 As shown, the neighboring block of the current block can be used as the neighboring block of the child block.

[0196] Optionally, the non-neighboring block corresponding to the current block can be a block that is not adjacent to the current block, and the non-neighboring block can include non-adjacent blocks.

[0197] Optionally, the non-neighboring block corresponding to the sub-block can be a block that is not adjacent to the sub-block.

[0198] Optionally, the corresponding peer block can be an image block in the peer image that has the same position and size as the current block to be processed (e.g., to be predicted). Optionally, the peer image can be the image in the reference image that is closest to the current image in time.

[0199] Optionally, the corresponding co-op block of the sub-block can be an image block in the same image as the sub-block, with the same position and size, or it can be the corresponding co-op block of the current block.

[0200] Optionally, the temporal block corresponding to the current block can be a block that is distinguished in the time domain, such as an image block in the previous frame. For example, if there is video data including three frames of images, the first frame is played in the first second, the second frame is played in the second second, and the third frame is played in the third second, and if the image block being processed (such as prediction) at the current moment is an image block after the second frame is divided, then the temporal block can be determined to be the image block corresponding to it in the first frame.

[0201] Optionally, the temporal block corresponding to the sub-block can be the temporal block corresponding to the current block or a sub-block within the temporal block corresponding to the current block.

[0202] Optionally, a cross-component block can be an image block that is in a different component from at least one current image block:

[0203] For example, if at least one image block is an image block with the Y component, then the cross-component block can be an image block with the U component and / or the V component.

[0204] For example, if at least one image block is an image block with the U component, then the cross-component block can be an image block with the Y component and / or the V component.

[0205] For example, if at least one image block is an image block of the V component, then the cross-component block can be an image block of the U component and / or the Y component.

[0206] Optionally, the cross-component block corresponding to the sub-block can be the cross-component block corresponding to the current block or a sub-block within the cross-component block corresponding to the current block.

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

[0208] Optionally, the candidate block corresponding to the current block can be determined or generated based on the candidate motion vector or candidate block vector of the current block.

[0209] Optionally, the candidate motion vector or candidate block vector may include motion vectors or block vectors corresponding to at least one of the following: neighboring block, non-neighboring block, co-located block, temporal block, cross-component block, and default block. It may also include motion vectors or block vectors corresponding to at least one of the following: 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. It may also include the motion vector or block vector of the current block, etc. The following only uses the motion vector or block vector of the current block as an example.

[0210] Optionally, the current block can be predicted based on the block vector, and candidate blocks can be determined based on the block vector prediction results.

[0211] Optionally, the current block can be predicted based on the motion vector, and candidate blocks can be determined based on the motion vector prediction results.

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

[0213] Optionally, the shape parameters, and / or position parameters, and / or size parameters, and / or content complexity, and / or pixel type, and / or pixel features of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-block can be used as sub-block features, and then the most likely pattern list can be determined or obtained based on the sub-block features.

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

[0215] Optionally, the pattern of at least one of the following: neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-block can be used as a sub-block feature, and the most likely pattern list can be determined or obtained based on the sub-block feature.

[0216] Optionally, the characteristics of the current block are determined or obtained according to at least one of the following methods four to eight:

[0217] Method 4: Size parameter of at least one of the following: current block, neighboring block, non-neighboring block, co-located block, temporal block, cross-component block, default block, and candidate block;

[0218] Optionally, the size parameter of at least one of the current block, neighboring block, non-neighboring block, co-occurring block, temporal block, cross-component block, default block, and candidate block can be used as the feature of the current block. Alternatively, the size parameter of at least one of the block can be appropriately deformed to obtain the feature of the current block.

[0219] At least one of the following can be used as the characteristics of the current block: width, height, aspect ratio, block size, and block area.

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

[0221] Optionally, at least one of the following can be used as a feature of the current block: width, height, aspect ratio, block size, and block area.

[0222] Optionally, at least one of the following can be used as a feature of the current block: width, height, aspect ratio, block size, and block area.

[0223] Optionally, at least one of the following can be used as a feature of the current block: width, height, aspect ratio, block size, and block area.

[0224] Optionally, at least one of the following can be used as a feature of the current block: width, height, width-to-height ratio, block size, and block area.

[0225] Optionally, at least one of the following can be used as the characteristics of the current block: width, height, aspect ratio, block size, and block area.

[0226] Optionally, at least one of the following can be used as the feature of the current block: width, height, aspect ratio, block size, and block area.

[0227] Optionally, the width, height, aspect ratio, block size, and / or block area of ​​at least one of the current block, neighboring blocks, non-neighboring blocks, co-occurring blocks, temporal blocks, cross-component blocks, default blocks, and neighboring blocks can be transformed (e.g., format conversion, numerical conversion, addition or subtraction operations, etc.) to obtain the characteristics of the current block.

[0228] The technical solution of this embodiment can determine or obtain the characteristics of the current block based on the size parameters of at least one of the current block, neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks. Then, the characteristics of the sub-blocks can be determined or obtained based on the characteristics of the current block. Furthermore, the most probable pattern list can be determined or obtained based on the sub-block characteristics. This ensures that the most probable pattern list is closely related to the size parameters of the block, thereby determining or obtaining a more suitable most probable pattern list. This will improve the processing effect when the current block is processed according to the most probable pattern list in the future.

[0229] Method 5: Pixel features of at least one of the following: reference template of the current block, neighboring blocks, non-neighboring 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, neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks of the current block can be used as the features of the current block. Alternatively, the pixel features of at least one of the blocks can be appropriately transformed (e.g., format conversion, numerical conversion, addition or subtraction operations, etc.) to obtain the features of the current block.

[0231] Optionally, since the pixel features of a block can include the block's texture, texture variation degree, and pixel value, the texture, texture variation degree, and pixel value of at least one of the following: the reference template, neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks of the current block can be used as the features of the current block.

[0232] The technical solution of this embodiment can determine or obtain the features of the current block based on the pixel features of at least one of the reference template, neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks. Then, it can determine or obtain the features of sub-blocks based on the features of the current block, and then determine or obtain the most likely pattern list based on the features of the sub-blocks. This can ensure that the most likely pattern list is closely related to the pixel features of the block, and thus determine or obtain a more suitable most likely pattern list. This will improve the processing effect when the current block is processed according to the most likely pattern list in the future.

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

[0234] Optionally, a neighboring pixel can be at least one pixel in a neighboring block.

[0235] Optionally, a non-neighbor pixel can be at least one pixel in a non-neighbor block.

[0236] Optionally, a co-occurring pixel can be at least one pixel in the co-occurring block.

[0237] Optionally, a temporal block pixel can be at least one pixel in a temporal block.

[0238] Optionally, a pixel spanning a component block can be at least one pixel within a component block.

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

[0240] Optionally, a candidate block pixel can be at least one pixel in a candidate block.

[0241] Optionally, the reference template of the current block can be approximated as the pixel of the current block, and then the similarity between the reference template of the current block and at least one of the following: neighboring pixels, non-neighboring pixels, co-located block pixels, temporal block pixels, cross-component block pixels, default block pixels, and candidate block pixels can be calculated.

[0242] Alternatively, when performing similarity calculation, a pre-set similarity function can be used, 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.

[0243] Optionally, a neural network can be used to determine the similarity during similarity calculation. For example, the reference template of the current block can be directly input into the neural network along with neighboring pixels, non-neighboring pixels, co-located block pixels, temporal block pixels, cross-component block pixels, default block pixels, and candidate block pixels. The output will be the similarity between the reference template of the current block and neighboring pixels, non-neighboring pixels, co-located block pixels, temporal block pixels, cross-component block pixels, default block pixels, and candidate block pixels, respectively.

[0244] Optionally, the similarity between the reference template of the current block and at least one of the following: neighboring pixels, non-neighboring pixels, co-located block pixels, temporal block pixels, cross-component block pixels, default block pixels, and candidate block pixels can be used as the feature of the current block. Alternatively, the similarity of at least one of these can be appropriately transformed (e.g., format conversion, numerical conversion, addition or subtraction operations, etc.) to obtain the feature of the current block.

[0245] The technical solution of this embodiment can determine or obtain the features of the current block based on the similarity between the current block's reference template and at least one of the following: neighboring pixels, non-neighboring pixels, co-located block pixels, temporal block pixels, cross-component block pixels, default block pixels, and candidate block pixels. Then, based on the features of the current block, sub-block features can be determined or obtained. Furthermore, based on the sub-block features, a most probable pattern list can be determined or obtained. This ensures that the most probable pattern list is closely related to the block's similarity, thereby determining or obtaining a more suitable most probable pattern list. This improves the processing effect when the current block is processed based on the most probable pattern list in the future.

[0246] Method 7: The number of at least one of the following: neighboring blocks, non-neighboring blocks, co-occurring blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks;

[0247] Optionally, taking a neighboring block as an example, the number of neighboring blocks of the current block can be determined. For example, neighboring blocks can be scanned in a certain order, and the number of neighboring blocks after scanning can be determined. For example, image blocks whose pixel distance from the current block is less than a preset pixel distance can be used as neighboring blocks, and the number of selected neighboring blocks can be determined. For example, image blocks within a certain range can be used as neighboring blocks, and the number of selected neighboring blocks can be determined.

[0248] Optionally, the quantity of at least one of the following—neighboring blocks, non-neighboring blocks, co-occurring blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks—can be determined as a characteristic of the current block. Alternatively, the quantity of at least one of these items can be appropriately transformed (e.g., by performing format conversion, numerical conversion, addition, or subtraction operations) to obtain the characteristic of the current block.

[0249] The technical solution of this embodiment can determine or obtain the characteristics of the current block based on the number of at least one of neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks. Then, it can determine or obtain the characteristics of sub-blocks based on the characteristics of the current block, and then determine or obtain the most likely pattern list based on the sub-block characteristics. This can ensure that the most likely pattern list is closely related to the number of blocks, and thus determine or obtain a more suitable most likely pattern list, so as to improve the processing effect when processing the current block according to the most likely pattern list in the future.

[0250] Method 8 is a pattern consisting of at least one of the following: neighboring block, non-neighboring block, co-occurring block, temporal block, cross-component block, default block, and candidate block.

[0251] Optionally, the mode may include at least one of the following: intra-frame prediction mode, 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 block partitioning mode.

[0252] Optionally, for different stages in the video encoding and decoding process, the pattern adopted by at least one of the neighboring blocks, non-neighboring blocks, co-occurring 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-frame prediction stage, at least one of the following can be used as the feature of the current block: the inter-frame prediction mode used by neighboring blocks, the inter-frame prediction mode used by non-neighboring blocks, the inter-frame prediction mode used by co-occurring blocks, the inter-frame prediction mode used by temporal blocks, the inter-frame prediction mode used across component blocks, the inter-frame prediction mode used by the default block, and the inter-frame prediction mode used by candidate blocks.

[0254] Optionally, the pattern of at least one of the neighboring block, non-neighboring block, co-occurring block, temporal block, cross-component block, default block and candidate block can be used as the feature of the current block, or the pattern of at least one of them can be appropriately transformed to obtain the feature of the current block.

[0255] The technical solution of this embodiment can determine or obtain the features of the current block based on at least one of the patterns of neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks. Then, it can determine or obtain the features of sub-blocks based on the features of the current block, and then determine or obtain the most likely pattern list based on the features of the sub-blocks. This can ensure that the most likely pattern list is closely related to the block's pattern, and thus determine or obtain a more suitable most likely pattern list. This will improve the processing effect when the current block is processed according to the most likely pattern list in the future.

[0256] Fourth embodiment

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

[0258] In this embodiment, refer to Figure 13 Step S10 includes steps S101 and S102:

[0259] Step S101: Determine or obtain at least one list construction rule and / or the execution order corresponding to at least one list construction rule based on the sub-block characteristics of the current block;

[0260] Optionally, the list construction rules can be different depending on the characteristics of the sub-blocks of the current block.

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

[0262] Optionally, a 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 based on the correspondence. Then, the most likely pattern list can be constructed based on the at least one list construction rule to determine or obtain the most likely pattern list.

[0263] Optionally, the list construction rules can be different for different sub-block features: for example, if the current block features feature 1, the list construction rule can include list construction rule 1, or if the current block features feature 2, the list construction rule can include list construction rule 2.

[0264] Optionally, the number of list construction rules can vary depending on the characteristics of the current block.

[0265] Optionally, the types of the corresponding list construction rules may differ.

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

[0267] For example, if the current block and / or sub-block is a smooth region (such as sky or background), the reliance on Planar mode can be reduced, and DIMD (Decoder-side Intra Mode Derivation) mode or other modes suitable for smooth regions can be given priority. If the current block and / or sub-block has regions with complex textures (such as edges or densely textured regions), the weight of more non-adjacent block modes (such as non-neighboring blocks) or DIMD Blend Modes can be increased. In other words, the list construction rules are different for different textures of the current block and / or sub-block.

[0268] Optionally, the weights of DIMDBlend Modes can be dynamically adjusted based on the pattern distribution and texture features of neighboring blocks, non-neighboring blocks, etc., to better match the dynamic characteristics of the sub-blocks in the current block.

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

[0270] Optionally, the number of candidate patterns can be dynamically adjusted based on the complexity of the block content of the current block and / or sub-blocks, using more candidate patterns for complex regions and fewer candidate patterns for simple regions.

[0271] Optionally, the content of the default mode can be dynamically adjusted based on the block mode of the current block and / or sub-blocks or the neighboring block mode.

[0272] Optionally, a new default mode can be generated by combining the neighboring block mode and the DIMD mode to adapt to different video content and scenarios.

[0273] Step S102: Determine or obtain the most likely pattern list based on at least one list construction rule and / or the execution order corresponding to at least one list construction rule.

[0274] Optionally, after determining at least one list construction rule, a list of the most likely patterns, including at least one candidate pattern, can 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 following: neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block or sub-block. For example, the mode of the neighboring block can be directly used as the candidate mode. Optionally, different modes can be used in 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 mode, cross-component prediction mode, geometric partitioning mode, spatial geometric partitioning mode, and / or block partitioning mode.

[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 can be executed sequentially according to the execution order to construct the most likely pattern list.

[0277] Optionally, such as Figure 14 As shown, given the current block's sub-blocks and their neighboring blocks, the current block and / or sub-block information, and / or neighboring block information can be input into the 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 may include pixels of neighboring blocks, etc.

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

[0279] The technical solution of this embodiment can determine or obtain the list construction rules and / or the execution order of the list construction rules corresponding to the most likely pattern list based on the characteristics of the current block sub-block. This can reflect that the most likely pattern comprehensively considers the characteristics of the sub-block, and thus make the most likely pattern list determined or obtained based on the list construction rules and / or the execution order of the list construction rules more accurate. When processing the current block based on 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 9: If the sub-block features satisfy the first condition, then at least one list construction rule is determined as the first list construction rule;

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

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

[0286] Optionally, for list construction rules of the same type, at least one list construction rule can be selected as the first list construction rule based on the characteristics of the sub-blocks, and the most likely pattern list can be determined or obtained based on the first list construction rule.

[0287] Through the technical solution of this embodiment, the determination or acquisition method of the most likely pattern list can be closely related to the sub-block features. When the sub-block features meet 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, it can generate a more suitable most likely pattern list.

[0288] Method 10: If the sub-block features do not meet the first condition, then at least one list construction rule is determined as the second list construction rule;

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

[0290] Optionally, for at least one list construction rule of the same type, at least one list construction rule can be selected based on the sub-block characteristics to construct 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 of the same type can be selected 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 of the same type can be selected as the second list construction rule, and the most likely pattern list can be constructed according to the second list construction rule.

[0292] Optionally, at least one type of list construction rule may exist.

[0293] Through the technical solution of this embodiment, the determination or acquisition method of the most likely pattern list can be closely related to the sub-block features. When the sub-block features do not meet the first condition, at least one list construction rule is determined as the second list construction rule, which 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, it can generate a more suitable most likely pattern list.

[0294] Method 11: 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, then the execution order of the first list construction rule is greater than the execution order 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, while other sub-block features do not satisfy the first condition, then the list construction rule for constructing the most likely pattern list can be determined to include both the first list construction rule and the second list construction rule.

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

[0298] Optionally, if the list construction rules corresponding to the most likely pattern list determined based on the sub-block features include the first list construction rule and the second list construction rule, then at least one sub-block feature can be further judged. If at least one sub-block feature satisfies the second condition, then the execution order of the first list construction rule can be determined to be greater than the execution order of the second list construction rule.

[0299] Optionally, for the current block, if it has been determined that the list construction rules include the first list construction rule and the second list construction rule, then at least one sub-block feature of the current block can continue to be detected. If there is a sub-block feature that satisfies the second condition, then when constructing the most likely pattern list, the first list construction rule can be executed first, 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, the determination or acquisition of the most likely pattern list can be 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 a second condition, the execution order of the first list construction rule is determined to be greater than the execution order of the second list construction rule. Thus, the first list construction rule and the second list construction rule can be executed sequentially according to the execution order to determine or obtain the most likely pattern list. Furthermore, since the most likely pattern list comprehensively considers the detailed features of the block, i.e., the sub-block features, the processing effect can be improved when the most likely pattern list is applied to process the current block.

[0301] Method 12: 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, then the execution order of the first list construction rule is less than the execution order of the second list construction rule.

[0302] Optionally, for the current block, if some sub-block features satisfy the first condition and other sub-block features do not satisfy the first condition, for example, if the sub-block features determined according to method one satisfy the first condition and the sub-block features determined according to method two do not satisfy the first condition, then it can be determined that the list construction rule includes both the first list construction rule and the 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 less than the execution order 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 selected at least one sub-block feature satisfies the second condition, it can be determined that the execution order of the first list construction rule is greater than the execution order of the second list construction rule; and / or, if the selected at least one sub-block feature does not satisfy the second condition, it can be determined that the execution order of the first list construction rule is less than the execution order of the second list construction rule.

[0305] Through the technical solution of this embodiment, the determination or acquisition of the most likely pattern list can be 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 do not meet the second condition, the execution order of the first list construction rule is determined to be lower than the execution order of the second list construction rule. Thus, the second list construction rule and the first list construction rule can be executed sequentially according to the execution order to determine or obtain the most likely pattern list. Furthermore, since the most likely pattern list comprehensively considers the detailed features of the block, i.e., the sub-block features, the processing effect can be improved when the most likely pattern list is applied to process the current block.

[0306] Method 13: If the list construction rules only include the first list construction rule, then 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.

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

[0308] Optionally, if the sub-block features of the current block satisfy the first condition and there are no sub-block features that do not satisfy the first condition, then the list construction rule can be determined to include only 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 the detected at least one selected sub-block feature satisfies the first condition, then the list construction rule can be determined to include only the first list construction rule.

[0309] Optionally, the correspondence between each list construction rule and at least one sub-block feature can be pre-defined. 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, the sub-block features corresponding to each first list construction rule can be determined.

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

[0312] Optionally, if the fourth condition includes not satisfying the third condition, that is, if the sub-block feature corresponding to the first list construction rule does not satisfy the third condition, then it can be determined that the sub-block feature corresponding to the first list construction rule satisfies 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, then it can be determined that the sub-block feature corresponding to the first list construction rule satisfies the third condition.

[0314] Optionally, the third and fourth conditions 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, the determination or acquisition of the most likely pattern list can be closely related to the sub-block features. 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 executed first, 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. Furthermore, since the most likely pattern list comprehensively considers the detailed features of the block, i.e., the sub-block features, the processing effect can be improved when the most likely pattern list is applied to process the current block.

[0316] Method Fourteen: If the list construction rules only include the second list construction rules, then the execution order of the second list construction rules corresponding to the sub-block features that satisfy the fifth condition is greater than the execution order of the second list construction rules corresponding to the sub-block features that satisfy the sixth condition.

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

[0318] Optionally, if the sub-block features of the current block do not satisfy the first condition, and there are no sub-block features that satisfy the first condition, then 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, then it can be determined that the list construction rule only includes the second list construction rule.

[0319] Optionally, the correspondence between each list construction rule and at least one sub-block feature can be pre-defined, meaning that 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 features corresponding to each second list construction rule can be determined.

[0321] Optionally, if there exists a sub-block feature corresponding to the second list construction rule that satisfies the fifth condition, and there exists a sub-block feature corresponding to the second list construction rule that satisfies the sixth condition, then 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.

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

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

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

[0325] Through the technical solution of this embodiment, the determination or acquisition of the most likely pattern list can be 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 feature that satisfies the fifth condition will be executed first, and then the second list construction rule corresponding to the sub-block feature that satisfies the sixth condition will be executed to determine or obtain the most likely pattern list. Furthermore, since the most likely pattern list comprehensively considers the detailed features of the block, i.e., the sub-block features, the processing effect can be improved when the most likely pattern list is applied to process the current block.

[0326] Sixth Embodiment

[0327] Based on any of the above embodiments, a 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 15: The matching result between the sub-block partitioning rules and the preset partitioning rules or the range of preset partitioning rules;

[0330] Optionally, the preset partitioning rules can be pre-set rules for partitioning the current block into sub-blocks, such as partitioning by diagonal lines or partitioning according to certain reference lines.

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

[0332] Optionally, the matching results include sub-block partitioning rules, and whether they match or not with preset partitioning rules or a range of preset partitioning rules.

[0333] Optionally, if the sub-block partitioning rule includes a preset partitioning rule, then the sub-block partitioning rule and the preset partitioning rule are matched; or, if the sub-block partitioning rule is within the range of the preset partitioning rule, then the sub-block partitioning rule and the range of the preset partitioning rule are matched; or, if the sub-block partitioning rule does not include the preset partitioning rule, i.e., the sub-block partitioning rule and the preset partitioning rule are different, then the sub-block partitioning rule and the preset partitioning rule are not matched; or, if any partitioning rule existing within the range of the preset partitioning rule is different from the sub-block partitioning rule, i.e., the sub-block partitioning rule is not within the range of the preset partitioning rule, then the sub-block partitioning rule and the range of the preset partitioning rule are not matched.

[0334] Optionally, if the sub-block partitioning rule matches the preset partitioning rule or preset partitioning range, then 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.

[0335] Optionally, if the sub-block partitioning rule does not match the preset partitioning rule or preset partitioning range, then 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.

[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 based on the sub-block partitioning rules and the matching results of preset partitioning rules or the range of preset partitioning rules. This allows for the determination or acquisition of list construction rules and the execution order of list construction rules, making the most probable pattern list determined or obtained based on the list construction rules and the execution order of list construction rules more accurate. Furthermore, since the most probable pattern list comprehensively considers the detailed features of the block, i.e., the sub-block features, the processing effect can be improved when the most probable pattern list is applied to process the current block.

[0337] Method 16: The matching result of the shape parameters of the sub-block and / or reference block with the preset shape parameter threshold or preset shape parameter range;

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

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

[0340] Optionally, the matching result includes the shape parameters of the sub-block and / or reference block, and whether it matches or does 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 parameters of the sub-block are also 2x2 rectangles, it can be determined that the shape parameters of the sub-block match the preset shape parameter threshold.

[0342] Optionally, if the shape parameters of the sub-block and / or the reference block are different from the preset shape parameter threshold, it can be determined that the shape parameters of the sub-block and / or the reference block do not match the preset shape parameter threshold.

[0343] Optionally, if the preset shape parameter range includes the 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; or, if the preset shape parameter range does not include the 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, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-block, including a preset shape parameter threshold, or is within a preset shape parameter range, then it can be determined that the shape parameter of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, temporal 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, then it can be determined that the sub-block features satisfy at least one of the first, second, third, fourth, fifth, and sixth conditions.

[0346] Optionally, if the shape parameters of the sub-block and / or the reference block do not match the preset shape parameter threshold or the preset shape parameter range, then 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.

[0347] Through the technical solution of this embodiment, the first condition, second condition, third condition, fourth condition, fifth condition and / or sixth condition can be determined or obtained based on the shape parameters of the sub-block and / or reference block and the matching result of the preset shape parameter threshold or preset shape parameter range. This leads to the determination or obtaining of the list construction rules and the execution order of the list construction rules, making the most probable pattern list determined or obtained based on the list construction rules and the execution order of the list construction rules more accurate. Furthermore, since the most probable pattern list comprehensively considers the detailed features of the block, i.e., the features of the sub-block, the processing effect can be improved when the most probable pattern list is applied to process the current block.

[0348] Method 17: The matching result of the position parameters of the sub-block and / or reference block with the preset position parameter threshold or preset position parameter range;

[0349] Optionally, the preset position parameter threshold can 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 the position parameters of the sub-block and / or the reference block, and whether they 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; or, if the position parameters of the sub-block and / or the reference block are different from the preset position parameter threshold, i.e., do not include the preset position parameter threshold, 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; or, 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; or, 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, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-block, including a preset position parameter threshold, or is within a preset position parameter range, then it can be determined that the position parameter of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, temporal 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 a preset position parameter threshold or a preset position parameter range, then it can be determined that the sub-block features satisfy at least one of the first, second, third, fourth, fifth, and sixth conditions.

[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, then 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.

[0356] Through the technical solution of this embodiment, the first condition, second condition, third condition, fourth condition, fifth condition and / or sixth condition can be determined or obtained based on the matching results of the position parameters of the sub-block and / or reference block and the preset position parameter threshold or preset position parameter range. This leads to the determination or obtaining of the list construction rules and the execution order of the list construction rules, making the most probable pattern list determined or obtained based on the list construction rules and the execution order of the list construction rules more accurate. Furthermore, since the most probable pattern list comprehensively considers the detailed features of the block, i.e., the features of the sub-block, the processing effect can be improved when the most probable pattern list is applied to process the current block.

[0357] Method 18: The matching result of the size parameters of the sub-block and / or reference block with the preset size parameter threshold or preset size parameter range;

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

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

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

[0361] Optionally, if the size parameters of the sub-block and / or the reference block include a 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, i.e., 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, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-block, including a preset size parameter threshold, or is within a preset size parameter range, then it can be determined that the size parameter of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, temporal 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, then it can be determined that the sub-block features satisfy at least one of the first, second, third, fourth, fifth, and sixth conditions.

[0364] Optionally, if the size parameters of the sub-block and / or the reference block do not match the preset size parameter threshold or the preset size parameter range, then 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.

[0365] Through the technical solution of this embodiment, the first condition, second condition, third condition, fourth condition, fifth condition and / or sixth condition can be determined or obtained based on the matching results of the size parameters of the sub-block and / or reference block and the preset size parameter threshold or preset size parameter range. This leads to the determination or obtaining of the list construction rules and the execution order of the list construction rules, making the most probable pattern list determined or obtained based on the list construction rules and the execution order of the list construction rules more accurate. Furthermore, since the most probable pattern list comprehensively considers the detailed features of the block, i.e., the features of the sub-block, the processing effect can be improved when the most probable pattern list is applied to process the current block.

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

[0367] Optionally, the preset content complexity threshold can be any pre-set content complexity level.

[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 reference block, and whether it 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, then it can be determined that the content complexity of the sub-block and / or the reference block matches the preset content complexity threshold; or, if the content complexity of the sub-block and / or the reference block differs from the preset content complexity threshold, i.e. does not include the preset content complexity threshold, then 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; or, if the preset content complexity range includes the content complexity of the sub-block and / or the reference block, then it can be determined that the content complexity of the sub-block and / or the reference block matches the preset content complexity range; or, if the preset content complexity range does not include the content complexity of the sub-block and / or the reference block, then 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-occurring blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-block, including a preset content complexity threshold, or is within a preset content complexity range, then it can be determined that the content complexity of at least one of the neighboring blocks, non-neighboring blocks, co-occurring blocks, temporal 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, then it can be determined that the sub-block feature satisfies at least one of the first, second, third, fourth, fifth, and sixth conditions.

[0373] Optionally, if the content complexity of the sub-block and / or the reference block does not match the preset content complexity threshold or the preset content complexity range, then 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.

[0374] Through the technical solution of this embodiment, the first condition, second condition, third condition, fourth condition, fifth condition and / or sixth condition can be determined or obtained based on the content complexity of the sub-block and / or reference block and the matching result of the preset content complexity threshold or preset content complexity range. This leads to the determination or obtaining of the list construction rules and the execution order of the list construction rules, making the most probable pattern list determined or obtained based on the list construction rules and the execution order of the list construction rules more accurate. Furthermore, since the most probable pattern list comprehensively considers the detailed features of the block, i.e., the features of the sub-block, the processing effect can be improved when the most probable pattern list is applied to process the current block.

[0375] Method 20: The pixel type of the sub-block and / or reference block, and the matching result of the preset pixel type or preset pixel type range;

[0376] Optionally, the preset pixel type can 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 the pixel type of the sub-block and / or reference block, and whether it 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; or, if the pixel type of the sub-block and / or the reference block is different from the preset pixel type, i.e. 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; or, 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; or, 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, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-block, including a preset pixel type, or is within the range of preset pixel types, then it can be determined that the pixel type of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, temporal 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 range of preset pixel types.

[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, then 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, then 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, second condition, third condition, fourth condition, fifth condition and / or sixth condition can be determined or obtained based on the pixel type of the sub-block and / or reference block and the matching result of the preset pixel type or preset pixel type range. This leads to the determination or obtaining of the list construction rules and the execution order of the list construction rules, making the most probable pattern list determined or obtained based on the list construction rules and the execution order of the list construction rules more accurate. Furthermore, since the most probable pattern list comprehensively considers the detailed features of the block, i.e., the features of the sub-block, the processing effect can be improved when the most probable pattern list is applied to process the current block.

[0384] Method 21: The matching result between the features of the current block and preset features or 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 features of the sub-blocks.

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

[0387] Optionally, the matching result may include features of sub-blocks and / or reference blocks, and whether they match or do not match preset features or preset feature ranges.

[0388] Optionally, if the features of the current block include preset features, it can be determined that the features of the current block match the preset features; or, if the features of the current block are different from the preset features, i.e. do not include the preset features, it can be determined that the features of the current block do not match the preset features; or, if the range of preset features includes the features of the current block, it can be determined that the features of the current block match the range of preset features; or, if the range of preset features does not include the features of the current block, it can be determined that the features of the current block do not match the range of preset features.

[0389] Optionally, if the features of the current block and the preset feature range intersect, it can be determined that the features of the current block and the preset feature range match.

[0390] Optionally, if the features of the current block match a preset feature or a preset feature range, then it can be determined that the features of the sub-block satisfy at least one of the first, second, third, fourth, fifth, and sixth conditions.

[0391] Optionally, if the features of the current block do not match the preset features or the preset feature range, then it can be determined that the features of the sub-block satisfy 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 if the sub-block feature and the preset feature range have an intersection, such as the preset feature range including 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, the first condition, second condition, third condition, fourth condition, fifth condition and / or sixth condition can be determined or obtained based on the characteristics of the current block and the matching results of preset characteristics or preset feature ranges. This leads to the determination or obtaining of list construction rules and the execution order of list construction rules, making the most probable pattern list determined or obtained based on the list construction rules and the execution order of list construction rules more accurate. Furthermore, since the most probable pattern list comprehensively considers the detailed characteristics of the block, i.e., the characteristics of sub-blocks, the processing effect can be improved when the most probable pattern list is applied to process the current block.

[0394] Method 22: The matching result of the pixel features of the reference template of the sub-block and / or the pixel features of the reference block with a preset pixel feature threshold or a preset pixel feature range;

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

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

[0397] Optionally, the matching result may include the pixel features of the reference template of the sub-block and / or the pixel features of the reference block, and whether they match or do not match a preset pixel feature threshold or a preset pixel feature range.

[0398] Optionally, if the pixel features of the reference template and / or the pixel features of the reference block include a preset pixel feature threshold, then it can be determined that the pixel features of the reference template and / or the pixel features of the reference block match the preset pixel feature threshold; or, if the pixel features of the reference template and / or the pixel features of the reference block are different from the preset pixel feature threshold, i.e., do not include the preset pixel feature threshold, then it can be determined that the pixel features of the reference template and / or the pixel features of the reference block do not match the preset pixel feature threshold; or, if the preset pixel feature range includes the pixel features of the reference template and / or the pixel features of the reference block, then it can be determined that the pixel features of the reference template and / or the pixel features of the reference block match the preset pixel feature range; or, if the preset pixel feature range does not include the pixel features of the reference template and / or the pixel features of the reference block, then it can be determined that the pixel features of the reference template and / or the pixel features of the reference block do 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, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-block, including a preset pixel feature threshold, or are within a preset pixel feature range, then it can be determined that the pixel features of at least one of the neighboring blocks, non-neighboring blocks, co-located blocks, temporal 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 and / or the pixel features of the reference block match a preset pixel feature threshold or a preset pixel feature range, then it can be determined that the sub-block features satisfy at least one of the first, second, third, fourth, fifth, and sixth conditions.

[0401] Optionally, if the pixel features of the reference template and / or the pixel features of the reference block do not match the preset pixel feature threshold or the preset pixel feature range, then 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, second condition, third condition, fourth condition, fifth condition and / or sixth condition can be determined or obtained based on the pixel features of the reference template of the sub-block and / or the pixel features of the reference block, and the matching result of the preset pixel feature threshold or preset pixel feature range. This leads to the determination or obtaining of the list construction rules and the execution order of the list construction rules, making the most probable pattern list determined or obtained based on the list construction rules and the execution order of the list construction rules more accurate. Furthermore, since the most probable pattern list comprehensively considers the detailed features of the block, i.e., the sub-block features, the processing effect can be improved when the most probable pattern list is applied to process the current block.

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

[0404] Optionally, the preset similarity threshold can be any pre-set similarity level, such as 80%.

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

[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 a preset similarity threshold or a preset similarity range, or does not match.

[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 range, it can be determined that the similarity between the reference template of the sub-block and the reference block matches the preset similarity range; or, if the similarity between the reference template of the sub-block and the reference block is not within the preset similarity range, 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 range.

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

[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 preset similarity range, then it can be determined that the sub-block features satisfy at least one of the first, second, third, fourth, fifth and sixth conditions.

[0411] Through the technical solution of this embodiment, the first condition, second condition, third condition, fourth condition, fifth condition and / or sixth condition can be determined or obtained based on the similarity between the reference template of the sub-block and the reference block, and the matching result of the preset similarity threshold or preset similarity interval. This leads to the determination or obtaining of the list construction rules and the execution order of the list construction rules, making the most probable pattern list determined or obtained based on the list construction rules and the execution order of the list construction rules more accurate. Furthermore, since the most probable pattern list comprehensively considers the detailed features of the block, i.e., the features of the sub-block, the processing effect can be improved when the most probable pattern list is applied to process the current block.

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

[0413] Optionally, the preset quantity can be any pre-set quantity, such as 5.

[0414] Optionally, the preset quantity range may include at least one quantity.

[0415] Optionally, the matching result may include the number of reference blocks, a match with a preset number or a preset number range, or no match.

[0416] Optionally, if the number of reference blocks is greater than the 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 a preset number or a preset number range, then it can be determined that the sub-block features satisfy at least one of the first, second, third, fourth, fifth, and sixth conditions.

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

[0420] 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 based on the number of reference blocks and the matching results of a preset number or a preset number range. This leads to the determination or obtaining of the list construction rules and the execution order of the list construction rules, making the most probable pattern list determined or obtained based on the list construction rules and the execution order of the list construction rules more accurate. Furthermore, since the most probable pattern list comprehensively considers the detailed features of the blocks, i.e., the features of the sub-blocks, the processing effect can be improved when the most probable pattern list is applied to process the current block.

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

[0422] Optionally, the preset mode can be any pre-set mode, and the corresponding preset mode is different for different encoding and decoding stages. For example, the preset mode can be at least one of the following: 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 block partitioning method.

[0423] Optionally, the preset mode range may include at least one mode, such as a preset mode.

[0424] Optionally, the matching result may include the pattern of the reference block, and whether it matches or does not match a preset pattern or a preset pattern range.

[0425] Optionally, if the pattern of at least one of the neighboring blocks, non-neighboring blocks, co-occurring blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-block is the same as the preset pattern, or falls within the range of the preset pattern, then the matching result can be determined as a match.

[0426] Optionally, if the pattern of at least one of the neighboring blocks, non-neighboring blocks, co-occurring blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-block is different from the preset pattern, or is not within the range of the preset pattern, then the matching result can be determined as 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, second, third, fourth, fifth, and sixth conditions.

[0428] Optionally, if the pattern of the reference block does not match the preset pattern or the 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.

[0429] Through the technical solution of this embodiment, the first condition, second condition, third condition, fourth condition, fifth condition and / or sixth condition can be determined or obtained based on the pattern of the reference block and the matching result of the preset pattern or the preset pattern range. This leads to the determination or obtaining of the list construction rules and the execution order of the list construction rules, making the most probable pattern list determined or obtained based on the list construction rules and the execution order of the list construction rules more accurate. Furthermore, since the most probable pattern list comprehensively considers the detailed features of the block, i.e., the features of the sub-blocks, the processing effect can be improved when the most probable pattern list is 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] Method 26: The length of the most likely pattern list is the first length;

[0434] Optionally, the first length can be any pre-set length, without any restrictions.

[0435] Optionally, the length of the most likely pattern list can be limited, for example, 6 for the first level and 16 for the second level.

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

[0437] Optionally, when constructing the most likely pattern list, the length of the most likely pattern list can be limited according to the first list construction rules, that is, the length of the most likely 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 likely pattern list is closely related to 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 pattern list includes the length of the most likely pattern list being a first length. This can ensure that the most likely pattern list determined or obtained according to the first list construction rule is highly accurate for the sub-blocks of the current block. Furthermore, when performing prediction processing on the current block through the most likely list, the processing effect can also be improved.

[0439] Method 27: The default mode is located in the preset list position of the most likely mode list;

[0440] Optionally, the default mode can be a pre-set mode, which can be at least one of the following: the mode of neighboring blocks, the mode of non-neighboring blocks, the mode of co-occurring blocks, the mode of temporal blocks, the mode of default blocks, and the mode of candidate blocks.

[0441] Optionally, the default mode can also be set based on user needs, and different modes can be set as the default mode at different encoding and decoding stages, such as 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.

[0442] Optionally, the preset list position can be a list position set in advance based on user needs, such as the first position (i.e., the first one) at the head of the most likely pattern list.

[0443] Optionally, if it is necessary to construct a list of most likely patterns, the features of the sub-blocks can be determined, and appropriate list construction rules can be selected based on the features of the sub-blocks. When the features of the sub-blocks meet the first condition, at least one of the rules in methods 26 to 27 can be selected as the first list construction rule, and the list of most likely patterns can be constructed based on the first list construction rule.

[0444] Optionally, the most likely pattern list is determined or obtained, the length of which is a first length and / or the default pattern is located in a preset list position in the most likely pattern list.

[0445] The technical solution of this embodiment can ensure that the most likely pattern list is closely related to 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 pattern list includes the default pattern being located in the preset list position of the most likely pattern list. This can ensure that the most likely pattern list determined or obtained according to the first list construction rule is highly accurate for the sub-blocks of the current block. Furthermore, it can also improve the processing effect when performing prediction processing on the current block through the most likely list.

[0446] Method 28: Based on the calculation result of the cost calculation of at least one candidate mode according to the first cost function, determine or obtain the position of at least one candidate mode in the most likely mode list;

[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, a first cost function can be used to calculate the cost of at least one candidate mode to obtain the calculated cost, and this cost can be used as the calculation result.

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

[0450] Optionally, if it is necessary to construct a list of most likely patterns, an appropriate list construction rule can be selected based on the features of the sub-blocks. For example, when the features of the sub-blocks meet the first condition, at least one of the rules from method 26 to method 28 can be selected as the first list construction rule, and the list of most likely patterns can be constructed based on the first list construction rule.

[0451] Optionally, the position of each candidate pattern in the most likely pattern list can be obtained by sorting the costs calculated by the first cost function, for example, the smaller the cost, the higher the position.

[0452] The technical solution of this embodiment can ensure that the most likely pattern list is closely related to 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 pattern list includes the calculation result of the cost calculation of at least one candidate pattern according to the first cost function, and the position of at least one candidate pattern in the most likely pattern list can be determined or obtained. This can ensure that the most likely pattern list determined or obtained according to the first list construction rule is highly accurate for the sub-blocks of the current block. Furthermore, when performing prediction processing on the current block through the most likely list, the processing effect can also be improved.

[0453] Method 29: Determine or obtain a list of most likely patterns based on the scanning results of at least one reference block in the first sequence.

[0454] Optionally, the first order can be a pre-set scanning order. For example, when scanning neighboring blocks, prioritize 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 can be determined based on the position coordinates of the target block and the current block, and the nearest target block can be scanned first. For example, the scanning order can be determined based on the size parameter of the target block, with larger size parameters having higher priority.

[0456] The target block can be a neighboring block, a non-neighboring block, a co-occurring block, a temporal block, a cross-component block, a default block, and / or a candidate block corresponding to the current block and / or its child blocks.

[0457] Optionally, taking a neighboring block as an example, the center distance from the center of all neighboring blocks to the center of the current block and / or child blocks can be calculated, and all center distances can be arranged in ascending order to obtain the order of the neighboring blocks. This order of neighboring blocks can be used as the first order.

[0458] Optionally, the first order corresponding to neighboring blocks, the first order corresponding to non-neighboring blocks, the first order corresponding to co-occurring blocks, the first order corresponding to temporal blocks, the first order corresponding to cross-component blocks, and the first order corresponding to candidate blocks can be the same, different, or partially the same and partially different.

[0459] Optionally, the scan results may include at least one of the following: a neighboring block, a non-neighboring block, a co-located block, a temporal block, a cross-component block, a default block, and a candidate block, scanned in a first order.

[0460] Optionally, at least one of the following can be scanned in a first order: a neighboring block, a non-neighboring block, a co-located block, a temporal block, a cross-component block, a default block, and a candidate block, to obtain the scan results.

[0461] Optionally, based on the scan results, the corresponding pattern can be obtained from at least one neighboring block, non-neighboring block, co-located block, temporal 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 following can be obtained: the pattern of at least one neighboring block, the pattern of at least one non-neighboring block, the pattern of at least one co-located block, the pattern of at least one temporal block, the pattern of at least one cross-component block, the pattern of at least one default block, and the pattern of at least one candidate block. Cost calculation is performed, and the position of each pattern in the most likely pattern list is determined based on the cost calculation result. For example, the pattern with the lowest cost is ranked first in the most likely pattern list.

[0463] Optionally, if it is necessary to construct a list of most likely patterns, an appropriate list construction rule can be selected based on the features of the sub-blocks. For example, when the features of the sub-blocks meet the first condition, at least one of the rules from method 26 to method 29 can be selected as the first list construction rule, and the list of most likely patterns can be constructed based on the first list construction rule.

[0464] Optionally, at least one of the following can be scanned in a first order: neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks. The scan results are then used to determine or obtain a list of most probable patterns. For example, the list of most probable patterns may include patterns found in the blocks corresponding to the scan results.

[0465] The technical solution of this embodiment can ensure that the most likely pattern list is closely related to 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 pattern list includes determining or obtaining the most likely pattern list based on the scanning results of scanning at least one reference block in the first order. This can ensure that the most likely pattern list determined or obtained according to the first list construction rule is highly accurate for the sub-blocks of the current block. Furthermore, when performing prediction processing on the current block using the most likely list, the processing effect can also be improved.

[0466] Method 30: Determine or obtain a list of most likely patterns based on the first number of reference blocks selected;

[0467] Optionally, the first quantity can be a pre-set number of blocks. Optionally, the first quantity corresponding to different reference blocks can be the same or different.

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

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

[0470] Optionally, a list of most likely patterns can be determined or obtained based on at least one of the following: the selected first number of current blocks, and / or the corresponding neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks.

[0471] Optionally, if it is necessary to construct a list of most likely patterns, an appropriate list construction rule can be selected based on the features of the sub-blocks. For example, when the features of the sub-blocks meet the first condition, at least one of the rules from method 26 to method 30 can be selected as the first list construction rule, and the list of most likely patterns can be constructed based on the first list construction rule.

[0472] The technical solution of this embodiment can ensure that the most likely pattern list is closely related to 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 pattern list includes determining or obtaining the most likely pattern list based on the selected first number of reference blocks. This can ensure that the most likely pattern list determined or obtained according to the first list construction rule is highly accurate for the sub-blocks of the current block. Furthermore, when performing prediction processing on the current block through the most likely list, the processing effect can also be improved.

[0473] Method 31: Determine or obtain a list of most likely patterns based on at least one reference block selected from the first distance;

[0474] Optionally, the first distance can be a pre-set distance, and can be a pixel distance.

[0475] Optionally, the first distance can be determined or obtained based on a pre-set distance function, which can be a variation of the pixel distance, such as the square of the pixel distance.

[0476] For example, if you need to calculate the distance between pixel 1 (x0, y0) and pixel 2 (x1, y1), you can use a distance function to calculate it, that is, based on (x0-x1). 2 +(y0-y1) 2 Calculations are performed to obtain the distance between pixel 1 and pixel 2.

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

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

[0479] Optionally, candidate patterns can be determined or obtained based on the patterns in at least one reference block selected by the first distance, and a list of the most likely patterns including at least one candidate pattern can be determined or obtained.

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

[0481] Optionally, the most likely pattern list can be determined or obtained based on at least one of the following: the neighboring block, non-neighboring block, co-located block, temporal block, cross-component block, default block, and candidate block corresponding to at least one current block selected by the first distance, and / or the corresponding sub-block.

[0482] Optionally, if it is necessary to construct a list of most likely patterns, an appropriate list construction rule can be selected based on the features of the sub-blocks. For example, when the features of the sub-blocks meet the first condition, at least one of the rules from method 26 to method 31 can be selected as the first list construction rule, and the list of most likely patterns can be constructed based on the first list construction rule.

[0483] The technical solution of this embodiment can ensure that the most likely pattern list is closely related to 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 pattern list includes determining or obtaining the most likely pattern list based on at least one reference block selected according to the first distance. This can ensure that the most likely pattern list determined or obtained according to the first list construction rule is highly accurate for the sub-blocks of the current block. Furthermore, when performing prediction processing on the current block through the most likely list, the processing effect can also be improved.

[0484] Method 32: Sort the reference blocks according to the distance between the current block and the reference block, and determine or obtain the most likely pattern list based on 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 ascending order of distance, or in descending order of distance.

[0486] Optionally, the pattern of the sorted reference block can be determined, and at least one candidate pattern can be determined or obtained based on the pattern of the sorted reference block, and a list of the most likely patterns including at least one candidate pattern can be determined or obtained.

[0487] Optionally, some or all of the patterns in the sorted reference block can be selected as candidate patterns, such as selecting the top five patterns as candidate patterns.

[0488] Optionally, the most likely pattern list can be determined or obtained based on the distance between the current block and at least one of the following: neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks.

[0489] Optionally, the distance between the sub-block and at least one of the following: neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks, can be used to sort the sub-blocks in the current block, and the most likely pattern list can be determined or obtained based on the sorting results.

[0490] Optionally, if it is necessary to construct a list of most likely patterns, an appropriate list construction rule can be selected based on the features of the sub-blocks. For example, when the features of the sub-blocks meet the first condition, at least one of the rules from method 26 to method 32 can be selected as the first list construction rule, and the list of most likely patterns can be constructed based on the first list construction rule.

[0491] The technical solution of this embodiment can ensure that the most likely pattern list is closely related to 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 pattern list includes sorting the reference blocks according to the distance between the current block and the reference block, and determining or obtaining the most likely pattern list according to the sorted reference blocks. This can ensure that the most likely pattern list determined or obtained according to the first list construction rule is highly accurate for the sub-blocks of the current block. Furthermore, it can also improve the processing effect when performing prediction processing on the current block through the most likely list.

[0492] Method 33: Take the blocks in the first range as neighboring blocks, and determine or obtain the most likely pattern list based on at least one neighboring block;

[0493] Optionally, the first range can be a pre-set pixel range, and there must be at least one image block within the first range.

[0494] Optionally, blocks within a first range from the current block and / or its sub-blocks can be considered as neighboring blocks, and their patterns can be determined. Based on these patterns, a list of most probable patterns can be determined or obtained. For example, the list of most probable patterns may include the patterns of the neighboring blocks.

[0495] Optionally, if it is necessary to construct a list of most likely patterns, an appropriate list construction rule can be selected based on the features of the sub-blocks. For example, when the features of the sub-blocks meet the first condition, at least one of the rules from method 26 to method 33 can be selected as the first list construction rule, and the list of most likely patterns can be constructed based on the first list construction rule.

[0496] The technical solution of this embodiment can ensure that the most likely pattern list is closely related to 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 pattern list includes taking the blocks within the first range as neighboring blocks and determining or obtaining the most likely pattern list based on at least one neighboring block. This can ensure that the most likely pattern list determined or obtained according to the first list construction rule is highly accurate for the sub-blocks of the current block. Furthermore, it can also improve the processing effect when performing prediction processing on the current block through the most likely list.

[0497] Method 34: Determine or obtain the most likely pattern list of the sub-blocks based on the most likely pattern list of at least one other sub-block and / or reference block of the third number;

[0498] Optionally, the third quantity can be a pre-set number of blocks, and can 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 likely pattern list of other sub-blocks has been determined or obtained, the most likely pattern list of sub-blocks can be determined or obtained based on some or all of the most likely pattern lists of other sub-blocks, such as based on the most likely pattern list of at least one of the third number of other sub-blocks.

[0501] Optionally, a third number of reference blocks' most likely pattern list can be determined or obtained, and a sub-block's most likely pattern list can be determined or obtained based on the most likely pattern list of at least one reference block.

[0502] Optionally, a list of the most likely patterns of at least one of the following: neighboring blocks, non-neighboring blocks, co-located blocks, temporal 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. Based on this list of the most likely patterns of at least one, a list of the most likely patterns of the sub-blocks can be determined or obtained.

[0503] Optionally, candidate patterns from the most likely pattern list of at least one other sub-block and / or reference block can be determined, and some or all of the candidate patterns can be selected as candidate patterns from the most likely pattern list of sub-blocks.

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

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

[0506] Optionally, if it is necessary to construct a list of most likely patterns, an appropriate list construction rule can be selected based on the features of the sub-blocks. For example, when the features of the sub-blocks meet the first condition, at least one of the rules from method 26 to method 34 can be selected as the first list construction rule, and the list of most likely patterns can be constructed based on the first list construction rule.

[0507] The technical solution of this embodiment can ensure that the most likely pattern list is closely related to 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 pattern list includes determining or obtaining the most likely pattern list of the sub-block based on the most likely pattern list of at least one other sub-block and / or reference block of the third number. This can ensure that the most likely pattern list determined or obtained according to the first list construction rule is highly accurate for the sub-blocks of the current block. Furthermore, when performing prediction processing on the current block through the most likely list, the processing effect can also be improved.

[0508] Method 35: Determine or obtain a list of most likely patterns based on preset sorting rules.

[0509] Optionally, the preset sorting rule can be a pre-set sorting rule, such as sorting the candidate patterns from smallest to largest based on their cost value.

[0510] Optionally, if it is necessary to construct a list of most likely patterns, an appropriate list construction rule can be selected based on the features of the sub-blocks. For example, when the features of the sub-blocks meet the first condition, at least one of the rules from method 26 to method 35 can be selected as the first list construction rule, and the list of most likely patterns can be constructed based on the first list construction rule.

[0511] The technical solution of this embodiment can ensure that the most likely pattern list is closely related to 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 pattern list includes determining or obtaining the most likely pattern list according to a preset sorting rule. This can ensure that the most likely pattern list determined or obtained according to the first list construction rule is highly accurate for the sub-blocks of the current block. Furthermore, when performing prediction processing on the current block through the most likely list, 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 36 to 45:

[0515] Method 36: The length of the most likely pattern list is the second longest.

[0516] Optionally, the second length can be a pre-set list length; alternatively, unlike the first length, the number of 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 list.

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

[0519] Optionally, if it is necessary to construct a list of most likely patterns for the current block, an appropriate list construction rule can be selected based on the characteristics of the sub-block. For example, if the characteristics of the sub-block do not meet the first condition, the second list construction rule can be determined to include the length of the most likely pattern list as the second length, and the most likely pattern list can be determined or obtained, with the length of the most likely pattern list being the second length.

[0520] Optionally, if there is at least one sub-block feature, and some sub-block features satisfy the first condition while others do not satisfy the first condition, then 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 satisfy the first condition, while other sub-block features do not satisfy the first condition, then the first list construction rule can be determined or obtained according to at least one of the above methods 27 to 35, and the second list construction rule can be determined or obtained according to method 36. 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] The technical solution of this embodiment can ensure 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, the second list construction rule for determining or obtaining the most likely pattern list includes the length of the most likely pattern list being a second length. This 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. Furthermore, it can also improve the processing effect when performing prediction processing on the current block through the most likely list.

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

[0524] Optionally, the preset pattern sorting rule can be a pre-set sorting rule, such as sorting based on the cost of the pattern. It can be the same as the preset sorting rule or different from the preset sorting rule.

[0525] Optionally, different sub-block features correspond to different ways of determining the position of the default mode in the most likely mode list, such as directly determining the position in the preset list, determining it according to a preset mode sorting rule, or determining it according to another mode sorting rule, etc.

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

[0527] Optionally, if it is necessary to construct a list of most likely patterns for the current block, an appropriate list construction rule can be selected based on the characteristics of the sub-block. For example, if the characteristics of the sub-block do not meet the first condition, a second list construction rule can be determined, including determining the position of the default pattern in the list of most likely patterns based on the preset pattern sorting rule, and then constructing the list of most likely patterns based on the second list construction rule.

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

[0529] 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 based on the first list construction rule and the second list construction rule.

[0530] The technical solution of this embodiment can ensure 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, the second list construction rule for determining or obtaining the most likely pattern list includes determining the position of the default pattern in the most likely pattern list according to the preset pattern sorting rule. This 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. Furthermore, it can also improve the processing effect when performing prediction processing on the current block through the most likely list.

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

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

[0533] Optionally, different cost functions can be used to define the features of different sub-blocks.

[0534] Optionally, if there are at least one different sub-block, the cost calculation of at least one candidate mode can be performed for each sub-block using its corresponding cost function. Then, the position of at least one candidate mode in the most likely mode list can be determined or obtained based on the cost calculation result, thereby obtaining the final generated most likely mode list.

[0535] Optionally, if it is necessary to construct a list of most likely patterns for the current block, an appropriate list construction rule can be selected based on the features of the sub-block. For example, if the features of the sub-block do not meet the first condition, the second list construction rule can be determined to include the calculation result of the cost calculation 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 list of most likely patterns, and then construct the list of most likely patterns according to the second list construction rule.

[0536] Optionally, if some sub-block features of the current block satisfy the first condition, while other sub-block features do not satisfy the first condition, then a first list construction rule can be determined or obtained according to at least one of methods 26 to 35, and if the first list construction rule includes method 26, a second list construction rule can be determined or obtained according to at least one of methods 37 to 38; or, if the first list construction rule includes method 27, a second list construction rule can be determined or obtained according to at least one of methods 36 and 38; or, if the first list construction rule includes method 28, a second list construction rule can be determined or obtained according to at least one of methods 36 to 37.

[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 by jointly using the first list construction rule and the second list construction rule.

[0538] The technical solution of this embodiment can ensure 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, the second list construction rule for determining or obtaining the most likely pattern list includes the calculation result of the cost calculation of at least one candidate pattern according to the second cost function, and the position of at least one candidate pattern in the most likely pattern list can be determined or obtained. This 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. Furthermore, when performing prediction processing on the current block through the most likely list, the processing effect can also be improved.

[0539] Method 39: Based on the calculation results of the cost calculation of at least one candidate mode according to the first cost function and the second cost function, determine or obtain the position of at least one candidate mode in the most likely mode list;

[0540] Optionally, the first cost function and the second cost function can be used simultaneously to calculate the cost of at least one candidate mode to obtain the corresponding calculation result, which includes the cost of at least one candidate mode.

[0541] Optionally, for the same candidate pattern, a first cost function can be used to calculate the cost, a second cost function can be used to calculate the cost, and 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, the candidate patterns can be sorted according to their costs, and the position of the candidate patterns in the most likely pattern list can be determined based on the sorting results.

[0543] Optionally, if it is necessary to construct a list of most likely patterns for the current block, an appropriate list construction rule can be selected based on the features of the sub-block. For example, if the features of the sub-block do not meet the first condition, the second list construction rule can be determined to include the calculation result of the cost calculation of at least one candidate pattern based on the first cost function and the second cost function, to determine or obtain the position of at least one candidate pattern in the list of most likely patterns, and then construct the list of most likely patterns according to the second list construction rule.

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

[0545] 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 by jointly using the first list construction rule and the second list construction rule.

[0546] The technical solution of this embodiment can ensure 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, the second list construction rule for determining or obtaining the most likely pattern list includes the calculation result of the cost calculation of at least one candidate pattern according to the first cost function and the second cost function, and the position of at least one candidate pattern in the most likely pattern list can be determined or obtained. This 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. Furthermore, when performing prediction processing on the current block through the most likely list, the processing effect can also be improved.

[0547] Method 40: Determine or obtain a list of most likely patterns based on the scan results of scanning at least one reference block in the second order;

[0548] Optionally, the second order can be a pre-set scanning order, which can be different from the first order. For example, when scanning neighboring blocks, if the first order is to prioritize scanning the neighboring blocks above the current block and / or the child block, the second order can be to prioritize scanning the neighboring blocks to the left of the current block and / or the child block.

[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, and will not be repeated here.

[0550] Optionally, the second order of at least two of the neighboring blocks, non-neighboring blocks, co-occurring blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-block can be different or the same.

[0551] Optionally, at least one of the following can be scanned in the second order: a neighboring block, a non-neighboring block, a co-occurring block, a temporal block, a cross-component block, a default block, and a candidate block, to obtain the corresponding pattern. The obtained pattern can be used as a candidate pattern to determine or obtain a list of the most likely patterns.

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

[0553] Optionally, if there are at least one different sub-block, at least one reference block can be scanned for each sub-block using its corresponding scanning order. Then, based on the scanning results, the position of at least one candidate pattern in the most likely pattern list can be determined or obtained, thereby obtaining the final generated most likely pattern list.

[0554] Optionally, if it is necessary to construct a list of most likely patterns for the current block, an appropriate list construction rule can be selected based on the characteristics of the sub-blocks. For example, if the characteristics of the sub-blocks do not meet the first condition, the second list construction rule can be determined to include determining or obtaining the list of most likely patterns based on the scanning results of scanning at least one reference block in the second order, and then constructing the list of most likely patterns based on the second list construction rule.

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

[0556] 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 by jointly using the first list construction rule and the second list construction rule.

[0557] The technical solution of this embodiment can ensure 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, the second list construction rule for determining or obtaining the most likely pattern list includes determining or obtaining the most likely pattern list based on the scanning results of scanning at least one reference block in the second order. This 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. Furthermore, when performing prediction processing on the current block using the most likely list, the processing effect can also be improved.

[0558] Method 41: Determine or obtain a list of most likely patterns based on the selected second number of reference blocks;

[0559] Optionally, the second quantity can be a pre-set number of blocks, and optionally, it can be different from the first quantity.

[0560] Optionally, the second quantity of at least two of the neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-block can be different or the same.

[0561] Optionally, a second number of neighboring blocks, and / or non-neighboring blocks, and / or co-occurring blocks, and / or temporal blocks, and / or cross-component blocks, and / or default blocks, and / or candidate blocks can be determined, and at least one corresponding pattern can be determined, and then a list of most likely patterns can be determined or obtained based on the at least one pattern.

[0562] Optionally, different sub-blocks may have different numbers of reference blocks corresponding to their sub-block features.

[0563] Optionally, if there is at least one different sub-block, each sub-block can be assigned its own corresponding rules, a certain number (first number or second number) of reference blocks can be selected, and at least one candidate pattern can be determined or obtained based on the selected reference blocks (for example, the pattern of the selected reference block can be used as a candidate pattern), and the most likely pattern list including at least one candidate pattern can be determined or obtained.

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

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

[0566] 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 by jointly using the first list construction rule and the second list construction rule.

[0567] The technical solution of this embodiment can ensure 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, the second list construction rule for determining or obtaining the most likely pattern list includes determining or obtaining the most likely pattern list based on the selected second number of reference blocks. This 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. Furthermore, it can also improve the processing effect when performing prediction processing on the current block through the most likely list.

[0568] Method 42: Determine or obtain a list of most likely patterns based on at least one reference block selected according to the second distance;

[0569] Optionally, the second distance can be a pre-set distance, such as a pixel distance, and optionally, it can be different from the first distance.

[0570] Optionally, the second distance can be determined or obtained according to a pre-set distance function. The specific process of determining or obtaining the second distance can refer to the process of determining or obtaining the first distance, and will not be repeated here.

[0571] Optionally, the second distances of at least two of the neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-blocks can be different or the same.

[0572] Optionally, the neighboring block, and / or non-neighboring block, and / or co-occurring block, and / or temporal block, and / or cross-component block, and / or default block, and / or candidate block can be determined, and at least one corresponding candidate mode can be determined (e.g., the mode of the selected reference block can be used as a candidate mode), and the most likely mode list including at least one candidate mode can be determined or obtained.

[0573] Optionally, if it is necessary to construct a list of most likely patterns for the current block, an appropriate list construction rule can be selected based on the characteristics of the sub-blocks. For example, if the characteristics of the sub-blocks do not meet the first condition, the second list construction rule can be determined to include determining or obtaining the list of most likely patterns based on at least one reference block selected according to the second distance.

[0574] Optionally, if some sub-block features of the current block satisfy the first condition, while other sub-block features do not satisfy the first condition, then a first list construction rule can be determined or obtained according to at least one of methods 26 to 35, and if the first list construction rule includes method 26, then a second list construction rule can be determined or obtained according to at least one of methods 37 to 42; or, if the first list construction rule includes method 27, then a second list construction rule can be determined or obtained according to at least one of methods 36, 38 to 42; or, if the first list construction rule includes method 28, then methods 36 to 38 can be determined or obtained according to at least one of methods 36 to 38 to 42. Seventeen, at least one of the five methods from method forty to method forty-two, to determine or obtain the second list construction rule; or, when the first list construction rule includes method twenty-nine, to determine or obtain the second list construction rule according to at least one of methods thirty-six to method thirty-nine, and methods forty-one to method forty-two; or, when the first list construction rule includes method thirty, to determine or obtain the second list construction rule according to at least one of methods thirty-six to method forty, and methods forty-two; or, when the first list construction rule includes method thirty-one, to determine or obtain the second list construction rule according to at least one of methods thirty-six to method forty-one.

[0575] 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 by jointly using the first list construction rule and the second list construction rule.

[0576] The technical solution of this embodiment can ensure 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, the second list construction rule for determining or obtaining the most likely pattern list includes determining or obtaining the most likely pattern list based on at least one reference block selected according to the second distance. This 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. Furthermore, it can also improve the processing effect when performing prediction processing on the current block through the most likely list.

[0577] Method 43: Take the blocks in the second range as neighboring blocks, and determine or obtain the most likely pattern list based on at least one neighboring 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 neighboring blocks of the current block, blocks within the second range from the current block can be considered as neighboring blocks, and the most likely pattern list can be determined or obtained based on the patterns of the neighboring blocks.

[0580] Optionally, if it is necessary to construct a list of most likely patterns for the current block, an appropriate list construction rule can be selected based on the characteristics of the sub-blocks. For example, if the characteristics of the sub-blocks do not meet the first condition, a second list construction rule can be determined, which includes taking the blocks in the second range as neighboring blocks and determining or obtaining the list of most likely patterns based on at least one neighboring block.

[0581] Optionally, if some sub-block features of the current block satisfy the first condition, while other sub-block features do not satisfy the first condition, then a first list construction rule can be determined or obtained according to at least one of methods 26 to 35, and if the first list construction rule includes method 26, then a second list construction rule can be determined or obtained according to at least one of methods 37 to 43; or, if the first list construction rule includes method 27, then a second list construction rule can be determined or obtained according to at least one of methods 36, 38 to 43; or, if the first list construction rule includes method 28, then a second list construction rule can be determined or obtained according to at least one of the six methods 36 to 37, 40 to 43. The rules are as follows: Alternatively, when the first list construction rule includes method 29, the second list construction rule is determined or obtained based on at least one of the seven methods: methods 36 to 39, and methods 41 to 43; or, when the first list construction rule includes method 30, the second list construction rule is determined or obtained based on at least one of the methods 36 to 40, 42, and 43; or, when the first list construction rule includes method 31, the second list construction rule is determined or obtained based on at least one of the methods 36 to 41 and 43; or, when the first list construction rule includes method 33, the second list construction rule is determined or obtained based on at least one of the methods 36 to 42.

[0582] 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 by jointly using the first list construction rule and the second list construction rule.

[0583] Optionally, based on a pre-defined range / distance parameter, such as within 128 pixels above the current block and / or its sub-blocks, or within 128 pixels from the center of the current block and / or its sub-blocks, all blocks within that range / distance can be obtained.

[0584] Optionally, the preset range parameter can be either a first range or a second range.

[0585] Optionally, the distance parameter can be either a first distance or a second distance.

[0586] Optionally, all blocks within the range / distance can be scanned according to the scanning order (e.g., first order, second order, or 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 the cost of at least one candidate pattern is calculated. The patterns are sorted according to the cost calculation results to determine or obtain a list of most likely patterns. The list of most likely patterns includes at least one candidate pattern after sorting.

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

[0588] The technical solution of this embodiment can ensure 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, the second list construction rule for determining or obtaining the most likely pattern list includes taking the blocks in the second range as neighboring blocks and determining or obtaining the most likely pattern list based on at least one neighboring block. This 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. Furthermore, it can also improve the processing effect when performing prediction processing on the current block through the most likely list.

[0589] Method 44: Determine or obtain the most likely pattern list of the sub-blocks based on the most likely pattern list of at least one other sub-block and / or reference block of the fourth number;

[0590] Optionally, the fourth quantity can be a pre-set number of blocks, which can be a positive integer greater than zero, and optionally, it can be different from the third quantity.

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

[0592] Optionally, if there is at least one different sub-block, the most likely pattern list of each sub-block can be determined by using the corresponding number of other sub-blocks and / or reference blocks, so as 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 based on the most likely pattern list of at least one other sub-block and / or reference block of the third number; as another example, for the second sub-block, the most likely pattern list of the sub-block can be determined or obtained based on the most likely pattern list of at least one other sub-block and / or reference block of the fourth number.

[0593] Optionally, if it is necessary to construct a list of most likely patterns for the current block, an appropriate list construction rule can be selected based on the characteristics of the sub-block. For example, if the characteristics of the sub-block do not meet the first condition, the second list construction rule can be determined to include determining or obtaining the list of most likely patterns of the sub-block based on the list of most likely patterns of at least one other sub-block and / or reference block.

[0594] Optionally, if some sub-block features of the current block satisfy the first condition, while other sub-block features do not satisfy the first condition, then a first list construction rule can be determined or obtained according to at least one of methods 26 to 35, and if the first list construction rule includes method 26, then a second list construction rule can be determined or obtained according to at least one of methods 37 to 44; or, if the first list construction rule includes method 27, then a second list construction rule can be determined or obtained according to at least one of methods 36, 38 to 44; or, if the first list construction rule includes method 28, then a second list construction rule can be determined or obtained according to at least one of the seven methods 36 to 37, 40 to 44; or, if the first list construction rule includes method 29, then methods 36 to 30... 9. At least one of the eight methods from methods 41 to 44 is used to determine or obtain the second list construction rule; or, when the first list construction rule includes method 30, at least one of methods 36 to 40, method 42, method 43, and method 44 is used to determine or obtain the second list construction rule; or, when the first list construction rule includes method 31, at least one of methods 36 to 41, method 43, and method 44 is used to determine or obtain the second list construction rule; or, when the first list construction rule includes method 33, at least one of methods 36 to 42 and method 44 is used to determine or obtain the second list construction rule; or, when the first list construction rule includes method 34, at least one of methods 36 to 43 is used to determine or obtain the second list construction rule.

[0595] 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 by jointly using the first list construction rule and the second list construction rule.

[0596] The technical solution of this embodiment can ensure 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, 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 based on the most likely pattern list of at least one other sub-block and / or reference block of the fourth number. This 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. Furthermore, when performing prediction processing on the current block through the most likely list, the processing effect can also be improved.

[0597] Method 45: Determine or obtain a list of most likely patterns based on neural networks.

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

[0599] Alternatively, the features of the current block can be input into a neural network to output a list of the most likely patterns.

[0600] Optionally, different sub-blocks can use different construction methods to construct the list of most likely patterns.

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

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

[0603] Optionally, if some sub-block features of the current block satisfy the first condition, while other sub-block features do not satisfy the first condition, then a first list construction rule can be determined or obtained according to at least one of methods 26 to 35, and if the first list construction rule includes method 26, a second list construction rule can be determined or obtained according to at least one of methods 37 to 45; or, if the first list construction rule includes method 27, a second list construction rule can be determined or obtained according to at least one of methods 36, 38 to 45; or, if the first list construction rule includes method 28, a second list construction rule can be determined or obtained according to at least one of the eight methods 36 to 37, 40 to 45; or, if the first list construction rule includes method 29, a second list construction rule can be determined or obtained according to at least one of the nine methods 36 to 39, 41 to 45; or When the first list construction rule includes method 30, the second list construction rule is determined or obtained based on at least one of methods 36 to 40, method 42, method 43, method 44, and method 45; or when the first list construction rule includes method 31, the second list construction rule is determined or obtained based on at least one of methods 36 to 41, method 43, method 44, and method 45; or when the first list construction rule includes method 33, the second list construction rule is determined or obtained based on at least one of methods 36 to 42, method 44, and method 45; or when the first list construction rule includes method 34, the second list construction rule is determined or obtained based on at least one of methods 36 to 43 and method 45; or when the first list construction rule includes method 35, the second list construction rule is determined or obtained based on at least one of methods 36 to 44.

[0604] 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 by jointly using the first list construction rule and the second list construction rule.

[0605] The technical solution of this embodiment can ensure 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, the second list construction rule for determining or obtaining the most likely pattern list includes determining or obtaining the most likely pattern list based on the neural network. This 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. Furthermore, it can also improve the processing effect when performing prediction processing on the current block through the most likely list.

[0606] Ninth Embodiment

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

[0608] In this embodiment, refer to Figure 15 The image processing method further includes step S20: processing the sub-blocks according to the list of most likely patterns.

[0609] Alternatively, the sub-block can be processed according to the most likely pattern list determined or obtained in any of the above embodiments, such as selecting at least one pattern from the most likely pattern 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-prediction mode, at least one intra-prediction mode can be selected from the most likely mode list to perform intra-prediction processing on the sub-block.

[0612] Optionally, when the most likely mode list includes at least one intra-block vector mode, at least one intra-block vector mode can be selected from the most likely mode list to perform intra-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, if 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 pattern list includes at least one cross-component prediction pattern, at least one cross-component prediction pattern can be selected from the most likely pattern list to perform prediction processing on the sub-block.

[0616] Optionally, when the most likely pattern list includes at least one geometric partitioning pattern, at least one geometric partitioning pattern can be selected from the most likely pattern list to partition the sub-blocks.

[0617] Optionally, when the list of most likely patterns includes at least one spatial geometry partitioning pattern, at least one spatial geometry partitioning pattern can be selected from the list of most likely patterns to partition the sub-blocks.

[0618] Optionally, if the list of most likely patterns includes at least one partitioning method, at least one partitioning method can be selected from the list of most likely patterns to partition the sub-blocks.

[0619] The technical solution of this embodiment can realize the processing of sub-blocks by the most likely pattern list determined or obtained based on the sub-block characteristics. Since the most likely pattern list takes into account the sub-block characteristics, it can also improve the processing effect of sub-blocks.

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

[0621] Optionally, if it is necessary to make a prediction for the current block, at least one prediction mode can be selected from the list of most likely modes determined or obtained based on the sub-block features of the current block, and the sub-block can be predicted based on the selected at least one prediction mode.

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

[0623] Optionally, at least one prediction mode can be selected for each sub-block from the list of most likely modes of the current block for prediction processing. The prediction modes selected for each sub-block can be the same or different.

[0624] Optionally, the list of most likely patterns for each sub-block can be the same or different.

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

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

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

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

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

[0630] The technical solution of this embodiment can be used to predict sub-blocks based on the most likely pattern list determined or obtained from the sub-block features of the current block. Since the most likely pattern list takes into account the sub-block features, it can also improve the prediction effect of sub-blocks.

[0631] Optionally, the image processing method further includes at least one of methods 46 to 47.

[0632] Method 46: Determine or obtain the prediction result of the current block based on the prediction result of at least one sub-block;

[0633] Optionally, prediction processing can be performed on at least one sub-block of the current block based on the list of most likely patterns, and then the prediction processing result of the current block can be determined or obtained based on the prediction processing result of at least one sub-block. For example, the prediction processing results of all sub-blocks of the current block can be summarized 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 can be 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 based on the prediction processing result of at least one sub-block. Since the prediction processing result of the current block takes into account the prediction processing results of the sub-blocks, the accuracy of the prediction processing result of the current block can be guaranteed.

[0635] Method 47: Determine or obtain the reconstruction of the current block based on the prediction processing result of the current block.

[0636] Optionally, a list of most likely patterns can be determined or obtained based on the sub-block features of the current block, and prediction processing can be performed on at least one sub-block based on the list of most likely patterns. The prediction processing result of the current block can be determined or obtained based on the prediction processing result of the at least one sub-block, and the reconstruction of the current block can be determined or obtained based on the prediction processing result of the current block and the residual of the current block.

[0637] The technical solution of this embodiment can determine or obtain the reconstruction of the current block based on the prediction processing result of the current block, thus ensuring the accuracy of the reconstruction of the current block.

[0638] This application also provides a processing device, please refer to... Figure 16 , Figure 16 This is a functional block diagram of the processing device of this application, which can be installed in or is the processing equipment. The processing device includes:

[0639] Processing module A10 is used to determine or obtain a list of most likely patterns based on the sub-block characteristics of the current block.

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

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

[0642] The sub-block partitioning rule is determined or obtained based on at least one of the partitioning rules in the bitstream, syntax elements, and characteristics of the current block;

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

[0644] 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 blocks are at least one of the following: features of the current block, pixel features of the reference template of the sub-block, pixel features of the reference block, similarity between the reference template of the sub-block and the reference block, number of reference blocks, and pattern of reference blocks.

[0645] Optionally, the reference block includes at least one of the following: neighboring blocks, non-neighboring blocks, co-occurring blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks corresponding to the current block and / or sub-blocks.

[0646] Optionally, the characteristics of the current block are determined or obtained based on at least one of the following:

[0647] Size parameter of at least one of the following: current block, neighboring block, non-neighboring block, co-occurring block, temporal block, cross-component block, default block, and candidate block;

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

[0649] The similarity between the reference template of the current block and at least one of the following: neighboring pixels, non-neighboring 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 the following: neighboring blocks, non-neighboring blocks, co-occurring blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks;

[0651] A pattern consisting of at least one of the following: neighboring block, non-neighboring block, co-occurring block, temporal block, cross-component block, default block, and candidate block.

[0652] Optionally, the processing module A10 is also used for:

[0653] Based on the characteristics of the sub-blocks of the current block, at least one list construction rule is determined or obtained, and / or the execution order corresponding to at least one list construction rule is obtained;

[0654] Based on at least one list construction rule and / or the execution order corresponding to at least one list construction rule, determine or obtain the most likely pattern list.

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

[0656] If the sub-block features satisfy the first condition, then at least one list construction rule is determined as the first list construction rule;

[0657] If the sub-block features do not satisfy the first condition, then at least one list construction rule is determined as the second list construction rule;

[0658] 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, then the execution order of the first list construction rule is greater than the execution order of the second list construction rule.

[0659] 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, then the execution order of the first list construction rule is less than the execution order of the second list construction rule.

[0660] If the list construction rules only include the first list construction rules, then 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.

[0661] If the list construction rules only include the second list construction rules, then the execution order of the second list construction rules corresponding to the sub-block features that satisfy the fifth condition is greater than the execution order of the second list construction rules corresponding to the sub-block features that satisfy 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 based on at least one of the following:

[0663] The matching results between the sub-block partitioning rules and the preset partitioning rules or the range of preset partitioning rules;

[0664] The shape parameters of the sub-blocks and / or reference blocks, and the matching results with preset shape parameter thresholds or preset shape parameter ranges;

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

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

[0667] The content complexity of sub-blocks and / or reference blocks, and the matching result with a preset content complexity threshold or a preset content complexity range;

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

[0669] The features of the current block and the matching results with preset features or a preset feature range;

[0670] The matching result 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 preset pixel feature range;

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

[0672] The number of reference blocks and the matching results with a preset number or a preset number range;

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

[0674] Optionally, the first list construction rules include at least one of the following:

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

[0676] The default mode is located in the preset list position of the most likely mode list;

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

[0678] The most likely pattern list is determined or obtained based on the scan results of scanning at least one reference block in the first order;

[0679] The most likely pattern list is determined or obtained based on the first number of reference blocks selected;

[0680] The most likely pattern list is determined or obtained based on at least one reference block selected from the first distance;

[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 based on the sorted reference blocks;

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

[0683] The most likely pattern list of the sub-blocks is determined or obtained based on the most likely pattern list of at least one other sub-block and / or reference block of the third number;

[0684] The most likely pattern list is determined or obtained based on the preset sorting rules.

[0685] Optionally, the second list construction rules include at least one of the following:

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

[0687] The position of the default mode in the most likely mode list is determined according to the preset mode sorting rules;

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

[0689] Based on the calculation results of the cost calculation of at least one candidate mode according to the first cost function and the second cost function, the position of at least one candidate mode in the most likely mode list is determined or obtained.

[0690] The most likely pattern list is determined or obtained based on the scan results of scanning at least one reference block in the second order;

[0691] The most likely pattern list is determined or obtained based on the selected second number of reference blocks;

[0692] The most likely pattern list is determined or obtained based on at least one reference block selected according to the second distance;

[0693] Take the blocks in the second range as neighboring blocks, and determine or obtain the most likely pattern list based on at least one neighboring block;

[0694] The most likely pattern list of the sub-blocks is determined or obtained based on the most likely pattern list of at least one other sub-block and / or reference block of the fourth number;

[0695] The most likely pattern list is determined or obtained based on the neural network.

[0696] Optionally, the processing module A10 is also used for:

[0697] The sub-blocks are processed based on the list of most likely patterns.

[0698] Optionally, the processing module A10 is also used for:

[0699] If the current block needs to be predicted, then the sub-blocks are predicted based on the most likely pattern list determined or obtained from the features of the current block's sub-blocks.

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

[0701] The prediction result of the current block is determined or obtained based on the prediction result of at least one sub-block;

[0702] The reconstruction of the current block is determined or obtained based on the prediction processing results of the current block.

[0703] The processing device provided in this application embodiment is similar in implementation principle and beneficial effect to the technical solution shown in the corresponding method embodiment above, and will not be described again here.

[0704] This application also provides a processing device, including a memory and a processor. The memory stores an image processing program, and when the image processing program is executed by the processor, it implements the steps of the image processing method in any of the above embodiments.

[0705] This application also provides a storage medium storing an image processing program, which, when executed by a processor, implements the steps of the image processing method in any of the above embodiments.

[0706] In the embodiments of the processing device and storage medium provided in this application, all the technical features of any of the above-described image processing method embodiments may be included. The extended and explanatory content of the specification is basically the same as that of the embodiments of the above methods, and will not be repeated here.

[0707] This application also provides a computer program product, which includes computer program code. When the computer program code is run on a computer, it causes the computer to perform the methods described in the various possible implementations above.

[0708] This application also provides a chip, including 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 with the chip installed performs the methods described in the various possible implementations above.

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

[0710] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

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

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

[0713] In this application, the same or similar terms, concepts, technical solutions and / or application scenario descriptions are generally described in detail only when they appear for the first time. When they appear again, they are generally not repeated for the sake of brevity. When understanding the technical solutions and other contents of this application, the same or similar terms, concepts, technical solutions and / or application scenario descriptions that are not described in detail later can be referred to their previous relevant detailed descriptions.

[0714] In this application, the descriptions of the various embodiments have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

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

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

[0717] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a storage medium or transmitted from one storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, storage disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)).

[0718] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. An image processing method, characterized in that, Including the following steps: S10, determine or obtain a list of most likely patterns based on the characteristics of the sub-blocks of the current block; Step S10 includes the following steps: S101, determine or obtain at least one list construction rule and / or the execution order corresponding to at least one list construction rule based on the sub-block characteristics of the current block, wherein the number, type, content and execution order of the list construction rules corresponding to different sub-block characteristics are different; S102, determine or obtain the most likely pattern list based on at least one list construction rule and / or the execution order corresponding to at least one list construction rule, and perform prediction processing on the current block using the most likely pattern list.

2. The method as described in claim 1, characterized in that, The most likely pattern list includes the most likely pattern list of the current block and / or the most likely pattern list of at least one sub-block; and / or, the sub-block features include at least one of the following: The sub-block partitioning rule is determined or obtained based on at least one of the partitioning rules in the bitstream, syntax elements, and characteristics of the current block; At least one of the following: shape parameters, position parameters, size parameters, content complexity, and pixel type of the sub-block and / or reference block; 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 blocks are at least one of the following: features of the current block, pixel features of the reference template of the sub-block, pixel features of the reference block, similarity between the reference template of the sub-block and the reference block, number of reference blocks, and pattern of reference blocks.

3. The method as described in claim 2, characterized in that, The reference block includes at least one of the following: neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks, and / or the characteristics of the current block are determined or obtained based on at least one of the following: Size parameter of at least one of the following: current block, neighboring block, non-neighboring block, co-occurring block, temporal block, cross-component block, default block, and candidate block; The pixel features of at least one of the following: the reference template of the current block, neighboring blocks, non-neighboring blocks, co-located blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks; The similarity between the reference template of the current block and at least one of the following: neighboring pixels, non-neighboring 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 the following: neighboring blocks, non-neighboring blocks, co-occurring blocks, temporal blocks, cross-component blocks, default blocks, and candidate blocks; A pattern consisting of at least one of the following: neighboring block, non-neighboring block, co-occurring block, temporal block, cross-component block, default block, and candidate block.

4. The method as described in claim 1, characterized in that, Step S101 includes at least one of the following: If the sub-block features satisfy the first condition, then at least one list construction rule is determined as the first list construction rule; If the sub-block features do not satisfy the first condition, then at least one list construction rule is determined as 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 satisfies the second condition, then 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, then the execution order of the first list construction rule is less than the execution order of the second list construction rule. If the list construction rules only include the first list construction rules, then 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, then the execution order of the second list construction rules corresponding to the sub-block features that satisfy the fifth condition is greater than the execution order of the second list construction rules corresponding to the sub-block features that satisfy the sixth condition.

5. The method as described in claim 4, characterized in that, The first, second, third, fourth, fifth, and / or sixth conditions are determined or obtained based on at least one of the following: The matching results between the sub-block partitioning rules and the preset partitioning rules or the range of preset partitioning rules; The shape parameters of the sub-blocks and / or reference blocks, and the matching results with preset shape parameter thresholds or preset shape parameter ranges; The matching results between the position parameters of the sub-block and / or the reference block and the preset position parameter threshold or preset position parameter range; The matching results of the size parameters of the sub-block and / or reference block with the preset size parameter threshold or preset size parameter range; The content complexity of sub-blocks and / or reference blocks, and the matching result with a preset content complexity threshold or a preset content complexity range; The pixel type of the sub-block and / or reference block, and the matching result of the preset pixel type or preset pixel type range; The features of the current block and the matching results with preset features or a preset feature range; The matching result 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 preset pixel feature range; The similarity between the reference template of the sub-block and the reference block, and the matching result of the preset similarity threshold or preset similarity interval; The number of reference blocks and the matching results with a preset number or a preset number range; The pattern of the reference block and the matching result of the preset pattern or preset pattern range.

6. The method as described in claim 4, characterized in that, The first list construction rule includes at least one of the following: The length of the most likely pattern list is the first length; The default mode is located in the preset list position of the most likely mode list; Based on the calculation result of the cost calculation of at least one candidate mode according to the first cost function, determine or obtain the position of at least one candidate mode in the list of most likely modes; The most likely pattern list is determined or obtained based on the scan results of scanning at least one reference block in the first order; The most likely pattern list is determined or obtained based on the first number of reference blocks selected; The most likely pattern list is determined or obtained based on at least one reference block selected from the first distance; 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 based on the sorted reference blocks; Take the blocks in the first range as neighboring blocks, and determine or obtain the most likely pattern list based on at least one neighboring block; The most likely pattern list of the sub-blocks is determined or obtained based on the most likely pattern list of at least one other sub-block and / or reference block of the third number; The most likely pattern list is determined or obtained based on the preset sorting rules.

7. The method as described in claim 4, characterized in that, The second list construction rules include at least one of the following: The length of the most likely pattern list is the second longest; The position of the default mode in the most likely mode list is determined according to the preset mode sorting rules; Based on the calculation result of the cost calculation of at least one candidate mode according to the second cost function, determine or obtain the position of at least one candidate mode in the list of most likely modes; Based on the calculation results of the cost calculation of at least one candidate mode according to the first cost function and the second cost function, the position of at least one candidate mode in the most likely mode list is determined or obtained. The most likely pattern list is determined or obtained based on the scanning results of at least one reference block in the second sequence. The most likely pattern list is determined or obtained based on the selected second number of reference blocks; The most likely pattern list is determined or obtained based on at least one reference block selected according to the second distance; Take the blocks in the second range as neighboring blocks, and determine or obtain the most likely pattern list based on at least one neighboring block; The most likely pattern list of the sub-blocks is determined or obtained based on the most likely pattern list of at least one other sub-block and / or reference block of the fourth number; The most likely pattern list is determined or obtained based on the neural network.

8. The method according to any one of claims 1 to 3, characterized in that, It also includes the following steps: S20, process the sub-blocks according to the list of most likely patterns.

9. The method as described in claim 8, characterized in that, Step S20 includes: if the current block needs to be predicted, then the sub-block is predicted based on the most likely pattern list determined or obtained according to the sub-block features of the current block.

10. The method as described in claim 9, characterized in that, It also includes at least one of the following: The prediction result of the current block is determined or obtained based on the prediction result of at least one sub-block; The reconstruction of the current block is determined or obtained based on the prediction processing result of the current block.

11. A processing apparatus, characterized in that, include: A memory and a processor, wherein the memory stores an image processing program, and the image processing program, when executed by the processor, implements the steps of the image processing method as described in any one of claims 1 to 10.

12. A storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the steps of the image processing method as described in any one of claims 1 to 10.