|
5 | 5 | * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * |
6 | 6 | * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * |
7 | 7 | * * |
8 | | - * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2009 * |
9 | | - * by the Xiph.Org Foundation http://www.xiph.org/ * |
| 8 | + * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2009,2025 * |
| 9 | + * by the Xiph.Org Foundation https://www.xiph.org/ * |
10 | 10 | * * |
11 | 11 | ******************************************************************** |
12 | 12 |
|
13 | 13 | function: mode selection code |
14 | | - last mod: $Id$ |
15 | 14 |
|
16 | 15 | ********************************************************************/ |
17 | 16 | #include <limits.h> |
@@ -2168,14 +2167,14 @@ static void oc_cost_inter(oc_enc_ctx *_enc,oc_mode_choice *_modec, |
2168 | 2167 |
|
2169 | 2168 | static void oc_cost_inter_nomv(oc_enc_ctx *_enc,oc_mode_choice *_modec, |
2170 | 2169 | unsigned _mbi,int _mb_mode,const oc_fr_state *_fr,const oc_qii_state *_qs, |
2171 | | - const unsigned _skip_ssd[12],const unsigned _rd_scale[4]){ |
| 2170 | + const unsigned _skip_ssd[12],const unsigned _rd_scale[5]){ |
2172 | 2171 | oc_cost_inter(_enc,_modec,_mbi,_mb_mode,0,_fr,_qs,_skip_ssd,_rd_scale); |
2173 | 2172 | } |
2174 | 2173 |
|
2175 | 2174 | static int oc_cost_inter1mv(oc_enc_ctx *_enc,oc_mode_choice *_modec, |
2176 | 2175 | unsigned _mbi,int _mb_mode,oc_mv _mv, |
2177 | 2176 | const oc_fr_state *_fr,const oc_qii_state *_qs,const unsigned _skip_ssd[12], |
2178 | | - const unsigned _rd_scale[4]){ |
| 2177 | + const unsigned _rd_scale[5]){ |
2179 | 2178 | int bits0; |
2180 | 2179 | oc_cost_inter(_enc,_modec,_mbi,_mb_mode,_mv,_fr,_qs,_skip_ssd,_rd_scale); |
2181 | 2180 | bits0=OC_MV_BITS[0][OC_MV_X(_mv)+31]+OC_MV_BITS[0][OC_MV_Y(_mv)+31]; |
@@ -2645,7 +2644,7 @@ int oc_enc_analyze_inter(oc_enc_ctx *_enc,int _allow_keyframe,int _recode){ |
2645 | 2644 | fragi=mb_maps[mbi][pli][bi]; |
2646 | 2645 | /*If we switched from 4MV mode to INTER_MV mode, then the qii |
2647 | 2646 | values won't have been chosen with the right MV, but it's |
2648 | | - probaby not worth re-estimating them.*/ |
| 2647 | + probably not worth re-estimating them.*/ |
2649 | 2648 | frags[fragi].qii=modes[mb_mode].qii[mapii]; |
2650 | 2649 | frags[fragi].refi=refi; |
2651 | 2650 | frags[fragi].mb_mode=mb_mode; |
|
0 commit comments