| commit | 148eb803bbb3de3a8548445fe50c120ea872a882 | [log] [tgz] |
|---|---|---|
| author | Yunqing Wang <yunqingwang@google.com> | Thu Apr 04 09:56:02 2013 -0700 |
| committer | Yunqing Wang <yunqingwang@google.com> | Tue Apr 16 08:52:40 2013 -0700 |
| tree | 6e5fdcab8fda42c1c4fef48884cc429b6837c91d | |
| parent | b800ec1772b7d84c9c8272f4dab4661c9a696ded [diff] |
Optimize the scaling calculation In decoder, the scaling calculation, such as (mv * x_num / x_den), is fairly time-consuming. In this patch, we check if the scaling happens or not at frame level, and then decide which function to call to skip scaling calculation when no scaling is needed. Tests showed a 3% decoder performance gain. Change-Id: I270901dd0331048e50368cfd51ce273dd82b8733