CN101867807B - Device and method for selecting an in-frame prediction mode - Google Patents

Device and method for selecting an in-frame prediction mode Download PDF

Info

Publication number
CN101867807B
CN101867807B CN 200910133950 CN200910133950A CN101867807B CN 101867807 B CN101867807 B CN 101867807B CN 200910133950 CN200910133950 CN 200910133950 CN 200910133950 A CN200910133950 A CN 200910133950A CN 101867807 B CN101867807 B CN 101867807B
Authority
CN
China
Prior art keywords
mode
prediction
huge block
block mode
configuration
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.)
Expired - Fee Related
Application number
CN 200910133950
Other languages
Chinese (zh)
Other versions
CN101867807A (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.)
Novatek Microelectronics Corp
Original Assignee
Novatek Microelectronics Corp
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 Novatek Microelectronics Corp filed Critical Novatek Microelectronics Corp
Priority to CN 200910133950 priority Critical patent/CN101867807B/en
Publication of CN101867807A publication Critical patent/CN101867807A/en
Application granted granted Critical
Publication of CN101867807B publication Critical patent/CN101867807B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明公开了一种画框内预测模式的选择装置及方法,其中所述方法包括:首先,接收画框资料的压缩组态,并接收画框资料的画面解析度;接着,根据所述压缩组态及所述画面解析度来选择对应的数个预测模式,并针对选定的所述数个预测模式进行排程以依序计算并获得相对应的数个价值函数。最后再根据所述数个比较价值函数来选择所述数个预测模式的其中之一来做为画框资料的预测模式。

Figure 200910133950

The present invention discloses a device and method for selecting a prediction mode within a picture frame, wherein the method comprises: first, receiving a compression configuration of picture frame data and receiving a picture resolution of the picture frame data; then, selecting a corresponding plurality of prediction modes according to the compression configuration and the picture resolution, and scheduling the selected plurality of prediction modes to sequentially calculate and obtain a corresponding plurality of value functions; and finally, selecting one of the plurality of prediction modes according to the plurality of comparison value functions as the prediction mode of the picture frame data.

Figure 200910133950

Description

画框内预测模式的选择装置及方法Device and method for selecting an in-frame prediction mode

技术领域 technical field

本发明涉及一种画框内预测模式的选择装置及方法,特别涉及一种H.264格式的画框内预测模式的选择装置及方法。The present invention relates to a selection device and method for an intra-frame prediction mode, in particular to a selection device and method for an H.264 format intra-frame prediction mode.

背景技术 Background technique

近年来随着电子技术的进步,在影像显示的技术方面也有着相对应的突破。尤其在动画影像的显示方面,为使显示器可以有效的提升其动画影像的表现度,陆续有多种的影像压缩标准被提出,其中的H.264编解码标准就是在现今最具代表性的高压缩数位视频编解码标准。In recent years, with the advancement of electronic technology, there have been corresponding breakthroughs in image display technology. Especially in the display of animated images, in order to make the display can effectively improve the performance of its animated images, a variety of image compression standards have been proposed one after another. Among them, the H.264 codec standard is the most representative high-end Compressed digital video codec standard.

在H.264编解码标准中,决定所要选择画框内的预测模式(intraprediction mode)时,必须要先针对所有可能的画框内模式(intra mode)来计算其价值函数(cost function)。而由于画框内预测模式包括I4巨块模式、I8巨块模式、I16巨块模式以及色度(chroma)模式四大类。而此四大类画框内预测模式还包括了26种子模式需要进行计算。此外,其中的I 4巨块模式及I 8巨块模式又需要进行所谓的封闭回路(closeloop)的预测,由此可知,要进行决定所要选择画框内预测模式的动作总需要耗费相当大的硬件资源及用来进行运算的频宽。因此,针对I 4巨块模式、I8巨块模式、I16巨块模式以及色度模式在预测时所进行的排程是很重要的。In the H.264 encoding and decoding standard, when determining the intraprediction mode to be selected, it is necessary to calculate the cost function (cost function) for all possible intra-frame modes (intra mode). The intra-frame prediction modes include four types: I4 bulk mode, I8 bulk mode, I16 bulk mode, and chroma (chroma) mode. The four types of in-frame prediction modes also include 26 sub-modes that need to be calculated. In addition, the I 4 bulk mode and the I 8 bulk mode require so-called closed-loop prediction, so it can be seen that it takes a considerable amount of time to determine the in-frame prediction mode to be selected. Hardware resources and the bandwidth used to perform calculations. Therefore, it is very important to schedule the predictions for the I4 bulk mode, the I8 bulk mode, the I16 bulk mode, and the chroma mode.

以下请同时参照图1,图1绘示现有的一种画框内预测模式的排程方式。图1的绘示主要是针对I4巨块模式、I16块模式以及色度模式来依序进行预测。简单地说,就是先针对画框资料的不同区块依序进行I4巨块模式的预测111~112及I4巨块模式的重建121~122,接着再针对画框资料的不同区块依序进行I 16巨块模式的预测131~132,最后则进行色度模式的预测141。接着则请参照图2,图2绘示现有的一种画框内预测模式的交错排程方式。与图1的排程方式不同的是,其中关于I16巨块模式的预测231、232被分别插入在执行I 4巨块模式的重建221、222期间的空档时间。这样一来,就可以有效的省去额外的执行I16巨块模式的预测时间而节省运算的频宽。Please refer to FIG. 1 below. FIG. 1 shows a scheduling method of an existing in-frame prediction mode. The illustration in FIG. 1 is mainly for the I4 bulk mode, the I16 block mode and the chroma mode to perform prediction sequentially. To put it simply, the prediction 111-112 of the I4 bulk mode and the reconstruction 121-122 of the I4 bulk mode are performed sequentially for different blocks of the frame data, and then sequentially performed for different blocks of the frame data I 16 The prediction 131-132 of the bulk mode, and finally the prediction 141 of the chroma mode. Next, please refer to FIG. 2 . FIG. 2 illustrates an existing interleaved scheduling method of the intra-frame prediction mode. The difference from the scheduling approach of FIG. 1 is that in which the predictions 231, 232 for the I16 bulk mode are inserted in the gap times during the execution of the reconstructions 221, 222 for the I4 bulk mode, respectively. In this way, the extra prediction time for executing the I16 bulk mode can be effectively saved to save the bandwidth of the operation.

由于图1和图2所绘示的排程方式,都未考虑到I8巨块模式。因此,有如图3绘示现有的高组态(high profile)简化型的画框内预测模式的排程方式。请参照图3,图3绘示的排程方式是通过忽略I16巨块模式的部份,并利用开放式回路(open~loop)的运算(只针对I4、I8巨块模式进行预测,而不进行重建)来减少运算时所需要的硬件资源及频宽。Due to the scheduling methods shown in Fig. 1 and Fig. 2, the I8 bulk mode is not considered. Therefore, there is an existing high profile simplified intra-frame prediction mode scheduling method as shown in FIG. 3 . Please refer to Figure 3. The scheduling method shown in Figure 3 ignores the part of the I16 block mode and uses open-loop (open~loop) operations (prediction is only performed for the I4 and I8 block modes, not rebuild) to reduce the hardware resources and bandwidth required for computing.

发明内容 Contents of the invention

本发明的一目的是提供一种画框内预测模式的选择方法,针对画框资料的数个个预测模式进行排程,以依序产生数个价值函数。An object of the present invention is to provide a method for selecting a prediction mode within a frame, which schedules several prediction modes of frame data to generate several value functions in sequence.

本发明的另一目的是提供一种画框内预测模式的选择装置,用以针对画框资料的数个预测模式进行排程,以依序产生数个价值函数。Another object of the present invention is to provide a device for selecting an intra-frame prediction mode, which is used for scheduling several prediction modes of frame data to sequentially generate several value functions.

为实现上述目的,本发明提出一种画框内预测模式的选择方法,包括:首先,接收画框资料的压缩组态,并接收画框资料的画面解析度。接着,根据所述压缩组态及所述画面解析度来选择对应的数个预测模式,并针对选定的所述数个预测模式进行排程以依序计算并获得相对应的数个价值函数。最后再根据所述数个比较价值函数来选择所述数个预测模式的其中之一来做为画框资料的预测模式。To achieve the above object, the present invention proposes a method for selecting an in-frame prediction mode, including: firstly, receiving the compressed configuration of the frame data, and receiving the frame resolution of the frame data. Next, select corresponding several prediction modes according to the compression configuration and the picture resolution, and schedule the selected several prediction modes to sequentially calculate and obtain corresponding several value functions . Finally, according to the plurality of comparative value functions, one of the plurality of prediction modes is selected as the prediction mode of the picture frame data.

在本发明之一实施例中,上述之压缩组态包括高组态、主要组态或基本组态。In an embodiment of the present invention, the above-mentioned compressed configuration includes a high configuration, a main configuration or a basic configuration.

在本发明之一实施例中,上述的画面解析度包括高解析度或一般解析度。In an embodiment of the present invention, the aforementioned image resolution includes high resolution or normal resolution.

在本发明之一实施例中,上述的预测模式包括I4巨块模式、I8巨块模式、I16巨块模式以及色度(chroma)模式。In an embodiment of the present invention, the aforementioned prediction modes include I4 macroblock mode, I8 macroblock mode, I16 macroblock mode and chroma mode.

在本发明之一实施例中,上述的所述根据压缩组态及画面解析度来选择对应的预测模式包括:当压缩组态为主要组态时,而画面解析度为一般解析度或高解析度时,选择I4巨块模式、I16巨块模式以及色度模式。若是当压缩组态为基本组态时,而画面解析度为一般解析度或高解析度时,同样选择I4巨块模式、I16巨块模式以及色度模式。另外,当压缩组态为高组态且画面解析度为一般解析度时,也同样选择I4巨块模式、I16巨块模式以及色度模式。唯一不同的是,当压缩组态为高组态且画面解析度为高解析度时,选择I8巨块模式、I16巨块模式以及色度模式。In an embodiment of the present invention, the aforementioned selection of the corresponding prediction mode according to the compression configuration and picture resolution includes: when the compression configuration is the main configuration, and the picture resolution is general resolution or high resolution When the brightness is high, select I4 bulk mode, I16 bulk mode and chroma mode. If the compression configuration is the basic configuration, and the screen resolution is normal resolution or high resolution, also select I4 bulk mode, I16 bulk mode and chroma mode. In addition, when the compression configuration is the high configuration and the image resolution is the normal resolution, the I4 bulk mode, the I16 bulk mode and the chroma mode are also selected. The only difference is that when the compression configuration is high and the picture resolution is high resolution, I8 bulk mode, I16 bulk mode and chroma mode are selected.

在本发明之一实施例中,上述的所述针对预测模式进行排程包括:当选择的预测模式为I4巨块模式、I16巨块模式以及色度模式时,在执行I4巨块模式的预测时的预测空档时间中执行I16巨块模式的预测,并且在执行I 4巨块模式的重建时的重建空档时间执行色度模式的预测。此外,当选择的预测模式为I8巨块模式、I16巨块模式以及色度模式时,先执行I8巨块模式的预测,再执行I16巨块模式的预测,接着再执行色度模式的预测,并在最后执行I8巨块模式的重建。In one embodiment of the present invention, the aforementioned scheduling for the prediction mode includes: when the selected prediction mode is the I4 macroblock mode, the I16 macroblock mode and the chroma mode, performing the prediction of the I4 macroblock mode Prediction of the I16 bulk mode is performed during the prediction gap when reconstruction is performed, and prediction of the chroma mode is performed during the reconstruction gap time when reconstruction of the I4 bulk mode is performed. In addition, when the selected prediction mode is I8 macroblock mode, I16 macroblock mode and chroma mode, the prediction of I8 macroblock mode is performed first, then the prediction of I16 macroblock mode is performed, and then the prediction of chroma mode is performed, And at the end perform a rebuild of i8 bulk mode.

为实现上述目的,本发明还提出一种画框内预测模式的选择装置,包括排程控制器、价值函数产生器以及价值函数比较电路。其中,排程控制器接收画框资料的压缩组态及画面解析度,根据压缩组态及画面解析度选择对应的数个预测模式,并针对所述数个预测模式进行排程。价值函数产生器连接排程控制器,价值函数产生器根据排程控制器对所述数个预测模式进行的排程来依序执行预测模式的预测,并产生对应的数个价值函数。价值函数比较电路连接所述价值函数产生器,价值函数比较电路比较所述数个价值函数以选择所述数个预测模式的其中之一来做为所述框资料的预测模式。To achieve the above object, the present invention also proposes a device for selecting an in-frame prediction mode, which includes a schedule controller, a value function generator, and a value function comparison circuit. Wherein, the scheduling controller receives the compression configuration and picture resolution of the picture frame data, selects corresponding several prediction modes according to the compression configuration and picture resolution, and performs scheduling for the several prediction modes. The value function generator is connected to the schedule controller, and the value function generator executes the prediction of the prediction modes sequentially according to the scheduling of the several prediction modes by the schedule controller, and generates corresponding value functions. The cost function comparison circuit is connected to the cost function generator, and the cost function comparison circuit compares the several cost functions to select one of the several prediction modes as the prediction mode of the frame data.

综上所述,本发明通过画框资料的压缩组态及画面解析度来选定对应的预测模式,并针对对应选择的内画面的预测模式进行排程。如此一来,仅有必要的预测模式会被进行预测的动作,能有效减低执行预测运算的时脉数或硬件资源,并通过排程的结果使得数个预测模式在进行预测时可以更有效率的应用系统资源,减低成本及功率的浪费。To sum up, the present invention selects the corresponding prediction mode through the compressed configuration of the frame data and the frame resolution, and schedules the prediction mode for the corresponding selected inner frame. In this way, only the necessary prediction modes will be predicted, which can effectively reduce the number of clocks or hardware resources for performing prediction operations, and through the results of scheduling, several prediction modes can be more efficient when making predictions application system resources, reducing cost and power waste.

为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合所附图式作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail together with the accompanying drawings.

附图说明 Description of drawings

图1~3分别绘示现有的三种不同的画框内预测模式的排程方式;Figures 1 to 3 respectively illustrate the scheduling methods of three different existing in-frame prediction modes;

图4绘示本发明的一实施例的画框内预测模式的选择装置400;FIG. 4 shows an apparatus 400 for selecting an intra-frame prediction mode according to an embodiment of the present invention;

图5绘示本发明实施例中的排程控制器410进行排程的一实施方式;FIG. 5 shows an implementation manner of scheduling performed by the scheduling controller 410 in the embodiment of the present invention;

图6绘示本发明实施例中的排程控制器410进行排程的另一实施方式;FIG. 6 shows another implementation of scheduling by the scheduling controller 410 in the embodiment of the present invention;

图7绘示本发明的实施例的画框内预测模式的选择方法的流程图。FIG. 7 is a flowchart of a method for selecting an intra-frame prediction mode according to an embodiment of the present invention.

附图主要元件符号说明Explanation of symbols of main components in the drawings

111~112、511:I4巨块模式的预测;111~112, 511: Prediction of I4 block mode;

121~122、221、222、512:I4巨块模式的重建;121~122, 221, 222, 512: Reconstruction of I4 block mode;

131~132、231、232、513、612、652:I16巨块模式的预测;131~132, 231, 232, 513, 612, 652: prediction of I16 block mode;

611、651:I8巨块模式的预测;611, 651: Prediction of I8 bulk mode;

614:I8巨块模式的重建;614: Reconstruction of I8 bulk mode;

141、514、613、653:色度模式的预测;141, 514, 613, 653: prediction of chroma mode;

400:画框内预测模式的选择装置;400: a device for selecting an in-frame prediction mode;

410:排程控制器;410: schedule controller;

420:价值函数产生器;420: value function generator;

430:价值函数比较电路;430: value function comparison circuit;

510~550、610~650:画框资料的区块预测;510~550, 610~650: block prediction of frame data;

560、660:比较价值函数;560, 660: comparing value functions;

S710~S740:画框内预测模式的选择方法的步骤。S710-S740: Steps of the selection method of the intra-frame prediction mode.

具体实施方式 Detailed ways

以下请参照图4,图4绘示本发明的一实施例的画框内预测模式的选择装置400。画框内预测模式的选择装置400包括排程控制器410、价值函数产生器420以及价值函数比较电路430。排程控制器410接收所要处理的画框资料的压缩组态及画面解析度,并根据压缩组态及画面解析度选择对应的数个预测模式,且针对这些选出来的预测模式进行排程。其中所谓的压缩组态包括高组态(high profe)、主要组态(mainprofile)或基本组态(base profile),而影像解析度则包括高解析度的FULL HD及一般解析度的CIF两种。此外,关于上述的三种组态及两种解析度都是为H.264编解码标准领域中,本领域技术人员所都能熟知的,因此在此不多加说明。Please refer to FIG. 4 below. FIG. 4 illustrates an apparatus 400 for selecting an intra-frame prediction mode according to an embodiment of the present invention. The device 400 for selecting an intra-frame prediction mode includes a schedule controller 410 , a cost function generator 420 and a cost function comparison circuit 430 . The scheduling controller 410 receives the compression configuration and frame resolution of the frame data to be processed, selects several corresponding prediction modes according to the compression configuration and frame resolution, and performs scheduling for these selected prediction modes. The so-called compression profile includes high profile (high profile), main profile (main profile) or basic profile (base profile), and image resolution includes high-resolution FULL HD and general resolution CIF . In addition, the above three configurations and two resolutions are well known to those skilled in the art in the field of the H.264 codec standard, so no further description is given here.

另外,在H.264编解码标准中所使用的预测模式通常包括I4巨块模式、I8巨块模式、I16巨块模式以及色度模式。所谓的I4巨块模式就是利用画框资料中的4×4的区块为单位所进行的画框内画面的预测。相同的,I8巨块模式及I16巨块模式则是分别针对画框资料中的8×8及16×16的区块为单位所进行的画框内画面的预测。In addition, the prediction modes used in the H.264 codec standard generally include I4 macroblock mode, I8 macroblock mode, I16 macroblock mode and chroma mode. The so-called I4 block mode is to use the 4×4 block in the frame data as a unit to predict the picture in the frame. Similarly, the I8 bulk mode and the I16 bulk mode are for predicting the picture in the frame in units of 8×8 and 16×16 blocks in the frame data respectively.

而在排程控制器410选择所要使用的数个预测模式方面,排程控制器410则是根据下例的表1来进行选择。其中的表1如下所示:As for the scheduling controller 410 selecting several forecasting modes to be used, the scheduling controller 410 selects according to Table 1 in the following example. Table 1 of which is as follows:

表1:Table 1:

  压缩组态 compression configuration   画面解析度 screen resolution   选用的预测模式 Selected forecasting model   基本组态 basic configuration   CIF CIF   I4巨块模式、I16巨块模式及色度模式 I4 bulk mode, I16 bulk mode and chroma mode   基本组态 basic configuration   FULL HD FULL HD   I4巨块模式、I16巨块模式及色度模式 I4 bulk mode, I16 bulk mode and chroma mode   主要组态 main configuration   CIF CIF   I4巨块模式、I16巨块模式及色度模式 I4 bulk mode, I16 bulk mode and chroma mode   主要组态 main configuration   FULL HD FULL HD   I4巨块模式、I16巨块模式及色度模式 I4 bulk mode, I16 bulk mode and chroma mode   高组态 High configuration   CIF CIF   I4巨块模式、I16巨块模式及色度模式 I4 bulk mode, I16 bulk mode and chroma mode   高组态 High configuration   FULL HD FULL HD   I8巨块模式、I16巨块模式及色度模式 I8 bulk mode, I16 bulk mode and chroma mode

由表1可以明确得知,排程控制器410可以针对各种具有不同压缩组态及画面解析度来分类,并选择适用的预测模式来进行预测,可以节省运算的频宽。It can be clearly seen from Table 1 that the scheduling controller 410 can classify various types with different compression configurations and picture resolutions, and select an applicable prediction mode for prediction, which can save computing bandwidth.

在排程控制器410选定要进行预测的预测模式后,排程控制器410则进行对所选择的预测模式进行排程。其中,排程控制器410会针对所选择的预测模式不同而进行不同的排程方式,以下则针对不同的排程方式提出不同的实施方式来加以说明,希望本领域技术人员都能了解并具以实施。After the scheduling controller 410 selects the forecasting mode to be predicted, the scheduling controller 410 schedules the selected forecasting mode. Among them, the scheduling controller 410 will perform different scheduling methods according to the selected forecasting modes, and different implementation methods will be proposed below for different scheduling methods to illustrate, and it is hoped that those skilled in the art can understand and understand to implement.

以下请同时参照图4及图5,图5绘示本发明实施例中的排程控制器410进行排程的一实施方式。其中当排程控制器410所选择的预测模式为I4巨块模式、I16巨块模式以及色度模式时,排程控制器410进行如图5绘示的方法进行排程。也就是先针对画框资料的区块0进行预测510,其中包括执行I4巨块模式的预测与重建、I16巨块模式的预测及色度模式的预测。更进一步来说明,就是先执行I4巨块模式的预测511,并接着进行I4巨块模式的重建512。而I16巨块模式预测513的执行则交错于执行I4巨块模式的预测511时,所产生的预测空档时间中。相对地,色度模式的预测514则交错于执行I4巨块模式的重建512时,所产生的重建空档时间中。Please refer to FIG. 4 and FIG. 5 at the same time. FIG. 5 shows an implementation manner of scheduling performed by the scheduling controller 410 in the embodiment of the present invention. Wherein when the prediction mode selected by the scheduling controller 410 is the I4 bulk mode, the I16 bulk mode and the chroma mode, the scheduling controller 410 performs the scheduling as shown in FIG. 5 . That is, first perform prediction 510 on block 0 of the frame data, including performing prediction and reconstruction in I4 bulk mode, prediction in I16 bulk mode, and prediction in chroma mode. To further illustrate, the prediction 511 of the I4 bulk mode is performed first, and then the reconstruction 512 of the I4 bulk mode is performed. The execution of the I16 macroblock mode prediction 513 is interleaved with the prediction gap time generated when the I4 macroblock mode prediction 511 is executed. In contrast, the chroma mode prediction 514 is interleaved with the reconstruction gap generated when the I4 bulk mode reconstruction 512 is performed.

在完成了画框资料的区块0的预测后,则依序执行画框资料的区块1~15的预测,并在完成了画框资料的区块15的预测550后,则执行比较价值函数的动作560。After the prediction of block 0 of the picture frame data is completed, the prediction of blocks 1 to 15 of the picture frame data is performed sequentially, and after the prediction 550 of block 15 of the picture frame data is completed, the comparison value is performed Act 560 of the function.

在此请注意,价值函数的产生是随着执行各种预测模式时对应产生的。请同时参照图4及图5,价值函数产生器420会依照排程控制器410所排程的预测模式的预测顺序来对应产生价值函数。换句话说,当所有的预测模式都被执行完毕时,该些预测模式对应的价值函数也都被产生完成。Note here that the generation of the value function follows the execution of various prediction modes. Please refer to FIG. 4 and FIG. 5 at the same time, the value function generator 420 generates the value function according to the prediction sequence of the prediction mode scheduled by the scheduling controller 410 . In other words, when all the prediction modes are executed, the value functions corresponding to these prediction modes are also generated.

因此,当所有的预测模式都被执行完毕后,价值函数比较电路430则根据价值函数来做比较,并选出价值函数最低的,来做为选定的预测模式。简单地说来,若是I4巨块模式对应的价值函数低于I16巨块模式所对应的价值函数时,则选用I4巨块模式来做为此画框资料的预测模式,相反地,若是I4巨块模式对应的价值函数高于I16巨块模式所对应的价值函数时,则选用I16巨块模式来做为此画框资料的预测模式。Therefore, when all the prediction modes are executed, the value function comparing circuit 430 performs comparison according to the value function, and selects the one with the lowest value function as the selected prediction mode. To put it simply, if the value function corresponding to the I4 large block mode is lower than the value function corresponding to the I16 large block mode, the I4 large block mode is selected as the prediction mode for the frame data; on the contrary, if the I4 large block mode is When the cost function corresponding to the block mode is higher than the value function corresponding to the I16 bulk mode, the I16 bulk mode is selected as the prediction mode for the frame data.

以下请同时参照图4及图6,图6绘示本发明实施例中的排程控制器410进行排程的另一实施方式。其中当排程控制器410所选择的预测模式为I8巨块模式、I16巨块模式以及色度模式时,排程控制器410进行如图6绘示的方法进行排程。也就是先针对画框资料的区块0进行预测610,其中包括执行I8巨块模式的预测与重建、I16巨块模式的预测及色度模式的预测。更进一步来说明,就是先执行I 8巨块模式的预测611,并接着进行I16巨块模式的预测612,接着再进行色度模式的预测613,并在最后进行I 8巨块模式的重建614。Please refer to FIG. 4 and FIG. 6 at the same time. FIG. 6 shows another implementation of scheduling by the scheduling controller 410 in the embodiment of the present invention. Wherein when the prediction mode selected by the scheduling controller 410 is the I8 bulk mode, the I16 bulk mode and the chroma mode, the scheduling controller 410 performs the scheduling as shown in FIG. 6 . That is, first perform prediction 610 on block 0 of the frame data, including performing prediction and reconstruction in I8 bulk mode, prediction in I16 bulk mode, and prediction in chroma mode. To further explain, it is to first perform the prediction 611 of the I8 bulk mode, and then perform the prediction 612 of the I16 bulk mode, then perform the prediction 613 of the chroma mode, and finally perform the reconstruction 614 of the I8 bulk mode .

在完成了针对区块0所进行的预测后,则依序进行针对区块1~15的预测动作。而值得一提的是,在针对区块15所进行的预测650中,由于所进行的是最后一个区块,因此,在依序进行完I8巨块模式的预测651、I16巨块模式的预测652以及色度模式的预测653后,并不需要再进行I8巨块模式的重建。原因是在于区块15已经是最后一个区块,所以不需要重建并提供资讯来提供下一个区块的预测动作。After the prediction for block 0 is completed, the prediction actions for blocks 1-15 are performed in sequence. It is worth mentioning that, in the prediction 650 for block 15, since it is the last block, after the prediction 651 of the I8 bulk mode and the prediction of the I16 bulk mode are performed in sequence After 652 and chroma mode prediction 653, there is no need to rebuild I8 bulk mode. The reason is that block 15 is already the last block, so there is no need to rebuild and provide information to provide prediction actions for the next block.

与图5绘示的实施方式相同的,并在完成了画框资料的区块15的预测650后,价值函数比较电路430则执行比较价值函数的动作660,并藉以选出合适的预测模式。在此,关于如何根据价值函数来选定合适的预测模式的动作则于图5绘示的实施方式相同,此处不多赘述。Same as the embodiment shown in FIG. 5 , and after the prediction 650 of the block 15 of the frame data is completed, the value function comparison circuit 430 performs an action 660 of comparing the value functions, so as to select a suitable prediction mode. Here, the operation of how to select a suitable prediction mode according to the cost function is the same as that shown in FIG. 5 , and will not be repeated here.

以下则针对本发明的画框内预测模式的选择方法提出一实施例来加以说明。An embodiment of the method for selecting the intra-frame prediction mode of the present invention is presented below for illustration.

以下请参照图7,图7绘示本发明的实施例的画框内预测模式的选择方法的流程图。其中的步骤包括:首先,分别接收画框资料的压缩组态以及画面解析度(步骤S710、S720)。其中在H.264的编解码标准中,压缩组态包括有主要组态、基本组态及高组态。而画面解析度则可以分为高解析度的FULL HD及一般解析度的CIF。接着,根据压缩组态及画面解析度来选择对应的数个预测模式,并针对这些预测模式进行排程,以依序计算并获得对应的价值函数(步骤S730)。Please refer to FIG. 7 below. FIG. 7 is a flow chart of a method for selecting an intra-frame prediction mode according to an embodiment of the present invention. The steps include: firstly, respectively receiving the compressed configuration and the picture resolution of the picture frame data (steps S710, S720). Among them, in the codec standard of H.264, the compression configuration includes main configuration, basic configuration and advanced configuration. The screen resolution can be divided into high-resolution FULL HD and general-resolution CIF. Next, several corresponding prediction modes are selected according to the compression configuration and the picture resolution, and scheduling is performed for these prediction modes to sequentially calculate and obtain corresponding cost functions (step S730 ).

接着,则根据在步骤S730中所计算获得的数个价值函数进行比较,并选择出数个预测模式的其中之一来做为画框资料的预测模式(步骤S740)。而比较数个价值函数的动作则是例如找出价值函数中最小的,并选用对应的预测模式来做为画框资料的预测模式。Next, compare according to several value functions calculated in step S730, and select one of several prediction modes as the prediction mode of the frame data (step S740). The action of comparing several value functions is, for example, to find out the smallest of the value functions, and select the corresponding prediction mode as the prediction mode of the frame data.

综上所述,本发明根据画框资料的压缩模组及画面解析度来选用对应的预测模式,并针对选出的预测模式进行排程,来依序产生对应的价值函数。有效地节省了硬件的资源,并且有效地节省了运算的频宽。To sum up, the present invention selects the corresponding prediction mode according to the compression module and picture resolution of the picture frame data, and performs scheduling for the selected prediction mode to sequentially generate the corresponding value function. It effectively saves hardware resources and effectively saves computing bandwidth.

最后应说明的是:以上实施例仅用以说明本发明的技术方案而非对其进行限制,尽管参照较佳实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对本发明的技术方案进行修改或者等同替换,而这些修改或者等同替换亦不能使修改后的技术方案脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that: it still Modifications or equivalent replacements can be made to the technical solutions of the present invention, and these modifications or equivalent replacements cannot make the modified technical solutions deviate from the spirit and scope of the technical solutions of the present invention.

Claims (2)

1. the system of selection of an intra-frame prediction mode is characterized in that, comprising:
Receive a compressed configuration of a picture frame data, described compressed configuration comprises high configuration, main configuration or basic configuration;
Receive a picture resolution of described picture frame data, described picture resolution comprises high-res or General Analytical degree;
Select several corresponding predictive modes according to described compressed configuration and described picture resolution, and carry out scheduling sequentially calculate to obtain several corresponding cost functions for described several predictive modes, wherein, described several predictive modes comprise the huge block mode of an I4, the huge block mode of an I8, the huge block mode of an I16 and a colourity pattern, wherein, select the step of corresponding described predictive mode to comprise according to described compressed configuration and described picture resolution:
When described compressed configuration is main configuration, and described picture resolution is high-res or General Analytical when spending, and selects the huge block mode of described I4, the huge block mode of described I16 and described chroma mode;
When described compressed configuration is basic configuration, and described picture resolution is selected the huge block mode of described I4, the huge block mode of described I16 and described chroma mode when being General Analytical degree or high-res;
When described compressed configuration is high configuration, and described picture resolution is General Analytical when spending, and selects the huge block mode of described I4, the huge block mode of described I16 and described chroma mode;
And
When described compressed configuration is high configuration, and described picture resolution is selected the huge block mode of described I8, the huge block mode of described I16 and described chroma mode when being high-res;
Wherein, carrying out scheduling for described several predictive modes comprises sequentially to calculate the step that obtains corresponding described cost function:
When described several predictive modes of selecting are described I 4 huge block modes, the huge block mode of described I16 and described chroma mode, wherein carry out the prediction of the huge block mode of described I16 in the prediction time dead when carrying out the prediction of the huge block mode of described I4, and the reconstruction time dead when carrying out the reconstruction of the huge block mode of described I4 is carried out the prediction of described chroma mode; And
When described several predictive modes of selecting are the huge block mode of described I8, the huge block mode of described I16 and described chroma mode, carry out first the prediction of the huge block mode of described I8, carry out again the prediction of the huge block mode of described I16, then carry out again the prediction of described chroma mode, and in the end carry out the reconstruction of the huge block mode of described I8; And
Come predictive mode as described picture frame data according to more described several cost functions with one of them that select described several predictive modes.
2. the choice device of an intra-frame prediction mode is characterized in that, comprising:
One scheduling controller, receive a compressed configuration and a picture resolution of a picture frame data, select several corresponding predictive modes according to described compressed configuration and described picture resolution, and carry out scheduling for described several predictive modes, described compressed configuration comprises high configuration, main configuration or basic configuration, described picture resolution comprises high-res or General Analytical degree, and described several predictive modes comprise the huge block mode of an I4, the huge block mode of an I8, the huge block mode of an I16 and a colourity (chroma) pattern;
One cost function generator connects described scheduling controller, sequentially carries out the prediction of described several predictive modes according to the scheduling that described scheduling controller carries out described several predictive modes, and produces several corresponding cost functions; And
One cost function comparison circuit connects described cost function generator, and more described several cost functions come predictive mode as described picture frame data with one of them that select described several predictive modes,
When described compressed configuration is main configuration, and described picture resolution is when being General Analytical degree or high-res, described scheduling controller is selected the huge block mode of described I4, the huge block mode of described I16 and described chroma mode, when described compressed configuration is basic configuration, and described picture resolution is when being General Analytical degree or high-res, described scheduling controller is selected the huge block mode of described I4, the huge block mode of described I16 and described chroma mode, when described compressed configuration is high configuration, and described picture resolution is that General Analytical is when spending, described scheduling controller is selected the huge block mode of described I4, the huge block mode of described I16 and described chroma mode, when described compressed configuration is high configuration, and when described picture resolution is high-res, described scheduling controller is selected the huge block mode of described I8, the huge block mode of described I16 and described chroma mode, when described several predictive modes of selecting are the huge block mode of described I4, when the huge block mode of described I16 and described chroma mode, described scheduling controller makes the prediction of carrying out the huge block mode of described I16 in the prediction time dead of described cost function generator when carrying out the prediction of the huge block mode of described I4, and the reconstruction time dead when described cost function generator is carried out the reconstruction of the huge block mode of described I4 is carried out the prediction of described chroma mode, when the described predictive mode of selecting is the huge block mode of described I8, when the huge block mode of described I16 and described chroma mode, described scheduling controller makes described cost function generator carry out first the prediction of the huge block mode of described I8, carry out again the prediction of the huge block mode of described I16, then carry out again the prediction of described chroma mode, and in the end carry out the reconstruction of the huge block mode of described I8.
CN 200910133950 2009-04-14 2009-04-14 Device and method for selecting an in-frame prediction mode Expired - Fee Related CN101867807B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910133950 CN101867807B (en) 2009-04-14 2009-04-14 Device and method for selecting an in-frame prediction mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910133950 CN101867807B (en) 2009-04-14 2009-04-14 Device and method for selecting an in-frame prediction mode

Publications (2)

Publication Number Publication Date
CN101867807A CN101867807A (en) 2010-10-20
CN101867807B true CN101867807B (en) 2013-02-13

Family

ID=42959333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910133950 Expired - Fee Related CN101867807B (en) 2009-04-14 2009-04-14 Device and method for selecting an in-frame prediction mode

Country Status (1)

Country Link
CN (1) CN101867807B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060126740A1 (en) * 2004-12-10 2006-06-15 Lin Teng C Shared pipeline architecture for motion vector prediction and residual decoding
CN101273641A (en) * 2005-09-26 2008-09-24 三菱电机株式会社 Dynamic image encoding device and dynamic image decoding device
CN101350927A (en) * 2008-07-29 2009-01-21 北京中星微电子有限公司 Method and apparatus for forecasting and selecting optimum estimation mode in a frame

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060126740A1 (en) * 2004-12-10 2006-06-15 Lin Teng C Shared pipeline architecture for motion vector prediction and residual decoding
CN101273641A (en) * 2005-09-26 2008-09-24 三菱电机株式会社 Dynamic image encoding device and dynamic image decoding device
CN101350927A (en) * 2008-07-29 2009-01-21 北京中星微电子有限公司 Method and apparatus for forecasting and selecting optimum estimation mode in a frame

Also Published As

Publication number Publication date
CN101867807A (en) 2010-10-20

Similar Documents

Publication Publication Date Title
CN110139035B (en) Method and electronic device for thermal and power management
CN102792689B (en) Delta compression can be carried out and for by image, remote display is presented to the amendment of estimation and metadata
US20120140816A1 (en) Method and system for parallel encoding of a video
TW201729591A (en) System and methods for reducing slice boundary visual artifacts in display stream compression (DSC)
JP4851911B2 (en) Encoding apparatus, encoding program, and encoding method
CN101977322A (en) Screen coding system based on universal video coding standard
CN107465929B (en) DVFS control method, system, processor and storage equipment based on HEVC
CN101472181A (en) Configurable performance motion estimation for video encoding
CN103795973A (en) Jitter cancellation for audio/video synchronization in a non-real time operating system
TWI393447B (en) Frame buffer compression and memory allocation in a video decoder
CN104202605B (en) A kind of method and its realization device by reducing resolution prediction high-definition image coding unit CU dividing mode
CN104469488A (en) Video decoding method and system
CN107105240B (en) A HEVC-SCC complexity control method and system
CN106162192A (en) Process the method and apparatus of video data
CN109391816B (en) Parallel processing method of entropy coding in HEVC based on CPU+GPU heterogeneous platform
CN104980764A (en) Parallel coding/decoding method, device and system based on complexity balance
CN101867807B (en) Device and method for selecting an in-frame prediction mode
US10356439B2 (en) Flexible frame referencing for display transport
US8787686B2 (en) Image processing device and image processing method
CN105100799A (en) Method for reducing intraframe coding time delay in HEVC encoder
US20130089141A1 (en) Methods and systems for encoding pictures associated with video data
TWI451764B (en) Intra mode prediction selecting apparatus and method thereof
WO2014127961A1 (en) Combined parallel and pipelined video encoder
TW201338554A (en) Moving picture coding method, moving picture coding apparatus, and moving picture coding program
Chen et al. Argus: Real-Time HQ Video Decoding with CPU Coordinating on Consumer Devices

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130213

Termination date: 20160414

CF01 Termination of patent right due to non-payment of annual fee