No BSD License  

Highlights from
Scalable MPEG compression based on DCT coefficients

Scalable MPEG compression based on DCT coefficients

by

 

15 Nov 2006 (Updated )

This application makes 2 layers base Layer and enhancement layer from quantized coefficients

[bufferImageP,streamP,motionVect]=compensatedFrame(Im,bufferImage,mbSize,p,array,estAlgo)
function [bufferImageP,streamP,motionVect]=compensatedFrame(Im,bufferImage,mbSize,p,array,estAlgo)

if estAlgo == 1
    motionVect = motionEstARPS(Im,bufferImage,mbSize,p);
elseif estAlgo == 2
    motionVect = motionEstDS(Im,bufferImage,mbSize,p);
elseif estAlgo == 3
    motionVect = motionEstES(Im,bufferImage,mbSize,p);
elseif estAlgo == 4
    motionVect = motionEstTSS(Im,bufferImage,mbSize,p);
end

imgComp = motionComp(bufferImage, motionVect, mbSize);
imageSubtract=Im-imgComp;
streamP=forwardDCT(imageSubtract,array);
JQ2=inverseDCT(streamP,array);


%imageSubtract2=double(imageSubtract2);
%imageSubtract=imageSubtract-128;



%figure;imshow(uint8(JQ2))
%bufferImageP=JQ2+imageSubtract1;
%bufferImageP=uint8(bufferImageP);
bufferImageP=JQ2+imgComp;

Contact us