• Home
  • Raw
  • Download

Lines Matching refs:fast_rand

55 #define RAND_SAMPLE(a) (a[fast_rand() % sizeof(a)/sizeof(a[0])])
72 r=fast_rand();v1+=r&65535;v1-=r>>16; in generate_music()
73 r=fast_rand();v2+=r&65535;v2-=r>>16; in generate_music()
403 rate=rates[j]+fast_rand()%rates[j]; in run_test1()
408 if((fast_rand()&255)==0) in run_test1()
412 if((fast_rand()&1)!=0) in run_test1()
414 … if(opus_decoder_ctl(dec_err[fast_rand()&1], OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
417 if((fast_rand()&127)==0) in run_test1()
419 if(opus_decoder_ctl(dec_err[fast_rand()&1], OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in run_test1()
421 if(fast_rand()%10==0){ in run_test1()
422 int complex=fast_rand()%11; in run_test1()
425 if(fast_rand()%50==0)opus_decoder_ctl(dec, OPUS_RESET_STATE); in run_test1()
428 if(opus_encoder_ctl(enc, OPUS_SET_DTX(fast_rand()&1))!=OPUS_OK)test_failed(); in run_test1()
432 …if(opus_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC((fast_rand()&15)&(fast_rand()%15)))!=OPUS_OK)te… in run_test1()
433 bw=modes[j]==0?OPUS_BANDWIDTH_NARROWBAND+(fast_rand()%3): in run_test1()
434 modes[j]==1?OPUS_BANDWIDTH_SUPERWIDEBAND+(fast_rand()&1): in run_test1()
435 OPUS_BANDWIDTH_NARROWBAND+(fast_rand()%5); in run_test1()
441 if((fast_rand()&3)==0) in run_test1()
446 if((fast_rand()&7)==0) in run_test1()
451 if((fast_rand()&3)==0) in run_test1()
461 … out_samples = opus_decode(dec_err[0], packet, len, out2buf, frame_size, (fast_rand()&3)!=0); in run_test1()
463 …ut_samples = opus_decode(dec_err[1], packet, (fast_rand()&3)==0?0:len, out2buf, MAX_FRAME_SAMP, (f… in run_test1()
491 rate=rates[j]+fast_rand()%rates[j]; in run_test1()
492 if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_DTX(fast_rand()&1))!=OPUS_OK)test_failed(); in run_test1()
499 …if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_PREDICTION_DISABLED((int)(fast_rand()&15)<(pred?11… in run_test1()
502 …opus_multistream_encoder_ctl(MSenc, OPUS_SET_PACKET_LOSS_PERC((fast_rand()&15)&(fast_rand()%15)))!… in run_test1()
503 if((fast_rand()&255)==0) in run_test1()
507 if((fast_rand()&3)!=0) in run_test1()
512 if((fast_rand()&255)==0) in run_test1()
519 if((fast_rand()&3)==0) in run_test1()
524 if((fast_rand()&7)==0) in run_test1()
529 if((fast_rand()&3)==0) in run_test1()
539 loss=(fast_rand()&63)==0; in run_test1()
540 … opus_multistream_decode(MSdec_err, packet, loss?0:len, out2buf, frame_size*6, (fast_rand()&3)!=0); in run_test1()
550 fsize=fast_rand()%31; in run_test1()
586 if((fast_rand()&1023)==0)len=0; in run_test1()
587 …rames[0]-packet);j<len;j++)for(jj=0;jj<8;jj++)packet[j]^=((!no_fuzz)&&((fast_rand()&1023)==0))<<jj; in run_test1()
595 dec2=fast_rand()%9+1; in run_test1()
608 if(new_size==960||new_size==480)fswitch=2880/new_size*(fast_rand()%19+1); in run_test1()
609 else fswitch=(fast_rand()%(2880/new_size))+1; in run_test1()
611 bitrate_bps=((fast_rand()%508000+4000)+bitrate_bps)>>1; in run_test1()
683 …fprintf(stderr,"Testing %s encoder. Random seed: %u (%.4X)\n", oversion, iseed, fast_rand() % 6553… in main()