Final Exam 2 Solutions

Function mvh mvvpredictedmblockmotionestimationbx by

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: given 8x8 block (MBlock) in PrevFrame, bx, by are the top left coordinates of this block, [mvh, mvv] are the returned motion vector components, and PredictedMBlock is the best matching macroblock. function [intra-mode,PredictedMBlock]=IntraPrediction(bx, by, MBlock,CurrentFrame): intra-mode is the chosen intra-prediction mode that yields the best prediction. function ImodeEntropyCoding(intra-mode,QuantizedDCTIndexBlock,outfile) For a block to be coded in I-mode: entropy code information including the side info indicating I-mode, the chosen intra-mode and the quantized DCT indices (QuantizedDCTIndexBlock) and write the resulting bits into a file (outfile). function PmodeEntropyCoding(mvx,mvy,QuantizedDCTIndexBlock,outfile) For a block to be coded in P-mode: entropy code information including the side info indicating P-mode, the chosen motion vector (mvx,mvy) and the quantized DCT indices (QuantizedDCTIndexBlock) and write the resulting bits into a file (outfile). function [QuantizedDCTIndexBlock]=quantizeDCT(DCTBlock,QP,QMatrix) perform quantization on 8x8 DCT coefficients (in DCTBlock) with quantization parameter QP and QMatrix, return the quantization indices in QuantizedDCTIndexBlock. function [QuantizedDCTBlock]=dequantizeDCT(QuantizedDCTIndexBlock,QP,QMatrix) takes the quantized DCT indices of a block (QuantizedDCTIndexBlock) and applies inverse quantization to obtain quantized DCT coefficients (QuantizedDCTBlock)...
View Full Document

This document was uploaded on 03/12/2014 for the course EL 6123 at NYU Poly.

Ask a homework question - tutors are online