Lo Standard JPEG per la Compressione di Immagini Fisse - InfoCom
Lo Standard JPEG per la Compressione di Immagini Fisse - InfoCom
Lo Standard JPEG per la Compressione di Immagini Fisse - InfoCom
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Capitolo 4<br />
Elementi <strong>di</strong> Co<strong>di</strong>fica Video<br />
Contenuto<br />
4.1 Riduzione del<strong>la</strong> Ridondanza Temporale: Motocompensazione . . . . . . . . . . . . . . . . . . . 60<br />
4.1.1 Motocompensazione in Avanti . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61<br />
4.1.2 Motocompensazione Bi<strong>di</strong>rezionale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62<br />
4.2 Successione <strong>di</strong> quadri con motocompensazione . . . . . . . . . . . . . . . . . . . . . . . . . . . 63<br />
4.3 Gli <strong>Standard</strong> H.261 ed H.263 <strong>per</strong> <strong>la</strong> <strong>Compressione</strong> <strong>di</strong> Sequenze Video . . . . . . . . . . . . . . 64<br />
4.3.1 Mo<strong>di</strong> <strong>di</strong> co<strong>di</strong>fica . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66<br />
4.3.2 Stima del moto e motocompensazione . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67<br />
4.3.3 Co<strong>di</strong>fica dei Vettori <strong>di</strong> Spostamento . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67<br />
4.3.4 Trasformazione DCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67<br />
4.3.5 Quantizzazione . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68<br />
4.3.6 Co<strong>di</strong>fica Entropica . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68<br />
4.3.7 Controllo <strong>di</strong> Co<strong>di</strong>fica . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68<br />
4.4 <strong>Standard</strong> H.262 (MPEG-2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70<br />
4.1 Riduzione del<strong>la</strong> Ridondanza Temporale: Motocompensazione<br />
Consideriamo una tipica sequenza video: essa è costituita dal<strong>la</strong> rapida successione <strong>di</strong> quadri (frames) ciascuno dei<br />
quali è una immagine fissa.<br />
Tali quadri si susseguono ad uno specifico frame-rate, tipicamente compreso fra 25 e 30 frames/s. Ciò implica<br />
che <strong>la</strong> durata <strong>di</strong> presentazione <strong>di</strong> ogni singolo quadro sia compresa fra 33 e 40 ms/frame. Possiamo ragionevolmente<br />
supporre che, in generale, due frame successivi presentino una alta corre<strong>la</strong>zione fra loro: pensando infatti <strong>di</strong> riprendere<br />
un soggetto in movimento, e.g. un presentatore del telegiornale, ci si rende imme<strong>di</strong>atamente conto che tale soggetto<br />
non potrà compiere movimenti troppo bruschi nel breve tempo occorrente fra due frame successivi. L’idea base da<br />
cui partire è quin<strong>di</strong> che, in me<strong>di</strong>a, frame successivi siano molto simili fra loro.<br />
La motocompensazione è, in essenza, un proce<strong>di</strong>mento me<strong>di</strong>ante il quale è possibile, in base a quanto detto sopra,<br />
ottenere una riduzione del<strong>la</strong> ridondanza temporale presente in una sequenza video. Considerando una coppia <strong>di</strong> quadri<br />
a<strong>di</strong>acenti, infatti, se il quadro corrente è molto simile al quadro precedente, in fase <strong>di</strong> co<strong>di</strong>fica dell’informazione<br />
apportata dal quadro corrente potremo co<strong>di</strong>ficare solo <strong>la</strong> <strong>di</strong>fferenza, auspicabilmente picco<strong>la</strong>, fra i dati presenti nel<br />
quadro corrente e quelli del quadro precedente, quest’ultimo detto <strong>di</strong> riferimento. Sarà inoltre necessario inviare<br />
anche alcune informazioni re<strong>la</strong>tive al movimento intercorso fra i due quadri.<br />
60