Version 0.1

This commit is contained in:
jfmcarreira committed 2018-07-06 17:56:46 +01:00
commit deffaca3fc
243 files changed
+18198

No files matched your search

Binary file not shown.
@@ -0,0 +1,72 @@
\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}
@@ -0,0 +1,98 @@
\def\MVDEPA{\mbox{(a)}\xspace}
\def\MVDEPB{\mbox{(b)}\xspace}
\def\MVDEPC{\mbox{(c)}\xspace}
\newcommand{\scale}{1}
\newcommand{\xfshift}{4.5cm}
\begin{tikzpicture}[scale=\scale]
\tikzstyle{block}=[thick]
\tikzstyle{refmv}=[-latex,very thick,scale=1]
\tikzstyle{MvLabel}=[right, font=\footnotesize]
\newcommand{\DrawFrameMVDependency}
{
\newcommand{\fsize}{4cm}
\fill[fill=white,fill opacity=.6] (0,0) rectangle (\fsize,\fsize); % Opacity
\draw[thick] (0,0) rectangle (\fsize,\fsize);
\foreach \x in {1,...,4}
\draw[loosely dashed] (\x,0) -- ++(0,\fsize);
\foreach \y in {1,...,4}
\draw[loosely dashed] (0,\y) -- ++(\fsize,0);
}
% Frame t
\begin{scope}[yshift=2*\TikZyfshift, xshift=2*\xfshift, style={yslant=\TikZyslant,xscale=\TikZxscale}]
\coordinate (T0B1) at (1,3);
\coordinate (T0B20) at (2,3);
\coordinate (T0B21) at (2,2.5);
\coordinate (T0B22) at (2.5,3);
\coordinate (T0B3) at (3,3);
\coordinate (T0B4) at (1,2);
\coordinate (T0B5) at (2,1);
\coordinate (T0B6) at (3,1);
\DrawFrameMVDependency
\draw[block] (T0B1) +(0,0) rectangle ++(1,-1);
\draw[block] (T0B20) rectangle ++(0.5,-0.5);
\draw[block] (T0B21) rectangle ++(0.5,-0.5);
\draw[block] (T0B22) rectangle ++(0.5,-1);
\draw[block] (T0B3) +(0,0) rectangle ++(1,-1);
\draw[block] (T0B5) +(0,0) rectangle ++(1,-1);
\draw[block] (T0B6) +(0,0) rectangle ++(1,-1);
\draw[refmv] (T0B20)+(0.25,-0.25) -- ++(-0.5,-0.5);
\draw[refmv] (T0B21)+(0.25,-0.25) -- ++(-0.5,0);
\draw[refmv] (T0B22)+(0.25,-0.5) -- ++(-0.25,-0.25);
\draw[refmv] (T0B3)+(0.5,-0.5) -- ++(-0.25,-0.5);
\draw[refmv] (T0B6)+(0.5,-0.5) -- ++(-0.5,-0.5);
\node[font=\scriptsize] () at (1.35,2.75) {\MVDEPA};
\node[font=\scriptsize] () at (2.35,0.75) {\MVDEPB};
\node at (4cm/2,4.7cm) { $f_{0}$ };
\end{scope}
% Frame t-1
\begin{scope}[ yshift=2*\TikZyfshift, xshift=1*\xfshift,style={yslant=\TikZyslant,xscale=\TikZxscale}]
\coordinate (MVRef1B1) at (1.5,2.5);
\draw[refmv,dashed] (T0B1)++(0.5,-0.5) to (MVRef1B1);
\draw[refmv,-,shorten >=35] (T0B1)++(0.5,-0.5) to (MVRef1B1);
\coordinate (MVRef1B2) at (2.75,0.25);
\draw[refmv,dashed] (T0B5)++(0.5,-0.5) to (MVRef1B2);
\draw[refmv,-,shorten >=18] (T0B5)++(0.5,-0.5) to (MVRef1B2);
\DrawFrameMVDependency
\coordinate (T0B1) at (1,3);
\draw[block] (T0B1) rectangle ++(1,-1);
\coordinate (T0B2) at (2,3);
\draw[block] (T0B2) rectangle ++(0.5,-0.5);
\draw[refmv] (T0B2)+(0.25,-0.25) -- ++(-0.5,-0.5);
\coordinate (T0B3) at (2.5,3);
\draw[refmv] (T0B3)+(0.25,-0.25) -- ++(-0.25,-0.25);
\draw[block] (T0B3) rectangle ++(0.5,-0.5);
\coordinate (T0B4) at (2,2.5);
\draw[block] (T0B4) rectangle ++(0.5,-0.5);
\draw[refmv] (T0B4)+(0.25,-0.25) -- ++(0.25,0.25);
\coordinate (T0B5) at (2.5,2.5);
\draw[block] (T0B5) rectangle ++(0.5,-0.5);
\draw[refmv] (T0B5)+(0.25,-0.25) -- ++(-0.25,-0.25);
\coordinate (T0B6) at (1,2);
\draw[block] (T0B6) +(0,0) rectangle ++(0.5,-0.5);
\draw[refmv] (T0B6)+(0.25,-0.25) -- ++(0.5,0.5);
\draw[block] (T0B6) ++(0.5,0) rectangle ++(0.5,-0.5);
\draw[refmv] (T0B6)+(0.75,-0.25) -- ++(0.25,-0.25);
\coordinate (T0B7) at (2.5,0.5);
\draw[block] (T0B7) rectangle ++(0.5,-0.5);
\node[font=\scriptsize] () at (1.35,2.75) {\MVDEPC};
\node at (4cm/2,4.7cm) { $f_{-1}$ };
\end{scope}
% Frame t-2
\begin{scope}[ yshift=1*\TikZyfshift, xshift=0*\xfshift, style={yslant=\TikZyslant,xscale=\TikZxscale}]
%Define Points
\coordinate (TM1B1) at (1,3);
\coordinate (MVRef1B1) at (1.5,2.5);
% Draw Dependencies
\draw[refmv,dashed] (T0B1)++(0.5,-0.5) to (MVRef1B1);
\draw[refmv,-,shorten >=35] (T0B1)++(0.5,-0.5) to (MVRef1B1);
\DrawFrameMVDependency
% Draw block
\draw[block] (TM1B1) rectangle ++(1,-1);
\node at (4cm/2,4.7cm) { $f_{-2}$ };
\end{scope}
\begin{scope}[xshift=0cm,yshift=-1.2cm]
\draw[refmv] (0,0) to (1.2,0);
\fill[black] (1.25,0) node[MvLabel]{MV dependency};
\end{scope}
\end{tikzpicture}
@@ -0,0 +1,78 @@
\newcommand{\scale}{1}
\newcommand{\xfshift}{4cm}
\begin{tikzpicture}
\begin{scope}[scale=\scale]
\tikzstyle{refmv_line}=[thick,draw=black]
\tikzstyle{refmv}=[refmv_line,-latex,densely dashed]
\tikzstyle{refmv_0}=[refmv,]
\tikzstyle{refmv_1}=[refmv_0]
\newcommand{\DrawFrame}[2]
{
\fill[fill=#1,fill opacity=.6] (0,0) rectangle (#2+1,#2+1); % Opacity
\draw[thick] (0,0) rectangle (#2+1,#2+1);
\foreach \x in {1,...,#2}
\draw (\x,0) -- ++(0,#2+1);
\foreach \y in {1,...,#2}
\draw (0,\y) -- ++(#2+1,0);
}
% Frame t
\begin{scope}[yshift=2*\TikZyfshift, xshift=2*\xfshift, yslant=\TikZyslant,xscale=\TikZxscale]
\coordinate (T0B1) at (0.5-0.25,2.5+0.25);
\coordinate (T0B2) at (1.5,2.5);
\coordinate (T0B3) at (2.5,2.5);
\coordinate (T0B4) at (0.5,1.5);
\coordinate (T0B5) at (1.5,1.5);
\coordinate (T0B6) at (2.5,1.5);
\coordinate (T0B7) at (0.5,0.5);
\coordinate (T0B8) at (1.5,0.5);
\coordinate (T0B9) at (2.5,0.5);
\DrawFrame{white}{2}
\foreach \x in {0,2}
\foreach \y in {0,2}
\draw[fill=gray!40,fill opacity=0.6] (\x,\y) +(0,0) rectangle ++(1,1);
\draw[fill=gray!40,fill opacity=0.6] (1,1) +(0,0) rectangle ++(1,1);
\begin{scope}[yshift=2cm, xshift=0,scale=0.5]
\foreach \x in {0,1}
\foreach \y in {0,1}
\draw (\x,\y) +(0,0) rectangle ++(1,1);
\begin{scope}[ yshift=1cm, xshift=1cm,scale=0.5]
\foreach \x in {0,1}
\foreach \y in {0,1}
\draw (\x,\y) +(0,0) rectangle ++(1,1);
\end{scope}
\end{scope}
\node[font=\footnotesize, text width=3cm, text centered] () at (1.5,-0.6) {Current frame ($C$)};
\node[scale=0.6, text width=2cm, text centered] (CTULabel) at (2.5,0.5) {CTU};
\end{scope}
% Frame t-1
\begin{scope}[ yshift=1*\TikZyfshift, xshift=1*\xfshift, yslant=\TikZyslant,xscale=\TikZxscale]
\coordinate (TM1B1) at (0.5,2.5);
\coordinate (TM1B3) at (2.5-0.3,2.5);
\coordinate (TM1B5) at (1.5,1.5);
% Draw Motion vectors
\draw[refmv] (T0B1) to (TM1B1);
\draw[refmv_line,shorten >=28] (T0B1) to (TM1B1);
\draw[refmv] (T0B3) to (TM1B3);
\draw[refmv_line,shorten >=15] (T0B3) to (TM1B3);
\draw[refmv] (T0B5) to (TM1B5);
\draw[refmv_line,shorten >=25] (T0B5) to (TM1B5);
\DrawFrame{gray!40}{2}
\node[font=\footnotesize, text width=3cm, text centered] () at (1.5,-0.6) {Ref. frame 1 ($r_1$)};
\end{scope}
% Frame t-2
\begin{scope}[ yshift=0*\TikZyfshift, xshift=0*\xfshift, yslant=\TikZyslant,xscale=\TikZxscale]
\coordinate (TM2B4) at (0.5-0.2,1.5+0.2);
\coordinate (TM2B6) at (2.5-0.1,1.5-0.1);
\coordinate (TM2B8) at (1.5-0.3,0.5+0.3);
\coordinate (TM2) at (1.5,1.5);
\draw[refmv] (T0B4) to (TM2B4);
\draw[refmv_line,shorten >=40,shorten <=79] (T0B4) to (TM2B4);
\draw[refmv_line,shorten >=117] (T0B4) to (TM2B4);
\draw[refmv] (T0B8) to (TM2B8);
\draw[refmv_line,shorten >=27,shorten <=80] (T0B8) to (TM2B8);
\draw[refmv_line,shorten >=105] (T0B8) to (TM2B8);
\DrawFrame{white}{2}
\node[font=\footnotesize, text width=3cm, text centered] () at (1.5,-0.6) {Ref. frame 2 ($r_2$)};
\end{scope}
\end{scope}
\end{tikzpicture}