Game Development Reference
In-Depth Information
Firstly, locate the position of current coding picture in the RCS set.
rcs _ index
= (
COI
1
)
% GOP _ size
(9.10)
where rcs _ index represents the actual position of in the RCS from configuration files.
And COI denotes the actual coding order of current picture and GOP _ size denotes
the size of each coding group of picture. And the reference list will not be set up if
the COI equals 0, namely the type of current picture is intra prediction.
Secondly, configure the QP for current coding picture. The QP of current coding
picture is configured according to the QP offset in the RCS as below.
QP
=
QP I +
QPOffset
(9.11)
where the QPOffset is derived from the RCS of current picture.
Thirdly, set up the reference list. The total number of reference pictures and delta
COI of reference pictures are derived from the RCS of current picture. The COI and
POI of reference pictures are derived as below.
COI _ ref
[
i
]=
COI
delta _ coi _ ref
[
i
]
(9.12)
where COI _ ref denotes the actual coding order of reference pictures and
delta _ coi _ ref is derived from the RCS of current picture. The COI that equals
COI _ ref in the buffer is selected as reference picture and the reference picture is
considered as nonexist when the COI _ ref is lower than 0 or the POI of reference
picture is smaller than the playing order of random access point (RAP), and then set
the COI and POI of RAP as the COI and POI of reference picture.
Fourthly, remove the pictures that will not be referenced from buffer. The total
number of useless pictures and delta COI of useless picture list is set in the RCS of
current picture.
COI _ useless
[
i
]=
COI
delta _ coi _ useless
[
i
]
(9.13)
where COI _ useless represents the actual COI of reference picture and
delta _ coi _ useless denotes the delta COI of current picture. The picture will be
removed from buffer if the COI of current picture equals COI _ uselss and the COI
of corresponding position in buffer is set to be
1, indicating that position in buffer
is empty and can be set for other reference pictures.
9.1.2.3 Decoding Process
There are six processes to set up reference pictures list and manage reference pictures
as follows:
Search WWH ::




Custom Search