Lines Matching refs:sf
384 unsigned char *sf = &scale_factors[0][0]; in compute_scale_factors() local
417 sf[i] = index; in compute_scale_factors()
422 d1 = s->scale_diff_table[sf[0] - sf[1] + 64]; in compute_scale_factors()
423 d2 = s->scale_diff_table[sf[1] - sf[2] + 64]; in compute_scale_factors()
439 sf[2] = sf[1]; in compute_scale_factors()
444 sf[1] = sf[2]; in compute_scale_factors()
450 sf[1] = sf[0]; in compute_scale_factors()
458 sf[1] = sf[2] = sf[0]; in compute_scale_factors()
463 sf[0] = sf[1] = sf[2]; in compute_scale_factors()
469 sf[0] = sf[2] = sf[1]; in compute_scale_factors()
473 if (sf[0] > sf[2]) in compute_scale_factors()
474 sf[0] = sf[2]; in compute_scale_factors()
475 sf[1] = sf[2] = sf[0]; in compute_scale_factors()
483 sf[0], sf[1], sf[2], d1, d2, code); in compute_scale_factors()
485 sf += 3; in compute_scale_factors()
610 unsigned char *sf; in encode_frame() local
652 sf = &s->scale_factors[ch][i][0]; in encode_frame()
655 put_bits(p, 6, sf[0]); in encode_frame()
656 put_bits(p, 6, sf[1]); in encode_frame()
657 put_bits(p, 6, sf[2]); in encode_frame()
661 put_bits(p, 6, sf[0]); in encode_frame()
662 put_bits(p, 6, sf[2]); in encode_frame()
665 put_bits(p, 6, sf[0]); in encode_frame()