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

61 lines
1.7 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}[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=.5, text centered]
\tikzstyle{Square}=[draw=DrawColor,thick]
\tikzstyle{Byte}=[draw=DrawColor,thick, dashed]
% \begin{scope}[xshift=0, yshift=0]
% \draw[Square] (0,0) rectangle ++(2,1cm);
% \draw[Square] (2,0) rectangle ++(7,1cm);
% \node[TextStyle] at (2/2,.5) {NAL header};
% \node[TextStyle] at (2+7/2,.5) {Slice data};
% \coordinate (EdgeL) at (0,0);
% \coordinate (EdgeR) at (2,0);
% \end{scope}
\foreach \x in {0,1,...,15}
\node at (\x cm,1cm) {$\x$};
\node at (0 cm,0cm) {F};
% \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);
%
% \node[TextStyle] at (.25,.5) {F};
% \node[TextStyle] at (6*.25+0.5,.5) {NAL type (6)};
% \node[TextStyle] at (7*.25+3.25,.5) {Layer ID (6)};
% \node[TextStyle] at (3*.25+6.5,.5) {TIDP (3)};
\node[TextStyle] at (8/2,-0.5) {2 bytes header};
\end{tikzpicture}