Mode information encoding and decoding method and device and electronic equipment

文档序号:1432502 发布日期:2020-03-17 浏览:11次 中文

阅读说明:本技术 模式信息的编码和解码方法、装置以及电子设备 (Mode information encoding and decoding method and device and electronic equipment ) 是由 徐张磊 朱建清 于 2017-12-06 设计创作,主要内容包括:一种模式信息的编码和解码方法、装置以及电子设备。所述编码方法包括:确定图像的编码单元所采用的均匀变换单元模式;根据所述编码单元的大小和/或预先确定的均匀变换单元模式的数目,确定所述均匀变换单元模式所对应的二进制比特;以及将所述均匀变换单元模式所对应的二进制比特编码到所述图像的比特流中。由此,不仅能够对均匀变换单元模式信息进行编码和解码,并且能够降低编码的比特代价。(A method and a device for encoding and decoding mode information and an electronic device. The encoding method comprises the following steps: determining a uniform transform unit mode adopted by a coding unit of an image; determining binary bits corresponding to the uniform transformation unit modes according to the size of the coding unit and/or the number of the predetermined uniform transformation unit modes; and encoding the binary bits corresponding to the uniform transform unit mode into a bitstream of the image. Thereby, not only uniform transform unit mode information can be encoded and decoded, but also bit cost of encoding can be reduced.)

An apparatus for encoding mode information, comprising:

a mode determination unit that determines a uniform transform unit mode used by an encoding unit of an image;

a bit determination unit that determines a binary bit corresponding to the uniform transform unit pattern based on the size of the coding unit and/or the number of predetermined uniform transform unit patterns; and

and a bit stream encoding unit that encodes the binary bits corresponding to the uniform transform unit mode into a bit stream of the image.

The encoding apparatus as recited in claim 1, wherein the bit determination section is specifically configured to: and determining the binary bits corresponding to the uniform transformation unit mode as a variable-length binary sequence 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.

The encoding apparatus according to claim 2, wherein the number of uniform transform unit modes is 4; the uniform transform unit mode includes:

a first mode indicating that the coding unit is not divided;

a second mode representing that the coding unit is divided once;

a third mode representing a secondary division of the coding unit;

and a fourth mode indicating that the coding unit is divided three times.

The encoding apparatus according to claim 3, wherein the uniform transform unit mode is represented by utu _ mode; 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 mode.

The encoding device according to claim 3,

the bit determining section determines a binary bit corresponding to the uniform transform unit mode to be 0 if the uniform transform unit mode is the first mode;

in a case where the uniform transform 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 determining part determines a binary bit corresponding to the uniform transform unit mode as 1; otherwise, determining the binary bit corresponding to the uniform transformation unit mode as 10;

in a case where the uniform transform unit mode is the third mode, if the size of the coding unit is 16 × 16 or the width or height of the coding unit is 8, the bit determining part determines the binary bit corresponding to the uniform transform unit mode as 11; otherwise, determining the binary bit corresponding to the uniform transformation unit mode as 110;

when the uniform transform unit mode is the fourth mode, the bit determination unit determines a binary bit corresponding to the uniform transform unit mode to be 111.

The encoding device according to claim 3,

the bit determining section determines a binary bit corresponding to the uniform transform unit mode to be 1, when the uniform transform unit mode is the first mode;

in a case where the uniform transform 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 determining part determines a binary bit corresponding to the uniform transform unit mode as 1; otherwise, determining the binary bit corresponding to the uniform transformation unit mode as 01;

in a case where the uniform transform unit mode is the third mode, if the size of the coding unit is 16 × 16 or the width or height of the coding unit is 8, the bit determining part determines the binary bit corresponding to the uniform transform unit mode as 11; otherwise, determining the binary bit corresponding to the uniform transformation unit mode as 001;

the bit determining unit may determine the binary bit corresponding to the uniform transform unit pattern to be 000 in a case where the uniform transform unit pattern is the fourth pattern.

The encoding apparatus as recited in claim 1, wherein the bit determination section is specifically configured to: and determining binary bits corresponding to the uniform transformation unit modes as fixed-length binary sequences according to the values of the uniform transformation unit modes and the number of the uniform transformation unit modes.

The encoding apparatus according to claim 7, wherein the number of uniform transform unit modes is 4; the uniform transform unit mode includes:

a first mode indicating that the coding unit is not divided;

a second mode representing that the coding unit is divided once;

a third mode representing a secondary division of the coding unit;

and a fourth mode indicating that the coding unit is divided three times.

The encoding device according to claim 8,

when the uniform transform unit mode is the first mode, the bit determining section determines a binary bit corresponding to the uniform transform unit mode as a first value represented by two bits;

when the uniform transform unit mode is the second mode, the bit determining section determines a binary bit corresponding to the uniform transform unit mode as a second value represented by two bits;

when the uniform transform unit mode is the third mode, the bit determining section determines a binary bit corresponding to the uniform transform unit mode as a third value represented by two bits;

the bit determining unit determines a binary bit corresponding to the uniform transform unit mode as a fourth value represented by two bits when the uniform transform unit mode is the fourth mode.

An apparatus for decoding mode information, comprising:

a bit acquisition unit that acquires a binary bit corresponding to a uniform transform unit pattern from a bitstream of an image, based on a size of a coding unit of the image and/or a predetermined number of uniform transform unit patterns;

and a mode determination unit configured to determine a uniform transform unit mode to be used by the coding unit, based on the binary bits corresponding to the uniform transform unit mode.

The decoding device according to claim 10, wherein the bit acquisition section is specifically configured to: and determining that the binary bits corresponding to the uniform transformation unit mode are variable-length binary sequences according to the size of the coding unit, the number of the uniform transformation unit modes and bit values in the bit stream.

The decoding apparatus of claim 11, wherein the number of uniform transform unit modes is 4; the uniform transform unit mode includes:

a first mode indicating that the coding unit is not divided;

a second mode representing that the coding unit is divided once;

a third mode representing a secondary division of the coding unit;

and a fourth mode indicating that the coding unit is divided three times.

The decoding apparatus according to claim 12, wherein utu _ mode is adopted to represent the uniform transform unit mode, 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 mode.

The decoding device according to claim 12,

when a first bit value in the bitstream is 0, the bit acquisition unit determines that a binary bit corresponding to the uniform transform unit mode is 0, and the mode determination unit determines that the uniform transform unit mode adopted by the coding unit is the first mode;

in the case where a first bit value in the bitstream 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 obtaining part determines that the binary bit corresponding to the uniform transform unit mode is 1; otherwise, the bit acquiring part continues to acquire the second bit value in the bitstream, and when the second bit value in the bitstream is 0, the bit acquiring part determines that the binary bit corresponding to the uniform transformation unit mode is 10; and the mode determination section determines the uniform conversion unit mode adopted by the encoding unit as the second mode;

in the case where the second bit value in the bitstream 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 obtaining part determines that the binary bit corresponding to the uniform transform unit mode is 11; otherwise, the bit acquiring unit continues to acquire a third bit value in the bitstream, and when the third bit value in the bitstream is 0, the bit acquiring unit determines that the binary bit corresponding to the uniform transformation unit mode is 110; and the mode determination section determines the uniform conversion unit mode adopted by the encoding unit as the third mode;

when the third bit value in the bitstream is 1, the bit acquisition unit determines that the binary bit corresponding to the uniform transform unit mode is 111; and the mode determination section determines the uniform conversion unit mode adopted by the encoding unit as the fourth mode.

The decoding device according to claim 12,

in a case where a first bit value in the bitstream is 1, the bit obtaining part determines that a binary bit corresponding to the uniform transform unit mode is 1, and the mode determining part determines that the uniform transform unit mode adopted by the encoding unit is the first mode;

in the case where a first bit value in the bitstream 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 obtaining part determines that the binary bit corresponding to the uniform transform unit mode is 0; otherwise, the bit obtaining part continues to obtain a second bit value in the bitstream, and when the second bit value in the bitstream is 1, the bit obtaining part determines that the binary bit corresponding to the uniform transformation unit mode is 01; and the mode determination section determines the uniform conversion unit mode adopted by the encoding unit as the second mode;

in the case where the second bit value in the bitstream 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 obtaining part determines that the binary bit corresponding to the uniform transform unit mode is 00; otherwise, the bit obtaining part continues to obtain a third bit value in the bitstream, and when the third bit value in the bitstream is 1, the bit obtaining part determines that the binary bit corresponding to the uniform transformation unit mode is 001; and the mode determination section determines the uniform conversion unit mode adopted by the encoding unit as the third mode;

when a third bit value in the bitstream is 0, the bit acquisition unit determines that the binary bit corresponding to the uniform transform unit mode is 000; and the mode determination section determines the uniform conversion unit mode adopted by the encoding unit as the fourth mode.

The decoding device according to claim 10, wherein the bit acquisition section is specifically configured to: and determining that the binary bits corresponding to the uniform transformation unit mode are fixed-length binary sequences according to the number of the uniform transformation unit modes and the bit values in the bit stream.

The decoding apparatus of claim 16, wherein the number of uniform transform unit modes is 4; the uniform transform unit mode includes:

a first mode indicating that the coding unit is not divided;

a second mode representing that the coding unit is divided once;

a third mode representing a secondary division of the coding unit;

and a fourth mode indicating that the coding unit is divided three times.

The decoding device according to claim 17,

the mode determination unit determines that a uniform transform unit mode adopted by the encoding unit is a first mode when a bit value in the bitstream is a first value represented by two bits;

the mode determination unit determines that the uniform transform unit mode adopted by the encoding unit is the second mode when a bit value in the bitstream is a second value represented by two bits;

the mode determination unit determines that the uniform transform unit mode adopted by the encoding unit is the third mode when a bit value in the bitstream is a third value represented by two bits;

the mode determination unit determines that the uniform transform unit mode employed by the encoding unit is the fourth mode when a bit value in the bitstream is a fourth value represented by two bits.

An electronic device, wherein the electronic device comprises:

an encoder comprising means for encoding the mode information as claimed in claim 1; and/or

Decoder comprising means for decoding mode information according to claim 10.

1页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于编码或解码图像的方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类