Home | History | Annotate | Download | only in highgui

Lines Matching refs:idx

866                         int idx = lstrm.GetByte();
868 if( idx < 1 || idx > m_planes ) // wrong index
870 idx = i+1; // hack
872 cmp_info& ci = m_ci[idx-1];
953 int idx = zigzag[i];
954 m_tq[tq][idx] = buffer[i] * 16 * idct_prescale[idx];
961 int idx = zigzag[i];
962 m_tq[tq][idx] = ((unsigned short*)buffer)[i] * idct_prescale[idx];
1045 int idx[3] = { -1, -1, -1 };
1058 if( idx[c] != -1 ) goto decoding_end;
1059 idx[i] = c;
1083 ProcessScan( idx, ns, data, step, color );
1110 void GrFmtJpegReader::ProcessScan( int* idx, int ns, uchar* data, int step, int color )
1122 assert( idx[0] == 0 && (ns ==1 || (idx[1] == 1 && idx[2] == 2)));
1126 int c = idx[i];
1158 int c = idx[i];
1674 int idx = zigzag[j];
1675 int qval = cvRound(qtable[idx]*inv_quality);
1680 fdct_qtab[i][idx] = cvRound((1 << (postshift + 9))/
1681 (qval*chroma_scale*idct_prescale[idx]));
1692 int idx = i >= 2;
1697 lowstrm.PutByte( is_ac_tab*16 + idx ); // put DC/AC flag and table index
1701 htable, buffer, 16, 9 ), is_ac_tab ? huff_ac_tab[idx] :
1702 huff_dc_tab[idx], is_ac_tab ? 256 : 16 );
1720 lowstrm.PutByte( i > 0 ); // quantization table idx