CN1658674A - Method and device of frame prefiction mode coding decoding for video or image compression - Google Patents

Method and device of frame prefiction mode coding decoding for video or image compression Download PDF

Info

Publication number
CN1658674A
CN1658674A CN 200510049312 CN200510049312A CN1658674A CN 1658674 A CN1658674 A CN 1658674A CN 200510049312 CN200510049312 CN 200510049312 CN 200510049312 A CN200510049312 A CN 200510049312A CN 1658674 A CN1658674 A CN 1658674A
Authority
CN
China
Prior art keywords
piece
intra prediction
decoding
mode
prediction mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200510049312
Other languages
Chinese (zh)
Other versions
CN100413342C (en
Inventor
虞露
易峰
董洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XFusion Digital Technologies Co Ltd
Original Assignee
Zhejiang University ZJU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CNB2005100493122A priority Critical patent/CN100413342C/en
Publication of CN1658674A publication Critical patent/CN1658674A/en
Application granted granted Critical
Publication of CN100413342C publication Critical patent/CN100413342C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

This invention discloses a inside-frame forecast mode encoding and decoding method and device used in the video or image compression. This invention permits using a type signal to represent whether the transmit the inside-frame forecast modes of every piece in the piece aggregate one by one. When the type signal shows it's direct inside-frame mode, all the piece forecast modes in the piece aggregate is defaulted by the encoder end, so it's unnecessary to transmit the inside-frame-forecast modes of every piece in the piece aggregate one by one. The method increases the flexibility of inside-frame forecast and improves the encoding efficiency. This invention is can be also generalized to application of signal process.

Description

The method and apparatus that is used for the intra prediction mode encoding and decoding of video or image compression
Technical field
The present invention relates to a kind of electric numerical data treatment technology, especially, relate to a kind of method and apparatus that applies to the intra prediction mode encoding and decoding of video or image compression.
Background technology
H.261 traditional video encoding standard such as the ITU of International Telecommunications Union formulate, H.263, H.26L, H.264 the MEPG-1 that MPEG formulates knits in the Motion Picture Experts Group of standard and the ISO of International Standards Organization, MPEG-2, MPEG-4 etc. are based on the hybrid coding Hybrid Coding framework.So-called hybrid encoding frame is to take all factors into consideration prediction, and the coding framework of the method for conversion and entropy coding has following main feature: 1, utilize prediction to remove the redundancy of time-domain; 2, utilize conversion to remove the redundancy of spatial domain; 3, utilize entropy coding to remove statistical redundancy.
Above-mentioned video encoding standard all has intracoded frame, i.e. I frame, and inter-frame encoding frame, i.e. and P frame, I frame and P frame adopt different coding methods.The cataloged procedure of I frame is as follows: the residual block that raw image data or infra-frame prediction are obtained carries out two-dimensional transform; In transform domain, conversion coefficient is quantized then; The two-dimensional transform coefficient block that quantizes gained is scanned, make it to become the conversion coefficient sequence of one dimension; Carry out entropy coding at last, i.e. Huffman coding or arithmetic coding etc.The cataloged procedure of P frame is as follows: adopt estimation to obtain motion vector, adopt inter prediction then based on motion compensation, then the residual block that inter prediction is obtained carries out two-dimensional transform, again coefficient in transform domain is quantized, the two-dimentional residual block coefficient that quantizes gained is scanned, make it to become the residual error coefficient sequence of one dimension, carry out entropy coding at last.
In infra-frame prediction, have different patterns according to different intra prediction direction.As in H.264, infra-frame prediction always has 9 kinds of patterns.The information of these patterns need be transmitted in code stream, and only in this way decoder just can be correctly decoded.In order to improve the efficient of frame mode coding, the coding of intra prediction mode need give a forecast.Information according to adjacent block can draw current block maximum possible predictive mode (mostporbablymode).If the pattern of current block equals this maximum possible predictive mode, the predictive mode sign (pre_mode_flag) of a bit equals 1 so.Otherwise if inequality, this predictive mode sign equals 0, passes the value of a representative frame inner estimation mode again.Decoder just can obtain the intra prediction mode of current block reality by the value of this predictive mode sign and the intra prediction mode when predictive mode is masked as 0.
In the existing method, in a set that comprises more than or equal to the piece of a piece, when all predictive mode signs all were 1, each set needed N bit to represent that intra prediction modes all in this piece group all is the maximum possible predictive mode that prediction is come out.This relatively wastes.
Summary of the invention
The objective of the invention is at the deficiencies in the prior art, the method for the intra prediction mode encoding and decoding of a kind of video or image compression is provided.
This goal of the invention is achieved through the following technical solutions: a kind of method that is used for the intra prediction mode encoding and decoding of video or image compression, in this method, at least there is the set of a piece, the number of the piece that it comprises is greater than 1, and it uses a type signal to indicate the existing way of intra prediction mode information in code stream of each piece; If this signal indicates the set of this piece to adopt direct frame mode, no longer transmit the intra prediction mode information of each piece so in the code stream, if this signal indicates the set of this piece to adopt non-direct frame mode, then need to transmit the intra prediction mode information of each piece in the set of this piece in the code stream.
Further, cataloged procedure comprises:
1) whether encoder adopts direct frame mode according to the set of optimisation strategy decision piece, and represents with a type signal in code stream.
2) if this signal indicates the set of this piece to adopt direct frame mode, no longer transmit the pattern information of each piece so in the code stream.The pattern of these pieces is the pattern of encoding and decoding acquiescence.
3) if this signal indicates the set of this piece to adopt non-direct frame mode, in code stream behind this type signal, represent the signal of the intra prediction mode information of each piece so in addition.
Decode procedure comprises:
1) according to the type signal in the code stream, whether the set of decision block adopts direct frame mode.
2) if adopt direct frame mode, the intra prediction mode of each piece is the pattern of encoding and decoding acquiescence in the set of this piece.
3) if adopt non-direct frame mode, the intra prediction mode of each piece need be decoded from follow-up code stream and obtained in the set of this piece so.
The present invention also aims to provide a kind of code device that is used for the intra prediction mode encoding and decoding of video or image compression.
This goal of the invention is achieved through the following technical solutions, and code device comprises: a K switch 1.One judgment means selects to use which kind of intra prediction mode according to certain rule, thus control switch K1.One first predictive coding device adopts direct intra prediction mode to carry out the coding of intra prediction mode.One second predictive coding device adopts non-direct intra prediction mode to carry out the coding of intra prediction mode.Judgment means links to each other with K switch 1.K switch 1 links to each other with the first predictive coding device, the second predictive coding device.
Further, described judgment means is to calculate earlier cost that needs with direct intra prediction mode and the cost that needs with non-Direct Model, judges that then the cost that direct frame mode needs is the cost that needs less than non-Direct Model.If then control switch K1 chooses the first predictive coding device, choose the second predictive coding device if not control switch K1 then.The described first predictive coding device is the prediction unit of direct frame mode, is used for directly predicting under the frame mode situation at coding side.
The present invention also aims to provide a kind of decoding device that is used for the intra prediction mode encoding and decoding of video or image compression.
This goal of the invention is achieved through the following technical solutions, and decoding device comprises: a K switch 2, be used for type signal according to code stream, and judge whether to adopt the first prediction decoding device or adopt the second prediction decoding device.One first prediction decoding device adopts direct intra prediction mode to carry out the decoding of intra prediction mode.One second prediction decoding device adopts non-direct intra prediction mode to carry out the decoding of intra prediction mode.K switch 2 links to each other with the first prediction decoding device, the second prediction decoding device.
Further, the described first prediction decoding device is the prediction unit of direct frame mode, is used for directly predicting under the frame mode situation in decoding end.
The present invention has following technique effect: the present invention can greatly improve the performance of encoding and decoding, does not increase the complexity of encoding and decoding simultaneously again.
Description of drawings
Fig. 1 is the code device block diagram that has method at present now;
Fig. 2 is the decoding device block diagram that has method at present now;
Fig. 3 is the code device block diagram of the embodiment of the invention 1;
Fig. 4 is the decoding device block diagram of the embodiment of the invention 1;
Fig. 5 is the coding flow chart of the embodiment of the invention 1;
Fig. 6 is the decoding process figure of the embodiment of the invention 1.
Embodiment
Describe the present invention below with reference to the accompanying drawings in detail.
Accompanying drawing 1 shows the code device of existing infra-frame prediction, comprises first prediction unit.
Use common method of intra-prediction that current macro is carried out infra-frame prediction with prediction unit 1.
Accompanying drawing 2 shows the decoding device of existing infra-frame prediction, comprises first prediction unit.
Use common method of intra-prediction that current macro is carried out infra-frame prediction with prediction unit 2.
The weak point of existing method is the information that still will pass a lot of frame modes for the accurate piece of model prediction, and expense is bigger.For smooth zone, and quantize relatively more severe situation, code efficiency is not high.Below at the deficiency of existing method, and present invention will be described in detail with reference to the accompanying.
Embodiment 1
Accompanying drawing 3 shows a kind of code device that applies to the infra-frame prediction of video or image compression, comprise: second mode selector that is used to attempt direct intra prediction mode, be used to attempt first mode selector of normal frames inner estimation mode, be used for direct frame mode infra-frame prediction second prediction unit, be used for normal frames internal schema infra-frame prediction first prediction unit, according to control signal select prediction unit K switch 1, judge judgment means with the sort of intraframe coding method.
By first mode selector and second mode selector, obtain the cost of optimal mode under these two kinds of patterns earlier.These two costs are compared in the judgment means the inside, select the pattern that a good conduct is used.Select to carry out infra-frame prediction according to this pattern with first prediction unit or second prediction unit.
Accompanying drawing 4 shows a kind of decoding device that applies to the infra-frame prediction of video or image compression, comprising: be used for direct intra prediction mode second prediction unit, be used for first prediction unit of normal frames inner estimation mode, be used to select the K switch 2 of prediction mode.
Which kind of prediction mode type information control switch K2 in the code stream selects to use.If what select is direct infra-frame prediction mode, then carry out infra-frame prediction with second prediction unit, if selection is prediction mode in the normal frames, then select to carry out infra-frame prediction with first prediction unit.
Embodiment 2
Accompanying drawing 5 shows a kind of coding flow process that applies to the infra-frame prediction of video or image compression.Calculate earlier the cost of direct frame mode and normal frames internal schema, judge that then the pattern cost is little in which,, encode with the normal frames internal schema if normal frames internal schema cost is next if directly the frame mode cost is little then encode with direct frame mode.
Accompanying drawing 6 shows a kind of decoding process that applies to the infra-frame prediction of video or image compression.Judge earlier what pattern type signal represents, if directly frame mode is then decoded with direct frame mode, if the normal frames internal schema is then decoded with the normal frames internal schema.
Embodiment 3
A kind of code device that applies to the infra-frame prediction of video or image compression has lbit to represent whether macro block is direct frame mode in the code stream.When 16 4 * 4 predictive modes all were the maximum possible predictive mode, macro block (mb) type was made as 0, promptly direct frame mode, and this moment, the information of 16 4 * 4 predictive mode just need not write code stream respectively.Otherwise macro block (mb) type is made as 1, and the pattern information of each piece is transmitted in code stream.
A kind of decoding device that applies to the infra-frame prediction of video or image compression, if the macro block (mb) type of the intra-frame prediction block that receives is 0, it is direct frame mode, then all predictive modes of 4 * 4 all are the maximum possible predictive modes in the current macro, and not needing resumes studies from the code stream relaying again gets the pattern information of each piece.Otherwise, continue the pattern information of from code stream, reading each piece.
Embodiment 4
A kind of code device that applies to the infra-frame prediction of video or image compression has lbit to represent whether macro block is direct frame mode in the code stream.When 16 4 * 4 predictive modes all are to use the same predictive mode when (as all using dc), macro block (mb) type is made as 0, be direct frame mode, this moment, the information of 16 4 * 4 predictive mode just need not write code stream respectively, only need transmit the shared pattern of these pieces in code stream.Otherwise macro block (mb) type is made as 1, and the pattern information of each piece is transmitted in code stream.
A kind of decoding device that applies to the infra-frame prediction of video or image compression, if the macro block (mb) type of the intra-frame prediction block that receives is 0, it is direct type, then all predictive modes of 4 * 4 all are shared patterns (as all using dc) in the current macro, do not need from code stream, to read again the pattern information of each piece of predictive mode, only need read the shared pattern of transmitting in the code stream of these pieces.Otherwise, continue the pattern information of from code stream, reading each piece.

Claims (10)

1. a method that is used for the intra prediction mode encoding and decoding of video or image compression is characterized in that,
1) have the set of a piece at least, the number of the piece that it comprises is greater than 1, and it uses a type signal to indicate the existing way of intra prediction mode information in code stream of each piece.
2) if this signal indicates the set of this piece to adopt direct frame mode, no longer transmit the intra prediction mode information of each piece so in the code stream, if this signal indicates the set of this piece to adopt non-direct frame mode, then need to transmit the intra prediction mode information of each piece in the set of this piece in the code stream.
2. the method for intra prediction mode encoding and decoding according to claim 1 is characterized in that, cataloged procedure comprises:
1) whether encoder adopts direct frame mode according to the set of optimisation strategy decision piece, and represents with a type signal in code stream.
2) if this signal indicates the set of this piece to adopt direct frame mode, no longer transmit the pattern information of each piece so in the code stream.The pattern of these pieces is the pattern of encoding and decoding acquiescence.
3) if this signal indicates the set of this piece to adopt non-direct frame mode, in code stream behind this type signal, represent the signal of the intra prediction mode information of each piece so in addition.
3. the method for intra prediction mode encoding and decoding according to claim 2 is characterized in that, in the described step (2), the pattern of encoding and decoding acquiescence is meant that each piece all uses its maximum possible predictive mode.
4. the method for intra prediction mode encoding and decoding according to claim 1 is characterized in that, decode procedure comprises:
1) according to the type signal in the code stream, whether the set of decision block adopts direct frame mode.
2) if adopt direct frame mode, the intra prediction mode of each piece is the pattern of encoding and decoding acquiescence in the set of this piece.
3) if adopt non-direct frame mode, the intra prediction mode of each piece need be decoded from follow-up code stream and obtained in the set of this piece so.
5. the method for intra prediction mode encoding and decoding according to claim 4 is characterized in that, in the described step (2), the pattern of encoding and decoding acquiescence is meant that each piece all uses its maximum possible predictive mode.
6. an application rights requires the code device of the method for 1 described intra prediction mode encoding and decoding, it is characterized in that it comprises:
One K switch 1.
One judgment means selects to use which kind of intra prediction mode according to certain rule, thus control switch K1.
One first predictive coding device adopts direct intra prediction mode to carry out the coding of intra prediction mode.
One second predictive coding device adopts non-direct intra prediction mode to carry out the coding of intra prediction mode.
Judgment means links to each other with K switch 1.K switch 1 links to each other with the first predictive coding device, the second predictive coding device.
7. code device according to claim 6, it is characterized in that, in the described judgment means, judgment means is to calculate earlier cost that needs with direct intra prediction mode and the cost that needs with non-Direct Model, judges that then the cost that direct frame mode needs is the cost that needs less than non-Direct Model.If then control switch K1 chooses the first predictive coding device, choose the second predictive coding device if not control switch K1 then.
8. code device according to claim 6 is characterized in that, the described first predictive coding device is the prediction unit of direct frame mode, is used for directly predicting under the frame mode situation at coding side.
9. an application rights requires the decoding device of the method for 1 described intra prediction mode encoding and decoding, it is characterized in that it comprises:
One K switch 2 is used for the type signal according to code stream, judges whether to adopt the first prediction decoding device or adopts the second prediction decoding device.
One first prediction decoding device adopts direct intra prediction mode to carry out the decoding of intra prediction mode.
One second prediction decoding device adopts non-direct intra prediction mode to carry out the decoding of intra prediction mode.
K switch 2 links to each other with the first prediction decoding device, the second prediction decoding device.
10. decoding device according to claim 9 is characterized in that, the described first prediction decoding device is the prediction unit of direct frame mode, is used for directly predicting under the frame mode situation in decoding end.
CNB2005100493122A 2005-03-09 2005-03-09 Method and device of frame prefiction mode coding decoding for video or image compression Active CN100413342C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100493122A CN100413342C (en) 2005-03-09 2005-03-09 Method and device of frame prefiction mode coding decoding for video or image compression

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100493122A CN100413342C (en) 2005-03-09 2005-03-09 Method and device of frame prefiction mode coding decoding for video or image compression

Publications (2)

Publication Number Publication Date
CN1658674A true CN1658674A (en) 2005-08-24
CN100413342C CN100413342C (en) 2008-08-20

Family

ID=35007891

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100493122A Active CN100413342C (en) 2005-03-09 2005-03-09 Method and device of frame prefiction mode coding decoding for video or image compression

Country Status (1)

Country Link
CN (1) CN100413342C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552924B (en) * 2008-03-31 2011-08-03 深圳市融创天下科技发展有限公司 Spatial prediction method for video coding
CN110225346A (en) * 2018-12-28 2019-09-10 杭州海康威视数字技术股份有限公司 A kind of decoding method and its equipment
WO2020211765A1 (en) * 2019-04-17 2020-10-22 Huawei Technologies Co., Ltd. An encoder, a decoder and corresponding methods harmonzting matrix-based intra prediction and secoundary transform core selection
RU2821337C2 (en) * 2019-04-17 2024-06-21 Хуавэй Текнолоджиз Ко., Лтд. Encoder, decoder and corresponding methods harmonizing matrix-based intra prediction and secondary transformation kernel selection

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1204753C (en) * 2003-05-19 2005-06-01 北京工业大学 Interframe predicting method based on adjacent pixel prediction
CN100401789C (en) * 2004-06-11 2008-07-09 上海大学 Quick selection of prediction modes in H.264/AVC frame

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552924B (en) * 2008-03-31 2011-08-03 深圳市融创天下科技发展有限公司 Spatial prediction method for video coding
CN110225346A (en) * 2018-12-28 2019-09-10 杭州海康威视数字技术股份有限公司 A kind of decoding method and its equipment
WO2020211765A1 (en) * 2019-04-17 2020-10-22 Huawei Technologies Co., Ltd. An encoder, a decoder and corresponding methods harmonzting matrix-based intra prediction and secoundary transform core selection
RU2821337C2 (en) * 2019-04-17 2024-06-21 Хуавэй Текнолоджиз Ко., Лтд. Encoder, decoder and corresponding methods harmonizing matrix-based intra prediction and secondary transformation kernel selection

Also Published As

Publication number Publication date
CN100413342C (en) 2008-08-20

Similar Documents

Publication Publication Date Title
CN1225127C (en) A coding/decoding end bothway prediction method for video coding
CN1200568C (en) Optimum scanning method for change coefficient in coding/decoding image and video
CN101252686B (en) Undamaged encoding and decoding method and system based on interweave forecast
CN109862356B (en) Video coding method and system based on region of interest
CN100341333C (en) Reinforced pixel domain code stream conversion method
CN105721878A (en) Image Processing Device And Method For Intra-Frame Predication In Hevc Video Coding
CN1751521A (en) Image decoding device, image decoding method, and image decoding program
CN1770867A (en) Selective prediction encoding and decoding methods and selective prediction encoding and decoding devices
CN1777283A (en) Microblock based video signal coding/decoding method
CN1209928C (en) Inframe coding frame coding method using inframe prediction based on prediction blockgroup
CN1213613C (en) Prediction method and apparatus for motion vector in video encoding/decoding
CN110351552B (en) Fast coding method in video coding
CN101304529A (en) Method and device for selecting macro block pattern
CN1310519C (en) Video coding and decoding method, and corresponding signal
CN1842162A (en) Motion image handling method in video coding
CN101867818B (en) Selection method and device of macroblock mode
CN1154365C (en) Drift-free transcoder and related method
CN101072355B (en) Weighted predication motion compensating method
CN1268136C (en) Frame field adaptive coding method based on image slice structure
CN105791868A (en) Video coding method and equipment
CN1658674A (en) Method and device of frame prefiction mode coding decoding for video or image compression
CN1941903A (en) Code-transferring system and method for realizing multiple code flow output simultaneouslly
CN100337481C (en) A MPEG-2 to AVS video code stream conversion method and apparatus
CN102984522A (en) Brightness transformation domain intra-frame prediction coding and decoding method and system
CN101031087A (en) Method for obtaining image by decode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: HUAWEI TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: ZHEJIANG UNIVERSITY

Effective date: 20090424

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20090424

Address after: Bantian HUAWEI headquarters office building, Longgang District, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: No. 38, Zhejiang Road, Hangzhou, Zhejiang, Xihu District

Patentee before: Zhejiang University

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211220

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: xFusion Digital Technologies Co., Ltd.

Address before: Bantian HUAWEI headquarters office building, Longgang District, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.