| 1 | /******************************************************************** |
| 2 | * * |
| 3 | * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. * |
| 4 | * * |
| 5 | * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * |
| 6 | * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * |
| 7 | * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * |
| 8 | * * |
| 9 | * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 * |
| 10 | * BY THE Xiph.Org FOUNDATION http://www.xiph.org/ * |
| 11 | * * |
| 12 | ******************************************************************** |
| 13 | |
| 14 | function: floor backend 1 implementation |
| 15 | |
| 16 | ********************************************************************/ |
| 17 | |
| 18 | #include <stdlib.h> |
| 19 | #include <string.h> |
| 20 | #include <math.h> |
| 21 | #include "ogg.h"cxx . . $ `<file>/mednafen/tremor/ogg.h`/ |
| 22 | #include "ivorbiscodec.h"cxx . . $ `<file>/mednafen/tremor/ivorbiscodec.h`/ |
| 23 | #include "codec_internal.h"cxx . . $ `<file>/mednafen/tremor/codec_internal.h`/ |
| 24 | #include "registry.h"cxx . . $ `<file>/mednafen/tremor/registry.h`/ |
| 25 | #include "codebook.h"cxx . . $ `<file>/mednafen/tremor/codebook.h`/ |
| 26 | #include "misc.h"cxx . . $ `<file>/mednafen/tremor/misc.h`/ |
| 27 | #include "block.h"cxx . . $ `<file>/mednafen/tremor/block.h`/ |
| 28 | |
| 29 | #define floor1_rangedBcxx . . $ `mednafen/tremor/floor1.c:29:9`! 140 /* floor 1 fixed at -140dB to 0dB range */ |
| 30 | |
| 31 | typedef structcxx . . $ $anonymous_type_bb15305f466690e3_0# { |
| 32 | int forward_indexcxx . . $ $anonymous_type_bb15305f466690e3_0#forward_index.[VIF_POSITcxx . . $ `mednafen/tremor/backends.h:58:9`!+2]; |
| 33 | |
| 34 | int hineighborcxx . . $ $anonymous_type_bb15305f466690e3_0#hineighbor.[VIF_POSITcxx . . $ `mednafen/tremor/backends.h:58:9`!]; |
| 35 | int loneighborcxx . . $ $anonymous_type_bb15305f466690e3_0#loneighbor.[VIF_POSITcxx . . $ `mednafen/tremor/backends.h:58:9`!]; |
| 36 | int postscxx . . $ $anonymous_type_bb15305f466690e3_0#posts.; |
| 37 | |
| 38 | int ncxx . . $ $anonymous_type_bb15305f466690e3_0#n.; |
| 39 | int quant_qcxx . . $ $anonymous_type_bb15305f466690e3_0#quant_q.; |
| 40 | vorbis_info_floor1cxx . . $ vorbis_info_floor1# *vicxx . . $ $anonymous_type_bb15305f466690e3_0#vi.; |
| 41 | |
| 42 | } vorbis_look_floor1cxx . . $ vorbis_look_floor1#; |
| 43 | |
| 44 | /***********************************************/ |
| 45 | |
| 46 | static void floor1_free_infocxx . . $ floor1_free_info(5d22bdacc48458e8).(vorbis_info_floorcxx . . $ vorbis_info_floor# *i){ |
| 47 | vorbis_info_floor1cxx . . $ vorbis_info_floor1# *info=(vorbis_info_floor1cxx . . $ vorbis_info_floor1# *)i; |
| 48 | if(info){ |
| 49 | memsetcxx . . $ memset(d1de1e4fb215f1c6).(info,0,sizeof(*info)); |
| 50 | _ogg_freecxx . . $ `mednafen/tremor/os_types.h:25:9`!(info); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | static void floor1_free_lookcxx . . $ floor1_free_look(5d22bdacc48458e8).(vorbis_look_floorcxx . . $ vorbis_look_floor# *i){ |
| 55 | vorbis_look_floor1cxx . . $ vorbis_look_floor1# *look=(vorbis_look_floor1cxx . . $ vorbis_look_floor1# *)i; |
| 56 | if(look){ |
| 57 | memsetcxx . . $ memset(d1de1e4fb215f1c6).(look,0,sizeof(*look)); |
| 58 | _ogg_freecxx . . $ `mednafen/tremor/os_types.h:25:9`!(look); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | static int ilogcxx . . $ ilog(4c679297bf94b9eb).(unsigned int v){ |
| 63 | int ret=0; |
| 64 | while(v){ |
| 65 | ret++; |
| 66 | v>>=1; |
| 67 | } |
| 68 | return(ret); |
| 69 | } |
| 70 | |
| 71 | static int icompcxx . . $ icomp(9148c8c3ff42c9d8).(const void *a,const void *b){ |
| 72 | return(**(int **)a-**(int **)b); |
| 73 | } |
| 74 | |
| 75 | static vorbis_info_floorcxx . . $ vorbis_info_floor# *floor1_unpackcxx . . $ floor1_unpack(eeac8d4f838aca31). (vorbis_infocxx . . $ vorbis_info# *vi,oggpack_buffercxx . . $ oggpack_buffer# *opb){ |
| 76 | codec_setup_infocxx . . $ codec_setup_info# *ci=(codec_setup_infocxx . . $ codec_setup_info# *)vi->codec_setupcxx . . $ vorbis_info#codec_setup.; |
| 77 | int j,k,count=0,maxclass=-1,rangebits; |
| 78 | |
| 79 | vorbis_info_floor1cxx . . $ vorbis_info_floor1# *info=(vorbis_info_floor1cxx . . $ vorbis_info_floor1# *)_ogg_calloccxx . . $ `mednafen/tremor/os_types.h:23:9`!(1,sizeof(*info)); |
| 80 | /* read partitions */ |
| 81 | info->partitionscxx . . $ $anonymous_type_c7374eb872c22577_2#partitions.=oggpack_readcxx . . $ oggpack_read(e96bf1ebf62076a2).(opb,5); /* only 0 to 31 legal */ |
| 82 | for(j=0;j<info->partitionscxx . . $ $anonymous_type_c7374eb872c22577_2#partitions.;j++){ |
| 83 | info->partitionclasscxx . . $ $anonymous_type_c7374eb872c22577_2#partitionclass.[j]=oggpack_readcxx . . $ oggpack_read(e96bf1ebf62076a2).(opb,4); /* only 0 to 15 legal */ |
| 84 | if(info->partitionclasscxx . . $ $anonymous_type_c7374eb872c22577_2#partitionclass.[j]<0)goto err_out; |
| 85 | if(maxclass<info->partitionclasscxx . . $ $anonymous_type_c7374eb872c22577_2#partitionclass.[j])maxclass=info->partitionclasscxx . . $ $anonymous_type_c7374eb872c22577_2#partitionclass.[j]; |
| 86 | } |
| 87 | |
| 88 | /* read partition classes */ |
| 89 | for(j=0;j<maxclass+1;j++){ |
| 90 | info->class_dimcxx . . $ $anonymous_type_c7374eb872c22577_2#class_dim.[j]=oggpack_readcxx . . $ oggpack_read(e96bf1ebf62076a2).(opb,3)+1; /* 1 to 8 */ |
| 91 | info->class_subscxx . . $ $anonymous_type_c7374eb872c22577_2#class_subs.[j]=oggpack_readcxx . . $ oggpack_read(e96bf1ebf62076a2).(opb,2); /* 0,1,2,3 bits */ |
| 92 | if(info->class_subscxx . . $ $anonymous_type_c7374eb872c22577_2#class_subs.[j]<0) |
| 93 | goto err_out; |
| 94 | if(info->class_subscxx . . $ $anonymous_type_c7374eb872c22577_2#class_subs.[j])info->class_bookcxx . . $ $anonymous_type_c7374eb872c22577_2#class_book.[j]=oggpack_readcxx . . $ oggpack_read(e96bf1ebf62076a2).(opb,8); |
| 95 | if(info->class_bookcxx . . $ $anonymous_type_c7374eb872c22577_2#class_book.[j]<0 || info->class_bookcxx . . $ $anonymous_type_c7374eb872c22577_2#class_book.[j]>=ci->bookscxx . . $ codec_setup_info#books.) |
| 96 | goto err_out; |
| 97 | for(k=0;k<(1<<info->class_subscxx . . $ $anonymous_type_c7374eb872c22577_2#class_subs.[j]);k++){ |
| 98 | info->class_subbookcxx . . $ $anonymous_type_c7374eb872c22577_2#class_subbook.[j][k]=oggpack_readcxx . . $ oggpack_read(e96bf1ebf62076a2).(opb,8)-1; |
| 99 | if(info->class_subbookcxx . . $ $anonymous_type_c7374eb872c22577_2#class_subbook.[j][k]<-1 || info->class_subbookcxx . . $ $anonymous_type_c7374eb872c22577_2#class_subbook.[j][k]>=ci->bookscxx . . $ codec_setup_info#books.) |
| 100 | goto err_out; |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | /* read the post list */ |
| 105 | info->multcxx . . $ $anonymous_type_c7374eb872c22577_2#mult.=oggpack_readcxx . . $ oggpack_read(e96bf1ebf62076a2).(opb,2)+1; /* only 1,2,3,4 legal now */ |
| 106 | rangebits=oggpack_readcxx . . $ oggpack_read(e96bf1ebf62076a2).(opb,4); |
| 107 | if(rangebits<0)goto err_out; |
| 108 | |
| 109 | for(j=0,k=0;j<info->partitionscxx . . $ $anonymous_type_c7374eb872c22577_2#partitions.;j++){ |
| 110 | count+=info->class_dimcxx . . $ $anonymous_type_c7374eb872c22577_2#class_dim.[info->partitionclasscxx . . $ $anonymous_type_c7374eb872c22577_2#partitionclass.[j]]; |
| 111 | if(count>VIF_POSITcxx . . $ `mednafen/tremor/backends.h:58:9`!)goto err_out; |
| 112 | for(;k<count;k++){ |
| 113 | int t=info->postlistcxx . . $ $anonymous_type_c7374eb872c22577_2#postlist.[k+2]=oggpack_readcxx . . $ oggpack_read(e96bf1ebf62076a2).(opb,rangebits); |
| 114 | if(t<0 || t>=(1<<rangebits)) |
| 115 | goto err_out; |
| 116 | } |
| 117 | } |
| 118 | info->postlistcxx . . $ $anonymous_type_c7374eb872c22577_2#postlist.[0]=0; |
| 119 | info->postlistcxx . . $ $anonymous_type_c7374eb872c22577_2#postlist.[1]=1<<rangebits; |
| 120 | |
| 121 | /* don't allow repeated values in post list as they'd result in |
| 122 | zero-length segments */ |
| 123 | { |
| 124 | int *sortpointer[VIF_POSITcxx . . $ `mednafen/tremor/backends.h:58:9`!+2]; |
| 125 | for(j=0;j<count+2;j++)sortpointer[j]=info->postlistcxx . . $ $anonymous_type_c7374eb872c22577_2#postlist.+j; |
| 126 | qsortcxx . . $ qsort(ebb60b13a65e77d7).(sortpointer,count+2,sizeof(*sortpointer),icompcxx . . $ icomp(9148c8c3ff42c9d8).); |
| 127 | |
| 128 | for(j=1;j<count+2;j++) |
| 129 | if(*sortpointer[j-1]==*sortpointer[j])goto err_out; |
| 130 | } |
| 131 | |
| 132 | return(info); |
| 133 | |
| 134 | err_out: |
| 135 | floor1_free_infocxx . . $ floor1_free_info(5d22bdacc48458e8).(info); |
| 136 | return(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 137 | } |
| 138 | |
| 139 | static vorbis_look_floorcxx . . $ vorbis_look_floor# *floor1_lookcxx . . $ floor1_look(f9c763c507a8abc9).(vorbis_dsp_statecxx . . $ vorbis_dsp_state# *vd,vorbis_info_modecxx . . $ vorbis_info_mode# *mi, |
| 140 | vorbis_info_floorcxx . . $ vorbis_info_floor# *in){ |
| 141 | |
| 142 | int *sortpointer[VIF_POSITcxx . . $ `mednafen/tremor/backends.h:58:9`!+2]; |
| 143 | vorbis_info_floor1cxx . . $ vorbis_info_floor1# *info=(vorbis_info_floor1cxx . . $ vorbis_info_floor1# *)in; |
| 144 | vorbis_look_floor1cxx . . $ vorbis_look_floor1# *look=(vorbis_look_floor1cxx . . $ vorbis_look_floor1# *)_ogg_calloccxx . . $ `mednafen/tremor/os_types.h:23:9`!(1,sizeof(*look)); |
| 145 | int i,j,n=0; |
| 146 | |
| 147 | look->vicxx . . $ $anonymous_type_bb15305f466690e3_0#vi.=info; |
| 148 | look->ncxx . . $ $anonymous_type_bb15305f466690e3_0#n.=info->postlistcxx . . $ $anonymous_type_c7374eb872c22577_2#postlist.[1]; |
| 149 | |
| 150 | /* we drop each position value in-between already decoded values, |
| 151 | and use linear interpolation to predict each new value past the |
| 152 | edges. The positions are read in the order of the position |
| 153 | list... we precompute the bounding positions in the lookup. Of |
| 154 | course, the neighbors can change (if a position is declined), but |
| 155 | this is an initial mapping */ |
| 156 | |
| 157 | for(i=0;i<info->partitionscxx . . $ $anonymous_type_c7374eb872c22577_2#partitions.;i++)n+=info->class_dimcxx . . $ $anonymous_type_c7374eb872c22577_2#class_dim.[info->partitionclasscxx . . $ $anonymous_type_c7374eb872c22577_2#partitionclass.[i]]; |
| 158 | n+=2; |
| 159 | look->postscxx . . $ $anonymous_type_bb15305f466690e3_0#posts.=n; |
| 160 | |
| 161 | /* also store a sorted position index */ |
| 162 | for(i=0;i<n;i++)sortpointer[i]=info->postlistcxx . . $ $anonymous_type_c7374eb872c22577_2#postlist.+i; |
| 163 | qsortcxx . . $ qsort(ebb60b13a65e77d7).(sortpointer,n,sizeof(*sortpointer),icompcxx . . $ icomp(9148c8c3ff42c9d8).); |
| 164 | |
| 165 | /* points from sort order back to range number */ |
| 166 | for(i=0;i<n;i++)look->forward_indexcxx . . $ $anonymous_type_bb15305f466690e3_0#forward_index.[i]=sortpointer[i]-info->postlistcxx . . $ $anonymous_type_c7374eb872c22577_2#postlist.; |
| 167 | |
| 168 | /* quantize values to multiplier spec */ |
| 169 | switch(info->multcxx . . $ $anonymous_type_c7374eb872c22577_2#mult.){ |
| 170 | case 1: /* 1024 -> 256 */ |
| 171 | look->quant_qcxx . . $ $anonymous_type_bb15305f466690e3_0#quant_q.=256; |
| 172 | break; |
| 173 | case 2: /* 1024 -> 128 */ |
| 174 | look->quant_qcxx . . $ $anonymous_type_bb15305f466690e3_0#quant_q.=128; |
| 175 | break; |
| 176 | case 3: /* 1024 -> 86 */ |
| 177 | look->quant_qcxx . . $ $anonymous_type_bb15305f466690e3_0#quant_q.=86; |
| 178 | break; |
| 179 | case 4: /* 1024 -> 64 */ |
| 180 | look->quant_qcxx . . $ $anonymous_type_bb15305f466690e3_0#quant_q.=64; |
| 181 | break; |
| 182 | } |
| 183 | |
| 184 | /* discover our neighbors for decode where we don't use fit flags |
| 185 | (that would push the neighbors outward) */ |
| 186 | for(i=0;i<n-2;i++){ |
| 187 | int lo=0; |
| 188 | int hi=1; |
| 189 | int lx=0; |
| 190 | int hx=look->ncxx . . $ $anonymous_type_bb15305f466690e3_0#n.; |
| 191 | int currentx=info->postlistcxx . . $ $anonymous_type_c7374eb872c22577_2#postlist.[i+2]; |
| 192 | for(j=0;j<i+2;j++){ |
| 193 | int x=info->postlistcxx . . $ $anonymous_type_c7374eb872c22577_2#postlist.[j]; |
| 194 | if(x>lx && x<currentx){ |
| 195 | lo=j; |
| 196 | lx=x; |
| 197 | } |
| 198 | if(x<hx && x>currentx){ |
| 199 | hi=j; |
| 200 | hx=x; |
| 201 | } |
| 202 | } |
| 203 | look->loneighborcxx . . $ $anonymous_type_bb15305f466690e3_0#loneighbor.[i]=lo; |
| 204 | look->hineighborcxx . . $ $anonymous_type_bb15305f466690e3_0#hineighbor.[i]=hi; |
| 205 | } |
| 206 | |
| 207 | return(look); |
| 208 | } |
| 209 | |
| 210 | static int render_pointcxx . . $ render_point(ea6ae529d4ec1c7a).(int x0,int x1,int y0,int y1,int x){ |
| 211 | y0&=0x7fff; /* mask off flag */ |
| 212 | y1&=0x7fff; |
| 213 | |
| 214 | { |
| 215 | int dy=y1-y0; |
| 216 | int adx=x1-x0; |
| 217 | int ady=abscxx . . $ abs(7864480464b09eea).(dy); |
| 218 | int err=ady*(x-x0); |
| 219 | |
| 220 | int off=err/adx; |
| 221 | if(dy<0)return(y0-off); |
| 222 | return(y0+off); |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | #ifdef _LOW_ACCURACY_cxx . . $ `<built-in>:431:9`! |
| 227 | # define XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(n) ((((n)>>8)+1)>>1) |
| 228 | #else |
| 229 | # define XdB(n) (n) |
| 230 | #endif |
| 231 | |
| 232 | static const ogg_int32_tcxx . . $ ogg_int32_t# FLOOR_fromdB_LOOKUPcxx . . $ FLOOR_fromdB_LOOKUP.[256]={ |
| 233 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000000e5), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000000f4), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000103), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000114), |
| 234 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000126), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000139), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000014e), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000163), |
| 235 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000017a), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000193), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000001ad), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000001c9), |
| 236 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000001e7), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000206), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000228), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000024c), |
| 237 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000272), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000029b), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000002c6), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000002f4), |
| 238 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000326), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000035a), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000392), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000003cd), |
| 239 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000040c), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000450), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000497), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000004e4), |
| 240 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000535), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000058c), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000005e8), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000064a), |
| 241 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000006b3), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000722), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000799), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000818), |
| 242 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000089e), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000092e), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000009c6), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000a69), |
| 243 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000b16), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000bcf), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000c93), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000d64), |
| 244 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000e43), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00000f30), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000102d), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000113a), |
| 245 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00001258), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000138a), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000014cf), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00001629), |
| 246 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000179a), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00001922), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00001ac4), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00001c82), |
| 247 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00001e5c), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00002055), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000226f), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000024ac), |
| 248 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000270e), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00002997), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00002c4b), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00002f2c), |
| 249 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000323d), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00003581), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000038fb), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00003caf), |
| 250 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000040a0), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000044d3), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000494c), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00004e10), |
| 251 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00005323), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000588a), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00005e4b), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000646b), |
| 252 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00006af2), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000071e5), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000794c), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000812e), |
| 253 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00008993), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00009283), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00009c09), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000a62d), |
| 254 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000b0f9), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000bc79), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000c8b9), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000d5c4), |
| 255 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000e3a9), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0000f274), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00010235), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000112fd), |
| 256 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000124dc), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000137e4), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00014c29), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000161bf), |
| 257 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000178bc), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00019137), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0001ab4a), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0001c70e), |
| 258 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0001e4a1), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0002041f), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000225aa), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00024962), |
| 259 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00026f6d), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000297f0), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0002c316), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0002f109), |
| 260 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000321f9), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00035616), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00038d97), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0003c8b4), |
| 261 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000407a7), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00044ab2), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00049218), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0004de23), |
| 262 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00052f1e), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0005855c), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0005e135), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00064306), |
| 263 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0006ab33), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00071a24), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0007904b), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00080e20), |
| 264 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00089422), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000922da), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0009bad8), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000a5cb6), |
| 265 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000b091a), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000bc0b1), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000c8436), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000d5471), |
| 266 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000e3233), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x000f1e5f), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x001019e4), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x001125c1), |
| 267 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00124306), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x001372d5), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0014b663), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00160ef7), |
| 268 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00177df0), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x001904c1), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x001aa4f9), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x001c603d), |
| 269 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x001e384f), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00202f0f), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0022467a), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x002480b1), |
| 270 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0026dff7), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x002966b3), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x002c1776), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x002ef4fc), |
| 271 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0032022d), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00354222), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0038b828), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x003c67c2), |
| 272 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x004054ae), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x004482e8), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0048f6af), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x004db488), |
| 273 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0052c142), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x005821ff), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x005ddc33), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0063f5b0), |
| 274 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x006a74a7), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00715faf), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0078bdce), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0080967f), |
| 275 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0088f1ba), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0091d7f9), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x009b5247), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00a56a41), |
| 276 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00b02a27), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00bb9ce2), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00c7ce12), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00d4ca17), |
| 277 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00e29e20), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x00f15835), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0101074b), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0111bb4e), |
| 278 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x01238531), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x01367704), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x014aa402), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x016020a7), |
| 279 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x017702c3), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x018f6190), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x01a955cb), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x01c4f9cf), |
| 280 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x01e269a8), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0201c33b), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0223265a), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0246b4ea), |
| 281 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x026c9302), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0294e716), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x02bfda13), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x02ed9793), |
| 282 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x031e4e09), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x03522ee4), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x03896ed0), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x03c445e2), |
| 283 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0402efd6), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0445ac4b), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x048cbefc), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x04d87013), |
| 284 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x05290c67), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x057ee5ca), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x05da5364), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x063bb204), |
| 285 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x06a36485), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0711d42b), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0787710e), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0804b299), |
| 286 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x088a17ef), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0918287e), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x09af747c), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0a50957e), |
| 287 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0afc2f19), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0bb2ef7f), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0c759034), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0d44d6ca), |
| 288 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0e2195bc), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x0f0cad0d), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x10070b62), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x1111aeea), |
| 289 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x122da66c), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x135c120f), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x149e24d9), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x15f525b1), |
| 290 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x176270e3), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x18e7794b), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x1a85c9ae), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x1c3f06d1), |
| 291 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x1e14f07d), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x200963d7), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x221e5ccd), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x2455f870), |
| 292 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x26b2770b), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x29363e2b), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x2be3db5c), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x2ebe06b6), |
| 293 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x31c7a55b), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x3503ccd4), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x3875c5aa), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x3c210f44), |
| 294 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x4009632b), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x4432b8cf), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x48a149bc), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x4d59959e), |
| 295 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x52606733), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x57bad899), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x5d6e593a), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x6380b298), |
| 296 | XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x69f80e9a), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x70dafda8), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x78307d76), XdBcxx . . $ `mednafen/tremor/floor1.c:227:11`!(0x7fffffff), |
| 297 | }; |
| 298 | |
| 299 | static void render_linecxx . . $ render_line(ff18d181231006f0).(int n, int x0,int x1,int y0,int y1,ogg_int32_tcxx . . $ ogg_int32_t# *d){ |
| 300 | int dy=y1-y0; |
| 301 | int adx=x1-x0; |
| 302 | int ady=abscxx . . $ abs(7864480464b09eea).(dy); |
| 303 | int base=dy/adx; |
| 304 | int sy=(dy<0?base-1:base+1); |
| 305 | int x=x0; |
| 306 | int y=y0; |
| 307 | int err=0; |
| 308 | |
| 309 | if(n>x1)n=x1; |
| 310 | ady-=abscxx . . $ abs(7864480464b09eea).(base*adx); |
| 311 | |
| 312 | if(x<n) |
| 313 | d[x]= MULT31_SHIFT15cxx . . $ MULT31_SHIFT15(9b79fb6aee4c0440).(d[x],FLOOR_fromdB_LOOKUPcxx . . $ FLOOR_fromdB_LOOKUP.[y]); |
| 314 | |
| 315 | while(++x<n){ |
| 316 | err=err+ady; |
| 317 | if(err>=adx){ |
| 318 | err-=adx; |
| 319 | y+=sy; |
| 320 | }else{ |
| 321 | y+=base; |
| 322 | } |
| 323 | d[x]= MULT31_SHIFT15cxx . . $ MULT31_SHIFT15(9b79fb6aee4c0440).(d[x],FLOOR_fromdB_LOOKUPcxx . . $ FLOOR_fromdB_LOOKUP.[y]); |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | static void *floor1_inverse1cxx . . $ floor1_inverse1(73e60fc02c6cc8c7).(vorbis_blockcxx . . $ vorbis_block# *vb,vorbis_look_floorcxx . . $ vorbis_look_floor# *in){ |
| 328 | vorbis_look_floor1cxx . . $ vorbis_look_floor1# *look=(vorbis_look_floor1cxx . . $ vorbis_look_floor1# *)in; |
| 329 | vorbis_info_floor1cxx . . $ vorbis_info_floor1# *info=look->vicxx . . $ $anonymous_type_bb15305f466690e3_0#vi.; |
| 330 | codec_setup_infocxx . . $ codec_setup_info# *ci=(codec_setup_infocxx . . $ codec_setup_info# *)vb->vdcxx . . $ vorbis_block#vd.->vicxx . . $ vorbis_dsp_state#vi.->codec_setupcxx . . $ vorbis_info#codec_setup.; |
| 331 | |
| 332 | int i,j,k; |
| 333 | codebookcxx . . $ codebook# *books=ci->fullbookscxx . . $ codec_setup_info#fullbooks.; |
| 334 | |
| 335 | /* unpack wrapped/predicted values from stream */ |
| 336 | if(oggpack_readcxx . . $ oggpack_read(e96bf1ebf62076a2).(&vb->opbcxx . . $ vorbis_block#opb.,1)==1){ |
| 337 | int *fit_value=(int *)_vorbis_block_alloccxx . . $ _vorbis_block_alloc(339031f86f86193e).(vb,(look->postscxx . . $ $anonymous_type_bb15305f466690e3_0#posts.)*sizeof(*fit_value)); |
| 338 | |
| 339 | fit_value[0]=oggpack_readcxx . . $ oggpack_read(e96bf1ebf62076a2).(&vb->opbcxx . . $ vorbis_block#opb.,ilogcxx . . $ ilog(4c679297bf94b9eb).(look->quant_qcxx . . $ $anonymous_type_bb15305f466690e3_0#quant_q.-1)); |
| 340 | fit_value[1]=oggpack_readcxx . . $ oggpack_read(e96bf1ebf62076a2).(&vb->opbcxx . . $ vorbis_block#opb.,ilogcxx . . $ ilog(4c679297bf94b9eb).(look->quant_qcxx . . $ $anonymous_type_bb15305f466690e3_0#quant_q.-1)); |
| 341 | |
| 342 | /* partition by partition */ |
| 343 | /* partition by partition */ |
| 344 | for(i=0,j=2;i<info->partitionscxx . . $ $anonymous_type_c7374eb872c22577_2#partitions.;i++){ |
| 345 | int classv=info->partitionclasscxx . . $ $anonymous_type_c7374eb872c22577_2#partitionclass.[i]; |
| 346 | int cdim=info->class_dimcxx . . $ $anonymous_type_c7374eb872c22577_2#class_dim.[classv]; |
| 347 | int csubbits=info->class_subscxx . . $ $anonymous_type_c7374eb872c22577_2#class_subs.[classv]; |
| 348 | int csub=1<<csubbits; |
| 349 | int cval=0; |
| 350 | |
| 351 | /* decode the partition's first stage cascade value */ |
| 352 | if(csubbits){ |
| 353 | cval=vorbis_book_decodecxx . . $ vorbis_book_decode(c6017aa1fb295037).(books+info->class_bookcxx . . $ $anonymous_type_c7374eb872c22577_2#class_book.[classv],&vb->opbcxx . . $ vorbis_block#opb.); |
| 354 | |
| 355 | if(cval==-1)goto eop; |
| 356 | } |
| 357 | |
| 358 | for(k=0;k<cdim;k++){ |
| 359 | int book=info->class_subbookcxx . . $ $anonymous_type_c7374eb872c22577_2#class_subbook.[classv][cval&(csub-1)]; |
| 360 | cval>>=csubbits; |
| 361 | if(book>=0){ |
| 362 | if((fit_value[j+k]=vorbis_book_decodecxx . . $ vorbis_book_decode(c6017aa1fb295037).(books+book,&vb->opbcxx . . $ vorbis_block#opb.))==-1) |
| 363 | goto eop; |
| 364 | }else{ |
| 365 | fit_value[j+k]=0; |
| 366 | } |
| 367 | } |
| 368 | j+=cdim; |
| 369 | } |
| 370 | |
| 371 | /* unwrap positive values and reconsitute via linear interpolation */ |
| 372 | for(i=2;i<look->postscxx . . $ $anonymous_type_bb15305f466690e3_0#posts.;i++){ |
| 373 | int predicted=render_pointcxx . . $ render_point(ea6ae529d4ec1c7a).(info->postlistcxx . . $ $anonymous_type_c7374eb872c22577_2#postlist.[look->loneighborcxx . . $ $anonymous_type_bb15305f466690e3_0#loneighbor.[i-2]], |
| 374 | info->postlistcxx . . $ $anonymous_type_c7374eb872c22577_2#postlist.[look->hineighborcxx . . $ $anonymous_type_bb15305f466690e3_0#hineighbor.[i-2]], |
| 375 | fit_value[look->loneighborcxx . . $ $anonymous_type_bb15305f466690e3_0#loneighbor.[i-2]], |
| 376 | fit_value[look->hineighborcxx . . $ $anonymous_type_bb15305f466690e3_0#hineighbor.[i-2]], |
| 377 | info->postlistcxx . . $ $anonymous_type_c7374eb872c22577_2#postlist.[i]); |
| 378 | int hiroom=look->quant_qcxx . . $ $anonymous_type_bb15305f466690e3_0#quant_q.-predicted; |
| 379 | int loroom=predicted; |
| 380 | int room=(hiroom<loroom?hiroom:loroom)<<1; |
| 381 | int val=fit_value[i]; |
| 382 | |
| 383 | if(val){ |
| 384 | if(val>=room){ |
| 385 | if(hiroom>loroom){ |
| 386 | val = val-loroom; |
| 387 | }else{ |
| 388 | val = -1-(val-hiroom); |
| 389 | } |
| 390 | }else{ |
| 391 | if(val&1){ |
| 392 | val= -((val+1)>>1); |
| 393 | }else{ |
| 394 | val>>=1; |
| 395 | } |
| 396 | } |
| 397 | |
| 398 | fit_value[i]=(val+predicted)&0x7fff;; |
| 399 | fit_value[look->loneighborcxx . . $ $anonymous_type_bb15305f466690e3_0#loneighbor.[i-2]]&=0x7fff; |
| 400 | fit_value[look->hineighborcxx . . $ $anonymous_type_bb15305f466690e3_0#hineighbor.[i-2]]&=0x7fff; |
| 401 | |
| 402 | }else{ |
| 403 | fit_value[i]=predicted|0x8000; |
| 404 | } |
| 405 | |
| 406 | } |
| 407 | |
| 408 | return(fit_value); |
| 409 | } |
| 410 | eop: |
| 411 | return(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 412 | } |
| 413 | |
| 414 | static int floor1_inverse2cxx . . $ floor1_inverse2(1e44584e06117f2d).(vorbis_blockcxx . . $ vorbis_block# *vb,vorbis_look_floorcxx . . $ vorbis_look_floor# *in,void *memo, |
| 415 | ogg_int32_tcxx . . $ ogg_int32_t# *out){ |
| 416 | vorbis_look_floor1cxx . . $ vorbis_look_floor1# *look=(vorbis_look_floor1cxx . . $ vorbis_look_floor1# *)in; |
| 417 | vorbis_info_floor1cxx . . $ vorbis_info_floor1# *info=look->vicxx . . $ $anonymous_type_bb15305f466690e3_0#vi.; |
| 418 | |
| 419 | codec_setup_infocxx . . $ codec_setup_info# *ci=(codec_setup_infocxx . . $ codec_setup_info# *)vb->vdcxx . . $ vorbis_block#vd.->vicxx . . $ vorbis_dsp_state#vi.->codec_setupcxx . . $ vorbis_info#codec_setup.; |
| 420 | int n=ci->blocksizescxx . . $ codec_setup_info#blocksizes.[vb->Wcxx . . $ vorbis_block#W.]/2; |
| 421 | int j; |
| 422 | |
| 423 | if(memo){ |
| 424 | /* render the lines */ |
| 425 | int *fit_value=(int *)memo; |
| 426 | int hx=0; |
| 427 | int lx=0; |
| 428 | int ly=fit_value[0]*info->multcxx . . $ $anonymous_type_c7374eb872c22577_2#mult.; |
| 429 | /* guard lookup against out-of-range values */ |
| 430 | ly=(ly<0?0:ly>255?255:ly); |
| 431 | |
| 432 | for(j=1;j<look->postscxx . . $ $anonymous_type_bb15305f466690e3_0#posts.;j++){ |
| 433 | int current=look->forward_indexcxx . . $ $anonymous_type_bb15305f466690e3_0#forward_index.[j]; |
| 434 | int hy=fit_value[current]&0x7fff; |
| 435 | if(hy==fit_value[current]){ |
| 436 | |
| 437 | hx=info->postlistcxx . . $ $anonymous_type_c7374eb872c22577_2#postlist.[current]; |
| 438 | hy*=info->multcxx . . $ $anonymous_type_c7374eb872c22577_2#mult.; |
| 439 | /* guard lookup against out-of-range values */ |
| 440 | hy=(hy<0?0:hy>255?255:hy); |
| 441 | |
| 442 | render_linecxx . . $ render_line(ff18d181231006f0).(n,lx,hx,ly,hy,out); |
| 443 | |
| 444 | lx=hx; |
| 445 | ly=hy; |
| 446 | } |
| 447 | } |
| 448 | for(j=hx;j<n;j++)out[j]*=ly; /* be certain */ |
| 449 | return(1); |
| 450 | } |
| 451 | memsetcxx . . $ memset(d1de1e4fb215f1c6).(out,0,sizeof(*out)*n); |
| 452 | return(0); |
| 453 | } |
| 454 | |
| 455 | /* export hooks */ |
| 456 | vorbis_func_floorcxx . . $ vorbis_func_floor# floor1_exportbundlecxx . . $ floor1_exportbundle.={ |
| 457 | &floor1_unpackcxx . . $ floor1_unpack(eeac8d4f838aca31).,&floor1_lookcxx . . $ floor1_look(f9c763c507a8abc9).,&floor1_free_infocxx . . $ floor1_free_info(5d22bdacc48458e8)., |
| 458 | &floor1_free_lookcxx . . $ floor1_free_look(5d22bdacc48458e8).,&floor1_inverse1cxx . . $ floor1_inverse1(73e60fc02c6cc8c7).,&floor1_inverse2cxx . . $ floor1_inverse2(1e44584e06117f2d). |
| 459 | }; |
| 460 |