Method and device for indicating pixel, and method and device for processing pixel indication
10904520 ยท 2021-01-26
Assignee
Inventors
Cpc classification
H04N19/91
ELECTRICITY
H04N19/105
ELECTRICITY
H04N19/85
ELECTRICITY
International classification
H04B1/66
ELECTRICITY
H04N19/85
ELECTRICITY
H04N19/105
ELECTRICITY
H04N19/14
ELECTRICITY
Abstract
Disclosed are a method and a device for indicating a pixel, and a method and a device for processing a pixel indication, in video encoding and decoding. A process of indicating a pixel by an encoder includes the steps of: determining at least one processing sub-interval, determining at least one processing sub-interval to be indicated, and indicating the at least one processing sub-interval to be indicated. A process of processing a pixel indication by a decoder includes the steps of: acquiring processing sub-interval indication information, determining at least one indicated processing sub-interval, and determining all of the at least one processing sub-interval. Under the premise that flexible selection of at least one processing sub-interval is guaranteed by applying the above-mentioned technical solutions according to embodiments of the present invention, indication information of the at least one processing sub-interval to be indicated, which is transmitted, is reduced. As a result, video compression performance is improved.
Claims
1. A method of processing pixel indication performed by at least one processor, the method comprising: obtaining, from a bitstream, processing sub-interval indication information comprising processing sub-interval information and processing sub-interval derivation information; and determining indicated processing sub-intervals according to the processing sub-interval indication information and determining a remainder of processing sub-intervals except for the indicated processing sub-intervals from among all of the processing sub-intervals, wherein the indicated processing sub-intervals include a first indicated processing sub-interval and a second indicated processing sub-interval, wherein when the indicated processing sub-intervals are determined, the first indicated processing sub-interval is determined according to the processing sub-interval information, and the second indicated processing sub-interval is determined by adding a value of the processing sub-interval information to a value of the processing sub-interval derivation information plus 2, wherein a pixel value range is divided into sub-intervals, and all of the processing sub-intervals are a part of the sub-intervals, wherein the processing sub-interval information includes information which indicates a first index of an indicated processing sub-interval, and the processing sub-interval derivation information includes information which is combined with the processing sub-interval information to derive a second index of the indicated processing sub-interval, and wherein the processing sub-interval derivation information indicates difference, between an index of the first indicated processing sub-interval and an index of the second indicated processing sub-interval, minus 2.
2. An apparatus for processing pixel indication, the apparatus comprising: at least one processor configured to obtain, from a bitstream, processing sub-interval indication information comprising processing sub-interval information and processing sub-interval derivation information, to determine indicated processing sub-intervals according to the processing sub-interval indication information and to determine a remainder of processing sub-intervals except for the indicated processing sub-intervals from among all of the processing sub-intervals, wherein the indicated processing sub-intervals include a first indicated processing sub-interval and a second indicated processing sub-interval, wherein when the at least one processor determines the indicated processing sub-intervals, the first indicated processing sub-interval is determined according to the processing sub-interval information, and the second indicated processing sub-interval is determined by adding a value of the processing sub-interval information to a value of the processing sub-interval derivation information plus 2, wherein a pixel value range is divided into sub-intervals, and all of the processing sub-intervals are a part of the sub-intervals, wherein the processing sub-interval information includes information which indicates a first index of an indicated processing sub-interval, and the processing sub-interval derivation information includes information which is combined with the processing sub-interval information to derive a second index of the indicated processing sub-interval, and wherein the processing sub-interval derivation information indicates difference, between an index of the first indicated processing sub-interval and an index of the second indicated processing sub-interval, minus 2.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
MODE OF THE INVENTION
(5) Hereinafter, to clarify means, technical solutions, and effects of the present disclosure, the present disclosure will be described in detail with reference to the drawings and detailed embodiments.
(6) The applicant of the present disclosure has found out that numbers of two start offset sub-intervals are not independent in an early stage of AVS2 according to technical research. For example, when an offset sub-interval is set to a certain sub-interval, another offset sub-interval may not be set to the same sub-interval as or a neighboring sub-interval adjacent to the certain sub-interval. Actually, joint distribution of indices of the two start offset sub-intervals have regularity. When the indices of the two start offset sub-intevals are directly transmitted, redundancy occurs. Thus, it is necessary to process the indices of the two start offset sub-intervals and then transmit them. Under the premise that flexible selection of the at least one processing sub-interval is guaranteed, information to be transmitted for the at least one processing sub-interval is reduced. Moreover, video compression performance is improved.
(7) From analysis of technical problems of the background art, a large amount of information for an offset sub-interval may seem to be transmitted on a bitstream when the offset sub-interval is selected more flexibly or at random. Therefore, a method for indicating an offset sub-interval and a method for processing an offset sub-interval indication are provided. To reduce a bit rate and to improve the performance of video encoding, redundancy is removed from offset sub-interval information, such that pieces of the offset sub-interval information is compressed. The offset operation for a pixel sub-interval in the background art substantially includes pixel sub-interval processing. Thus, a technical solution for indicating a pixel sub-interval to be processed and a method for processing an indication of the pixel sub-interval to be processed are provided in the present disclosure according to embodiments of the present disclosure. Based on a relationship between at least one pixels and a sub-interval described in the background art, when the sub-interval is determined or indicated, the at least one pixels belonging to the sub-interval are also determined or indicated. Consequently, a method for indicating a sub-interval to be processed is actually a method for indicating a pixel. Therefore, the subject of the present disclosure includes a technical solution for indicating a pixel and a technical means for processing a pixel indication.
(8) In the present disclosure, processing of a pixel sub-interval includes processing of at least one pixels in a pixel sub-interval, and the pixel sub-interval to be processed may be referred to as a processing sub-interval.
(9) A method for indicating a pixel to be applied to an encoder is provided according to embodiments of the present disclosure. As can be seen in
(10) In block 101, at least one processing sub-interval is determined.
(11) According to an original value, a reconstructed value, and/or other information of a pixel, the at least one processing sub-interval is determined in every at least one pixel sub-intervals based on a rate distortion cost or actual condition.
(12) In block 102, at least one processing sub-interval to be indicated is determined.
(13) Based on the actual condition, the encoder determines at least one processing sub-interval to be indicated in every at least one processing sub-interval. The at least one processing sub-interval to be indicated may include all or some of the at least one processing sub-interval.
(14) In block 103, the at least one processing sub-interval to be indicated is indicated.
(15) The encoder indicates the at least one processing sub-interval to be indicated, which is determined in block 102. Indication information includes processing sub-interval derivation information. The indication information may include processing sub-interval derivation information and processing sub-interval information. The processing sub-interval information includes information for an index of a processing sub-interval to be indicated. The processing sub-interval derivation information includes information combined with another information to derive the index of the processing sub-interval to be indicated. The indication information is transmitted to a decoder on the bitstream.
(16) A method for processing a pixel indication to be applied to a decoder is provided according to embodiments of the present disclosure. As can be seen in
(17) In block 201, processing sub-interval indication information is obtained.
(18) The processing sub-interval indication information includes processing sub-interval derivation information. The processing sub-interval indiction information may include processing sub-interval derivation information and processing sub-interval information.
(19) The processing sub-interval indication information is obtained by parsing a bitstream or from a bitstream parsing module.
(20) In block 202, at least one processing sub-interval to be indicated is determined.
(21) In block 201, the at least one processing sub-interval to be indicated is determined according to the obtained processing sub-interval indication information. Based on the processing sub-interval information, the at least one indicated processing sub-interval is directly determined. Based on the processing sub-interval derivation information and the processing sub-interval information or other information, the at least one indicated processing sub-interval is determined.
(22) In block 203, all of at least one processing sub-interval are determined.
(23) Based on the at least one indicated processing sub-interval determined according to an actual condition or a pre-configured condition and in operation 202, all of the at least one processing sub-interval are determined. For example, the pre-configured condition is defined in the standards.
(24) An apparatus for indicating a pixel in the encoder is provided according to embodiments of the present disclosure. As can be seen from
(25) The processing sub-interval determination module is used to determine at least one processing sub-interval based on an original value, a reconstructed value, and/or another information of a pixel.
(26) The processing sub-interval determination module to be indicated is used to determine at least one processing sub-interval to be indicated within all of the at least one processing sub-interval.
(27) The processing sub-interval indication module is used to indicate the at least one indicated processing sub-interval, to encode indication information on a bitstream, and to transmit the indication information to another processing module.
(28) An apparatus for processing a pixel indication in the decoder is provided according to embodiments of the present disclosure. As can be seen from
(29) The indication information obtaining module is used to parse processing sub-interval indication information from a bitstream or to obtain the processing sub-interval indication information from the bitstream parsing module, and the processing sub-interval indication information includes processing sub-interval derivation information or includes the processing sub-interval derivation information and processing sub-interval information.
(30) The indicated processing sub-interval derivation module is used to derive at least one indicated processing sub-interval based on the processing sub-interval indication information.
(31) The processing sub-interval derivation module is used to derive all of at least one processing sub-interval based on the at least one indicated processing sub-interval.
(32) Hereinafter, to clarify objects, technical solutions, and effects of the present disclosure, the present disclosure will be described in detail with reference to the drawings and detailed embodiments.
Embodiment 1
(33) A method for indicating a pixel to be applied to an encoder is provided according to embodiments of the present disclosure. As can be seen in
(34) In block 101, at least one processing sub-interval is determined.
(35) In the current embodiment, it is assumed that a pixel value range is divided into 16 sub-intervals from #0 to #15 in the standard or a coding system. The number of at least one processing sub-interval is equal to 2. The two processing sub-intervals are selected arbitrarily by the encoder. More specifically, a possible selection method includes selecting processing sub-intervals a and b in 16 sub-intervals.
(36) In block 102, at least one processing sub-interval to be indicated is determined.
(37) The encoder arbitrarily selects the at least one processing sub-interval, such that all of at least one processing sub-interval are indicated on the bitstream. Therefore, the at least one processing sub-interval is determined as the processing sub-intervals a and b.
(38) In block 103, the at least one processing sub-interval to be indicated is indicated.
(39) For example, a possible indication method includes a procedure provided below.
(40) A difference between a and b, i.e., d.sub.1=b-a and d.sub.2=a-b, is calculated, and b is greater than a, such that it is assumed that d1 is greater than 0 and d.sub.2 is less than 0.
(41) A sum of the differences being less than 0 and the number of all the pixel sub-intervals are calculated, and that is, d.sub.3=d.sub.2+16=16+ab and 16 is the number of all the sub-intervals. Thus, a relationship between d.sub.1 and d.sub.3 is d.sub.1+d.sub.3=16.
(42) d.sub.1 and d.sub.3 are compared with each other.
(43) When d.sub.1 is not greater than d.sub.3, d.sub.1 ranges from 1 to 8 according to the above-described relationship between d.sub.1 and d.sub.3. Processing sub-interval information transmitted on a bitstream is a, and processing sub-interval derivation information transmitted on the bitstream is d.sub.1(=ba). a ranges from 0 to 15, and may be indicated by 4-bit fixed-length encoding or variable-length encoding based on probability distribution. (ba) ranges from 1 to 8, and may be indicated by 3-bit fixed-length encoding or variable-length encoding based on probability distribution.
(44) When d.sub.3 is not greater than d.sub.1, d.sub.3 ranges from 1 to 8. Processing sub-interval information transmitted on a bitstream is b, and processing sub-interval derivation information transmitted on the bitstream is d.sub.3(=16+ab). b ranges from 0 to 15, and may be indicated by 4-bit fixed-length encoding or variable-length encoding based on probability distribution. d.sub.3, i.e., (16+a-b) ranges from 1 to 8, and may be indicated by 3-bit fixed-length encoding or variable-length encoding based on probability distribution.
(45) If d.sub.1 is equal to d.sub.3, the processing sub-interval information and the processing sub-interval derivation information transmitted on the bitstream may be a and d.sub.1, respectively. The processing sub-interval information and the processing sub-interval derivation information transmitted on the bitstream may be b and d.sub.3, respectively. Regardless of a method used from among the foregoing methods, the decoder may correctly obtain the indicated processing sub-intervals a and b.
(46) Preferably, d.sub.1-1 or d.sub.3-1 may be transmitted as the processing sub-interval derivation information on the bitstream. Thus, to facilitate subsequent entropy encoding, a value of the processing sub-interval derivation information ranges from 0.
Embodiment 2
(47) A method for indicating a pixel to be applied to an encoder is provided according to embodiments of the present disclosure. As can be seen in
(48) In block 101, at least one processing sub-interval is determined.
(49) In the current embodiment, it is assumed that a pixel value range is divided into 16 sub-intervals from #0 to #15 in the standard or a coding system. The number of at least one processing sub-interval is equal to 2. The two processing sub-intervals are selected arbitrarily by the encoder. More specifically, a possible selection method includes selecting processing sub-intervals a and b in 16 sub-intervals.
(50) In block 102, at least one processing sub-interval to be indicated is determined.
(51) The encoder arbitrarily selects the at least one processing sub-interval, such that all of at least one processing sub-interval are indicated on the bitstream. Therefore, the at least one processing sub-interval is determined as the processing sub-intervals a and b.
(52) In block 103, the at least one processing sub-interval to be indicated is indicated.
(53) The at least one processing sub-interval to be indicated is predicted. The at least one processing sub-interval to be indicated is indicated by transmission of processing sub-interval derivation information. A possible indication method includes a procedure provided below.
(54) A predicted value p for the at least one processing sub-interval to be indicated are generated. A possible prediction method includes determining an index of a sub-interval including the most pixels of the current processing region as the predicted value for the at least one processing sub-interval to be indicated.
(55) Information about a difference between the at least one indices of the at least one processing processing sub-intervals to be indicated and the predicted value for the at least one processing sub-interval to be indicated is calculated. A calculation implementation method includes a procedure provided below.
(56) A difference d1 between p and a is calculated. When a is not less than p, d.sub.1 is equal to (a-p). When a is less than p, d.sub.1 is equal to (ap+16).
(57) A difference d2 between p and b is calculated. When b is not less than p, d.sub.2 is equal to (b-p). When b is less than p, d.sub.2 is equal to (bp+16).
(58) The difference information is determined as the processing sub-interval derivation information to be transmitted. That is, d.sub.1 and d.sub.2 are transmitted.
Embodiment 3
(59) A method for indicating a pixel to be applied to an encoder is provided according to embodiments of the present disclosure. As can be seen in
(60) In block 101, at least one processing sub-interval is determined.
(61) In the current embodiment, it is assumed that a pixel value range is divided into 32 sub-intervals from #0 to #31 in the standard or a coding system. The number of at least one processing sub-interval is equal to 4. The four processing sub-intervals are selected arbitrarily by the encoder. More specifically, a possible selection method includes selecting processing sub-intervals a, b, c, and d in 32 sub-intervals.
(62) In block 102, at least one processing sub-interval to be indicated is determined.
(63) The encoder arbitrarily selects the at least one processing sub-interval, such that all of at least one processing sub-interval are indicated on the bitstream. Therefore, the at least one processing sub-interval to be indicated is determined as the processing sub-intervals a, b, c, and d.
(64) In block 103, the at least one processing sub-interval to be indicated is indicated.
(65) A possible indication method includes a procedure provided below.
(66) a, b, c, and d are ranked. After a, b, c, and d are ranked, the order of a<b<c<d is obtained.
(67) Thereafter, a difference between two adjacent numbers is sequentially calculated, and a difference being less than 0 is added by the number of all the sub-intervals thereto. Thus, d.sub.1 (=b-a), d.sub.2 (=c-b), d.sub.3 (=d-c), and d.sub.4 (=a-d+32) are obtained.
(68) The greatest one of d1, d2, d3, and d4 is obtained. A minuend in calculation of the greatest difference is obtained as processing sub-interval information recorded on the bitstream, and remainders are sequentially determined as processing sub-interval derivation information recorded on the bistream. It is assumed that d3 is the greatest difference (if two or more greatest differences exist, a minuend corresponding to any one of the two or more greatest differences may be selected as the processing sub-interval information. With the method according to the present disclosure, regardless of which one is selected, correct derivation of the at least one indicated processing sub-interval by the decoder is guaranteed). Therefore, the transmitted processing sub-interval information is d, and the processing sub-interval derivation information sequentially transmitted is d.sub.4 (=a-d+32), d.sub.1 (=b-a), and d.sub.2 (=c-b). A value of the processing sub-interval information ranges from 0 to 31, and may be indicated by 5-bit fixed-length encoding or variable-length encoding based on probability distribution. A value of the processing sub-interval derivation information ranges from 1 to 15, and may be indicated by 4-bit fixed-length encoding or variable-length encoding based on probability distribution.
(69) Preferably, d.sub.4-1, d.sub.1-1, and d.sub.2-1 may be sequentially transmitted as the processing sub-interval derivation information on a bitstream. Thus, to facilitate subsequent entropy encoding, a value of the processing sub-interval derivation information ranges from 0.
Embodiment 4
(70) A method for indicating a pixel to be applied to an encoder is provided according to embodiments of the present disclosure. As can be seen in
(71) In block 101, at least one processing sub-interval is determined.
(72) In the current embodiment, it is assumed that a pixel value range is divided into 32 sub-intervals from #0 to #31 in the standard or a coding system. The number of at least one processing sub-interval is arbitrarily determined by the encoder. The at least one processing sub-interval is arbitrarily selected by the encoder. More specifically, a possible selection method includes selecting k processing sub-intervals a.sub.1, a.sub.2, . . . , and a.sub.k in 32 sub-intervals.
(73) In block 102, at least one processing sub-interval to be indicated is determined.
(74) The number of at least one processing sub-interval may be arbitrarily determined by the encoder, and the at least one processing sub-interval may be arbitrarily selected by the encoder, such that the number of at least one processing sub-interval, indicated by k, and all of the at least one processing sub-interval may be indicated on the bitstream. The at least one processing sub-interval to be indicated is determined as a.sub.1, a.sub.2, . . . , and a.sub.k.
(75) In block 103, the at least one processing sub-interval to be indicated is indicated.
(76) A possible indication method includes a procedure provided below.
(77) a.sub.1, a.sub.2, . . . , and a.sub.k are ranked. After a.sub.1, a.sub.2, . . . , and a.sub.k are ranked, the order of a.sub.1<a.sub.2<a.sub.k is obtained.
(78) Thereafter, a difference between every two adjacent numbers is sequentially calculated, and a difference being less than 0 is added by the number of all the sub-intervals thereto. Therefore, d.sub.1 (=a.sub.2a.sub.1), d.sub.2 (=a.sub.3a.sub.2), . . . , d.sub.k1 (=a.sub.ka.sub.k1), and dk (=a.sub.1a.sub.k+32) are obtained.
(79) The greatest one of d.sub.1, d.sub.2, d.sub.3, . . . , and d.sub.k is obtained. A minuend in calculation of the greatest difference is obtained as processing sub-interval information recorded on the bitstream, and remainders are sequentially determined as processing sub-interval derivation information recorded on the bistream. It is assumed that d.sub.3 is the greatest difference (if two or more greatest differences exist, a minuend corresponding to any one of the two or more greatest differences may be selected as the processing sub-interval information. With the method according to the present disclosure, regardless of which one is selected, correct derivation of the at least one indicated processing sub-interval by the decoder is guaranteed). Therefore, the transmitted processing sub-interval information is a.sub.4, and the processing sub-interval derivation information sequentially transmitted is d.sub.4 (=a.sub.5a.sub.4), d.sub.5 (=a.sub.6a.sub.5), . . . , d.sub.k1 (=a.sub.ka.sub.k1), d.sub.k (=a.sub.1a.sub.k+32), d.sub.1(=a.sub.2a.sub.1), and d.sub.2 (=a.sub.3a.sub.2). A value of the processing sub-interval derivation information ranges from 0 to 31, and may be indicated by 5-bit fixed-length encoding or variable-length encoding based on probability distribution. A value of the processing sub-interval derivation information ranges from 1 to (34k)/2, and may be indicated by corresponding bit fixed-length encoding or variable-length encoding based on probability distribution.
(80) Preferably, the processing sub-interval derivation information from which 1 is subtracted may be transmitted on the bitstream. Thus, to facilitate subsequent entropy encoding, a value of the processing sub-interval derivation information ranges from 0.
Embodiment 5
(81) A method for indicating a pixel to be applied to an encoder is provided according to embodiments of the present disclosure. As can be seen in
(82) In block 101, at least one processing sub-interval is determined.
(83) In the current embodiment, it is assumed that a pixel value range is divided into 32 sub-intervals from #0 to #31 in the standard or a coding system. The number of at least one processing sub-interval is equal to 4. The four processing sub-intervals are divided into two groups. Each group includes two consecutive sub-intervals. More specifically, a possible selection method includes selecting, by the encoder, processing sub-intervals a, a+1, b, and b+1 as the processing sub-intervals in 32 sub-intervals. Herein, a condition that a, a+1, b, and b+1 are not identical to one another needs to be satisfied.
(84) Preferably, the last sub-interval and the first sub-interval may be defined as two consecutive sub-intervals. That is, a sub-interval 0 and a sub-interval 31 are handled as two consecutive sub-intervals, and the sub-interval 0 comes after the sub-interval 31. A possible selection method includes selecting processing sub-intervals a, (a+1)mod32, b, and (b+1)mod32 as the processing sub-intervals. mod32 indicates obtaining a remainder by division by 32. Herein, a condition that a, (a+1)mod32, b, and (b+1)mod32 are not identical to one another needs to be satisfied.
(85) In block 102, at least one processing sub-interval to be indicated is determined.
(86) Since the two processing sub-intervals of each group are consecutive, only a start processing sub-interval is indicated and the other processing sub-interval in each group may be derived from the indicated start processing sub-interval. Therefore, the at least one processing sub-interval to be indicated is determined as the processing sub-intervals a and b.
(87) In block 103, the at least one processing sub-interval to be indicated is indicated.
(88) A possible indication method includes a procedure provided below.
(89) A difference between a and b is calculated. That is, d.sub.1 is equal to (ba), and d.sub.2 is equal to (ab). b is greater than a, such that it is assumed that d.sub.1 is greater than 0 and d.sub.2 is less than 0.
(90) A sum of the differences being less than 0 and the number of all the pixel sub-intervals are calculated, and that is, d.sub.3=d.sub.2+32=32+ab.
(91) d.sub.1 and d.sub.3 are compared with each other.
(92) When d.sub.1 is not greater than d.sub.3, processing sub-interval information transmitted on a bitstream is a, and processing sub-interval derivation information transmitted on the bitstream is d.sub.1(=b-a). A value of the processing sub-interval information ranges from 0 to 30 (the value ranges from 0 to 31 when the last sub-interval and the first sub-interval are handled as consecutive sub-intervals), and may be indicated by 5-bit fixed-length encoding or variable-length encoding based on probability distribution. A value of the processing sub-interval derivation information ranges from 2 to 16, and may be indicated by 4-bit fixed-length encoding or variable-length encoding based on probability distribution.
(93) When d.sub.3 is not greater than d.sub.1, processing sub-interval information transmitted on a bitstream is b, and processing sub-interval derivation information transmitted on the bitstream is d.sub.3(=16+a-b). A value of the processing sub-interval information ranges from 0 to 30 (the value ranges from 0 to 31 when the last sub-interval and the first sub-interval are handled as consecutive sub-intervals), and may be indicated by 4-bit fixed-length encoding or variable-length encoding based on probability distribution. A value of the processing sub-interval derivation information ranges from 2 to 16, and may be indicated by 4-bit fixed-length encoding or variable-length encoding based on probability distribution.
(94) If d.sub.1 is equal to d.sub.3, the processing sub-interval information and the processing sub-interval derivation information transmitted on the bitstream may be a and d.sub.1, respectively. The processing sub-interval information and the processing sub-interval derivation information transmitted on the bitstream may be b and d.sub.3, respectively. Regardless of a method used from among the foregoing methods, the decoder may correctly obtain the indicated processing sub-intervals a and b.
(95) Preferably, d.sub.1-2 or d.sub.3-2 may be transmitted as the processing sub-interval derivation information on the bitstream. Thus, to facilitate subsequent entropy encoding, a value of the processing sub-interval derivation information ranges from 0.
(96) Generally, when the number of at least one processing sub-interval is 2t, the 2t processing sub-intervals are divided into two groups, and each group includes t consecutive processing sub-intervals, the method according to the embodiment may be equally applied. According to the embodiment of the present disclosure, the processing sub-interval information and the processing sub-interval derivation information transmitted on the bitstream may be determined to indicate the at least one processing sub-interval to be indicated. The value range of the processing sub-interval information and the value range of the processing sub-interval derivation information may depend on t.
Embodiment 6
(97) A method for indicating a pixel to be applied to an encoder is provided according to embodiments of the present disclosure. As can be seen in
(98) In block 101, at least one processing sub-interval is determined.
(99) In the current embodiment, it is assumed that a pixel value range is divided into 32 sub-intervals from #0 to #31 in the standard or a coding system. The number of at least one processing sub-interval is equal to 4. The four processing sub-intervals are divided into two groups. Each group includes two consecutive sub-intervals. More specifically, a possible selection method includes selecting, by the encoder, processing sub-intervals a, a+1, b, and b+1 as the processing sub-intervals in 32 sub-intervals. Herein, a condition that a, a+1, b, and b+1 are not identical to one another needs to be satisfied.
(100) Preferably, the last sub-interval and the first sub-interval may be defined as two consecutive sub-intervals. That is, a sub-interval 0 and a sub-interval 31 are handled as two consecutive sub-intervals, and the sub-interval 0 comes after the sub-interval 31. A possible selection method includes selecting processing sub-intervals a, (a+1)mod32, b, and (b+1)mod32 as the processing sub-intervals. mod32 indicates obtaining a remainder by division by 32. Herein, a condition that a, (a+1)mod32, b, and (b+1)mod32 are not identical to one another needs to be satisfied.
(101) In block 102, at least one processing sub-interval to be indicated is determined.
(102) Since the two processing sub-intervals of each group are consecutive, only a start processing sub-interval is indicated and the other processing sub-interval in each group may be derived from the indicated start processing sub-interval. Therefore, the at least one processing sub-interval to be indicated is determined as the processing sub-intervals a and b.
(103) In block 103, the at least one processing sub-interval to be indicated is indicated.
(104) The at least one processing sub-interval to be indicated is predicted. The at least one processing sub-interval to be indicated is indicated by transmission of processing sub-interval derivation information. A possible indication method includes a procedure provided below.
(105) A predicted value p for the at least one processing sub-interval to be indicated is generated. A possible prediction method includes determining an index of a sub-interval including the most pixels of the current processing region as the predicted value for the at least one processing sub-interval to be indicated.
(106) Information about a difference between the at least one indices of the at least one processing processing sub-intervals to be indicated and the predicted value for the at least one processing sub-interval to be indicated is calculated. A possible calculation method includes a procedure provided below.
(107) One of a and b, which is close to p, is obtained. It is assumed that a is closer to p than b. That is, |pa|=|pb|.
(108) A difference between p and a, d1 (=ap), is calculated.
(109) A difference d.sub.2 between a and b is calculated. When b is greater than a, d.sub.2 is equal to (b-a). When b is less than a, d.sub.2 is equal to (ba+32).
(110) The difference information is determined as the processing sub-interval derivation information to be transmitted. That is, d.sub.1 and d.sub.2 are transmitted.
(111) In the above embodiment, when |pa| is equal to |pb|, any one of a and b is determined as any one which is closer to p to perform the above procedure. With the method according to the present disclosure, regardless of which one is selected, correct derivation of the at least one indicated processing sub-interval by the decoder is guaranteed.
(112) Generally, when the number of at least one processing sub-interval is 2t, the 2t processing sub-intervals are divided into two groups, and each group includes t consecutive processing sub-intervals, the method according to the embodiment may be equally applied.
(113) According to the embodiment of the present disclosure, the processing sub-interval information and the processing sub-interval derivation information transmitted on the bitstream may be determined to indicate the at least one processing sub-interval to be indicated. The value range of the processing sub-interval information and the value range of the processing sub-interval derivation information may depend on t.
Embodiment 7
(114) A method for indicating a pixel to be applied to an encoder is provided according to embodiments of the present disclosure. As can be seen in
(115) In block 101, at least one processing sub-interval is determined.
(116) In the current embodiment, it is assumed that a pixel value range is divided into 32 sub-intervals from #0 to #31 in the standard or a coding system. The number of at least one processing sub-interval is equal to 8. The eight processing sub-intervals are divided into four groups. Each group includes two consecutive sub-intervals. More specifically, a possible selection method includes selecting, by the encoder, processing sub-intervals a, a+1, b, b+1, c, c+1, d, and d+1 as the processing sub-intervals in 32 sub-intervals. Herein, a condition that a, a+1, b, b+1, c, c+1, d, and d+1 are not identical to one another needs to be satisfied.
(117) Preferably, the last sub-interval and the first sub-interval may be defined as two consecutive sub-intervals. That is, a sub-interval 0 and a sub-interval 31 are handled as two consecutive sub-intervals, and the sub-interval 0 comes after the sub-interval 31. A possible selection method includes selecting processing sub-intervals a, (a+1)mod32, b, (b+1)mod32, c, (c+1)mod32, d, and (d+1)mod32 as the processing sub-intervals. mod32 indicates obtaining a remainder by division by 32. Herein, a condition that a, (a+1)mod32, b, (b+1)mod32, c, (c+1)mod32, d, and (d+1)mod32 are not identical to one another needs to be satisfied.
(118) In block 102, at least one processing sub-interval to be indicated is determined.
(119) Since the two processing sub-intervals of each group are consecutive, only a start processing sub-interval is indicated and the other processing sub-interval in each group may be derived from the indicated start processing sub-interval. Therefore, the at least one processing sub-interval to be indicated is the processing sub-intervals a, b, c, and d.
(120) In block 103, the at least one processing sub-interval to be indicated is indicated.
(121) For example, a possible indication method includes a procedure provided below. a, b, c, and d are ranked. After a, b, c, and d are ranked, the order of a<b<c<d is obtained.
(122) Thereafter, a difference between two adjacent numbers is sequentially calculated, and a difference being less than 0 is added by the number of all the sub-intervals thereto. Thus, d.sub.1 (=b-a), d.sub.2 (=c-b), d.sub.3 (=d-c), and d.sub.4 (=a-d+32) are obtained.
(123) The greatest one of d.sub.1, d.sub.2, d.sub.3, and d.sub.4 is obtained. A minuend in calculation of the greatest difference is obtained as processing sub-interval information recorded on the bitstream, and remainders are sequentially determined as processing sub-interval derivation information recorded on the bistream. It is assumed that d.sub.2 is the greatest difference (if two or more greatest differences exist, a minuend corresponding to any one of the two or more greatest differences may be selected as the processing sub-interval information. With the method according to the present disclosure, regardless of which one is selected, correct derivation of the at least one indicated processing sub-interval by the decoder is guaranteed). Therefore, the transmitted processing sub-interval information is c, and the processing sub-interval derivation information sequentially transmitted is d.sub.3 (=d-c), d.sub.4 (=a-d+32), and d.sub.1 (=b-a). A value of the processing sub-interval information ranges from 0 to 30 (the value ranges from 0 to 31 when the last sub-interval and the first sub-interval are handled as consecutive sub-intervals), and may be indicated by 5-bit fixed-length encoding or variable-length encoding based on probability distribution. A value of the processing sub-interval derivation information ranges from 2 to 14, and may be indicated by 4-bit fixed-length encoding or variable-length encoding based on probability distribution.
(124) Preferably, d.sub.3-2, d.sub.4-2, and d.sub.1-2 may be sequentially transmitted as the processing sub-interval derivation information on a bitstream. Thus, to facilitate subsequent entropy encoding, a value of the processing sub-interval derivation information ranges from 0.
(125) Generally, when the number of at least one processing sub-interval is 4t, the 4t processing sub-intervals are divided into two groups, and each group includes t consecutive processing sub-intervals, the method according to the embodiment may be equally applied. According to the embodiment of the present disclosure, the processing sub-interval information and the processing sub-interval derivation information transmitted on the bitstream may be determined to indicate the at least one processing sub-interval to be indicated. The value range of the processing sub-interval information and the value range of the processing sub-interval derivation information may depend on t.
Embodiment 8
(126) A method for indicating a pixel to be applied to an encoder is provided according to embodiments of the present disclosure. As can be seen in
(127) In block 101, at least one processing sub-interval is determined.
(128) In the current embodiment, it is assumed that a pixel value range is divided into 32 sub-intervals from #0 to #31 in the standard or a coding system. The number of at least one processing sub-interval is equal to 2k. The 2k processing sub-intervals are selected by the encoder and are divided into k groups. Each group includes two consecutive sub-intervals. The value k is determined by the encoder. More specifically, a possible selection method includes selecting 2k processing sub-intervals a.sub.1, a.sub.1+1, a.sub.2, a.sub.2+1, . . . , a.sub.k, and a.sub.k+1 in 32 sub-intervals. A condition that a.sub.1, a.sub.1+1, a.sub.2, a.sub.2+1, . . . , a.sub.k, and a.sub.k+1 are not identical to one another needs to be satisfied.
(129) Preferably, the last sub-interval and the first sub-interval may be defined as two consecutive sub-intervals. That is, a sub-interval 0 and a sub-interval 31 are handled as two consecutive sub-intervals, and the sub-interval 0 comes after the sub-interval 31. A possible selection method includes selecting processing sub-intervals a.sub.1, (a.sub.1+1)mod32, a.sub.2, (a.sub.2+1)mod32, . . . , a.sub.k, and (a.sub.k+1)mod32 as the processing sub-intervals. mod32 indicates obtaining a remainder by division by 32. Herein, a condition that a.sub.1, (a.sub.1+1)mod32, a.sub.2, (a.sub.2+1)mod32, . . . , a.sub.k, and (a.sub.k+1)mod32 are not identical to one another needs to be satisfied.
(130) In block 102, at least one processing sub-interval to be indicated is determined.
(131) Since the two processing sub-intervals of each group are consecutive, only a start processing sub-interval is indicated and the other processing sub-interval in each group may be derived from the indicated start processing sub-interval. Therefore, the at least one processing sub-interval to be indicated is the processing sub-intervals a.sub.1, a.sub.2, . . . , and a.sub.k.
(132) In block 103, the at least one processing sub-interval to be indicated is indicated.
(133) For example, a possible indication method includes a procedure provided below.
(134) a.sub.1, a.sub.2, . . . , and a.sub.k are ranked. After a.sub.1, a.sub.2, . . . , and a.sub.k are ranked, the order of a.sub.1<a.sub.2<a.sub.k is obtained.
(135) Thereafter, a difference between every two adjacent numbers is sequentially calculated, and a difference being less than 0 is added by the number of all the sub-intervals thereto. Therefore, d.sub.1 (=a.sub.2a.sub.1), d.sub.2 (=a.sub.3a.sub.2), . . . , d.sub.k1 (=a.sub.ka.sub.k1), and d.sub.k (=a.sub.1a.sub.k+32) are obtained.
(136) The greatest one of d.sub.1, d.sub.2, d.sub.3, . . . , and d.sub.k is obtained. A minuend in calculation of the greatest difference is obtained as processing sub-interval information recorded on the bitstream, and remainders are sequentially determined as processing sub-interval derivation information recorded on the bistream. It is assumed that d.sub.2 is the greatest difference (if two or more greatest differences exist, a minuend corresponding to any one of the two or more greatest differences may be selected as the processing sub-interval information. With the method according to the present disclosure, regardless of which one is selected, correct derivation of the at least one indicated processing sub-interval by the decoder is guaranteed). Therefore, the transmitted processing sub-interval information is a.sub.3, and the processing sub-interval derivation information sequentially transmitted is d.sub.3(=a.sub.4a.sub.3), d.sub.4(=a.sub.5a.sub.4), d.sub.5(=a.sub.6a.sub.5), . . . , d.sub.k1(=a.sub.ka.sub.k1), d.sub.k(=a.sub.1a.sub.k+32), and d.sub.1(=a.sub.2a.sub.1). A value of the processing sub-interval information ranges from 0 to 30 (the value ranges from 0 to 31 when the last sub-interval and the first sub-interval are handled as consecutive sub-intervals), and may be indicated by 5-bit fixed-length encoding or variable-length encoding based on probability distribution. A value of the processing sub-interval derivation information ranges from 2 to 18k, and may be indicated by corresponding bit fixed-length encoding or variable-length encoding based on probability distribution.
(137) Preferably, the processing sub-interval derivation information from which 2 is subtracted may be transmitted on the bitstream. Thus, to facilitate subsequent entropy encoding, a value of the processing sub-interval derivation information ranges from 0.
(138) Generally, when the number of at least one processing sub-interval is t*k, the t*k processing sub-intervals are divided into k groups, and each group includes t consecutive processing sub-intervals, the method according to the embodiment may be equally applied. According to the embodiment of the present disclosure, the processing sub-interval information and the processing sub-interval derivation information transmitted on the bitstream may be determined to indicate the at least one processing sub-interval to be indicated. The value range of the processing sub-interval information and the value range of the processing sub-interval derivation information may depend on t.
Embodiment 9
(139) A method for processing a pixel indication to be applied to the decoder is provided according to embodiments of the present disclosure. As can be seen in
(140) In block 201, processing sub-interval indication information is obtained.
(141) Processing sub-interval information x and processing sub-interval derivation information y are parsed from a bitstream. Alternatively, the processing sub-interval information x and the processing sub-interval derivation information y are obtained from a bitstream parsing module.
(142) Preferably, if 1 is subtracted from the processing sub-interval derivation information transmitted on the bitstream, the following procedures may be performed after a value of the processing sub-interval derivation information parsed from the bitstream is increased by 1 (i.e., a value of y is set to (y+1)).
(143) In block 202, at least one processing sub-interval to be indicated is determined.
(144) In a possible determination method, an index of the first indicated processing sub-interval expressed as a is x and an index of the second indicated processing sub-interval expressed as b is (a+y)mod16, in which mod16 indicates obtaining a remainder by division by 16.
(145) In block 203, all of at least one processing sub-interval are determined.
(146) In a possible determination method, the at least one processing sub-interval includes the indicated processing sub-interval a and the indicated processing sub-interval b.
(147) In the current embodiment, it is assumed that a pixel value range is divided into 16 sub-intervals from #0 to #15 in the standard or a coding system. Two sub-intervals are determined as the processing sub-intervals.
Embodiment 10
(148) A method for processing a pixel indication to be applied to the decoder is provided according to embodiments of the present disclosure. As can be seen in
(149) In block 201, processing sub-interval indication information is obtained.
(150) The processing sub-interval derivation information x and y are parsed from the bitstream. Alternatively, the processing sub-interval derivation information x and y are obtained from the bitstream parsing module.
(151) In block 202, at least one processing sub-interval to be indicated is determined.
(152) The at least one indicated processing sub-interval is predicted. Then, the at least one indicated processing sub-interval is derived according to the predicted value and the processing sub-interval derivation information transmitted on the bitstream. A possible implementation method includes a procedure described below.
(153) The predicted value p for the at least one indicated processing sub-interval is generated. A possible generation method includes determining an index of a sub-interval including the most pixels of the current processing region as the predicted value p for the at least one indicated processing sub-interval.
(154) The at least one indicated processing sub-interval is derived. In a possible derivation method, an index of the first indicated processing sub-interval expressed as a is (p+x)mod16 and an index of the second indicated processing sub-interval expressed as b is (p+y)mod16, in which mod16 indicates obtaining a remainder by division by 16.
(155) In block 203, all of at least one processing sub-interval are determined.
(156) In a possible determination method, the at least one processing sub-interval includes the indicated processing sub-interval a and the indicated processing sub-interval b.
(157) In the current embodiment, it is assumed that a pixel value range is divided into 16 sub-intervals from #0 to #15 in the standard or a coding system. Two sub-intervals are determined as the processing sub-intervals.
Embodiment 11
(158) A method for processing a pixel indication to be applied to the decoder is provided according to embodiments of the present disclosure. As can be seen in
(159) In block 201, processing sub-interval indication information is obtained.
(160) Processing sub-interval information x and processing sub-interval derivation information y, z, and w are parsed from a bitstream. Alternatively, the processing sub-interval information x and the processing sub-interval derivation information y, z, and w are obtained from the bitstream parsing module.
(161) Preferably, if 1 is subtracted from the processing sub-interval derivation information transmitted on the bitstream, the following procedures may be performed after a value of the processing sub-interval derivation information parsed from the bitstream is increased by 1 (i.e., values of y, z, and w are set to (y+1), (z+1), and (w+1), respectively).
(162) In block 202, at least one processing sub-interval to be indicated is determined.
(163) In a possible determination method, an index of the first indicated processing sub-interval expressed as a is x, an index of the second indicated processing sub-interval expressed as b is (a+y)mod32, an index of the third indicated processing sub-interval expressed as c is (b+z)mod32, and an index of the fourth indicated processing sub-interval expressed as d is (c+w)mod32, in which mod32 indicates obtaining a remainder by division by 32.
(164) In block 203, all of at least one processing sub-interval are determined.
(165) In a possible determination method, the at least one processing sub-interval includes the indicated processing sub-intervals a, b, c, and d.
(166) In the current embodiment, it is assumed that a pixel value range is divided into 32 sub-intervals from #0 to #31 in the standard or a coding system. Four sub-intervals are determined as the processing sub-intervals.
Embodiment 12
(167) A method for processing a pixel indication to be applied to the decoder is provided according to embodiments of the present disclosure. As can be seen in
(168) In block 201, processing sub-interval indication information is obtained.
(169) Processing sub-interval information x and processing sub-interval derivation information y.sub.1, y.sub.2, . . . , y.sub.k1 are parsed from a bitstream. Alternatively, the processing sub-interval information x and the processing sub-interval derivation information y1, y2, . . . , and yk1 are obtained from the bitstream parsing module.
(170) In the current embodiment, the number of at least one processing sub-interval may be determined by the encoder. Therefore, before the processing sub-interval information and the sub-interval derivation information are parsed or obtained, the number of at least one processing sub-interval, designated as k, is parsed or obtained.
(171) Preferably, if 1 is subtracted from the processing sub-interval derivation information transmitted on the bitstream, the following procedures may be performed after a value of the processing sub-interval derivation information parsed from the bitstream is increased by 1 (i.e., values of y1, y2, . . . , and yk1 are set to (y1+1), (y2+1), . . . , and (yk1+1), respectively).
(172) In block 202, at least one processing sub-interval to be indicated is determined.
(173) In a possible determination method, an index of the first indicated processing sub-interval expressed as a1 is x, an index of the second indicated processing sub-interval expressed as a2 is (a1+y1)mod32, an index of the third indicated processing sub-interval expressed as a3 is (a2+y2)mod32, and an index of the k.sup.th indicated processing sub-interval expressed as ak is (ak1+yk1)mod32, in which mod32 indicates obtaining a remainder by division by 32.
(174) In block 203, all of at least one processing sub-interval are determined.
(175) In a possible determination method, the at least one processing sub-interval includes the indicated processing sub-intervals a1, a2, . . . , ak.
(176) In the current embodiment, it is assumed that a pixel value range is divided into 32 sub-intervals from #0 to #31 in the standard or a coding system. K sub-intervals are determined as the processing sub-intervals.
Embodiment 13
(177) A method for processing a pixel indication to be applied to the decoder is provided according to embodiments of the present disclosure. As can be seen in
(178) In block 201, processing sub-interval indication information is obtained.
(179) Processing sub-interval information x and processing sub-interval derivation information y are parsed from a bitstream. Alternatively, the processing sub-interval information x and the processing sub-interval derivation information y are obtained from the bitstream parsing module.
(180) Preferably, if 2 is subtracted from the processing sub-interval derivation information transmitted on the bitstream, the following procedures may be performed after a value of the processing sub-interval derivation information parsed from the bitstream is increased by 2 (i.e., a value of y is set to (y+2)).
(181) In block 202, at least one processing sub-interval to be indicated is determined.
(182) In a possible determination method, an index of the first indicated processing sub-interval expressed as a is x and an index of the second indicated processing sub-interval expressed as b is (a+y)mod32, in which mod32 indicates obtaining a remainder by division by 32.
(183) In block 203, all of at least one processing sub-interval are determined.
(184) All of the at least one processing sub-interval are derived according to the at least one indicated processing sub-interval. In a possible derivation method, the at least one processing sub-interval includes processing sub-intervals a, a+1, b, and b+1.
(185) Preferably, the last sub-interval and the first sub-interval are two consecutive sub-intervals, and the first sub-interval is defined as following the last sub-interval. In a possible determination method, the at least one processing sub-interval includes sub-intervals a, (a+1)mod32, b, and (b+1)mod32, in which mod32 indicates obtaining a remainder by division by 32.
(186) In the current embodiment, it is assumed that a pixel value range is divided into 32 sub-intervals from #0 to #31 in the standard or a coding system. Four sub-intervals are determined as the processing sub-intervals. The four processing sub-intervals are divided into two groups, each of which includes two consecutive sub-intervals.
(187) Generally, when the number of at least one processing sub-interval is 2t, the 2t processing sub-intervals are divided into two groups, and each group includes t consecutive processing sub-intervals, the method according to the current embodiment may be equally applied. The at least one processing sub-interval is determined as including sub-intervals a, a+1, . . . , a+t1, b, b+1, . . . , and b+t1. The last sub-interval and the first sub-interval are two consecutive sub-intervals, and when the first sub-interval is defined as following the last sub-interval, the at least one processing sub-interval includes a, (a+1)mod32, . . . , (a+t1)mod32, b, (b+1)mod32, . . . , and (b+t1)mod32, in which mod32 indicates obtaining a remainder by division by 32.
Embodiment 14
(188) A method for processing a pixel indication to be applied to the decoder is provided according to embodiments of the present disclosure. As can be seen in
(189) In block 201, processing sub-interval indication information is obtained.
(190) The processing sub-interval derivation information x and y are parsed from the bitstream. Alternatively, the processing sub-interval derivation information x and y are obtained from the bitstream parsing module.
(191) In block 202, at least one processing sub-interval to be indicated is determined.
(192) The at least one indicated processing sub-interval is predicted. Then, the at least one indicated processing sub-interval is derived according to the predicted value and the processing sub-interval derivation information transmitted on the bitstream. A possible implementation method includes a procedure described below.
(193) The predicted value p for the at least one indicated processing sub-interval is generated. A possible generation method includes determining an index of a sub-interval including the most pixels of the current processing region as the predicted value p for the at least one indicated processing sub-interval.
(194) The at least one indicated processing sub-interval is derived. In a possible derivation method, an index of the first indicated processing sub-interval expressed as a is (p+x)mod32 and an index of the second indicated processing sub-interval expressed as b is (a+y)mod32, in which mod32 indicates obtaining a remainder by division by 32.
(195) In block 203, all of at least one processing sub-interval are determined.
(196) In a possible determination method, the at least one processing sub-interval includes processing sub-intervals a, (a+1), b, and (b+1).
(197) Preferably, the last sub-interval and the first sub-interval are two consecutive sub-intervals, and the first sub-interval is defined as following the last sub-interval. In a possible determination method, the at least one processing sub-interval includes sub-intervals a, (a+1)mod32, b, and (b+1)mod32, in which mod32 indicates obtaining a remainder by division by 32.
(198) In the current embodiment, it is assumed that a pixel value range is divided into 32 sub-intervals from #0 to #31 in the standard or a coding system. Four sub-intervals are determined as the at least one processing sub-interval. The four processing sub-intervals are divided into two groups, each of which includes two consecutive sub-intervals.
(199) Generally, when the number of at least one processing sub-interval is 2t, the 2t processing sub-intervals are divided into two groups, and each group includes t consecutive processing sub-intervals, the method according to the current embodiment may be equally applied. The at least one processing sub-interval is determined as including sub-intervals a, a+1, . . . , a+t1, b, b+1, . . . , and b+t1. The last sub-interval and the first sub-interval are defined as two consecutive sub-intervals, and when the first sub-interval comes after the last sub-interval, the at least one processing sub-interval includes a, (a+1)mod32, . . . , (a+t1)mod32, b, (b+1)mod32, . . . , and (b+t1)mod32, in which mod32 indicates obtaining a remainder by division by 32.
Embodiment 15
(200) A method for processing a pixel indication to be applied to the decoder is provided according to embodiments of the present disclosure. As can be seen in
(201) In block 201, processing sub-interval indication information is obtained.
(202) Processing sub-interval information x and processing sub-interval derivation information y, z, and w are parsed from a bitstream. Alternatively, the processing sub-interval information x and the processing sub-interval derivation information y, z, and w are obtained from the bitstream parsing module.
(203) Preferably, if 2 is subtracted from the processing sub-interval derivation information transmitted on the bitstream, the following procedures may be performed after a value of the processing sub-interval derivation information parsed from the bitstream is increased by 2 (i.e., values of y, z, and w are set to (y+2), (z+2), and (w+2), respectively).
(204) In block 202, at least one processing sub-interval to be indicated is determined.
(205) In a possible determination method, an index of the first indicated processing sub-interval expressed as a is x and an index of the second indicated processing sub-interval expressed as b is (a+y)mod32, in which mod32 indicates obtaining a remainder by division by 32.
(206) In block 203, all of at least one processing sub-interval are determined.
(207) All of the at least one processing sub-interval are derived according to the at least one indicated processing sub-interval. In a possible derivation method, the at least one processing sub-interval includes processing sub-intervals a, a+1, b, b+1, c, c+1, d, and d+1.
(208) Preferably, the last sub-interval and the first sub-interval are two consecutive sub-intervals, and the first sub-interval is defined as following the last sub-interval. In a possible determination method, the at least one processing sub-interval includes sub-intervals a, (a+1)mod32, b, (b+1)mod32, c, (c+1)mod32, d, and (d+1)mod32, in which mod32 indicates obtaining a remainder by division by 32.
(209) In the current embodiment, it is assumed that a pixel value range is divided into 32 sub-intervals from #0 to #31 in the standard or a coding system. Eight sub-intervals are determined as the processing sub-intervals. The eight processing sub-intervals are divided into four groups, each of which includes two consecutive sub-intervals.
(210) Generally, when the number of at least one processing sub-interval is 4t, the 2t processing sub-intervals are divided into four groups, and each group includes t consecutive processing sub-intervals, the method according to the current embodiment may be equally applied. The at least one processing sub-interval is determined as including sub-intervals a, a+1, . . . , a+t1, b, b+1, . . . , and b+t1, c, c+1, . . . , c+t1, d, d+1, . . . , and d+t1. The last sub-interval and the first sub-interval are two consecutive sub-intervals, and when the first sub-interval is defined as following the last sub-interval, the at least one processing sub-interval includes a, (a+1)mod32, . . . , (a+t1)mod32, b, (b+1)mod32, . . . , (b+t1)mod32, c, (c+1)mod32, . . . , (a+t1)mod32, d, (d+1)mod32, . . . , and (d+t1)mod32, in which mod32 indicates obtaining a remainder by division by 32.
Embodiment 16
(211) A method for processing a pixel indication to be applied to the decoder is provided according to embodiments of the present disclosure. As can be seen in
(212) In block 201, processing sub-interval indication information is obtained.
(213) Processing sub-interval information x and processing sub-interval derivation information y.sub.1, y.sub.2, . . . , y.sub.k1 are parsed from a bitstream. Alternatively, the processing sub-interval information x and the processing sub-interval derivation information y.sub.1, y.sub.2, . . . , y.sub.k1 are obtained from the bitstream parsing module.
(214) In the current embodiment, since the number of at least one processing sub-interval is determined by the encoder, the number of at least one processing sub-interval, designated as k, is parsed or obtained before the processing sub-interval information and the sub-interval derivation information are parsed or obtained.
(215) Preferably, if 2 is subtracted from the processing sub-interval derivation information transmitted on the bitstream, the following procedures may be performed after a value of the processing sub-interval derivation information parsed from the bitstream is increased by 2 (i.e., values of y.sub.1, y.sub.2, . . . , and y.sub.k1 are set to (y.sub.1+2), (y.sub.2+2), . . . , and (y.sub.k1+2), respectively).
(216) In block 202, at least one processing sub-interval to be indicated is determined.
(217) In a possible determination method, an index of the first indicated processing sub-interval expressed as a1 is x, an index of the second indicated processing sub-interval expressed as a.sub.2 is (a.sub.1+y.sub.1)mod32, an index of the third indicated processing sub-interval expressed as a.sub.3 is (a.sub.2+y.sub.2)mod32, and an index of the k.sup.th indicated processing sub-interval expressed as a.sub.k is (a.sub.k1+y.sub.k1)mod32, in which mod32 indicates obtaining a remainder by division by 32.
(218) In block 203, all of at least one processing sub-interval are determined.
(219) All of the at least one processing sub-interval are derived according to the at least one indicated processing sub-interval. In a possible derivation method, the at least one processing sub-interval includes processing sub-intervals a.sub.1, a.sub.1+1, a.sub.2, a.sub.2+1, a.sub.k, and a.sub.k+1.
(220) Preferably, the last sub-interval and the first sub-interval are two consecutive sub-intervals, and the first sub-interval is defined as following the last sub-interval. In a possible determination method, the at least one processing sub-interval includes sub-intervals a.sub.1, (a.sub.1+1)mod32, a.sub.2, (a.sub.2+1)mod32, a.sub.k, and (a.sub.k+1)mod32, in which mod32 indicates obtaining a remainder by division by 32.
(221) In the current embodiment, it is assumed that a pixel value range is divided into 32 sub-intervals from #0 to #31 in the standard or a coding system. 2K sub-intervals are determined as the processing sub-intervals by the encoder. The four processing sub-intervals are divided into k groups, each of which includes two consecutive sub-intervals. A value k is determined by the encoder.
(222) Generally, when the number of at least one processing sub-interval is k*t, and the k*t processing sub-intervals are divided into k groups, each of which includes t consecutive processing sub-intervals, the method according to the current embodiment may be equally applied. The at least one processing sub-interval is determined as including sub-intervals a.sub.1, a.sub.1+1, . . . , a.sub.1+t1, a.sub.2, a.sub.2+1, . . . , a.sub.2+t1, . . . , a.sub.k, a.sub.k+1, . . . , and a.sub.k+t1. The last sub-interval and the first sub-interval are two consecutive sub-intervals, and when the first sub-interval is defined as following the last sub-interval, the at least one processing sub-interval includes a.sub.1, (a.sub.1+1)mod32, . . . , (a.sub.1+t1)mod32, a.sub.2, (a.sub.2+1)mod32, . . . , (a.sub.2+t1)mod32, . . . , a.sub.k, a.sub.k+1(mod32), . . . , and (a.sub.k+t1)mod32, in which mod32 indicates obtaining a remainder by division by 32.
Embodiment 17
(223) An apparatus for indicating a pixel is provided according to embodiments of the present disclosure. As can be seen from
(224) The processing sub-interval determination module 301 determines at least one processing sub-interval based on an original value, a reconstructed value, and/or another information of a pixel in a current processing region.
(225) The to-be-indicated processing sub-interval determination module 302 determines at least one processing sub-interval to be indicated, based on the at least one processing sub-interval determined by the processing sub-interval determination module 301 and based on an actual condition or standard.
(226) The processing sub-interval indication module 303 indicates the at least oneprocessing sub-intervals to be indicated and encodes indication information on a bitstream or transmits the indication information to another processing module. More specifically, procedures to be performed include procedures indicating the at least one processing sub-interval in Embodiments 1 through 8 of the present disclosure, without being limited thereto.
Embodiment 18
(227) According to embodiments of the present disclosure, an apparatus for processing a pixel indication in a decoder is provided. As can be seen from
(228) The indication information obtaining module 401 parses processing sub-interval indication information from a bitstream or obtains the processing sub-interval indication information from the bitstream parsing module, and the processing sub-interval indication information includes processing sub-interval derivation information or includes the processing sub-interval derivation information and processing sub-interval information.
(229) The indicated processing sub-interval derivation module 402 determines at least one indicated processing sub-interval, based on the at least one processing sub-interval indication information obtained by the processing sub-interval obtaining module 401. More specifically, procedures to be performed include procedures for determining the at least one indicated processing sub-interval in Embodiments 9 through 16 of the present disclosure, without being limited thereto.
(230) The processing sub-interval derivation module 403 determines all of at least one processing sub-interval, based on the at least one indicated processing sub-interval determined by the indicated processing sub-interval derivation module 402 and based on an actual condition or standard.
(231) Under the premise that flexible selection of at least one processing sub-interval is guaranteed by applying the above-mentioned technical solutions according to embodiments of the present invention, indication information of the at least one processing sub-interval to be indicated, which is transmitted, is reduced. According to embodiments of the present disclosure, a value range of processing sub-interval derivation information is smaller than a value range of processing sub-interval information. Therefore, a smaller number of bits may be used to signal the processing sub-interval derivation information. In the embodiments of the present disclosure, the entire processing sub-interval information transmitted on a bitstream or a part thereof may be replaced with the processing sub-interval derivation information. That is, the number of bits dedicated to the indication information to be transmitted is reduced, and by doing so, to improve the performance of video coding, the processing sub-interval derivation information or a combination of the processing sub-interval derivation information and the processing sub-interval information may be employed to indicate the at least one processing sub-interval.
(232) The above description includes preferable embodiments of the present disclosure, and does not the scope of the present disclosure. Any modifications, equivalents, substitutions, or improvements made in the spirit and principle of the present disclosure fall within the scope of the present disclosure.