• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:comp

58    Jpeg2000Component *comp;
97 static void printcomp(Jpeg2000Component *comp)
100 for (i = 0; i < comp->y1 - comp->y0; i++)
101 ff_jpeg2000_printv(comp->i_data + i * (comp->x1 - comp->x0), comp->x1 - comp->x0);
117 Jpeg2000Component *comp = tile->comp + compno;
122 comp->x0, comp->x1, comp->y0, comp->y1);
124 Jpeg2000ResLevel *reslevel = comp->reslevel + reslevelno;
353 tile->comp = av_mallocz_array(s->ncomponents, sizeof(Jpeg2000Component));
354 if (!tile->comp)
357 Jpeg2000Component *comp = tile->comp + compno;
360 comp->coord[0][0] = comp->coord_o[0][0] = tilex * s->tile_width;
361 comp->coord[0][1] = comp->coord_o[0][1] = FFMIN((tilex+1)*s->tile_width, s->width);
362 comp->coord[1][0] = comp->coord_o[1][0] = tiley * s->tile_height;
363 comp->coord[1][1] = comp->coord_o[1][1] = FFMIN((tiley+1)*s->tile_height, s->height);
367 comp->coord[i][j] = comp->coord_o[i][j] = ff_jpeg2000_ceildivpow2(comp->coord[i][j], s->chroma_shift[i]);
369 if (ret = ff_jpeg2000_init_component(comp,
391 Jpeg2000Component *comp = tile->comp + compno;
392 int *dst = comp->i_data;
394 + comp->coord[1][0] * s->picture->linesize[compno]
395 + comp->coord[0][0];
396 for (y = comp->coord[1][0]; y < comp->coord[1][1]; y++){
398 for (x = comp->coord[0][0]; x < comp->coord[0][1]; x++)
404 line = s->picture->data[0] + tile->comp[0].coord[1][0] * s->picture->linesize[0]
405 + tile->comp[0].coord[0][0] * s->ncomponents;
408 for (y = tile->comp[0].coord[1][0]; y < tile->comp[0].coord[1][1]; y++){
410 for (x = tile->comp[0].coord[0][0]; x < tile->comp[0].coord[0][1]; x++, i++){
412 tile->comp[compno].i_data[i] = *ptr++ - (1 << 7);
750 // lay-rlevel-comp-pos progression
754 Jpeg2000ResLevel *reslevel = s->tile[tileno].comp[compno].reslevel + reslevelno;
790 Jpeg2000Component *comp = tile->comp + compno;
793 Jpeg2000ResLevel *reslevel = comp->reslevel + reslevelno;
819 Jpeg2000Component *comp = s->tile[tileno].comp + compno;
822 if (ret = ff_dwt_encode(&comp->dwt, comp->i_data))
827 Jpeg2000ResLevel *reslevel = comp->reslevel + reslevelno;
833 yy0 = bandno == 0 ? 0 : comp->reslevel[reslevelno-1].coord[1][1] - comp->reslevel[reslevelno-1].coord[1][0];
847 xx0 = comp->reslevel[reslevelno-1].coord[0][1] - comp->reslevel[reslevelno-1].coord[0][0];
858 *ptr++ = comp->i_data[(comp->coord[0][1] - comp->coord[0][0]) * y + x] << NMSEDEC_FRACBITS;
865 *ptr = (comp->i_data[(comp->coord[0][1] - comp->coord[0][0]) * y + x]);
899 Jpeg2000Component *comp = s->tile[tileno].comp + compno;
900 ff_jpeg2000_cleanup(comp, codsty);
902 av_freep(&s->tile[tileno].comp);
913 ff_jpeg2000_reinit(tile->comp + compno, &s->codsty);