source: 3DVCSoftware/branches/HTM-10.2-dev0/doc/software-manual.tex @ 966

Last change on this file since 966 was 872, checked in by tech, 11 years ago

Merged HTM-10.0-dev0@871. (MV-HEVC 7 HLS)

File size: 59.4 KB
Line 
1\documentclass[a4paper,11pt]{jctvcdoc}
2
3\usepackage{geometry}[2010/02/12]
4
5\usepackage{hyperref}
6\hypersetup{colorlinks=true}
7\usepackage{color,soul}
8
9\usepackage[position=bottom]{subfig}
10\captionsetup[subfloat]{position=top}
11\usepackage{multirow}
12\usepackage{dcolumn}
13\newcolumntype{.}{D{.}{.}{-1}}
14\usepackage{colortbl}
15\usepackage{makecell}
16\usepackage{longtable}
17\usepackage{array}
18\usepackage{algorithm2e}
19
20\usepackage[strings]{underscore}
21\usepackage{csquotes}
22\MakeOuterQuote{"}
23\EnableQuotes
24
25\newcommand\None{}
26\newcommand\NotSet{}
27\makeatletter
28\newcommand{\Option}[1]{\ifx\optOption\@empty\gdef\optOption{#1}\else\g@addto@macro\optOption{ \\ #1}\fi}
29\newcommand{\ShortOption}[1]{\ifx\optShortOption\@empty\gdef\optShortOption{#1}\else\g@addto@macro\optShortOption{ \\ #1}\fi}
30\newcommand{\Default}[1]{\ifx\optDefault\@empty\gdef\optDefault{#1}\else\g@addto@macro\optDefault{ \\ #1}\fi}
31\newcommand{\clearOptions}{\gdef\optOption{}\gdef\optShortOption{}\gdef\optDefault{}}
32\makeatother
33\newenvironment{OptionTable}[1]{%
34        \footnotesize
35        \def\arraystretch{1.8}
36        \clearOptions
37        \begin{longtable}{l<{\makecell[tl]{\optOption}}%
38                          >{\texttt\bgroup}l<{\makecell[tl]{\optShortOption}\egroup}%
39                          c<{\makecell[tc]{\optDefault}}%
40                          >{\def\arraystretch{1.0}}p{0.5\textwidth}<{\clearOptions}}
41        \caption{#1} \\
42        \hspace*{12em}&&\hspace*{8em}&\kill
43        \hline
44         \thead{Option} &
45         \egroup\thead{Shorthand}\bgroup &
46         \thead{Default} &
47         \thead{Description} \\
48        \hline
49        \endfirsthead
50        \caption[]{#1 (Continued)} \\
51        \hspace*{12em}&&\hspace*{8em}&\kill
52        \hline
53         \thead{Option} &
54         \egroup\thead{Shorthand}\bgroup &
55         \thead{Default} &
56         \thead{Description} \\
57        \hline
58        \endhead
59         \multicolumn{4}{r}{Continued...}\\
60         \hline
61        \endfoot
62         \hline
63        \endlastfoot
64}{%
65        \hline
66        \end{longtable}
67}
68
69\newenvironment{MacroTable}[1]{%
70        \footnotesize
71        \def\arraystretch{1.3}
72        \clearOptions
73        \begin{longtable}{lcp{0.5\textwidth}}
74         \caption{#1} \\
75        %\hspace*{12em}&&\hspace*{8em}&\kill
76         \hline
77          \thead{Option} &
78          \thead{Default} &
79          \thead{Description} \\
80         \hline
81        \endfirsthead
82         \caption[]{#1 (Continued)} \\
83         \hline
84          \thead{Option} &
85          \thead{Default} &
86          \thead{Description} \\
87         \hline
88        \endhead
89         \multicolumn{3}{r}{Continued...}\\
90         \hline
91        \endfoot
92         \hline
93        \endlastfoot
94}{%
95        \end{longtable}
96}
97
98\title{HM Software Manual}
99\author{%
100        Frank Bossen
101        \email{frank@bossentech.com}
102        \and
103        David Flynn
104        \email{dflynn@blackberry.com}
105        \and
106        Karsten S\"uhring
107        \email{Karsten.Suehring@hhi.fraunhofer.de}
108}
109
110\jctvcmeeting{}
111\jctvcdocnum{Software Manual}
112\jctvcdocstatus{Software AHG working document}
113\jctvcdocpurpose{Information}
114\jctvcdocsource{AHG chairs}
115
116\begin{document}
117\maketitle
118\begin{abstract}
119This document is a user manual describing usage of reference software
120for the HEVC project. It applies to version 13.0
121of the software.
122\end{abstract}
123
124\tableofcontents
125\listoftables
126
127\section{General Information}
128Reference software is being made available to provide a reference
129implementation of the draft HEVC standard being developed by the Joint
130Collaborative Team on Video Coding (JCT-VC) regrouping experts from
131ITU-T SG 16 and ISO/IEC SC29 WG11. One of the main goals of the
132reference software is to provide a basis upon which to conduct
133experiments in order to determine which coding tools provide desired
134coding performance. It is not meant to be a particularly efficient
135implementation of anything, and one may notice its apparent
136unsuitability for a particular use. It should not be construed to be a
137reflection of how complex a production-quality implementation of a
138future HEVC standard would be.
139
140This document aims to provide guidance on the usage of the reference
141software. It is widely suspected to be incomplete and suggestions for
142improvements are welcome. Such suggestions and general inquiries may be
143sent to the general JCT-VC email reflector on
144\url{jct-vc@lists.rwth-aachen.de} (registration required).
145
146\subsection*{Bug reporting}
147Bugs should be reported on the issue tracker set up at
148\url{http://hevc.kw.bbc.co.uk/trac/}
149
150\section{Installation and compilation}
151The software may be retrieved from one of the following SVN servers
152(mirrored):
153\begin{itemize}
154\item \url{https://hevc.hhi.fraunhofer.de/svn/svn_HEVCSoftware/}
155\item \url{svn://hevc.kw.bbc.co.uk/svn/jctvc-hm/}
156\end{itemize}
157
158Table~\ref{tab:project-files} enumerates various project files that are
159provided for development environments.
160
161\begin{table}[ht]
162\footnotesize
163\caption{Available project files}
164\label{tab:project-files}
165\centering
166\begin{tabular}{ll}
167\hline
168 \thead{Environment} &
169 \thead{Location of project file} \\
170% Environment          & Location of project file \\
171\hline
172MS Visual Studio 8   & build/HM_vc8.sln \\
173MS Visual Studio 9   & build/HM_vc9.sln \\
174Xcode                & HM.xcodeproj \\
175Linux                & build/linux/makefile \\
176\hline
177\end{tabular}
178\end{table}
179
180%%%%
181%%%%
182%%%%
183\section{Using the encoder}
184\begin{verbatim}
185TAppEncoder     [-h] [-c config.cfg] [--parameter=value]
186\end{verbatim}
187
188\begin{table}[ht]
189\footnotesize
190\centering
191\begin{tabular}{lp{0.5\textwidth}}
192\hline
193 \thead{Option} &
194 \thead{Description} \\
195\hline
196\texttt{-h} & Prints parameter usage. \\
197\texttt{-c} & Defines configuration file to use.  Multiple configuration files
198     may be used with repeated --c options. \\
199\texttt{--}\emph{parameter}\texttt{=}\emph{value}
200    & Assigns value to a given parameter as further described below.
201      Some parameters are also supported by shorthand
202      "--\em{opt}~\emph{value}".\\
203\hline
204\end{tabular}
205\end{table}
206
207Sample configuration files are provided in the cfg/ folder.
208
209\subsection{GOP structure table}
210\label{sec:gop-structure}
211Defines the cyclic GOP structure that will be used repeatedly
212throughout the sequence. The table should contain GOPSize lines,
213named Frame1, Frame2, etc. The frames are listed in decoding
214order, so Frame1 is the first frame in decoding order, Frame2 is
215the second and so on. Among other things, the table specifies all
216reference pictures kept by the decoder for each frame. This
217includes pictures that are used for reference for the current
218picture as well as pictures that will be used for reference in
219the future. The encoder will not automatically calculate what
220pictures that has to be kept for future references, they have to
221be specified. Note that some specified reference frames for
222pictures encoded in the very first GOP after an IDR frame might
223not be available. This is handled automatically by the encoder,
224so the reference pictures can be given in the GOP structure table
225as if there were infinitely many identical GOPs before the
226current one. Each line in the table contains the parameters used
227for the corresponding frame, separated by whitespace:
228
229\begin{itemize}
230\item[]\textbf{Type}: Slice type, can be either I, P or B.
231
232\item[]\textbf{POC}: Display order of the frame within a GOP, ranging
233from 1 to GOPSize.
234
235\item[]\textbf{QPOffset}: QP offset is added to the QP parameter to set
236the final QP value to use for this frame.
237
238\item[]\textbf{QPFactor}: Weight used during rate distortion
239optimization. Higher values mean lower quality and less bits. Typical
240range is between
2410.3 and 1.
242
243\item[]\textbf{tcOffsetDiv2}: In-loop deblocking filter parameter tcOffsetDiv2
244is added to the base parameter LoopFilterTcOffset_div2 to set the final tc_offset_div2
245parameter for this picture signalled in the slice segment header. The final
246value of tc_offset_div2 shall be an integer number in the range $-6..6$.
247
248\item[]\textbf{betaOffsetDiv2}: In-loop deblocking filter parameter betaOffsetDiv2
249is added to the base parameter LoopFilterBetaOffset_div2 to set the final beta_offset_div2
250parameter for this picture signalled in the slice segment header. The final
251value of beta_offset_div2 shall be an integer number in the range $-6..6$.
252
253\item[]\textbf{temporal_id}: Temporal layer of the frame. A frame cannot
254predict from a frame with a higher temporal id. If a frame with higher
255temporal IDs is listed among a frame's reference pictures, it is
256not used, but is kept for possible use in future frames.
257
258\item[]\textbf{num_ref_pics_active}: Size of reference picture lists L0
259and L1, indicating how many reference pictures in each direction that
260are used during coding.
261
262\item[]\textbf{num_ref_pics}: The number of reference pictures kept for
263this frame.  This includes pictures that are used for reference for the
264current picture as well as pictures that will be used for reference in
265the future.
266
267\item[]\textbf{reference_pictures}: A space-separated list of
268num_ref_pics integers, specifying the POC of the reference pictures
269kept, relative the POC of the current frame. The picture list shall be
270ordered, first with negative numbers from largest to smallest, followed
271by positive numbers from smallest to largest (e.g. \verb|-1 -3 -5 1 3|).
272Note that any pictures not supplied in this list will be discarded and
273therefore not available as reference pictures later.
274
275\item[]\textbf{predict}: Defines the value of the syntax element
276inter_ref_pic_set_prediction_flag. A value of 0 indicates that the
277reference picture set is encoded without inter RPS prediction and the
278subsequent parameters deltaRIdx$-1$, deltaRPS, num_ref_idcs and
279Reference_idcs are ignored and do not need to be present. A value of 1
280indicates that the reference picture set is encoded with inter
281prediction RPS using the subsequent parameters deltaRIdx$-1$, deltaRPS,
282num_ref_idcs and Reference_idcs in the line. A value of 2 indicates that
283the reference picture set is encoded with inter RPS but only the
284deltaRIdx$-1$ parameters is needed. The deltaRPS, num_ref_idcs and
285Reference_idcs values are automatically derived by the encoder based on
286the POC and refPic values of the current line and the RPS pointed to by
287the deltaRIdx$-1$ parameters.
288
289\item[]\textbf{deltaRIdx$-1$}: The difference between the index of the
290curent RPS and the predictor RPS minus 1.
291
292\item[]\textbf{deltaRPS}: The difference between the POC of the
293predictor RPS and POC the current RPS.
294
295\item[]\textbf{num_ref_idcs}: The number of ref_idcs to encode for the
296current RPS.  The value is equal to the value of  num_ref_pics of the
297predictor RPS plus 1.
298
299\item[]\textbf{reference_idcs}: A space-separated list of num_ref_idcs
300integers, specifying the ref idcs of the inter RPS prediction. The value
301of ref_idcs may be 0, 1 or 2 indicating that the reference picture is a
302reference picture used by the current picture, a reference picture used
303for future picture or not a reference picture anymore, respectively. The
304first num_ref_pics of ref_idcs correspond to the Reference pictures in
305the predictor RPS. The last ref_idcs corresponds to the predictor
306picture.
307\end{itemize}
308
309For example, consider the coding structure of Figure~\ref{fig:gop-example}.
310This coding structure is of size 4. The pictures are listed in decoding
311order. Frame1 shall therefore describe picture with $\textrm{POC}=4$. It
312references picture 0, and therefore has $-4$ as a reference picture.
313Similarly, Frame2 has a POC of 2, and since it references pictures 0 and
3144, its reference pictures are listed as \verb|-2 2|. Frame3 is a special
315case: even though it only references pictures with POC 0 and 2, it also
316needs to include the picture with POC 4, which must be kept in order to
317be used as a reference picture in the future. The reference picture list
318for Frame3 therefore becomes \verb|-1 1 3|. Frame4 has a POC of 3 and
319its list of reference pictures is \verb|-1 1|.
320
321\begin{figure}[h]
322\caption{A GOP structure}
323\label{fig:gop-example}
324\centering
325\includegraphics[width=0.7\textwidth]{gop-structure-example}
326\end{figure}
327
328Inter RPS prediction may be used for Frame2, Frame3 and Frame4, hence
329the predict parameter is set to 1 for these frames. Frame2 uses Frame1
330as the predictor hence the deltaRIdx$-1$ is 0.  Similarly for Frame3 and
331Frame4 which use Frame2 and Frame3 as predictors, respectively. The
332deltaRPS is equal to the POC of the predictor minus the POC of the
333current picture, therefore the deltaRPS for Frame2 is $4 -2 = 2$, for
334Frame3 is $2 - 1 = 1$ and for Frame4 is $1 - 3 = -2$.
335
336In Frame2, reference pictures with POC 0 and 2 are used, so the
337reference idcs for Frame2 are \verb|1 1| indicating that the reference
338picture, $-4$, in Frame1 is still a reference picture in Frame2 and
339Frame1 is also a reference picture in Frame2. The reference idcs for
340Frame3 are \verb|1 1 1|. The first and second “1”s indicating that
341the reference pictures "$-2$ $2$" in Frame2 are still reference pictures in
342Frame3 and the last “1” indicating that Frame2 is also a reference
343picture in Frame3. In Frame 4, the reference idcs are \verb|0 1 1 0|.
344The first “0” indicates that the reference pictures “-1” in Frame 3 is
345no longer a reference picture in Frame4. The next two “1”s indicate that
346the reference pictures “$1$ $3$” are now reference pictures of Frame4.
347The final “0” indicates that Frame3 is not a reference picture.
348
349In order to specify this to the encoder, the parameters in
350Table~\ref{tab:gop-example} could be used.
351
352\begin{table}[ht]
353\footnotesize
354\caption{GOP structure example}
355\label{tab:gop-example}
356\centering
357\begin{tabular}{lrrrr}
358\hline
359 \thead{} &
360 \thead{Frame1} &
361 \thead{Frame2} &
362 \thead{Frame3} &
363 \thead{Frame4} \\
364\hline
365Type                &   P  &    B   &      B   &       B \\
366POC                 &   4  &    2   &      1   &       3 \\
367QPoffset            &   1  &    2   &      3   &       3 \\
368QPfactor            & 0.5  &  0.5   &    0.5   &     0.5 \\
369tcOffsetDiv2        &   0  &    1   &      2   &       2 \\ 
370betaOffsetDiv2      &   0  &    0   &      0   &       0 \\
371temporal_id         &   0  &    1   &      2   &       2 \\
372num_ref_pics_active &   1  &    1   &      1   &       1 \\
373num_ref_pics        &   1  &    2   &      3   &       2 \\
374reference_pictures  & $-$4 & $-$2 2 & $-$1 1 3 &  $-$1 1 \\
375predict             &   0  &    1   &      1   &       1 \\
376deltaRIdx$-$1       &      &    0   &      0   &       0 \\
377deltaRPS            &      &    2   &      1   &    $-$2 \\
378num_ref_idcs        &      &    2   &      3   &       4 \\
379reference_idcs      &      &  1 1   &  1 1 1   & 0 1 1 0 \\
380\hline
381\end{tabular}
382\end{table}
383
384Here, the frames used for prediction have been given higher
385quality by assigning a lower QP offset. Also, the non-reference
386frames have been marked as belonging to a higher temporal layer,
387to make it possible to decode only every other frame. Note: each
388line should contain information for one frame, so this
389configuration would be specified as:
390
391\begin{verbatim}
392Frame1: P 4 1 0.5 0 0 0 1 1 -4 0
393Frame2: B 2 2 0.5 1 0 1 1 2 -2 2 1 0 2 2 1 1
394Frame3: B 1 3 0.5 2 0 2 1 3 -1 1 3 1 0 1 3 1 1 1
395Frame4: B 3 3 0.5 2 0 2 1 2 -1 1 1 0 -2 4 0 1 1 0
396\end{verbatim}
397
398The values of deltaRIdx$-1$, deltaRPS, num_ref_idcs and reference
399idcs of Frame$K$ can be derived from the POC value of Frame$_K$ and
400the POC, num_ref_pics and reference_pictures values of Frame$_M$, where
401$K$ is the index of the RPS to be inter coded and the $M$ is the
402index of the reference RPS, as follows.
403
404\setlength{\algomargin}{2em}
405\begin{algorithm}[h]
406\SetKwData{deltaRIdx}{deltaRIdx}
407\SetKwData{deltaRPS}{deltaRPS}
408\SetKwData{numrefidcs}{num_ref_idcs}
409\SetKwData{numrefpics}{num_ref_pics}
410\SetKwData{referencepictures}{reference_pictures}
411\SetKwData{referenceidcs}{reference_idcs}
412\SetKwData{POC}{POC}
413
414$\deltaRIdx_K - 1  \leftarrow  K - M - 1$ \;
415$\deltaRPS_K       \leftarrow  \POC_M - \POC_K$ \;
416$\numrefidcs_K     \leftarrow  \numrefpics_M + 1$ \;
417
418\For{$j \leftarrow 0$ \KwTo $\numrefpics_M$}{
419        \For{$i \leftarrow 0$ \KwTo $\numrefidcs_K$}{
420                \eIf{$\referencepictures_{M,j} + \deltaRPS_K == \referencepictures_{K,i}$}{
421                        \lIf{$\referencepictures_{K,i}$ is used by the current frame}{
422                                $\referenceidcs_{K,j} = 1$} \;
423                        \lElse{$\referenceidcs_{K,j} = 2$} \;
424                }{
425                        $\referenceidcs_K[j] = 0$ \;
426                }
427        }
428}
429
430\tcc{$\referencepictures_{M,\numrefpics_M}$ does not exist and is assumed to be 0}
431\end{algorithm}
432
433Note: The above (automatic) generation of the inter RPS parameter
434values has been integrated into the encoder, and is activated by
435the value of predict $= 2$ followed by the value of deltaRIdx$-1$,
436only, as described above.
437
438
439
440%%%%
441%%%%
442%%%%
443\newgeometry{tmargin=1.6cm,lmargin=1cm,rmargin=1cm,bmargin=1in,nohead}
444\subsection{Encoder parameters}
445
446%%
447%% File, I/O and source parameters
448%%
449\begin{OptionTable}{File, I/O and source parameters}
450\Option{InputFile} &
451\ShortOption{-i} &
452\Default{\NotSet} &
453Specifies the input video file.
454
455Video data must be in a raw 4:2:0 planar format (Y$'$CbCr).
456
457Note: When the bit depth of samples is larger than 8, each sample is encoded in
4582 bytes (little endian, LSB-justified).
459\\
460
461\Option{BitstreamFile} &
462\ShortOption{-b} &
463\Default{\NotSet} &
464Specifies the output coded bit stream file.
465\\
466
467\Option{ReconFile} &
468\ShortOption{-o} &
469\Default{\NotSet} &
470Specifies the output locally reconstructed video file.
471\\
472
473\Option{SourceWidth}%
474\Option{SourceHeight} &
475\ShortOption{-wdt}%
476\ShortOption{-hgt} &
477\Default{0}%
478\Default{0} &
479Specifies the width and height of the input video in luma samples.
480\\
481
482\Option{InputBitDepth} &
483\ShortOption{\None} &
484\Default{8} &
485Specifies the bit depth of the input video.
486\\
487
488\Option{InternalBitDepth} &
489\ShortOption{\None} &
490\Default{0 \\ (InputBitDepth)} &
491Specifies the bit depth used for coding.
492
493If the input video is a different bit depth to InternalBitDepth, it is
494automatically converted by:
495\begin{displaymath}
496\left\lfloor
497 \frac{\mathrm{Pel} * 2^{\mathrm{InternalBitDepth}}}{
498     2^{\mathrm{InputBitDepth}}}
499\right\rfloor
500\end{displaymath}
501
502Note: The effect of this option is as if the input video is externally
503converted to the InternalBitDepth and then coded with this value as
504InputBitDepth.  The codec has no notion of two different bit depths.
505\\
506
507\Option{OutputBitDepth} &
508\ShortOption{\None} &
509\Default{0 \\ (InternalBitDepth)} &
510Specifies the bit depth of the output locally reconstructed video file.
511
512Note: This option has no effect on the decoding process.
513\\
514
515\Option{InputBitDepthC}%
516\Option{InternalBitDepthC}%
517\Option{OutputBitDepthC} &
518\ShortOption{\None} &
519\Default{(InputBitDepth)}%
520\Default{(InternalBitDepth)}%
521\Default{(InternalBitDepthC)} &
522Specifies the various bit-depths for chroma components.  These only need
523to be specified if non-equal luma and chroma bit-depth processing is
524required.
525\\
526
527\Option{ConformanceMode} &
528\ShortOption{\None} &
529\Default{0} &
530Specifies the conformance mode (cropping/padding parameters) to be applied to the input
531video. The following modes are available:
532\par
533\begin{tabular}{cp{0.45\textwidth}}
5340 & No cropping / padding \\
5351 & Automatic padding to the next minimum CU size \\
5362 & Padding according to parameters HorizontalPadding and VerticalPadding \\
5373 & Cropping according to parameters ConfLeft, ConfRight, ConfTop and ConfBottom \\
538\end{tabular}
539\\
540
541\Option{HorizontalPadding}%
542\Option{VerticalPadding} &
543\ShortOption{-pdx}%
544\ShortOption{-pdy} &
545\Default{0} &
546Specifies the horizontal and vertical padding to be applied to the input
547video in luma samples.  Must be a multiple of the chroma resolution
548(e.g. a multiple of two for 4:2:0).
549\\
550
551\Option{ConfLeft}%
552\Option{ConfRight}%
553\Option{ConfTop}%
554\Option{ConfBottom} &
555\ShortOption{\None} &
556\Default{0} &
557Specifies the horizontal and vertical cropping to be applied to the
558input video in luma samples.  Must be a multiple of the chroma
559resolution (e.g. a multiple of two for 4:2:0).
560\\
561
562\Option{FrameRate} &
563\ShortOption{-fr} &
564\Default{0} &
565Specifies the frame rate of the input video.
566
567Note: This option only affects the reported bit rates.
568\\
569
570\Option{FrameSkip} &
571\ShortOption{-fs} &
572\Default{0} &
573Specifies a number of frames to skip at beginning of input video file.
574\\
575
576\Option{FramesToBeEncoded} &
577\ShortOption{-f} &
578\Default{0 \\ (all)} &
579Specifies the number of frames to be encoded.
580\\
581\end{OptionTable}
582
583%%
584%% profile, level and conformance options
585%%
586\begin{OptionTable}{Profile and level parameters}
587\Option{Profile} &
588\ShortOption{\None} &
589\Default{none} &
590Specifies the profile to which the encoded bitstream complies.
591Valid values are: none, main, main10, main-still-picture.
592
593Compatibility flags are automatically determined according to the profile.
594If --Profile=main, then main10 will always be signalled as compatible.
595If --Profile=main10, then main will be signalled as compatible if the bit-depth is 8-bit.
596
597NB: There is currently no validation that the encoder configuration complies with the profile and level constraints.
598\\
599
600\Option{Level} &
601\ShortOption{\None} &
602\Default{none} &
603Specifies the level to which the encoded bitstream complies.
604Valid values are: none, 1, 2, 2.1, 3, 3.1, 4, 4.1, 5, 5.1, 5.2, 6, 6.1, 6.2.
605
606NB: There is currently no validation that the encoder configuration complies with the profile and level constraints.
607\\
608
609\Option{Tier} &
610\ShortOption{\None} &
611\Default{main} &
612Specifies the level tier to which the encoded bitsream complies.
613Valid values are: main, high.
614
615NB: There is currently no validation that the encoder configuration complies with the profile and level constraints.
616\\
617
618\Option{ProgressiveSource} &
619\ShortOption{\None} &
620\Default{false} &
621Specifies the value of general_progressive_source_flag
622\\
623
624\Option{InterlacedSource} &
625\ShortOption{\None} &
626\Default{false} &
627Specifies the value of general_interlaced_source_flag
628\\
629
630\Option{NonPackedSource} &
631\ShortOption{\None} &
632\Default{false} &
633Specifies the value of general_non_packed_constraint_flag
634\\
635
636\Option{FrameOnly} &
637\ShortOption{\None} &
638\Default{false} &
639Specifies the value of general_frame_only_constraint_flag
640\\
641
642\end{OptionTable}
643
644
645%%
646%% Unit definition parameters
647%%
648\begin{OptionTable}{Unit definition parameters}
649\Option{MaxCUWidth} &
650\ShortOption{\None} &
651\Default{64} &
652Defines the maximum CU width.
653\\
654
655\Option{MaxCUHeight} &
656\ShortOption{\None} &
657\Default{64} &
658Defines the maximum CU height.
659\\
660
661\Option{MaxCUSize} &
662\ShortOption{\None} &
663\Default{64} &
664Defines the maximum CU size.
665\\
666
667\Option{MaxPartitionDepth} &
668\ShortOption{-h} &
669\Default{4} &
670Defines the depth of the CU tree.
671\\
672
673\Option{QuadtreeTULog2MaxSize} &
674\ShortOption{\None} &
675\Default{6 \\ ($= \mathrm{log}_2(64)$)} &
676Defines the Maximum TU size in logarithm base 2.
677\\
678
679\Option{QuadtreeTULog2MinSize} &
680\ShortOption{\None} &
681\Default{2 \\ ($= \mathrm{log}_2(4)$)} &
682Defines the Minimum TU size in logarithm base 2.
683\\
684
685\Option{QuadtreeTUMaxDepthIntra} &
686\ShortOption{\None} &
687\Default{1} &
688Defines the depth of the TU tree for intra CUs.
689\\
690
691\Option{QuadtreeTUMaxDepthInter} &
692\ShortOption{\None} &
693\Default{2} &
694Defines the depth of the TU tree for inter CUs.
695\\
696\end{OptionTable}
697
698
699%%
700%% Coding structure parameters
701%%
702\begin{OptionTable}{Coding structure parameters}
703\Option{IntraPeriod} &
704\ShortOption{-ip} &
705\Default{$-1$} &
706Specifies the intra frame period.
707A value of $-1$ implies an infinite period.
708\\
709
710\Option{DecodingRefreshType} &
711\ShortOption{-dr} &
712\Default{0} &
713Specifies the type of decoding refresh to apply at the intra frame period
714picture.
715\par
716\begin{tabular}{cp{0.45\textwidth}}
7170 & Applies an I picture (not a clean random access point). \\
7181 & Applies a non-IDR clean random access point (open GOP). \\
7192 & Applies an IDR random access point (closed GOP). \\
720\end{tabular}
721\\
722
723\Option{GOPSize} &
724\ShortOption{-g} &
725\Default{1} &
726Specifies the size of the cyclic GOP structure.
727\\
728
729\Option{Frame\emph{N}} &
730\ShortOption{\None} &
731\Default{\NotSet} &
732Multiple options that define the cyclic GOP structure that will be used
733repeatedly throughout the sequence.  The table should contain GOPSize
734elements.
735\par
736See section~\ref{sec:gop-structure} for further details.
737\\
738
739\Option{ListCombination} &
740\ShortOption{-lc} &
741\Default{true} &
742Enables or disables the use of the combined reference list for uni-prediction
743in B-slices.
744\par
745\begin{tabular}{cp{0.45\textwidth}}
746  0 & Reference list~0 and reference list~1 are identical and reference
747      list~0 is used as the combined reference list. \\
748  1 & The combined reference list is derived from reference list~0 and
749      reference list~1. \\
750\end{tabular}
751NB: LComb can only be 0 in low delay coding (more precisely, when list 0
752and list 1 are the same)
753\\
754\end{OptionTable}
755
756
757%%
758%% Motion estimation parameters
759%%
760\begin{OptionTable}{Motion estimation parameters}
761\Option{FastSearch} &
762\ShortOption{\None} &
763\Default{true} &
764Enables or disables the use of a fast motion search.
765\par
766\begin{tabular}{cp{0.45\textwidth}}
767 0 & Full search method \\
768 1 & Fast search method \\
769\end{tabular}
770\\
771
772\Option{SearchRange} &
773\ShortOption{-sr} &
774\Default{96} &
775Specifies the search range used for motion estimation.
776
777Note: the search range is defined around a predictor. Motion vectors
778derived by the motion estimation may thus have values larger than the
779search range.
780\\
781
782\Option{BipredSearchRange} &
783\ShortOption{\None} &
784\Default{4} &
785Specifies the search range used for bi-prediction refinement in motion
786estimation.
787\\
788
789\Option{HadamardME} &
790\ShortOption{\None} &
791\Default{true} &
792Enables or disables the use of the Hadamard transform in fractional-pel motion
793estimation.
794\par
795\begin{tabular}{cp{0.45\textwidth}}
796 0 & SAD for cost estimation \\
797 1 & Hadamard for cost estimation \\
798\end{tabular}
799\\
800
801\Option{ASR} &
802\ShortOption{\None} &
803\Default{false} &
804Enables or disables the use of adaptive search ranges, where the motion
805search range is dynamically adjusted according to the POC difference
806between the current and the reference pictures.
807\begin{displaymath}
808\resizebox{\hsize}{!}{$
809\mathrm{SearchRange}’ = \mathrm{Round}\left(
810                          \mathrm{SearchRange}
811                          * \mathrm{ADAPT\_SR\_SCALE}
812                          * \frac{\mathrm{abs}(
813                                 \mathrm{POCcur} - \mathrm{POCref} )}{
814                                 \mathrm{RateGOPSize}}\right)
815$}
816\end{displaymath}
817\\
818\end{OptionTable}
819
820
821%%
822%% Mode decision parameters
823%%
824\begin{OptionTable}{Mode decision parameters}
825\Option{LambdaModifier$N$} &
826\ShortOption{-LM$N$} &
827\Default{1.0} &
828Specifies a value that is multiplied with the Lagrange multiplier
829$\lambda$, for use in the rate-distortion optimised cost calculation
830when encoding temporal layer~$N$.
831\par
832$N$ may be in the range 0--7.
833\\
834
835\Option{FEN} &
836\ShortOption{\None} &
837\Default{false} &
838Enables or disables the use of fast encoder mode.  When enabled,
839the following occurs:
840\begin{itemize}
841\item In the SAD computation for blocks having size larger than 8, only
842      the lines of even rows in the block are considered.
843\item The number of iterations used in the bi-directional motion vector
844      refinement in the motion estimation process is reduced from 4 to 1.
845\end{itemize}
846\\
847
848\Option{FDM} &
849\ShortOption{\None} &
850\Default{true} &
851Enables or disables the use of fast encoder decisions for 2Nx2N merge
852mode.  When enabled, the RD cost for the merge mode of the current
853candidate is not evaluated if the merge skip mode was the best merge
854mode for one of the previous candidates.
855\\
856
857\Option{RDpenalty} &
858\ShortOption{\None} &
859\Default{0} &
860RD-penalty for 32x32 TU for intra in non-intra slices.
861Enabling this parameter can reduce the visibility of CU boundaries in the coded picture.
862\par
863\begin{tabular}{cp{0.45\textwidth}}
864 0 & No RD-penalty \\
865 1 & RD-penalty \\
866 2 & Maximum RD-penalty (no 32x32 TU)\\
867\end{tabular}
868\\
869
870\end{OptionTable}
871
872%%
873%% Quantization parameters
874%%
875\begin{OptionTable}{Quantization parameters}
876\Option{QP} &
877\ShortOption{-q} &
878\Default{30.0} &
879Specifies the base value of the quantization parameter.
880\\
881
882\Option{CbQpOffset}%
883\Option{CrQpOffset} &
884\ShortOption{-cbqpofs}%
885\ShortOption{-crqpofs} &
886\Default{0}%
887\Default{0} &
888Global offset to apply to the luma QP to derive the QP of Cb and Cr
889respectively.  These options correspond to the values of cb_qp_offset
890and cr_qp_offset, that are transmitted in the PPS.  Valid values are in
891the range $[-12, 12]$.
892\\
893
894\Option{MaxCuDQPDepth} &
895\ShortOption{\None} &
896\Default{0} &
897Defines maximum depth of a minimum CuDQP for sub-LCU-level delta QP.
898MaxCuDQPDepth shall be greater than or equal to SliceGranularity.
899\\
900
901\Option{RDOQ} &
902\ShortOption{\None} &
903\Default{true} &
904Enables or disables rate-distortion-optimized quantization.
905\\
906
907\Option{RDOQTS} &
908\ShortOption{\None} &
909\Default{true} &
910Enables or disables rate-distortion-optimized quantization for transform-skipped TUs.
911\\
912
913\Option{DeltaQpRD} &
914\ShortOption{-dqr} &
915\Default{0} &
916Specifies the maximum QP offset at slice level for multi-pass slice
917encoding.  When encoding, each slice is tested multiple times by using
918slice QP values in the range $[-\mathrm{DeltaQpRD}, \mathrm{DeptaQpRD}]$,
919and the best QP value is chosen as the slice QP.
920\\
921
922\Option{MaxDeltaQP} &
923\ShortOption{-d} &
924\Default{0} &
925Specifies the maximum QP offset at the largest coding unit level for
926the block-level adaptive QP assignment scheme. In the encoder, each
927largest coding unit is tested multiple times by using the QP values in
928the range $[-\mathrm{MaxDeltaQP}, \mathrm{MaxDeltaQP}]$, and the best QP
929value is chosen as the QP value of the largest coding unit.
930\\
931
932\Option{dQPFile} &
933\ShortOption{-m} &
934\Default{\NotSet} &
935Specifies a file containing a list of QP deltas. The $n$-th line
936(where $n$ is 0 for the first line) of this file corresponds to the QP
937value delta for the picture with POC value $n$.
938\\
939
940\Option{AdaptiveQpSelection} &
941\ShortOption{-aqps} &
942\Default{false} &
943Specifies whether QP values for non-I frames will be calculated on the
944fly based on statistics of previously coded frames.
945\\
946\Option{RecalculateQPAccordingToLambda} &
947\ShortOption{\None} &
948\Default{false} &
949Recalculate QP values according to lambda values. Do not suggest to be enabled in all intra case.
950\\
951\end{OptionTable}
952
953
954%%
955%% Slice coding parameters
956%%
957\begin{OptionTable}{Slice coding parameters}
958%\Option{SliceGranularity} &
959%\ShortOption{\None} &
960%\Default{0} &
961%Determines the depth in an LCU at which slices may begin and end.
962%\par
963%\begin{tabular}{cp{0.45\textwidth}}
964% 0   & Slice addresses are LCU aligned \\
965% $1 \leq n \leq 3$
966%     & Slice start addresses are aligned to CUs at depth $n$ \\
967%\end{tabular}
968%
969%Note: The smallest permissible alignment is 16x16 CUs.
970%Values of $n$ must satisfy this constraint, for example, with a 64x64
971%LCU, $n$ must be less than or equal to 2.
972%\\
973
974\Option{SliceMode} &
975\ShortOption{\None} &
976\Default{0} &
977Controls the slice partitioning method in conjunction with
978SliceArgument.
979\par
980\begin{tabular}{cp{0.45\textwidth}}
981 0 & Single slice \\
982 1 & Maximum number of CTUs per slice \\
983 2 & Maximum number of bytes per slice \\
984 3 & Maximum number of tiles per slice \\
985\end{tabular}
986\\
987
988\Option{SliceArgument} &
989\ShortOption{\None} &
990\Default{\NotSet} &
991Specifies the maximum number of CTUs, bytes or tiles in a slice depending on the
992SliceMode setting.
993\\
994
995\Option{SliceSegmentMode} &
996\ShortOption{\None} &
997\Default{0} &
998Enables (dependent) slice segment coding in conjunction with
999SliceSegmentArgument.
1000\par
1001\begin{tabular}{cp{0.45\textwidth}}
1002 0 & Single slice \\
1003 1 & Maximum number of CTUs per slice segment\\
1004 2 & Maximum number of bytes per slice segment\\
1005 3 & Maximum number of tiles per slice segment\\
1006\end{tabular}
1007\\
1008
1009\Option{SliceSegmentArgument} &
1010\ShortOption{\None} &
1011\Default{\NotSet} &
1012Defines the maximum number of CTUs, bytes or tiles a slice segment
1013depending on the SliceSegmentMode setting.
1014\\
1015
1016\Option{WaveFrontSynchro} &
1017\ShortOption{\None} &
1018\Default{false} &
1019Enables the use of specific CABAC probabilities synchronization at the
1020beginning of each line of CTBs in order to produce a bitstream that can
1021be encoded or decoded using one or more cores.
1022\\
1023
1024\Option{NumTileColumnsMinus1}%
1025\Option{NumTileRowsMinus1} &
1026\ShortOption{\None} &
1027\Default{0} &
1028Specifies the tile based picture partitioning geometry as
1029$\mathrm{NumTileColumnsMinus1} + 1 \times \mathrm{NumTileRowsMinus1} + 1$
1030columns and rows.
1031\\
1032
1033\Option{UniformSpacingIdc} &
1034\ShortOption{\None} &
1035\Default{0} &
1036Controls the mode used to determine per row and column tile sizes.
1037\par
1038\begin{tabular}{cp{0.45\textwidth}}
1039 0 & Each tile column width and tile row height is explicitly set
1040     by ColumnWidthArray and RowHeightArray respectively \\
1041 1 & Tile columns and tile rows are uniformly spaced. \\
1042\end{tabular}
1043\\
1044
1045\Option{ColumnWidthArray}%
1046\Option{RowHeightArray} &
1047\ShortOption{\None} &
1048\Default{\NotSet} &
1049Specifies a space or comma separated list of widths and heights,
1050respectively, of each tile column or tile row.  The first value in the
1051list corresponds to the leftmost tile column or topmost tile row.
1052\\
1053\end{OptionTable}
1054
1055
1056
1057%%
1058%% Deblocking filter parameters
1059%%
1060\begin{OptionTable}{Deblocking filter parameters}
1061\Option{LoopFilterDisable} &
1062\ShortOption{\None} &
1063\Default{false} &
1064Enables or disables the in-loop deblocking filter.
1065\\
1066
1067\Option{LFCrossSliceBoundaryFlag} &
1068\ShortOption{\None} &
1069\Default{true} &
1070Enables or disables the use of in-loop filtering across slice
1071boundaries.
1072\\
1073
1074\Option{DeblockingFilterControlPresent}&
1075\ShortOption{\None}&
1076\Default{false}&
1077Enables or disables the presence of the deblocking filter control
1078parameters in the picture parameter set and in the slice segment header.
1079When disabled, the default deblocking filter parameters are used.
1080\\
1081
1082\Option{LoopFilterOffsetInPPS}&
1083\ShortOption{\None}&
1084\Default{false}&
1085If enabled, the in-loop deblocking filter control parameters are sent in PPS.
1086Otherwise, the in-loop deblocking filter control parameters are sent in the slice segment header.
1087If deblocking filter parameters are sent in PPS, the same values of deblocking filter parameters
1088are used for all pictures in the sequence (i.e. deblocking parameter = base parameter value). 
1089If deblocking filter parameters are sent in the slice segment header, varying deblocking filter
1090parameters can be specified by setting parameters tcOffsetDiv2 and betaOffsetDiv2 in the GOP structure table.
1091In this case, the final value of the deblocking filter parameter sent for a certain GOP picture is equal to
1092(base parameter + GOP parameter for this picture). Intra-pictures use the base parameters values.
1093\\
1094
1095\Option{LoopFilterTcOffset_div2}&
1096\ShortOption{\None}&
1097\Default{0}&
1098Specifies the base value for the in-loop deblocking filter parameter tc_offset_div2. The final value of tc_offset_div2
1099shall be an integer number in the range $-6..6$.
1100\\
1101
1102\Option{LoopFilterBetaOffset_div2}&
1103\ShortOption{\None}&
1104\Default{0}&
1105Specifies the base value for the in-loop deblocking filter parameter beta_offset_div2. The final value of beta_offset_div2
1106shall be an integer number in the range $-6..6$.
1107\\
1108
1109\end{OptionTable}
1110
1111
1112
1113%%
1114%% Coding tools parameters
1115%%
1116\begin{OptionTable}{Coding tools parameters}
1117%\Option{ALF} &
1118%\ShortOption{\None} &
1119%\Default{true} &
1120%Enables or disables the adaptive loop filter.
1121%\\
1122
1123%\Option{ALFLowLatencyEncode} &
1124%\ShortOption{\None} &
1125%\Default{false} &
1126%Specifies the operating mode (low latency or high efficiency) of the
1127%adaptive loop filter.
1128%\\
1129
1130\Option{SAO} &
1131\ShortOption{\None} &
1132\Default{true} &
1133Enables or disables the sample adaptive offset (SAO) filter.
1134\\
1135
1136\Option{SAOLcuBoundary} &
1137\ShortOption{\None} &
1138\Default{false} &
1139Enables or disables SAO parameter estimation using non-deblocked pixels
1140for LCU bottom and right boundary areas.
1141\\
1142
1143%\Option{LMChroma} &
1144%\ShortOption{\None} &
1145%\Default{true} &
1146%Enables or disables the intra chroma-from-luma prediction mode.
1147%\\
1148
1149%\Option{NSQT} &
1150%\ShortOption{\None} &
1151%\Default{true} &
1152%Enables or disables the non-square quadtree transform.
1153%\\
1154
1155\Option{ConstrainedIntraPred} &
1156\ShortOption{\None} &
1157\Default{false} &
1158Enables or disables constrained intra prediction.  Constrained intra
1159prediction only permits samples from intra blocks in the same slice as the
1160current block to be used for intra prediction.
1161\\
1162
1163\Option{TransquantBypassEnableFlag} &
1164\ShortOption{\None} &
1165\Default{false} &
1166Enables or disables the ability to bypass the transform,
1167quantization and filtering stages at CU level.
1168This option corresponds to the value of
1169transquant_bypass_enable_flag that is transmitted in the PPS.
1170
1171See CUTransquantBypassFlagForce for further details.
1172\\
1173
1174\Option{CUTransquantBypassFlagForce} &
1175\ShortOption{\None} &
1176\Default{0} &
1177Controls the per CU transformation, quantization and filtering
1178mode decision.
1179This option controls the value of the per CU cu_transquant_bypass_flag.
1180\par
1181\begin{tabular}{cp{0.45\textwidth}}
1182 0 & Bypass is searched on a CU-by-CU basis and will be used if the cost is lower than not bypassing. \\
1183 1 & Bypass is forced for all CUs. \\
1184\end{tabular}
1185
1186This option has no effect if TransquantBypassEnableFlag is disabled.
1187\\
1188
1189\Option{PCMEnabledFlag} &
1190\ShortOption{\None} &
1191\Default{false} &
1192Enables or disables the use of PCM. The encoder will use cost measures on a CU-by-CU basis to determine if PCM mode is to be applied.
1193\\
1194
1195\Option{PCMLog2MaxSize} &
1196\ShortOption{\None} &
1197\Default{5 \\ ($= \mathrm{log}_2(32)$)} &
1198Specifies log2 of the maximum PCM block size. When PCM is enabled, the
1199PCM mode is available for 2Nx2N intra PUs smaller than or equal to the
1200specified maximum PCM block size
1201\\
1202
1203\Option{PCMLog2MinSize} &
1204\ShortOption{\None} &
1205\Default{3} &
1206Specifies log2 of the minimum PCM block size. When PCM is enabled, the
1207PCM mode is available for 2Nx2N intra PUs larger than or equal to the
1208specified minimum PCM block size.
1209\par
1210When larger than PCMLog2MaxSize, PCM mode is not used.
1211\\
1212
1213\Option{PCMInputBitDepthFlag} &
1214\ShortOption{\None} &
1215\Default{1} &
1216If enabled specifies that PCM sample bit-depth is set equal to
1217InputBitDepth. Otherwise, it specifies that PCM sample bit-depth is set
1218equal to InternalBitDepth.
1219\\
1220
1221\Option{PCMFilterDisableFlag} &
1222\ShortOption{\None} &
1223\Default{false} &
1224If enabled specifies that loop-filtering on reconstructed samples of PCM
1225blocks is skipped. Otherwise, it specifies that loop-filtering on
1226reconstructed samples of PCM blocks is not skipped.
1227% 0 = (loop-filtering is not skipped for PCM samples).
1228\\
1229
1230\Option{WeightedPredP} &
1231\ShortOption{-wpP} &
1232\Default{false} &
1233Enables the use of weighted prediction in P slices.
1234\\
1235
1236\Option{WeightedPredB} &
1237\ShortOption{-wpB} &
1238\Default{false} &
1239Enables the use of weighted prediction in B slices.
1240\\
1241
1242\Option{SignHideFlag} &
1243\ShortOption{-SBH} &
1244\Default{true} &
1245If enabled specifies that for each 4x4 coefficient group for which the
1246number of coefficients between the first nonzero coefficient and the
1247last nonzero coefficient along the scanning line exceeds 4, the sign bit
1248of the first nonzero coefficient will not be directly transmitted in the
1249bitstream, but may be inferred from the parity of the sum of all nonzero
1250coefficients in the current coefficient group.
1251\\
1252
1253\Option{StrongIntraSmoothing} &
1254\ShortOption{-sis} &
1255\Default{true} &
1256If enabled specifies that for 32x32 intra prediction block, the intra smoothing
1257when applied is either the 1:2:1 smoothing filter or a stronger bi-linear
1258interpolation filter.  Key reference sample values are tested and if the criteria
1259is satisfied, the stronger intra smoothing filter is applied.
1260If disabled, the intra smoothing filter when applied is the 1:2:1 smoothing filter.
1261\\
1262
1263\Option{TMVPMode} &
1264\ShortOption{\None} &
1265\Default{1} &
1266Controls the temporal motion vector prediction mode.
1267\par
1268\begin{tabular}{cp{0.45\textwidth}}
1269  0 & Disabled for all slices. \\
1270  1 & Enabled for all slices. \\
1271  2 & Disabled only for the first picture of each GOPSize. \\
1272\end{tabular}
1273\\
1274
1275\Option{TransformSkip} &
1276\ShortOption{\None} &
1277\Default{false} &
1278Enables or disables transform-skipping mode decision for 4x4 TUs
1279\footnote{Enables transform_skip_enabled and per 4x4 TU tests}.
1280\\
1281
1282\Option{TransformSkipFast} &
1283\ShortOption{\None} &
1284\Default{false} &
1285Enables or disables reduced testing of the transform-skipping mode
1286decision for chroma TUs.  When enabled, no RDO search is performed for
1287chroma TUs, instead they are transform-skipped if the four corresponding
1288luma TUs are also skipped.
1289\par
1290This option has no effect if TransformSkip is disabled.
1291\\
1292\end{OptionTable}
1293
1294%%
1295%% Rate control parameters
1296%%
1297\begin{OptionTable}{Rate control parameters}
1298
1299\Option{RateControl} &
1300\ShortOption{\None} &
1301\Default{false} &
1302Rate control: enables rate control or not.
1303\\
1304
1305\Option{TargetBitrate} &
1306\ShortOption{\None} &
1307\Default{0} &
1308Rate control: target bitrate, in bps.
1309\\
1310
1311\Option{KeepHierarchicalBit} &
1312\ShortOption{\None} &
1313\Default{0} &
1314Rate control: 0: equal bit allocation among pictures;
13151: fix ratio hierarchical bit allocation; 2: adaptive hierarchical ratio bit allocation.
1316It is suggested to enable hierarchical bit allocation for hierarchical-B coding structure.
1317\\
1318
1319\Option{LCULevelRateControl} &
1320\ShortOption{\None} &
1321\Default{true} &
1322Rate control: true: LCU level RC; false: picture level RC.
1323\\
1324
1325\Option{RCLCUSeparateModel} &
1326\ShortOption{\None} &
1327\Default{true} &
1328Rate control: use LCU level separate R-lambda model or not.
1329When LCULevelRateControl is equal to false, this parameter is meaningless.
1330\\
1331
1332\Option{InitialQP} &
1333\ShortOption{\None} &
1334\Default{0} &
1335Rate control: initial QP value for the first picture.
13360 to auto determine the initial QP value.
1337\\
1338
1339\Option{RCForceIntraQP} &
1340\ShortOption{\None} &
1341\Default{false} &
1342Rate control: force intra QP to be equal to initial QP or not.
1343\\
1344\end{OptionTable}
1345
1346%%
1347%% VUI parameters
1348%%
1349\begin{OptionTable}{VUI parameters}
1350\Option{VuiParametersPresent} &
1351\ShortOption{-vui} &
1352\Default{false} &
1353Enable generation of vui_parameters().
1354\\
1355\Option{AspectRatioInfoPresent} &
1356\ShortOption{} &
1357\Default{false} &
1358Signals whether aspect_ratio_idc is present.
1359\\
1360\Option{AspectRatioIdc} &
1361\ShortOption{} &
1362\Default{0} &
1363aspect_ratio_idc
1364\\
1365\Option{SarWidth} &
1366\ShortOption{} &
1367\Default{0} &
1368Specifies the horizontal size of the sample aspect ratio.
1369\\
1370\Option{SarHeight} &
1371\ShortOption{} &
1372\Default{0} &
1373Specifies the vertical size of the sample aspect ratio.
1374\\
1375\Option{OverscanInfoPresent} &
1376\ShortOption{} &
1377\Default{false} &
1378Signals whether overscan_info_present_flag is present.
1379\\
1380\Option{OverscanAppropriate} &
1381\ShortOption{} &
1382\Default{false} &
1383Indicates whether cropped decoded pictures are suitable for display using overscan.
1384\par
1385\begin{tabular}{cp{0.45\textwidth}}
1386  0 & Indicates that the decoded pictures should not be displayed using overscan. \\
1387  1 & Indicates that the decoded pictures may be displayed using overscan. \\
1388\end{tabular}
1389\\
1390\Option{VideoSignalTypePresent} &
1391\ShortOption{} &
1392\Default{false} &
1393Signals whether video_format, video_full_range_flag, and colour_description_present_flag are present.
1394\\
1395\Option{VideoFormat} &
1396\ShortOption{} &
1397\Default{5} &
1398Indicates representation of pictures.
1399\\
1400\Option{VideoFullRange} &
1401\ShortOption{} &
1402\Default{false} &
1403Indicates the black level and range of luma and chroma signals.
1404\par
1405\begin{tabular}{cp{0.45\textwidth}}
1406  0 & Indicates that the luma and chroma signals are to be scaled prior to display. \\
1407  1 & Indicates that the luma and chroma signals are not to be scaled prior to display. \\
1408\end{tabular}
1409\\
1410\Option{ColourDescriptionPresent} &
1411\ShortOption{} &
1412\Default{false} &
1413Signals whether colour_primaries, transfer_characteristics and matrix_coefficients are present.
1414\\
1415\Option{ColourPrimaries} &
1416\ShortOption{} &
1417\Default{2} &
1418Indicates chromaticity coordinates of the source primaries.
1419\\
1420\Option{TransferCharateristics} &
1421\ShortOption{} &
1422\Default{2} &
1423Indicates the opto-electronic transfer characteristics of the source.
1424\\
1425\Option{MatrixCoefficients} &
1426\ShortOption{} &
1427\Default{2} &
1428Describes the matrix coefficients used in deriving luma and chroma from RGB primaries.
1429\\
1430\Option{ChromaLocInfoPresent} &
1431\ShortOption{} &
1432\Default{false} &
1433Signals whether chroma_sample_loc_type_top_field and chroma_sample_loc_type_bottom_field are present.
1434\\
1435\Option{ChromaSampleLocTypeTopField} &
1436\ShortOption{} &
1437\Default{0} &
1438Specifies the location of chroma samples for top field.
1439\\
1440\Option{ChromaSampleLocTypeBottomField} &
1441\ShortOption{} &
1442\Default{0} &
1443Specifies the location of chroma samples for bottom field.
1444\\
1445\Option{NeutralChromaIndication} &
1446\ShortOption{} &
1447\Default{false} &
1448Indicates that the value of all decoded chroma samples is equal to 1<<(BitDepthCr-1).
1449\\
1450
1451\Option{DefaultDisplayWindowFlag} &
1452\ShortOption{\None} &
1453\Default{0} &
1454Indicates the presence of the Default Window parameters.
1455\par
1456\begin{tabular}{cp{0.45\textwidth}}
14570 & Disabled \\
14581 & Enabled \\
1459\end{tabular}
1460\\
1461
1462\Option{DefDispWinLeftOffset}%
1463\Option{DefDispWinRightOffset}%
1464\Option{DefDispWinTopOffset}%
1465\Option{DefDispWinBottomOffset} &
1466\ShortOption{\None} &
1467\Default{0} &
1468Specifies the horizontal and vertical offset to be applied to the
1469input video from the conformance window in luma samples.
1470Must be a multiple of the chroma resolution (e.g. a multiple of two for 4:2:0).
1471\\
1472
1473\Option{BitstreamRestriction} &
1474\ShortOption{} &
1475\Default{false} &
1476Signals whether bitstream restriction parameters are present.
1477\\
1478\Option{TilesFixedStructure} &
1479\ShortOption{} &
1480\Default{false} &
1481Indicates that each active picture parameter set has the same values of the syntax elements related to tiles.
1482\\
1483\Option{MotionVectorsOverPicBoundaries} &
1484\ShortOption{} &
1485\Default{false} &
1486Indicates that no samples outside the picture boundaries are used for inter prediction.
1487\\
1488\Option{MaxBytesPerPicDenom} &
1489\ShortOption{} &
1490\Default{2} &
1491Indicates a number of bytes not exceeded by the sum of the sizes of the VCL NAL units associated with any coded picture.
1492\\
1493\Option{MaxBitsPerMinCuDenom} &
1494\ShortOption{} &
1495\Default{1} &
1496Indicates an upper bound for the number of bits of coding_unit() data.
1497\\
1498\Option{Log2MaxMvLengthHorizontal} &
1499\ShortOption{} &
1500\Default{15} &
1501Indicate the maximum absolute value of a decoded horizontal MV component in quarter-pel luma units.
1502\\
1503\Option{Log2MaxMvLengthVertical} &
1504\ShortOption{} &
1505\Default{15} &
1506Indicate the maximum absolute value of a decoded vertical MV component in quarter-pel luma units.
1507\\
1508\end{OptionTable}
1509
1510%%
1511%% SEI messages
1512%%
1513\begin{OptionTable}{SEI messages}
1514\Option{SEIDecodedPictureHash} &
1515\ShortOption{\None} &
1516\Default{0} &
1517Enables or disables the calculation and insertion of the Decoded picture hash
1518SEI messages.
1519\par
1520\begin{tabular}{cp{0.45\textwidth}}
1521  0 & Disabled \\
1522  1 & Transmits MD5 in SEI message and writes the value to the encoder
1523      log \\
1524  2 & Transmits CRC in SEI message and writes the value to the encoder
1525      log \\
1526  3 & Transmits checksum in SEI message and writes the value to the encoder
1527      log \\
1528\end{tabular}
1529\\
1530\Option{SEIpictureDigest} &
1531\ShortOption{\None} &
1532\Default{0} &
1533Deprecated alias for SEIDecodedPictureHash.
1534Do not use anymore.
1535\\
1536\Option{SEIRecoveryPoint} &
1537\ShortOption{\None} &
1538\Default{0} &
1539Enables or disables the insertion of the Recovery point
1540SEI messages.
1541\\
1542\Option{SEIActiveParameterSets} &
1543\ShortOption{\None} &
1544\Default{0} &
1545Enables or disables the insertion of the Active parameter sets
1546SEI messages.
1547\\
1548\Option{SEIBufferingPeriod} &
1549\ShortOption{\None} &
1550\Default{0} &
1551Enables or disables the insertion of the Buffering period
1552SEI messages. This option has no effect if VuiParametersPresent is disabled.
1553SEIBufferingPeriod requires SEIActiveParameterSets to be enabled.
1554\\
1555\Option{SEIPictureTiming} &
1556\ShortOption{\None} &
1557\Default{0} &
1558Enables or disables the insertion of the Picture timing
1559SEI messages. This option has no effect if VuiParametersPresent is disabled.
1560\\
1561\Option{SEIDecodingUnitInfo} &
1562\ShortOption{\None} &
1563\Default{0} &
1564Enables or disables the insertion of the Decoding unit information
1565SEI messages. This option has no effect if VuiParametersPresent is disabled.
1566\\
1567\Option{SEIGradualDecodingRefreshInfo} &
1568\ShortOption{\None} &
1569\Default{0} &
1570Enables or disables the insertion of the Gradual decoding refresh information
1571SEI messages.
1572\\
1573\Option{SEITemporalLevel0Index} &
1574\ShortOption{\None} &
1575\Default{0} &
1576Enables or disables the insertion of the Temporal level zero index
1577SEI messages.
1578\\
1579\Option{SEIDisplayOrientation} &
1580\ShortOption{\None} &
1581\Default{0} &
1582Enables or disables the insertion of the Display orientation
1583SEI messages.
1584\par
1585\begin{tabular}{cp{0.30\textwidth}}
1586  0 & Disabled \\
1587  N: $0 < N < (2^{16} - 1)$ & Enable display orientation SEI message with
1588  \mbox{anticlockwise_rotation = N} 
1589  and \mbox{display_orientation_repetition_period = 1} \\
1590\end{tabular}
1591\\
1592\Option{SEIFramePacking} &
1593\ShortOption{\None} &
1594\Default{0} &
1595Enables or disables the insertion of the Frame packing arrangement SEI messages.
1596\\
1597\Option{SEIFramePackingType} &
1598\ShortOption{\None} &
1599\Default{0} &
1600Indicates the arrangement type in the Frame packing arrangement SEI message.
1601This option has no effect if SEIFramePacking is disabled.
1602\par
1603\begin{tabular}{cp{0.45\textwidth}}
1604  0 & Checkerboard \\
1605  1 & Line Alternate \\
1606  2 & Column Alternate \\
1607  3 & Side by Side \\
1608  4 & Top Bottom \\
1609  5 & Frame Alternate \\
1610  6 & 2D Image \\
1611  7 & Tile Format \\
1612\end{tabular}
1613\\
1614\Option{SEIFramePackingInterpretation} &
1615\ShortOption{\None} &
1616\Default{0} &
1617Indicates the constituent frames relationship in the Frame packing arrangement SEI message.
1618This option has no effect if SEIFramePacking is disabled.
1619\par
1620\begin{tabular}{cp{0.45\textwidth}}
1621  0 & Unspecified \\
1622  1 & Frame 0 is associated with the left view of a stereo pair \\
1623  2 & Frame 0 is associated with the right view of a stereo pair \\
1624\end{tabular}
1625\\
1626\Option{SEIFramePackingQuincunx} &
1627\ShortOption{\None} &
1628\Default{0} &
1629Enables or disables the quincunx_sampling signalling in the
1630Frame packing arrangement SEI messages. This option has no
1631effect if SEIFramePacking is disabled.
1632\\
1633\Option{SEIFramePackingId} &
1634\ShortOption{\None} &
1635\Default{0} &
1636Indicates the session number in the Frame packing arrangement
1637SEI messages. This option has no effect if SEIFramePacking is
1638disabled.
1639\\
1640\Option{SEIToneMappingInfo} &
1641\ShortOption{\None} &
1642\Default{0} &
1643Enables or disables the insertion of the Tone Mapping SEI message.
1644\\
1645\Option{SEIToneMapId} &
1646\ShortOption{\None} &
1647\Default{0} &
1648Specifies Id of Tone Mapping SEI message for a given session.
1649\\
1650\Option{SEIToneMapCancelFlag} &
1651\ShortOption{\None} &
1652\Default{0} &
1653Indicates that Tone Mapping SEI message cancels the persistance or follows.
1654\\
1655\Option{SEIToneMapPersistenceFlag} &
1656\ShortOption{\None} &
1657\Default{1} &
1658Specifies the persistence of the Tone Mapping SEI message.
1659\\
1660\Option{SEIToneMapCodedDataBitDepth} &
1661\ShortOption{\None} &
1662\Default{10} &
1663Specifies Coded Data BitDepth of Tone Mapping SEI messages.
1664\\
1665\Option{SEIToneMapTargetBitDepth} &
1666\ShortOption{\None} &
1667\Default{8} &
1668Specifies Output BitDepth of Tome mapping function.
1669\\
1670\Option{SEIToneMapModelId} &
1671\ShortOption{\None} &
1672\Default{0} &
1673Specifies Model utilized for mapping coded data into
1674target_bit_depth range.
1675\par
1676\begin{tabular}{cp{0.45\textwidth}}
1677  0 & linear mapping with clipping \\
1678  1 & sigmoidal mapping \\
1679  2 & user-defined table mapping \\
1680  3 & piece-wise linear mapping \\
1681  4 & luminance dynamic range mapping \\
1682\end{tabular}
1683\\
1684\Option{SEIToneMapMinValue} &
1685\ShortOption{\None} &
1686\Default{0} &
1687Specifies the minimum value in mode 0.
1688\\
1689\Option{SEIToneMapMaxValue} &
1690\ShortOption{\None} &
1691\Default{1023} &
1692Specifies the maxmum value in mode 0.
1693\\
1694\Option{SEIToneMapSigmoidMidpoint} &
1695\ShortOption{\None} &
1696\Default{512} &
1697Specifies the centre point in mode 1.
1698\\
1699\Option{SEIToneMapSigmoidWidth} &
1700\ShortOption{\None} &
1701\Default{960} &
1702Specifies the distance between 5% and 95% values of
1703the target_bit_depth in mode 1.
1704\\
1705\Option{SEIToneMapStartOfCodedInterval} &
1706\ShortOption{\None} &
1707\Default{\None} &
1708Array of user-defined mapping table.
1709Default table can be set to the following:
1710\par
1711\begin{tabular}{cp{0.45\textwidth}}
17120 12 24 36 48 60 72 84 96 108 120 132 144 156 168 180
1713192 192 196 204 208 216 220 228 232 240 248 252 260 264
1714272 276 284 292 292 296 300 304 308 312 320 324 328 332
1715336 344 348 352 356 360 368 372 376 380 384 388 396 400
1716404 408 412 420 424 428 432 436 444 444 444 448 452 456
1717460 464 468 472 476 476 480 484 488 492 496 500 504 508
1718508 512 516 520 524 528 532 536 540 540 544 548 552 556
1719560 564 568 572 572 576 580 584 588 592 596 600 604 604
1720608 612 616 620 624 628 632 636 636 640 644 648 652 656
1721660 664 668 672 672 672 676 680 680 684 688 692 692 696
1722700 704 704 708 712 716 716 720 724 724 728 732 736 736
1723740 744 748 748 752 756 760 760 764 768 768 772 776 780
1724780 784 788 792 792 796 800 804 804 808 812 812 816 820
1725824 824 828 832 836 836 840 844 848 848 852 856 860 860
1726860 864 864 868 872 872 876 880 880 884 884 888 892 892
1727896 900 900 904 908 908 912 912 916 920 920 924 928 928
1728932 936 936 940 940 944 948 948 952 956 956 960 964 964
1729968 968 972 976 976 980 984 984 988 992 992 996 996 1000
17301004 1004 1008 1012 1012 1016 1020 1024
1731\end{tabular}
1732\\
1733\Option{SEIToneMapNumPivots} &
1734\ShortOption{\None} &
1735\Default{5} &
1736Specifies the number of pivot points in mode 3.
1737\\
1738\Option{SEIToneMapCodedPivotValue} &
1739\ShortOption{\None} &
1740\Default{\None} &
1741Array of coded pivot point in mode 3.
1742Default table can be set to the following:
1743\par
1744\begin{tabular}{cp{0.45\textwidth}}
174564 128 256 512 768
1746\end{tabular}
1747\\
1748\Option{SEIToneMapTargetPivotValue} &
1749\ShortOption{\None} &
1750\Default{\None} &
1751Array of target pivot point in mode 3.
1752Default table can be set to the following:
1753\par
1754\begin{tabular}{cp{0.45\textwidth}}
175548 73 111 168 215
1756\end{tabular}
1757\\
1758\Option{SEIToneMapCameraIsoSpeedIdc} &
1759\ShortOption{\None} &
1760\Default{0} &
1761Indicates the camera ISO speed for daylight illumination.
1762\\
1763\Option{SEIToneMapCameraIsoSpeedValue} &
1764\ShortOption{\None} &
1765\Default{420} &
1766Specifies the camera ISO speed for daylight illumination of Extended_ISO.
1767\\
1768\Option{SEIToneMapExposureCompensationValueSignFlag} &
1769\ShortOption{\None} &
1770\Default{0} &
1771Specifies the sign of ExposureCompensationValue.
1772\\
1773\Option{SEIToneMapExposureCompensationValueNumerator} &
1774\ShortOption{\None} &
1775\Default{0} &
1776Specifies the numerator of ExposureCompensationValue.
1777\\
1778\Option{SEIToneMapExposureCompensationValueDenomIdc} &
1779\ShortOption{\None} &
1780\Default{2} &
1781Specifies the denominator of ExposureCompensationValue.
1782\\
1783\Option{SEIToneMapRefScreenLuminanceWhite} &
1784\ShortOption{\None} &
1785\Default{350} &
1786Specifies reference screen brightness setting in units of candela per square metre.
1787\\
1788\Option{SEIToneMapExtendedRangeWhiteLevel} &
1789\ShortOption{\None} &
1790\Default{800} &
1791Indicates the luminance dynamic range.
1792\\
1793\Option{SEIToneMapNominalBlackLevelLumaCodeValue} &
1794\ShortOption{\None} &
1795\Default{16} &
1796Specifies luma sample value of the nominal black level assigned decoded pictures.
1797\\
1798\Option{SEIToneMapNominalWhiteLevelLumaCodeValue} &
1799\ShortOption{\None} &
1800\Default{235} &
1801Specifies luma sample value of the nominal white level assigned decoded pictures.
1802\\
1803\Option{SEIToneMapExtendedWhiteLevelLumaCodeValue} &
1804\ShortOption{\None} &
1805\Default{300} &
1806Specifies luma sample value of the extended dynamic range assigned decoded pictures.
1807\\
1808\end{OptionTable}
1809
1810%%
1811%%
1812%%
1813\subsection{Hardcoded encoder parameters}
1814\begin{MacroTable}{CommonDef.h constants}
1815ADAPT_SR_SCALE &
18161 &
1817Defines a scaling factor used to derive the motion search range is
1818adaptive (see ASR configuration parameter). Default value is 1.
1819\\
1820
1821MAX_GOP &
182264 &
1823maximum size of value of hierarchical GOP.
1824\\
1825
1826MAX_NUM_REF &
18274 &
1828maximum number of multiple reference frames
1829\\
1830
1831MAX_NUM_REF_LC &
18328 &
1833maximum number of combined reference frames
1834\\
1835
1836AMVP_MAX_NUM_CANDS &
18372 &
1838maximum number of final candidates
1839\\
1840
1841AMVP_MAX_NUM_CANDS_MEM &
18423 &
1843\\
1844
1845MRG_MAX_NUM_CANDS &
18465 &
1847\\
1848
1849DYN_REF_FREE &
1850off &
1851dynamic free of reference memories
1852\\
1853
1854MAX_TLAYER &
18558 &
1856maximum number of temporal layers
1857\\
1858
1859HB_LAMBDA_FOR_LDC &
1860on &
1861use of B-style lambda for non-key pictures in low-delay mode
1862\\
1863
1864GPB_SIMPLE &
1865on &
1866Fast estimation of generalized B in low-delay mode
1867\\
1868
1869GPB_SIMPLE_UNI &
1870on &
1871Fast estimation of generalized B in low-delay mode for uni-direction
1872\\
1873
1874FASTME_SMOOTHER_MV &
1875on &
1876Fast ME using smoother MV assumption
1877\\
1878
1879ADAPT_SR_SCALE &
1880on &
1881division factor for adaptive search range
1882\\
1883
1884CLIP_TO_709_RANGE &
1885off &
1886\\
1887
1888EARLY_SKIP_THRES &
18891.5 &
1890early skip if RD < EARLY_SKIP_THRES*avg[BestSkipRD]
1891\\
1892
1893MAX_NUM_REF_PICS &
189416 &
1895\\
1896
1897MAX_CHROMA_FORMAT_IDC &
18983 &
1899\\
1900\end{MacroTable}
1901
1902\subsubsection*{TypeDef.h}
1903Numerous constants that guard individual adoptions are defined within
1904\url{source/Lib/TLibCommon/TypeDef.h}.
1905
1906%%
1907%%
1908%%
1909\clearpage
1910\section{Using the decoder}
1911\begin{verbatim}
1912TAppDecoder -b str.bin -o dec.yuv [options]
1913\end{verbatim}
1914
1915\begin{OptionTable}{Decoder options}
1916\Option{} &
1917\ShortOption{-h} &
1918\Default{\None} &
1919Prints usage information.
1920\\
1921
1922\Option{} &
1923\ShortOption{-o} &
1924\Default{\NotSet} &
1925Defines reconstructed YUV file name.
1926\\
1927
1928\Option{} &
1929\ShortOption{-s} &
1930\Default{0} &
1931Defines the number of pictures in decoding order to skip.
1932\\
1933
1934\Option{OutputBitDepth} &
1935\ShortOption{-d} &
1936\Default{0 \\ (Native)} &
1937Specifies the luma bit-depth of the reconstructed YUV file (the value 0 indicates
1938that the native bit-depth is used)
1939\\
1940
1941\Option{OutputBitDepthC} &
1942\ShortOption{\None} &
1943\Default{0 \\ (Native)} &
1944Defines the chroma bit-depth of the reconstructed YUV file (the value 0 indicates
1945that the native bit-depth is used)
1946\\
1947
1948\Option{SEIPictureDigest} &
1949\ShortOption{\None} &
1950\Default{1} &
1951Enable or disable verification of any Picture hash SEI messages. When
1952this parameter is set to 0, the feature is disabled and all messages are
1953ignored. When set to 1 (default), the feature is enabled and the decoder
1954has the following behaviour:
1955\begin{itemize}
1956\item
1957  If Picture hash SEI messages are included in the bitstream, the same type
1958  of hash is calculated for each decoded picture and written to the
1959  log together with an indication whether the calculted value matches
1960  the value in the SEI message.
1961  Decoding will continue even if there is a mismatch.
1962
1963\item
1964  After decoding is complete, if any MD5sum comparison failed, a warning
1965  is printed and the decoder exits with the status EXIT_FAILURE
1966
1967\item
1968  The per-picture MD5 log message has the following formats:
1969  [MD5:d41d8cd98f00b204e9800998ecf8427e,(OK)],
1970  [MD5:d41d8cd98f00b204e9800998ecf8427e,(unk)],
1971  [MD5:d41d8cd98f00b204e9800998ecf8427e,(***ERROR***)] [rxMD5:b9e1...]
1972  where, "(unk)" implies that no MD5 was signalled for this picture,
1973  "(OK)" implies that the decoder agrees with the signalled MD5,
1974  "(***ERROR***)" implies that the decoder disagrees with the signalled
1975  MD5. "[rxMD5:...]" is the signalled MD5 if different.
1976\end{itemize}
1977\\
1978
1979\Option{RespectDefDispWindow} &
1980\ShortOption{-w} &
1981\Default{0} &
1982Video region to be output by the decoder.
1983\par
1984\begin{tabular}{cp{0.45\textwidth}}
1985  0 & Output content inside the conformance window. \\
1986  1 & Output content inside the default window. \\
1987\end{tabular}
1988\\
1989
1990\end{OptionTable}
1991
1992
1993\end{document}
Note: See TracBrowser for help on using the repository browser.