Instructions
Title of invention: Method and device for encoding and decoding mode information and electronic equipment
Technical field
[0001]
The embodiments of the present invention relate to the field of video image technology, and in particular, to a method and device for encoding and decoding mode information and electronic equipment.
Background technique
[0002]
In video coding (also called image coding) standards (such as MPEG 2, H.264 / AVC, H.265 / HEVC, etc.), for the image area to be coded, for example, a coding unit (CU, coding unit) Alternatively, it may also be called a coding block (CB, Coding Block), and corresponding information (such as palette information, index information, prediction information, etc.) may be bitstream encoded, which may reduce the bit cost of encoding.
[0003]
At present, in order to further reduce the bit cost, the CU may be further divided and transformed to form one or more transform units (TU, Transform Unit) or may also be called transform blocks (TB, Transform Block). For example, the CU may be divided into one or more TUs having the same size, and this structure may be referred to as a uniform transform unit (UTU, Uniform Transform Unit) structure.
[0004]
For the UTU structure, the height and width of each TU can be the same. That is, the TU may have a square shape, and the size of the TU may be, for example, 2N × 2N, N × N, 1 / 2N × 1 / 2N (units are, for example, pixels × pixels, or sampling points × sampling points), and so on. In addition, different UTU modes can be used to divide the CU differently.
[0005]
It should be noted that the above introduction to the technical background is set forth only to facilitate a clear and complete description of the technical solution of the present invention and to facilitate understanding by those skilled in the art. It cannot be considered that these technical solutions are known to those skilled in the art simply because these solutions are described in the background of the present invention.
[0006]
Summary of the invention
[0007]
The inventor found that when encoding, the information in the UTU mode needs to be encoded into the bitstream, so that when decoding, the image can be decoded according to the UTU mode. However, there is currently no corresponding technical solution on how to encode and decode UTU mode information.
[0008]
Embodiments of the present invention provide a mode information encoding and decoding method, device, and electronic device. Encode and decode UTU mode information, and reduce the bit cost of encoding.
[0009]
According to a first aspect of the embodiments of the present invention, a method for encoding mode information is provided, including:
[0010]
Determine the uniform transformation unit mode used by the image coding unit;
[0011]
Determine the binary bit corresponding to the uniform transformation unit mode according to the size of the coding unit and / or the predetermined number of uniform transformation unit modes; and
[0012]
The binary bits corresponding to the uniform transformation unit pattern are encoded into the bit stream of the image.
[0013]
According to a second aspect of the embodiments of the present invention, there is provided an apparatus for encoding mode information, including:
[0014]
A mode determination unit, which determines the uniform transformation unit mode adopted by the encoding unit of the image;
[0015]
A bit determination unit, which determines the binary bits corresponding to the uniform transformation unit mode according to the size of the coding unit and / or the predetermined number of uniform transformation unit modes; and
[0016]
A bitstream encoding unit that encodes binary bits corresponding to the uniform transformation unit pattern into the bitstream of the image.
[0017]
According to a third aspect of the embodiments of the present invention, a method for decoding mode information is provided, including:
[0018]
Acquiring the binary bits corresponding to the uniform transformation unit pattern from the bit stream of the image according to the size of the coding unit of the image and / or the predetermined number of uniform transformation unit patterns;
[0019]
The uniform transformation unit mode adopted by the encoding unit is determined according to the binary bits corresponding to the uniform transformation unit mode.
[0020]
According to a fourth aspect of the embodiments of the present invention, a device for decoding mode information is provided, including:
[0021]
A bit acquisition unit that acquires the binary bits corresponding to the uniform transformation unit pattern from the bit stream of the image according to the size of the encoding unit of the image and / or the predetermined number of uniform transformation unit patterns;
[0022]
The mode determining unit determines the uniform transform unit mode adopted by the coding unit according to the binary bits corresponding to the uniform transform unit mode.
[0023]
According to a fifth aspect of the embodiments of the present invention, an electronic device is provided, including:
[0024]
An encoder comprising the encoding device for mode information as described in the second aspect; and / or
[0025]
A decoder including the decoding device for mode information as described in the fourth aspect.
[0026]
The beneficial effect of the embodiment of the present invention is that: according to the size of the coding unit (CU) and / or the predetermined number of uniform transformation unit (UTU) modes, the binary bits corresponding to the UTU mode are determined; UTU mode information is encoded and decoded, and the bit cost of encoding can be reduced.
[0027]
With reference to the following description and drawings, specific embodiments of the present invention are disclosed in detail, and the manner in which the principles of the present invention can be adopted is indicated. It should be understood that the embodiments of the present invention are not thus limited in scope. Within the scope of the spirit and terms of the appended claims, the embodiments of the present invention include many changes, modifications, and equivalents.
[0028]
Features described and / or illustrated for one embodiment may be used in one or more other embodiments in the same or similar manner, combined with features in other embodiments, or substituted for features in other embodiments .
[0029]
It should be emphasized that the term "comprising / comprising" as used herein refers to the presence of features, whole pieces, steps or components, but does not exclude the presence or addition of one or more other features, whole pieces, steps or components.
BRIEF DESCRIPTION
[0030]
Elements and features described in one drawing or one embodiment of the embodiments of the present invention may be combined with elements and features shown in one or more other drawings or embodiments. Furthermore, in the drawings, similar reference numerals indicate corresponding parts in several drawings, and may be used to indicate corresponding parts used in more than one embodiment.
[0031]
FIG. 1 is an example diagram of a square CU divided into one or more TUs under the UTU structure;
[0032]
FIG. 2 is an example diagram of a non-square CU divided into one or more TUs under the UTU structure;
[0033]
3 is another example diagram of a non-square CU divided into one or more TUs under the UTU structure;
[0034]
4 is a schematic diagram of a mode information encoding method according to an embodiment of the present invention;
[0035]
5 is a schematic diagram of an entropy encoding process according to an embodiment of the present invention;
[0036]
6 is an example diagram of encoding variable-length binary bits according to an embodiment of the present invention;
[0037]
7 is a schematic diagram of a mode information decoding method according to an embodiment of the present invention;
[0038]
8 is an exemplary diagram of decoding variable-length binary bits according to an embodiment of the present invention;
[0039]
9 is a schematic diagram of an apparatus for encoding mode information according to an embodiment of the present invention;
[0040]
10 is a schematic diagram of a mode information decoding device according to an embodiment of the present invention;
[0041]
11 is a schematic diagram of an electronic device according to an embodiment of the invention.
detailed description
[0042]
The foregoing and other features of the present invention will become apparent from the following description with reference to the drawings. In the specification and the drawings, specific embodiments of the present invention are disclosed in detail, which show some of the embodiments in which the principles of the present invention can be adopted. It should be understood that the present invention is not limited to the described embodiments. The invention includes all modifications, variations, and equivalents falling within the scope of the appended claims.
[0043]
In the embodiments of the present invention, the terms "first", "second", etc. are used to distinguish different elements in terms of titles, but do not mean the spatial arrangement or chronological order of these elements, and these elements should not be used by these terms Restricted. The term "and / or" includes any and all combinations of one or more of the associated listed terms. The terms "comprising", "including", "having", etc. refer to the presence of stated features, elements, elements or components, but do not exclude the presence or addition of one or more other features, elements, elements or components.
[0044]
In the embodiments of the present invention, the singular forms "a", "the", etc. include plural forms, which should be broadly understood as "a" or "a class" rather than being limited to the meaning of "a"; in addition, the term " "Description" should be understood to include both singular and plural forms unless the context clearly indicates otherwise. In addition, the term "based on" should be understood as "based at least in part on ..." and the term "based on" should be understood as "based at least in part on ..." unless the context clearly indicates otherwise.
[0045]
In the UTU structure, a CU can be divided into one or more TUs, all TUs have the same size. Figure 1 is an example diagram of a square CU divided into one or more TUs under the UTU structure. As shown in Figure 1, the size of the CU is 2N × 2N, which can be directly divided into a 2N × 2N TU (which can be called Not divided), or it can be divided into four N × N TUs (which can be called primary division), or it can be divided into 16 1 / 2N × 1 / 2N TUs (which can be called secondary division), or It can also be divided into 64 1 / 4N × 1 / 4N TUs (which can be referred to as cubic divisions), and so on; up to the smallest TU size allowed (eg, 4 sample points × 4 sample points in HEVC).
[0046]
FIG 2 is a non-square configuration UTU CU is divided into one or a plurality of TU example of FIG, 2, the size of the CU is 2 m × 2 n- (m> n-), may be directly divided into a 2 m × 2 n TU (may be called non-divided), or may be divided into 2 mn 2N × 2N TU (may be called one-time division), or may be divided into 4 × 2 mn N × N TU (may be called secondary division), or it can be divided into 16 × 2 mn 1 / 2N × 1 / 2N TUs (may be called cubic division), etc .; until the smallest TU size allowed (eg 4 × 4 in HEVC).
[0047]
Figure 3 is another example of a non-square CU divided into one or more TUs under the UTU structure. As shown in Figure 3, the size of the CU is 2 n × 2 m (m> n), which can be directly divided into A 2 n × 2 m TU (may be called undivided), or it may be divided into 2 mn 2N × 2N TUs (may be called one-time division), or it may be divided into 4 × 2 mn N × N TU (may be called secondary division), or it can be divided into 16 × 2 mn 1 / 2N × 1 / 2N TUs (may be called cubic division), etc .; until the minimum allowed TU size ( For example, 4 × 4 in HEVC).
[0048]
In the technology for future video coding, the size of the root node used for video coding can be set to a maximum of 64 × 64 and a minimum of 4 × 4; that is, the size of a CU can be between 64 × 64 and 4 × 4 Between, the maximum can be 64 × 64, the minimum can be 4 × 4.
[0049]
In the embodiment of the present invention, the number of UTU modes may be 4; the UTU mode may include: a first mode, indicating that the CU is not divided; a second mode, indicating that the CU is divided once; and a third mode, indicating that the CU is divided into two Sub-division; the fourth mode indicates that the CU is divided three times. It is worth noting that the embodiments of the present invention are not limited to this, for example, more or fewer UTU modes may be set as needed.
[0050]
In the following embodiments, utu_mode will be used to represent UTU mode; for example, utu_mode = 0 represents the first mode, utu_mode = 1 represents the second mode, utu_mode = 2 represents the third mode, and utu_mode = 3 represents The fourth model.
[0051]
For example, a certain CU has a size of 64 × 64, and utu_mode = 0 means that the CU is not divided and will be transformed on 64 × 64 blocks. For another example, the size of the CU is 64 × 64, and utu_mode = 1 means that the CU is divided once; that is, the CU can be divided into four 32 × 32 TUs, and the four 32 × 32 blocks will be divided. Transform.
[0052]
For another example, the size of the CU is 64 × 64, and utu_mode = 2 means that the CU is divided twice; that is, the CU can be divided into four 32 × 32 blocks, and each 32 × 32 block is divided into four 16s. TU of × 16, and transform on these 16 16 × 16 blocks respectively.
[0053]
For another example, the size of a CU is 32 × 64, and utu_mode = 2 means that the CU is divided twice; that is, the CU can be divided into two 32 × 32 blocks, each of which is divided into 4 16 × 16 TUs, and transform on these 8 16 × 16 blocks respectively. For another example, if the size of the CU is 4 × 4, there is no need to divide the CU.
[0054]
The UTU structure and UTU mode have been exemplarily described above, and the present invention will be described below.
[0055]
Example 1
[0056]
An embodiment of the present invention provides a method for encoding mode information. FIG. 4 is a schematic diagram of a mode information encoding method according to an embodiment of the present invention, and illustrates a CU from the encoding end. As shown in FIG. 4, the encoding method includes:
[0057]
Step 401: Determine the UTU mode adopted by the CU of the image;
[0058]
Step 402: Determine the binary bit corresponding to the UTU mode according to the size of the CU and / or the predetermined number of UTU modes; and
[0059]
Step 403: Encode the binary bits corresponding to the UTU mode into the bitstream of the image.
[0060]
In this embodiment, multiple UTU modes may be pre-defined, such as utu_mode as described above, and their values may be 0, 1, 2, 3, that is, the number of UTU modes may also be predetermined. For a certain CU to be coded, the corresponding UTU mode can be determined according to the cost, for example, utu_mode is equal to 0, 1, 2 or 3; for how to determine the specific UTU mode, please refer to related technologies, which will not be repeated here.
[0061]
It is worth noting that other bitstream encodings such as palette, copy type (run_type) and copy value in the image area to be encoded can be implemented by any scheme in the related art, and the present invention does not limit this. The following is a schematic description of how to encode UTU mode information.
[0062]
FIG. 5 is a schematic diagram of an entropy encoding process according to an embodiment of the present invention. As shown in FIG. 5, after determining the UTU mode (for example, utu_mode is equal to 0, 1, 2, or 3), the value of the utu_mode can be divided by two. Binarization, forming one or more binary bits, and then encoding the binary bits into the bitstream.
[0063]
This makes it possible to encode UTU mode information. How to binarize the UTU mode information in step 402 will be further described below.
[0064]
In one embodiment, the binary bit corresponding to the UTU mode may be determined as a fixed-length binary sequence according to the value of the UTU mode and the number of UTU modes.
[0065]
For example, in the case where the UTU mode is the first mode, the binary bit corresponding to the UTU mode may be determined as the first value represented by two bits (for example, 00); in the UTU mode is the second In the case of the mode, the binary bit corresponding to the UTU mode is determined as the second value represented by two bits (for example, 01); when the UTU mode is the third mode, the UTU mode The corresponding binary bit is determined to be the third value represented by two bits (for example, 10); when the UTU mode is the fourth mode, the binary bit corresponding to the UTU mode is determined to be represented by the two bits The fourth value (for example, 11).
[0066]
For example, Table 1 exemplarily shows the case where utu_mode uses fixed-length binary bits.
[0067]
Table 1 utu_mode corresponds to fixed-length binary bits
[0068]
[表 0001]
utu_mode 0 1 2 3
Binary bit 00 01 10 11
significance No division One-time division Quadratic division Three divisions
[0069]
It is worth noting that Table 1 only exemplifies fixed-length binary bits, but the present invention is not limited thereto. For example, when utu_mode = 0, binary bit 11 can be used, or binary bit 01 can be used, and so on; as long as binary bits can be used to distinguish each UTU mode.
[0070]
In this embodiment, the UTU mode information can be encoded using, for example, two bits, thereby not only encoding the UTU mode information, but also reducing the cost of bitstream encoding.
[0071]
In another embodiment, the binary bit corresponding to the UTU mode may be determined as a variable-length binary sequence according to the size of the CU, the value of the UTU mode, and the number of the UTU mode.
[0072]
For example, according to the statistical information of utu_mode and CU size, the usage rate of utu_mode when each value of utu_mode is combined with CU size can be obtained, as shown in Table 2.
[0073]
Table 2 The usage rate of utu_mode
[0074]
[表 0002]
CU size \ utu_mode 0 1 2 3
64 × 64 64 × 32 32 × 64 0.01% 0.00% 0.00% 0.00%
64 × 16 16 × 64 32 × 32 32 × 16 16 × 32 0.78% 0.17% 0.00% 0.00%
64 × 8 8 × 64 32 × 8 8 × 32 16 × 16 16 × 8 8 × 16 12.4% 2.09% 0.34% 0.00%
64 × 4 4 × 64 32 × 4 4 × 32 16 × 4 4 × 16 8 × 8 8 × 4 4 × 8 61.31% 22.90% 0.00% 0.00%
4 × 4 0.00% 0.00% 0.00% 0.00%
[0075]
As shown in Table 2, in some cases, the usage rate of a certain utu_mode may be 0, that is, these conditions will not occur; in addition, the usage rate of a certain utu_mode in some cases may be much higher than in other cases Of usage. Therefore, the utu_mode can be binarized according to the above-mentioned usage frequency, thereby reducing the overhead of bitstream encoding.
[0076]
In this embodiment, when the UTU mode is the first mode (for example, utu_mode = 0), the binary bit corresponding to the UTU mode may be determined to be 0; in the UTU mode is the second mode (for example, utu_mode = 1), if the size of the CU is 8 × 8 or the width or height of the CU is 4, the binary bit corresponding to the UTU mode may be determined as 1; otherwise, the The corresponding binary bit is determined to be 10; in the case that the UTU mode is the third mode (for example, utu_mode = 2), if the size of the CU is 16 × 16 or the width or height of the CU is 8, you can change The binary bit corresponding to the UTU mode is determined to be 11; otherwise, the binary bit corresponding to the UUT mode is determined to be 110; The binary bit corresponding to the UTU mode is determined to be 111.
[0077]
or,
[0078]
When the UTU mode is the first mode (eg, utu_mode = 0), the binary bit corresponding to the UTU mode may be determined as 1; in the UTU mode, the second mode (eg, utu_mode) = 1), if the size of the CU is 8 × 8 or the width or height of the CU is 4, the binary bit corresponding to the UTU mode may be determined as 1; otherwise, the The corresponding binary bit is determined to be 01; when the UTU mode is the third mode (for example, utu_mode = 2), if the size of the CU is 16 × 16 or the width or height of the CU is 8, The binary bit corresponding to the UTU mode may be determined as 11; otherwise, the binary bit corresponding to the UTU mode is determined as 001; when the UTU mode is the fourth mode (for example, utu_mode = 3) , The binary bit corresponding to the UTU mode can be determined as 000.
[0079]
For example, Table 3 exemplarily shows the situation of the binary bits corresponding to utu_mode when each value of utu_mode is combined with the CU size.
[0080]
Table 3 utu_mode corresponds to variable-length binary bits
[0081]
[表 0003]
CU size \ utu_mode 0 1 2 3
64 × 64 64 × 32 32 × 64 0 10 110 111
64 × 16 16 × 64 32 × 32 32 × 16 16 × 32 0 10 110 111
64 × 8 8 × 64 32 × 8 8 × 32 16 × 16 16 × 8 8 × 16 0 10 11 X
64 × 4 4 × 64 32 × 4 4 × 32 16 × 4 4 × 16 8 × 8 8 × 4 4 × 8 0 1 X X
4 × 4 X X X X
[0082]
As shown in Tables 2 and 3, when the usage rate is "61.31%" and "12.4%", etc., utu_mode can be binarized using 1 bit (for example, 0), and when the usage rate is "22.90%" Utu_mode can use 1 bit (for example, 1) for binarization; therefore, in most cases, using 1 bit to encode UTU mode information can reduce the cost of bitstream encoding.
[0083]
FIG. 6 is an example diagram of encoding variable-length binary bits according to an embodiment of the present invention. As shown in FIG. 6, encodeBin (0) indicates that bit 0 is encoded into the bitstream, and encodeBin (1) indicates that bit is encoded into the bitstream 1; CU_size indicates the size of the CU, width indicates the width of the CU, and height indicates the height of the CU.
[0084]
It is worth noting that FIG. 6 only schematically illustrates the embodiments of the present invention, but the present invention is not limited thereto. For example, the execution order between the various steps can be adjusted appropriately, and in addition, other steps can be added or some of the steps can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the description in FIG. 6 described above.
[0085]
In this embodiment, the UTU mode information can be encoded in most cases using, for example, 1 bit. Therefore, compared with the fixed-length binary bit scheme, not only can the UTU mode information be encoded, but it can be further reduced. The cost of bitstream encoding.
[0086]
It is worth noting that Tables 1 and 3 only exemplarily show the binary bits of the present invention, but the present invention is not limited thereto. According to the contents of Table 1 and Table 3, those skilled in the art can also adjust or change the specific value of the binary bit based on the specific requirements.
[0087]
In addition, the present invention has been described schematically using only one CU as an example, and multiple CUs may be coded using the above steps, respectively. Only the steps or processes related to the present invention have been described above, but the present invention is not limited to this. The image coding method may further include other steps or processes. For the specific content of these steps or processes, reference may be made to the prior art.
[0088]
It can be known from the above embodiments that the binary bits corresponding to the UTU mode are determined according to the size of the CU and / or the number of predetermined UTU modes; thus, not only can UUT mode information be encoded, but also the encoded bits can be reduced cost.
[0089]
Example 2
[0090]
An embodiment of the present invention provides a mode information decoding method. This second embodiment corresponds to the mode information encoding method of the first embodiment, and the same content as the first embodiment will not be repeated.
[0091]
FIG. 7 is a schematic diagram of a mode information decoding method according to an embodiment of the present invention, and is explained for one CU from the decoding side. As shown in FIG. 7, the decoding method of the mode information includes:
[0092]
Step 701: Acquire the binary bits corresponding to the UTU mode from the bit stream of the image according to the size of the CU of the image and / or the predetermined number of UTU modes;
[0093]
Step 702: Determine the UTU mode adopted by the CU according to the binary bits corresponding to the UTU mode.
[0094]
In one embodiment, the binary bits corresponding to the UTU mode may be determined as a fixed-length binary sequence according to the number of UTU modes and the bit values in the bit stream.
[0095]
For example, in a case where the bit value in the bit stream is a first value represented by two bits (for example, 00), it can be determined that the UTU mode adopted by the CU is the first mode (for example, utu_mode = 0); In the case where the bit value in the bit stream is a second value (for example, 01) represented by two bits, it can be determined that the UTU mode adopted by the CU is the second mode (for example, utu_mode = 1); When the bit value in the bit stream is a third value (for example, 10) represented by two bits, it can be determined that the UTU mode adopted by the CU is the third mode (for example, utu_mode = 2) When the bit value in the stream is the fourth value represented by two bits (for example, 11), it can be determined that the UTU mode adopted by the CU is the fourth mode (for example, utu_mode = 3).
[0096]
In another embodiment, the binary bits corresponding to the UTU mode may be determined to be variable-length binary sequences according to the size of the CU, the number of UTU modes, and the bit values in the bitstream.
[0097]
For example, when the value of the first bit in the bit stream is 0, it can be determined that the binary bit corresponding to the UTU mode is 0, and the UTU mode adopted by the CU is the first mode (eg, utu_mode = 0); in the case where the first bit value in the bit stream is 1, if the size of the CU is 8 × 8 or the width or height of the CU is 4, the UTU mode can be determined The corresponding binary bit is 1; otherwise, continue to obtain the second bit value in the bit stream. In the case where the second bit value in the bit stream is 0, the binary bit corresponding to the UTU mode can be determined as 10; and it can be determined that the UTU mode adopted by the CU is the second mode (for example, utu_mode = 1); in the case where the second bit value in the bit stream is 1, if the size of the CU is 16 × 16 or the width or height of the CU is 8, it can be determined that the binary bit corresponding to the UTU mode is 11; otherwise, continue to obtain the third bit value in the bit stream, the third bit in the bit stream When the three-bit value is 0, the UTU mode can be determined The corresponding binary bit is 110; and it can be determined that the UTU mode adopted by the CU is the third mode (for example, utu_mode = 2); when the third bit value in the bit stream is 1, it can be determined The binary bit corresponding to the UTU mode is 111; and it can be determined that the UTU mode adopted by the CU is the fourth mode (eg, utu_mode = 3).
[0098]
For another example, in the case where the first bit value in the bit stream is 1, it can be determined that the binary bit corresponding to the UTU mode is 1, and the UTU mode adopted by the CU is the first mode ( For example, utu_mode = 0); in the case where the first bit value in the bit stream is 0, if the size of the CU is 8 × 8 or the width or height of the CU is 4, the UTU mode can be determined The corresponding binary bit is 0; otherwise, continue to obtain the second bit value in the bit stream. In the case where the second bit value in the bit stream is 1, the binary bit corresponding to the UTU mode can be determined Is 10; and it can be determined that the UTU mode adopted by the CU is the second mode (for example, utu_mode = 1); in the case where the second bit value in the bit stream is 0, if the size of the CU Is 16 × 16 or the width or height of the CU is 8, it can be determined that the binary bit corresponding to the UTU mode is 00; otherwise continue to obtain the third bit value in the bit stream, in the bit stream When the third bit value is 1, the UTU mode can be determined The corresponding binary bit is 001; and it can be determined that the UTU mode adopted by the CU is the third mode (for example, utu_mode = 2); when the third bit value in the bit stream is 0, it can be determined The binary bit corresponding to the UTU mode is 000; and it can be determined that the UTU mode adopted by the CU is the fourth mode (for example, utu_mode = 3).
[0099]
8 is an example diagram of decoding variable-length binary bits according to an embodiment of the present invention. As shown in FIG. 8, decodeBin () represents decoding the current bit of the bitstream, and tmp0, tmp1, and tmp2 respectively represent reading from the bitstream. Take and temporarily store the bit values (such as the above-mentioned first bit value, second bit value, and third bit value); CU_size represents the size of the CU, width represents the width of the CU, and height represents the height of the CU.
[0100]
It is worth noting that FIG. 8 only schematically illustrates the embodiments of the present invention, but the present invention is not limited thereto. For example, the execution order between the various steps can be adjusted appropriately, and in addition, other steps can be added or some of the steps can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the description of FIG. 8 described above.
[0101]
In addition, the present invention has been schematically illustrated by taking only one CU as an example, and multiple CUs may be decoded using the above steps, respectively. Only the steps or processes related to the present invention have been described above, but the present invention is not limited to this. The image decoding method may further include other steps or processes. For specific contents of these steps or processes, reference may be made to the prior art.
[0102]
It can be known from the above embodiments that the binary bits corresponding to the UTU modes are determined according to the size of the CU and / or the number of predetermined UTU modes; thus, not only can the UTU mode information be decoded, but also the encoded bits can be reduced cost.
[0103]
Example 3
[0104]
An embodiment of the present invention provides a mode information encoding device. The apparatus may be, for example, an electronic device used for image processing or video processing, or may be one or some components or components disposed in the electronic device. The same content of this embodiment 3 as that of embodiment 1 will not be repeated here.
[0105]
FIG. 9 is a schematic diagram of a mode information encoding apparatus according to an embodiment of the present invention. As shown in FIG. 9, the mode information encoding apparatus 900 includes:
[0106]
A mode determination unit 901, which determines the uniform transformation unit mode adopted by the encoding unit of the image;
[0107]
A bit determination unit 902, which determines the binary bits corresponding to the uniform transformation unit mode according to the size of the coding unit and / or the predetermined number of uniform transformation unit modes; and
[0108]
A bitstream encoding unit 903, which encodes binary bits corresponding to the uniform transformation unit pattern into the bitstream of the image.
[0109]
In one embodiment, the bit determination unit 902 may be specifically configured to: according to the size of the coding unit, the value of the uniform transformation unit mode, and the number of the uniform transformation unit modes, convert the uniform transformation unit mode The corresponding binary bit is determined as a variable-length binary sequence.
[0110]
For example, when the uniform transformation unit mode is the first mode (eg, utu_mode = 0), the bit determination unit 902 determines the binary bit corresponding to the uniform transformation unit mode to 0; When the uniform transformation unit mode is the second mode (for example, utu_mode = 1), if the size of the coding unit is 8 × 8 or the width or height of the coding unit is 4, the bit determination unit 902 will The binary bit corresponding to the uniform transform unit mode is determined to be 1; otherwise, the binary bit corresponding to the uniform transform unit mode is determined to be 10; the uniform transform unit mode is the third mode (for example, utu_mode = 2) ), If the size of the coding unit is 16 × 16 or the width or height of the coding unit is 8, the bit determination unit 902 determines the binary bit corresponding to the uniform transformation unit mode to 11; Otherwise, the binary bit corresponding to the uniform transformation unit mode is determined to be 110; when the uniform transformation unit mode is the fourth mode (for example, utu_mode = 3), Said bit determination section 902 the homogeneous transformation unit corresponding to the binary bit pattern is determined to be 111.
[0111]
For another example, when the uniform transformation unit mode is the first mode (eg, utu_mode = 0), the bit determination unit 902 determines the binary bit corresponding to the uniform transformation unit mode to 1; When the uniform transformation unit mode is the second mode (for example, utu_mode = 1), if the size of the coding unit is 8 × 8 or the width or height of the coding unit is 4, the bit determination unit 902 The binary bit corresponding to the uniform transformation unit mode is determined to be 1; otherwise, the binary bit corresponding to the uniform transformation unit mode is determined to be 01; the uniform transformation unit mode is the third mode (eg utu_mode = In the case of 2), if the size of the coding unit is 16 × 16 or the width or height of the coding unit is 8, the bit determination unit 902 determines the binary bit corresponding to the uniform transformation unit mode to 11 Otherwise, the binary bit corresponding to the uniform transformation unit mode is determined to be 001; in the case where the uniform transformation unit mode is the fourth mode (eg, utu_mode = 3) The bit determination section 902 the homogeneous transformation unit corresponding to the binary bit pattern 000 is determined.
[0112]
In another embodiment, the bit determination unit 902 may be specifically configured to determine the binary bit corresponding to the uniform transformation unit mode according to the value of the uniform transformation unit mode and the number of the uniform transformation unit mode It is a fixed-length binary sequence.
[0113]
For example, when the uniform transformation unit mode is the first mode (for example, utu_mode = 0), the bit determination unit 902 determines the binary bit corresponding to the uniform transformation unit mode as represented by two bits The first value (for example, 00); when the uniform transformation unit mode is the second mode (for example, utu_mode = 1), the bit determination unit 902 converts the binary bits corresponding to the uniform transformation unit mode Determined to be the second value represented by two bits (for example, 01); when the uniform conversion unit mode is the third mode (for example, utu_mode = 2), the bit determination unit 902 converts the uniform The binary bit corresponding to the unit mode is determined as the third value represented by two bits (for example, 10); when the uniform conversion unit mode is the fourth mode (for example, utu_mode = 3), the bit is determined The section 902 determines the binary bit corresponding to the uniform transformation unit pattern as the fourth value represented by two bits (for example, 11).
[0114]
In addition, for the sake of simplicity, FIG. 9 only exemplarily shows the connection relationship or signal direction between various components or modules, but those skilled in the art should understand that various related technologies such as bus connection may be used, for example. The above-mentioned various components or modules may be implemented by hardware facilities such as a processor and a memory; the implementation of the present invention does not limit this.
[0115]
It is worth noting that the above only describes the components or modules related to the present invention, but the present invention is not limited thereto. The mode information encoding device 900 may further include other components or modules. For specific contents of these components or modules, reference may be made to related technologies.
[0116]
It can be known from the above embodiments that the binary bits corresponding to the UTU mode are determined according to the size of the CU and / or the number of predetermined UTU modes; thus, not only can UUT mode information be encoded, but also the encoded bits can be reduced cost.
[0117]
Example 4
[0118]
An embodiment of the present invention provides a mode information decoding device. The apparatus may be, for example, an electronic device used for image processing or video processing, or may be one or some components or components disposed in the electronic device. The same content of this Embodiment 4 as that of Embodiment 2 will not be repeated here.
[0119]
FIG. 10 is a schematic diagram of a mode information decoding apparatus according to an embodiment of the present invention. As shown in FIG. 10, the mode information decoding apparatus 1000 includes:
[0120]
A bit acquisition unit 1001, which acquires the binary bits corresponding to the uniform transformation unit mode from the bit stream of the image according to the size of the encoding unit of the image and / or the predetermined number of uniform transformation unit modes;
[0121]
The mode determining unit 1002 determines the uniform transform unit mode adopted by the coding unit according to the binary bits corresponding to the uniform transform unit mode.
[0122]
In one embodiment, the bit acquisition unit 1001 may be specifically configured to determine the uniform transformation unit mode according to the size of the coding unit, the number of uniform transformation unit modes, and the bit value in the bitstream The corresponding binary bit is a variable-length binary sequence.
[0123]
For example, when the value of the first bit in the bit stream is 0, the bit acquisition unit 1001 determines that the binary bit corresponding to the uniform transformation unit pattern is 0, and the mode determination unit 1002 determines the The uniform transformation unit mode adopted by the coding unit is the first mode (for example, utu_mode = 0);
[0124]
In the case where the first bit value in the bit stream is 1, if the size of the coding unit is 8 × 8 or the width or height of the coding unit is 4, the bit acquisition unit 1001 determines the uniformity The binary bit corresponding to the transformation unit mode is 1; otherwise, the bit acquisition unit 1001 continues to acquire the second bit value in the bit stream. In the case where the second bit value in the bit stream is 0, the The bit acquisition unit 1001 determines that the binary bit corresponding to the uniform transformation unit mode is 10; and the mode determination unit 1002 determines that the uniform transformation unit mode adopted by the coding unit is the second mode (for example, utu_mode = 1) ;
[0125]
In the case where the second bit value in the bit stream is 1, if the size of the coding unit is 16 × 16 or the width or height of the coding unit is 8, the bit acquisition unit 1001 determines the uniformity The binary bit corresponding to the transformation unit mode is 11; otherwise, the bit acquisition unit 1001 continues to acquire the third bit value in the bit stream. In the case where the third bit value in the bit stream is 0, the The bit acquisition unit 1001 determines that the binary bit corresponding to the uniform transformation unit mode is 110; and the mode determination unit 1002 determines that the uniform transformation unit mode adopted by the encoding unit is the third mode (eg, utu_mode = 2) ;
[0126]
When the third bit value in the bit stream is 1, the bit acquisition unit 1001 determines that the binary bit corresponding to the uniform transformation unit mode is 111; and the mode determination unit 1002 determines the encoding unit The adopted uniform transformation unit mode is the fourth mode (for example, utu_mode = 3).
[0127]
For another example, in the case where the first bit value in the bit stream is 1, the bit acquisition unit 1001 determines that the binary bit corresponding to the uniform transformation unit pattern is 1, and the mode determination unit 1002 determines The uniform transformation unit mode adopted by the coding unit is the first mode (for example, utu_mode = 0);
[0128]
In the case where the first bit value in the bit stream is 0, if the size of the coding unit is 8 × 8 or the width or height of the coding unit is 4, the bit acquisition unit 1001 determines the uniformity The binary bit corresponding to the transformation unit mode is 0; otherwise, the bit acquisition unit 1001 continues to acquire the second bit value in the bit stream. In the case where the second bit value in the bit stream is 1, the The bit acquisition unit 1001 determines that the binary bit corresponding to the uniform transformation unit mode is 01; and the mode determination unit 1002 determines that the uniform transformation unit mode adopted by the encoding unit is the second mode (eg, utu_mode = 1) ;
[0129]
In the case where the second bit value in the bit stream is 0, if the size of the coding unit is 16 × 16 or the width or height of the coding unit is 8, the bit acquisition unit 1001 determines the uniformity The binary bit corresponding to the transformation unit mode is 00; otherwise, the bit acquisition unit 1001 continues to acquire the third bit value in the bit stream. In the case where the third bit value in the bit stream is 1, the The bit acquisition unit 1001 determines that the binary bit corresponding to the uniform transformation unit mode is 001; and the mode determination unit 1002 determines that the uniform transformation unit mode adopted by the coding unit is the third mode (eg, utu_mode = 2) ;
[0130]
When the third bit value in the bit stream is 0, the bit acquisition section 1001 determines that the binary bit corresponding to the uniform transformation unit pattern is 000; and the pattern determination section 1002 determines the encoding unit The adopted uniform transformation unit mode is the fourth mode (for example, utu_mode = 3).
[0131]
In another embodiment, the bit acquisition unit 1001 may be specifically configured to determine the binary bit corresponding to the uniform transformation unit mode according to the number of the uniform transformation unit mode and the bit value in the bit stream as Binary sequence of fixed length.
[0132]
For example, in the case where the bit value in the bit stream is a first value represented by two bits (for example, 00), the mode determination unit 1002 determines that the uniform transformation unit mode adopted by the coding unit is the The first mode; in the case where the bit value in the bit stream is a second value represented by two bits (for example, 01), the mode determination unit 1002 determines the uniform transformation unit mode adopted by the coding unit as The second mode; in the case where the bit value in the bit stream is a third value (for example, 10) represented by two bits, the mode determination unit 1002 determines the uniform transformation unit used by the encoding unit The mode is the third mode; in the case where the bit value in the bit stream is a fourth value represented by two bits (for example, 11), the mode determination unit 1002 determines the uniformity adopted by the coding unit The transformation unit mode is the fourth mode.
[0133]
In addition, for the sake of simplicity, FIG. 10 only exemplarily shows the connection relationship or signal direction between the various components or modules, but those skilled in the art should understand that various related technologies such as bus connection may be used. The above-mentioned various components or modules may be implemented by hardware facilities such as a processor and a memory; the implementation of the present invention does not limit this.
[0134]
It is worth noting that the above only describes the components or modules related to the present invention, but the present invention is not limited thereto. The mode information decoding device 1000 may further include other components or modules. For specific contents of these components or modules, reference may be made to related technologies.
[0135]
It can be known from the above embodiments that the binary bits corresponding to the UTU modes are determined according to the size of the CU and / or the number of predetermined UTU modes; thus, not only can the UTU mode information be decoded, but also the encoded bits can be reduced cost.
[0136]
Example 5
[0137]
An embodiment of the present invention also provides an electronic device that performs image processing or video processing, including an encoder and / or a decoder. The encoder includes the mode information encoding device as described in Embodiment 3; the decoder includes the mode information decoding device as described in Embodiment 4.
[0138]
11 is a schematic diagram of an electronic device according to an embodiment of the invention. As shown in FIG. 11, the electronic device 1100 may include: a processor 1101 and a memory 1102; the memory 1102 is coupled to the processor 1101. The memory 1102 can store various data; in addition, an information processing program 1103 is stored, and the program 1103 is executed under the control of the processor 1101.
[0139]
In one embodiment, the electronic device 1100 may be used as an encoder, and the function of the mode information encoding device 900 may be integrated into the processor 1101. The processor 1101 may be configured to implement the mode information encoding method as described in Embodiment 1.
[0140]
For example, the processor 1101 may be configured to perform the following control: determine the uniform transform unit mode adopted by the encoding unit of the image; determine the size according to the size of the encoding unit and / or the predetermined number of uniform transform unit modes Binary bits corresponding to the uniform transformation unit mode; and encoding the binary bits corresponding to the uniform transformation unit mode into the bit stream of the image.
[0141]
In another embodiment, the electronic device 1100 can be used as a decoder, and the function of the mode information decoding device 1000 can be integrated into the processor 1101. The processor 1101 may be configured to implement the mode information decoding method as described in Embodiment 2.
[0142]
For example, the processor 1101 may be configured to perform the following control: according to the size of the coding unit of the image and / or the predetermined number of uniform transformation unit patterns, obtain the uniform transformation unit pattern from the bit stream of the image Corresponding binary bits; and according to the binary bits corresponding to the uniform transformation unit mode, determining the uniform transformation unit mode adopted by the coding unit.
[0143]
In addition, as shown in FIG. 11, the electronic device 1100 may further include: an input / output (I / O) device 1104, a display 1105, and the like; wherein, the functions of the above components are similar to those in the prior art, and are not repeated here. It is worth noting that the electronic device 1100 does not necessarily include all the components shown in FIG. 11; in addition, the electronic device 1100 may also include components not shown in FIG. 11, and reference may be made to related technologies.
[0144]
An embodiment of the present invention provides a computer-readable program, wherein when the program is executed in an encoder or an electronic device, the program causes the encoder or the electronic device to perform encoding of mode information as described in Embodiment 1. method.
[0145]
An embodiment of the present invention provides a storage medium that stores a computer-readable program, where the computer-readable program causes an encoder or an electronic device to execute the mode information encoding method described in Embodiment 1.
[0146]
An embodiment of the present invention provides a computer-readable program, wherein when the program is executed in a decoder or an electronic device, the program causes the decoder or the electronic device to perform decoding of mode information as described in Embodiment 2. method.
[0147]
An embodiment of the present invention provides a storage medium storing a computer-readable program, wherein the computer-readable program causes a decoder or an electronic device to execute the mode information decoding method as described in Embodiment 2.
[0148]
The above device and method of the present invention may be implemented by hardware, or may be implemented by hardware in combination with software. The present invention relates to such a computer-readable program which, when executed by a logic component, enables the logic component to implement the above-described device or component, or enables the logic component to implement the various methods described above Or steps. The invention also relates to storage media for storing the above programs, such as hard disks, magnetic disks, optical disks, DVDs, flash memories, and so on.
[0149]
The method / device described in conjunction with the embodiments of the present invention may be directly embodied as hardware, a software module executed by a processor, or a combination of both. For example, one or more of the functional block diagrams and / or one or more combinations of the functional block diagrams shown in the figures may correspond to each software module of the computer program flow or each hardware module. These software modules can respectively correspond to the steps shown in the figure. These hardware modules can be realized by solidifying these software modules using a field programmable gate array (FPGA), for example.
[0150]
The software module may be located in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to the processor, so that the processor can read information from the storage medium and write information to the storage medium; or the storage medium may be an integral part of the processor. The processor and the storage medium may be located in the ASIC. The software module can be stored in the memory of the mobile terminal or in a memory card that can be inserted into the mobile terminal. For example, if the device (such as a mobile terminal) uses a larger-capacity MEGA-SIM card or a larger-capacity flash memory device, the software module may be stored in the MEGA-SIM card or a larger-capacity flash memory device.
[0151]
For one or more of the functional blocks described in the drawings and / or one or more combinations of the functional blocks, it may be implemented as a general-purpose processor, digital signal processor (DSP) for performing the functions described in the present invention ), Application specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, or any suitable combination thereof. One or more of the functional blocks described in the drawings and / or one or more combinations of the functional blocks can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, multiple microprocessing Processor, one or more microprocessors in communication with the DSP, or any other such configuration.
[0152]
The present invention has been described above in conjunction with specific embodiments, but it should be clear to those skilled in the art that these descriptions are exemplary and do not limit the protection scope of the present invention. Those skilled in the art can make various variations and modifications to the present invention according to the spirit and principle of the present invention, and these variations and modifications are also within the scope of the present invention.
Claims
[Claim 1]
An apparatus for encoding mode information, including: a mode determining unit that determines a uniform transformation unit mode adopted by an encoding unit of an image; a bit determination unit that determines the uniform transformation unit mode according to the size of the encoding unit and / or a predetermined The number of bits determines the binary bits corresponding to the uniform transformation unit mode; and a bitstream encoding section that encodes the binary bits corresponding to the uniform transformation unit mode into the bitstream of the image.
[Claim 2]
The encoding device according to claim 1, wherein the bit determination unit is specifically configured to: according to the size of the encoding unit, the value of the uniform transformation unit mode, and the number of the uniform transformation unit modes, The binary bits corresponding to the uniform transformation unit pattern are determined as variable-length binary sequences.
[Claim 3]
The encoding device according to claim 2, wherein the number of the uniform transform unit modes is 4; the uniform transform unit modes include: a first mode, indicating that the coding unit is not divided; a second mode, indicating The coding unit is divided once; the third mode indicates that the coding unit is divided twice; and the fourth mode indicates that the coding unit is divided three times.
[Claim 4]
The encoding device according to claim 3, wherein utu_mode is used to indicate the uniform transformation unit mode; utu_mode = 0 indicates the first mode, utu_mode = 1 indicates the second mode, and utu_mode = 2 indicates the third Mode, utu_mode = 3 indicates the fourth mode.
[Claim 5]
The encoding device according to claim 3, wherein, in the case where the uniform transformation unit mode is the first mode, the bit determination unit determines the binary bit corresponding to the uniform transformation unit mode to 0; In the case where the uniform transformation unit mode is the second mode, if the size of the coding unit is 8 × 8 or the width or height of the coding unit is 4, the bit determination unit converts the uniform transformation The binary bit corresponding to the unit mode is determined to be 1; otherwise, the binary bit corresponding to the uniform transformation unit mode is determined to be 10; in the case where the uniform transformation unit mode is the third mode, if the encoding unit Is 16 × 16 or the width or height of the coding unit is 8, and the bit determination unit determines the binary bit corresponding to the uniform transformation unit mode to 11; otherwise, the bit corresponding to the uniform transformation unit mode The binary bit is determined to be 110; when the uniform transformation unit mode is the fourth mode, the bit determination unit transforms the uniform transformation Element corresponding binary bit pattern is determined to be 111.
[Claim 6]
The encoding device according to claim 3, wherein, in the case where the uniform transformation unit mode is the first mode, the bit determination unit determines the binary bit corresponding to the uniform transformation unit mode to 1; In the case where the uniform transformation unit mode is the second mode, if the size of the coding unit is 8 × 8 or the width or height of the coding unit is 4, the bit determination unit converts the uniform transformation The binary bit corresponding to the unit mode is determined to be 1; otherwise, the binary bit corresponding to the uniform transformation unit mode is determined to be 01; in the case where the uniform transformation unit mode is the third mode, if the encoding unit Is 16 × 16 or the width or height of the coding unit is 8, and the bit determination unit determines the binary bit corresponding to the uniform transformation unit mode to 11; otherwise, the bit corresponding to the uniform transformation unit mode Binary bit is determined to be 001; when the uniform transformation unit mode is the fourth mode, the bit determination section transforms the uniform transformation Element corresponding binary bit pattern is determined to be 000.
[Claim 7]
The encoding device according to claim 1, wherein the bit determination unit is specifically configured to: according to the value of the uniform transformation unit mode and the number of the uniform transformation unit modes, the bit corresponding to the uniform transformation unit mode The binary bits are determined as a fixed-length binary sequence.
[Claim 8]
The encoding device according to claim 7, wherein the number of uniform transformation unit modes is 4; the uniform transformation unit modes include: a first mode, indicating that the encoding unit is not divided; a second mode, indicating The coding unit is divided once; the third mode indicates that the coding unit is divided twice; and the fourth mode indicates that the coding unit is divided three times.
[Claim 9]
The encoding device according to claim 8, wherein, in the case where the uniform transformation unit mode is the first mode, the bit determination unit determines the binary bit corresponding to the uniform transformation unit mode to be composed of two The first value represented by the bit; when the uniform transformation unit mode is the second mode, the bit determination unit determines the binary bit corresponding to the uniform transformation unit mode as the second Two values; in the case where the uniform transformation unit mode is the third mode, the bit determination unit determines the binary bit corresponding to the uniform transformation unit mode as the third value represented by two bits; When the uniform transformation unit mode is the fourth mode, the bit determination unit determines the binary bit corresponding to the uniform transformation unit mode as the fourth value represented by two bits.
[Claim 10]
A mode information decoding device includes: a bit acquisition unit that acquires the uniform transformation unit pattern from a bit stream of the image according to the size of an encoding unit of an image and / or a predetermined number of uniform transformation unit patterns The corresponding binary bit; the mode determining section, which determines the uniform transform unit mode adopted by the encoding unit according to the binary bit corresponding to the uniform transform unit mode.
[Claim 11]
The decoding device according to claim 10, wherein the bit acquisition unit is specifically configured to determine the bit size according to the size of the coding unit, the number of uniform transformation unit patterns, and the bit value in the bit stream The binary bits corresponding to the uniform transformation unit pattern are variable-length binary sequences.
[Claim 12]
The decoding device according to claim 11, wherein the number of the uniform transform unit modes is 4; the uniform transform unit modes include: a first mode, indicating that the coding unit is not divided; The coding unit is divided once; the third mode represents the second division of the coding unit; the fourth mode represents the three division of the coding unit.
[Claim 13]
The decoding device according to claim 12, wherein utu_mode is used to indicate the uniform transformation unit mode, utu_mode = 0 indicates the first mode, utu_mode = 1 indicates the second mode, and utu_mode = 2 indicates the third Mode, utu_mode = 3 indicates the fourth mode.
[Claim 14]
The decoding device according to claim 12, wherein, in a case where the first bit value in the bit stream is 0, the bit acquisition section determines that the binary bit corresponding to the uniform transformation unit pattern is 0, and The mode determination unit determines that the uniform transformation unit mode adopted by the coding unit is the first mode; in the case where the first bit value in the bit stream is 1, if the size of the coding unit is 8 × 8 or the width or height of the coding unit is 4, and the bit acquisition unit determines that the binary bit corresponding to the uniform transformation unit mode is 1; otherwise, the bit acquisition unit continues to acquire the second bit in the bit stream Bit value, when the second bit value in the bit stream is 0, the bit acquisition unit determines that the binary bit corresponding to the uniform transformation unit mode is 10; and the mode determination unit determines the encoding The uniform transformation unit mode adopted by the unit is the second mode; in the case where the second bit value in the bit stream is 1, if the size of the coding unit is 16 × 16 or The width or height of the encoding unit is 8, and the bit acquisition unit determines that the binary bit corresponding to the uniform transformation unit mode is 11; otherwise, the bit acquisition unit continues to acquire the third bit value in the bit stream, When the third bit value in the bit stream is 0, the bit acquisition unit determines that the binary bit corresponding to the uniform transformation unit mode is 110; and the mode determination unit determines that the encoding unit uses The uniform transformation unit mode of is the third mode; in the case where the third bit value in the bit stream is 1, the bit acquisition section determines that the binary bit corresponding to the uniform transformation unit mode is 111; and The mode determination unit determines that the uniform transformation unit mode adopted by the encoding unit is the fourth mode.
[Claim 15]
The decoding device according to claim 12, wherein, in a case where the first bit value in the bit stream is 1, the bit acquisition section determines that the binary bit corresponding to the uniform transformation unit pattern is 1, and The mode determination unit determines that the uniform transformation unit mode adopted by the coding unit is the first mode; in the case where the first bit value in the bit stream is 0, if the size of the coding unit is 8 × 8 or the width or height of the coding unit is 4, the bit acquisition unit determines that the binary bit corresponding to the uniform transformation unit mode is 0; otherwise, the bit acquisition unit continues to acquire the second bit in the bit stream Bit value, in the case where the second bit value in the bit stream is 1, the bit acquisition unit determines that the binary bit corresponding to the uniform transformation unit pattern is 01; and the mode determination unit determines the encoding The uniform transformation unit mode adopted by the unit is the second mode; if the second bit value in the bit stream is 0, if the size of the coding unit is 16 × 16 or The width or height of the coding unit is 8, and the bit acquisition unit determines that the binary bit corresponding to the uniform transformation unit mode is 00; otherwise, the bit acquisition unit continues to acquire the third bit value in the bit stream, at When the third bit value in the bit stream is 1, the bit acquisition unit determines that the binary bit corresponding to the uniform transformation unit mode is 001; and the mode determination unit determines the mode used by the encoding unit The uniform transformation unit mode is the third mode; when the third bit value in the bit stream is 0, the bit acquisition unit determines that the binary bit corresponding to the uniform transformation unit mode is 000; and The mode determination unit determines that the uniform transformation unit mode adopted by the encoding unit is the fourth mode.
[Claim 16]
The decoding device according to claim 10, wherein the bit acquisition unit is specifically configured to determine, according to the number of the uniform transformation unit patterns and the bit values in the bit stream, the corresponding ones of the uniform transformation unit patterns Binary bits are fixed-length binary sequences.
[Claim 17]
The decoding device according to claim 16, wherein the number of the uniform transform unit modes is 4; the uniform transform unit modes include: a first mode, indicating that the coding unit is not divided; a second mode, indicating The coding unit is divided once; the third mode indicates that the coding unit is divided twice; and the fourth mode indicates that the coding unit is divided three times.
[Claim 18]
The decoding device according to claim 17, wherein, in the case where the bit value in the bit stream is the first value represented by two bits, the mode determination unit determines the uniform transformation adopted by the encoding unit The unit mode is the first mode; in the case where the bit value in the bit stream is the second value represented by two bits, the mode determination unit determines that the uniform transformation unit mode adopted by the coding unit is The second mode; in the case where the bit value in the bit stream is the third value represented by two bits, the mode determination unit determines that the uniform transformation unit mode adopted by the encoding unit is the first Three modes; in the case where the bit value in the bit stream is a fourth value represented by two bits, the mode determination unit determines that the uniform transformation unit mode adopted by the encoding unit is the fourth mode.
[Claim 19]
An electronic device, wherein the electronic device includes: an encoder including the mode information encoding device according to claim 1; and / or a decoder including the mode information decoding according to claim 10 Device.