Review of chapter 2
No files matched your search
@@ -16,7 +16,7 @@ matrix,shapes.symbols,plotmarks,decorations.markings,shadows,backgrounds}
|
||||
|
||||
\begin{tikzpicture}[scale=\scale,on grid, ->,>=stealth']
|
||||
|
||||
\tikzstyle{TextStyle}=[scale=.75,text centered]
|
||||
\tikzstyle{TextStyle}=[scale=.7,text centered]
|
||||
|
||||
\begin{scope}[scale=0.4]
|
||||
|
||||
@@ -29,7 +29,7 @@ matrix,shapes.symbols,plotmarks,decorations.markings,shadows,backgrounds}
|
||||
\tikzstyle{CU}=[draw=DrawColor, thin]
|
||||
\tikzstyle{PU}=[draw=DrawColor, thin, densely dashed]
|
||||
|
||||
\node[TextStyle] at (8,16.5) {$64\times64$ - CTU};
|
||||
\node[TextStyle] at (8,16.5) {CTU - $64\times64$};
|
||||
\draw[CTU] (0,0) rectangle ++(16,16); % 64x64
|
||||
|
||||
%% 32x32
|
||||
@@ -53,7 +53,7 @@ matrix,shapes.symbols,plotmarks,decorations.markings,shadows,backgrounds}
|
||||
|
||||
\node[TextStyle] at (12,12) {$32\times32$};
|
||||
\node[TextStyle] at (2,14) {$16\times16$};
|
||||
\node[TextStyle] at (5,13) {$8\times8$};
|
||||
\node[TextStyle,scale=.9] at (5,13) {$8\times8$};
|
||||
|
||||
\node[TextStyle] (CULabel) at (9.5,6) {CU};
|
||||
\draw[black, -latex] (CULabel) to (7,7);
|
||||
|
||||
|
After Width: | Height: | Size: 633 KiB |
|
After Width: | Height: | Size: 282 KiB |
|
After Width: | Height: | Size: 689 KiB |
|
After Width: | Height: | Size: 306 KiB |
|
After Width: | Height: | Size: 722 KiB |
|
After Width: | Height: | Size: 319 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 631 KiB |
|
After Width: | Height: | Size: 281 KiB |
@@ -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}
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
|
||||
\begin{tikzpicture}[auto, on grid, scale=.5, y=-1cm, every node/.style={scale=.5, y=-1cm}]
|
||||
\def\BlockSize{4}
|
||||
\tikzstyle{TextStyle}=[text centered, scale=1/.5, font=\footnotesize]
|
||||
|
||||
\tikzstyle{PU} =[draw, minimum height=\BlockSize cm, minimum width=\BlockSize cm]
|
||||
\tikzstyle{Neighbour} =[draw, minimum height=1 cm, minimum width=\BlockSize cm, fill=gray!60]
|
||||
|
||||
|
||||
|
||||
\tikzstyle{PixelAnchor} =[xshift=.5cm, yshift=-.5cm]
|
||||
\tikzstyle{Pixel} =[circle, thin, fill=\TikZColorFill, inner sep=0, minimum size=10pt]
|
||||
|
||||
\tikzstyle{PixelNeighbour} =[Pixel, fill=black!70]
|
||||
\tikzstyle{Arrow} =[-latex,thick, draw=black]
|
||||
\tikzstyle{NeighbourSquares} =[fill=\TikZColorFillDark]
|
||||
|
||||
\tikzstyle{EllipseDup} =[PixelAnchor, draw, ellipse, minimum width=5cm, minimum height=.7cm, inner sep=0]
|
||||
|
||||
\draw[Pixel] (0,0) grid ++(4.5,4.5);
|
||||
\node[NeighbourSquares, anchor=north west, minimum width=1cm, minimum height=1cm] at (-1,-1) {};
|
||||
\node[NeighbourSquares, anchor=north west, minimum width=4cm, minimum height=1cm] at (0,-1) {};
|
||||
\node[NeighbourSquares, anchor=north west, minimum width=4cm, minimum height=1cm] at (4,-1) {};
|
||||
\node[NeighbourSquares, anchor=north west, minimum width=1cm, minimum height=4cm] at (-1,0) {};
|
||||
\node[NeighbourSquares, anchor=north west, minimum width=1cm, minimum height=4cm] at (-1,4) {};
|
||||
|
||||
% Pixels
|
||||
\foreach \x in {0,...,3}
|
||||
\foreach \y in {0,...,3}
|
||||
{
|
||||
\node at (\x,\y) [PixelAnchor,Pixel]() {};
|
||||
}
|
||||
|
||||
\path[PixelAnchor, Arrow, shorten >= 2pt] (-1,1) -- ++( 2, 0 );
|
||||
\path[PixelAnchor, Arrow, shorten >= 2pt] (4,1) -- ++( -3, 0 );
|
||||
|
||||
\path[PixelAnchor, Arrow, shorten >= 2pt] (1,-1) -- ++( 0, 2 );
|
||||
\path[PixelAnchor, Arrow, shorten >= 2pt] (1,4) -- ++( 0, -3 );
|
||||
|
||||
|
||||
\node[EllipseDup] at (1,4) {};
|
||||
\node[EllipseDup, rotate=90] at (4,1) {};
|
||||
|
||||
\foreach \y in {-1,...,7}
|
||||
{
|
||||
\node at (-1,\y) [PixelAnchor,PixelNeighbour]() {};
|
||||
}
|
||||
\foreach \y in {-1,...,3}
|
||||
{
|
||||
\node at (4,\y) [PixelAnchor,PixelNeighbour]() {};
|
||||
}
|
||||
|
||||
% \path[PixelAnchor, Arrow, dashed, shorten >= 3pt] (4,-1) -- ++( 0 , \BlockSize );
|
||||
% \path[PixelAnchor, Arrow, dashed, shorten >= 3pt] (-1,4) -- ++( \BlockSize, 0 );
|
||||
\foreach \x in {0,1,...,7}
|
||||
{
|
||||
\node at (\x,-1) [PixelAnchor,PixelNeighbour]() {};
|
||||
}
|
||||
\foreach \x in {0,1,...,3}
|
||||
{
|
||||
\node at (\x,4) [PixelAnchor,PixelNeighbour]() {};
|
||||
}
|
||||
|
||||
\node[TextStyle] at (1.2,-1.3) {$p_1$};
|
||||
\node[TextStyle] at (4.2,-1.3) {$p_2$};
|
||||
|
||||
\node[TextStyle] at (5.3,1.3) {$p'_2$};
|
||||
|
||||
\node[TextStyle] at (-1.3,1.3) {$p_3$};
|
||||
\node[TextStyle] at (-1.3,4.3) {$p_4$};
|
||||
|
||||
\node[TextStyle] at (1.2,5.3) {$p'_4$};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
\path[Arrow, very thick, -] (-1,4) -- ++(6,0);
|
||||
\path[Arrow, very thick, -] (4,-1) -- ++(0,6);
|
||||
\path[Arrow, very thick, -] (-1,0) -- ++(1,0);
|
||||
\path[Arrow, very thick, -] (0,-1) -- ++(0,1);
|
||||
\path[Arrow, very thick, -] (0,0) -- ++(4,0);
|
||||
\path[Arrow, very thick, -] (4,0) -- ++(4,0);
|
||||
\path[Arrow, very thick, -] (0,0) -- ++(0,4);
|
||||
\path[Arrow, very thick, -] (0,4) -- ++(0,4);
|
||||
% \node[TextStyle] at (-1.2,-1.5) {Top-left};
|
||||
|
||||
\node[TextStyle, anchor=south west, align=left, text width=4cm] at (-3,10) (RefLabel) {Reference pixels};
|
||||
\node[TextStyle, anchor=south west, align=left, text width=4cm, below=.5cm of RefLabel] (PredLabel) {Predicted pixels};
|
||||
% \node[TextStyle, anchor=south west, align=left, text width=4cm, right=4cm of RefLabel] (PixelDup) {Pixel duplication};
|
||||
% \node[TextStyle, anchor=south west, align=left, text width=4cm, below=.5cm of PixelDup] (PredDir) {Prediction reference};
|
||||
\node[TextStyle, anchor=south west, align=left, text width=4cm, right=4cm of RefLabel] (PredDir) {Prediction reference};
|
||||
|
||||
\node[Pixel, , minimum size=12pt, left=.1 cm of PredLabel.west] {};
|
||||
\node[PixelNeighbour, minimum size=12pt, left=.1 cm of RefLabel.west] {};
|
||||
% \path[Arrow, latex-, dashed] (PixelDup.west) -- ++(-1,0);
|
||||
\path[Arrow, latex-] (PredDir.west) -- ++(-1,0);
|
||||
|
||||
|
||||
% \path[PixelAnchor, Arrow, blue] (2.75,-1) -- ++( -2 , \BlockSize );
|
||||
|
||||
\end{tikzpicture}
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
decorations.pathreplacing,decorations.pathmorphing,shapes,%
|
||||
matrix,shapes.symbols,plotmarks,decorations.markings,shadows,backgrounds}
|
||||
|
||||
|
||||
\pgfdeclarelayer{background}
|
||||
\pgfdeclarelayer{foreground}
|
||||
\pgfdeclarelayer{L0}
|
||||
@@ -11,71 +10,65 @@ matrix,shapes.symbols,plotmarks,decorations.markings,shadows,backgrounds}
|
||||
\pgfdeclarelayer{L3}
|
||||
\pgfsetlayers{background,L0,L1,L2,L3,main,foreground}
|
||||
|
||||
\newcommand{\scale}{.13}
|
||||
\newcommand{\scale}{.12}
|
||||
|
||||
\begin{tikzpicture}[scale=\scale,every node/.style={scale=\scale},on grid ]
|
||||
|
||||
\definecolor{LCUFill}{rgb}{0,0.5,1}
|
||||
\definecolor{DrawColor}{rgb}{0,0,0.5}
|
||||
\definecolor{LCUFill}{rgb}{1,1,1}
|
||||
\definecolor{DrawColor}{rgb}{0,0,0}
|
||||
\tikzstyle{arrowstyle}=[scale=1]
|
||||
\tikzstyle{IntraArrow}=[draw=black, shorten <=0, postaction={decorate,decoration={markings, mark=at position .3 with {\arrow[arrowstyle]{stealth}}}} ]
|
||||
\tikzstyle{IntraNumber}=[scale=5.5, align=center]
|
||||
|
||||
\tikzstyle{TextStyle}=[scale=2, text centered]
|
||||
\draw[draw=black, very thick] (-31.5,-31.5) rectangle ++(64,64);
|
||||
|
||||
\tikzstyle{LCU}=[draw=DrawColor, fill=LCUFill, very thick]
|
||||
\tikzstyle{CU}=[draw=DrawColor, thin]
|
||||
\tikzstyle{PU}=[draw=DrawColor, thin, densely dashed]
|
||||
|
||||
\tikzstyle arrowstyle=[scale=1]
|
||||
\tikzstyle{IntraArrow} =[draw=black, shorten <=0, postaction={decorate,decoration={markings, mark=at position .3 with {\arrow[arrowstyle]{stealth}}}} ]
|
||||
|
||||
|
||||
% \newcommand{\gridsize}{70}
|
||||
% \draw[help lines] (-\gridsize,-\gridsize) grid ++(\gridsize*2,\gridsize*2);
|
||||
|
||||
\draw[draw=black, very thick] (-31,-31) rectangle (31,31);
|
||||
% \draw[xshift=.5cm] (-32,33) grid ++(64,1);
|
||||
% \draw[yshift=-.5cm] (-32,33) grid ++(-1,-64);
|
||||
% \node[IntraNumber] at (-30,33) {30};
|
||||
% \node[IntraNumber] at (-20,33) {20};
|
||||
% \node[IntraNumber] at (-10,33) {10};
|
||||
% \node[IntraNumber] at (0,33) {0};
|
||||
% \node[IntraNumber] at (10,33) {10};
|
||||
% \node[IntraNumber] at (20,33) {20};
|
||||
% \node[IntraNumber] at (30,33) {30};
|
||||
|
||||
\coordinate (Center) at (0,0);
|
||||
|
||||
% \foreach \x in {-32,...,31}
|
||||
% \draw[draw=black] (\x-.5,31.5) rectangle ++(1,1);
|
||||
% \foreach \y in {-31,...,32}
|
||||
% \draw[draw=black] (-32-.5,\y-.5) rectangle ++(1,1);
|
||||
|
||||
\newcounter{intra}
|
||||
\setcounter{intra}{1}
|
||||
\foreach \y in {-31,-26,-21,-17,-13,-9,-5,-2,0,2,5,9,13,17,21,26}
|
||||
%% Vertical Modes
|
||||
\setcounter{maincounter}{1}
|
||||
\foreach \y in {-31,-26,-21,-17,-13,-9,-5,-2}
|
||||
{
|
||||
\addtocounter{intra}{1}
|
||||
\node[scale=4, align=center] at (-32,\y) {\theintra};
|
||||
\draw[IntraArrow] (-31,\y) to (Center);
|
||||
\addtocounter{maincounter}{1}
|
||||
\draw[IntraArrow] (-32,\y) to (Center);
|
||||
\node[IntraNumber] at (-34,\y-.7) {\themaincounter};
|
||||
}
|
||||
\addtocounter{intra}{1}
|
||||
\node[scale=4, align=center] at (-32,32) {\theintra};
|
||||
\draw[IntraArrow] (-31,31) to (Center);
|
||||
\foreach \x in {-26,-21,-17,-13,-9,-5,-2,0,2,5,9,13,17,21,26,31}
|
||||
\addtocounter{maincounter}{1}
|
||||
\draw[IntraArrow] (-32,0) to (Center);
|
||||
\node[IntraNumber] at (-34,0) {\themaincounter};
|
||||
\foreach \y in {2,5,9,13,17,21,26}
|
||||
{
|
||||
\addtocounter{intra}{1}
|
||||
\node[scale=4, align=center] at (\x,32) {\theintra};
|
||||
\draw[IntraArrow] (\x,31) to (Center);
|
||||
\addtocounter{maincounter}{1}
|
||||
\draw[IntraArrow] (-32,\y) to (Center);
|
||||
\node[IntraNumber] at (-34,\y+.7) {\themaincounter};
|
||||
}
|
||||
|
||||
% \foreach \x in {-31,-26,-21,-17,-13,-9,-5,-2,0,2,5,9,13,17,21,26,31}
|
||||
% {
|
||||
% \draw[IntraArrow] (Center) to (\x,-31);
|
||||
% }
|
||||
% \foreach \y in {-26,-21,-17,-13,-9,-5,-2,0,2,5,9,13,17,21,26,31}
|
||||
% {
|
||||
% \draw[IntraArrow] (Center) to (31,\y);
|
||||
% }
|
||||
%% Horizontal Modes
|
||||
\foreach \x in {-32,-26,-21,-17,-13,-9,-5,-2}
|
||||
{
|
||||
\addtocounter{maincounter}{1}
|
||||
\draw[IntraArrow] (\x,33) to (Center);
|
||||
\node[IntraNumber] at (\x-.8,34.7) {\themaincounter};
|
||||
}
|
||||
\addtocounter{maincounter}{1}
|
||||
\draw[IntraArrow] (0,33) to (Center);
|
||||
\node[IntraNumber] at (0,34.7) {\themaincounter};
|
||||
\foreach \x in {2,5,9,13,17,21,26,32}
|
||||
{
|
||||
\addtocounter{maincounter}{1}
|
||||
\draw[IntraArrow] (\x,33) to (Center);
|
||||
\node[IntraNumber] at (\x+.8,34.7) {\themaincounter};
|
||||
}
|
||||
|
||||
% \end{scope}
|
||||
% \foreach \y in {0,...,31}
|
||||
% \draw[black] (-1,\y) rectangle ++(1,1);
|
||||
|
||||
|
||||
% \node[scale=6, text width=2cm, align=left] at (8,-1) {Planar};
|
||||
% \node[scale=6, text width=2cm, align=left] at (8,-4) { DC};
|
||||
% \node[scale=1/\scale, text width=2cm, align=left] at (10,-3) {\footnotesize 0: Planar};
|
||||
% \node[scale=1/\scale, text width=2cm, align=left] at (10,-6) {\footnotesize 1: DC};
|
||||
|
||||
|
||||
% % H.264
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
|
||||
\begin{tikzpicture}[auto, on grid, scale=.5, y=-1cm, every node/.style={scale=.5, y=-1cm}]
|
||||
\def\BlockSize{4}
|
||||
\tikzstyle{TextStyle}=[text centered, font=\Huge]
|
||||
\tikzstyle{TextStyle}=[text centered, scale=1/.5, font=\footnotesize]
|
||||
|
||||
\tikzstyle{PU} =[draw, minimum height=\BlockSize cm, minimum width=\BlockSize cm]
|
||||
\tikzstyle{Neighbour} =[draw, minimum height=1 cm, minimum width=\BlockSize cm, fill=gray!60]
|
||||
|
||||
\tikzstyle{PU} =[draw, minimum height=\BlockSize cm, minimum width=\BlockSize cm, font=\Huge]
|
||||
\tikzstyle{Neighbour} =[draw, minimum height=1 cm, minimum width=\BlockSize cm, font=\Large, fill=gray!60]
|
||||
|
||||
\def\TikZColorFill{gray!20}
|
||||
\def\TikZColorFillDark{gray!80}
|
||||
|
||||
\tikzstyle{PixelAnchor} =[xshift=.5cm, yshift=-.5cm]
|
||||
\tikzstyle{Pixel} =[circle, thin, fill=lightgray, inner sep=0, minimum size=10pt]
|
||||
\tikzstyle{PixelNeighbour} =[Pixel, fill=black!80]
|
||||
|
||||
\tikzstyle{PixelNeighbour} =[Pixel, fill=black!70]
|
||||
\tikzstyle{Arrow} =[-latex,thick, draw=black]
|
||||
\tikzstyle{NeighbourSquares} =[fill=darkgray!80]
|
||||
\tikzstyle{NeighbourSquares} =[fill=\TikZColorFillDark]
|
||||
|
||||
|
||||
\draw[Pixel] (0,0) grid ++(4.5,4.5);
|
||||
@@ -41,36 +41,36 @@
|
||||
}
|
||||
|
||||
|
||||
\path[PixelAnchor, Arrow, dashed, shorten >= 38 pt] (.5,-1) -- ++( -2 , \BlockSize );
|
||||
\path[PixelAnchor, Arrow, shorten >= 25 pt] (1,-1) -- ++( -2 , \BlockSize );
|
||||
\path[PixelAnchor, Arrow, dashed, shorten >= 13 pt] (1.5,-1) -- ++( -2 , \BlockSize );
|
||||
\path[PixelAnchor, Arrow, dashed] (.5,-1) -- ( 0 , 0 );
|
||||
\path[PixelAnchor, Arrow, ] (1,-1) -- ( 0 , 1 );
|
||||
\path[PixelAnchor, Arrow, dashed] (1.5,-1) -- ( 0 , 2 );
|
||||
\foreach \x in {2,...,5}
|
||||
{
|
||||
\path[PixelAnchor,Arrow] (\x,-1) -- ++(-2, \BlockSize);
|
||||
}
|
||||
\foreach \x in {2.5,...,4.5}
|
||||
{
|
||||
\path[PixelAnchor,Arrow,dashed] (\x,-1) -- ++(-2, \BlockSize);
|
||||
\path[PixelAnchor,Arrow,dashed] (\x,-1) -- ++(-1.5, \BlockSize - 1);
|
||||
}
|
||||
|
||||
\path[Arrow, very thick, -] (-1,4) -- ++(6,0);
|
||||
\path[Arrow, very thick, -] (4,-1) -- ++(0,6);
|
||||
\path[Arrow, very thick, -] (-1,0) -- ++(1,0);
|
||||
\path[Arrow, very thick, -] (0,-1) -- ++(0,1);
|
||||
\path[Arrow, very thick, -] (0,0) -- ++(4,0) node[midway,above, yshift=1cm, scale=1.2] {Top};
|
||||
\path[Arrow, very thick, -] (4,0) -- ++(4,0) node[midway,above, yshift=1cm, scale=1.2] {Top-right};
|
||||
\path[Arrow, very thick, -] (0,0) -- ++(4,0) node[TextStyle, midway,above, yshift=.4cm] {Top};
|
||||
\path[Arrow, very thick, -] (4,0) -- ++(4,0) node[TextStyle, midway,above, yshift=.4cm] {Top-right};
|
||||
|
||||
\path[Arrow, very thick, -] (0,0) -- ++(0,4) node[midway,above, xshift=-1cm, scale=1.2, rotate=90] {Left};
|
||||
\path[Arrow, very thick, -] (0,4) -- ++(0,4) node[midway,above, xshift=-1cm, scale=1.2, rotate=90] {Bottom-left};
|
||||
% \path[Arrow, very thick, -] (8,0) -- ++(0,-1);
|
||||
% \path[Arrow, very thick, -] (0,8) -- ++(-1,0);
|
||||
\node[TextStyle] at (-1.2,-1.5) {Top-left};
|
||||
|
||||
\node[anchor=south west, align=left, text width=4cm] at (6,6) (RefLabel) {Reference pixels};
|
||||
\node[anchor=south west, align=left, text width=4cm, below=.5cm of RefLabel] (PredLabel) {Predicted pixels};
|
||||
\node[anchor=south west, align=left, text width=4cm, below=.5cm of PredLabel] (PredDir) {Prediction direction};
|
||||
\path[Arrow, very thick, -] (0,0) -- ++(0,4) node[TextStyle, midway,above, xshift=-.5cm, rotate=90] {Left};
|
||||
\path[Arrow, very thick, -] (0,4) -- ++(0,4) node[TextStyle, midway,above, xshift=-.5cm, rotate=90] {Bottom-left};
|
||||
|
||||
\node[Pixel, left=1.3 cm of PredLabel] {};
|
||||
\node[PixelNeighbour, left=1.3 cm of RefLabel] {};
|
||||
\node[TextStyle, anchor=south west, align=left, text width=4cm] at (4,7) (RefLabel) {Reference pixels};
|
||||
\node[TextStyle, anchor=south west, align=left, text width=4cm, below=.5cm of RefLabel] (PredLabel) {Predicted pixels};
|
||||
\node[TextStyle, anchor=south west, align=left, text width=4cm, below=.5cm of PredLabel] (PredDir) {Prediction direction};
|
||||
|
||||
\node[Pixel, , minimum size=12pt, left=.1 cm of PredLabel.west] {};
|
||||
\node[PixelNeighbour, minimum size=12pt, left=.1 cm of RefLabel.west] {};
|
||||
\path[Arrow, latex-] (PredDir.west) -- ++(-1,0);
|
||||
|
||||
|
||||
@@ -26,5 +26,11 @@
|
||||
% \node[draw,dashed,inner sep=5pt, fit=(B3) (B2) (B4) (B2A)] (Leading) {};
|
||||
% \node[label,below=.1 of Leading] {Leading};
|
||||
\node[label,right=.1 of P6, yshift=-.3cm] {TSA};
|
||||
\path[dependency] (P0.south west)++(-1,-.8) -- ++(12cm+3cm,0) node[midway, anchor=center,fill=white] {Display order};
|
||||
\path[dependency] (P0.south west)++(-1,-.6) -- ++(12cm+3cm,0) node[midway, anchor=center,fill=white] {Display order};
|
||||
|
||||
\path[dependency] (P0.south west)++(-1,-.4) -- ++(0,+4.2cm) node[midway, anchor=center,fill=white, rotate=90] {Layer};
|
||||
\node[label, left=.1 of P0] (T0) {T$_0$};
|
||||
\node[label] at (T0 |- P1) {T$_1$};
|
||||
\node[label] at (T0 |- P2) {T$_2$};
|
||||
|
||||
\end{tikzpicture}
|
||||