Lines Matching refs:category
399 * Calculate the category and category_index vector.
403 * @param category pointer to the category array
408 int* category, int* category_index){
494 category[i] = exp_index2[i];
503 * Expand the category vector.
506 * @param category pointer to the category array
510 static inline void expand_category(COOKContext *q, int* category,
514 ++category[category_index[i]];
551 * @param category pointer to the category array
556 static int unpack_SQVH(COOKContext *q, int category, int* subband_coef_index,
561 vd = vd_tab[category];
563 for(i=0 ; i<vpr_tab[category] ; i++){
564 vlc = get_vlc2(&q->gb, q->sqvh[category].table, q->sqvh[category].bits, 3);
570 tmp = (vlc * invradix_tab[category])/0x100000;
571 subband_coef_index[vd*i+j] = vlc - tmp * (kmax_tab[category]+1);
595 * @param category pointer to the category array
601 static void decode_vectors(COOKContext* q, int* category,
613 index = category[band];
614 if(category[band] < 7){
615 if(unpack_SQVH(q, category[band], subband_coef_index, subband_coef_sign)){
617 for(j=0 ; j<q->total_subbands ; j++) category[band+j]=7;
646 int category[128];
648 memset(&category, 0, 128*sizeof(int));
653 categorize(q, quant_index_table, category, category_index);
654 expand_category(q, category, category_index);
655 decode_vectors(q, category, quant_index_table, mlt_buffer);