Review of chapter 2
This commit is contained in:
1 parent
f3f362359e
commit
74109b2c4c
31 files changed
+751
-352
No files matched your search
@@ -1,91 +1,150 @@
|
||||
\usetikzlibrary{arrows,matrix}
|
||||
% \usepackage{amssymb, amsmath, mathptmx}
|
||||
|
||||
\begin{tikzpicture}[font=\scriptsize,node distance=1cm,scale=1.2]
|
||||
\begin{tikzpicture}[font=\footnotesize,node distance=1.5cm]
|
||||
|
||||
\tikzstyle{sumBlock}=[draw,circle, inner sep=0cm, minimum size=0.1cm]
|
||||
\tikzstyle{processBlock}=[draw, fill=\TikZColorFill, inner sep=0.1cm, minimum size=0.7cm,text centered]
|
||||
\tikzstyle{proposedBlock}=[processBlock, fill=gray!30]
|
||||
\tikzstyle{blockArrow}=[draw,-latex]
|
||||
\tikzstyle{point} = [draw, fill=black, circle,inner sep=1pt]
|
||||
|
||||
\coordinate (sumPoint) at (0,0);
|
||||
\node[sumBlock] (ResidueDiff) at (sumPoint) {$+$};
|
||||
|
||||
|
||||
% \begin{scope}[xshift=-2cm, yshift=3.2cm, scale=1.5]
|
||||
% \def\spacing{.2}
|
||||
% \node at ((.5+3*\spacing*.5,-.5) (Input) {};
|
||||
% \foreach \i in {0,...,3}
|
||||
% \draw[thick,fill=white] (\spacing*\i,-.15*\i) rectangle ++(1,1);
|
||||
% % \node[text width=.7cm, text centered] at (1.6,1.1) {Video Stream};
|
||||
% % \node[text width=.7cm, text centered] at (1.1,.1) {Input video};
|
||||
\tikzstyle{templateBlock} = [inner sep=0.1cm, text centered]
|
||||
\tikzstyle{processBlock} = [templateBlock, draw, fill=\TikZColorFill, minimum height=0.9cm, text width=2cm]
|
||||
\tikzstyle{proposedBlock} = [processBlock, fill=gray!30]
|
||||
\tikzstyle{labels} = [templateBlock, text width=2cm, font=\scriptsize]
|
||||
\tikzstyle{blockArrow} = [draw,-latex]
|
||||
\tikzstyle{arrowControl} = [blockArrow, dashed]
|
||||
\tikzstyle{arrowOutput} = [blockArrow, shorten >=6, thick]
|
||||
\tikzstyle{point} = [draw, fill=black, circle,inner sep=1pt]
|
||||
|
||||
\tikzstyle{frame} = [anchor=north west, inner sep=0]
|
||||
\tikzstyle{ctu} = [draw, step=12.8mm]
|
||||
|
||||
\def\framescale{0.23753}
|
||||
|
||||
%% CUs
|
||||
% \begin{scope}[scale=\framescale, every node/.style={scale=\framescale}]
|
||||
\node[frame, on grid] at (0,0) (FrameCU) {\includegraphics[width=2cm]{FrameList/RaceCUCrop} };
|
||||
% \draw[ctu] (0,0) grid ++(84.2mm,-48.0mm);
|
||||
% \end{scope}
|
||||
\node[labels, above=0 of FrameCU] {Coding Units quad-tree};
|
||||
|
||||
%% CTUs
|
||||
\node[frame, on grid] at (0,-2.5cm) (FrameCTU) {\includegraphics[width=2cm]{FrameList/RaceCTUCrop} };
|
||||
|
||||
\begin{scope}[yshift=-5cm]
|
||||
\def\spacing{.1}
|
||||
\node[frame] at (\spacing*-2 ,\spacing*0 ) (is) {\includegraphics[width=2cm]{FrameList/Race_CodedCrop} };
|
||||
\node[frame] at (\spacing*-1 ,\spacing*-1) {\includegraphics[width=2cm]{FrameList/Race_CodedCrop} };
|
||||
\node[frame] at (\spacing*0 ,\spacing*-2) {\includegraphics[width=2cm]{FrameList/Race_CodedCrop} };
|
||||
\node[frame] at (\spacing*1 ,\spacing*-3) {\includegraphics[width=2cm]{FrameList/Race_CodedCrop} };
|
||||
\node[frame] at (\spacing*2 ,\spacing*-4) (ie) {\includegraphics[width=2cm]{FrameList/Race_CodedCrop} };
|
||||
\node[fit=(is) (ie), inner sep=1pt] (in) {};
|
||||
\end{scope}
|
||||
|
||||
|
||||
\node[left of=ResidueDiff,text width=1cm,node distance=2.5cm] (Input) {\textbf{Input video}};
|
||||
\path[blockArrow] (Input) -- (ResidueDiff) node [point, midway] (p0) {};
|
||||
\path[blockArrow] (in) -- (FrameCTU) node[labels, text width=1.5cm, midway, left] {Partitioning into CTUs};
|
||||
\path[blockArrow] (FrameCTU) -- (FrameCU);
|
||||
|
||||
\node[processBlock,right=of ResidueDiff] (Transf) {$T$};
|
||||
\node[processBlock,right=of Transf] (Quant) {$Q$};
|
||||
\node[processBlock,right=of Quant] (VLC) {CABAC};
|
||||
\node[sumBlock, right=1.2 of FrameCU] (ResidueDiff) {$+$};
|
||||
|
||||
\node[right=of VLC, text centered,text width=1.5cm] (Output) {\textbf{HEVC bitstream}};
|
||||
\path[blockArrow] (VLC) -- (Output);
|
||||
%% CTUs
|
||||
\node[frame, right=2.2cm of FrameCU] (FTu) {\includegraphics[width=2cm]{FrameList/RaceTUCrop} };
|
||||
|
||||
\node[labels, text width=2.3cm, above=0 of FTu] {Transform Units \\quad-tree};
|
||||
|
||||
\node[processBlock, text width=.9cm, right=0.5 of FTu] (Transf) {$T$};
|
||||
\node[processBlock, text width=.9cm, right=0.5 of Transf] (Quant) {$Q$};
|
||||
\node[processBlock, text width=3.3cm, above=1 of Transf, xshift=.5cm] (GCC) {Encoder control};
|
||||
|
||||
\node[labels,right=1.8 of Quant] (QuantCoef) {Quantized Coefficients};
|
||||
\node[labels,right=2.7 of GCC] (ControlData) {Control data};
|
||||
|
||||
\path[blockArrow] (Quant) -- (QuantCoef) node [point,pos=0.5] (pointQuant) {};
|
||||
|
||||
\node[processBlock, below=0.5 of pointQuant, text width=.9cm,] (InvQuant) {$Q^{-1}$};
|
||||
\node[processBlock, below=0.5 of InvQuant, text width=.9cm, ] (InvTransf) {$T^{-1}$};
|
||||
|
||||
\node[sumBlock, below=0.6 of InvTransf] (ReconResidue) {$+$};
|
||||
|
||||
\node[processBlock, below=.9 of FTu, xshift=.9cm] (IntraEstm) {Intra-frame estimation};
|
||||
\node[labels, scale=.8, below=0 of IntraEstm.200, align=right, yshift=-3] {34 modes};
|
||||
|
||||
\node[processBlock, below=.6 of IntraEstm] (Intra) {Intra prediction};
|
||||
\node[processBlock, below=.9 of Intra] (Inter) {Inter prediction};
|
||||
\node[processBlock, below=.6 of Inter] (MotionSearch) {Motion Estimation};
|
||||
% \node[labels, scale=.8, below=0 of MotionSearch, text width=2cm] {Symmetric \& asymmetric partitions};
|
||||
\node[labels, scale=.8, below=0 of MotionSearch.200, align=right, yshift=-3, text width=4cm] {AMVP, Merge Mode};
|
||||
|
||||
\node[processBlock, below=1.2 of ReconResidue, text width=2.3cm] (Filters) {Deblocking \& SAO filters};
|
||||
% \node[processBlock, text width=2.3cm] at (Filters |- MotionSearch) (RefBuffer) {Decoded Picture Buffer};
|
||||
\node[processBlock, text width=2.3cm] at (Filters |- MotionSearch) (RPSet) {Reference Picture Set};
|
||||
|
||||
|
||||
\path[blockArrow] (ResidueDiff) -- (Transf);
|
||||
\path[blockArrow] (Transf) -- (Quant);
|
||||
\path[blockArrow] (Quant) -- (VLC) node [point,midway] (QuantFrame) {};
|
||||
%% Intra / Inter prediction arrows
|
||||
\node [point,left=.7 of Intra] (IntraPred) {};
|
||||
\node [point,left=.7 of Inter] (InterPred) {};
|
||||
\path[blockArrow,-] (Intra) -- (IntraPred);
|
||||
\path[blockArrow,-] (Inter) -- (InterPred);
|
||||
\node[coordinate,left of=IntraPred, below of=IntraPred, node distance=0.15cm] (w1) {};
|
||||
\node[coordinate,left of=InterPred, above of=InterPred, node distance=0.15cm] (w2) {};
|
||||
\path (IntraPred) -- (InterPred) node [coordinate, midway] (pointPred) {};
|
||||
\path (pointPred) -- (pointPred -| ResidueDiff) node [point] (pointPred) {};
|
||||
\draw[-latex,densely dashed] (w1) to [bend left=60] (w2);
|
||||
\draw[thick,blockArrow] (IntraPred)+(0.1,-0.1) -- (pointPred);
|
||||
\path[blockArrow] (pointPred) -- node[pos=0.96,right] {-} (ResidueDiff);
|
||||
|
||||
\node[processBlock,below=.8 of QuantFrame] (InvQuant) {$Q^{-1}$};
|
||||
\node[processBlock,right=0.7 of InvQuant] (InvTransf) {$T^{-1}$};
|
||||
\node[sumBlock,below=.5 of InvTransf] (ReconResidue) {$+$};
|
||||
\node[processBlock,text width=1.9cm, below=.8 of ReconResidue] (Filters) {Deblocking \& SAO filters};
|
||||
|
||||
\path[blockArrow] (QuantFrame) -- (InvQuant);
|
||||
\path[blockArrow] (FrameCU) -- (ResidueDiff) node [point, midway] (pointIn) {};
|
||||
\path[blockArrow] (ReconResidue) -- (Filters) node[point,pos=.4] (pointRecon) {};
|
||||
|
||||
% \path[blockArrow] (ResidueDiff) -- (Transf);
|
||||
\path[blockArrow] (ResidueDiff) -- (FTu);
|
||||
\path[blockArrow] (FTu) -- (Transf);
|
||||
|
||||
\path[blockArrow] (pointIn) |- (GCC);
|
||||
\path[blockArrow] (GCC) -- (ControlData);
|
||||
|
||||
\path[blockArrow] (pointQuant) -- (InvQuant);
|
||||
\path[blockArrow] (InvQuant) -- (InvTransf);
|
||||
\path[blockArrow] (InvTransf) -- (ReconResidue);
|
||||
\path[blockArrow] (ReconResidue) -- (Filters) node[point,midway] (p1) {};
|
||||
|
||||
\node[left=.4 of InvQuant, coordinate,yshift=0.5cm] (x1) {};
|
||||
\path[blockArrow] (pointRecon) -| (Intra);
|
||||
% \path[blockArrow] (RefBuffer) -- (RPSet);
|
||||
% \path[blockArrow] (RPSet) -- (MotionSearch);
|
||||
\path[blockArrow] (Filters) -- (RPSet);
|
||||
\path[blockArrow] (RPSet) -- (MotionSearch);
|
||||
|
||||
\path[blockArrow] (IntraEstm) -- (Intra);
|
||||
\path[blockArrow] (MotionSearch) -- (Inter);
|
||||
\path[blockArrow] (pointIn) |- (MotionSearch);
|
||||
|
||||
\path[blockArrow] (pointIn |- IntraEstm) node[point] {} -- (IntraEstm);
|
||||
|
||||
\node[left=.6 of InvQuant, coordinate] (x1) {};
|
||||
\path[blockArrow,-] (x1 -| ResidueDiff) node[point] () {} -- (x1);
|
||||
\path[blockArrow] (x1) |- (ReconResidue);
|
||||
|
||||
\node [processBlock,text width=1.5cm] (Intra) at (2.2,-1.8) {Intra prediction};
|
||||
\node [processBlock,text width=1.5cm,below=1.2 of Intra] (Inter) {Inter prediction};
|
||||
|
||||
\path[blockArrow] (p1) -| (Intra);
|
||||
\node[processBlock,right=2.5 of ReconResidue] (VLC) {Header Formatting \& CABAC};
|
||||
\begin{pgfonlayer}{background}
|
||||
|
||||
\node [point,left=.8 of Intra] (z1) {};
|
||||
\node [point,left=.8 of Inter] (z2) {};
|
||||
\path[arrowControl] (GCC -| Quant.90) -- (Quant.90);
|
||||
\path[arrowControl] (GCC -| IntraEstm.30) -- (IntraEstm.30);
|
||||
\path[arrowControl] (GCC -| MotionSearch.60) -- (MotionSearch.60);
|
||||
|
||||
\path[blockArrow,-] (Intra) -- (z1);
|
||||
\path[blockArrow,-] (Inter) -- (z2);
|
||||
\path[arrowOutput] (QuantCoef) -- (VLC.135);
|
||||
\path[arrowOutput] (ControlData.-30) -- (VLC);
|
||||
\path[arrowOutput] (MotionSearch) -- (VLC.190) node[labels,above, pos=0.7, yshift=.2cm] {Motion \\ vectors};
|
||||
\path[arrowOutput] (IntraEstm) -- (VLC) node[labels,above, pos=0.8, yshift=.2cm] {Intra \\ modes};
|
||||
\path[arrowOutput] (Filters) -- (VLC.220) node[labels,below, pos=0.7, yshift=-.2cm] {Filter \\ data};
|
||||
|
||||
\node [coordinate,left of=z1,below of=z1,node distance=0.15cm] (w1) {};
|
||||
\node [coordinate,left of=z2, above of=z2, node distance=0.15cm] (w2) {};
|
||||
|
||||
\path (z1) -- (z2) node [coordinate, midway] (w) {};
|
||||
\path (w) -- (w -| sumPoint) node [point] (z) {};
|
||||
|
||||
\draw[-latex,densely dashed] (w1) to [bend left=60] (w2);
|
||||
\draw [thick,blockArrow] (z1)+(0.1,-0.1) -- (z);
|
||||
|
||||
\path[blockArrow] (z) -- node[pos=0.96,right] {-} (ResidueDiff);
|
||||
|
||||
\node[processBlock,below=of Filters,text width=2cm] (RefBuffer) {Decoded Picture Buffer};
|
||||
|
||||
\node[processBlock,text width=1.5cm] at(Inter |- RefBuffer) (MotionSearch) {Motion Estimation};
|
||||
|
||||
\path[blockArrow] (Filters) -- (RefBuffer) node[point,pos=0.4] (p2) {};
|
||||
\path[blockArrow] (RefBuffer) -- (MotionSearch);
|
||||
\path[blockArrow] (MotionSearch) -- (Inter);
|
||||
\path[blockArrow] (p0) |- (MotionSearch);
|
||||
\end{pgfonlayer}
|
||||
|
||||
|
||||
\node[right of=p2, text centered,text width=1.5cm, node distance=2.3cm] (Output) {\textbf{Video output}};
|
||||
\path[blockArrow] (p2) -- (Output);
|
||||
|
||||
\node[right=1 of VLC, text centered,text width=1.7cm] (Output) {\textbf{HEVC NALUs}};
|
||||
\path[blockArrow] (VLC) -- (Output);
|
||||
|
||||
|
||||
|
||||
\end{tikzpicture}
|
||||
|
||||
Reference in new issue
Block a user