Skip to content

apa_exec function introducing delay in some of the JBM cases

We are trying to debug issues inside apa_exec function which was introducing delay in some of the JBM cases. It was found that it has two sub-functions extend_frm and shrink_frm which are calculating two parameters good_frame_count and bad_frame_count inside apa_state_t structure. These parameters get computed from one quality parameter which gets calculated inside find_synch function which is a common sub-function to both extend_frm and shrink_frm function.

Due to minimal precision loss in the input apa_exec (input) buffer, the quality parameter is suffering deviation. Some accumulation happens inside the sub-functions of find_synch function to calculate the quality parameter and that in turn is leading to deviation of code flow with respect to floating code. As a result of these, some delay is introduced in output stream.

There are 2 parameters which are getting computed inside find_synch function: quality and synch_pos.

Can we get some suggestions on handling these deviations?