Files

73 lines
3.9 KiB
Plaintext

\usetikzlibrary{arrows,matrix}
\def\scale{1}
\begin{tikzpicture}[
font=\footnotesize,
node distance=1.2cm,
scale=\scale,
every node/.style={scale=\scale},
template/.style={thick, text centered},
block/.style={template, rectangle, text width=1.3cm, ,inner sep=3, minimum height=.6cm},
arrow/.style={template, draw, -latex},
point/.style={template, draw, fill=black, circle,inner sep=0, minimum size=3}]
\tikzstyle{sumBlock}=[template, draw,circle, inner sep=0cm, minimum size=0.1cm]
\tikzstyle{processBlock}=[template, draw, inner sep=0.2cm, minimum size=1cm,text width=1.5cm,fill=TikZColorFill]
\tikzstyle{methodBlock}=[processBlock, fill=TikZColorFillProp]
\tikzstyle{blockArrow}=[arrow,draw,-latex]
\tikzstyle{point} = [draw, fill=black, circle,inner sep=1pt]
\coordinate (sumPoint) at (0,0);
\node[sumBlock] (ResidueDiff) at (sumPoint) {$+$};
\node[left=0.6cm of ResidueDiff] (Input) {\footnotesize $f_t$};
\path[blockArrow] (Input) -- (ResidueDiff);
\node[processBlock,right=of ResidueDiff] (TQ) {$T + Q$};
\node[processBlock,right=1.8cm of TQ] (VLC) {Entropy Coding};
\path[blockArrow] (ResidueDiff) -- (TQ);
\path[blockArrow] (TQ) -- (VLC) node [point,pos=0.4] (p1) {};
\node[processBlock,below=of p1] (InvTQ) { $Q^{-1} + T^{-1}$};
\path[blockArrow] (p1) -- (InvTQ);
\node[sumBlock,below=.8cm of InvTQ] (ReconResidue) {$+$};
\path[blockArrow] (InvTQ) -- (ReconResidue);
\node[processBlock,text width=1.8cm,below=1cm of ResidueDiff] (Pred) {Prediction};
\path[blockArrow] (Pred) -- node[pos=0.96,right] {-} node [point,pos=0.4] (p2) {} (ResidueDiff);
\path[blockArrow] (p2) -- (p2 -| TQ) |- (ReconResidue);
\node[processBlock,below=.8cm of ReconResidue] (FrameBuffer) {Frame buffer};
\path[blockArrow] (ReconResidue) -- (FrameBuffer);
\node[processBlock,text width=1.8cm,below=.4cm of Pred] (MotionSearch) {Motion estimation};
\node[methodBlock,text width=1.8cm] at (MotionSearch |- FrameBuffer) (RefSelection) {Reference picture selection};
\node[right of=ReconResidue, below of=ReconResidue, node distance=0.3cm, text centered] () {\footnotesize $\hat f_t$};
\path[blockArrow] (FrameBuffer.180) -- (RefSelection.0 |- FrameBuffer.180 );
\path[blockArrow] (RefSelection) -- (MotionSearch);
\path[blockArrow] (MotionSearch) -- (Pred);
\node[methodBlock, right of=VLC, node distance=5.3cm] (Mux) {MUX};
\node[right=1.3cm of Mux] (Output) {};
\path[blockArrow] (VLC) -- (Mux) node [point,pos=0.5] (p3) {} node [pos=0.2] (p4) {};
\path[blockArrow] (Mux) -- (Output) node [pos=0.8] (p5) {};
\node[methodBlock,text width=1.8cm,below=1cm of p3] (Parser) {Stream parser};
\node[methodBlock,text width=1.8cm,below of=Parser,node distance=2.8cm] (MVSelection) {MV selection \& ranking};
\node[methodBlock] at (MVSelection -| Mux) (MVCoding) {MV coding};
\path[blockArrow] (p3) -- (Parser);
\path[blockArrow] (Parser) -- (MVSelection.north) node[pos=0.6,right,text width=1.4cm] () {MV info} ;
\path[blockArrow] (MVSelection) -- (MVCoding);
\path[blockArrow] (MVCoding) -- (Mux) node[pos=0.7,right,scale=1] () {SEI};
\newcommand{\upboundary}{40}
\newcommand{\downboundary}{-50}
\node[left=.1cm of Input,yshift=\upboundary] (i0) {};
\node[yshift=\downboundary] at (FrameBuffer -| i0) (i1) {};
\path[template,draw,dashed] (i0) -- (i1);
\node[right=0.1cm of VLC,yshift=\upboundary] (b0) {};
\node[yshift=\downboundary] at (FrameBuffer -| b0) (b1) {};
\path[template,draw,dashed] (b0) -- (b1);
\node[right=0.3cm of Mux,yshift=\upboundary] (o0) {};
\node[yshift=\downboundary] at (FrameBuffer -| o0) (o1) {};
\path[template,draw,dashed] (o0) -- (o1);
\path (i1) -- node[midway,yshift=10] () {\footnotesize \textbf{Encoding Stage}} (b1);
\path (b1) -- node[midway,yshift=10] () {\footnotesize \textbf{Streaming Stage}} (o1);
\path (p4) -- (p5) node[pos=0.6,yshift=40, text centered,text width=1.8cm] (HEVCLabel) {\textbf{HEVC Stream}} ;
\path[template,draw, -stealth] (HEVCLabel.-15) -- (p5);
\path[template,draw, -stealth] (HEVCLabel.195) -- (p4);
\end{tikzpicture}