Files
doc_phd_thesis/021_VideoCoding/Figures/HEVC/BitstreamSyntax/BitstreamSyntax.tikz
T
2018-07-06 17:56:46 +01:00

57 lines
1.6 KiB
Plaintext

\usetikzlibrary{calc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols,plotmarks,decorations.markings,shadows,backgrounds}
\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\pgfdeclarelayer{L0}
\pgfdeclarelayer{L1}
\pgfdeclarelayer{L2}
\pgfdeclarelayer{L3}
\pgfsetlayers{background,L0,L1,L2,L3,main,foreground}
\newcommand{\scale}{1}
\begin{tikzpicture}[yscale=0.5, 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{TextStyle}=[scale=.7, text centered]
\tikzstyle{Square}=[draw=DrawColor,thick]
\tikzstyle{Byte}=[draw=DrawColor,thick, dashed]
\begin{scope}[xshift=0, yshift=-5cm]
\begin{scope}[xshift=0, yshift=0cm]
\node[TextStyle] at (1,.5) {Slice header};
\draw[Square] (0,0) rectangle ++(2,1cm);
\draw[Square] (2,0) rectangle ++(7,1cm);
\foreach \x in {1,...,3}
{
\draw[Square,thin] (2*\x+.1*\x,.1) rectangle ++(2,0.8cm);
\node[TextStyle] at (1+2*\x+.1*\x,.1+0.8/2) {CTU};
}
\node[TextStyle] at (1+2*3+.1*3+1.35,.1+0.8/2) {...};
\coordinate (EdgeL) at (2+.1,.1);
\coordinate (EdgeR) at (4+.1,.1);
\end{scope}
\begin{scope}[xshift=.2cm, yshift=-2cm, scale=1]
\draw[Square] (0,0) rectangle ++(8,1cm);
\foreach \x in {1,7,13}
\draw[draw=black] (\x*.5,0) -- ++(0,.5);
\draw[Square,dashed] (EdgeL) -- (0,1);
\draw[Square,dashed] (EdgeR) -- (8,1);
\end{scope}
\end{scope}
\end{tikzpicture}