ГОСТ Р 53556.12-2014
}
I
I
if(ambiguity_check(freq)) {
/* no ambiguityfor arithmetic decoding V
sym
=
decode(freq);
umplgUwinUsfbilbinJ
+=
sym «cur_bpfg][sfb/;
/* decode bit-plane curJbpV
if<(’is_siglgllwin]{sfbl[bin]) <&&(sym)) f
/* decode sign bit ofres ifnecessary */
if(ambiguityjcbeck(freq)) {
sym
=
decode(freq):
signfgJfwinJlsfbJfbin]
=
(sym)?
-1:1;
is^siglgjfwin]lsfbllbin]
= 1;
I
else {
/*
discard the decoded symbol prior to sign symbol
V
amp/gjlwinl/sjbj/bin]
= 0;
terminate_decoding();
}
}
/
else terminate_decoding();
}
I
I
cur_bp[g][sfb/* progress to next bit-plane +/
I
}
I
smart, decodingJow_energy(intposPrev.int resPrev)
/*
low energy mode decoding */
for(;g <num_window_groups; g++)(
for (: sfh <num_sflj+num_osf_sfb;sfb++){
if((cur_bp[gj[sfb]
>=
0
)
&<&(lazy_bplgj[sfbj
<=
0
))
/
27