99 lines
2.9 KiB
Plaintext
99 lines
2.9 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}{.13}
|
|
|
|
\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=2, text centered]
|
|
|
|
\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);
|
|
|
|
\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}
|
|
{
|
|
\addtocounter{intra}{1}
|
|
\node[scale=4, align=center] at (-32,\y) {\theintra};
|
|
\draw[IntraArrow] (-31,\y) to (Center);
|
|
}
|
|
\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{intra}{1}
|
|
\node[scale=4, align=center] at (\x,32) {\theintra};
|
|
\draw[IntraArrow] (\x,31) to (Center);
|
|
}
|
|
|
|
% \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);
|
|
% }
|
|
|
|
% \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};
|
|
|
|
|
|
% % H.264
|
|
% \foreach \x in {-31,-15,0,15,32}
|
|
% \draw[ red,-latex] (Center) to (\x,-32);
|
|
%
|
|
% \foreach \y in {-15,0,15}
|
|
% \draw[red,-latex] (Center) to (32,\y);
|
|
|
|
% \foreach \x in {-31,-15,0,15,31}
|
|
% \draw[IntraArrow, red] (\x,31) to (Center);
|
|
%
|
|
% \foreach \y in {-15,0,15}
|
|
% \draw[IntraArrow, red] (-31,\y) to (Center);
|
|
%
|
|
% \node[scale=6, text width=2cm, align=left,red] at (8,-1) {Planar};
|
|
% \node[scale=6, text width=2cm, align=left,red] at (8,-4) { DC};
|
|
|
|
|
|
\end{tikzpicture}
|