The process will output 1 16x16 luma sample array and 2 8x8 chroma sample array(for mainprofile with chroma_format_idc = 1).
Notice, the inter prediction is executed partition by partition, for main profile all partition will be involved except for 8x8
(1) The derivation of Partwidth&partHeight
For Luma:
ü Not 8x8 partition: = MbpartWidth()
(Such as 8x16,16x8,)
ü 8x8 with subpartition: = SubMbPartWidth
(P_8x8, P_8x8ref0, B_8x8 without B_Direct_8x8)
ü 8x8 without subpartition: = 4, since the smallest partition is 8x8
(B_Skip or B_Direct_16x16, even B_8x8 with B_Direct_8x8 )
For Chroma:
When chroma_format_idc is not equal to 0 (monochrome)
partWidthC = partWidth / SubWidthC
partHeightC = partHeight / SubHeightC
(2) The Inter Prediction for each partition
Ø Step1 (important): get MV and REF list information, refer to (3)
In:
mbpartIdx, subMbpartIdx
out:
mvL0,mvL1, subMvCnt
refIdxL0,refIdxL1 with predFlagL0,predFlagL1
Ø Step2:
MVcnt += subMcCnt
Ø Step3: (important) refer to (5)
(mbpartIdx, subMbpartIdx, partWidth, partHeight
mvL0,mvL1, subMvCnt,
refIdxL0,refIdxL1 with predFlagL0,predFlagL1 )
->Inter prediction samples (partWidth x partHeight)
Ø Step4: (store result for next decoding process)
MvL0[ mbPartIdx ][ subMbPartIdx ] = mvL0
MvL1[ mbPartIdx ][ subMbPartIdx ] = mvL1
RefIdxL0[ mbPartIdx ] = refIdxL0
RefIdxL1[ mbPartIdx ] = refIdxL1
PredFlagL0[ mbPartIdx ] = predFlagL0
PredFlagL1[ mbPartIdx ] = predFlagL1
Ø Step5:
Derivation of partition location: (xP,yP) relative to macroblock
Derivation of subpartition location: (xS,yS) relative to macroblock partition
Pred[xP+xS+x,yP+yS+y] = predPart[x,y]
(3) process of derivation of motion vector an reference indices
P_skip: refer to 8.4.1.1for refIdxL0 of mvL0 and set predflagL0 ‘1’
B_skip, B_Direct_16x16,B_direct_8x8: refer to 8.4.1.2
Other B,P:
ü step1:
get refIdxLX from parsed semantics , and set predFlagLX
ü step2:
subMvCnt = predFlagL0+predFlagL1
MvCnt += subMvCnt
(4) derivation of motion vector prediction mvpLX[] (main algoritm)
The process is related with neighbor MB
( Note: reference to below function:
prepare_direct_params(dec_picture, img, mb_nr, pmvl0, pmvl1, &l0_rFrame, &l1_rFrame) in JM )
(5) Derivation of MvLX[], RefIdxLX[], PredFlagLX[] for partition or subpartition
Horizon:
MvLX[mbPartIdx ][subMbPartIdx ][0]=
mvpLX[0] + mvd_IX[mbpartIdx][subMbpartIdx][0]
Vertical:
MvLX[mbPartIdx ][subMbPartIdx ] [1] =
mvpLX[1] + mvd_IX[mbpartIdx][subMbpartIdx][1]
(p: prediction, d: delta or data)
RefIdxL0[ mbPartIdx ] = refIdxL0
RefIdxL1[ mbPartIdx ] = refIdxL1
PredFlagL0[ mbPartIdx ] = predFlagL0
PredFlagL1[ mbPartIdx ] = predFlagL1
(6) Decoding of PredPartl and Predpartc (inter prediction samples )
( predPart(x,y) = predPartl(x,y) or predPartc(x,y) )
The predL[ xP + xS + x, yP + yS + y ] = predPartL[ x, y ]
predC[ xP / SubWidthC + xS / SubWidthC + x, yP / SubHeightC + yS / SubHeightC + y ] = predPartC[ x, y ]
24/02/08 Created by Shuguang
03/06/08 Modified by Shuguang
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/moonsinger/archive/2008/03/11/2168948.aspx
分享到:
相关推荐
H.264/AVC视频编码帧内预测模型的详细解释
在任何块大小中,都会调用一个函数 Prediction,它根据错误值进行 Intra/Inter/IPCM 预测。 参数 Side_Info 具有所有必要的信息。 它被传递到解码器端。 根据块大小,调用相应的重构函数。 该程序还计算数据隐藏的...
for transcoding H.263 video to H.264/AVC standard by exploiting the new coding features. Specifically, the proposed methods aim to reduce the computational complexity while maintaining acceptable ...
Second analysis demonstrates the importance of inter layer prediction. Then a third study illustrates two best combinations for two network bandwidth limitation. Finally, analysis of different ...
介绍了一种H.264帧内预测编码的改进算法,对进行该项研究人员具有很大的帮助,详细描述了,算法及结构,内容新颖,有创新性。
Efficient Mode Decision Schemes for HEVC Inter Prediction
bframes 默认值:3 设定x264可以使用的最大并行B帧数。...B帧类似于P帧,除了B帧还能从它之后的帧做动态预测(motion prediction)。就压缩比来说效率会大幅提高。它们的平均品质是由--pbratio所控制。
The Elements of Statistical Learning: Data Mining, Inference, and Prediction. 和之前上传的略有差别,这个要更好。
H.264 Baseline and Main Profile YUV 4:2:0 Bitdepth 8 FHD@30fps, 50MHz GOP: I/P MB: 16x16 1/4 Sub-pixel Search range 16 All 13 Intra prediction mode CABAC CAVLC Deblocking Filter Rate control: CBR/VBR ...
M.-H. Roy and D. Larocque. Prediction intervals with random forests. Statistical Methods in Medical Research, 29(1):205–229, Jan. 2020. URL https://doi.org/10.1177/0962280219829885.
1 Scope ............................................................................................................................................................................ 1 2 Normative ...
A.1 Overview of profiles, tiers and levels 199 A.2 Requirements on video decoder capability 199 A.3 Profiles 199 A.3.1 General 199 A.3.2 Main profile 199 A.3.3 Main 10 profile 200 A.3.4 Main Still ...
强化学习,它是一门研究决策的科学,所以在很多领域都有相关的分支学科。David Silver 大神是 AlphaGo 的最主要研发人员,师从强化学习之父Richard Sutton,公开课讲解的内容十分生动,结合课程课件配合视频学习效率...
开源H.265 硬件视频编码器 H.265 Video Encoder IP Core V2.0。 H.265 Video Encoder IP Core 是开源的H.265硬件视频编码器,实现了H.265(或叫HEVC)的大部分功能。它由 复旦大学 专用集成电路与系统国家重点实验室...
数据分析作业:Protein prediction 蛋白质预测,数据分析期末作业
HEVC/H.265标准综述文章 视频编码,算法,H.264/AV1 Inter prediction Intra prediciton Overview High efficiency video coding (HEVC) standard PDF
predicted_label: SVM prediction output vector. accuracy: a vector with accuracy, mean squared error, squared correlation coefficient. prob_estimates: If selected, probability estimate vector. ...
The Jacobian of the prediction model: A ..................................................................................33 The SLAM specific Jacobians: Jxr and Jz ......................................
代码文件:rnn_prediction.py 结果:rnn_sinsin.png, rnn_sinsinx10.png LSTM 代码文件:lstm_prediction.py 结果:lstm.png LSTM + Attention 注意力机制 代码文件:attention.py, attention_score.py, 编码器...
making often transcends our formal models of "rationality." Designing intelligent agents that interact proficiently with people necessitates the modeling of human behavior and the prediction of their ...