Image coding and decoding

MYPI2025002921A0Undetermined Publication Date: 2024-05-14HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
MYPI2025002921
Authority / Receiving Office
MY · MY
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-11-14
Filing Date
2024-01-12
Publication Date
2024-05-14

AI Technical Summary

Technical Problem

In the field of surveillance, it is difficult with existing technology to ensure that users with different authority levels have consistent decoding results for low authority level areas during the encoding and decoding process of video image transmission. Especially when low authority level areas need to refer to high authority level areas, how to Achieving accurate permission-level access and decoding consistency is a challenge.

Method used

By determining the prediction mode and permission level of the image block to be processed, it is prohibited to use high-privilege level image blocks that do not meet the reference conditions as a reference, and use alternative reference image blocks that are allowed to be exported for prediction to ensure that users with different permission levels can predict low-privilege level areas. The decoding results are consistent and the transmission code stream is not increased.

Benefits of technology

It achieves accurate access to different image areas by permission level, ensures that users with different permission levels have consistent decoding results for low permission level areas, saves transmission code streams, and avoids the problem of inaccurate permission level configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure PI2025002921_DRAWING_001
    Figure PI2025002921_DRAWING_001
  • Figure PI2025002921_DRAWING_002
    Figure PI2025002921_DRAWING_002
  • Figure PI2025002921_DRAWING_003
    Figure PI2025002921_DRAWING_003
Patent Text Reader

Abstract

A picture decoding method is provided, including: determining a prediction mode of a picture block to be processed and a permission level of the picture block to be processed; determining a first reference picture block of the picture block to be processed according to the prediction mode; if a permission level of the first reference picture block does not satisfy a reference condition, prohibiting to determine a prediction block of the picture block to be processed by using the first reference picture block, or determining the prediction block of the picture block to be processed by using a second reference picture block that is allowed to be derived. Fig 4.
Need to check novelty before this filing date? Find Prior Art

Description

Image Codec Technical Field The embodiments of the present application relate to the field of image coding and decoding technology, and in particular, to an image coding and decoding method and device. Background Art The surveillance field has undergone tremendous changes in recent years. Digitalization and high definition have comprehensively improved the clarity of images. Surveillance equipment is becoming more and more popular and has been fully applied in transportation, schools and other public places. However, in order to enable different users to access different areas, it is particularly important to establish a sound video transmission solution with permission level protection. Currently, it is common to set a region of interest and configure a high permission level for the region of interest to restrict the access of users with low permission levels to the region of interest. In the encoding and decoding process of video image transmission, references between regions with different permission levels are involved. When a low permission level region needs to refer to the information of a high permission level region for encoding and decoding, how to ensure that users with different permission levels on the decoding end have consistent decoding results for the low permission level region is the key to the permission level encoding and decoding technology. The industry has designed a variety of solutions to ensure that users with different permission levels on the decoding end have consistent decoding results for low permission level areas. One is to limit the configuration of permission level areas, that is, to set the same permission level for all image blocks in a slice to avoid references between areas with different permission levels; however, this solution results in inaccurate configuration of permission level areas, and cannot achieve accurate access to different areas by permission level. Summary of the invention The present application provides an image encoding and decoding method and device, which realize accurate access to different image areas according to different authority levels without increasing the transmission code stream, and ensure that users with different authority levels on the decoding end have consistent decoding results for low-authority level areas. In order to achieve the above-mentioned purpose, the embodiment of the present application adopts the following technical solution. In a first aspect, an embodiment of the present application provides an image encoding and decoding method, the method comprising: determining a prediction mode of an image block to be processed and an authority level of the image block to be processed; determining a first reference image block of the image block to be processed according to the prediction mode; if the authority level of the first reference image block does not meet a reference condition, prohibiting the use of the first reference image block to determine the prediction block of the image block to be processed or using a second reference image block that is allowed to be derived to determine the prediction block of the image block to be processed; wherein the reference condition comprises that the authority level is lower than or equal to the authority level of the image block to be processed, or the authority level is different from the authority level of the image block to be processed, or the authority level is equal to the minimum authority level, or there is no pixel block with a higher authority level than the image block to be processed within a distance of s pixels above, below, left, and right, and s is greater than or equal to 1. Through the solution provided by the present application, in the encoding / decoding process of an image with configured permission levels, when an image block (or pixel) in a low permission level area needs to refer to an image block (or pixel) with a high permission level, it is prohibited to refer to or refer to an alternative value of an image block (or pixel) with a high permission level that is allowed to be exported (and can be obtained by users of any permission level). The encoding / decoding end uses the same operation for reference, so that for the same low permission level area, there is no need to transmit a compensation value, which also saves the transmission code stream, and the decoding results of users with different permissions on the decoding end are consistent. As a possible implementation manner, the second reference image block is an image block determined by image blocks whose permission levels meet the reference condition among the neighboring image blocks of the first reference image block. As another possible implementation manner, the second reference image block is a predicted pixel value obtained by decoding the first reference image block using the lowest user authority level of the decoding end. As another possible implementation manner, the second reference image block is an image block with a default pixel value. In this way, if a second reference image block that is allowed to be exported is used to determine the prediction block of the image block to be processed (that is, the image block whose predicted pixel value is supported by the authority level of the user at the decoding end and has been determined), according to the different user authority levels at the decoding end where the processing device is deployed, for the same image block to be processed, when the authority level of the first reference image block does not meet the reference condition, the determined second reference image block is consistent, so as to achieve consistent decoding results for the same low-authority level area by users with different authority levels. As a possible implementation, the method may further include: if the image block to be processed is of the lowest authority level, updating the historical reference list according to the predicted reference information of the image block to be processed; if the image block to be processed is not of the lowest authority level, prohibiting updating the historical reference list according to the predicted reference information of the image block to be processed. Motion information used to indicate the prediction reference information of the processed image block. The prediction reference information of the image block is used to indicate the prediction process of the image block to be processed. The non-minimum permission level is one or more. In this way, the historical reference list will only be updated when the image block to be processed is the lowest permission level to ensure the consistency of decoding of the low permission level area by users of different permission levels. As another possible implementation, the method may further include: if the image block to be processed is of the lowest authority level, updating the historical reference list according to the prediction reference information of the image block to be processed; if the authority level of the image block to be processed is not the lowest authority level, updating the historical reference list according to the alternative prediction reference information that is allowed to be derived. In this way, if the authority level of the image block to be processed is not the lowest authority level, the historical reference list is updated by means of alternative prediction reference information (the alternative prediction reference information that is allowed to be derived may refer to the prediction reference information of the image block that is supported by the authority level of the decoding end user and has determined the predicted pixel value), so as to ensure the consistency of decoding of the low-authority level area by users of different authority levels. As another possible implementation, the method may also include: if the image block to be processed is of the lowest authority level, updating the historical reference list according to the predicted reference information of the image block to be processed; if the authority level of the image block to be processed is not the lowest authority level, updating the temporary historical reference list corresponding to the authority level of the image block to be processed according to the predicted reference information of the image block to be processed. In this way, if the authority level of the image block to be processed is not the lowest authority level, the temporary historical reference list (not the original historical reference list) corresponding to the authority level of the image block to be processed can be updated according to the predicted reference information of the image block to be processed, and after processing the image block with the lowest authority, the original historical reference list is updated according to the predicted reference information of the image block with the lowest authority, so as to ensure the consistency of decoding of the low-authority level area by users of different authority levels. As another possible implementation, the method may also include: if the image block to be processed is of the lowest authority level, and the historical reference list has not been updated by the predicted reference information of the image block not of the lowest authority level, updating the historical reference list according to the predicted reference information of the image block to be processed; if the image block to be processed is of the lowest authority level, and the historical reference list is updated by the predicted reference information of the image block not of the lowest authority level, reconstructing the historical reference list according to the predicted reference information of the image block to be processed; if the image block to be processed is of a non-lowest authority level, updating the historical reference list according to the predicted reference information of the image block to be processed. In this way, by configuring only one historical reference list, the image block not of the lowest authority also updates the historical reference list, but when processing the image block of the lowest authority, the historical reference list is initialized and then reconstructed and updated to ensure consistency in decoding of the low-authority level area by users of different authority levels. As another possible implementation, the method may further include: updating a historical reference list of the permission level area to which the image block to be processed belongs according to the prediction reference information of the image block to be processed; different historical reference lists are constructed for areas with different permission levels. As another possible implementation, different historical reference lists are constructed for some permission level regions, and the method may further include: if the permission level region where the image block to be processed is located is configured with a historical reference list, updating the historical reference list of the permission level region to which the image block to be processed belongs according to the predicted reference information of the image block to be processed. If the permission level region where the image block to be processed is located is not configured with a historical reference list, constructing or updating the historical reference list according to other possible implementations. As another possible implementation, the method may further include: if the permission level of the image block to be processed is higher than the permission level of the previous region, updating the historical reference list according to the predicted reference information of the image block to be processed; if the permission level of the image block to be processed is lower than the permission level of the previous region, initializing the historical reference list according to the alternative predicted reference information. In this way, according to the above different ways of updating the historical reference list, the same scheme can be adopted by both the codec and the decoder. The reference method adopted by the image block to be processed is decided by the encoder, and the encoding is sent to the decoder along with the bitstream, so that both the codec and the decoder adopt the same scheme to ensure the consistency of decoding of the low-authority level area by users with different authority levels. As a possible implementation manner, the replacement prediction reference information is the default prediction reference information. As another possible implementation manner, the replacement prediction reference information is prediction reference information of a default image block. As another possible implementation manner, the replacement prediction reference information is prediction reference information of an image block whose permission level meets the reference condition and is before the image block to be processed in the coding and decoding order. As another possible implementation manner, the replacement prediction reference information is prediction reference information derived from prediction reference information of an image block whose permission level meets the reference condition and precedes the image block to be processed in the coding and decoding order. In this way, the historical reference list is constructed and updated according to the prediction reference information of the image block with the lowest authority. After processing the image block with non-lowest authority, the historical reference list is updated according to the alternative prediction reference information allowed to be derived to ensure the consistency of decoding of the low-authority level area by users with different authority levels. As a possible implementation, the prediction reference information includes any one of the following information: location information, mode Information or frequency; the historical reference list includes any one of the following lists: a historical motion information table, a historical intra-frame copy information table, or a historical point prediction information table. As a possible implementation manner, the method may further include: if the permission level of the used adjacent spatial domain image block does not meet the reference condition, marking the adjacent spatial domain image block as non-existent. As another possible implementation manner, if the permission level of the adjacent image block does not meet the reference condition, the spatial domain prediction information of the image block to be processed is obtained by parsing from the bitstream. As another possible implementation, if the permission level of the used adjacent spatial image blocks does not meet the reference condition, the spatial prediction information of the image block to be processed is derived according to the alternative spatial prediction information of the adjacent image blocks that is allowed to be derived. In this way, by deriving spatial motion information, the motion information of the surrounding image blocks adjacent to the image block to be processed is used to determine the motion information of the current image block to be processed. If the authority level of the adjacent spatial image block used does not meet the reference condition, the motion information of the current image block to be processed can be determined according to the above-mentioned different methods of deriving spatial motion information, and the same scheme can be used at both ends of the codec. The reference method used for the image block to be processed is decided by the encoding end, and the encoding is sent to the decoding end along with the bitstream so that the same scheme is used at both ends of the codec to ensure consistency in decoding of low-authority level areas by users of different authority levels. As a possible implementation method, the airspace prediction information is replaced with the default airspace prediction information. As another possible implementation, the replacement spatial prediction information is the spatial prediction information derived from the spatial prediction information of an image block whose permission level meets the reference condition before the image block to be processed in the encoding and decoding order. As a possible implementation, the method may further include: obtaining permission level configuration information of the image frame, the permission level configuration information is used to indicate the correspondence between the location of the region in the image frame and the permission level; the image block in the location region has one or more levels of permission; and the permission level corresponding to the location of the image block in the image frame in the permission level configuration information is used as the permission level of the image block. In this way, the permission level corresponding to the location of the image block in the image frame in the permission level configuration information can be used as the permission level of the image block, thereby allowing the processing device to restrict operations according to different permission levels. As a possible implementation manner, when intra-frame prediction filtering, inter-frame prediction filtering, or intra-frame reference pixel filtering is turned on, the first reference image block is a reference image block used during filtering. As another possible implementation method, when the cross-component prediction technology is turned on, when the image block to be processed is an image block in the first channel, the first channel refers to the image blocks in the second channel and / or the third channel to generate a prediction block of the image block in the first channel, and the first reference image block is the image block in the second channel and / or the third channel. In this way, the first reference image block can be determined as the image block to be referenced when obtaining the prediction block of the image block to be processed according to the prediction module of the image block to be processed. The content or position of the first reference image block may be different under different prediction modules or in different scenarios. As a possible implementation manner, the method may further include: if the permission level of the first reference image block meets the reference condition, using the first reference image block to determine a prediction block of the image block to be processed. As a possible implementation, the method may also include: if the permission level of the first reference image block does not meet the reference condition, determining the target reference mode of the image block to be processed; wherein the target reference mode includes: prohibiting the use of the first reference image block to determine the prediction block of the image block to be processed or using the second reference image block that is allowed to be derived to determine the prediction block of the image block to be processed; the decoding end determines the target reference mode according to the indication information in the code stream, and the encoding end decides to determine the target reference mode. In this way, when the permission level of the first reference image block does not meet the reference condition, different image blocks can adopt different processing methods in the above-mentioned determination of the prediction block of the image block to be processed to obtain the prediction block of the image block to be processed, and the same scheme can be adopted at both ends of the encoding and decoding. The reference mode adopted by the image block to be processed is decided by the encoding end, and the encoding is sent to the decoding end along with the code stream, so that both ends of the encoding and decoding adopt the same scheme to ensure the consistency of decoding of low-authority level areas by users of different permission levels. In a second aspect, an embodiment of the present application provides an image encoding and decoding device, which includes a determination module and a processing module. The determination module is used to determine the prediction mode of the image block to be processed and the authority level of the image block to be processed. The determination module is further used to: determine a first reference image block of the image block to be processed according to the prediction mode. The processing module is used to: if the authority level of the first reference image block does not meet the reference condition, prohibit the use of the first reference image block to determine the prediction block of the image block to be processed or use the second reference image block that is allowed to be derived to determine the prediction block of the image block to be processed. The reference condition includes that the authority level is lower than or equal to the authority level of the image block to be processed, or the authority level is different from the authority level of the image block to be processed, or the authority level is equal to the minimum authority level, or there is no pixel block with a higher authority level than the image block to be processed within a distance of s pixels above, below, left, and right, and s is greater than or equal to 1. As a possible implementation, the second reference image block is an image block determined by an image block whose permission level meets the reference condition among the neighboring image blocks of the first reference image block. Alternatively, the second reference image block is a predicted pixel value obtained by decoding the first reference image block using the lowest user permission level of the decoding end. Alternatively, the second reference image block is an image block with a default pixel value. As a possible implementation, the processing module is further used to: if the image block to be processed is of the lowest authority level, update the historical reference list according to the predicted reference information of the image block to be processed. If the image block to be processed is of a non-lowest authority level, it is prohibited to update the historical reference list according to the predicted reference information of the image block to be processed. The historical reference list is used to indicate the motion information of the predicted reference information of the processed image block. The predicted reference information of the image block is used to indicate the prediction process of the image block to be processed. The non-lowest authority level is one or more. As another possible implementation, the processing module is further configured to: if the image block to be processed is of the lowest permission level, update the historical reference list according to the prediction reference information of the image block to be processed; if the permission level of the image block to be processed is not the lowest permission level, update the historical reference list according to the alternative prediction reference information allowed to be derived. As another possible implementation, the processing module is further used to: if the image block to be processed is of the lowest authority level, update the historical reference list according to the predicted reference information of the image block to be processed. If the authority level of the image block to be processed is not the lowest authority level, update the temporary historical reference list corresponding to the authority level of the image block to be processed according to the predicted reference information of the image block to be processed. As another possible implementation, the processing module is further used for: if the image block to be processed is of the lowest authority level, and the historical reference list has not been updated by the predicted reference information of the image block of a non-lowest authority level, updating the historical reference list according to the predicted reference information of the image block to be processed. If the authority level of the image block to be processed is of the lowest authority level, and the historical reference list has not been updated by the predicted reference information of the image block of a non-lowest authority level, reconstructing the historical reference list according to the predicted reference information of the image block to be processed. If the image block to be processed is of a non-lowest authority level, updating the historical reference list according to the predicted reference information of the image block to be processed. As another possible implementation, the processing module is further used to: update the historical reference list of the permission level area to which the image block to be processed belongs according to the prediction reference information of the image block to be processed. Different historical reference lists are constructed for areas of different permission levels. As another possible implementation, the processing module is further configured to: if the permission level of the image block to be processed is higher than the permission level of the previous region, update the historical reference list according to the predicted reference information of the image block to be processed; if the permission level of the image block to be processed is lower than the permission level of the previous region, initialize the historical reference list according to the alternative predicted reference information. As a possible implementation, the replacement prediction reference information is the default prediction reference information. Alternatively, the replacement prediction reference information is the prediction reference information of the default image block. Alternatively, the replacement prediction reference information is the prediction reference information of the image block whose permission level meets the reference condition before the image block to be processed in the coding and decoding order. Alternatively, the replacement prediction reference information is the prediction reference information derived from the prediction reference information of the image block whose permission level meets the reference condition before the image block to be processed in the coding and decoding order. As a possible implementation, the prediction reference information includes any one of the following information: position information, mode information or frequency. The historical reference list includes any one of the following lists: a historical motion information table, a historical intra-frame copy information table, or a historical point prediction information table. As a possible implementation, the processing module is further used to: if the permission level of the adjacent spatial domain image block used does not meet the reference condition, mark the adjacent spatial domain image block as non-existent. Alternatively, the processing module is further used to: if the permission level of the adjacent image block does not meet the reference condition, parse and obtain the spatial domain prediction information of the image block to be processed from the bitstream. Alternatively, the processing module is further used to: if the permission level of the adjacent spatial domain image block used does not meet the reference condition, derive the spatial domain prediction information of the image block to be processed according to the alternative spatial domain prediction information of the adjacent image block that is allowed to be derived. As a possible implementation, the replacement spatial prediction information is the default spatial prediction information. Alternatively, the replacement spatial prediction information is the spatial prediction information derived from the spatial prediction information of the image block whose permission level meets the reference condition before the image block to be processed in the coding and decoding order. As a possible implementation method, the determination module is specifically used to: obtain permission level configuration information of the image frame, where the permission level configuration information is used to indicate the correspondence between the regional position in the image frame and the permission level. The image block in the position area has one or more levels of permission. The permission level corresponding to the position of the image block in the image frame in the permission level configuration information is used as the permission level of the image block. As a possible implementation, when intra-frame prediction filtering, inter-frame prediction filtering, or intra-frame reference pixel filtering is turned on, the first reference image block is the reference image block used for filtering. When the cross-component prediction technology is turned on, when the image block to be processed is an image block in the first channel, the first channel refers to the image blocks in the second channel and / or the third channel to generate a prediction block of the image block in the first channel, and the first reference image block is the image block in the second channel and / or the third channel. As a possible implementation manner, the processing module is further configured to: if the permission level of the first reference image block satisfies the reference The first reference image block is used to determine a prediction block of the image block to be processed. As a possible implementation, the processing module is further used to: if the permission level of the first reference image block does not meet the reference condition, determine the target reference mode of the image block to be processed. The target reference mode includes: prohibiting the use of the first reference image block to determine the prediction block of the image block to be processed or using the second reference image block that is allowed to be derived to determine the prediction block of the image block to be processed. The decoding end determines the target reference mode according to the indication information in the bitstream, and the encoding end decides to determine the target reference mode. In a third aspect, an embodiment of the present application provides an encoder, including a processor, the processor being coupled to a memory. The memory is used to store a computer program or instruction. The processor is used to execute the computer program or instruction stored in the memory, so that the encoder is used to execute the method described in any one of the first aspect and its possible implementations. In a fourth aspect, an embodiment of the present application provides a decoder, including a processor, the processor being coupled to a memory. The memory is used to store a computer program or instruction. The processor is used to execute the computer program or instruction stored in the memory, so that the decoder is used to execute the method described in any one of the first aspect and its possible implementations. In a fifth aspect, the present application provides a computer program product, comprising a program code, which, when executed on a computer or a processor, is used to execute the method described in the first aspect and any one of its possible implementations. In a sixth aspect, the present application provides an electronic device, comprising the encoder described in the third aspect, or the decoder described in the fourth aspect. In a seventh aspect, the present application provides a computer-readable storage medium, comprising a program code, which, when executed by a computer device, is used to execute the method described in the first aspect and any one of its possible implementations. It should be understood that the beneficial effects achieved by the technical solutions of the second to seventh aspects of the embodiments of the present application and the corresponding possible implementation methods can be referred to the technical effects of the first aspect and its corresponding possible implementation methods mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS FIG1 is a schematic diagram of the architecture of a coding and decoding system provided in an embodiment of the present application; FIG2 is a schematic block diagram of an encoder provided in an embodiment of the present application; FIG3 is a schematic block diagram of a decoder provided in an embodiment of the present application; FIG4 is a schematic diagram of a flow chart of an image encoding and decoding method provided in an embodiment of the present application; FIG5 is a schematic diagram of a flow chart of another image encoding and decoding method provided in an embodiment of the present application; FIG6 is a schematic diagram of an intra-frame prediction mode provided in an embodiment of the present application; FIG7 is a schematic diagram of a positional relationship between a left / upper adjacent block and a current image block provided by an embodiment of the present application; FIG8 is a schematic diagram of a peripheral block provided in an embodiment of the present application; FIG. 9 is a schematic diagram of the structure of an image encoding and decoding device provided in an embodiment of the present application. DETAILED DESCRIPTION The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of the objects. For example, the first prediction mode and the second prediction mode are used to distinguish different prediction modes rather than to describe a specific order of the prediction modes. In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple image blocks refer to two or more than two image blocks. The image encoding and decoding method provided in the embodiment of the present application can be applied to the process of obtaining a prediction block in the image encoding process, and can also be applied to the process of obtaining a prediction block in the image decoding process. First, the technical terms involved in the embodiments of the present application are introduced. Video sequence / image sequence: A complete image in a video is usually called a "frame", and a video composed of many frames in time sequence is called a video sequence, or it can be called an image sequence. Video coding technology: Video sequences contain a series of redundant information, including spatial redundancy, temporal redundancy, visual redundancy, information entropy redundancy, structural redundancy, knowledge redundancy, and importance redundancy. In order to remove redundant information in video sequences as much as possible and reduce the amount of data representing the video, video coding technology is proposed to achieve the effect of reducing storage space and saving transmission bandwidth. Video coding technology is also called video compression technology. Permission level: Level information assigned to a region in an image to indicate the access rights. Users at the decoding end can only access information in regions with a permission level lower than or equal to their own. Intra-frame prediction: refers to predictive coding using the reconstructed pixel values ​​of the spatially adjacent blocks of the current block (in the same frame as the current image block). Inter-frame prediction: refers to predictive coding using the reconstructed pixel values ​​of the time-domain neighboring blocks of the current block (in different images from the current image block). Predicted pixel: refers to the pixel value derived from the pixel that has been encoded and decoded, that is, the pixel value in the predicted block of the image block. The difference between the original pixel and the predicted pixel can obtain the residual, and then the residual transform quantization and coefficient encoding are performed. In particular, the predicted pixel of inter-frame prediction refers to the pixel value derived from the reference image block in the reference frame (reconstructed pixel frame) of the current image block. Due to the discrete pixel position, interpolation operation is required to obtain the final predicted pixel. The closer the predicted pixel is to the original pixel, the smaller the residual energy obtained by subtracting the two, and the higher the coding compression performance. The present application provides an image encoding and decoding solution. During the encoding / decoding process of an image configured with permission levels, when an image block (or pixel) in a low permission level area needs to refer to an image block (or pixel) at a high permission level, it is prohibited to refer to or refer to an alternative value of an image block (or pixel) at a high permission level that is allowed to be exported (and can be obtained by users of any permission level). The encoding / decoding end uses the same operation for reference, so that the decoding results of users with different permissions at the decoding end can be consistent for the same low permission level area. Since the solution of the present application provides a solution for reference between areas with different permission levels, there is no need to force certain image blocks to be assigned to other permission levels when dividing image blocks, and accurate access to different image areas by permission level can be achieved. The present application uses alternative values ​​that are allowed to be exported for reference, which achieves consistency in decoding for users of different permission levels, and does not require the transmission of compensation values, which also saves transmission code streams. Next, the implementation environment and application scenarios of the embodiments of the present application are briefly introduced. The video encoding and decoding method provided by the present application can be applied to the video encoding and decoding system shown in FIG1 . Referring to FIG. 1 , a schematic diagram of the architecture of a coding and decoding system (also referred to as a coding and decoding system) 10 used in an embodiment of the present application is provided. As shown in FIG. 1 , the coding and decoding system 10 may include a source device 11 and a destination device 12. The source device 11 is used to encode an image, and therefore, the source device 11 may be referred to as a video encoding device. The destination device 12 is used to decode the encoded image data generated by the source device 11, and therefore, the destination device 12 may be referred to as a video decoding device. The source device 11 and the destination device 12 may include various devices, such as desktop computers, mobile computing devices, notebook (e.g., laptop) computers, tablet computers, set-top boxes, mobile phones, televisions, cameras, display devices, digital media players, video game consoles, in-vehicle computers, wireless communication devices, etc. In one example, the source device 11 and the destination device 12 in FIG. 1 may be two separate devices, or the source device 11 and the destination device 12 may be the same device, that is, the source device 11 or the corresponding function and the destination device 12 or the corresponding function may be integrated on the same device. The source device 11 and the destination device 12 may communicate with each other, for example, the destination device 12 may receive the encoded image data from the source device 11. In one example, one or more communication media may be included between the source device 11 and the destination device 12, and the encoded image data is transmitted through the one or more communication media, and the one or more communication media may include routers, switches, base stations, or other devices that facilitate communication from the source device 11 to the destination device 12. As shown in FIG. 1 , the source device 11 includes an encoder 112. In one example, the source device 11 may also include an image preprocessor 111 and a communication interface 113. The image preprocessor 111 is used to perform preprocessing on the received image to be encoded. For example, the preprocessing performed by the image preprocessor 111 may include refurbishment, color format conversion (for example, conversion from RGB format to YUV format), color adjustment or denoising, etc. The encoder 112 is used to receive the preprocessed image and process the preprocessed image using a relevant prediction mode (such as the prediction mode in each embodiment of this article) to provide encoded image data. In some embodiments, the encoder 112 may be used to perform the image encoding process in each embodiment described below. The communication interface 113 may be used to transmit the encoded image data to the destination device 12 or any other device (such as a memory) for storage or direct reconstruction. The other device may be any device for decoding or storage. The communication interface 113 may also encapsulate the encoded image data into a suitable format before transmission. In an example, the image preprocessor 111 , the encoder 112 , and the communication interface 113 may be hardware components in the source device 11 , or may be software programs in the source device 11 , which is not limited in the embodiment of the present application. Continuing as shown in FIG. 1 , the destination device 12 includes a decoder 122. In one example, the destination device 12 may also include a communication interface 121 and an image post-processor 123. The communication interface 121 may be used to receive encoded image data from the source device 11 or any other source device, such as a storage device. The communication interface 121 may also decapsulate data transmitted by the communication interface 113 to obtain encoded image data. The decoder 122 is used to receive encoded image data and output decoded image data (also referred to as reconstructed image data or reconstructed image data). In some embodiments, the decoder 122 may be used to perform the image decoding process described in the various embodiments described below. The image post-processor 123 is used to perform post-processing on the decoded image data to obtain post-processed image data. The post-processing performed by the image post-processor 123 may include: color format conversion (for example, from YUV format to RGB format), color adjustment, repair or resampling, or any other processing, and may also be used to transmit the post-processed image data to a display device for display. Similarly, in one example, the communication interface 121, decoder 122 and image post-processor 123 may be hardware components in the destination device 12, or may be software programs in the destination device 12, which is not limited in the embodiment of the present application. The structures of the encoder and decoder in FIG1 are briefly introduced below. Referring to FIG. 2 , FIG. 2 shows a schematic block diagram of an example of an encoder 20 for implementing an embodiment of the present application. In FIG. 2 , the encoder includes a prediction processing unit 201, a residual calculation unit 202, a transform processing unit 203, a quantization unit 204, an entropy coding unit 205, an inverse quantization unit (also referred to as an inverse quantization unit) 206, an inverse transform unit (also referred to as an inverse transform processing unit) 207, a reconstruction unit (or a reconstruction unit) 208, and a filter unit 209. Optionally, the encoder 20 may further include a buffer and a decoded image buffer, wherein the buffer is used to cache the reconstructed image blocks output by the reconstruction unit 208, and the decoded image buffer is used to cache the filtered image blocks output by the filter unit 209. The input of the encoder 20 is an image block of an image (which may be referred to as an image to be encoded), and the image block may also be referred to as a current image block or an image block to be encoded or an image block to be processed. The encoder 20 may further include a segmentation unit (not shown in FIG. 2 ), which is used to segment the image to be encoded into a plurality of image blocks. The encoder 20 is used to encode the image to be encoded block by block, for example, performing an encoding process on each image block. Exemplarily, the segmentation unit may segment the image according to the position information indicating the position area of ​​the object of interest, so that an image block includes only an image area of ​​one permission level. The prediction processing unit 201 is used to receive or obtain an image block (the current image block to be encoded of the current image to be encoded, which may also be referred to as the current image block, and the image block may be understood as the true value of the image block) and reconstructed image data, and predict the current image block based on the relevant data in the reconstructed image data to obtain a prediction block of the current image block. Optionally, the prediction processing unit 201 may include an inter-frame prediction unit, an intra-frame prediction unit, and a mode selection unit, the mode selection unit being used to select an intra-frame prediction mode or an inter-frame prediction mode. If the intra-frame prediction mode is selected, the prediction process is performed by the intra-frame prediction unit, and if the inter-frame prediction mode is selected, the prediction process is performed by the inter-frame prediction unit. The residual calculation unit 202 is used to calculate the residual between the real value of the image block and the prediction block of the image block to obtain a residual block, for example, by subtracting the pixel value of the prediction block from the pixel value of the image block pixel by pixel. The transform processing unit 203 is used to transform the residual block, such as discrete cosine transform (DCT) or discrete sine transform (DST), to obtain transform coefficients in the transform domain. The transform coefficients may also be called transform residual coefficients, which may represent the residual block in the transform domain. The quantization unit 204 is used to quantize the transform coefficients by applying scalar quantization or vector quantization to obtain quantized transform coefficients, which may also be referred to as quantized residual coefficients. The quantization process may reduce the bit depth associated with some or all of the transform coefficients. For example, an n-bit transform coefficient may be rounded down to an m-bit transform coefficient during quantization, where n is greater than m. The degree of quantization may be modified by adjusting a quantization parameter (QP). For example, for scalar quantization, different scales may be applied to achieve finer or coarser quantization. A smaller quantization step size corresponds to finer quantization, while a larger quantization step size corresponds to coarser quantization. A suitable quantization step size may be indicated by a quantization parameter (QP). The entropy coding unit 205 is used to encode the above-mentioned quantized residual coefficients or transform coefficients, and then arrange the coefficient encoding into units to be decoded in a scanning manner and a grouping manner, and output the encoded image data (i.e., the units to be decoded) in the form of an encoded bit stream. The encoded bit stream can then be transmitted to the decoder, or stored and subsequently transmitted to the decoder or used for retrieval. The encoding unit 205 can also be used to encode other syntax elements of the current image block, such as encoding the prediction mode into the bit stream, encoding the reference mode indication information into the bit stream, etc. Entropy coding algorithms include but are not limited to variable length coding (VLC) algorithm, context adaptive VLC (CAVLC) algorithm, arithmetic coding algorithm, context adaptive binary arithmetic coding (CABAC) algorithm, syntax-based context-adaptive binary arithmetic coding (SBAC) algorithm, probability interval classification algorithm, and so on. Probability interval partitioning entropy (PIPE) algorithm. The dequantization unit 206 is used to dequantize the quantized coefficients to obtain dequantized coefficients, where the dequantization is the reverse application of the quantization unit 204, for example, based on or using the same quantization step size as the quantization unit 204, and applying an inverse quantization scheme of the quantization scheme applied by the quantization unit 204. The dequantized coefficients may also be referred to as dequantized residual coefficients. The inverse transform unit 207 is used to perform an inverse transform on the inverse quantized coefficients. It should be understood that the inverse transform is the reverse application of the transform processing unit 203. For example, the inverse transform may include an inverse discrete cosine transform (DCT) or an inverse discrete sine transform (DST) to obtain an inverse transform block in a pixel domain (or sample domain). The inverse transform block may also be called an inverse transform inverse quantized block or an inverse transform residual block. The reconstruction unit 208 is used to add the inverse transform block (i.e., the inverse transform residual block) to the prediction block to obtain a reconstructed block in the sample domain. The reconstruction unit 208 can be a summer, for example, adding the sample value (i.e., pixel value) of the residual block to the sample value of the prediction block. The reconstructed block output by the reconstruction unit 208 can be subsequently used to predict other image blocks, for example, in an intra-frame prediction mode. The filter unit 209 (or simply "filter") is used to filter the reconstructed block to obtain a filtered block, so as to smoothly perform pixel conversion or improve image quality. The filter unit can be a loop filter unit, which is intended to represent one or more loop filters, such as a deblocking filter, a sample-adaptive offset (SAO) filter or other filters, such as a bilateral filter, an adaptive loop filter (ALF), or a sharpening or smoothing filter, or a collaborative filter. Optionally, the filtered block output by the filter unit 209 can be subsequently used to predict other image blocks, for example, in an inter-frame prediction mode. Specifically, in the embodiment of the present application, the encoder 20 is used to implement the image encoding and decoding method described in the embodiments below. Referring to FIG. 3 , FIG. 3 shows a schematic block diagram of an example of a decoder 30 for implementing an embodiment of the present application. The decoder 30 is used to receive, for example, encoded image data (i.e., an encoded bitstream, for example, an encoded bitstream including an image block and associated syntax elements) encoded by the encoder 20 to obtain a decoded image. The decoder 30 includes an entropy decoding unit 301, an inverse quantization unit 302, an inverse transform unit 303, a prediction processing unit 304, a reconstruction unit 305, and a filter unit 306. In some examples, the decoder 30 may perform a decoding pass that is substantially inverse to the encoding pass described by the encoder 20 of FIG. 2 . In one example, the decoder 30 may also include a buffer and a decoded image buffer, wherein the buffer is used to cache the reconstructed image block output by the reconstruction unit 305, and the decoded image buffer is used to cache the filtered image block output by the filter unit 306. The entropy decoding unit 301 is used to perform entropy decoding on the encoded image data to obtain quantized coefficients and / or decoded encoding parameters (for example, the decoded parameters may include any one or all of inter-frame prediction parameters, intra-frame prediction parameters, filter parameters and / or other syntax elements). The entropy decoding unit 301 is also used to forward the above-mentioned decoded encoding parameters to the prediction processing unit 304, so that the prediction processing unit performs a prediction process according to the encoding parameters to obtain a prediction block of the current image block. The function of the inverse quantization unit 302 may be the same as that of the inverse quantization unit 206 of the encoder 20 , for inverse quantizing (ie, inverse quantizing) the quantized coefficients decoded by the entropy decoding unit 301 . The function of the inverse transform unit 303 may be the same as that of the inverse transform unit 207 of the encoder 20, and the function of the reconstruction unit 305 (e.g., a summer) may be the same as that of the reconstruction unit 208 of the encoder 20, and is used to perform an inverse transform (e.g., an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process) on the above-mentioned quantized coefficients to obtain an inverse transform block (also referred to as an inverse transform residual block), which is the residual block of the current image block in the pixel domain. The prediction processing unit 304 is used to receive or obtain the encoded image data (e.g., the encoded bit stream of the current image block) and the reconstructed image data. The prediction processing unit 301 can also receive or obtain prediction related parameters and / or information about the selected prediction mode (i.e., decoded encoding parameters) from, for example, the entropy decoding unit 302, and predict the current image block based on the related data in the reconstructed image data and the decoded encoding parameters to obtain the prediction block of the current image block. Optionally, the prediction processing unit 304 can include an inter-frame prediction unit, an intra-frame prediction unit, and a mode selection unit. The mode selection unit is used to select an intra-frame prediction mode or an inter-frame prediction mode. If the intra-frame prediction mode is selected, the prediction process is performed by the intra-frame prediction unit. If the inter-frame prediction mode is selected, the prediction process is performed by the inter-frame prediction unit. The reconstruction unit 305 is used to add the inverse transform block (ie, the inverse transform residual block) to the prediction block to obtain a reconstructed block in the sample domain, for example, adding the sample values ​​of the inverse transform residual block to the sample values ​​of the prediction block. The filter unit 306 is configured to filter the reconstructed block to obtain a filtered block, where the filtered block is a decoded image block. Specifically, in the embodiment of the present application, the prediction processing unit 201 / prediction processing unit 304 is used to implement the following The image encoding and decoding method described in the embodiment. It should be understood that, in the encoder 20 and the decoder 30 of the embodiment of the present application, the processing result of a certain link can also be output to the next link after further processing. On the one hand, the embodiment of the present application provides an image encoding and decoding method, which is performed by a processing device. The processing device can be the aforementioned encoder 20 to perform the encoding process. Alternatively, the processing device can be the aforementioned decoder 30 to perform the decoding process. Further, the processing device can be the aforementioned prediction processing unit 201 or the prediction processing unit 304 to perform the prediction process. Among them, the processing object in the embodiment of the present application is an image block. The image block segmentation method and the size of the image block can be implemented with reference to the video compression coding standard, and the embodiment of the present application is not limited to this. As mentioned above, in order to achieve accurate access to different image areas according to the permission level, users on the decoding end can only access image areas with permission levels lower than or equal to their own permission. When performing block division, the encoding end selects a suitable block division scheme so that the divided image block is only located in the area of ​​one permission level. If there are areas of multiple permission levels in the current divided image block, the current image block will continue to be divided until the divided image block is only located in the area of ​​one permission level. Among them, an image area of ​​a permission level can be a coding unit CU, a maximum coding unit LCU, an image slice (such as slice, tile, patch) or a frame level, etc., which is not limited in the embodiment of the present application. An image block can be an LCU, CU or prediction unit PU or others. The processing device traverses and processes the image blocks in the image frame one by one in a certain order. In the following embodiments, the image block currently being processed is referred to as the image block to be processed. For each image block to be processed, the processing device performs the same processing process on it. The following embodiments only describe the processing process of one image block to be processed, and the others are not described one by one. It should be noted that when the processing device is deployed at the decoding end, different users have different authority levels, and the processing device can correctly decode those that are lower than or equal to the user's authority and obtain their true pixel values. For image blocks with authority levels higher than the user's authority, decoding may not be performed, or decoding may obtain incorrect pixel value records. For example, when a user with a low authority level currently has an image block to be processed that is a high authority level image block, decoding can be skipped directly, or the erroneous pixel value of the current image block to be processed can be obtained through decoding as the predicted pixel value of the high authority level image block. Of course, the predicted pixel value is not the real pixel value. As shown in FIG. 4 , the image coding and decoding method may include S401 to S403 . S401: The processing device determines a prediction mode of an image block to be processed and an authority level of the image block to be processed. The prediction mode of the image block to be processed includes inter-frame prediction and / or intra-frame prediction. The specific contents of inter-frame prediction and intra-frame prediction can be referred to the video compression coding standard, and will not be described in detail in the embodiment of the present application. Exemplarily, the processing device is deployed at the encoding end (ie, the aforementioned source device 11 or encoder 112), and can determine the prediction mode of the image block to be processed by decision-making. The embodiment of the present application does not limit the content of the decision. Exemplarily, the processing device is deployed at the decoding end (ie, the aforementioned destination device 12 or decoder 122), and can decode and obtain the indication information indicating the prediction mode of the image block to be processed in the syntax element from the bitstream, thereby obtaining the prediction mode of the image block to be processed. Specifically, the permission level of the image block depends on the location area of ​​the image block in the image frame, and the location area in the image frame is configured with different permission levels according to requirements. The method provided in the embodiment of the present application may also include a process of determining the permission levels of different areas in the image frame. Exemplarily, the process of determining the permission levels of different regions in an image frame may be: obtaining permission level configuration information of the image frame, where the permission level configuration information is used to indicate the correspondence between the region position in the image frame and the permission level. The permission level configuration information may be configured and input by the user. The encoding end / decoding end may obtain the permission level configuration information input by the user. Alternatively, the encoding end may obtain the permission level configuration information input by the user, encode it and send it to the decoding end, and the decoding end parses and obtains the permission level configuration information from the bitstream. Alternatively, the encoding end may obtain the permission level configuration information input by the user, and then determine the permission level of each image block, encode the permission level of the image block and send it to the decoding end, and the decoding end parses and obtains the permission level of the image block from the bitstream. Exemplarily, the permission level configuration information may be as shown in Table 1. Further, after determining the permission levels of different areas in the image frame, the processing device may use the permission level corresponding to the position of the image block in the image frame in the permission level configuration information as the permission level of the image block. Specifically, the processing device may determine the position of the image block based on the coordinates of the image block, and then determine the permission level of the image block. For example, in S401, the processing device determines the permission level of the image block to be processed, and may use the permission level corresponding to the position of the image block to be processed in the image frame in the permission level configuration information as the permission level of the image block to be processed. For example, the processing device is deployed at the decoding end. In S401, the processing device determines the permission level of the image block to be processed, and can parse and obtain the permission level of the image block to be processed from the bitstream. S402: The processing device determines a first reference image block of the image block to be processed according to a prediction mode of the image block to be processed. The processing device may determine the reference image block of the image block to be processed according to the provisions of the video compression coding standard, the prediction module of the image block to be processed and the position of the image block to be processed, which is referred to as the first reference image block in the embodiment of the present application. The embodiment of the present application does not limit the process of determining the first reference image block of the image block to be processed. In a possible implementation, during intra-frame prediction, the first reference image block is an image block in an image frame where the image block to be processed is located. In another possible implementation, during inter-frame prediction, the first reference image block is an image block in a reference image frame of the image block to be processed. Exemplarily, during inter-frame prediction, a search area for an image block is specified in the video compression coding standard, and the search area includes a reference frame of the image block and image blocks allowed to be referenced in the reference frame. The processing device in S402 can select the optimal reference image block, i.e., the first reference image block, in the search area according to the prediction module of the image block to be processed. In another possible implementation, when intra-frame prediction filtering, inter-frame prediction filtering, or intra-frame reference pixel filtering is turned on, the first reference image block may be a reference image block used during filtering. In another possible implementation, when the cross-component prediction technology is turned on, when the image block to be processed is an image block in the first channel, the first channel refers to the image blocks in the second channel and / or the third channel to generate a prediction block of the image block in the first channel, and the first reference image block is the image block in the second channel and / or the third channel. It should be noted that the first reference image block is an image block to be referenced when obtaining the prediction block of the image block to be processed, which is determined according to the prediction module of the image block to be processed. Under different prediction modules or in different scenarios, the content or position of the first reference image block may be different. The embodiment of the present application does not specifically limit the content or position of the first reference image block, nor does it specifically limit the process of determining the first reference image block. Exemplarily, the first reference image block is an image block for which a prediction block has been determined before the image block to be processed in the coding and decoding order. S403: If the permission level of the first reference image block does not meet the reference condition, it is prohibited to use the first reference image block to determine the prediction block of the image block to be processed or to use the second reference image block that is allowed to be derived to determine the prediction block of the image block to be processed. Exemplarily, the above reference conditions may include that the permission level is lower than or equal to the permission level of the image block to be processed, or the permission level is different from the permission level of the image block to be processed, or the permission level is equal to the minimum permission level, or there is no permission level higher than the image block to be processed within a distance of s pixels above, below, left, and right, and s is greater than or equal to 1. The embodiments of the present application do not limit the content of the reference condition. For example, if the current image block is n×m, then there is no permission level higher than the image block to be processed within (n+s)×(m+s), and the reference condition is met. The following describes in detail two solutions, namely, prohibiting the use of the first reference image block to determine the prediction block of the image block to be processed and using the second reference image block that is allowed to be derived to determine the prediction block of the image block to be processed. The first solution is to prohibit the use of the first reference image block to determine the prediction block of the image block to be processed. Specifically, the first solution is equivalent to limiting the reference to image blocks that do not meet the reference condition. In the first solution, the processing method for non-existent reference image blocks specified in the video compression coding standard can be used to process the image blocks to be processed, which will not be described in detail here. Furthermore, in the first solution, the first reference image block may be marked as unavailable or not allowed to be referenced. The second solution is to use a second reference image block that allows for derivation to determine a prediction block for the image block to be processed. The second reference image block allowed to be derived refers to an image block whose predicted pixel value has been determined and whose permission level supports the decoding end user. For decoding end users with different permission levels, the second reference image block corresponding to the same first reference image block is the same. Exemplarily, the second reference image block may include but is not limited to any of the following situations: Case 1: the second reference image block is an image block determined by an image block whose permission level satisfies a reference condition among image blocks adjacent to the first reference image block. In one possible implementation, the second reference image block may be an image block whose permission level satisfies the reference condition among the neighboring image blocks of the first reference image block. It can also be understood that the second reference image block may be an image block whose permission level satisfies the reference condition among the neighboring image blocks of the first reference image block. Among them, the adjacent image blocks may be surrounding image blocks, and their specific contents may be configured according to actual needs, which is not limited in the embodiments of the present application. Exemplarily, the adjacent image block may be a left image block, an upper image block, an upper left image block or others. In another possible implementation, the second reference image block may be an image block adjacent to the first reference image block. The image block whose permission level meets the reference condition is obtained after calculation. The calculation may be to superimpose a default pixel value or other calculations, and the embodiment of the present application does not limit the content of the calculation. Case 2: The second reference image block is a predicted pixel value obtained by decoding the first reference image block using the lowest user authority level at the decoding end. In case 2, the predicted pixel value obtained by decoding the first reference image block using the lowest user authority level at the decoding end is not the actual pixel value of the first reference image block, that is, the aforementioned decoding error value. Case 3: the second reference image block is an image block with a default pixel value. Among them, the default value can be determined according to actual needs, and the embodiments of the present application are not limited to this. It should be noted that, for the same image block to be processed, when the authority level of the first reference image block does not meet the reference condition, the second reference image block determined by the decoding end of the deployed processing device is consistent, so as to achieve consistent decoding results for the same low-authority level area for users with different authority levels. Further, exemplarily, when the processing device is deployed at the encoding end, a second reference image block that is allowed to be derived can be used to determine a temporary prediction block of the image block to be processed; if the residual between the temporary prediction block and the image block to be processed is less than a threshold, the temporary prediction block is used as the prediction block of the image to be processed; if the residual between the temporary prediction block and the image block to be processed is greater than the threshold, it is determined that the reference image block of the image block to be processed is unavailable, and the above-mentioned first scheme is used to determine the prediction block of the image block to be processed. Specifically, in the second scheme, the processing device determines the prediction block of the image block to be processed, and the processing device predicts the current image block to be processed based on the second reference image block (the relevant data in the reconstructed image data) to obtain the prediction block of the current image block to be processed. The specific process is not described in detail in this application. The solution provided by the present application provides a solution for reference between regions of different permission levels. Therefore, when dividing image blocks, there is no need to force certain image blocks into other permission levels, and accurate access to different image regions by permission level can be achieved. The present application uses an alternative value that allows export for reference, which achieves consistency in decoding of low-privilege-level regions by users of different permission levels, and saves transmission code streams without the need to pass compensation values. Further, as shown in FIG. 5 , after S402 , the method provided in the embodiment of the present application may further include S404 . S404: If the permission level of the first reference image block meets the reference condition, use the first reference image block to determine a prediction block of the image block to be processed. Specifically, in S404, the processing device determines the prediction block of the image block to be processed, and the processing device predicts the current image block to be processed based on the first reference image block (the relevant data in the reconstructed image data) to obtain the prediction block of the current image block to be processed. The specific process is not described in detail in this application. In a possible implementation, any one of the solutions in S403 may be selected according to actual needs to obtain the prediction block of the image block to be processed, and both ends of the encoding and decoding may adopt the same solution. In another possible implementation, when the permission level of the first reference image block does not meet the reference condition, different image blocks can adopt different processing methods in S403 above to obtain the prediction block of the image block to be processed, and the same scheme can be adopted at both ends of the codec. The reference method adopted by the image block to be processed is decided by the encoding end, and the encoding is sent to the decoding end along with the bitstream so that the same scheme is adopted at both ends of the codec. Accordingly, as shown in Figure 5, the method provided in the embodiment of the present application may also include S405. S405: If the permission level of the first reference image block does not meet the reference condition, determine a target reference mode for the image block to be processed. The target reference method includes: prohibiting the use of the first reference image block to determine the prediction block of the image block to be processed, or using the second reference image block that is allowed to be derived to determine the prediction block of the image block to be processed. Specifically, the decoding end determines the target reference mode according to the indication information in the bit stream, and the encoding end determines the target reference mode by decision. After S405, S403 is executed according to the target reference mode. Furthermore, after S403, the method provided in the embodiment of the present application may also record a historical reference list, which is used to indicate motion information or frequency information of prediction reference information of the processed image block. The historical reference list is used as a reference for subsequent image blocks to perform inter-frame prediction. The historical reference list may include any one of the following lists: a historical motion information table, a historical intra-frame copy information table, or a historical point prediction information table. As shown in FIG. 5 , the method provided in the embodiment of the present application may further include S406 . S406: Update the historical reference list. Specifically, the specific implementation of updating the historical reference list provided in the embodiments of the present application may include but is not limited to any one of the following solutions. Solution 1: Update the historical reference list only based on the prediction reference information of the image block of the lowest permission level, and do not update the historical reference list based on the prediction reference information of the image block of a non-lowest permission level. Among them, the non-minimum permissions are one or more. The prediction reference information of the image block is used to indicate the prediction process of the image block to be processed. Exemplarily, the prediction reference information may include any one of the following information: location information, mode information, or frequency. Of course, the content of the prediction reference information may be configured according to actual needs, and the embodiments of the present application are not limited thereto. In solution 1, after the aforementioned S403, S406 can be specifically implemented as follows: if the image block to be processed is the one with the lowest weight If the image block to be processed is not of the lowest permission level, the historical reference list is updated according to the predicted reference information of the image block to be processed. If the image block to be processed is not of the lowest permission level, it is prohibited to update the historical reference list according to the predicted reference information of the image block to be processed. Among them, prohibiting the updating of the historical reference list according to the prediction reference information of the image block to be processed can be understood as: keeping the historical reference list unchanged. Solution 2: Build and update the historical reference list based on the predicted reference information of the image block with the lowest permission level; after processing the image block with non-lowest permission, update the historical reference list as the historical reference list within the permission according to the predicted reference information of the image block with non-lowest permission; after processing the image block with the lowest permission, update the original historical reference list according to the predicted reference information of the image block with the lowest permission. In solution 2, a temporary historical reference list is configured for each non-minimum authority region, and the historical reference list is used for inter-frame prediction of image blocks in the authority level region. It should be understood that in solution 2, multiple historical reference lists are recorded. In solution 2, after the aforementioned S403, S406 can be specifically implemented as follows: if the image block to be processed is of the lowest authority level, the historical reference list is updated according to the predicted reference information of the image block to be processed. If the authority level of the image block to be processed is not the lowest authority level, the temporary historical reference list corresponding to the authority level of the image block to be processed is updated according to the predicted reference information of the image block to be processed. Solution 3: Build and update the historical reference list based on the predicted reference information of the image block with the lowest authority. After processing the image block with non-lowest authority, update the historical reference list based on the predicted reference information of the image block with non-lowest authority. After processing the image block with the lowest authority, initialize the historical reference list and rebuild the historical reference list based on the predicted reference information of the image block with the lowest authority. In solution 3, only one historical reference list is configured, and the historical reference list is also updated for image blocks that are not of the lowest authority. However, when the image blocks of the lowest authority are processed, the historical reference list is initialized, rebuilt, and updated. In scheme 3, after the aforementioned S403, S406 can be specifically implemented as follows: if the image block to be processed is of the lowest authority level, and the historical reference list has not been updated by the predicted reference information of the image block of a non-lowest authority level, the historical reference list is updated according to the predicted reference information of the image block to be processed. If the authority level of the image block to be processed is of the lowest authority level, and the historical reference list is updated by the predicted reference information of the image block of a non-lowest authority level, the historical reference list is reconstructed according to the predicted reference information of the image block to be processed; if the image block to be processed is of a non-lowest authority level, the historical reference list is updated according to the predicted reference information of the image block to be processed. Solution 4: Build different historical reference lists for different authority areas. In solution 4, a historical reference list is configured for each permission level region, and the historical reference list is used for inter-frame prediction of image blocks in the permission level region. The image block to be processed is used to update the historical reference list corresponding to its permission level. In solution 4, after the aforementioned S403, S406 may be specifically implemented as: updating the historical reference list of the permission level area to which the image block to be processed belongs according to the prediction reference information of the image block to be processed. Solution 5: Different historical reference lists are constructed for some permission level areas. In solution 5, a historical reference list is configured for a part of the permission level region, and the historical reference list is used for inter-frame prediction of image blocks in the permission level region. The image block to be processed is used to update the historical reference list corresponding to its permission level. In scheme 5, after the aforementioned S403, S406 can be specifically implemented as follows: if the permission level region where the image block to be processed is located is configured with a historical reference list, the historical reference list of the permission level region to which the image block to be processed belongs is updated according to the predicted reference information of the image block to be processed. If the permission level region where the image block to be processed is located is not configured with a historical reference list, the historical reference list is constructed or updated according to other schemes. Solution 6: Build and update the historical reference list based on the prediction reference information of the lowest-authority image block. After processing the image block that is not the lowest-authority, update the historical reference list based on the alternative prediction reference information that is allowed to be derived. The alternative prediction reference information allowed to be derived may refer to the prediction reference information of the image block that is supported by the authority level of the user at the decoding end and for which the predicted pixel value has been determined. In a possible implementation manner, the replacement prediction reference information may be default prediction reference information. The default prediction reference information may be pre-configured fixed information, or may be dynamically generated fixed information, which is not limited in the embodiments of the present application. In another possible implementation manner, the replacement prediction reference information may be prediction reference information of a default image block. Among them, the default image block can be a pre-specified image block, and the embodiment of the present application does not limit the specific position of the default image block. Exemplarily, the default image block may be an image block with the lowest permission level. In another possible implementation, the replacement prediction reference information is prediction reference information of an image block whose permission level satisfies the reference condition and is before the image block to be processed in the coding and decoding order. In another possible implementation manner, the replacement prediction reference information is prediction reference information derived from prediction reference information of an image block whose permission level meets the reference condition and is before the image block to be processed in the coding and decoding order. In Scheme 6, after the aforementioned S403, S406 can be specifically implemented as follows: if the image block to be processed is of the lowest authority level, the historical reference list is updated according to the predicted reference information of the image block to be processed; if the authority level of the image block to be processed is not the lowest authority level, the historical reference list is updated according to the alternative predicted reference information allowed to be exported. Solution 7: If the authority of the image block to be processed is higher than the authority of the previous area, If the authority of the image block to be processed is lower than that of the previous region, the historical reference list is initialized according to the alternative prediction reference information that is allowed to be derived. It should be noted that the updating history reference list in S406, the embodiment of the present application provides a reference basis for updating the history reference list, and the specific updating process can refer to the video compression coding standard. Exemplarily, the historical intra-frame copy information table may be updated and the historical reference list may be updated with reference to Chapter 9.5.6.7 of the video compression coding standard AVS3. The process may be as follows. Example 1, the reference list is a historical motion information list, which is used for inter-frame prediction and is composed of motion information of a prediction unit. After the decoding of the current prediction unit is completed, if one of the following conditions is met, the operation of updating the historical motion information list is not performed. Condition 1: The current prediction unit is an affine prediction unit or an angle-weighted prediction unit. Condition 2: The coding unit subtype of the current coding unit is 'P_Skip_Mvap' or 'P_Direct_Mvap' or 'B_Skip_Mvap' or 'B_Direct_Mvap'. Condition three: the coding unit subtype of the current coding unit is 'P_Skip_Etmvp' or 'P_Direct_Etmvp' or 'B_Skip_Etmvp' or 'B_Direct_Etmvp'. Condition 4: The coding unit subtype of the current coding unit is 'P_Skip_SbTemporal' or 'P_Direct_SbTemporal' or 'B_Skip_SbTemporal' or 'B_Direct_SbTemporal'. Condition 5: When NumOfHmvpCand is greater than 0, the historical motion information table HmvpCandList is updated according to the motion information, BgcFlag and BgcIndex of the current prediction block; otherwise, the operation defined in this clause is not performed. Specifically, the method for updating the historical motion information table is as follows: a. Initialize hmvpIndex to 0. b. If CntHmvp is equal to 0, the motion information, BgcFlag and BgcIndex in HmvpCandList[CntHmvp] are respectively equal to the motion information, BgcFlag and BgcIndex of the current prediction unit, and CntHmvp is increased by 1. c. Otherwise, determine whether the motion information of the current prediction block is the same as HmvpCandList[hmvpIndex]. If the motion information is the same, execute step d), otherwise, add 1 to hmvpIndex; if hmvpIndex is less than CntHmvp, execute step c); otherwise, execute step d). d. If hmvpIndex is less than CntHmvp, then: i. From hmvpIndex to CntHmvp-1, let HmvpCandList[i] be equal to HmvpCandList[i+1]; the motion information, BgcFlag and BgcIndex in HmvpCandList[CntHmvp-1] are equal to the motion information, BgcFlag and BgcIndex of the current prediction unit respectively. e. If hmvpIndex is equal to CntHmvp and CntHmvp is equal to NumOfHmvpCand, then: i ranges from 0 to CntHmvp-1, let HmvpCandList[i] be equal to HmvpCandList[i+1]; the motion information, BgcFlag and BgcIndex in HmvpCandList[CntHmvp-1] are respectively equal to the motion information, BgcFlag and BgcIndex of the current prediction unit. f. If hmvpIndex is equal to CntHmvp and CntHmvp is less than NumOfHmvpCand, the motion information, BgcFlag and BgcIndex in HmvpCandList[CntHmvp] are respectively equal to the motion information, BgcFlag and BgcIndex of the current prediction unit, and CntHmvp is increased by 1. Example 2: The reference list is a historical intra copy information list, which is used for block copy intra prediction or string copy intra prediction and consists of intra copy information. The historical intra-frame copy information in the historical intra-frame copy information table is recorded as IntraHmvpCandList[X], including a displacement vector intraMvCandX, a position (xCandX, yCandX), a size sizeCandX and a repetition number cntCandX. Let intraCur be the intra copy information of the current block, including displacement vector intraMvCur, position (xCur, yCur), size sizeCur and number of repetitions cntCur. The method for updating the historical intra copy information table can be: a) Initialize both X and cntCur to 0. b) If CntIntraHmvp is equal to 0, IntraHmvpCandList[CntIntraHmvp] is the intra-frame prediction motion information of the current prediction unit, CntIntraHmvp is increased by 1, and the update process of this item is ended. c) Otherwise, determine whether the intra prediction motion information of the current prediction block is the same as IntraHmvpCandList[X] according to whether intraMvCur and intraMvCandX are equal. 1) If intraMvCur and intraMvCandX are the same, execute step d); otherwise, increase X by 1. 2) If X is less than CntIntraHmvp, execute step c); otherwise, execute step e). d) cntCur is equal to the value of cntCandX plus 1. If sizeCur is less than sizeCandX, then xCur, yCur, and sizeCur are equal to xCandx, yCandx, and sizeCandX, respectively. e) If X is less than CntIntraHmvp, then: 1) i from X to CntIntraHmvp-1, let IntraHmvpCandList[i] equal to IntraHmvpCandList[i+1]; 2) IntraHmvpCandList[CntIntraHmvp-1] is equal to the intra-frame prediction motion information of the current prediction unit. f) Otherwise, if X is equal to CntIntraHmvp and CntIntraHmvp is equal to NumOfIntraHmvpCand, then: 1) i ranges from 0 to CntIntraHmvp-1, and IntraHmvpCandList[i] is equal to IntraHmvpCandList[i+1]; 2) IntraHmvpCandList[CntIntraHmvp-1] is equal to the intra prediction motion information of the current prediction unit. Otherwise, if X is equal to CntIntraHmvp and CntIntraHmvp is less than NumOfIntraHmvpCand, then IntraHmvpCandList[CntIntraHmvp] is equal to the intra prediction motion information of the current prediction unit, CntIntraHmvp increases by 1. Example 3, the reference list is a historical point prediction information list, which is used in a non-ordinary string mode and is composed of point prediction information lists of prediction units. After completing the decoding of the current coding unit, if the current coding unit adopts the string copy intra-frame prediction non-ordinary string sub-mode and (IscNumOfNewPv+IscNumofReusedPv) is not equal to 0, the historical point prediction information table PrevPpInfoList is updated according to the point prediction information table PpInfoList of the current coding unit, and the lists PrevFopYonly, PrevEvsDpbReactivatedYonly, PrevCompLumaFreqOccurPos and PrevEvsDpbIndex are updated; otherwise, the operations defined in this article are not performed. Let PrevPvBufSize be equal to the total number of point vectors in the historical point prediction information table, PvBufSize be equal to the total number of point vectors in the point prediction information table of the current coding unit, tmpPvBuf[i], tmpFlag[i], tmpEvsDpbIndex[i], tmpEvsDpbReactivatedYonly[i] and tmpCompLumaFreqOccurPos[i] (i=0-27) are temporary buffers for point prediction information, and the steps for updating the historical point prediction information table in the string copy prediction mode can be: tmpIndex = 0; for(k=0;k<PrevPvBufSize;k++){ if(PrevPpInfoList[k][0]!=-1&&PrevPpInfoList[k][1]!=-1){ tmpPvBuf[tmpIndex][0]=PrevPpInfoList[k][0] tmpPvBuf[tmpIndex][1]=PrevPpInfoList[k][1] tmpFlag[tmpIndex]=PrevFopYonly[k] tmpEvsDpbIndex[tmpIndex]=PrevEvsDpbIndex[k] tmpEvsDpbReactivatedOnly[tmpIndex]=PrevEvsDpbReactivatedOnly[k] tmpCompLumaFreqOccurPos[tmpIndex]=PrevCompLumaFreqOccurPos[k] tmpIndex++ } } PrevPvBufSize=Min(28,PvNum+tmpIndex) for(k=0;k<PrevPvBufSize;k++){ if(k<PvBufSize){ PrevPpInfoList[k][0]=PpInfoList[k][0] PrevPpInfoList[k][1]=PpInfoList[k][1] PrevFopYonly[k]=FopYonly[k] PrevEvsDpbIndex[k]=EvsDpbIndex[k] PrevCompLumaFreqOccurPos[k]=CompLumaFreqOccurPos[k] PrevEvsDpbReactivatedYonly[k]=EvsDpbReactivatedYonly[k] } else{ PrevPpInfoList[k][0]=tmpPvBuf[k-PvNum][0] PrevPpInfoList[k][1]=tmpPvBuf[k-PvNum][1] PrevFopYonly[k]=tmpFlag[k-PvNum] PrevEvsDpbIndex[k]=tmpEvsDpbIndex[k-PvNum] PrevCompLumaFreqOccurPos[k]=tmpCompLumaFreqOccurPos[k-PvNum] PrevEvsDpbReactivatedYonly[k]=tmpEvsDpbReactivatedYonly[k-PvNum] } } The point vectors used by the current coding unit are stored in the point prediction information table PpInfoList. The point vectors in PpInfoList consist of two parts, one part comes from the historical point prediction information table PrevPpInfoList

[0028] [2], the number of point vectors in the historical point prediction information table should not be greater than 28; the other part is the point vectors newly appearing in the current coding unit. If the current coding unit uses a normal string sub-mode, the sum of the number of matching strings, the number of incomplete matching strings containing at least one matching sample, the number of unmatched samples, and IscPartNumSplit should be less than or equal to one quarter of the number of samples in the current coding unit; otherwise, if the current coding unit uses a non-normal string sub-mode, the sum of the number of equivalent strings, the number of unit basis vector strings, the number of unmatched samples, and IscPartNumSplit should be less than or equal to one quarter of the number of samples in the current coding unit. Further, after S403, the method provided in the embodiment of the present application derives spatial motion information. Deriving spatial motion information refers to using the motion information of the surrounding image blocks adjacent to the image block to be processed to determine the motion information of the current image block to be processed. In the intra-frame prediction and inter-frame prediction P frame and B frame, by deriving spatial motion information, the motion information of the surrounding image blocks adjacent to the image block to be processed is used to determine the motion information of the current image block to be processed. As shown in FIG. 5 , the method provided in the embodiment of the present application may further include S407. S407: Export airspace movement information. Specifically, the specific implementation of deriving spatial motion information provided in the embodiments of the present application may include but is not limited to any one of the following schemes. Solution a: If the permission level of the adjacent spatial domain image block used does not meet the reference condition, mark the adjacent spatial domain image The block does not exist. That is, the image block to be processed does not have an adjacent spatial domain image block from which spatial domain motion information can be derived. Solution b: If the permission level of the adjacent image block does not meet the reference condition, the spatial domain prediction information of the image block to be processed is obtained by parsing the bitstream. Solution c: if the permission level of the used adjacent spatial domain image block does not meet the reference condition, the spatial domain prediction information of the image block to be processed is derived according to the alternative spatial domain prediction information of the adjacent image block that is allowed to be derived. The alternative spatial prediction information of the adjacent image blocks that is allowed to be derived may refer to the spatial prediction information of the image blocks that are supported by the authority level of the decoding end user and for which the predicted pixel values ​​have been determined. In one possible implementation, the airspace prediction information is replaced with the default airspace prediction information. Among them, the default airspace prediction information can be pre-configured fixed information, or can be dynamically generated fixed information, which is not limited in the embodiments of the present application. In another possible implementation manner, the default spatial domain prediction information may be the spatial domain prediction information of a default image block. In a possible implementation, the replacement spatial prediction information is spatial prediction information derived from spatial prediction information of an image block whose permission level meets a reference condition before the image block to be processed in the encoding and decoding order. It should be noted that, regarding the export of spatial prediction information in S407, the embodiment of the present application provides a reference basis for exporting the spatial prediction information. For the specific export process, reference may be made to the video compression coding standard. Exemplarily, the spatial motion information derivation method in Chapter 9.5.7.8.3 of the video compression coding standard AVS3 may be referred to to derive the spatial prediction information. The process may be as follows. Example 1: P-image spatial motion information export method. The motion information, BgcFlag and BgcIndex export method are as follows: a) If the number of prediction blocks with a prediction reference mode of 'PRED_List0' among the six adjacent luminance prediction blocks F, G, C, A, B, and D of the luminance prediction block of the current prediction unit (the spatial position relationship of the adjacent blocks is shown in FIG8 ) is greater than or equal to 1, the adjacent luminance prediction blocks are scanned in the order of F, G, C, A, B, and D to obtain the first scanned prediction block with a prediction reference mode of 'PRED_List0', and the L0 motion vector and L0 reference index of the spatial motion information storage unit of the prediction block are used as the L0 motion vector mvE0 and L0 reference index refIndexL0 of the current prediction unit, respectively. b) Otherwise, the L0 motion vector mvE0 of the current prediction unit is a zero vector, and the value of the L0 reference index refIndexL0 of the current prediction unit is equal to 0; c) The value of interPredRefMode is equal to 'PRED_List0', the value of refIndexL1 is equal to -1, mvE1 is the zero vector, and the values ​​of BgcFlag and BgcIndex are both set to 0. Example 2, B picture spatial domain motion information derivation method 1, motion information, BgcFlag and BgcIndex derivation method 1 is as follows: a) If the number of prediction blocks with a prediction reference mode of 'PRED_List01' among the six adjacent luminance prediction blocks F, G, C, A, B, and D of the luminance prediction block of the current prediction unit is greater than or equal to 1, the adjacent luminance prediction blocks are scanned in the order of F, G, C, A, B, and D to obtain the first scanned prediction block with a prediction reference mode of 'PRED_List01', and the L0 motion vector and L1 motion vector of the spatial motion information storage unit of the prediction block are used as the L0 motion vector mvE0 and the L1 motion vector mvE1 of the current prediction unit, respectively, and the The L0 reference index and L1 reference index of the spatial motion information storage unit are used as the L0 reference index refIndexL0 and L1 reference index refIndexL1 of the current prediction unit, respectively. At the same time, the BgcFlag and BgcIndex of the spatial motion information storage unit are recorded as BgcFlagX and BgcIndexX, and the values ​​of BgcFlag and BgcIndex of the current prediction unit are (BgcFlagX&&!InterPcFlag) and (BgcIndexX&&!InterPcFlag), respectively. b) Otherwise, if the number of prediction blocks with a prediction reference mode of 'PRED_List0' among the six adjacent brightness prediction blocks F, G, C, A, B, and D of the brightness prediction block of the current prediction unit is greater than or equal to 1, and the number of prediction blocks with a prediction reference mode of 'PRED_List1' is greater than or equal to 1, then the adjacent brightness prediction blocks are scanned in the order of F, G, C, A, B, and D to obtain the first scanned prediction block with a prediction reference mode of 'PRED_List0' and the first scanned prediction block with a prediction reference mode of 'PRED_List1', and The L0 motion vector and L0 motion index of the spatial motion information storage unit of the prediction block whose prediction reference mode is 'PRED_List0' are used as the L0 motion vector mvE0 and L0 motion index refIndexL0 of the current prediction unit; the L1 motion vector and L1 reference index of the spatial motion information storage unit of the prediction block whose prediction reference mode is 'PRED_List1' are used as the L1 motion vector mvE1 and L1 reference index refIndexL1 of the current prediction unit, and the BgcFlag and BgcIndex of the current prediction unit are both set to 0; c) Otherwise, the L0 motion vector mvE0 and the L1 motion vector mvE1 of the current prediction unit are both zero vectors, and the values ​​of the L0 reference index refIndexL0 and the L1 reference index refIndexL1 of the current prediction unit are both equal to 0, and the BgcFlag and BgcIndex of the current prediction unit are both set to 0; d) The value of interPredRefMode is equal to 'PRED_List01'. Example 3, B picture spatial domain motion information derivation method 2, motion information, BgcFlag and BgcIndex derivation method 2 is as follows: a) If the number of prediction blocks with prediction reference mode 'PRED_List1' among the adjacent brightness prediction blocks F, G, C, A, B, and D of the brightness prediction block of the current prediction unit is greater than or equal to 1, then the adjacent brightness prediction blocks are scanned in the order of F, G, C, A, B, and D to obtain the first scanned prediction reference mode The prediction block of 'PRED_List1' uses the L1 motion vector and L1 reference index of the spatial motion information storage unit of the prediction block as the L1 motion vector mvE1 and L1 reference index refIndexL1 of the current prediction unit; b) Otherwise, if the number of prediction blocks with a prediction reference mode of 'PRED_List01' among the six adjacent luminance prediction blocks F, G, C, A, B, and D of the luminance prediction block of the current prediction unit is greater than or equal to 1, the adjacent luminance prediction blocks are scanned in the order of D, B, A, C, G, and F to obtain the first scanned prediction block with a prediction reference mode of 'PRED_List01', and the L1 motion vector and L1 reference index of the spatial motion information storage unit of the prediction block are used as the L1 motion vector mvE1 and L1 reference index refIndexL1 of the current prediction unit; c) Otherwise, the L1 motion vector mvE1 of the current prediction unit is a zero vector, and the value of the L1 reference index refIndexL1 of the current prediction unit is equal to 0; d) The value of interPredRefMode is equal to 'PRED_List1', the value of refIndexL0 is equal to -1, mvE0 is the zero vector, and the values ​​of BgcFlag and BgcIndex are both set to 0. Example 4: B-image spatial domain motion information derivation method 3: The motion information, BgcFlag and BgcIndex derivation method is as follows: a) If the number of prediction blocks with a prediction reference mode of 'PRED_List0' among the six adjacent luminance prediction blocks F, G, C, A, B, and D of the luminance prediction block of the current prediction unit is greater than or equal to 1, the adjacent luminance prediction blocks are scanned in the order of F, G, C, A, B, and D to obtain the first scanned prediction block with a prediction reference mode of 'PRED_List0', and the L0 motion vector and L0 reference index of the spatial motion information storage unit of the prediction block are used as the L0 motion vector mvE0 and L0 reference index refIndexL0 of the current prediction unit; b) Otherwise, if the number of prediction blocks with a prediction reference mode of 'PRED_List01' among the six adjacent luminance prediction blocks F, G, C, A, B, and D of the luminance prediction block of the current prediction unit is greater than or equal to 1, the adjacent luminance prediction blocks are scanned in the order of D, B, A, C, G, and F to obtain the first scanned prediction block with a prediction reference mode of 'PRED_List01', and the L0 motion vector and L0 reference index of the spatial motion information storage unit of the prediction block are used as the L0 motion vector mvE0 and L0 reference index refIndexL0 of the current prediction unit; c) Otherwise, the L0 motion vector mvE0 of the current prediction unit is a zero vector, and the value of the L0 reference index refIndexL0 of the current prediction unit is equal to 0; d) The value of interPredRefMode is equal to 'PRED_List0', the value of refIndexL1 is equal to -1, mvE1 is the zero vector, and the values ​​of BgcFlag and BgcIndex are both set to 0. The solution provided in this application is described below by way of specific examples. Example 1: In intra-frame prediction, there are 33 intra-frame prediction modes in the second version of the audio and video coding standard (AVS2), including 30 angle modes and 3 special modes, using 2 most probable modes (MPM) encoding, and the remaining modes use 5-bit fixed-length encoding. To support more refined angle prediction, the third version of the audio and video coding standard (AVS3) expands the angle prediction mode to 62. As shown in Figure 6, the schematic diagram of the intra-frame prediction mode, where the solid line is the original angle prediction mode and the dotted line is the newly added angle mode. The original angle mode number remains unchanged, and the newly added angle mode number is 34 to 65. When the authority level of the corresponding reference pixel in a certain prediction direction is higher, when other low-authority level areas refer to this direction for prediction, it is prohibited to refer to or use the allowed derived alternative value as a reference for prediction. Example 2: The MPM list is derived using the spatial information, and the current block prediction mode can be derived based on the MPM list. The prediction modes of the left / upper adjacent blocks are stored in the MPM list. FIG7 illustrates the positional relationship between the left / upper adjacent blocks and the current image block. If the left / upper adjacent blocks do not exist or are equal, one or two fixed modes are used to fill the list. If the authority level of the adjacent blocks of the current image block is higher than or not equal to the authority level of the current image block, when constructing the spatial information export, it is prohibited to derive the prediction module of the current image block based on the prediction mode of the left / upper adjacent blocks, or, the prediction module of the current image block is derived based on the prediction module of the alternative image block of the left / upper adjacent blocks. Example 3: In the intra reference pixel filtering (IRPF) scenario, the design idea of ​​intra reference pixel filtering in the second stage of AVS3 is: determine a group (including 2) of candidate filters according to the area of ​​the block where the current pixel is located. When the area is less than or equal to Thd_Area = 64 luminance pixels, select the first group of candidate filters; otherwise, select the second group of candidate filters. Further, according to the position P (P 0) of the current pixel in the current block, if P is less than the Nth row or Nth column (counting starts from the 0th row and the 0th column), select the first candidate filter in the determined candidate filter group; otherwise, select the second one. Among them, the first group of filters is {f3, f2}, the second group of filters is {f2, f1}, the brightness component N=1 (i.e. the first filter in the group is selected for the first row and first column of pixels, and the second filter is selected for the remaining pixels), and the chrominance component N=2 (i.e. the first filter in the group is selected for the first and second rows and the first and second columns of pixels at the bottom, and the second filter is selected for the remaining pixels). The above f1, f2, f3, and f4 are four different groups of filters. When some pixels in the intra-frame reference pixels have an authority level higher than or not equal to the authority level of the current image block prediction block, it is prohibited to refer to or use the allowed derived alternative value as a reference for prediction. Example 4: In the intra prediction filter (IPF) scenario, the prediction filter can effectively enhance the spatial correlation, thereby improving the accuracy of intra prediction. IPF uses the reference pixels in the URB for intra prediction. The IPF filters are divided into three types: horizontal 2-tap filter (1), vertical 2-tap filter (2) and 3-tap filter (3) for filtering in both horizontal and vertical directions. When the reference pixel authority level corresponding to different filters is higher than or not equal to the authority of the current image block during filtering, the reference is prohibited or the reference is allowed to be derived as an alternative value. Example 5: The solution of the present application is applied in a two step cross-component prediction code (TSCPM) and an extended prediction from multiple cross-components (EPMC). TSCPM is an inter-component prediction technology that removes inter-component redundancy by exploring the linear relationship between different components. TSCPM is performed in two steps: first, a temporary prediction block of the same size is generated using the co-located luma block through parameters α and β, and then down-sampling is performed in the second step to obtain the predicted value of the chrominance component. First, according to the availability of adjacent block pixels, we divide them into three cases to get four available pixel pairs. We calculate α and β through the four available pixel pairs. After getting α and β, we reconstruct the pixels through brightness to get the chromaticity prediction value according to the linear relationship between brightness and chromaticity. Therefore, when obtaining available pixels, we need to consider the permission level of the pixel. When the permission level of the pixel is higher than or equal to the permission level of the current block, we can mark the pixel as unavailable or use other pixels instead. When marked as unavailable, the pixel value is as follows. When selecting 4 pairs of available pixels, the availability of the upper pixels and the left pixels needs to be considered, which can be divided into the following 3 cases. Case A: If the pixels immediately above and immediately to the left of the current block are both “available”, then two pixel pairs are selected from the upper side and two pixel pairs are selected from the left side. Case B: If only the upper side of the current block is available, the four pixel pairs are all selected from the upper side, and the selected position widths are: 0 / 4, 1 / 4, 2 / 4, 3 / 4. Case C: If only left pixels are available in the current block, the four pixel pairs are all selected from the left side, and the selected positions are: 0 / 4, 1 / 4, 2 / 4, 3 / 4 of the height. For the above situation A, enhanced TSCPM proposes two enhanced modes, namely TSCPM_T and TSCPM_L: One mode: 4 pixel pairs only come from the top side (TSCPM_T). Another mode: 4 pixel pairs only come from the left side (TSCPM_L). Example 6: The history based motion vector prediction (HMVP) technology copies 8 motion information candidates from the previous coding block to the first input first output (FIFO), and the FIFO is continuously updated in a first-in first-out manner. If the motion candidate in the FIFO is the same as the motion information just encoded, the duplicate candidate will be removed first, and the motion information of the current coding unit will be added to the end of the FIFO. If the motion information of the current coding unit is different from the motion information of any candidate in the FIFO, the first candidate in the FIFO will be removed, and the latest motion information will be added to the end of the FIFO to ensure that the 8 latest motion candidates are always retained in the FIFO. If the permission level of the current coding unit (the image block to be processed) is not the lowest permission level, the available options of the candidate list are not to update the list, or to construct a different candidate list for each permission level. Example 7: The candidate motion vector list of angular weighted prediction (AWP) is constructed by the motion vectors of surrounding blocks (spatial neighboring blocks). First, the reference weight values ​​of the surrounding positions (whole pixel positions and sub-pixel positions) of the current block are set, and then the weight value corresponding to each pixel position is obtained by the angle prediction method, and then the weights of two different inter-frame prediction values ​​are weighted by the obtained weights. The reference weight configuration is a distribution function of the reference weight value obtained according to the reference weight index value, and a non-strictly monotonically increasing function is assigned with the 8-equally divided point position of the reference weight effective length as the reference point, where the reference weight effective length is calculated by the predicted angle and the current block size. The angle is divided into 4 partitions, and the formula for deriving pixel-by-pixel weights is slightly different depending on the area where the angle is located. The block size of the current block is M×N, where M is width, N is height, X is log2 (absolute value of the slope of the weight prediction angle), and Y is the weight prediction position. 1) Taking angle 0 and angle 1 located in angle partition 0 as an example, the derivation process is as follows: Calculate the reference weight valid length ValidLenth, ValidLenth=(N+(M>>X))<<1. Set the reference weight value ReferenceWeights[x], where the value range of x is 0 to ValidLength-1. FirstPos=(ValidLength>>1)-6+Y*((ValidLength-1)>>3) ReferenceWeights[x]=Clip3(0, 8, x-FirstPos) Derive the weight SampleWeight[x][y] pixel by pixel. SampleWeight[x][y]=ReferenceWeights[(y<<1)+((x<<1)>>X)] 2) Chroma weight is derived as: The chroma weight is derived by directly taking the upper left corner position of the corresponding 2×2 brightness weight, and the block size of the current block is M×N. Where M is the width and N is the height, the value range of x is 0 to (M / 2-1); the value range of y is 0 to (N / 2-1). SampleWeightChroma[x][y]=SampleWeight[x>>1][y>>1]. The motion vector storage scheme of the angle weighted mode is related to the angle partition. The block size of the current block is M×N, where M is the width, N is the height, X is log2 (the absolute value of the weighted prediction angle slope), and Y is the weighted prediction position. Taking angle 0 and angle 1 in angle partition 0 as an example, the motion vector storage scheme is: Calculate the reference weight valid length ValidLenth, ValidLenth = (N + (M>>X)) <<1 For each 4×4 block of the current block, record its center position as (x, y). FirstPos=(ValidLength>>1)-6+Y*((ValidLength-1)>>3). If (y<<1)+((x<<1)>>X) is greater than or equal to FirstPos, the first motion information is stored; otherwise, the second motion information is stored. Angle weighted prediction requires two unidirectional motion vectors for weighted prediction. The unidirectional motion vector is selected from the unidirectional candidate motion vector list according to the index in the bitstream. The candidate motion vector list is constructed by the motion vectors of the surrounding blocks. The surrounding blocks used are shown in Figure 8. Each block is given a sequence number in advance. The specific process of constructing the candidate motion vector list is as follows. Add them to the list in the order of T, F, G, C, A, B, and D and check for duplicates (worst case: 18 one-way checks); when the neighboring block authority level is higher than or not equal to the current image block authority level, when constructing the candidate motion vector of the current block, the neighboring block information is marked as unavailable, or the default value information is used to replace the neighboring block information to construct the list. Then, when constructing the list, it is constructed according to the following scheme. If the motion information of the T time domain block L0 is available, the motion information of L0 is used for scaling to obtain the motion information; if the motion information of the time domain block L0 is not available, the motion information of the time domain block L1 is used for scaling to obtain the motion information. For the spatial domain block, if the current block motion information is unidirectional, directly extract the unidirectional motion information and check for duplicates; if the current block motion information is bidirectional, cut it to unidirectional motion information according to the parity of the number and check for duplicates. If the list is not full, perform up to 4 scaling schemes based on the first motion information in the unidirectional and bidirectional lists. It should be noted that the above examples are only used to illustrate the solution provided by the present application and do not constitute a limitation on the application scenarios of the solution of the present application. 9 is a schematic diagram of the structure of an image coding and decoding device 90 provided in an embodiment of the present application. The image coding and decoding device 90 includes: a determination module 901 and a processing module 902. The determination module 901 is used to determine the prediction mode of the image block to be processed and the authority level of the image block to be processed. Exemplarily, the determination module 901 can be used to support the image coding and decoding device 90 to perform the process of S401 in FIG. 4 or FIG. 5 . As a possible implementation, the determination module 901 may also be used to determine the first reference image block of the image block to be processed according to the prediction mode of the image block to be processed. Exemplarily, the determination module 901 may be used to support the image coding and decoding device 90 to perform the process of S402 in FIG. 4 or FIG. 5 . As a possible implementation, the determination module 901 can also be used to determine the target reference mode of the image block to be processed if the permission level of the first reference image block does not meet the reference condition. The target reference mode includes: prohibiting the use of the first reference image block to determine the prediction block of the image block to be processed, or using the second reference image block that is allowed to be derived to determine the prediction block of the image block to be processed. Exemplarily, the determination module 901 can be used to support the image encoding and decoding device 90 to perform the process of S405 in Figure 5. The processing module 902 is used to determine if the permission level of the first reference image block does not meet the reference condition, prohibit the use of the first reference image block to determine the prediction block of the image block to be processed, or use the second reference image block that is allowed to be derived to determine the prediction block of the image block to be processed. Exemplarily, the processing module 902 can be used to support the image encoding and decoding device 90 to perform the process of S403 in Figure 4 or Figure 5. As a possible implementation, the processing module 902 may also be used to determine the prediction block of the image block to be processed using the first reference image block if the permission level of the first reference image block meets the reference condition. Exemplarily, the processing module 902 may be used to support the image encoding and decoding device 90 to perform the process of S404 in FIG. 5 . Furthermore, the processing module 902 may also be used to update the historical reference list. Exemplarily, the processing module 902 may be used to support the image coding and decoding apparatus 90 to perform the process of S406 in FIG. 5 . As a possible implementation method, the processing module 902 is also used to: if the image block to be processed is of the lowest authority level, update the historical reference list according to the predicted reference information of the image block to be processed; if the image block to be processed is not of the lowest authority level, prohibit updating the historical reference list according to the predicted reference information of the image block to be processed; the historical reference list is used to indicate the motion information of the predicted reference information of the processed image block; the predicted reference information of the image block is used to indicate the prediction process of the image block to be processed; the non-lowest authority level is one or more. As another possible implementation method, the processing module 902 is also used to: if the image block to be processed is of the lowest authority level, update the historical reference list according to the predicted reference information of the image block to be processed; if the authority level of the image block to be processed is not the lowest authority level, update the historical reference list according to the alternative predicted reference information allowed to be exported. As another possible implementation method, the processing module 902 is also used to: if the image block to be processed is of the lowest authority level, update the historical reference list according to the predicted reference information of the image block to be processed; if the authority level of the image block to be processed is not the lowest authority level, update the temporary historical reference list corresponding to the authority level of the image block to be processed according to the predicted reference information of the image block to be processed. As another possible implementation, the processing module 902 is further used to: if the image block to be processed is of the lowest authority level and the historical reference list has not been updated by the predicted reference information of the image block of a non-lowest authority level, update the historical reference list according to the predicted reference information of the image block to be processed; if the authority level of the image block to be processed is of the lowest authority level and the historical reference list is updated by the predicted reference information of the image block of a non-lowest authority level, reconstruct the historical reference list according to the predicted reference information of the image block to be processed; if the image block to be processed is of a non-lowest authority level, Prediction reference information of the image block, update the historical reference list. As another possible implementation, the processing module 902 is further used to: update the historical reference list of the permission level area to which the image block to be processed belongs according to the predicted reference information of the image block to be processed; different historical reference lists are constructed for areas with different permission levels. As another possible implementation method, the processing module 902 is also used to: if the permission level of the image block to be processed is higher than the permission level of the previous region, update the historical reference list according to the predicted reference information of the image block to be processed; if the permission level of the image block to be processed is lower than the permission level of the previous region, initialize the historical reference list according to the alternative predicted reference information. Furthermore, the processing module 902 may also be used to derive spatial motion information. Exemplarily, the processing module 902 may be used to support the image coding and decoding apparatus 90 to perform the process of S407 in FIG. 5 . As a possible implementation manner, the processing module 902 is further configured to: if the permission level of the used adjacent spatial domain image block does not meet the reference condition, mark the adjacent spatial domain image block as non-existent. As a possible implementation manner, the processing module 902 is further configured to: if the permission level of the adjacent image block does not meet the reference condition, parse and obtain the spatial domain prediction information of the image block to be processed from the bitstream. As a possible implementation method, the processing module 902 is also used to: if the permission level of the used adjacent spatial image block does not meet the reference condition, export the spatial prediction information of the image block to be processed according to the alternative spatial prediction information of the adjacent image block allowed to be exported. In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function in accordance with the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instruction can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) mode or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a magnetic disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)). Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, or all or part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk, and other media that can store program codes. The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An image encoding and decoding method, It is characterized in that The method comprises: Determining a prediction mode of an image block to be processed and an authority level of the image block to be processed; Determining, according to the prediction mode, a first reference image block of the image block to be processed; If the permission level of the first reference image block does not meet the reference condition, it is prohibited to use the first reference image block to determine the prediction block of the image block to be processed or to use the second reference image block that is allowed to be derived to determine the prediction block of the image block to be processed; wherein the reference condition includes that the permission level is lower than or equal to the permission level of the image block to be processed, or the permission level is different from the permission level of the image block to be processed, or the permission level is equal to the minimum permission level, or there is no pixel block with a higher permission level than the image block to be processed within a distance of s pixels above, below, left, and right, and s is greater than or equal to 1.

2. The method according to claim 1, It is characterized in that The second reference image block is an image block determined by an image block whose permission level satisfies the reference condition among image blocks adjacent to the first reference image block; or, The second reference image block is a predicted pixel value obtained by decoding the first reference image block using the lowest user authority level of the decoding end; or, The second reference image block is an image block with a default pixel value.

3. The method according to claim 1, It is characterized in that The method further comprises: If the image block to be processed is of the lowest authority level, the historical reference list is updated according to the predicted reference information of the image block to be processed; if the image block to be processed is of a non-lowest authority level, it is prohibited to update the historical reference list according to the predicted reference information of the image block to be processed; the historical reference list is used to indicate the motion information of the predicted reference information of the processed image block; the predicted reference information of the image block is used to indicate the prediction process of the image block to be processed; the non-lowest authority level is one or more; or, If the image block to be processed is of the lowest authority level, updating the historical reference list according to the prediction reference information of the image block to be processed; if the authority level of the image block to be processed is not of the lowest authority level, updating the historical reference list according to the alternative prediction reference information allowed to be derived; or, If the image block to be processed is of the lowest authority level, updating the historical reference list according to the predicted reference information of the image block to be processed; if the authority level of the image block to be processed is not the lowest authority level, updating the temporary historical reference list corresponding to the authority level of the image block to be processed according to the predicted reference information of the image block to be processed; or, According to the prediction reference information of the image block to be processed, updating the historical reference list of the permission level area to which the image block to be processed belongs; different historical reference lists are constructed for areas with different permission levels; or, If the authority level of the image block to be processed is higher than the authority level of the previous region, the historical reference list is updated according to the predicted reference information of the image block to be processed; if the authority level of the image block to be processed is lower than the authority level of the previous region, the historical reference list is initialized according to the alternative predicted reference information.

4. The method according to claim 3, It is characterized in that The alternative prediction reference information is the default prediction reference information; or, The alternative prediction reference information is the prediction reference information of the default image block; or, The alternative prediction reference information is prediction reference information of an image block whose permission level satisfies the reference condition before the image block to be processed in the coding and decoding order; or, The substitute prediction reference information is prediction reference information derived from prediction reference information of an image block whose authority level satisfies the reference condition and precedes the image block to be processed in the coding and decoding order.

5. The method according to claim 3, It is characterized in that The prediction reference information includes any one of the following information: location information, pattern information or frequency; The historical reference list includes any one of the following lists: a historical motion information table, a historical intra-frame copy information table, or a historical point prediction information table.

6. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: If the permission level of the used adjacent spatial domain image block does not meet the reference condition, mark the adjacent spatial domain image block as not existing; or, If the permission level of the adjacent image block does not meet the reference condition, parse and obtain the spatial domain prediction information of the image block to be processed from the bitstream; or, If the permission level of the used adjacent spatial domain image block does not meet the reference condition, the spatial domain prediction information of the image block to be processed is derived according to the alternative spatial domain prediction information of the adjacent image block that is allowed to be derived.

7. The method according to claim 6, It is characterized in that The alternative airspace prediction information is the default airspace prediction information; or, The alternative spatial prediction information is spatial prediction information derived from the spatial prediction information of an image block whose authority level satisfies the reference condition and precedes the image block to be processed in the coding and decoding order.

8. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: Acquire permission level configuration information of the image frame, wherein the permission level configuration information is used to indicate a correspondence between a region position in the image frame and a permission level; an image block in the region of the position has one or more levels of permission; The permission level corresponding to the position of the image block in the image frame in the permission level configuration information is used as the permission level of the image block.

9. The method according to any one of claims 1 to 5, It is characterized in that When intra-frame prediction filtering, inter-frame prediction filtering, or intra-frame reference pixel filtering is turned on, the first reference image block is a reference image block used during filtering; When the cross-component prediction technology is turned on, when the image block to be processed is an image block in the first channel, the first channel refers to the image blocks in the second channel and / or the third channel to generate a prediction block of the image block in the first channel, and the first reference image block is an image block in the second channel and / or the third channel.

10. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: If the permission level of the first reference image block meets the reference condition, the first reference image block is used to determine a prediction block of the image block to be processed.

11. The method according to any one of claims 1 to 5, It is characterized in that The method further includes: if the permission level of the first reference image block does not meet the reference condition, determining the target reference mode of the image block to be processed; wherein the target reference mode includes: prohibiting the use of the first reference image block to determine the prediction block of the image block to be processed or using the second reference image block allowed to be derived to determine the prediction block of the image block to be processed; the decoding end determines the target reference mode according to the indication information in the bitstream, and the encoding end decides to determine the target reference mode.

12. An image encoding and decoding device, It is characterized in that The device comprises a determination module and a processing module; wherein: The determination module is used to determine the prediction mode of the image block to be processed and the authority level of the image block to be processed; The determination module is further used to: determine a first reference image block of the image block to be processed according to the prediction mode; The processing module is used for: if the permission level of the first reference image block does not meet the reference condition, prohibiting the use of the first reference image block to determine the prediction block of the image block to be processed or using the second reference image block that is allowed to be derived to determine the prediction block of the image block to be processed; wherein the reference condition includes that the permission level is lower than or equal to the permission level of the image block to be processed, or the permission level is different from the permission level of the image block to be processed, or the permission level is equal to the minimum permission level, or there is no pixel block with a higher permission level than the image block to be processed within a distance of s pixels above, below, left, and right, and s is greater than or equal to 1.

13. The device according to claim 12, It is characterized in that The second reference image block is an image block determined by an image block whose permission level satisfies the reference condition among the neighboring image blocks of the first reference image block; or, the second reference image block is a predicted pixel value obtained by decoding the first reference image block using the lowest user permission level of the decoding end; or, the second reference image block is an image block with a default pixel value; The processing module is further used for: if the image block to be processed is of the lowest authority level, updating the historical reference list according to the predicted reference information of the image block to be processed; if the image block to be processed is not of the lowest authority level, prohibiting the updating of the historical reference list according to the predicted reference information of the image block to be processed; the historical reference list is used to indicate the motion information of the predicted reference information of the processed image block; the predicted reference information of the image block is used to indicate the prediction process of the image block to be processed; the non-lowest authority level is one or more; or, the processing module is further used for: if the image block to be processed is of the lowest authority level, updating the historical reference list according to the predicted reference information of the image block to be processed; if the authority level of the image block to be processed is not of the lowest authority level, updating the historical reference list according to the alternative predicted reference information allowed to be derived; or, the processing module is further used for: if the image block to be processed is the lowest authority level, and according to the predicted reference information of the image block to be processed, the historical reference list is updated; if the authority level of the image block to be processed is not the lowest authority level, according to the predicted reference information of the image block to be processed, the temporary historical reference list corresponding to the authority level of the image block to be processed is updated; or, or, the processing module is further used to: update the historical reference list of the authority level area to which the image block to be processed belongs according to the predicted reference information of the image block to be processed; different historical reference lists are constructed for areas with different authority levels; or, the processing module is further used to: if the authority level of the image block to be processed is higher than the authority level of the previous area, update the historical reference list according to the predicted reference information of the image block to be processed; if the authority level of the image block to be processed is lower than the authority level of the previous area, initialize the historical reference list according to the alternative predicted reference information; The alternative prediction reference information is the default prediction reference information; Alternatively, the alternative prediction reference information is a default Prediction reference information of image blocks; Alternatively, the replacement prediction reference information is prediction reference information of an image block whose permission level satisfies the reference condition before the image block to be processed in the coding and decoding order; Alternatively, the replacement prediction reference information is prediction reference information derived from prediction reference information of an image block whose permission level satisfies the reference condition and precedes the image block to be processed in the coding and decoding order; The prediction reference information includes any one of the following information: position information, mode information or frequency; the historical reference list includes any one of the following lists: a historical motion information table, a historical intra-frame copy information table, or a historical point prediction information table; The processing module is further used to: if the permission level of the used adjacent spatial domain image block does not meet the reference condition, mark the adjacent spatial domain image block as non-existent; or, the processing module is further used to: if the permission level of the adjacent image block does not meet the reference condition, parse and obtain the spatial domain prediction information of the image block to be processed from the bitstream; or, the processing module is further used to: if the permission level of the used adjacent spatial domain image block does not meet the reference condition, derive the spatial domain prediction information of the image block to be processed according to the alternative spatial domain prediction information of the adjacent image block that is allowed to be derived; The alternative spatial prediction information is default spatial prediction information; or, the alternative spatial prediction information is spatial prediction information derived from spatial prediction information of an image block whose permission level satisfies the reference condition and precedes the image block to be processed in the coding and decoding order; The determination module is further used to: obtain permission level configuration information of the image frame, wherein the permission level configuration information is used to indicate a corresponding relationship between a region position in the image frame and a permission level; the image block of the position region has one or more levels of permission; Using the permission level corresponding to the position of the image block in the image frame in the permission level configuration information as the permission level of the image block; When intra-frame prediction filtering, inter-frame prediction filtering, or intra-frame reference pixel filtering is turned on, the first reference image block is a reference image block used during filtering; when the cross-component prediction technology is turned on, when the image block to be processed is an image block in a first channel, the first channel refers to image blocks in a second channel and / or a third channel to generate a prediction block of the image block in the first channel, and the first reference image block is an image block in the second channel and / or the third channel; The processing module is further configured to: if the permission level of the first reference image block meets the reference condition, use the first reference image block to determine a prediction block of the image block to be processed; The processing module is further used to: if the permission level of the first reference image block does not meet the reference condition, determine the target reference mode of the image block to be processed; wherein the target reference mode includes: prohibiting the use of the first reference image block to determine the prediction block of the image block to be processed or using the second reference image block allowed to be derived to determine the prediction block of the image block to be processed; the decoding end determines the target reference mode according to the indication information in the bit stream, and the encoding end decides to determine the target reference mode.

14. An encoder, It is characterized in that comprising a processor coupled to a memory; Memory, used to store computer programs or instructions; A processor, configured to execute a computer program or instruction stored in the memory so that the encoder performs the method according to any one of claims 1 to 11.

15. A decoder, It is characterized in that comprising a processor coupled to a memory; Memory, used to store computer programs or instructions; A processor, configured to execute a computer program or instruction stored in the memory so that the decoder performs the method according to any one of claims 1 to 11.

16. A computer-readable storage medium, It is characterized in that The program code comprises a program code, and when it is executed by a computer device, the method according to any one of claims 1 to 11 is performed.