Lines Matching refs:index

63         int index;
84 ff_free_vlc(&s->vlcs[ht[i].class][ht[i].index]);
85 ret = ff_mjpeg_build_vlc(&s->vlcs[ht[i].class][ht[i].index],
92 memcpy(s->raw_huffman_lengths[ht[i].class][ht[i].index],
94 memcpy(s->raw_huffman_values[ht[i].class][ht[i].index],
200 int len, index, i;
215 index = get_bits(&s->gb, 4);
216 if (index >= 4)
218 av_log(s->avctx, AV_LOG_DEBUG, "index=%d\n", index);
221 s->quant_matrixes[index][i] = get_bits(&s->gb, pr ? 16 : 8);
222 if (s->quant_matrixes[index][i] == 0) {
231 s->qscale[index] = FFMAX(s->quant_matrixes[index][1],
232 s->quant_matrixes[index][8]) >> 1;
234 index, s->qscale[index]);
243 int len, index, i, class, n, v;
261 index = get_bits(&s->gb, 4);
262 if (index >= 4)
280 ff_free_vlc(&s->vlcs[class][index]);
281 av_log(s->avctx, AV_LOG_DEBUG, "class=%d index=%d nb_codes=%d\n",
282 class, index, n);
283 if ((ret = ff_mjpeg_build_vlc(&s->vlcs[class][index], bits_table,
288 ff_free_vlc(&s->vlcs[2][index]);
289 if ((ret = ff_mjpeg_build_vlc(&s->vlcs[2][index], bits_table,
295 s->raw_huffman_lengths[class][index][i] = bits_table[i + 1];
297 s->raw_huffman_values[class][index][i] = val_table[i];
1647 int index, id, ret;
1682 /* find component index */
1683 for (index = 0; index < s->nb_components; index++)
1684 if (id == s->component_id[index])
1686 if (index == s->nb_components) {
1688 "decode_sos: index(%d) out of components\n", index);
1694 index = 3 - i;
1696 s->quant_sindex[i] = s->quant_index[index];
1697 s->nb_blocks[i] = s->h_count[index] * s->v_count[index];
1698 s->h_scount[i] = s->h_count[index];
1699 s->v_scount[i] = s->v_count[index];
1702 index = (index+2)%3;
1704 s->comp_index[i] = index;
1817 av_log(s->avctx, AV_LOG_ERROR, "decode_sos: ac/dc index out of range\n");
2417 int i, index;
2705 for (index = w - 2; index > 0; index--) {
2707 ((uint16_t*)line)[index] = (((uint16_t*)line)[index / 2] + ((uint16_t*)line)[(index + 1) / 2]) >> 1;
2709 line[index] = (line[index / 2] + line[(index + 1) / 2]) >> 1;
2721 for (index = w - 3; index > 0; index--) {
2722 line[index] = (line[index / 3] + line[(index + 1) / 3] + line[(index + 2) / 3] + 1) / 3;
2767 for (index = 0; index < w; index++)
2768 dst[index] = (src1[index] + src2[index]) >> 1;
2781 for (index=0; index<s->nb_components; index++) {
2782 uint8_t *dst = s->picture_ptr->data[index];
2785 if(index && index<3){
2790 uint8_t *dst2 = dst + s->picture_ptr->linesize[index]*(h-1);
2794 dst += s->picture_ptr->linesize[index];
2795 dst2 -= s->picture_ptr->linesize[index];
2807 for (index=0; index<4; index++) {
2808 dst[index] = s->picture_ptr->data[index]
2809 + s->picture_ptr->linesize[index]*i;
2830 for (index=0; index<4; index++) {
2831 dst[index] = s->picture_ptr->data[index]
2832 + s->picture_ptr->linesize[index]*i;