MPEG2 Video Encoder

by

 

MPEG2 Video Encoder

Alignbits(BitStream)
function [BitStream]= Alignbits(BitStream)

len = length(BitStream);
if(len > 0)
    len = 8 - mod(len,8);
    if(len < 8)
        BitStream = [BitStream dec2bin(0,len)];
    end
end
return

Contact us