Lines Matching defs:plane

146     Plane plane[3];
308 s->plane[i].idwt.buf_base = av_calloc(w + max_xblen, h * (2 << s->pshift));
309 s->plane[i].idwt.tmp = av_malloc_array((w+16), 2 << s->pshift);
310 s->plane[i].idwt.buf = s->plane[i].idwt.buf_base + (top_padding*w)*(2 << s->pshift);
311 if (!s->plane[i].idwt.buf_base || !s->plane[i].idwt.tmp)
372 av_freep(&s->plane[i].idwt.buf_base);
373 av_freep(&s->plane[i].idwt.tmp);
671 SubBand *b = &s->plane[comp].band[level][orientation];
695 avctx->execute(avctx, decode_subband_arith, &s->plane[comp].band[level][!!level],
794 &s->plane[0].band[level][orientation], NULL);
807 &s->plane[1].band[level][orientation],
808 &s->plane[2].band[level][orientation]);
828 SubBand *b = &s->plane[p].band[level][3]; /* orientation doens't matter */
897 const SubBand *b1 = &s->plane[i].band[level][orientation];
954 * from another plane/slice at most, and 512 because SIMD */
1037 intra_dc_prediction_10(&s->plane[0].band[0][0]); /* [DIRAC_STD] 13.3 intra_dc_prediction() */
1038 intra_dc_prediction_10(&s->plane[1].band[0][0]); /* [DIRAC_STD] 13.3 intra_dc_prediction() */
1039 intra_dc_prediction_10(&s->plane[2].band[0][0]); /* [DIRAC_STD] 13.3 intra_dc_prediction() */
1041 intra_dc_prediction_8(&s->plane[0].band[0][0]);
1042 intra_dc_prediction_8(&s->plane[1].band[0][0]);
1043 intra_dc_prediction_8(&s->plane[2].band[0][0]);
1055 Plane *p = &s->plane[i];
1088 p->xblen = s->plane[0].xblen >> s->chroma_x_shift;
1089 p->yblen = s->plane[0].yblen >> s->chroma_y_shift;
1090 p->xbsep = s->plane[0].xbsep >> s->chroma_x_shift;
1091 p->ybsep = s->plane[0].ybsep >> s->chroma_y_shift;
1122 s->plane[0].xblen = get_interleaved_ue_golomb(gb);
1123 s->plane[0].yblen = get_interleaved_ue_golomb(gb);
1124 s->plane[0].xbsep = get_interleaved_ue_golomb(gb);
1125 s->plane[0].ybsep = get_interleaved_ue_golomb(gb);
1128 s->plane[0].xblen = default_blen[idx-1];
1129 s->plane[0].yblen = default_blen[idx-1];
1130 s->plane[0].xbsep = 4 * idx;
1131 s->plane[0].ybsep = 4 * idx;
1136 if (s->plane[0].xblen % (1 << s->chroma_x_shift) != 0 ||
1137 s->plane[0].yblen % (1 << s->chroma_y_shift) != 0 ||
1138 !s->plane[0].xblen || !s->plane[0].yblen) {
1141 s->plane[0].xblen, s->plane[0].yblen, s->chroma_x_shift, s->chroma_y_shift);
1144 if (!s->plane[0].xbsep || !s->plane[0].ybsep || s->plane[0].xbsep < s->plane[0].xblen/2 || s->plane[0].ybsep < s->plane[0].yblen/2) {
1148 if (s->plane[0].xbsep > s->plane[0].xblen || s->plane[0].ybsep > s->plane[0].yblen) {
1152 if (FFMAX(s->plane[0].xblen, s->plane[0].yblen) > MAX_BLOCKSIZE) {
1512 s->sbwidth = DIVRNDUP(s->seq.width, 4*s->plane[0].xbsep);
1513 s->sbheight = DIVRNDUP(s->seq.height, 4*s->plane[0].ybsep);
1641 * interpolation from and set src[] to the location in each hpel plane
1645 * 0 for 1 plane (fpel,hpel), 1 for 2 planes (qpel), 2 for 4 planes (qpel), and 3 for epel
1648 int x, int y, int ref, int plane)
1650 Plane *p = &s->plane[plane];
1651 uint8_t **ref_hpel = s->ref_pics[ref]->hpel[plane];
1656 if (plane) {
1760 int plane, int dstx, int dsty)
1762 Plane *p = &s->plane[plane];
1768 add_dc(mctmp, block->u.dc[plane], p->stride, obmc_weight, p->xblen, p->yblen);
1772 idx = mc_subpel(s, block, src, dstx, dsty, (block->ref&3)-1, plane);
1779 idx = mc_subpel(s, block, src, dstx, dsty, 0, plane);
1781 idx = mc_subpel(s, block, src, dstx, dsty, 1, plane);
1794 static void mc_row(DiracContext *s, DiracBlock *block, uint16_t *mctmp, int plane, int dsty)
1796 Plane *p = &s->plane[plane];
1799 block_mc(s, block, mctmp, s->obmc_weight[0], plane, -p->xoffset, dsty);
1803 block_mc(s, block+x, mctmp, s->obmc_weight[1], plane, dstx, dsty);
1807 block_mc(s, block+x, mctmp, s->obmc_weight[2], plane, dstx, dsty);
1830 static int interpolate_refplane(DiracContext *s, DiracFrame *ref, int plane, int width, int height)
1837 ref->hpel[plane][0] = ref->avframe->data[plane];
1838 s->mpvencdsp.draw_edges(ref->hpel[plane][0], ref->avframe->linesize[plane], width, height, edge, edge, EDGE_TOP | EDGE_BOTTOM); /* EDGE_TOP | EDGE_BOTTOM values just copied to make it build, this needs to be ensured */
1845 if (!ref->hpel_base[plane][i])
1846 ref->hpel_base[plane][i] = av_malloc((height+2*edge) * ref->avframe->linesize[plane] + 32);
1847 if (!ref->hpel_base[plane][i]) {
1851 ref->hpel[plane][i] = ref->hpel_base[plane][i] + edge*ref->avframe->linesize[plane] + 16;
1854 if (!ref->interpolated[plane]) {
1855 s->diracdsp.dirac_hpel_filter(ref->hpel[plane][1], ref->hpel[plane][2],
1856 ref->hpel[plane][3], ref->hpel[plane][0],
1857 ref->avframe->linesize[plane], width, height);
1858 s->mpvencdsp.draw_edges(ref->hpel[plane][1], ref->avframe->linesize[plane], width, height, edge, edge, EDGE_TOP | EDGE_BOTTOM);
1859 s->mpvencdsp.draw_edges(ref->hpel[plane][2], ref->avframe->linesize[plane], width, height, edge, edge, EDGE_TOP | EDGE_BOTTOM);
1860 s->mpvencdsp.draw_edges(ref->hpel[plane][3], ref->avframe->linesize[plane], width, height, edge, edge, EDGE_TOP | EDGE_BOTTOM);
1862 ref->interpolated[plane] = 1;
1881 Plane *p = &s->plane[comp];
1892 Plane *p = &s->plane[comp];
2243 s->plane[0].stride = pic->avframe->linesize[0];
2244 s->plane[1].stride = pic->avframe->linesize[1];
2245 s->plane[2].stride = pic->avframe->linesize[2];
2247 if (alloc_buffers(s, FFMAX3(FFABS(s->plane[0].stride), FFABS(s->plane[1].stride), FFABS(s->plane[2].stride))) < 0)