INSTRUCTIONS
Px stands for paragraph number
GENERAL CORRECTIONS
Fix the reference of equation "in Equation (5.2)" -> "in (5.2)"
ACKNOWLEDGMENTS:
Replace Dr. with Prof. where appropriate.
Add reference to Loughborough University London.
ABSTRACT:
Remove abbreviations.
Add MPEG-DASH, MOS, HM to the list.
Replaced LTE with LTE-A.
LIST OF ABBREVIATIONS:
Remove trailing dot and add page where it is defined in the text.
CHAPTER 1
Section 1.1
P1: internet -> Internet, added mention to 360-degree video and Facebook.
P2: Remove sentence that was lacking reference: "However, it is known that higher coding efficiency leads to lower robustness in the presence of transmission errors and data loss." Subsequent sentence expresses the same idea as it includes reference already.
P2: Add an objective score to the "poor error resilience".
Section 1.2
P1: Capitalise the first letter of each objective.
P1: Fix "error robust" spelling error.
Section 1.3
P2: Replace "with" by "to" and efficiently with efficient.
P7: Replace "material" with "materials".
CHAPTER 2
Section 2.1
P1: Replace "in" with "on".
Section 2.2
P1: Fix three spelling errors.
P3: Replace "between" with "among" and add missing "a".
P4: Add missing "a".
Figure 2.1: Add description of T and Q.
Section 2.3
P1: Replace "complaint" with "conforming".
P2: Add missing either.
Figure 2.2: Change figure to avoid confusing in arrow direction.
Section 2.4
P1: Fix typo in "pictures types".
Section 2.4.2
P1: Remove last part of the second sentence.
P2: Replace “with” by “to”.
Section 2.4.4
P1: Add missing “that”.
P7: Fix two spelling errors.
Section 2.5
P2: Add missing pixels.
Figure 2.8: Correct the coding order
Section 2.6
P1: Fix three typos.
Section 2.6.1
P1: Fix third sentence to: “When the intra prediction mode is chosen for a CU, the size of the PU needs to be the same as the CU, except when the smallest CU size is selected and further division into four PUs is allowed.”
P7: Fix “three-tap”.
P8 (page 24): The last sentence of the paragraph was revised to: “Only the mentioned boundaries are filtered, as they are the ones most likely to introduce discontinuities.”
Section 2.6.2
P1: Replace “rely” with “relies”.
P2: Replace twice “in” to “of”.
P2: Replace “different” with “difference”.
P3: Fix two typos.
P4: Add HM acronym definition.
P6: Replace “not” with “no”.
Table 2.2: Remove acronym in the title.
Figure 2.11: Review figure and caption to become self-contained.
Section 2.7
P1: remove comma after Similarly.
P3: Replace “intra coded” with “intra-coded”.
P4: Replace last sentence with “This procedure is the main cause for the coding distortion, as it performs a many-to-one mapping, which cannot be reversed.”
Section 2.9
P1: Revise the third sentence to: “Such grid-based restriction reduces the computational complexity and facilitates the parallel-processing, which is one of the main goals of HEVC design.”
P2: Revise the third sentence: “For each CTU, the encoder decides whether to apply the SAO filter or not, and if used, one of the two filter types is applied, namely the band offset or the edge offset.”
@@ -17,7 +16,7 @@ This chapter presents an overview of the \ac{hevc}~\cite{H265StandardFeb2018} st
In short, the \ac{hevc} standard essentially aims to support all existing applications of \ac{h264}~\cite{H264AVCStandard2003}, while extending two keys aspects: increased video resolution with higher compression ratio and also more efficient use of parallel processing architectures.
In order to increase the coding flexibility and higher video resolutions, the \ac{hevc} standard adopts a new block partition structure, as well as, new prediction modes.
In this chapter the new data structures and coding techniques, specifically introduced to increase the coding efficiency, are described.
Particular emphasis is given to those which may have a significant impact in the error robustness characteristics of \ac{hevc} streams.
Particular emphasis is given to those which may have a significant impact on the error robustness characteristics of \ac{hevc} streams.
The chapter is organised as follows.
Section~\ref{Section2:GeneraVideoSystem} introduces the functional blocks of a generic hybrid video coding system and Section~\ref{Section2:Overview} provides an overview of the \ac{hevc} standard.
@@ -34,9 +33,9 @@ Section~\ref{Section2:Summary} concludes the chapter.
\label{Section2:GeneraVideoSystem}
A digital video signal is a temporal succession of images, also referred to as pictures or frames, which usually presents a significant amount of temporal and spatial correlations.
In general, video coding and distribution systems follow through a generic chain of processing and delivery stage, comprising pre-processing, encoding, storage or transmission, decoding and post-processing, as shown in Figure~\ref{Figure2:HybridCodec}.
The pre-processing stage is used adapt the raw video signal, either analogue or digital, to an appropriate format, such as RGB or YUV~\cite{DataCompression1997}.
Then, the video data is compressed by the respective encoding module, mostly reducing its redundancy and visual irrelevancy. The encoding process is responsible for representing the raw video in a highly compressed format, while maintaining a good trade-off between video quality and bitrate through high efficient algorithms and coding tools.
In general, video coding and distribution systems follow through a generic chain of processing and delivery stages, comprising pre-processing, encoding, storage or transmission, decoding and post-processing, as shown in Figure~\ref{Figure2:HybridCodec}.
The pre-processing stage is used to adapt the raw video signal, either analogue or digital, to an appropriate format, such as RGB or YUV~\cite{DataCompression1997}.
Then, the video data is compressed by the respective encoding modules, mostly reducing its redundancy and visual irrelevancy. The encoding process is responsible for representing the raw video in a highly compressed format, while maintaining a good trade-off between video quality and bitrate through high efficient algorithms and coding tools.
In the last stages of the chain, the compressed format is decoded and presented by displaying the signal content after adaptation to the consumer equipment through post-processing, when necessary.
% \begin{figure}[tb]
@@ -56,7 +55,7 @@ This is the reason why the coding scheme is called hybrid, as it combines quiet
\caption{Block diagram of a generic video coding system, including the inner blocks of a hybrid encoding and decoding scheme.}
\caption{Block diagram of a generic video coding system, including the inner blocks of a hybrid encoding and decoding scheme (T and Q corresponds to the transform and quatisation operations, respectively).}
\label{Figure2:HybridCodec}
\end{figure}
@@ -65,14 +64,14 @@ This is the reason why the coding scheme is called hybrid, as it combines quiet
In general, there are two kinds of redundancy in video signal: spatial and temporal.
On the one hand, the spatial redundancy is exploited through intra frame prediction, where the underlying mechanism is to find the best matching block for the current one, by searching the neighbouring region.
This is possible due to the existence of high correlation among neighbouring pixels within a frame.
As result, when intra frame prediction is used, a block of pixels is reconstructed from the neighbouring blocks previously processed.
As a result, when intra frame prediction is used, a block of pixels is reconstructed from the neighbouring blocks previously processed.
On the other hand, inter frame prediction is designed to exploit the temporal redundancy that exists among consecutive frames, such as those temporally adjacent, e.g., the past frame or the future frame in regard to the current one.
Temporal redundancy is normally referred to as the correlation between two adjacent frames since they usually have quiet similar visual content, such as foreground objects and background.
Thus, the purpose of inter-frame prediction is to search for the best matching block for the current one in a set of reference frames.
After finding the best matching candidate for the current block, either by intra- or inter-frame prediction, only the difference between the original block and the predicted one needs to be encoded.
As shown in Figure~\ref{Figure2:HybridCodec}, these differences (also known as residual signal) are further processed and transformed (T) into coefficients in the frequency domain.
Such a transformation decorrelates the residue signal and concentrates the signal energy in few coefficients, mostly at low frequencies.
Such a transformation decorrelates the residue signal and concentrates the signal energy in a few coefficients, mostly at low frequencies.
Subsequently, the transformed coefficients are quantised (Q) to reduce the representation accuracy of the signal, and consequently to reduce the number of bits required for coding.
Finally, the quantised transform coefficients together with the prediction information are further compressed by the entropy encoder, forming an output stream suitable for transmission or storage, as shown in Figure~\ref{Figure2:HybridCodec}.
On the other side of the communication chain, the decoding stage performs the inverse operations on the stream to reconstruct the video signal.
@@ -85,14 +84,6 @@ In the next section, the aforementioned blocks are described in the context of t
\section{Overview the standard features}
\label{Section2:Overview}
\glsreset{ctu}
\glsreset{cu}
\glsreset{pu}
\glsreset{tu}
\glsreset{nal}
%\glsreset{nalu}
\glsreset{cabac}
\glsreset{rpset}
Similar to the previous coding standards developed by \ac{jctvc}, in \ac{hevc}~\cite{HEVCOverviewJul2012,HEVCOverviewDez2012,BookHEVC2014} only the
coding syntax and semantics are standardised.
@@ -113,9 +104,9 @@ Subsequently, the prediction residue is transformed by linear spatial transform
However, there are some novelties introduced in the \ac{hevc} standard. As depicted in Figure~\ref{fig:HEVCBlockDiagram}, the encoding process follows a block-based approach, therefore each picture is partitioned into larger blocks, referred to as \acs{ctu}, with a maximum size of $64\times64$ pixels.
Subsequently, a dynamic quad-tree partitioning is used to divide the picture into \acs{cu}.
These units are introduced as the basic processing units for prediction, while for the transform and quantisation operations, \acs{tu} are used.
These units are introduced as the basic processing units for prediction, while for the transform and quantisation operations, transform units are used.
In order to generate the prediction residue, the \ac{hevc} may either use one of 34 intra-prediction modes or take advantage of symmetric and asymmetric partitions for motion estimation and inter-prediction.
The motion estimation is performed in the pictures listed in the \ac{rpset}, which was introduced in the \ac{hevc} to increase the robustness to errors and data loss of reference picture management.
The motion estimation is performed in the pictures listed in the reference picture set, which was introduced in the \ac{hevc} to increase the robustness to errors and data loss of reference picture management.
To improve the overall quality of the reconstructed pictures and smooth the coding artefacts, \ac{hevc} not only uses a deblocking filter but also a \ac{sao} filter. Finally, the control data, quantised coefficients, prediction modes, motion vectors and filter information are compressed using the \ac{cabac}. The compressed bitstream is then allocated to various \ac{nal} units.
@@ -126,17 +117,13 @@ To improve the overall quality of the reconstructed pictures and smooth the codi
\section{High-level syntax}
\label{Section2:HighLevel}
\glsreset{nal}
\glsreset{sei}
\glsreset{vcl}
This section describes the high-level components of the \ac{hevc} standard that provide support for signalling and stream partitioning, which are relevant elements in the context of robust video communications.
\ac{hevc} inherits several high-level features from \ac{h264}, e.g., the \ac{nal}, parameter sets, the use of \ac{poc} and \ac{sei} messages for auxiliary data.
However, some high-level features defined in \ac{h264} were not included, such as \ac{fmo}, redundant slices, arbitrary slice order, data partitioning and switching slices.
Futhermore, several new high-level features are introduced, such as the \ac{vps}, tiles and wavefront tools for parallel processing, dependent slices, for reduced delay, and a new reference picture management concept.
Moreover, new pictures types were introduced to increase the random-access flexibility and temporal sub-layer switching.
Furthermore, several new high-level features are introduced, such as the \ac{vps}, tiles and wavefront tools for parallel processing, dependent slices, for reduced delay, and a new reference picture management concept.
Moreover, new picture types were introduced to increase the random-access flexibility and temporal sub-layer switching.
\subsection{Network Abstraction Layer}
\subsection{Network abstraction layer}
Similar to \ac{h264}~\cite{H264AVCStandard2003}, the \ac{hevc} standard defines an adaptation layer to cope with different transport protocols.
The \ac{nal} is used for stream partitioning and synchronization, which is useful to deal with lossy network environments~\cite{H264OverIPJul2003}.
@@ -163,8 +150,6 @@ Figure~\ref{Figure2:NalHeader} shows the structure of the \ac{hevc} \ac{nal} uni
\subsection{Parameters set}
\glsreset{vps}
The encoder uses a set of signalling packets as a robust method to share data with the decoder, referred to as parameter set units. This information was introduced in previous standards to deal with vulnerabilities in the transport of signalling information between the encoder and decoder.
In this approach, such set of parameters is multiplexed in the bitstream and repeated as many times as required by the application, e.g., streaming, storage among others. In \ac{hevc}, this structure is inherited from \ac{h264}\cite{H264OverIPJul2003} with modifications to cope with new coding tools.
The \ac{hevc} includes three sets of parameters, \ac{sps}, \ac{pps} and the newly introduced \ac{vps}\cite{HEVCHighLevelReferenceDez2012}.
@@ -172,7 +157,7 @@ The \ac{hevc} includes three sets of parameters, \ac{sps}, \ac{pps} and the newl
The new set of parameters \ac{vps} contains information related to the different layers of the video signal, avoiding duplications like in the \ac{h264} and its extensions. \Gls{vps} aims to provide signalling for every layer, guaranteeing an extendible standard, capable of supporting multiple layers.
Moreover, \ac{vps} also carries information for session negotiation (\emph{e.g.} profile, level and tier).
The \ac{sps} contains information related to the whole sequence (\emph{i.e.}, should affect all coded slices) and related with the decoder operation point, as well as flags to control optional tools and scalability.
The \ac{sps} contains information related to the whole sequence (\emph{i.e.}, should affect all coded slices) and related to the decoder operation point, as well as flags to control optional tools and scalability.
The \ac{pps} is responsible to carry information that may change for every picture, such as, initial \ac{qp}, flags for picture related tools and tilling information.
@@ -231,7 +216,7 @@ These frames must belong to temporal sub-layer 0 and should be coded using intra
One should note that there may be frames compressed with intra prediction only, but not be marked as random-access points.
It is always possible to start decoding from a \ac{rap} frame onwards, and to output any subsequent pictures in the display order, even if all pictures that precede the \ac{rap} in the decoding order are discarded from the bitstream.
The \ac{idr} frame is an intracoded picture that completely refreshes the decoding process, i.e., cleans the decoder picture buffer preventing predictions to previously coded frames, starting a new conforming video stream. This means that neither the \ac{idr} nor any other subsequent frame in the decoding order have prior dependencies. \ac{idr} frames are allowed to have leading pictures, i.e., frames that follow the \ac{rap} picture in the decoding order but precede it in the display order. However, they must be decodable, thus creating a true random-access point where all subsequent frames in the decoding order can be decoded and displayed.
The \ac{idr} frame is an intra-coded picture that completely refreshes the decoding process, i.e., cleans the decoder picture buffer preventing predictions to previously coded frames, starting a new conforming video stream. This means that neither the \ac{idr} nor any other subsequent frame in the decoding order have prior dependencies. \ac{idr} frames are allowed to have leading pictures, i.e., frames that follow the \ac{rap} picture in the decoding order but precede it in the display order. However, they must be decodable, thus creating a true random-access point where all subsequent frames in the decoding order can be decoded and displayed.
Introducing \ac{rap} reduces the coding efficiency since no prior reference frames can be used.
In order to reduce this impact, the \ac{hevc} standard introduces a new \ac{rap} picture, referred to as \ac{cra} picture.
@@ -261,7 +246,7 @@ Due to the introduction of more flexible random-access points using \ac{cra} pic
\caption{Leading and trailing pictures associated with a random-access point.}
\caption{Leading and trailing pictures associated with the random-access point$I_{1}$ (letters corresponds to the coding type and the numbers to the coding order).}
\label{Figure2:LeadingTralingPics}
\end{figure}
@@ -284,7 +269,7 @@ Although these frames allow higher flexibility in terms of layer switching, they
\caption{Temporal layers access pictures example with three layers ($T_0$ to $T_2$).}
\label{Figure2:TSAExample}
\end{figure}
@@ -310,7 +295,7 @@ Picture partitioning normally serves one or more of the following three purposes
\item[Network adaptation:] adapt to the network constraint of \ac{mtu} size, found for example in \ac{ip} networks.
Such packetisation scheme restricts the maximum number of payload bits within a slice regardless the size of the coded frame. To keep each slice within this limit and minimise the packetisation overhead, a variable number of coding units is used for each slice.
\item[Parallel processing:] partitioning the coded frame into processing data units, which can be encoded in parallel. This is achieved by dividing the coding units such they can be encoded and decoded independently of each other’s.
\item[Parallel processing:] partitioning the coded frame into processing data units, which can be encoded in parallel. This is achieved by dividing the coding units such that they can be encoded and decoded independently of each other’s.
\end{description}
\subsubsection{Slices}
@@ -345,9 +330,7 @@ The use of tiles provide several advantages. Specifically, they improve frame pa
\subsubsection{Wavefront Parallel Processing}
\glsreset{wpp}
As mentioned before, the use of either slices or tiles to process each frame using parallel threads require the use of different entropy coding contexts for each slice/tile, in order to make them independently decodable. As consequence, the compression efficiency decreases. In order to overcome this issue, the concept of \ac{wpp} was introduced, which enables coding using efficient parallel processing~\cite{HEVCParallelCSVT2016}.
As mentioned before, the use of either slices or tiles to process each frame using parallel threads requires the use of different entropy coding contexts for each slice/tile, in order to make them independently decodable. As a consequence, the compression efficiency decreases. In order to overcome this issue, the concept of \ac{wpp} was introduced, which enables coding using efficient parallel processing~\cite{HEVCParallelCSVT2016}.
In \ac{wpp}, each slice (or tile) is divided into single rows of \acs{ctu} which can be processed in parallel, but entropy coding and prediction are enabled across \acs{ctu} of different rows, in order to avoid loss in coding efficiency.
To re-use the same context in the whole slice (or tile) each row requires a delay of two \acs{ctu} in order to ensure that all necessary dependencies have already been encoded/decoded. Figure~\ref{Figure2:WPP} illustrates an example of \ac{wpp} using at least five different threads.
@@ -356,7 +339,7 @@ Each square corresponds to a \ac{ctu} and the numbers correspond to the time ins
\begin{figure}[tb]
\centering
\input{\FigsPath/WPP.tikz}
\caption{Illustration of the wavefront parallel processing.}
\caption{Illustration of the wavefront parallel processing (numbers corresponds to the time instant each \ac{ctu} is processed).}
\label{Figure2:WPP}
\end{figure}
@@ -372,10 +355,7 @@ The \ac{mb} is considered the basic processing unit in the \ac{h264}, and the re
Each \ac{mb} could also be partitioned into sub-blocks, which should follow the same prediction mode.
\glsreset{ctu}
\glsreset{cu}
The basic data structures in \ac{hevc} are quite different from \ac{h264}. Each picture is divided into blocks named as \ac{ctu}~\cite{BlockPartHEVC2012}. The maximum \ac{ctu} size is an encoder configuration parameter that is signalled to the decoder, and should be one of the following: $64\times64$, $32\times32$ and $16\times16$. The use of data structures with larger size in \ac{hevc} was adopted to achieve higher coding efficiency especially in high resolution video. Each \ac{ctu} can be recursively partitioned into four smaller units, referred to as \acs{cu}, until it reaches the minimum unit size, which cannot be smaller than $8\times8$ pixels.
The basic data structures in \ac{hevc} are quite different from \ac{h264}. Each picture is divided into blocks named as \ac{ctu}~\cite{BlockPartHEVC2012}. The maximum \ac{ctu} size is an encoder configuration parameter that is signalled to the decoder, and should be one of the following: $64\times64$, $32\times32$ and $16\times16$ pixels. The use of data structures with larger size in \ac{hevc} was adopted to achieve higher coding efficiency especially in high resolution video. Each \ac{ctu} can be recursively partitioned into four smaller units, referred to as \acs{cu}, until it reaches the minimum unit size, which cannot be smaller than $8\times8$ pixels.
Similar to the maximum \ac{ctu} size, the minimum size is also defined at the encoder.
For instance, in case of homogeneous regions, large \acs{cu} can be used to represent such regions by using a smaller number of symbols than in the case of using several small units.
Figure~\ref{Figure2:HEVCCodingStructure} illustrates an example of a \ac{ctu} partitioning into \acs{cu}.
@@ -385,14 +365,12 @@ Data structures in \ac{hevc} provide a significant improvement in comparison wit
\begin{figure}[t]
\centering
\input{\FigsPath/BlockPartitionsWithTree.tikz}
\caption{Representation of a CTU ($64\times64$) and its partitioning into CUs and PUs (left); corresponding quad-tree with coding order (right)}
\caption{Representation of a CTU ($64\times64$) and its partitioning into CUs and PUs (left); corresponding quad-tree with coding order (right).}
\label{Figure2:HEVCCodingStructure}
\end{figure}
\glsreset{pu}
\glsreset{tu}
The \ac{cu} is the basic processing unit in \ac{hevc}. It is further partitioned into two types of units, specifically \ac{pu} and \ac{tu}, which are data blocks used for prediction and transform operations, respectively.
The \ac{cu} is the basic processing unit in \ac{hevc}.
It is further partitioned into two types of units, specifically \ac{pu} and \ac{tu}, which are data blocks used for prediction and transform operations, respectively.
The decision whether to use intra-frame or inter-frame prediction modes is taken at the \ac{cu} level. However, depending on the partitioning of the \ac{cu} into \acs{pu}, different intra or inter coding modes can be used for each \ac{pu}.
@@ -402,16 +380,16 @@ The decision whether to use intra-frame or inter-frame prediction modes is taken
\section{Prediction modes}
\label{Section2:PredictionModes}
Prediction techniques are responsible for an important role in image and video coding standards, due to their ability to reduce the signal redundancy based on the previously encoded pixels.
These techniques include the directional intra prediction, for efficiently reduce spatial redundancy, and inter-frame motion compensation to remove the temporal redundancies.
This section describes the prediction techniques used in the \ac{hevc} standard comprise different algorithms.
Prediction techniques play an important role in image and video coding standards, due to their ability to reduce the signal redundancy based on the previously encoded pixels.
These techniques include the directional intra prediction for efficiently reduce spatial redundancy, and inter-frame motion compensation to remove the temporal redundancies.
This section describes the prediction techniques used in the \ac{hevc} standard that comprises different algorithms.
\subsection{Intra-frame prediction}
Intra-frame prediction is used to efficiently reduce the spatial redundancy within video frames.
Intra predicted blocks are obtained using the previously encoded pixels around the current \ac{pu}.
When the intra prediction mode is chosen for a \ac{cu}, the size of the \ac{pu} needs to be the same as the \ac{cu}, except when the smaller\ac{cu} is selected and further divided into four \acs{pu} is done.
When the intra prediction mode is chosen for a \ac{cu}, the size of the \ac{pu} needs to be the same as the \ac{cu}, except when the smallest\ac{cu} size is selected and further division into four \acs{pu} is allowed.
For example, when the smaller \ac{cu} size is $8\times8$, the encoder may decide to divide it into four \acs{pu} of $4\times4$ pixels, each one having its own intra prediction mode. This is signalled using a binary flag.
The use of small \acs{pu} is useful for regions with many details that require fine-granularity prediction.
@@ -470,7 +448,7 @@ In \ac{hevc} sample smoothing is applied in two distinct cases to improve the ov
Firstly, the reference samples are filtered and secondly the \ac{pu} is filtered after prediction.
%In comparison with previous standard \ac{h264}, where only reference samples were filtered.
In \ac{hevc}, the reference sample smoothing is conditionally applied, based on the \ac{pu} and intra prediction mode. Similar to \ac{h264}, a threetap smoothing filter (i.e., $\left[1\ 2\ 1\right]/4$) is applied, except for \ac{pu} sizes of $4\times4$. The prediction resulting from Planar mode is also filtered when the \ac{pu} size is greater than $8\times8$, and it is not used for the DC mode.
In \ac{hevc}, the reference sample smoothing is conditionally applied, based on the \ac{pu} and intra prediction mode. Similar to \ac{h264}, a three-tap smoothing filter (i.e., $\left[1\ 2\ 1\right]/4$) is applied, except for \ac{pu} sizes of $4\times4$. The prediction resulting from Planar mode is also filtered when the \ac{pu} size is greater than $8\times8$, and it is not used for the DC mode.
The second filter in \ac{hevc} is the boundary smoothing. This filter aims at removing the discontinuities along block boundaries due to intra prediction.
This filter is only applied when the block size is smaller than $32\times32$ to the DC, and angular modes 10 and 26 (exactly the horizontal and vertical directions, respectively).
@@ -478,42 +456,39 @@ For the DC mode a two-tap filter ($\left[3\ 1\right]/4$), fed by the original pr
In the case of angular mode 10 (horizontal direction), only the predicted samples of the first column are changed by adding half of the difference between the adjacent reference sample and the top-left reference sample.
A similar filtering is done for angular mode 26 (vertical direction), but only for the first row
of predicted samples.
Only the mentioned boundaries are filtered, as they are the most likely to introduce discontinuities.
%\subsubsection{Rough Mode Decision}
%\cite{HEVCROughModeDecision}
Only the mentioned boundaries are filtered, as they are the ones most likely to introduce discontinuities.
\subsection{Inter-frame prediction}
The efficiency of video coding algorithms consistently rely on inter-frame prediction techniques to reduce temporal redundancy.
The efficiency of video coding algorithms consistently relies on inter-frame prediction techniques to reduce temporal redundancy.
The underlying idea of inter-frame prediction is to estimate the current frame from one or more previously encoded frames used as reference with block-based motion compensation. The most common technique used for motion estimation in \ac{hevc} is the block matching algorithm. In the \ac{hevc} standard an \ac{amvp} is used for efficient motion vector coding, which defines the Merge Mode and differential coding of the motion information.
\subsubsection{Motion estimation and compensation}
Motion estimation consists in searching for a block with the highest similarity with the current block to be predicted (\ac{pu} in \ac{hevc}), using block-matching algorithms over previously encoded frames, i.e. the reference frames.
Motion estimation consists of searching for a block with the highest similarity with the current block to be predicted (\ac{pu} in \ac{hevc}), using block-matching algorithms over previously encoded frames, i.e. the reference frames.
Typically, reference frames correspond to past or future temporally adjacent frames.
The frame encoding order determines which references are selected and which future frames are available.
The reference block that results in the lowest error is selected as the best block for prediction.
To identify the best matching block to be used for motion compensation, the different between the target and the reference block positions is encoded as a two-dimensional \glsfirst{mv}.
To identify the best matching block to be used for motion compensation, the difference between the target and the reference block positions is encoded as a two-dimensional \ac{mv}.
The \ac{hevc} allows for either one or two \acs{mv} to be used for each \ac{pu}. Video frames of type P are predicted from one single reference (one \ac{mv}), while frame of type B are predicted from two references (two \acs{mv}).
This results in uni-direction or bi-directional coding, respectively.
Furthermore, weighted prediction can also be used, which consists in scaling and offset operations performed on the prediction block to improve efficiency.
Furthermore, weighted prediction can also be used, which consists of scaling and offset operations performed on the prediction block to improve efficiency.
The \acs{mv} only refer to frames included in a reference frame list, where each frame is identified by an index. Therefore, to fully describe inter-frame prediction a combination of two parameters is required: \ac{mv} and reference frame index.
Since MPEG-2, motion estimation/compensation has been performed using blocks of variable size.
In \ac{h264} block sizes ranging from $4\times4$ up to $16\times$ pixels are allowed, while \ac{hevc} extends the possible block sizes up to $64\times64$ pixels, and also to asymmetric rectangular block sizes.
In \ac{h264} block sizes ranging from $4\times4$ up to $16\times16$ pixels are allowed, while \ac{hevc} extends the possible block sizes up to $64\times64$ pixels, and also to asymmetric rectangular block sizes.
By using larger prediction units less \acs{mv} are required, thus fewer bits are spent in coding motion information.
In order to increase the efficiency of motion estimation fractional \acs{mv} are used, which has been proven to improve motion compensation accuracy.
This is accomplished through interpolation to generate non-integer pixels in the reference frame, resulting in \acs{mv} up to quarter-pixel accuracy for luma samples.
For chroma samples, the \ac{mv} accuracy is determined according to the chroma sampling format, which for 4:2:0 results in eighth-pixel accuracy.
In contrast with the two-stage approach used in \ac{h264}, \ac{hevc} uses a single separable approach for the interpolation process without intermediate rounding operations. This improves the precision and simplifies the architecture of the fractional interpolation.
The partition size as well the \ac{mv} are selected using a \ac{rd} optimisation which considers both the number of bits required to code the motion information and the video distortion.
The partition size as well as the \ac{mv} are selected using a \ac{rd} optimisation which considers both the number of bits required to code the motion information and the video distortion.
The block matching-based motion estimation is one of the most computationally intensive procedures in video encoders.
In general, the optimal solution for motion estimation is provided by the full-search algorithm, which tests all the possible candidate blocks in the search area. However, although the full-search algorithm achieves the optimal performance, it requires the highest computational complexity.
Therefore, sub-optimal algorithms have been proposed over the years to reduce the motion estimation complexity and decrease encoding time~\cite{HEVCME2012,HEVCME2017,HEVCME2014}.
For example, the HM reference software implements a fast algorithm based on Test Zone Search~\cite{HEVCME2012}.
For example, the \ac{hm} software implements a fast algorithm based on Test Zone Search~\cite{HEVCME2012}.
Since motion estimation is a non-normative procedure, encoders may implement any alternative motion search algorithms.
@@ -532,12 +507,12 @@ Thus, a complete set of all frames that must be kept in the \ac{dpb} is explicit
This is different from \ac{h264} where only relative changes to the \ac{dpb} are encoded.
With the \ac{rpset} concept, no information from earlier frames in decoding order is needed to maintain the correct status of the \ac{dpb}.
Table~\ref{Table2:ReferencePictureListExample} shows the \ac{rpset} for some frames illustrated in Figure~\ref{Figure2:LeadingTralingPics}.
As expected, for the \ac{cra} frame ($I_1$) no information is sent to the decoder because there is not inter-prediction and the \ac{dpb} should be empty.
As expected, for the \ac{cra} frame ($I_1$) no information is sent to the decoder because there is no inter-prediction and the \ac{dpb} should be empty.
For the remaining frames, two types of information are encoded: frame number and a binary flag to indicate whether it is currently used. This is required because any frame not listed in a given \ac{rpset} will be discarded by the decoder and then subsequent frames cannot use them as reference.
\begin{table}[tb]
\centering
\caption{\glsfirst{rpset} example.}
\caption{Reference picture set example.}
\label{Table2:ReferencePictureListExample}
\small
\TABLESVSPACE
@@ -581,7 +556,7 @@ These partitions types are only allowed for \acs{cu} with $16\times16$ pixels or
\input{\FigsPath/PUSymetric.tikz}& (a)\\
\input{\FigsPath/PUAsymetric.tikz}& (b)\\
\end{tabular}
\caption{Partition types of an intercoded CU into PUs~\cite{HEVCBlock2012}.}
\caption{Partition types of an inter-coded CU into PUs; in (b) the size (and position between parentheses) corresponds to the smaller partition~\cite{HEVCBlock2012}.}
\label{Figure2:InterPuPartitions}
\end{figure}
@@ -596,7 +571,7 @@ This results in improved flexibility, compared with the predefined values used i
The \ac{mv} candidates allowed in the Merge Mode\cite{MotionCodingHEVC2013} are illustrated in Figure~\ref{Figure2:MVCandidates}.
The figure shows the positions of the spatial \ac{mv} candidates ($A_0$, $A_1$, $B_0$, $B_1$, $B_2$).
Moreover, it also uses a temporal \ac{mv} candidate, derived from the co-located position on the temporally adjacent frame, at positions $T_0$ or $T_1$. From the \ac{mv} candidate list the unavailable candidates are not considered, and duplicated candidates (i.e. with the same motion information) are removed.
The Merge Mode uses a $C-1$ spatial \ac{mv} candidates, selected from the aforementioned order, and one \ac{tmvp} to fulfil the total number of \acs{mv} ($C$). The value of $C$ is defined at the slice header and a flag controlling the use of \ac{tmvp} is encoded at the \ac{pps}-level.
The Merge Mode uses a $C-1$ spatial \ac{mv} candidates, selected from the aforementioned order, and one \ac{tmvp} to fulfil the total number of$C$\acs{mv}. The value of $C$ is defined at the slice header and a flag controlling the use of \ac{tmvp} is encoded at the \ac{pps}-level.
For B-slices, additional \ac{mv} candidates are considered by choosing two existing candidates, according to a predefined order for reference picture list 0 and list 1. A total number of twelve combinations are specified in \ac{hevc}, which are listed in~\cite{HEVCOverviewDez2012}. For P-slices, if the number of candidates is less than $C$, then zero \acs{mv} are included to fill the remaining entries.
\begin{figure}[tb]
@@ -617,7 +592,7 @@ In this case, only a skip flag is enabled and the corresponding merge index is t
The \ac{hevc} also improves the performance of \ac{mv} coding for those cases where the Merge Mode is not used.
A differential encoding approach is always used for efficiently representing the motion information.
It considers the same \ac{mv} candidates of the Merge mode, illustrated in Figure~\ref{Figure2:MVCandidates}, to derive the \ac{mv} predictors from which the difference vector is obtained.
It considers the same \ac{mv} candidates of the Merge mode, illustrated in Figure~\ref{Figure2:MVCandidates}, to derive the \ac{mv} predictors from which the differential vector is obtained.
From these \ac{mv} candidates only the first two available candidates are selected, based on the following order:
\begin{enumerate}
\item Left candidate: first available from $A_0$ and $A_1$.
@@ -627,12 +602,6 @@ From these \ac{mv} candidates only the first two available candidates are select
Therefore, the use of the temporal \ac{mv} candidate is limited to those cases where the spatial neighbours are not able to provide two valid candidates.
For \ac{mv} prediction only a much lower number of candidates is allowed, since the encoder can still send the \ac{mv} difference. Moreover, the encoder performs motion estimation for each candidate, which increases the encoding complexity for every possibility tested.
%For those cases where the reference index is not the same as the current \ac{pu} and the neighbouring one, a scaling version of the \ac{mv} is used.
%In the \ac{h264} standard, along different motion compensated coding techniques~\cite{H264OverviewJul2003}, the so-called P\_SKIP mode was introduced. In this mode, neither the quantised residual information, nor the \ac{mv} is transmitted. This mode is useful for large areas with no change or just constant motion, and it is only enabled for $16\times16$ blocks, \emph{i.e.}, the whole \ac{mb}. The \ac{mv} for the P\_SKIP mode is derived based on the surrounding neighbour MBs\cite{H264MotionVectorPrediction2003}. When no neighbours are available, or the left or top \acs{mv} are equal to zero, a zero \ac{mv} is used. Otherwise, the \ac{mv} is derived from the median value of the following three neighbours: left, above and above right, as shown in Figure~\ref{SkipMergeMode}~(a) by $MV_A$, $MV_B$ and $MV_C$, respectively. Whenever the $MV_C$ is not available, the $MV_D$ is used instead.
%
%In contrast with the \ac{h264} standard, the \ac{hevc} standard allows the usage of a temporal \ac{mv} predictor, as well as, more spatial candidates to predict the current motion vector. Despite the improvements in the flexibility and coding efficiency, the increased levels of dependencies between the \acs{mv} make the motion information more prone to errors. Especially the introduction of the temporal candidate in the set of possible \acs{mv} increases the dependencies between subsequent frames. This leads to higher quality degradation in the presence of transmission errors, when compared to \ac{h264}.
@@ -641,28 +610,24 @@ For \ac{mv} prediction only a much lower number of candidates is allowed, since
\label{Section2:TransformQuant}
\glsreset{tu}
Similarly, to the previous standards, \ac{hevc} uses a transform followed by quantisation to compress the residual signal.
Similarly to the previous standards, \ac{hevc} uses a transform followed by quantisation to compress the residual signal.
The residual block is partitioned into multiple square blocks, referred to as \acs{tu}.
\subsubsection{Core transform}
A 2D transform of the residual information is obtained by applying 1D transforms in both the horizontal and vertical directions. The core transform matrices are obtained from the \ac{dct} basis functions to define a integer matrix of $32\times32$ points. Sub-sampled versions of this matrix are used to derive the remaining transform matrix sizes down to $4\times4$.
A special case is applied for coding the residual of $4\times4$ intracoded block.
A special case is applied for coding the residual of $4\times4$ intra-coded block.
In this case an alternative integer transform based on the \ac{dst} is used.
The motivation for \ac{dst} is related to the statistics of the residual signal of these blocks, which tend to present higher residue as the distance to the boundary used for prediction (i.e, top or left boundary) increases.
Simulation studies have shown that \ac{dst} provides up to 1\% of bitrate savings for the compression of $4\times4$ intra predicted blocks, without significantly increasing the computational complexity \cite{DCTDSTComp2013}.
\subsubsection{Quantisation}
\glsreset{qp}
The \ac{hevc} follows the same principle as previous standards in terms of quantisation.
After applying the transform operation to the prediction residue, a quantisation is applied to the resulting coefficients using a uniform-reconstruction quantiser scheme based on a \ac{qp}.
The standard supports \ac{qp} values ranging from 0 to 51, where an increase of 6 in the \ac{qp} corresponds to doubling the quantisation step.
This procedure is the main responsible for the coding distortion, as it performs a many-to-one mapping, which cannot be reversed.
This procedure is the main cause for the coding distortion, as it performs a many-to-one mapping, which cannot be reversed.
@@ -671,8 +636,6 @@ This procedure is the main responsible for the coding distortion, as it performs
\section{Entropy coding}
\label{Section2:Entropy}
\glsreset{cabac}
\ac{hevc} only uses the \ac{cabac}, which is an arithmetic coding method that only uses binary symbols, considering different probability models for each symbol~\cite{H264Cabac2003}.
Entropy coding efficiency is closely linked with the context model selected. Therefore, this was carefully designed in the \ac{hevc} standard, extending the functionality previously defined for \ac{h264}.
For example, the \ac{hevc} standard exploits the depth of the partition tree or residual transform tree, in order to derive the context models for several syntax elements.
@@ -688,19 +651,17 @@ The coefficient scanning is implicitly selected and always performed in $4\times
\section{In-loop filters}
\label{Section2:Filters}
\glsreset{dbf}
\glsreset{sao}
The \ac{hevc} standard uses two filtering procedures over the reconstructed pixels before writing them into the frame buffer, namely the \ac{dbf} and the \ac{sao} filter.
The main purpose of the deblocking filter is to reduce blocking artefacts caused by the block-based coding tools.
%, operating similarly to the deblocking filter of the \ac{h264} standard.
\ac{dbf} is applied to the samples that are spatially adjacent to the \ac{pu} or \ac{tu} boundaries, considering a $8\times8$ grid.
Such grid-based restriction reduces the computational complexity and improves parallel-processing
implementation, which is one of the main goals of \ac{hevc} design.
Such grid-based restriction reduces the computational complexity and facilitates the parallel-processing, which is one of the main goals of \ac{hevc} design.
Three strength levels can be used by the \ac{dbf}, depending on the coded block characteristics.
The \ac{sao} is a non-linear filter, that is adaptively applied to all samples of the image, after the deblocking filter. In its operation, the \ac{sao} filter modifies the samples
by adding an offset value, extracted from lookup tables transmitted by the encoder. For each \ac{ctu}, the encoder decides whether to apply the \ac{sao} filter or not, and if used, one of the two available filter types is applied, namely the band offset or the edge offset. In the band offset mode, the added offset value depends on the sample amplitude, while the edge offset uses the gradient to classify and derive the offset value.
by adding an offset value, extracted from lookup tables transmitted by the encoder.
For each \ac{ctu}, the encoder decides whether to apply the \ac{sao} filter or not, and if used, one of the two filter types is applied, namely the band offset or the edge offset.
In the band offset mode, the added offset value depends on the sample amplitude, while the edge offset uses the gradient to classify and derive the offset value.
@@ -713,7 +674,7 @@ by adding an offset value, extracted from lookup tables transmitted by the encod
This chapter was devoted to describe the main features of the \ac{hevc} standard with special emphasis on the high-level features, coding structures and newly introduced prediction modes.
At the high-level, \ac{hevc} introduces new \ac{nal} types and also new pictures types.
These allow the implementation of various random-access strategies, more flexibility and higher coding efficiency than its predecessor \ac{h264}.
Another major improvement comes from the inter-frame prediction. On the one hand new high-level reference picture management was introduced, which increase the error robustness, as it explicitly defines the active reference frames and the \ac{dpb} status. On the other hand it introduces the \ac{amvp} and the Merge mode, which efficiently reduce the required bits for coding the motion information.
Another major improvement comes from the inter-frame prediction. On the one hand new high-level reference picture management was introduced, which increases the error robustness, as it explicitly defines the active reference frames and the \ac{dpb} status. On the other hand it introduces the \ac{amvp} and the Merge mode, which efficiently reduce the required bits for coding the motion information.
The newly developed coding tools and prediction modes described in this chapter have resulted in approximately 50\% of bitrate savings for the same subjective quality in comparison with the previous standard.
However, such high coding efficiency implies higher data dependencies, which are more sensible to data loss and increase the error propagation to subsequent coding structures. Therefore, evaluating the impact of transmission errors and error propagation in \ac{hevc} is of most importance to develop efficient techniques to recover from data loss and reduce the error propagation.
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.