CN102148994A - Parallel inter-frame prediction coding method - Google Patents

Parallel inter-frame prediction coding method Download PDF

Info

Publication number
CN102148994A
CN102148994A CN 201010106225 CN201010106225A CN102148994A CN 102148994 A CN102148994 A CN 102148994A CN 201010106225 CN201010106225 CN 201010106225 CN 201010106225 A CN201010106225 A CN 201010106225A CN 102148994 A CN102148994 A CN 102148994A
Authority
CN
China
Prior art keywords
prediction
frame
algorithm
hardware
hardware designs
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.)
Pending
Application number
CN 201010106225
Other languages
Chinese (zh)
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.)
Chengdu Bosheng Information Technology Co., Ltd.
Original Assignee
CHENGDU SHIJIA ELECTRONICS INDUSTRIAL Co Ltd
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 CHENGDU SHIJIA ELECTRONICS INDUSTRIAL Co Ltd filed Critical CHENGDU SHIJIA ELECTRONICS INDUSTRIAL Co Ltd
Priority to CN 201010106225 priority Critical patent/CN102148994A/en
Publication of CN102148994A publication Critical patent/CN102148994A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention discloses a parallel inter-frame prediction coding algorithm, which is provided with real time coding capacity, and can be applied to various portable applications. The algorithm comprises mode selection of various inter-frame prediction modes and I-frame coding, and covers all the inter-frame prediction characteristics of H.264. Tested after realization of Verilog HDL hardware, a system can realize real-time CIF (common intermediate format) coding of a main frequency of 71MHz; and an average frame rate can reach 35FPS (frame/second).

Description

A kind of parallel infra-frame prediction frame coding method
Technical field
The present invention relates to field of video encoding, the hardware designs algorithm that particularly a kind of parallel infra-frame prediction frame is encoded.
Background technology
H.264 be present up-to-date international video compression standards.In all video encoding standards, H.264 have the highest code efficiency, mainly be because more accurate infra-frame prediction (intra prediction) and the inter prediction (inter prediction) that adopts.But the raising of these code efficiencies all can be accompanied by the raising of encoder complexity, for realizing that real time algorithm has proposed new challenge.
In intraframe predictive coding system H.264, the pixel of rebuilding behind the face code before prediction data is used is as predicted value.Initial data obtains residual error with subtracting each other by the prediction data of using intraframe prediction algorithm to produce, and system is to residual coding, thereby has improved code efficiency.For brightness, infra-frame prediction has H.264 adopted 4X4 and two kinds of Forecasting Methodologies of 16X16 to produce prediction data, and wherein the 4X4 prediction has nine kinds of Forecasting Methodologies (predictive mode is seen Fig. 1), and 16X16 has 4 kinds of Forecasting Methodologies; For colourity, H.264 one have 4 kinds of predictive modes, the same with the luma prediction modes of 16X16.
Summary of the invention
In the present invention, we have proposed a kind of based on the real-time I frame coded system of low cost H.264, comprise and overlap the hardware realization of intraframe prediction algorithm cheaply, and I frame encryption algorithm hardware is realized cheaply.
The hardware implementations of intraframe prediction algorithm of the present invention is as follows:
1.1. master-plan as shown in Figure 2.Brightness and colorimetric prediction macro block by this hardware produce, parallel processing, thereby can obtain better throughput.Wherein upper part calculates the 16x16 prediction data of brightness and the prediction data of colourity, and lower part calculates the prediction data of brightness 4x4.
Wherein the pixel value of the current macro register holds current macro of upper part needs 384Byte so comprise colourity and brightness.The current macro register of lower part only needs 256Byte, because only need preserve luminance pixel values.The prediction buffer memory of upper part has comprised 384Byte, and the prediction buffer memory of lower part only needs 16Byte, data reconstruction around the contiguous buffer memory current macro of the overall situation.The contiguous buffer memory in this locality of lower part is deposited 4x4 and is predicted needed neighboring pixel, and the pixel A that comprises among the figure one arrives M, altogether 16 Byte.
1.2.4x4 the hardware configuration of luma prediction:
We find that (A+B), (B+C), (C+D), (D+E), (E+F), (F+G), (G+H), (J+K), (I+J), (M+I), (M+A) etc. are some common factors of these pattern the insides from Fig. 1, calculate these common factors, leave in the register standby.
In our hardware was realized, the critical path of the luma prediction pixel of generation 4x4 as shown in Figure 3.Registers group REG_L0_0 wherein deposits 12 common factors to REG_L0_11, registers group REG_L1_0 to REG_L1_11 deposit that other will use to intermediate object program.If top adjacent block and left side adjacent block all exist, so, entire I ntra4x4 predicted 165 cycles consuming time.Since the computation sequence of various patterns can not exert an influence to the result, can allow the input of adder keep so just can reducing the switching of adder input, thereby having reduced power consumption continuously.
1.3.16x16 the hardware configuration of luma prediction and colorimetric prediction:
Level, vertical and these three kinds of patterns of DC can use adder and shifter directly to realize.And the Plane pattern see Fig. 4 for details.The critical path of the critical path of 16x16 prediction and 4x4 prediction is similar.At first calculate C0, (C0+b), (C0+2b) and (C0+3b), and the result is kept in the buffer memory.Utilize these intermediate object programs to produce prediction data then.If adjacent top data and left data all exist, finishing the 16X16 prediction so needs 1127 cycles, and wherein the plane pattern needs 340 cycles.For colorimetric prediction, consistent with brightness 16x16 pattern, so by having used identical hardware configuration, under this structure, the prediction of finishing colourity needs 302 cycles.
The hardware implementations of I frame encryption algorithm of the present invention is as follows:
2.1 mode selection module hardware configuration
Mode selection module hardware comprises infra-frame prediction, model selection, Hadamard conversion.Whole hardware module is by two part parallel computings: a part is calculated brightness 16x16 pattern and colourity pattern, and a part is calculated the 4x4 luminance patterns and selected in addition.See Fig. 5.
2.2 residual error coefficient encoder hardware structure:
The residual error coefficient encoder comprises dct transform, quantification, inverse dct transform, inverse quantization and entropy coding part, sees Fig. 6.
Encoder shown in the present is after using Verilog RTL to realize, integrated operation on Xilinx Vertex II, under the dominant frequency of 71MHz, average 5150 cycles just can be finished the processing of a macro block, reach the speed of CIF sequence average 35 frame per seconds on the whole.
Description of drawings
Do some explanations below in conjunction with accompanying drawing.
H.264, nine kinds of patterns of the Intra 4x4 that Fig. 1 defines.
The overall design drawing of Fig. 2 intraframe prediction algorithm.
The critical path figure of the luma prediction pixel of Fig. 3 4x4.
The detailed design figure of Fig. 4 Plane pattern.
Wherein, p represents neighbor, and the Clip1 function is transformed into input between 0 to 255.Clip1 (x): clip1 (x)=255 when x>255; When x<0, clip1 (x)=0; Clip1 (x)=x when x is worth for other.
Fig. 5 mode selection module hardware designs figure.
Fig. 6 residual error coefficient encoder hardware design drawing.
Specific implementation process
To the hardware designs algorithm of this infra-frame prediction frame coding, concrete implementation step is described below:
1.1 carry out master-plan according to Fig. 2.Brightness and colorimetric prediction macro block by this hardware produce, parallel processing, thereby can obtain better throughput.Wherein upper part calculates the 16x16 prediction data of brightness and the prediction data of colourity, and lower part calculates the prediction data of brightness 4x4.
1.2, finish the hardware designs of 4x4 luma prediction according to the critical path (as shown in Figure 3) of the luma prediction pixel that produces 4x4.Registers group REG_L0_0 wherein deposits 12 common factors to REG_L0_11, registers group REG_L1_0 to REG_L1_11 deposit that other will use to intermediate object program.
1.3 because the critical path of the critical path of 16x16 prediction and 4x4 prediction is similar, finish the hardware designs of 16x16 luma prediction and colorimetric prediction according to Fig. 3, build level, vertical, these three kinds of patterns of DC with adder and shifter, build the Plane pattern according to Fig. 4.
2.1, finish the mode selection module hardware designs according to Fig. 5.This part comprises infra-frame prediction, model selection, Hadamard conversion, and by two part parallel computings: a part is calculated brightness 16x16 pattern and colourity pattern, and a part is calculated the 4x4 luminance patterns and selected in addition.
2.2, finish the design of residual error coefficient encoder hardware according to Fig. 6.This part comprises dct transform, quantification, inverse dct transform, inverse quantization and entropy coding part.

Claims (6)

1. the hardware designs algorithm of a parallel infra-frame prediction frame coding is characterized in that, comprises as the lower part:
1.1) master-plan of intraframe prediction algorithm hardware.
1.2) hardware designs of intraframe prediction algorithm 4x4 luma prediction.
1.3) hardware designs of intraframe prediction algorithm 16x16 luma prediction and colorimetric prediction.
2.1) the mode selection module hardware designs of I frame encryption algorithm.
2.2) design of the residual error coefficient encoder hardware of I frame encryption algorithm.
2. the hardware designs algorithm that parallel infra-frame prediction frame as claimed in claim 1 is encoded is characterized in that described step 1.1) middle intraframe prediction algorithm hardware master-plan:
Master-plan as shown in Figure 2.Brightness and colorimetric prediction macro block are by this hardware generation, parallel processing, and wherein upper part calculates the 16x16 prediction data of brightness and the prediction data of colourity, and lower part calculates the prediction data of brightness 4x4.
3. the hardware designs algorithm of parallel infra-frame prediction frame coding as claimed in claim 1 is characterized in that described step 1.2) in the hardware designs of intraframe prediction algorithm 4x4 luma prediction:
In our hardware was realized, the critical path of the luma prediction pixel of generation 4x4 as shown in Figure 3.Registers group REG_L0_0 wherein deposits 12 common factors to REG_L0_11, registers group REG_L1_0 to REG_L1_11 deposit that other will use to intermediate object program.
4. the hardware designs algorithm of parallel infra-frame prediction frame coding as claimed in claim 1 is characterized in that described step 1.3) in the hardware designs of intraframe prediction algorithm 16x16 luma prediction and colorimetric prediction:
Because the critical path of the critical path of 16x16 prediction and 4x4 prediction is similar, finish the hardware designs of 16x16 luma prediction and colorimetric prediction according to Fig. 3, build level, vertical, these three kinds of patterns of DC with adder and shifter, build the Plane pattern according to Fig. 4.
5. the hardware designs algorithm of parallel infra-frame prediction frame coding as claimed in claim 1 is characterized in that described step 2.1) in the mode selection module hardware designs of I frame encryption algorithm:
According to Fig. 5, finish the mode selection module hardware designs.This part comprises infra-frame prediction, model selection, Hadamard conversion, and by two part parallel computings: a part is calculated brightness 16x16 pattern and colourity pattern, and a part is calculated the 4x4 luminance patterns and selected in addition.
6. the hardware designs algorithm of parallel infra-frame prediction frame coding as claimed in claim 1 is characterized in that described step 2.2) in the residual error coefficient encoder hardware design of I frame encryption algorithm:
According to Fig. 6, finish the design of residual error coefficient encoder hardware.This part comprises dct transform, quantification, inverse dct transform, inverse quantization and entropy coding part.
CN 201010106225 2010-02-04 2010-02-04 Parallel inter-frame prediction coding method Pending CN102148994A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010106225 CN102148994A (en) 2010-02-04 2010-02-04 Parallel inter-frame prediction coding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010106225 CN102148994A (en) 2010-02-04 2010-02-04 Parallel inter-frame prediction coding method

Publications (1)

Publication Number Publication Date
CN102148994A true CN102148994A (en) 2011-08-10

Family

ID=44422954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010106225 Pending CN102148994A (en) 2010-02-04 2010-02-04 Parallel inter-frame prediction coding method

Country Status (1)

Country Link
CN (1) CN102148994A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108848388A (en) * 2018-07-17 2018-11-20 珠海亿智电子科技有限公司 A kind of hardware implementation method improving H264 coding 16x16 prediction mode DCT arithmetic speed
CN112804523A (en) * 2020-12-30 2021-05-14 北京博雅慧视智能技术研究院有限公司 Parallel intra-frame mode selection system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108848388A (en) * 2018-07-17 2018-11-20 珠海亿智电子科技有限公司 A kind of hardware implementation method improving H264 coding 16x16 prediction mode DCT arithmetic speed
CN108848388B (en) * 2018-07-17 2022-02-22 珠海亿智电子科技有限公司 Hardware implementation method for improving DCT (discrete cosine transformation) operation speed of H264 coding 16x16 prediction mode
CN112804523A (en) * 2020-12-30 2021-05-14 北京博雅慧视智能技术研究院有限公司 Parallel intra-frame mode selection system and method
CN112804523B (en) * 2020-12-30 2023-01-03 北京博雅慧视智能技术研究院有限公司 Parallel intra-frame mode selection system and method

Similar Documents

Publication Publication Date Title
CN102740077B (en) H.264/AVC standard-based intra-frame prediction mode selection method
CN103561263B (en) Based on motion vector constraint and the motion prediction compensation method of weighted motion vector
CN103188496B (en) Based on the method for coding quick movement estimation video of motion vector distribution prediction
CN103548356B (en) Picture decoding method using dancing mode and the device using this method
CN103327325A (en) Intra-frame prediction mode rapid self-adaptation selection method based on HEVC standard
CN104768005A (en) Methods and apparatuses for encoding/decoding high resolution images
CN102484719A (en) Method and apparatus for encoding video, and method and apparatus for decoding video
CN103096071A (en) Method Of Deriving Motion Information
CN103442228B (en) Code-transferring method and transcoder thereof in from standard H.264/AVC to the fast frame of HEVC standard
CN103796023A (en) H.265/HEVC transcoding method and transcoder based on H.264/AVC macro block structure and texture
CN103414895A (en) Encoder intra-frame prediction device and method applicable to HEVC standards
CN101115207B (en) Method and device for implementing interframe forecast based on relativity between future positions
CN104168480A (en) Fast selecting method for intra-frame prediction encoding modes based on HEVC standard
CN103248895A (en) Quick mode estimation method used for HEVC intra-frame coding
CN103929652A (en) Intra-frame prediction fast mode selecting method based on autoregressive model in video standard
CN102932642A (en) Interframe coding quick mode selection method
CN104702959B (en) A kind of intra-frame prediction method and system of Video coding
CN102196272B (en) P frame coding method and device
CN110351552B (en) Fast coding method in video coding
CN110365975A (en) A kind of AVS2 video encoding and decoding standard prioritization scheme
CN104581152A (en) HEVC intra-frame prediction mode decision accelerating method
CN104754337A (en) Video encoding method
CN103442229A (en) Bit rate estimation method of SAO mode decision applied to encoder of HEVC standard
CN105100799B (en) A method of reducing intraframe coding time delay in HEVC encoders
CN100586186C (en) Quick inter-frame forecast mode selection method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: CHENGDU BOSHENG INFORMATION TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: CHENGDU SHIJIA ELECTRONIC INDUSTRIAL CO., LTD.

Effective date: 20120621

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 610041 CHENGDU, SICHUAN PROVINCE TO: 610000 CHENGDU, SICHUAN PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20120621

Address after: 610000 Chengdu Province, high tech Zone, North Road, No. 19

Applicant after: Chengdu Bosheng Information Technology Co., Ltd.

Address before: 610041, nine Avenue, Wuhou District, Sichuan, Chengdu

Applicant before: Chengdu Shijia Electronics industrial Co., Ltd.

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110810