Method and apparatus for encoding / decoding image
By constructing candidate groups for sub-block divisions and guiding intra-screen prediction modes, the method addresses inefficiencies in video encoding/decoding, enhancing prediction accuracy and efficiency in video processing tasks.
Patent Information
- Application Number
- JP2024109796
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2018-04-01
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2039-04-01
AI Technical Summary
Existing video encoding/decoding methods lack efficiency and accuracy in handling video processing tasks, particularly in intra-screen prediction and block unit division, leading to suboptimal performance and encoding/decoding efficiency.
The method involves constructing candidate groups for sub-block divisions of current blocks, determining the division form, and guiding intra-screen prediction modes based on these divisions to improve prediction accuracy and efficiency.
This approach enhances encoding/decoding performance by improving prediction accuracy and efficiency through intra-screen prediction in sub-block units, leading to more effective video processing.
Smart Images

Figure 2024133662000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a video encoding / decoding method and apparatus. [Background technology]
[0002] With the spread of the Internet and mobile terminals and the development of information and communication technology, multimedia data Therefore, various systems are providing various services by using video prediction. There is a growing need to improve the performance and efficiency of video processing systems to accomplish certain tasks and However, there are not enough research and development results to meet this demand. This is the reality.
[0003] As described above, in the conventional video encoding / decoding method and apparatus, video processing, particularly video encoding, In the current situation, there is a demand for performance improvements in image encoding or video decoding. Summary of the Invention [Problem to be solved by the invention]
[0004] The present invention aims to provide an intra-frame prediction method and device. The present invention aims to provide a method and device for intra-frame prediction in block units. The object of the present invention is to provide a method and device for determining block-based division and coding order. [Means for solving the problem]
[0005] The present invention relates to a method and apparatus for encoding / decoding an image, and a method and apparatus for encoding / decoding an image. Construct a complement group, and assign it to a subblock of the current block based on the candidate group and the candidate index. and determining a division form of the current block unit, inducing an intra prediction mode for the current block unit, The current block is divided into sub-blocks based on the intra-frame prediction mode of the current block and the division form of the sub-blocks. It is possible to perform internal predictions. Effect of the Invention
[0006] According to the present invention, the encoding / decoding performance is improved by intra-picture prediction in sub-block units. According to the present invention, a group of candidates for the division form in subblock units can be obtained. By efficiently configuring the above, the accuracy of prediction can be improved. According to the paper, the coding order of subblocks is adaptively applied to improve the intra prediction. The encoding / decoding efficiency can be improved. [Brief description of the drawings]
[0007] [Figure 1] 1 is a conceptual diagram of a video encoding and decoding system according to an embodiment of the present invention; [Diagram 2] 1 is a block diagram showing the configuration of a video encoding device according to an embodiment of the present invention; [Diagram 3] 1 is a block diagram of a video decoding device according to an embodiment of the present invention; [Figure 4] 4A to 4C are exemplary diagrams showing various division patterns that can be obtained by the block division unit of the present invention; [Diagram 5] 1 is an example diagram illustrating an intra-frame prediction mode according to an embodiment of the present invention; [Figure 6] 1 is an exemplary diagram illustrating a reference pixel configuration used in intra-frame prediction according to an embodiment of the present invention; [Figure 7] 1 is a conceptual diagram showing a current block of intra-screen prediction and blocks adjacent to the current block according to an embodiment of the present invention; [Figure 8] 1 shows various division forms of sub-blocks that can be obtained from a coding block. [Figure 9] 4 is an exemplary diagram of a reference pixel area used based on an intra-frame prediction mode according to an embodiment of the present invention; [Figure 10] 13 illustrates an example of a coding order that can be used in a prediction mode in a diagonal up right direction according to an embodiment of the present invention. [Figure 11] 13 illustrates an example for a coding order that may be had in horizontal mode according to one embodiment of the present invention. [Figure 12] 13 illustrates an example of a coding order that can be used in a diagonal down right direction prediction mode according to an embodiment of the present invention. [Figure 13] 13 illustrates an example for a coding order that may be had in vertical mode according to one embodiment of the present invention. [Figure 14] 13 illustrates an example of a coding order that can be used in a diagonal down left mode according to an embodiment of the present invention. [Figure 15] 11 is a diagram illustrating an example of an encoding order taking into account an intra-frame prediction mode and a division type according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] The present invention relates to a method and apparatus for encoding / decoding an image, and a method and apparatus for encoding / decoding an image. Construct a complement group, and assign it to a subblock of the current block based on the candidate group and the candidate index. and inducing an intra prediction mode in the current block unit. Intra prediction of the current block based on the intra prediction mode of the block and the division form of the sub-blocks. can be accomplished.
[0009] Mode for carrying out the invention.
[0010] The present invention can be modified in various ways and can have various embodiments. The present invention will be described in detail with reference to the accompanying drawings, in which: It is not intended to be limited to the form, and any modifications falling within the spirit and technical scope of the present invention are included. , equivalents or alternatives.
[0011] Terms such as first, second, A, B, etc. may be used to describe various components, The elements should not be limited to the above terms. The above terms should not be used to refer to one element as another element. For example, the first structure is used within the scope of the present invention. The constituent element can be named the second component, and similarly the second component can be named the first component. The term and / or refers to a combination of multiple associated listings or multiple Includes any of the items listed below.
[0012] When an element is referred to as being "coupled" or "connected" to another element, , may be directly connected or connected to other components, It should be understood that there may be additional components between the components. When an element is referred to as being "directly coupled" or "directly connected" to another element, It should be understood that there are no further components in between.
[0013] The terms used in the present invention are merely used to describe specific embodiments and are not intended to limit the scope of the present invention. No limitation is intended. The singular terms "a," "an," and "the" refer to the plural unless the context clearly dictates otherwise. In the present invention, the terms "comprise" and "have" are used in the specification and the appended claims. Specify the presence of a feature, number, step, action, component, part, or combination of these. and may include one or more other features, numbers, steps, operations, components, parts or It should be understood that the above does not preclude the possibility of the presence or addition of such combinations.
[0014] Unless otherwise defined, all terms used herein, including technical or scientific terms, are intended to be understood as meaning the present invention. The same as what is commonly understood by a person having ordinary skill in the art to which the invention pertains Terms as defined in commonly used dictionaries are considered to be of value in the context of the relevant art. Unless otherwise expressly defined in the present invention, the meaning of the term should be interpreted as being consistent with that of the term "ideal." shall not be construed as being excessively formal or formal.
[0015] Usually, one or more depending on the color format of the image. The color format can be used to determine the size of a It consists of one or more pictures having the same size or one or more pictures having different sizes. As an example, in the YCbCr color configuration, 4:4:4, 4:2:2, 4: Supports color formats such as 2:0, monochrome (composed of Y only) For example, YCbCr4:2:0 has one luminance component (Y in this example) and two color components. Here, the color difference component and the luminance component are The aspect ratio can be 1:2. For example, 4:4:4 is horizontal. As in the above example, the color space can be divided into one or more color spaces. If the picture is composed of multiple color spaces, then a division into each color space can be accomplished.
[0016] The image can be of any image type (e.g. picture type, slice type, tile type, etc.) ) can be classified as I, P, B, etc. I image type is the reference picture It can mean a video that is encoded / decoded by itself without using a reference picture, and the P video type means It can mean an image that is encoded / decoded using a texture, but allows only forward prediction. The B-picture type is coded / decoded using reference pictures and allows forward / backward prediction. However, some of the above types may be combined depending on the encoding / decoding settings. It is also possible to support image types with other configurations (combining P and B).
[0017] The various encoding / decoding information generated by the present invention can be explicit or implicit. Implicit processing is possible, where explicit processing is complex regarding the coded information. Selection information indicating one of a number of candidates is given as a sequence, slice, tile, block, sub, or sub-sequence. This can be generated by a block or other means, recorded in a bitstream, and encoded by a decoder. Parses related information in units of the same level as the decoder and restores it to decoded information Here, the implicit process can be understood as the process of decoding the encoding / decoding information. It can be understood that the encoder and decoder process data according to the same process and rules.
[0018] FIG. 1 is a conceptual diagram of a video encoding and decoding system according to an embodiment of the present invention.
[0019] Referring to FIG. 1, a video encoding device 105 and a decoding device 100 are used in a personal computer. PC (Personal Computer), notebook computer, personal Personal Digital Assistant (PDA), mobile Portable Multimedia Player (PMP) ayer), PlayStation Portable (PSP: PlayStation Por table), wireless communication terminal The user terminal is a mobile phone, smartphone, or TV. It can be a server terminal such as an application server or a service server, and can provide various functions. Communication devices such as communication modems for communicating with wired and wireless communication networks, video coding and It stores various programs and data for inter- or intra-prediction for decoding. Memory 120, 125 for storing data, or for executing programs to perform calculations and and processors 110, 115 for controlling the The device may include a
[0020] In addition, the video encoded into a bit stream by the video encoding device 105 is Non-real-time communication is performed using the Internet, short-range wireless communication networks, wireless LAN networks, WiBro networks, or mobile Through a wired or wireless communication network such as a communication network, or through a cable or universal Various communication interfaces such as USB (Universal Serial Bus) The signal is transmitted to the video decoding device 100 via a communication interface. The video can be decoded and restored to video and played back. The video encoded into the bit stream is then transmitted via a computer-readable recording medium. The image data can be transmitted from the image encoding device 105 to the video decoding device 100.
[0021] The video encoding device and the video decoding device may be separate devices. Depending on the implementation, it can be made into one video encoding / decoding device. The configuration of a part of the video encoding device is substantially the same technical element as the configuration of a part of the video decoding device, It is possible for the various components to be embodied in a single system, each of which may include at least the same structure or perform at least the same functions.
[0022] Therefore, in the following detailed explanation of the technical elements and their operating principles, The video decoding device performs the video encoding process performed by the video encoding device. The following description corresponds to a computer device for applying the method to a video coding device. This article will focus on the location.
[0023] The computer device includes a program for implementing the video encoding method and / or the video decoding method. or a memory for storing software modules and a computer program coupled to the memory for executing the programs; and a processor for decoding the encoded data. The encoder and decoder may each be referred to as a decoder.
[0024] FIG. 2 is a block diagram showing the configuration of a video encoding device according to an embodiment of the present invention.
[0025] Referring to FIG. 2, the video encoding device 20 includes a prediction unit 200, a subtraction unit 205, and a conversion unit 21. 0, quantization unit 215, inverse quantization unit 220, inverse transformation unit 225, addition unit 230, filter unit 235, the encoded picture buffer 240 and the entropy encoding unit 245. can be done.
[0026] The prediction unit 200 is a software module, a prediction module. module), and intra-frame prediction for a block to be coded. Intra Prediction or Inter Prediction The prediction unit 200 generates a prediction block by using a current diction. A predicted block can be generated by predicting a current block to be encoded. In other words, the prediction unit 200 predicts the pixel values ( pixel value) is predicted by intra-frame prediction or inter-frame prediction. A predicted block having a predicted pixel value of The prediction unit 200 can generate a prediction signal in an intra-frame prediction mode or an inter-frame prediction mode. The information required to generate the predicted block, such as information about the prediction mode, The prediction mode information is transmitted to the encoding unit so that the encoding unit can encode the prediction mode information. Here, the processing unit for which prediction is performed, the prediction method, and specific contents are determined. The processing unit to be used can be determined by the encoding / decoding settings. For example, the prediction method, The prediction mode and the like are determined in a prediction unit, and the prediction can be performed in a transform unit.
[0027] In the inter-frame prediction unit, the motion prediction method is classified into a moving model and a non-moving motion model. In the case of the translational motion model, prediction is performed by considering only translational motion, and in the case of the non-translational motion model, In the case of Dell, you can move it in parallel, but also rotate it, move it in perspective, and zoom in / out. Prediction can be performed by taking into account movements such as in / out. In the case of a moving motion model, one motion vector may be needed, whereas in the case of a non-moving motion model, In the case of the non-movement motion model, one or more motion vectors may be required. The object is applied to the current block's preset position, such as the top left vertex or top right vertex. The motion vector is used to predict the current block. The position of the region to be predicted can be obtained in units of pixels or subblocks. Depending on the motion model, some of the processes described below can be commonly applied, and some The process can be applied on an individual basis.
[0028] The inter-picture prediction unit includes a reference picture construction unit, a motion estimation unit, a motion compensation unit, a motion information determination unit, and a motion information encoding unit. The reference picture list (L0, L1) contains previously or subsequently coded pictures. A prediction block may be generated from the reference pictures included in the reference picture list. The current image is also composed of reference pictures according to the encoding settings. The image may be included in at least one of the reference picture lists.
[0029] In the inter prediction unit, the reference picture construction unit may include a reference picture interpolation unit, Depending on the accuracy of the pixel, an interpolation process can be performed for a small number of unit pixels. For example, For the second component, an 8-tap DCT-based interpolation filter is applied, and for the chrominance component, a 4- tap A DCT-based interpolation filter can be applied.
[0030] In the inter-frame prediction section, the motion estimation section selects blocks with high correlation with the current block as the reference picture. It is a process of searching by FBMA (Full search-based bl ock matching algorithm), TSS(Three step s The motion compensation unit can use various methods such as the motion estimation method and the motion compensation method. It refers to the process of obtaining a predicted block.
[0031] In the inter prediction unit, the motion information decision unit is an overlay for selecting the optimal motion information of the current block. The motion information can be stored in Skip Mode, Merge Mode, and Merge Mode, Competition Mode, etc. The motion information can be coded by a motion information coding mode. The mode is determined by a motion model. The supported modes can be combined and configured, and skip mode (movement), skip Top mode (non-moving), Merge mode (moving), Merge mode (non-moving), Competition mode (moving ), competition mode (non-mobile) can be examples for this. Depending on the coding setting, A subset of the modes may be included in the candidate set.
[0032] The motion information coding mode is a mode in which the motion information of the current block is coded based on at least one candidate block. It is possible to obtain predicted values of information (motion vectors, reference pictures, prediction directions, etc.), When more than one candidate block is supported, optimal candidate selection information can be generated. The skip mode (no residual signal) and merge mode (with residual signal) use the predicted value as is. It can also be used as the current block's movement information, and in competition mode, the current block's movement information and the predicted value, difference value information may be generated.
[0033] The candidate set for the motion information predictor of the current block is adapted according to the motion information coding mode. The blocks adjacent to the current block (e.g. For example, the left, top, top left, top right, bottom left block, etc.) of the motion information is included in the candidate group. The motion information of temporally adjacent blocks can be included in the candidate set, and the spatial candidates can be A combination of temporal candidates, motion information, etc. may be included in the candidate set.
[0034] The temporally adjacent block is a block in another image corresponding to the current block. Including the block, the left side, right side, upper side, lower side, upper left side, upper right side, lower left side The combination motion information may refer to a block located on the left side, the right bottom block, etc. The information is derived from the motion information of spatially adjacent blocks and the motion information of temporally adjacent blocks. , mean, median, etc.
[0035] There may be a priority order for forming a group of motion information predictor candidates. Therefore, the procedures included in the prediction value candidate group configuration can be determined, and the candidates are selected based on the priority order. If the number of complements (determined by the motion information coding mode) is filled, the candidate group is formed. Here, the motion information of the spatially adjacent blocks, the motion information of the temporally adjacent blocks, The priority is determined in the order of motion information of the selected block, combined motion information of spatial candidates and temporal candidates, and However, other variations are possible.
[0036] For example, among spatially adjacent blocks, the left-top-top-top-bottom-top-top blocks The blocks can be included in the candidate set in the order of the blocks, such as the lower right block. - The candidates may include the middle, right and bottom blocks in that order, etc.
[0037] The subtraction unit 205 subtracts the predicted block from the current block to obtain a residual block. In other words, the subtraction unit 205 can generate the encoded The pixel values of each pixel in the current block to be predicted and the pixel values of each pixel in the predicted block generated by the prediction unit are The difference between the predicted pixel value of the pixel is calculated to obtain a block-shaped residual signal (residual signal). The subtraction unit 205 can generate a residual block that is a signal. The block division unit generates residual blocks by units other than the block units obtained by the block division unit. It can also be achieved.
[0038] The transform unit 210 can transform a signal belonging to the spatial domain into a signal belonging to the frequency domain. The signal obtained by the transformation process is called the transformed coefficient (Transformed Coeff For example, the residual block having the residual signal transmitted from the subtractor is called The input signal can be transformed to obtain a transform block having transform coefficients. The filter is determined by the filter setting and is not limited to the residual signal.
[0039] The transform section performs Hadamard transform on the residual block. , Discrete Sine Transform (DST Based-Transform:Discrete Sine ne Transform), Discrete Cosine Transform (DCT Based-Transform rm:Discrete Cosine Transform) and other transformation techniques However, the present invention is not limited to this, and various conversion techniques that improve and modify this can be used. It can be used.
[0040] At least one of the conversion techniques may be supported, and at least one of the conversion techniques may be Each of the detail conversion techniques may support one detail conversion technique. It may be a transformation technique in which some of the basis vectors are configured to be different in the algorithm.
[0041] For example, in the case of DCT, one or more detailed conversion techniques from DCT-1 to DCT-8 are supported. In the case of DST, one or more detailed conversion techniques from DST-1 to DST-V8 are supported. A group of candidate transformation techniques can be formed by forming a part of the detail transformation techniques. As an example, DCT-2, DCT-8, and DST-7 are included in the candidate group of transformation techniques. The conversion can be accomplished.
[0042] The transformation can be performed horizontally and / or vertically. For example, using the DCT-2 transformation technique. Then, a one-dimensional transformation is performed in the horizontal direction using the DST-7 transformation method, and a one-dimensional transformation is performed in the vertical direction using the DST-7 transformation method. By performing a full 2-dimensional transformation, the pixel values in the spatial domain are converted to the frequency domain. It is possible.
[0043] Can the conversion be performed using a fixed conversion technique? Encoding / Decoding Settings In this case, the conversion technique can be adaptively selected to perform the conversion. In this case, the conversion technique may be selected using either an explicit or implicit method. The conversion technique selection information or conversion technique set selection information to be applied in the horizontal and vertical directions is Information can occur in units such as blocks. If it is implicit, the image type (I / P / B), color components, block size, shape, intra-screen prediction mode, etc. You can define settings, which allow you to select predefined conversion techniques. do.
[0044] In addition, some of the above conversions may be omitted depending on the encoding settings. or implicitly means that one or more of the horizontal / vertical units can be omitted.
[0045] The transform unit also transmits information required to generate a transform block to the encoding unit. It is possible to encode the information in a bitstream, which The decoder then parses the information and performs an inverse conversion. It can be used to a certain extent.
[0046] The quantization unit 215 can quantize the input signal. The signal obtained by this is called the quantized coefficient. For example, a residual block having residual transform coefficients transmitted from a transform unit is quantized to obtain a quantized image. The input signal is encoded using a quantization setting. which is not limited to the residual transform coefficients.
[0047] The quantizer performs dead zone uniform threshold quantization on the transformed residual block. ne Uniform Threshold Quantization), quantization weight Value matrix (Quantization Weighted Matrix) The quantization may be performed using, but is not limited to, a quantization technique, and improvements and modifications of the same may be made. A variety of quantization techniques can be used.
[0048] Depending on the coding settings, the quantization process can be omitted. For example, , the quantization parameter is 0. In other words, the quantization process is omitted (inverse As another example, the compressibility of the image can be improved by quantization depending on the image characteristics. If the quantization function is not available, the quantization process can be omitted. The area in which the quantization process is omitted in the block (M × N) is the entire area or a part of the area (M / 2×N / 2, M×N / 2, M / 2×N, etc.), and the quantization omission selection information is implicit. This can be determined implicitly or explicitly.
[0049] The quantization unit transmits information required for generating a quantization block to the encoding unit and encodes the information. It is possible to encrypt the signal, and then record the information in the bitstream, which can then be decoded. The decoder then parses the information and converts it into an inverse It can be used in the incubation process.
[0050] In the above example, it is assumed that the residual block is transformed and quantized by the transformer and quantizer. As described above, the residual signal is transformed to generate a residual block having transform coefficients, and quantized. The residual signal of the residual block is not converted into a transform coefficient and is not quantized. It can only perform the conversion and quantization processes. This can be determined by the encoder settings.
[0051] The inverse quantization unit 220 inversely quantizes the residual block quantized by the quantization unit 215. That is, the inverse quantization unit 220 inverse quantizes the quantized frequency coefficient sequence to generate a signal having frequency coefficients. A residual block is generated.
[0052] The inverse transform unit 225 inversely transforms the residual block that has been inversely quantized by the inverse quantization unit 220. That is, the inverse transform unit 225 inversely transforms the frequency coefficients of the dequantized residual block to obtain a picture. A residual block having prime values, i.e., a reconstructed residual block, is generated. Here, the inverse transform The conversion unit 225 performs an inverse conversion by using the conversion method used by the conversion unit 210 inversely. can be done.
[0053] The adder 230 receives the predicted block predicted by the prediction unit 200 and the decoded block by the inverse transform unit 225. The current block is restored by adding the original residual block. The restored current block is the reference picture (or reference block) in the coded picture buffer 240; When encoding the block following the current block or other blocks or pictures in the future can be used as a reference picture.
[0054] The filter unit 235 includes a deblocking filter, a SAO (Sample Adapter tive Offset), ALF (Adaptive Loop Filter), etc. The deblocking filter may include one or more post-processing filter steps: The block distortion caused at the boundaries between blocks can be removed from the restored picture. ALF is a process in which blocks are filtered through a deblocking filter before Filtering can be performed based on the comparison between the restored image and the original image. SAO performs pixel-by-pixel filtering on the residual blocks to which the deblocking filter has been applied. This post-processing filter can restore the offset difference with the original image. The filter can be applied to any picture or block.
[0055] The coded picture buffer 240 stores the blocks reconstructed through the filter unit 235. The coded picture buffer 240 can store the coded image or picture. The reconstructed block or picture is provided to a prediction unit 200 that performs intra-frame prediction or inter-frame prediction. It is possible.
[0056] The entropy coding unit 245 encodes the generated quantized frequency coefficient sequence in various scanning methods. , and generate a sequence of quantized coefficients, which are then encoded using entropy coding techniques, etc. The scan pattern is zigzag, diagonal, raster, r) can be set to one of various patterns. It is possible to generate coded data containing the coding information and output it as a bit stream. do.
[0057] FIG. 3 is a block diagram of a video decoding device according to an embodiment of the present invention.
[0058] Referring to FIG. 3, the video decoding device 30 includes an entropy decoding unit 305, a prediction unit 31, and a 0, an inverse quantization unit 315, an inverse transformation unit 320, an adder / subtractor 325, a filter 330, and a decoding unit It may comprise a picture buffer 335.
[0059] The prediction unit 310 further includes an intra-frame prediction module and an inter-frame prediction module. It can be done.
[0060] First, when a video bitstream is received from the video encoding device 20, The tropy decoding unit 305 can then transmit the tropy signal to the tropy decoder 305.
[0061] The entropy decoding unit 305 decodes the bit stream to obtain quantized coefficients and each component. The decoder can decode the decoded data including the decode information transmitted to the decoder.
[0062] The prediction unit 310 performs prediction block generation based on the data transmitted from the entropy decoding unit 305. Here, the decoded picture buffer 335 stores the Based on the reference image, the reference picture is constructed using the default construction technique. You can also configure the list.
[0063] The inter-picture prediction unit includes a reference picture construction unit, a motion compensation unit, and a motion information decoding unit. Some of them perform the same process as the encoder, and some of them perform the reverse induction process. can be done.
[0064] The inverse quantization unit 315 receives the bit stream and outputs it to the entropy decoding unit 305. The decoded quantized transform coefficients can be dequantized by:
[0065] The inverse transform unit 320 performs an inverse transform technique such as an inverse DCT, an inverse integer transform, or a similar concept. It can be applied to the coefficients to generate a residual block.
[0066] Here, the inverse quantization unit 315 and the inverse transform unit 320 are the same as those of the transform unit of the video encoding device 20 described above. The process performed by the filter unit 210 and the quantization unit 215 may be reversed and implemented in various ways. For example, the same process and inverse transform shared by the transform unit 210 and the quantization unit 215 can be used. The video coding device 20 may also provide information about the transformation and quantization process (e.g., Transform and quantization processes can be reversed using the This can be done.
[0067] The residual block that has undergone the inverse quantization and inverse transform processes is converted into a predicted block derived by the prediction unit 310. The sum of the two blocks can be added to produce a reconstructed image block. This can be done by subtractor 325.
[0068] The filter 330 performs blocking (bl You can also apply a deblocking filter to remove the "locking" phenomenon. Another loop filter is added before and after the decoding process to improve the video quality. It can also be used additively.
[0069] The restored and filtered image block is stored in the decoded picture buffer 335. It can be done.
[0070] Although not shown in the drawing, the video encoding / decoding device includes a picture division unit and a block division unit. It may further include:
[0071] The picture splitter splits the picture into a color space (e.g., YCbCr, RGB or XY Z, tiles, slices, basic coding units (or maximum coding units, Coding T The product must be divided (or partitioned) into at least one processing unit, such as a processing unit (CTU) or a processing unit (CTU). The block division unit divides the basic coding unit into at least one processing unit (e.g., Encoding, prediction, transformation, quantization, entropy and in-loop filter units) It is possible.
[0072] The basic coding unit is obtained by dividing a picture at regular intervals in the horizontal and vertical directions. Based on this, division into tiles, slices, etc. can be performed. However, the division units such as tiles and slices are not limited to the above. It can be configured as an integer multiple, but exceptional cases occur in division units located on image boundaries. This may result in adjustment of the basic coding block size.
[0073] For example, a picture can be partitioned into basic coding units and then split into the units. Or, the picture can be partitioned into said units and then divided into basic coding units. In the present invention, the description will be given on the assumption that the partitions and division order of each unit are the former case, but this is not intended to be limiting. The latter case is possible depending on the encoding / decoding settings. In the latter case, the basic encoding The size of the unit can be modified to suit the division unit (such as a tile). That is, it is possible to support basic coding blocks having different sizes for each division unit. This means that
[0074] In the present invention, a picture is divided into basic coding units as a basic setting, and the following examples will be explained. The basic setting is that the picture is not divided into tiles or slices or the picture This could mean that the image is one tile or one slice. As mentioned above, each division unit (tile, slice, etc.) is partitioned first, and the obtained units are used to When dividing the image into basic coding units by the In cases where the above-described embodiment is not possible, the following various embodiments may be applied in the same or modified manner. It should be understood that
[0075] In the case of slices, at least one slice is divided into two slices by a scan pattern. A block can consist of a single block, and in the case of tiles, a block can consist of spatially adjacent blocks. It can be constructed from a rectangular bundle of blocks, and supports additional division units, Slices and tiles can be used for parallel processing, etc. For this reason, references between division units are restricted (i.e. (i.e., cannot be referenced).
[0076] Slicing generates the division information for each unit by information about the starting position of consecutive blocks. In the case of tiles, information about horizontal and vertical dividing lines can be generated or It is possible to generate tile position information (e.g., top left, top right, bottom left, bottom right position). Cut.
[0077] Here, slices and tiles are divided into multiple units depending on the encoding / decoding settings. can be done.
[0078] For example, some units is a unit that contains configuration information that affects the encoding / decoding process ( i.e. including the tile header or slice header), and some units can be a unit that does not contain configuration information, or some unit HA sign It is a unit that cannot refer to other units during the encoding / decoding process, and some units rank can be a unit that can be referenced. Also, some units Other Units Can be a hierarchical relationship involving some units is another unit and can have an equal relationship.
[0079] Here, A and B can be a slice and a tile (or a tile and a slice). Alternatively, A and B can consist of one slice and one tile. For example, A is a slice. Rice / tile <type 1>, B is slice / tile <type 2> It is possible.
[0080] Here, type 1 and type 2 can each be a slice or a tile. Or, Type 1 (including Type 2) can be a set of slices or tiles (a slice set or Type 1 can be a set of tiles, and Type 2 can be a single slice or tile. Cut.
[0081] As already mentioned above, the present invention assumes that a picture consists of one slice or tile. However, if two or more division units are generated, the above explanation will be repeated later. In addition, A and B are the division units. These are examples of characteristics that can be achieved, and examples in which A and B are combined are also possible. .
[0082] Meanwhile, the block division unit obtains information about the basic coding unit from the picture division unit. The basic coding unit is a unit that performs prediction, transformation, quantization, etc. during the video coding / decoding process. Here, a basic coding unit can mean a basic (or starting) unit for a color. One luminance basic coding block (or, The largest coding block (Coding Tree Block, CTB) and two basic chrominance Each block can be coded by a color format. The size of the coding block can be determined by the division process. g Block. CB) can be obtained. The coding block is limited by certain restrictions. It can be understood as a unit that cannot be further divided into coding blocks, and the division into subunits In the present invention, the blocks are not limited to squares, but can be triangular. It can be understood as a broad concept including various shapes such as round, circular, etc. , the case of a rectangle will be assumed.
[0083] The following description applies to a single color component, but the ratio of color formats (e.g. For example, in the case of YCbCr4:2:0, the horizontal to vertical ratio of the luminance and color difference components is 2:1. It should be understood that the present invention can be modified and applied to other color components. Block division dependent on other color components (e.g., Cb / Cr depending on Y block division result) However, it is possible to divide each color component into blocks independently. Also, considering that the block division setting is proportional to the length ratio, ), but it is also possible to use separate block division settings for each color component. It needs to be considered and understood.
[0084] In the block division section, the blocks can be expressed as M×N, and the maximum value of each block is For example, you can get the maximum and minimum values of a block in a range of 256x256. ,If the minimum value is determined to be 4 × 4, then 2 m ×2 n Blocks of size (in this example, m and n are 2 or (integer from 0 to 8) or 2 m ×2 m Size blocks (in this example, m and n range from 2 to 128) (integer n) or a block of size m × m (in this example, m and n are integers between 4 and 256). Here, m and n may be the same or different, and the maximum value Ranges that support blocks such as and minimum value can occur more than once.
[0085] For example, information about maximum and minimum block sizes can be generated. Some partition settings generate information about the maximum and minimum block sizes. In the former case, the maximum and minimum sizes that can occur in the image can be calculated. It can be range information, and in the latter case, the maximum and minimum values that can be generated by some partitioning settings. Here, the division setting may be information about the image type (I / P / B), color components (YCbCr, etc.), block type (encoding / prediction / transformation / quantization etc.), partition type (Index or Type), partition method (Tree method: QT, B T, TT, etc., and SI2, SI3, SI4, etc., in the index method. This can be done.
[0086] Also, restrictions on the ratio of width to height that a block can have (block shape) can exist and boundary value conditions can be set for it. Here, any Only blocks below the boundary value (k) can be supported, and k is A / B (A is horizontal and vertical). Defined by the ratio of width to height, such that B is the longer or the same value among width and height, and B is the other value. It can be a real number equal to or greater than 1, such as 1, 5, 2, 3, 4, etc. In this way, it supports restrictions on the shape of a block in an image, or it supports split settings. It may support one or more constraints.
[0087] In summary, blocks are made according to the range and conditions described above and the division settings described below. It is possible to decide whether or not to support division. For example, division of a block (parent block) If the block conditions for supporting the candidate (child block) are met, the corresponding division is supported. If these conditions are not met, the division may not be supported.
[0088] The block division unit is set in relation to each component of the video encoding device and the video decoding device. This process allows the size and shape of the block to be determined. The set block may be defined differently depending on the component. is the prediction block, and in the case of the transform part, it is the transform block ( Transform Block, and for the quantization part, Quantization Block This can be categorized as a "Communication Block" or other similar items. However, this is not limited to these. In the present invention, a block unit according to other components may be additionally defined. The following description focuses on the case where the input and output are rectangular in shape, but some components may have other shapes (e.g. For example, triangles) can be input / output.
[0089] The size and shape of the initial (or starting) block of the block division is determined from the upper unit. The initial block may be divided into blocks of smaller size; Once the optimal size and shape of the block is determined, the block is divided into subunits. Here, the upper unit is the coding block, and the lower unit is the The block may be a predicted block or a transformed block, but is not limited thereto, and various modifications may be made. Once the initial block of the lower unit is determined as in the above example, Then, a division process can be performed to find blocks of optimal size and shape.
[0090] In summary, the block division unit divides the basic coding block (or the largest coding block) into smaller blocks. The coding block can be divided into at least one coding block. The prediction block, transformation block, and quantization block can be divided into the following blocks: The block can be divided into at least one transform block / quantization block, and the transform block The block can be divided into at least one quantization block. Here, some blocks Blocks have subordinate relationships (i.e., defined by higher and lower units) with other blocks. For example, a prediction block may be a transform block. It can be a higher-level unit or a unit independent of the conversion block, depending on the type of block. Therefore, various relationship settings are possible.
[0091] Depending on the encoding / decoding settings, it is possible to determine whether or not upper and lower units can be combined. Here, the connection between units is not performed by dividing the upper unit into the lower unit, but by dividing the upper unit into the blocks. The encoding / decoding process of sub-units (e.g., prediction, transformation, inverse This means performing the division process in multiple units, It can mean that the division information occurs in one unit (e.g., a higher unit) within it. Cut.
[0092] As an example, (when a coding block is combined with a prediction block and a transformation block), The prediction, transformation, and inverse transformation processes can be performed in the transformation block.
[0093] As an example, if a coding block is combined with a prediction block, A transformation block that is equal to or smaller than the coding block can be obtained by performing a process of estimation. The conversion and inverse conversion processes can be performed in a single step.
[0094] As an example, (when a coding block is combined with a transformation block), The prediction process can be performed on one or a smaller prediction block. The conversion and inverse conversion processes can be performed in a single step.
[0095] As an example, (when the prediction block is combined with the transformation block) The prediction process may be performed on a prediction block that is equal to or smaller than the prediction block. Transformation and inverse transformation processes can be performed.
[0096] As an example (when no blocks are combined), The prediction process is performed on a smaller prediction block, which is the same or smaller than the coding block. The transformation and inverse transformation processes can be performed in the transformation block.
[0097] In the above examples, various cases regarding the coding, prediction, and transformation blocks have been described, but the present invention is not limited thereto. I can't.
[0098] The connections between the units can be fixed in the image or can be various codes. In this case, the encoding / decoding factor can be taken into consideration to support adaptive setting. Decoding elements include image type, color components, coding mode (Intra / Inter), and division. partitioning settings, block size / shape / position, width / height ratio, prediction related information (e.g., screen Intra prediction mode, inter prediction mode, etc.), transformation-related information (e.g., transformation technique selection information, etc.) ), quantization-related information (e.g., quantization region selection information, quantized transform coefficient coding information, etc. ) etc.
[0099] As described above, when a block of the optimum size and shape is found, the mode for this is Mode information (e.g., partition information) can be generated. Mode information indicates which blocks belong to which The bit is then processed together with information generated by the component (e.g., prediction-related information and conversion-related information, etc.) The data can be recorded in a single stream and sent to the decoder, and the decoder can and then used in the video decoding process.
[0100] In the following, we explain the division method. For the sake of convenience, we assume that the initial block is a square. However, the same or similar application can be made when the initial block is rectangular. But it is not limited to this.
[0101] The block splitter can support various types of splits. For example, tree-based splits splitting or index-based splitting, and other methods may be supported. Tree-based partitioning requires various types of information (e.g., whether partitioning is possible, tree type, partitioning direction, etc.). The division form can be determined based on the index, etc. The division form can be determined based on index information.
[0102] FIG. 4 is an example diagram showing various division patterns that can be obtained by the block division unit of the present invention. In this example, the division form shown in FIG. 4 is obtained by performing (or processing) one division. However, the present invention is not limited to this, and it is also possible to obtain the image by multiple division operations. Also, additional divisions not shown in FIG. 4 are possible.
[0103] (Tree-based splitting)
[0104] In the tree-based partitioning of the present invention, the tree method is a quad tree. ee.QT), Binary Tree (Binary Tree.BT), Ternary Tree (Ternary Tree.TT) and other methods can be supported. Single tree splitting if supported, multi-tree splitting if two or more tree methods are supported It can be said that.
[0105] In the case of QT, the block is divided into two parts horizontally and vertically (i.e., into four parts). In the case of BT, the block is divided into two in one direction, either horizontally or vertically. In the case of TT, the block is oriented in one direction, either horizontally or vertically. This means a three-division method (h~m).
[0106] In the case of QT, the division direction is limited to one of the horizontal and vertical directions and the image is divided into four. Also, in the case of BT, the method (o, p) with equal size is supported. Only (b, c) or only (d~g) with non-uniform size are supported. In the case of TT, the division is biased in a specific direction. (1:1:2, 2:1:1, etc., in the left-right or top-bottom direction) Only methods (h, j, k, m) are supported, or methods ( Only i and l) can be supported, or both can be combined. Also supports the method (q) of dividing the direction into 4 parts horizontally and vertically (i.e., 16 parts) It is possible.
[0107] Among the tree methods, the method of z-division limited to the horizontal division direction (b, d, e , h, i, j, o) or z-division limited to the vertical division direction (c, f, g, k, l, m, p) or a combination of both methods. Here, z can be an integer of 2 or more, such as 2, 3, or 4.
[0108] In the present invention, it is assumed that QT supports n, BT supports b and c, and TT supports i and l. .
[0109] Depending on the encoding / decoding settings, one or more methods can be supported in the tree division. For example, can you support QT, can you support QT / BT, QT / BT / TT can be supported.
[0110] In the above example, the basic tree division is QT, and depending on whether other trees are supported, BT and TT are used. This is an example of the case where the additional division method includes the above, but various modifications are possible. Information about whether other trees are supported (bt_enabled_flag, tt_enab led_flag, bt_tt_enabled_flag, etc. Has a value of 0 or 1 (0 for no support, 1 for support) depends on the encoding / decoding settings. It is either implicitly determined by the sequence, picture, slice, tile, etc. It can be determined explicitly.
[0111] The split information is information about whether splitting is possible (tree_part_flag or qt_pa rt_flag, bt_part_flag, tt_part_flag, bt_tt_ part_flag. It can have a value of 0 or 1, where 0 means no splitting and 1 means In addition, the division direction ( dir_part_flag. or bt_dir_part_flag, tt_dir_ part_flag, bt_tt_dir_part_flag, which has a value of 0 or 1 0 for <horizontal> and 1 for <vertical>) can be added, which can be information that can be generated when doing the division.
[0112] When multiple tree divisions are supported, various division information configurations are possible. Depth level (i.e., the supported split depth is set to 1 or more for recursive Although division is possible, for the sake of convenience, we will explain how the division information is structured. Let us explain this by assuming an example.
[0113] In example (1), we confirm the information about whether or not the division is possible. Here, if the division is not carried out, If so, end the division.
[0114] If you want to split the tree, you need to select the type of split (e.g., tree_i dx. If it is 0, it is QT, if it is 1, it is BT, if it is 2, it is TT). Here, Depending on the division type, the division direction information is further checked and the next step (when the division depth reaches its maximum) is If you can split it again for some reason, you can start again from the beginning. If you can't split it, , and then proceed to the next step (finishing the division).
[0115] In Example (2), we check the information on whether or not some tree methods (QT) can be split, If the division is not performed, some tree methods (BT) Check the information about whether or not you can split the file. If you do not want to split the file, you can use the Check the information about whether or not you can split the TT. If you do not want to split the TT, If so, the division is terminated.
[0116] If a partial tree-based (QT) split is to be performed, proceed to the next step. In addition, if some tree-based (BT) splitting is performed, split direction information is required. We confirm the result and move to the next step. Also, if we perform a partial tree splitting method (TT), If so, the division direction information is checked and the process moves to the next step.
[0117] In Example (3), check the information about whether or not some tree methods (QT) can be split. Here, if no split is performed, some tree methods (BT and TT) can be split. If the division is not to be carried out, the division is terminated. .
[0118] If a partial tree-based (QT) split is to be performed, proceed to the next step. In addition, if some tree-based (BT and TT) partitioning is performed, the partitioning direction Verify the information and move on to the next step.
[0119] The above examples show cases where tree splitting priority exists (examples 2 and 3) or does not exist (example 1). ), but various modifications are possible. Also, in the above example, the division of the current stage is This is an example that explains the case where the division result is unrelated, but the division of the current stage is the division result of the previous stage. Dependent settings are also possible.
[0120] For example, in the case of cases 1 to 3, some tree-based division (QT) was performed in the previous step. If the current stage is reached, we can support the division of the same tree method (QT) even at the current stage. This can be done.
[0121] On the other hand, some tree-based divisions (QT) were not performed in the previous step, and other tree-based divisions were performed. If you have completed (BT or TT) and moved to the current stage, some tree-based division ( Except for QT, some tree-based divisions (BT and TT) will be considered for the current and subsequent stages. It is also possible to set it up to provide support.
[0122] In this case, it means that the tree structure that supports block division is adaptive. This means that the above-mentioned partition information configuration can be configured differently ( The following example is assumed to be the third example. In other words, in the above example, some tree-based (QT) division If the allocation was not performed in the previous stage, some tree methods (QT) will not be considered in the current stage. In addition, the partitioning information (e.g. For example, information on whether or not the file can be divided, the direction of division, etc. <qt>So, regarding the possibility of division? information) can be removed and configured.
[0123] The above example is for the case where block division is allowed (e.g., the block size is between the maximum and minimum values). (The split depth of each tree method does not reach the maximum depth <allowable depth>, etc.) This is the case for adaptive partition information construction for blocks, and when block partitioning is restricted (e.g. For example, if the size of a block is not in the range between the maximum and minimum values, and each tree method It is possible to construct the partition information adaptively even when the partition depth reaches the maximum depth.
[0124] As previously mentioned, in the present invention, tree-based partitioning can be performed in a recursive manner. For example, if the division flag of a coding block with a division depth of k is 0, The coding of the block is performed in coding blocks with a division depth of k. If the split flag of the lock is 1, the coding of the coding block is split to the split depth according to the split method. k+1 sub-coding blocks, where N is an integer equal to or greater than 2, such as 2, 3, 4, etc. ) to carry out the project.
[0125] The sub-coding block is further set as coding block (k+1), and the above process is repeated. The hierarchical division method can be used to divide the image into sub-coding blocks (k+2). This can be determined by split settings such as range and split allowed depth.
[0126] Here, the bitstream structure for expressing the partition information may be one or more scan methods. For example, the bit stream of the partition information can be selected based on the partition depth order. It is possible to configure a bit stream of partition information based on whether partitioning is possible or not. can.
[0127] For example, if the division depth order is used as the basis, the division information at the current level of depth is calculated based on the first block. This is a method to obtain partition information at the next level of depth after obtaining partition information. When the first block is used as a reference, the additional division information of the divided blocks is acquired first. This means a method of scanning the image, and other additional scanning methods may be considered.
[0128] (Index-based division)
[0129] In the index-based splitting of the present invention, the CSI (Constant Split Indicator) is used. Supports the VSI (Variable Split Index) method and the VSI (Variable Split Index) method. It is possible.
[0130] The CSI method obtains k sub-blocks by dividing in a given direction. where k can be an integer equal to or greater than 2, such as 2, 3, 4, etc. In particular, Determine the size and shape of the subblocks based on the k value, regardless of the size and shape. Here, the predetermined direction may be a horizontal, vertical, or diagonal direction. (Upper left → lower right, or lower left → upper right, etc.) Directions can be combined.
[0131] The index-based CSI division method of the present invention divides z elements into one direction, either horizontally or vertically. The candidates to be split can be included, where z is an integer greater than or equal to 2, such as 2, 3, or 4. and one of the horizontal and vertical lengths of each sub-block is the same and the other is the same. The horizontal to vertical ratio of the sub-blocks can be A1:A2:...:A Z in Yes, A1~A Z can be an integer equal to or greater than 1, such as 1, 2, or 3.
[0132] It can also contain candidates that are divided into x and y parts horizontally and vertically. Here, x and y can be integers greater than or equal to 1, such as 1, 2, 3, or 4, but x and y If a is 1 at the same time (because a already exists), it can be restricted. The horizontal and vertical ratios of the blocks are the same, but we will also consider candidates that have different ratios. It can also include.
[0133] In addition, some diagonal directions (upper left to lower right) or some diagonal directions (lower left to upper right The candidate can be divided into w candidates in one direction (horizontal direction), where w is 2 or more, such as 2 or 3. can be an integer.
[0134] Referring to FIG. 4, a symmetric division form (b) and an asymmetric division form (c) are shown according to the length ratio of each sub-block. The division patterns can be divided into two types: general division patterns (d, e), which are biased in a specific direction (k, m), and It can be divided into a centrally located division type (k). The partitioning form is defined by various encoding / decoding elements including sub-block forms, etc. The partitioning schemes supported by the encoding / decoding settings can be implicitly or explicitly Therefore, the index-based division can be determined based on the supported division type. A set of candidates for the method can be determined.
[0135] On the other hand, the VSI method uses a fixed width (w) or height (h) of the subblock. It is possible to obtain one or more subblocks by dividing the w and h directions. can be an integer equal to or greater than 1, such as 1, 2, 4, 8, etc. In particular, the size of the block and a division method in which the number of sub-blocks is determined based on the shape and the value of w or n. There can be.
[0136] The index-based VSI division method of the present invention divides the subblock into two parts, horizontal and vertical. You can split the candidates while keeping them fixed, or you can fix the horizontal and vertical dimensions of the subblocks. The candidates can be divided while keeping the horizontal and vertical lengths of the subblocks fixed. It may have features that allow for equal division in the horizontal or vertical directions, but is not limited to this. stomach.
[0137] The block before division is M × N, and the horizontal length of the sub-block is fixed (w) or the vertical length is If the width is fixed (h) or the width and height are fixed (w, h), the obtained sub-blocks The number of locks is (M*N) / w, (M*N) / h, and (M*N) / w / h, respectively. This can be done.
[0138] Depending on the encoding / decoding settings, only CSI or VSI is supported. It may support both methods and may provide implicit or explicit information about the methods supported. It can be determined explicitly.
[0139] The present invention will be described assuming that the CSI scheme is supported.
[0140] Depending on the encoding / decoding settings, the index split may include two or more candidates to create a candidate set. It can be configured.
[0141] For example, construct candidate sets such as {a, b, c}, {a, b, c, n}, and {a~g, n}. The candidate set can be divided into two parts horizontally or vertically, or both horizontally and vertically. Many are based on general statistical characteristics, such as a block shape that is divided into two in each direction. These may be examples that include block forms that are predicted to occur.
[0142] Or {a, b}, {a, o}, {a, b, o} or {a, c}, {a, p}, { a, c, p}. The candidate set is divided into horizontal and vertical The candidates include candidates that are divided into 2 and 4 in the vertical direction. The candidates are predicted to have many divisions in a particular direction. Examples include the block form that can be measured.
[0143] Alternatively, we can construct candidate sets such as {a, o, p} or {a, n, q}. The candidate set is predicted to have many partitions with a size smaller than the block before partition. Examples include block forms such as:
[0144] Alternatively, we can construct a set of candidates such as {a, r, s}. From the blocks, the best segmentation results can be obtained from the rectangles using other methods (tree methods). This may be an example including a non-rectangular division shape.
[0145] As shown in the above example, various candidate group configurations are possible, and one or more candidate group configurations can be coded in various ways. / Decoding elements can be taken into consideration to assist.
[0146] Once the candidate group configuration is completed, various partition information configurations are possible.
[0147] For example, a candidate consisting of a candidate that is not divided (a) and a candidate that is divided (b~s) Index selection information can be generated in groups.
[0148] Or, information indicating whether or not division is possible (whether the division form is a or not) may be generated. If a split is performed (not if a), the candidate set consists of candidates (b~s) to be split. Index selection information can be generated in the complement.
[0149] Various types of partition information configurations other than those described above are possible. Then, in the candidate set, the index of each candidate is binarized by various methods such as fixed length binarization and variable length binarization. If the number of candidates is two, the One bit can be assigned to the index selection information, and if there are three or more, One or more bits can be allocated for selection information.
[0150] Unlike tree-based partitioning, index-based partitioning is expected to occur more frequently. The method may be a method of selectively configuring possible division forms into a candidate group.
[0151] The number of bits required to represent index information is determined according to the number of supported candidates. Since the number of partitions can be increased, it is not a hierarchical partition (recursive partition) based on a tree. This method can be suitable for one-level partitioning (e.g., partitioning depth is limited to 0). It is a method that supports one division operation, and the number of partitions obtained by index-based division is 1. The resulting sub-blocks may be in a manner that does not allow further division.
[0152] Here, if further division into smaller homogeneous blocks is not possible (e.g. For example, the coding block obtained by the index division method is divided into additional coding blocks. It can also mean that a block cannot be divided into other types of blocks (e.g. ,It is also possible to divide the coding block into not only the coding block but also the prediction block. Of course, the present invention is not limited to the above examples, and other variations are possible.
[0153] Next, in the case of determining block division settings based on the block type among the encoding / decoding elements, This section explains the case.
[0154] First, the coding block can be obtained through a division process. Here, the division process is A tree-based partitioning method can be used. Depending on the type of tree, The results may include division patterns such as it), n (QT), b, c (BT), i, l (TT), etc. Depending on the encoding / decoding settings, each tree such as QT / QT+BT / QT+BT+TT can be -Various combinations of types are possible.
[0155] The following example shows how to convert a predicted block into a coded block obtained by the above process. The final partitioning process of the exchange block is shown, and predictions are made based on the partitioned size of each block. Assume that a transformation and inverse transformation process is performed.
[0156] In the example (1), the prediction block is set to the same size as the coding block and the prediction process is performed. The size of the coding block (or prediction block) remains the same as the transformation block. The transformation and inverse transformation processes can be performed by setting the predicted block and the transformed block. In this case, there is no partition information generated separately from the setting based on the coding block.
[0157] In example (2), the prediction block is set to the same size as the coding block and the prediction process is performed. For transform blocks, it is possible to perform the Then, the transformation block can be obtained by the division process, and based on the obtained size, Transformation and inverse transformation processes can be performed.
[0158] Here, the division process can use a tree-based division method, and the diagram is based on the type of tree. Splitting 4 into a (no split), b, c (BT), i, l (TT), n (QT), etc. The format result can be QT / BT / QT+BT / Q depending on the encoding / decoding settings. Various combinations of tree types are possible, such as T+BT+TT.
[0159] Here, the division process can use an index-based division method, and the index type This will result in split patterns such as a (no split), b, c, and d in Figure 4. Depending on the encoding / decoding settings, various candidates such as {a, b, c} and {a, b, c, d} can be generated. Complementary group construction is possible.
[0160] In the case of a prediction block, for example (3), a division process is performed based on the coding block to obtain a prediction. A measurement block can be obtained, and a prediction process can be performed based on the obtained size. For transform blocks, the size of the coding block is set as is, and the transform and inverse transform are In this example, the prediction block and the transformation block are independent of each other. This can be equivalent to the case where there is a relationship.
[0161] Here, the division process can use an index-based division method, and the index type This will result in the split form results such as a (no split), b~g, n, r, s, etc. in Figure 4. Depending on the encoding / decoding settings, {a, b, c, n}, {a~g, n}, {a , r, s} are possible.
[0162] In the case of a prediction block, for example (4), a division process is performed based on the coding block to obtain a prediction. A measurement block can be obtained, and a prediction process can be performed based on the obtained size. For transform blocks, the size of the prediction block is set as is and the transform and inverse transform are performed. In this example, the transformation block is the same as the obtained prediction block size. If you set the block size, it can be changed to 1, or vice versa (conversion block size remains unchanged). (setting the prediction block in
[0163] Here, the division process can use a tree-based division method, and the division method is shown in Figure 4 according to the tree type. The split forms can be a (no split), b, c (BT), and n (QT). Depending on the encoding / decoding settings, various tree types such as QT / BT / QT+BT can be Combinations are possible.
[0164] Here, the division process can use an index-based division method, and the index type This results in split patterns such as a (no split), b, c, n, o, and p in Figure 4. Depending on the encoding / decoding settings, you can use {a, b}, {a, c}, {a, n}, {a, o }, {a, p}, {a, b, c}, {a, o, p}, {a, b, c, n}, {a, b, c , n, p}. The VSI method may be used alone or in combination with the CSI method to form a candidate set. .
[0165] In the case of a prediction block, for example (5), a division process is performed based on the coding block to obtain a prediction. A measurement block can be obtained, and a prediction process can be performed based on the obtained size. In addition, in the case of a transformation block, a division process is performed based on the coding block to obtain a prediction. A measurement block can be obtained, and a conversion and inverse conversion process is performed based on the obtained size. In this example, the prediction block and the transformation block are calculated based on the coding block. This may be the case when carrying out each division.
[0166] Here, the partitioning process can use either a tree-based partitioning method or an index-based partitioning method. It is possible to construct a candidate group in the same or similar manner as in the fourth example.
[0167] The above are some of the cases that may occur depending on whether each type of block is divided. However, the present invention is not limited to this, and various modifications are possible. It is possible to determine block division settings by considering not only the type but also various encoding / decoding factors. Cut.
[0168] Here, the coding / decoding elements are image type (I / P / B), color components (YCbCr ), block size / shape / position, block width / length ratio, block type (code block, prediction block, transform block, quantization block, etc.), partition state, coding model, mode (Intra / Inter), prediction related information (intra-screen prediction mode, inter-screen prediction mode ), transformation-related information (transformation technique selection information, etc.), quantization-related information (quantization domain selection information, etc.) , quantized transform coefficient coding information, etc.
[0169] In the video encoding method according to an embodiment of the present invention, the intra prediction is configured as follows. The intra-frame prediction of the prediction unit includes a reference pixel configuration stage, a prediction block generation stage, and a prediction The video encoding apparatus may include a mode determination step and a prediction mode encoding step. The reference pixel construction step, the prediction block generation step, the prediction mode determination step, and the prediction mode code step are performed. The present invention includes a reference pixel constructing unit, a prediction block generating unit, and a prediction mode encoding unit for implementing a coding step. Some of the above steps may be omitted or other steps may be implemented. Steps can be added and the order can be changed to other than the order listed above.
[0170] FIG. 5 is a diagram illustrating an example of an intra-frame prediction mode according to an embodiment of the present invention.
[0171] Referring to FIG. 5, 67 prediction modes are set as prediction mode candidates for intra prediction. Of these, 65 are directional and 2 are non-directional (DC However, the present invention is not limited to this and various configurations are possible. Here, the directional mode can be set to either gradient (e.g., dy / dx) or angle information (Degr In addition, all or part of the prediction modes may be classified as luminance or color components. The prediction mode candidate set of the difference component can be included, and additional modes other than the prediction mode can be included. can be included in the candidate group.
[0172] In the present invention, the direction of the directional mode means a straight line. The curved direction mode can also be configured as a prediction mode. In addition, in the case of non-directional mode, the neighboring blocks (e.g., The average (or weighted average, etc.) of the pixels in the left, top, top left, top right, bottom left block, etc. ) to obtain a prediction block, and the pixels of the surrounding blocks are linearly interpolated. A planar mode in which a prediction block is obtained by
[0173] Here, in the case of DC mode, the reference pixels used to generate the predicted block are the left, upper, Various combinations such as left side + upper side, left side + lower left side, upper side + upper right side, left side + upper side + lower left side + upper right side It can be obtained from blocks of combinations, and can be set to image type, color components, block size, etc. The reference pixel acquisition block is based on the encoding / decoding settings defined by the size / shape / position, etc. The lock position can be determined.
[0174] In the case of Planar mode, the pixels used to generate the predicted block are either reference pixels or The area composed of the pixels (for example, the left side, the top side, the top left side, the top right side, the bottom left side, etc.) and the reference pixel It can be obtained from the unstructured area (e.g., the right side, the bottom side, the bottom right side, etc.) and the reference image For regions that are not composed of pixels (i.e., not coded), the region composed of reference pixels is Implicitly use one or more pixels from the region (e.g., copy as is, weighted average, etc.) or at least one pixel in the region that does not consist of reference pixels. Therefore, we can generate information about the pixel count explicitly. A prediction block can be generated using the area that is not composed of reference pixels and the area that is not composed of reference pixels. do.
[0175] Additional non-directional modes other than those described above may be included. The explanation will be centered on the non-directional modes of DC and Planar, but it can be modified to suit other cases. It is also possible to use
[0176] FIG. 5 shows a prediction mode that is fixedly supported regardless of the block size. Also, prediction modes supported depending on the block size may differ from those shown in FIG.
[0177] For example, the number of prediction mode candidates is adaptive (e.g., the angles between the prediction modes are equally spaced). However, the angles are set differently. Based on the directional mode, 9, 17, 33, 65, 129, etc. ) or the number of prediction mode candidates is fixed but other configurations (e.g., directional modes) are available. The materials may be of various types (e.g., oriented angle, non-directional type, etc.).
[0178] Also, FIG. 5 shows that the prediction modes are fixedly supported regardless of the block type. Also, the prediction modes supported depending on the block type may be different from those shown in FIG. .
[0179] For example, the number of prediction mode candidates is adaptive (e.g., depending on the ratio of the width and height of the block). (a) the number of prediction modes derived in the horizontal or vertical direction is set to be small or large; or In the case of the 3D prediction mode, the number of candidate prediction modes is fixed, but other configurations (e.g., horizontal and vertical block configurations) can be used. (more fine-grained setting of prediction modes derived horizontally or vertically depending on the ratio) can be done.
[0180] Alternatively, the prediction mode with the longer block length can have more bits, and the block length can be The prediction mode on the short side can support fewer bits, and the block length is longer. In this case, the prediction mode interval is set to the mode located to the right of the 66th mode in Fig. 5 (e.g., the 50th mode). Modes with angles of +45 degrees or more based on the mode. In other words, numbers such as 67 to 80 Modes with 18th mode) or modes located to the left of mode 2 (e.g., mode 18) Modes with angles of -45 degrees or more. In other words, modes with numbers such as -1 to -14. This is determined by the ratio of the width and height of the block. and the opposite situation is possible.
[0181] In the present invention, the prediction mode is fixed (regardless of any encoding / decoding elements) as shown in FIG. The following description will focus on prediction modes that are supported by the encoding settings. It is also possible to set a prediction mode that is
[0182] In addition, when classifying prediction modes, horizontal and vertical modes (modes 18 and 50), Diagonal up right mode (Diagonal up right <2nd>, Diagonal Down right <No. 34>, Diagonal down left <No. 66> etc.) can be the basis, which is a certain direction (or angle of 45 degrees, 90 degrees, etc.) The classification method may be as follows.
[0183] In addition, some of the directional modes located at both ends (modes 2 and 66) are predicted. This is the intra-frame prediction mode shown in FIG. This is an example of what is possible when the prediction mode configuration is adaptive. In addition, the reference mode may be changed. For example, if the second mode is smaller than 2, It will be replaced by the mode with a higher number (-2, -1, 3, 4, etc.) or the 66th mode. Modes with numbers less than or greater than 66 (64, 66, 67, 68, etc.) It can be done.
[0184] Also, additional prediction modes for color components (color copy mode, color mode) The color copy mode can be included in the prediction mode candidate group. A prediction method for obtaining data for generating a prediction block from a region located within the The color mode can be a predicted mode from a region located in another color space. It can be a prediction mode related to the method of obtaining the mode.
[0185] FIG. 6 is an example for explaining a reference pixel configuration used in intra-frame prediction according to an embodiment of the present invention. The size and shape (M×N) of the prediction block are obtained by the block division unit. It is possible.
[0186] Intra-frame prediction is generally performed on a prediction block basis. Depending on the settings of the division section, the processing can be performed in units of coding blocks, transform blocks, etc. After checking the block information, the reference pixel construction unit selects the reference pixels to be used for prediction of the current block. Here, the reference pixels can be stored in a temporary memory (for example, an array <array> It can be managed by the first, second, etc., and for each intra-screen prediction process of a block The size of the temporary memory can be determined by the configuration of the reference pixels. .
[0187] In this example, the left, upper, upper left, upper right, and lower left blocks are selected as the current block. The following description will be given assuming that the block is used for predicting a block lock. However, the present invention is not limited to this example and may be used in other configurations. The set of candidates can also be used to predict the current block. For example, the neighboring blocks for the reference pixel The candidate group of locks can be, for example, a raster or Z-scan scan. Depending on the order, some of the candidates may be removed or other block candidates (e.g. , right side, bottom, bottom right block, etc.) may be included as additional components.
[0188] In addition, if some prediction modes (color copy modes) are supported, other colors A part of the space can be used to predict the current block, so it can also be considered as a reference pixel. This can be taken into consideration.
[0189] FIG. 7 is a schematic diagram showing blocks adjacent to a current block of intra prediction according to an embodiment of the present invention. In detail, the left side of FIG. 10 shows the blocks adjacent to the current block in the current color space. The left side shows the corresponding blocks in the other color spaces, and the right side shows the corresponding blocks in the other color spaces. Therefore, the blocks adjacent to the current block in the current color space are the basic reference pixel configuration. The following explanation will be given assuming the above case.
[0190] As shown in Figure 6, the reference pixels used for predicting the current block are the left, top, top left, top right, The adjacent pixels in the left and right blocks (Ref_L, Ref_T, Ref_TL, R in Fig. 6) ef_TR, Ref_BL), where the reference pixel is the current block. The pixel line is composed of the pixels of the neighboring block closest to the block (a in FIG. 6, which is called the reference pixel line). However, other pixels (b in Figure 6 and other pixels on the outer lines) are also considered. The pixel can be configured as a pixel.
[0191] The pixels adjacent to the current block can be classified into at least one reference pixel line. The pixel closest to the current block is ref_0 {e.g., the boundary pixel of the current block and the pixel Pixels whose distance from the pixel is 1. p(-1,-1)~p(2m-1,-1), p(-1, 0)~p(-1, 2n-1)}, the next adjacent pixel {e.g., the boundary pixel of the current block The distance between the element and the pixel is 2. p(-2,-2)~p(2m,-2), p(-2,-1)~ p(-2, 2n)} is ref_1, the next adjacent pixel {e.g., the boundary of the current block The distance between pixels is 3. p(-3,-3)~p(2m+1,-3), p(-3,- 2)~p(-3, 2n+1)} can be divided into ref_2, etc. That is, currently Classifying the reference pixel lines according to the distance between the boundary pixels of the block and the adjacent pixels can be done.
[0192] Here, the number of supported reference pixel lines may be N or more, where N is an integer from 1 to 5. It can be an integer equal to or greater than 1. Here, the reference pixel line closest to the current block Generally, but not necessarily, the reference pixel line candidates are included in the reference pixel line candidate group in the order of For example, if N is 3,<ref_0、ref_1、ref_2> The candidate set is sequentially or<ref_0、ref_1、ref_3> , <ref_ 0, ref_2, ref_3>,<ref_1、ref_2、ref_3> Sequentially like this Alternatively, the candidate group may be configured by excluding the most adjacent reference pixel line. .
[0193] The prediction is performed using all the reference pixel lines in the candidate set or a part of the reference pixel lines. You can use one or more ins to make predictions.
[0194] For example, one of multiple reference pixel lines is selected according to the encoding / decoding settings, and the corresponding reference Intra prediction can be performed using a pixel line, or multiple reference pixel lines can be used. Select two or more of the reference pixel lines and use the corresponding reference pixel lines (for example, Intra-frame prediction can be performed by applying weighted average to the image data.
[0195] Here, the selection of the reference pixel line can be determined implicitly or explicitly. For example, In the implicit case, factors such as image type, color components, block size / shape / position, etc. Determined by encoding / decoding settings defined by one or a combination of two or more In the case of explicit, reference pixel line selection information is generated in units such as blocks. This means that it is possible to
[0196] In the present invention, the case where intra-frame prediction is performed using the most adjacent reference pixel line will be mainly described. However, the same or similar application applies to the various embodiments described below when multiple reference pixel lines are used. It should be understood that is possible.
[0197] For example, the most adjacent reference pixel line is used for intra-frame prediction in sub-block units, which will be described later. It is possible to support a setting in which the above information is implicitly determined only when the above information is considered. , and can perform intra-picture prediction in sub-block units using the preset reference pixel lines. , a reference pixel line can be selected by an implicit process. The line may refer to, but is not limited to, the nearest reference pixel line.
[0198] Alternatively, a reference pixel line is adaptively selected for intra-frame prediction in sub-block units. and a subblock is formed by selecting various reference pixel lines including the most adjacent reference pixels. It is possible to perform intra-frame prediction for each frame, i.e., taking into account various encoding / decoding factors. By using the reference pixel lines determined by the above, intra prediction can be performed on a subblock basis. The reference pixel line can then be selected by an implicit or explicit process.
[0199] The reference pixel configuration unit for intra-screen prediction of the present invention includes a reference pixel generation unit, a reference pixel interpolation unit, and a reference pixel It may include a filter portion, etc., and may include all or a part of the above-mentioned configuration. .
[0200] Check the availability of reference pixels in the reference pixel configuration section and use them. Here, the reference pixels can be classified into usable reference pixels and unusable reference pixels. The possibility is judged to be unusable if at least one of the following conditions is met:
[0201] For example, if it is located outside the picture boundary, it is not in the same division unit as the current block (e.g., Units that cannot be referenced with each other, such as slices and tiles. If the units have mutually referential characteristics, they may be different units even if they are not the same division unit. If the processing does not belong to the case where encoding / decoding is not completed, In other words, if any of the above conditions are not met, the device cannot be used. It can be judged as usable.
[0202] You can also restrict the use of reference pixels by encoding / decoding settings. For example, Even if it is determined that it is possible to use it based on the above conditions, it is possible to use limited intra-frame prediction (e.g., co unstrained_intra_pred_flag) depending on whether The use of in-screen prediction can be restricted. Restricted in-screen prediction can prevent errors from being generated by external factors such as the communication environment. - When performing robust encoding / decoding, the video is restored by referencing other videos. Locking can be performed when one wishes to prohibit the use of a pixel as a reference pixel.
[0203] If constrained intra prediction is deactivated (e.g., I picture type, or P or B Video type: constrained_intra_pred_flag=0, reference image All prime candidate blocks can be used.
[0204] Or, if limited intra-picture prediction is activated (e.g., P or B picture type c onstrained_intra_pred_flag=1), reference pixel candidate block is assumed to be a condition for determining whether it can be used or not depending on the coding mode (Intra or Inter). However, the condition can also be determined by a variety of other encoding / decoding factors.
[0205] Since the reference pixel is composed of one or more blocks, the possibility of the reference pixel is confirmed. If you classify them, there are three types: <all usable>, <some usable>, and <no usable at all>. In the remaining cases, except for the case where all the blocks are usable, the remaining blocks are unusable candidate blocks. The reference pixel of the lock position can be filled or generated.
[0206] If the reference pixel candidate block is available, the pixel at the corresponding position is used as the reference pixel of the current block. The pixel data can be directly copied or can be stored in the memory. The reference pixel memory can be stored through processes such as filtering and reference pixel interpolation. In addition, if the reference pixel candidate block is unavailable, the reference pixel generated by the reference pixel generation process is used. The pixel thus obtained can be included in the reference pixel memory of the current block.
[0207] The following are examples of generating reference pixels for unavailable block locations using various methods.
[0208] For example, a reference pixel can be generated using an arbitrary pixel value. The value is a pixel value range (e.g., a pixel value range based on the bit depth or a pixel distribution in the corresponding image). A pixel value (e.g., the minimum, maximum, or median of the pixel value range) belonging to the pixel value range In detail, when all the reference pixel candidate blocks are unavailable, could be an applicable example.
[0209] Alternatively, reference pixels can be generated from areas of the video that have already been coded / decoded. In particular, the reference is made from at least one available block adjacent to the unavailable block. A pixel can be generated by at least one of the following methods: extrapolation, interpolation, copying, etc. can be used.
[0210] After the reference pixel interpolation unit completes the construction of the reference pixels, the reference pixels are linearly interpolated to obtain a decimal point. Alternatively, the reference pixel filtering process described below can be used to generate unit reference pixels. After this, a reference pixel interpolation process can be performed.
[0211] Here, horizontal, vertical and some diagonal modes (e.g. Diagonal up rig ht, Diagonal down right, Diagonal down lef Modes with a 45 degree difference vertically / horizontally, like t. Corresponds to modes 2, 34, and 66 in Figure 5. ), in the case of non-directional mode, color copy mode, etc., the interpolation process is not performed, and In the case of the mode (other diagonal mode), an interpolation process can be performed.
[0212] Prediction mode (e.g., directionality of prediction mode, such as dy / dx) and reference pixels and predicted pixels The pixel position to be interpolated depends on the position of the pixel (i.e., which decimal unit is to be interpolated. Here, regardless of the precision of the decimal point, , one filter (e.g., to determine the length of the filter coefficients or filter taps) The formula used to calculate the filter assumes the same filter, except that the precision of the decimal point is less than, for example, 1 / 3. 2, 7 / 32, 19 / 32) or multiple filters (e.g., filter coefficients or filter taps) The mathematical formula used to determine the length is assumed to be a filter that divides the It can be selected and applied depending on the unit.
[0213] The former case is an example where integer pixels are used as input for fractional pixel interpolation. In the latter case, the input pixels can be changed step by step (for example, in the case of 1 / 2 unit). In the case of 1 / 4 units, integer and 1 / 2 unit pixels are used. The present invention will be described mainly in terms of the former case.
[0214] Perform fixed filtering or adaptive filtering for reference pixel interpolation. This allows you to change the encoding / decoding settings (e.g. video type, color components, block One or more of the following: position / size / shape, horizontal / vertical ratio of block, prediction mode, etc. The combination of the above can be used to determine the
[0215] Fixed filtering can perform reference pixel interpolation using one filter. Then, adaptive filtering uses one of the multiple filters to perform reference pixel interpolation. It can be carried out.
[0216] Here, in the case of adaptive filtering, multiple filters are used depending on the encoding / decoding settings. One of the two can be determined implicitly or explicitly. The filter types are 4-tap DCT-IF filter, 4-tap cubic Filter, 4-tap Gaussian filter, 6-tap Wiener filter, 8- It can be composed of tap Kalman filter, etc., and is supported by color components. The filter candidates are defined differently (e.g., some of the filter types are the same, but others are different). or whether the filter taps are short or long).
[0217] The reference pixel filter reduces the degradation caused by the encoding / decoding process. Therefore, filtering can be performed on the reference pixels to improve the accuracy of the prediction. The filter used is a low-pass filter. The encoding / decoding settings (derived from the above explanation) can be, but are not limited to, It is possible to determine whether or not filtering is applied by the filter. When filtering is applied, fixed or adaptive filtering is applied. It is possible.
[0218] Fixed filtering does not perform reference pixel filtering or uses only one filter. This means applying reference pixel filtering using the adaptive filtering. The application of filtering is determined by the encoding / decoding settings. If there are two or more types of targets, you can choose one of them.
[0219] Here, the filter type is a 3-tap filter such as [1, 2, 1] / 4, [2 Various filter coefficients such as 5-tap filters such as [3, 6, 3, 2] / 16, Supports multiple filters classified by filter tap length, etc. .
[0220] The reference pixel interpolation unit and the reference pixel filter unit introduced in the above reference pixel configuration step are This is a necessary configuration for improving accuracy. The above two steps are performed independently. However, a configuration that combines the two processes (i.e., processing with one filtering) is also possible. theory) is also possible.
[0221] A prediction block generating unit generates a prediction block by at least one prediction mode. and reference pixels can be used based on the prediction mode. Here, the reference pixels are Depending on the prediction mode, extrapolation and other methods (directional modes) are used. You can use Interpolation, Average (DC) or Copy (C opy) and other methods (non-directional modes).
[0222] The prediction mode determination unit performs an overlay process to select the optimal mode from among a group of prediction mode candidates. In general, block distortion (e.g., the difference between the current block and the restored block) stortion. SAD(Sum of Absolute Difference) , SSD (Sum of Square Difference, etc.) and the corresponding mode The rate-distortion technique is used to consider the amount of bits generated. The optimal mode can be determined in terms of the encoding cost. The prediction block generated based on the prediction mode can be sent to a subtraction unit and an addition unit.
[0223] To determine the optimal prediction mode, all prediction modes in the prediction mode candidate set are searched. The optimal one can be found by searching for the optimal number of iterations or by other decision processes for the purpose of reducing the computational complexity. For example, in the first stage, all of the intra-frame prediction mode candidates are selected. In the second stage, some modes that show good performance in terms of image degradation are selected. The optimal prediction mode is selected by considering not only the degradation of image quality but also the amount of generated bits. In addition to the above method, various methods can be used to reduce the amount of calculation / complexity. can be applied.
[0224] In addition, the prediction mode determination unit may be generally included only in the encoder. , which may be included in the decoder depending on the encoding / decoding settings. For example, The prediction method includes template matching or the intra-frame prediction mode of the current block. In the latter case, the prediction mode is implicitly determined at the decoder. It can be understood that a method for obtaining it was used.
[0225] The prediction mode encoding unit encodes the prediction mode selected by the prediction mode determination unit. The index information corresponding to the prediction mode in the prediction mode candidate group is coded. Alternatively, the prediction mode can be predicted and information about it can be encoded. In the former case, it can be a method applied to the luminance component, and in the latter case, to the chrominance components. The present invention is not limited to the above.
[0226] When predicting and encoding a prediction mode, the predicted value (or prediction information) of the prediction mode is MPM is a single prediction model. The prediction mode may be configured in one prediction mode or may be configured in multiple prediction modes. The number of MPMs is determined by the number of candidate groups (k, where k is an integer equal to or greater than 1, such as 1, 2, 3, 6, etc.). When an MPM is composed of multiple prediction modes, the MPM candidates and It can be said.
[0227] MPM candidates can be supported under a fixed configuration or under various encoding / decoding conditions. Some elements can support adaptive configuration. Examples of adaptive configuration are: The candidate group configuration is determined by which reference pixel hierarchical layer is to be used among the multiple reference pixel hierarchical layers. Intra prediction can be performed on a block-by-block basis or on a sub-block-by-sub-block basis. The candidate group can be determined depending on the implementation. We assume that the MPM candidates are constructed under the above conditions, and we consider not only the MPM candidates but also other intra-frame predictions. It should be appreciated that the candidate set configuration for the modes can also be adaptive.
[0228] MPM is a concept that supports efficient coding of prediction modes. In the prediction mode of the block, a group of candidates can be formed in a prediction mode of high probability of occurrence.
[0229] For example, the MPM candidate group may be a set of predefined prediction modes (or statistically frequently occurring prediction modes). DC, Plainr, Vertical, Horizontal, some diagonal modes, etc.), adjacent blocks (left The prediction modes can be configured as follows: side, top, top-left, top-right, bottom-left block, etc. Here, the prediction modes of adjacent blocks are L0 to L3 (left side blocks) in FIG. , T0~T3 (upper block), TL (upper left block), R0~R3 (upper right block) ), B0~B3 (bottom left blocks).
[0230] In an adjacent block (e.g., the left block), two or more sub-block positions (e.g., If a set of MPM candidates can be constructed from the L0, L2, etc., a predefined priority order is used. The prediction mode of the corresponding block is configured into a candidate group according to the position (e.g., L0-L1-L2, etc.) Alternatively, a set of MPM candidates can be constructed from two or more subblock positions. If this is not possible, the subblock corresponding to a predefined position (e.g. L0) is The prediction modes can be organized into candidate sets. In particular, the L3, Select the prediction modes of the T3, TL, R0, and B0 positions as the prediction modes of the corresponding adjacent blocks. The above description is based on the prediction modes of neighboring blocks as candidates. This is a partial example of constructing a complement group, but is not limited to this. Assume that the prediction modes of the device are organized into a set of candidates.
[0231] In addition, if one or more prediction modes are configured in the MPM candidate group, the one already included Modes derived from the above prediction modes can also be added to the MPM candidate group. In detail, if the kth mode (directional mode) is included in the MPM candidate group, the corresponding mode (modes with intervals of +a, -b based on k. a and b are 1, 2, 3, an integer equal to or greater than 1, can additionally be included in the MPM candidate population.
[0232] There may be a priority for the MPM candidate group configuration, and the prediction model of the neighboring block may be The MPM candidate group is constructed in the order of mode-preset prediction mode-induced prediction mode, etc. The process of constructing the MPM candidates is as follows: If the prediction mode is already included in the above process, The corresponding prediction mode is not included in the candidate group, and the procedure moves to the next priority candidate. It can include.
[0233] Next, it is assumed that the MPM candidate set consists of six prediction modes.
[0234] For example, LT-TL-TR-BL-Planar-DC-Vertical-Horizontal-Diagonal mode The candidate set can be constructed in the order of the prediction modes of the adjacent blocks. In this case, the prediction mode is configured in advance and the already set prediction mode is to be additionally configured. .
[0235] Or LT-Planar-DC-<L+1> - <l-1>-<T+1> - <T -1>-Candidates can be constructed in the order of vertical-horizontal-diagonal mode, etc. The prediction modes of adjacent blocks and a part of the preset prediction modes are configured preferentially, and the adjacent blocks are This is derived under the assumption that a prediction mode with a similar direction to the lock prediction mode occurs. In this case, it is possible to additionally configure a part of the already set prediction modes. .
[0236] The above examples are only a few examples of MPM candidate group configurations, and various modifications are possible without being limited thereto. Examples are possible.
[0237] The MPM candidate set is classified into two groups: unary binary (UB) and unary bin (BIN) based on the index in the candidate set. arization, Truncated Rice binarization Binarization can be used, i.e., a small integer. Candidates with smaller indices are assigned shorter bits, and candidates with larger indices are assigned A long length of bits can be allocated to represent the mode bits.
[0238] Modes that could not be included in the MPM candidate group are classified into the non-MPM candidate group. In addition, depending on the encoding / decoding settings, the non-MPM candidate group may have two or more candidates. can be classified into complements.
[0239] Next, there are 67 modes in the prediction mode candidate set, including directional and non-directional modes. The MPM candidate group consists of 61 prediction modes, with 6 MPM candidates. This assumes the following case.
[0240] If the non-MPM candidate group consists of one member, it is included in the MPM candidate group composition process. Since the remaining prediction modes were not able to be selected, an additional candidate group construction process was required. Therefore, fixed-length binary coding (Fi) is used based on the index in the non-MPM candidate set. xed Length Binarization), Truncated Unary Binary Derivation (T runcated unary binarization) can.
[0241] Assuming that the non-MPM candidate group consists of two or more candidates, in this example, -MPM candidate group is non-MPM_A (hereinafter, candidate group A) and non-MPM_B (hereinafter, A candidate group (p items, more than the number of MPM candidate groups) is classified into B candidate group (q items, A Candidate group number (or more) for the current block prediction mode with high probability of occurrence Here, we can add the process of constructing the A candidate group.
[0242] For example, having equal spacing among the directional modes (e.g., 2nd, 4th, 6th modes, etc.) Configure some prediction modes to be A candidates or use existing prediction modes (e.g., MPM candidates) A mode derived from a prediction mode included in the group can be configured. The remaining prediction modes from the M candidate group configuration and the A candidate group configuration can be configured as the B candidate group. No additional candidate group construction process is required. Based on the indexes in candidate groups A and B, Binary conversion such as fixed length binarization or truncated unary binarization can be used.
[0243] The above example is a partial example in which the non-MPM candidate group is composed of two or more. There is no limitation and various modifications are possible.
[0244] Next, a process for predicting and encoding a prediction mode will be described.
[0245] The prediction mode of the current block matches the MPM (or some mode in the MPM candidate set). You can check information about whether the function is enabled (mpm_flag).
[0246] If it matches an MPM, the MPM index is determined by the MPM configuration (one or more). Then, the code of the current block can be checked. Complete the encryption process.
[0247] If the non-MPM candidate group does not match the MPM, if the non-MPM candidate group consists of one non-MPM candidate, You can check the MPM index information (remaining_idx). Then, the encoding process of the current block is completed.
[0248] If the non-MPM candidate group consists of multiple candidates (two in this example), Information on whether the prediction mode of matches some prediction modes in the A candidate set (non_m pm_flag) can be checked.
[0249] If it matches the A candidate group, the A candidate group index information (non_mpm_A_idx) If the A candidate group does not match the B candidate group index information (rem Then, the coding process of the current block is Completed.
[0250] When the prediction mode candidate group configuration is fixed, the prediction mode supported by the current block, the adjacent The prediction modes supported by the selected block and the preset prediction modes have the same prediction number index. You can use the .
[0251] On the other hand, if the prediction mode candidate group configuration is adaptive, the prediction mode supported by the current block is The prediction modes supported by adjacent blocks and the preset prediction modes are the same. You can use the same index or a different prediction number index. Please refer to Figure 4.
[0252] In the prediction mode encoding process, a prediction mode candidate group unification ( For example, the prediction mode of the current block is -5~ It is one of the prediction mode candidates for mode 61, and the prediction modes of the adjacent blocks are 2 to It can be one of the prediction mode candidates of the 66th mode. In this case, the adjacent block Some of the prediction modes of the block (mode 66) are not supported by the prediction mode of the current block. Therefore, a process of unifying these modes is performed during the prediction mode coding process. That is, when supporting a fixed intra-frame prediction mode candidate group configuration, This is a process that is not required when supporting adaptive intra-frame prediction mode candidate group configuration. This may be a desired process, and a detailed description of this process will be omitted.
[0253] Unlike the method using the MPM, the prediction mode in the prediction mode candidate group is indexed. A space can be allocated to perform the encoding.
[0254] For example, the prediction modes are assigned indexes according to a predefined priority. Once the prediction mode of the block is selected, the method of encoding the corresponding index corresponds to it. This is because a set of prediction mode candidates is fixed and a fixed index is assigned to each prediction mode. This means that a resource is assigned to the
[0255] Alternatively, if the prediction mode candidates are adaptively constructed, the fixed index Therefore, the prediction mode can be assigned according to the adaptive priority. When the prediction mode of the current block is selected, the corresponding index is assigned to the block. A method of coding the frame of a prediction mode candidate set can be applied. The prediction modes are efficiently coded by different indexes assigned to the prediction modes according to the composition. That is, the adaptive priority is set as the prediction mode of the current block. Assign candidates that are likely to be selected to indices where short mode bits occur. This is why.
[0256] Next, the prediction mode candidates are selected from the preset prediction modes (directional and non-directional modes), Supports 8 prediction modes including color copy mode and color mode (chrominance components ) is assumed.
[0257] For example, the default prediction modes are Planar, DC, horizontal, vertical, and diagonal modes (this For example, Diagonal down left) supports 4 modes and 1 color mode ( C) and three color copy modes (CP1, CP2, CP3) are supported. The basic order of indexes assigned to prediction modes is the default prediction mode - color copy. Mode - can be given as color mode etc.
[0258] Here, the preset prediction modes are the directional mode, the non-directional mode, and the color copy mode. The modes can be easily classified into prediction modes, which are classified into prediction methods. In the case of the mode, it can be a directional mode or a non-directional mode, which is a preset prediction There may be overlaps with the mode. For example, if the color mode is In the case of the prediction mode, there may be a case where the prediction mode overlaps with the vertical mode, which is one of the preset prediction modes.
[0259] When the number of prediction mode candidates is adaptively adjusted according to the encoding / decoding setting, If this occurs, the number of candidates can be adjusted (from 8 to 7). Or, If the number of prediction mode candidates is fixed, when the overlap occurs, the other candidates are selected. We can assign indexes by adding and taking into account the complement. In addition, the adaptive prediction mode candidates may include a variable mode such as a color mode. Therefore, the adaptive index allocation can be performed. This case can be regarded as an example of an adaptive prediction mode candidate group configuration.
[0260] Next, we will explain how to assign indexes adaptively depending on the color mode. The index is Planar(0)-Vertical(1)-Horizontal(2)-DC(3)-CP1(4). -CP2(5)-CP3(6)-C(7) are assumed to be assigned in that order. If the prediction mode does not match the preset prediction mode, the index assignment is performed in the above order. This is premised on the above.
[0261] For example, if the color mode is a preset prediction mode (Planar, Vertical, Horizontal, DC mode ), the prediction mode that matches the color mode index (7) The index of the matching prediction mode (one of 0 to 3) is the same as the previously set prediction mode. The Diagoanal down left is filled. If the mode is horizontal, the Planar(0)-Vertical(1)-Diagoanal dow n left(2)-DC(3)-CP1(4)-CP2(5)-CP3(6)-horizontal( 7) can be performed as an index assignment.
[0262] Or, if the color mode matches one of the predefined prediction modes, the 0th index is used. The prediction mode that matches the frame is filled in. Then, the color mode index (7) The preset prediction mode (Diagoanal down left) is satisfied. If the filled prediction mode is not an existing 0th index (i.e., Plan If you are not in ar mode, you can adjust the existing index configuration. Specifically, when the color mode is DC mode, DC(0)-Planar(1)-Vertical(2 )-Horizontal(3)-CP1(4)-CP2(5)-CP3(6)-Diagonal do We can perform index assignment like this: wn left(7).
[0263] The above examples are only a few examples of adaptive index allocation, and are not limited to these. Various modifications are possible. Also, fixed length binarization, Binary evolution such as unary binary evolution, truncated unary binary evolution, truncated rice binary evolution, etc. can be used.
[0264] Next, an index is assigned to a prediction mode that belongs to the prediction mode candidate group, and encoding is performed. Another example will now be described.
[0265] For example, the prediction mode and prediction method are classified into a plurality of prediction mode candidate groups. This corresponds to a method of assigning an index to a prediction mode belonging to a candidate group and encoding it. In this case, the candidate group selection information coding can be performed prior to the index coding. As an example, there are prediction modes that perform prediction in the same color space, such as directional mode and non-directional mode. A mode or color mode can belong to one candidate group (hereafter, S candidate group), and other colors can belong to the same group. The color copy mode, which is a prediction mode that predicts in the -space, is one candidate group (hereinafter, candidate D group).
[0266] Next, the prediction mode candidates are set to the preset prediction mode, color copy mode, and color mode. It is assumed that nine prediction modes including the above are supported (chrominance components).
[0267] For example, the preset prediction modes are Planar, DC, Horizontal, Vertical, and Diagonal modes. Supports 4 modes, 1 color mode (C) and 4 color copy modes (CP1, CP2, S candidates are the pre-configured prediction modes and color models. The D candidate group is composed of color copy modes. There can be four candidates for which
[0268] The S candidate set is an example of an adaptively configured prediction mode candidate set, and the adaptive index An example of allocation has been described above, so a detailed explanation will be omitted. The D candidate group is fixedly configured. Since this is an example of a prediction mode candidate group, a fixed index assignment method can be used. For example, an index like CP1(0)-CP2(1)-CP3(2)-CP4(3) The system can then carry out the task allocation.
[0269] Based on the index in the candidate set, fixed length binarization, unary binarization, truncated You can use binary conversion such as unary binary conversion and truncated rice binary conversion. The present invention is not limited to the above examples, and various modifications are possible.
[0270] The construction of candidate groups such as MPM for predictive mode coding can be performed on a block-by-block basis. Alternatively, the candidate group construction process can be omitted, and a predetermined candidate group can be used or a variety of candidates can be used. This is useful for reducing complexity and other purposes. The configuration may be such that the device can provide support for the purpose.
[0271] In one example (1), a predefined set of candidates is used or the encoding / decoding settings are One of several predefined candidate sets can be used. For example, the MPM candidate set: {Planar-DC-Vertical-Horizontal-Diagonal down left<6 in Figure 5 6>-Diagonal down right <Figure 5, No. 34>} Alternatively, adjacent blocks in the MPM candidate set can be used. The set of candidates constructed when none are available can be applied to this example.
[0272] In one example (2), we can use a set of candidates for blocks that have already been coded. Here, The blocks that have been encoded are then stored in the encoding order (predetermined scanning method, e.g., z-scan, ve The selection should be based on the following: vertical scan, horizontal scan, etc. Or you can select adjacent blocks such as the left, top, top left, top right, bottom left, etc. of the current block. However, adjacent blocks can only be accessed by the current block. A division unit that can be referenced (for example, a block can be referenced even if the slice or tile to which it belongs is different) attributes. For example, tiles that belong to the same tile group but are different tiles. It is possible to limit the location of each block to a non-referenceable division unit (e.g., the block to which each block belongs). When different slices or tiles have different attributes that cannot be referenced. If the block belongs to a group, the block in question can be excluded from the candidates. do.
[0273] Here, the adjacent block can be determined according to the state of the current block. For example, For example, if the current block is a square, among the blocks located according to the first priority They can borrow (or share) available candidate blocks, or they can borrow (or share) the current block. If the block is rectangular, the available block among the blocks located by the second priority Here, depending on the ratio of the width and height of the block, the second or A third priority order can be supported. The priority order for selecting candidate blocks to borrow is , left-top-top-top-bottom-top-left, top-left-top-top-top-bottom-left, etc. Here, the first to third priorities may all have the same configuration or all may have the same configuration. Some of the components may have different configurations or some of the components may have the same configuration.
[0274] The candidate set of the current block is selected from adjacent blocks only if it is greater than or equal to a certain threshold. or adjacent only if it is below a certain threshold. The boundary value is a value that allows borrowing from a candidate set. The boundary value can be defined as the minimum or maximum size of a block. It can be expressed as landscape (W), portrait (H), W×H, W*H, etc., where W and H are 4, It can be an integer of 8, 16, 32 or greater.
[0275] In example (3), a common candidate set is constructed from the top blocks of a given block lattice. A lower block in a higher block can use the corresponding candidate set. Here, the number of subblocks can be an integer equal to or greater than 1, such as 1, 2, 3, or 4. do.
[0276] Here, the upper block is the ancestor block (including the parent block) of the lower block. or a block constructed from a bundle of arbitrary blocks, where: An ancestor block is a block that is created in the previous stage of the division process to obtain a lower block (difference in division depth). For example, in FIG. 4b, 4N× The parent block of the 0th and 1st subblocks of 2N can represent 4N×4N in Figure 4a. .
[0277] The candidates for the upper block are selected from the lower block only if they exceed the first boundary value. or less than or equal to a second threshold. A borrowing from a lower block can only be accomplished if
[0278] Here, the boundary value is defined as the minimum or maximum size of a block that allows candidate borrowing. Only one or both of the above boundary values may be supported. The boundary value can be expressed as the block's width (W), height (H), W×H, W*H, etc. The W and H can be integers of 8, 16, 32, 64 or more.
[0279] On the other hand, the candidates of the lower block are selected as the upper block only if they exceed the third boundary value. or below a certain fourth threshold. Only the borrower in the block above can borrow from the block above.
[0280] Here, the boundary value is defined as the minimum or maximum size of a block that allows candidate borrowing. Only one or both of the above boundary values may be supported. The boundary value can be expressed as the block's width (W), height (H), W×H, W*H, etc. The W and H can be integers of 4, 8, 16, 32 or more.
[0281] Here, is the first boundary value (or the second boundary value) greater than the third boundary value (or the fourth boundary value)? They can be the same.
[0282] Selectively use candidate pool borrowing (or sharing) based on any one of the above-mentioned embodiments. It is possible to selectively use the candidate group borrowing based on at least two combinations of Examples 1 to 3. In addition, the detailed configuration of each embodiment can be selected based on one of the candidate groups. Can be used selectively, and can be used selectively by combining one or more detailed configurations. can be done.
[0283] In addition, the attributes of the blocks involved in the borrowing of the candidate groups (size / shape / position / Information about the division state (division method, division type, division depth, etc.) It is also possible to explicitly handle coding elements such as image type, color content, etc. The complement borrowing setting can act as an input variable. Based on this, borrowing of the candidate group can be accomplished.
[0284] The prediction related information generated by the prediction mode coding unit is transmitted to the coding unit and is then bitstream-scaled. It can be included in the stream.
[0285] In the image decoding method according to an embodiment of the present invention, the intra prediction may be configured as follows. The intra-frame prediction of the prediction unit includes a prediction mode decoding step, a reference pixel construction step, and a prediction block. The video decoding apparatus may further include a prediction mode decoding step, A prediction mode decoding unit for implementing a reference pixel configuration step and a prediction block generation step, The above-mentioned process may be configured to include a pixel construction unit and a predicted block generation unit. Some steps may be omitted or other steps may be added, and the steps may not be in the order described above. Other orders can be used.
[0286] The reference pixel construction unit and the prediction block generation unit of the video decoding device are Since the prediction mode decoding unit has the same function as the prediction mode decoding unit, detailed description will be omitted. This can be achieved by using the method used in the encoding unit in reverse.
[0287] (Sub-block-based intra-picture prediction)
[0288] FIG. 8 shows various sub-block divisions that can be obtained based on the coding block. Here, the coding block is called the parent block, and the sub-blocks can be child blocks. Here, a subblock can be a unit on which prediction is performed or a unit on which transformation is performed. In this example, we assume that one prediction information is shared between sub-blocks. , one prediction mode is generated and used for each sub-block.
[0289] Referring to FIG. 8, the coding order of the sub-blocks is determined according to various order combinations of a to p in FIG. For example, z-scan (left → right, top → bottom), vertical l scan (top → bottom), horizontal scan (left → right), inverse vertical scan (bottom → top), inverse horizontal s It can be in one of two orders, such as "can" (right → left).
[0290] The coding order may be an order already agreed to by the video unit / decoder, or The coding order of the sub-blocks may be determined by taking into account the division direction of the parent block. For example, if a parent block is divided horizontally, the coding order of the sub-blocks is v A vertical scan can be determined. The parent block is split vertically. In this case, the coding order of the sub-blocks can be determined as horizontal scan. Cut.
[0291] When encoding is performed in subblock units, the reference data used for prediction is closer to the Only one prediction mode is generated, and this is done for each sub-block. Since it is a method of sharing, it can be efficient.
[0292] For example, referring to FIG. 8B, when encoding is performed in parent block units, the lower right subblock A block can perform prediction using pixels adjacent to the parent block. When encoding by block, the lower right subblock is encoded in a predetermined encoding order (in this example, zs Since the upper left, upper right, and lower left sub-blocks are restored by Therefore, prediction can be performed using neighboring pixels rather than a block.
[0293] One or more likely occurrences are detected for intra-frame prediction by optimal division considering image characteristics. Candidates can be constructed based on the partitioning pattern.
[0294] In this example, we assume that the partition information is generated using an index-based partitioning method. The candidates can be divided into various types as shown below.
[0295] Specifically, a candidate set can be configured in N divided forms, where N is The candidate set may be an integer greater than or equal to 2. The candidate set may be the seven candidates shown in FIG. It may include a combination of at least two of the division forms.
[0296] The parent block is determined by selectively using any one of a plurality of division forms belonging to the candidate group. The selection can be made by signaling in the video coding device. The index may be based on a parent block index. Alternatively, the selection may be information specifying a division form of the video decoding process. The device may also consider the attributes of the parent block. Position, size, shape, width, width to height ratio, length of either width or height, division Depth, image type (I / P / B), color components (e.g., luminance, chrominance), intra-frame prediction mode The value of the prediction mode, whether the intra prediction mode is a non-directional mode, the angle of the intra prediction mode, the reference image The block may refer to a coding block. or means a prediction block and / or a transformation block corresponding to a coding block. The position of the block may be determined by determining whether the block is located on the boundary of a given image (or a fragment image) of a parent block. Here, the image (or the fragment image) means that the parent block is located in Belonging picture, slice group, tile group, slice, tile, CTU column ( CTU row), or at least one of the CTUs.
[0297] In the example (1), candidate groups such as {a~d} and {a~g} in FIG. 8 can be constructed. This can be a candidate group configuration that takes into account various division forms. Then, we can assign different binary bits to each index (alphabet Assume that the indexes are assigned in order. This is also the case in the next example.
[0298] [Table 1] In Table 1, bin type 1 is an example of binarization that takes into account all possible division forms. For bin type 2, the bit indicating whether or not division is possible (the first bit) is assigned first. If the bit is 1, the data is not divided among the possible division forms. This can be an example of binarization that is performed by removing only candidates that match.
[0299] In the example (2), we can construct candidate sets such as {a, c, d} and {a, f, g} in Figure 8. This is a candidate group configuration that takes into account division in a specific direction (horizontal or vertical). Assuming the case of {a, f, g}, we can assign various binary bits to each index. Can be assigned.
[0300] [Table 2] Table 2 shows an example of binarization based on block attributes. This is an example of a bin type 1 where the parent block is If the block is a square, assign one bit if it is not divided, horizontally or vertically. This may be an example of allocating 2 bits when the signal is divided in the direction.
[0301] In the case of bin type 2, when the parent block is longer horizontally in the rectangle, the horizontal For example, if the number of bits is 1, the remaining bits are assigned 2 bits. In type 3, when the parent block is long vertically within the rectangle, it is split vertically. This can be an example of assigning 1 bit if the parent block is used, and 2 bits if the parent block is used. If it is determined that further splitting such as in the form of a lock is likely to occur, shorter bits are added. However, the present invention is not limited to this example, and includes variations including the opposite case. It is possible.
[0302] In the example (3), a set of candidates such as {a, c, d, f, g} in FIG. 8 can be constructed. This can be another example of candidate set construction that takes into account division in a particular direction.
[0303] [Table 3] In Table 3, bin type 1 assigns the flag (first bit) indicating whether or not division is possible. Then, a flag is assigned to distinguish the number of divisions. If the lag (second bit) is 0, the number of divisions is 2, if it is 1, the number of divisions is 4. Then, the following flag can be a flag representing the split direction. If the value is 0, it means that the pixel is divided horizontally, and if the value is 1, it means that the pixel is divided vertically. The description is given by way of example only and is not limiting, and various modifications, including opposite configurations, are possible. do.
[0304] The partition information may be a configuration that is supported in a general situation, but It is possible to change to other settings depending on the circumstances. Supporting the creation of a partition structure or substituting another partition structure for the partition structure represented by the partition information. can be done.
[0305] For example, there may be a division form that is not supported by the block attributes. Since the block attributes have been mentioned in the previous example, we will not explain them in detail. A block may refer to at least one of a parent block or a subblock.
[0306] For example, the supported partitioning pattern is {a, f, g} in FIG. 8, and the parent block size is 4 Let us assume that the number of pixels is M×4N. If the minimum value condition of a block in an image, a given parent block When some division forms are not supported due to being located at the boundary of an image (or a fragment image) For the following example, the minimum horizontal length of a block in an image is 2M. and assume that the minimum block width is 4*M*N.
[0307] First, we can reconstruct the candidate set by removing the unobtainable partition forms. The candidates that can be obtained are 4M×4N, 4M×N, and M×4N, and the candidates that cannot be obtained (4 The candidate set to be reconstructed except for 4M×4N, 4M×N can be 4M×4N. In this case, binarization can be performed again on the candidates in the reconstructed candidate set. The flag (1 bit) can be set to 4M×4N or 4M×N.
[0308] In another example, the set of candidates can be reconstructed with candidates that replace unobtainable partitioning forms. In the example, the division that cannot be achieved can be a vertical division (4 divisions). However, ,The vertical partitioning pattern is maintained by substituting other partitioning patterns (e.g., 2M×4N) to select the candidate set. This allows the existing flag configuration based on the existing division information to be maintained as is. It is possible.
[0309] As in the previous example, the number of candidates is adjusted or the candidates are reorganized by replacing existing candidates. The above examples are merely illustrative of some cases, and various modifications are possible. be.
[0310] (Sub-block coding order)
[0311] Various sub-block coding orders can be set as shown in FIG. It can be implicitly determined by the encoding / decoding settings. type, color components, parent block size / shape / position, block width / height ratio, prediction Mode-related information (e.g., intra-frame prediction mode, reference pixel positions used, etc.), partition status, etc. etc. can be included in the encoding / decoding element.
[0312] Alternatively, explicit manipulation of the coding order of the sub-blocks is possible. A candidate group is formed from candidates that are likely to occur depending on the division form, and selection information for one of them is Therefore, the coding order candidates supported according to the division form are adaptively generated. It can be configured.
[0313] As in the above example, the coding of the sub-blocks is performed using one fixed coding order. However, a method that applies an adaptive coding order is also possible.
[0314] Referring to FIG. 8, various encoding orders are generated by various order allocations of a to p shown in the figure. The positions and numbers of sub-blocks obtained by each division type are Since the coding order can be different, it is important to configure the coding order specific to the partitioning format. In addition, the division into sub-blocks is not performed as shown in FIG. Therefore, no processing is required for the coding order. When processing information, the division information is checked first, and then subblocks are selected based on the division information. It is possible to generate information about the coding order of blocks.
[0315] Referring to FIG. 8(c), a and b are assigned 0 and 1, respectively. and inverse scan, where 1 and 0 are applied, can be supported as candidates. It is possible to generate a one-bit flag to select one of these.
[0316] Or, referring to FIG. 8(b), z-scan where a to d are 0 to 3, 1, 3, 0, and 2 are applied, and the z-scan is rotated 90 degrees to the left, 3 and 2, respectively. , 1, 0 applied, 2, 0, 3, 1 applied respectively You can also select one of the z-scans rotated 90 degrees to the right. It is possible to generate one or more flags for
[0317] Next, a case where the coding order of the sub-blocks is implicitly determined will be described. In the case of obtaining the division forms (c) {or (f)} and (d) {or (g)} in FIG. (See FIG. 5 for prediction modes.)
[0318] For example, the intra-screen prediction mode is vertical mode, horizontal mode, diagonal down Right direction mode (modes 19 to 49), Diagoanal down l eft direction mode (51 and above), diagonal up right direction mode (17th or lower), vertical scan, horizontal scan An can be determined.
[0319] Or, the in-screen prediction mode is a diagonal down left mode ( 51 or higher), vertical scan, inverse horizon ntal scan can be determined.
[0320] Or, the intra-screen prediction mode is a diagonal up right mode (1 7 or lower), inverse vertical scan, horizon tal scan can be determined.
[0321] The example may be an encoding sequence according to a predetermined scan order. The scan order is z-scan, vertical scan, horizontal scan. n, or the position and distance of the pixel referenced during intra prediction. For this purpose, the inverse s can be additionally considered.
[0322] FIG. 9 is a diagram showing a reference pixel area used based on an intra-frame prediction mode according to an embodiment of the present invention. Referring to FIG. 9, the area referenced according to the direction of the prediction mode is a shading area. You can check that it has been processed.
[0323] In Fig. 9(a), the regions adjacent to the parent block are the left, upper, upper left, upper right, and lower left regions. Figure 9(b) shows an example of the diagonal up right mode. 9(c) shows the left side area referred to in horizontal mode. (d) in Fig. 9 is referenced in the diagonal down right direction mode. Fig. 9(e) shows the upper region referred to in vertical mode. FIG. 9(f) is referenced in the diagonal down left direction mode. The upper and upper right regions are shown.
[0324] When prediction is performed using adjacent reference pixels (or reconstructed pixels of a subblock), The coding order of blocks can be predefined without the need to signal related information separately. There may be an advantage that the division may have various forms, which may be referred to. Based on the region (or prediction mode), the following examples can be given:
[0325] FIG. 10 shows a prediction mode in the diagonal up right direction according to an embodiment of the present invention. 1 shows an example of a coding order that can be used in a code block. Examples of how priority is assigned to a check can be seen in (a) to (g) of Figure 10. Cut.
[0326] FIG. 11 illustrates a coding order that may be had in horizontal mode according to one embodiment of the present invention. An example is shown in FIG. 11 where a subblock adjacent to the left is assigned a precedence order. This can be confirmed in (a) to (g) of the above.
[0327] FIG. 12 shows a prediction of the diagonal down right direction according to an embodiment of the present invention. 13 shows an example of a coding order that can be used in the mode. Examples of how priorities are assigned to blocks can be seen in Figure 12 (a)-(g). Cut.
[0328] FIG. 13 illustrates a coding order that may be had in vertical mode according to one embodiment of the present invention. An example is shown in FIG. 13 where a sub-block adjacent to the upper side is assigned a precedence rank. This can be confirmed in (a) to (g) of the above.
[0329] FIG. 14 shows a diagonal down left mode according to an embodiment of the present invention. 1 shows an example of a coding order that can be used in the above-mentioned embodiment. Examples of how priorities are assigned to blocks can be seen in (a) to (g) of FIG. 14.
[0330] The above example is an example of defining the coding order from adjacent regions where coding / decoding has been completed. Other variations are possible. It is also possible to define the coding order according to other coding / decoding elements. A wide variety of configurations are possible.
[0331] FIG. 15 shows a coding order taking into account an intra-frame prediction mode and a division form according to an embodiment of the present invention. In detail, the intra prediction mode is implicitly set for each division type. The coding order of the subblocks can be determined. In this case, an example of candidate group reconstruction that is replaced with another division form is described. For this purpose, we assume that the parent block is 4M×4N.
[0332] Referring to FIG. 15(a), a 4M×N type is used for sub-block-based intra prediction. In this example, the image can be divided into two parts in the inverse vertical scan order. If a 4M×N partition is not available, the 2 The division into M×2N division forms can be performed. The coding order for this case is as shown in FIG. Since it is shown on the front page, detailed explanation will be omitted. If 2M×2N form cannot be obtained, Then, the next priority division into 4M×2N forms can be performed. It is possible to support division by priority, and based on this, division by subblock unit is performed. If all predefined partition patterns are not available, The parent block cannot be divided into subblocks, and coding is performed on the parent block. It becomes clear that...
[0333] Referring to FIG. 15(b), the M×4N format is used for sub-block-based intra prediction. As shown in FIG. 15(a), the coding order is predicted based on each division form. In this example, it is assumed that the order of substitution is 2M×2N, then 2M×4N. It is possible.
[0334] Referring to FIG. 15(c), a 2M×2N format is used for sub-block-based intra prediction. In this example, it is understood that the order is 4M x 2N, then 2M x 4N. It is possible.
[0335] Referring to FIG. 15(d), a 4M×N format is used for sub-block-based intra prediction. In this example, it is understood that the order is 2M x 2N, 4M x 2N. It is possible.
[0336] Referring to FIG. 15(e), for sub-block-based intra prediction, the M×4N format is used. In this example, it is understood that the order is 2M x 2N, then 2M x 4N. It is possible.
[0337] The above example shows that when an unobtainable division form exists, the division into other forms is performed according to a predetermined order. This is just one example of support, and various modifications are possible.
[0338] For example, if the partitioning patterns are {4M×4N, M×4N, 4M×N}, If M×4N or 4M×N form is not available, it will be replaced with 2M×4N or 4M×2N form. It is possible that this may be the case.
[0339] As in the previous example, the subblock division setting is determined according to various encoding / decoding factors. The coding / decoding elements are derived from the subblock division already explained above. Since it is possible to derive the above, detailed description will be omitted.
[0340] In addition, when the division of the subblocks is determined, prediction and conversion can be performed as is. As described above, the intra-frame prediction mode is determined for each parent block. Predictions can be carried out using
[0341] In addition, the transformation and inverse transformation are determined based on the parent block and the associated settings are determined by the parent block. According to the setting, the transform and inverse transform can be performed on a sub-block basis. determines the relevant settings based on the subblock and then performs subblock-level changes according to the settings. Transform and inverse transform can be performed based on one of the settings. It is possible.
[0342] The method of the present invention is implemented in the form of program instructions executable by various computer means. The present invention can be embodied and recorded on a computer-readable medium. This may include, alone or in combination, program instructions, data files, data structures, etc. The program instructions recorded on the computer readable medium may be specific to the present invention. The software is designed and constructed in accordance with the principles of the present invention, or is otherwise known to those skilled in the art of computer software. It can also be available.
[0343] Examples of computer-readable media include ROM (Read Only Memory), AM, flash memory, etc., which store program instructions It may include a hardware device specially configured to store and execute the program. Examples of program instructions include functions such as those produced by a compiler. Not only machine code but also interpreters are used to The hardware device described above may include a high-level language code that is executable by a computer. The apparatus includes at least one software module for performing the operations of the present invention. can be configured to operate in conjunction with one another, and vice versa.
[0344] In addition, the above-described methods or devices may be embodied by combining all or part of the configurations or functions. The components may be implemented separately or in a single integrated circuit.
[0345] Although the present invention has been described with reference to a preferred embodiment, those skilled in the art will appreciate that The present invention is not limited to the above-mentioned embodiments, but may be modified in various ways without departing from the spirit and scope of the present invention as defined by the following claims. It will be understood that various modifications and variations of the disclosure may be made. [Industrial Applicability]
[0346] The present invention can be used to encode / decode video. < / array> < / qt>
Claims
1. An image decoding method executed by an image decoding device, comprising: performing intra prediction to generate a predicted block for the coding block; generating a residual block of the encoded block; reconstructing the coding block based on the prediction block and the residual block; Prepare for this. The coding block is reconstructed by adding the prediction block and the residual block; performing the intra prediction includes interpolating reference samples; Selectively performing one of fixed filtering or adaptive filtering according to an intra prediction mode of the coding block for interpolating the reference sample; The fixed filtering uses one interpolation filter predefined in the image decoding device, and the adaptive filtering selectively uses one of a plurality of interpolation filters predefined in the image decoding device. Image decoding method.
2. The plurality of interpolation filters include at least one of a 4-tap cubic filter or a 4-tap Gaussian filter. The image decoding method according to claim 1.
3. An image coding method executed by an image coding device, comprising: performing intra prediction to generate a predicted block for the coding block; generating a residual block of the coding block based on the predicted block; encoding the residual block to encode the encoded block; Prepare for this. the residual block is generated by subtracting the prediction block from the coding block; performing the intra prediction includes interpolating reference samples; Selectively performing one of fixed filtering or adaptive filtering according to an intra prediction mode of the coding block for interpolating the reference sample; the fixed filtering uses one interpolation filter predefined in the image encoding device, and the adaptive filtering selectively uses one of a plurality of interpolation filters predefined in the image encoding device. Image encoding method.
4. A non-transitory computer-readable medium storing a bitstream generated by an image encoding method performed by an image encoding device, comprising: The image encoding method includes: performing intra prediction to generate a predicted block for the coding block; generating a residual block of the coding block based on the predicted block; encoding the residual block and encoding the encoded block into the bitstream; Prepare for this. the residual block is generated by subtracting the prediction block from the coding block; performing the intra prediction includes interpolating reference samples; Selectively performing one of fixed filtering or adaptive filtering according to an intra prediction mode of the coding block for interpolating the reference sample; the fixed filtering uses one interpolation filter predefined in the image encoding device, and the adaptive filtering selectively uses one of a plurality of interpolation filters predefined in the image encoding device. Non-transitory computer-readable medium.
5. A method for transmitting a bitstream generated by an image coding method executed by an image coding device, comprising the steps of: The image encoding method includes: performing intra prediction to generate a predicted block for the coding block; generating a residual block of the coding block based on the predicted block; encoding the bona fide residual block and encoding the encoded block into the bitstream; Prepare for this. the residual block is generated by subtracting the prediction block from the coding block; performing the intra prediction includes interpolating reference samples; Selectively performing one of fixed filtering or adaptive filtering according to an intra prediction mode of the coding block for interpolating the reference sample; the fixed filtering uses one interpolation filter predefined in the image encoding device, and the adaptive filtering selectively uses one of a plurality of interpolation filters predefined in the image encoding device. method.
Citation Information
Patent Citations
Image encoding method, image decoding method, image encoder, image decoder, and program thereof
JP2013098957A
Improved Interpolation Filters for Intra Prediction in Video Coding
JP2019530351A
Processing of reference samples used for intra prediction of picture blocks - Patents.com
JP2020509714A
Video coding method and apparatus utilizing adaptive interpolation filter
US20190253707A1
Intra prediction device, image encoding device, image decoding device, and program
WO2019189904A1
