Home
last modified time | relevance | path

Searched refs:linesize (Results 1 – 25 of 717) sorted by relevance

12345678910>>...29

/third_party/ffmpeg/libavfilter/
Dvf_fillborders.c86 int linesize = frame->linesize[p]; in smear_borders8() local
89 memset(ptr + y * linesize, in smear_borders8()
90 *(ptr + y * linesize + s->borders[p].left), in smear_borders8()
92 memset(ptr + y * linesize + s->planewidth[p] - s->borders[p].right, in smear_borders8()
93 *(ptr + y * linesize + s->planewidth[p] - s->borders[p].right - 1), in smear_borders8()
98 memcpy(ptr + y * linesize, in smear_borders8()
99 ptr + s->borders[p].top * linesize, s->planewidth[p]); in smear_borders8()
103 memcpy(ptr + y * linesize, in smear_borders8()
104 ptr + (s->planeheight[p] - s->borders[p].bottom - 1) * linesize, in smear_borders8()
116 int linesize = frame->linesize[p] / 2; in smear_borders16() local
[all …]
Dvf_owdenoise.c49 int linesize; member
110 int linesize, int w) in decompose() argument
114 double sum_l = src[x * linesize] * coeff[0][0]; in decompose()
115 double sum_h = src[x * linesize] * coeff[1][0]; in decompose()
117 const double s = src[avpriv_mirror(x - i, w - 1) * linesize] in decompose()
118 + src[avpriv_mirror(x + i, w - 1) * linesize]; in decompose()
123 dst_l[x * linesize] = sum_l; in decompose()
124 dst_h[x * linesize] = sum_h; in decompose()
129 int linesize, int w) in compose() argument
133 double sum_l = src_l[x * linesize] * icoeff[0][0]; in compose()
[all …]
Dvf_bitplanenoise.c117 const int linesize = s->planeheight[plane] > 1 ? in->linesize[plane] : 0; in filter_frame() local
118 const int dlinesize = out->linesize[plane]; in filter_frame()
123 CHECK_BIT(0, 1, 1 + linesize, linesize) in filter_frame()
126 CHECK_BIT(x, -1, 1, linesize) in filter_frame()
129 CHECK_BIT(x, -1, -1 + linesize, linesize) in filter_frame()
131 val += linesize; in filter_frame()
136 CHECK_BIT(0, 1, 1 - linesize, -linesize) in filter_frame()
139 CHECK_BIT(x, -1, 1, -linesize) in filter_frame()
142 CHECK_BIT(x, -1, -1 - linesize, -linesize) in filter_frame()
146 const int linesize = s->planeheight[plane] > 1 ? in->linesize[plane] / 2 : 0; in filter_frame() local
[all …]
Dvf_vectorscope.c295 const int dlinesize = out->linesize[0] / 2; in envelope_instant16()
316 const int dlinesize = out->linesize[0] / 2; in envelope_peak16()
347 const int dlinesize = out->linesize[0]; in envelope_instant()
367 const int dlinesize = out->linesize[0]; in envelope_peak()
420 const int slinesizex = in->linesize[s->x] / 2; in vectorscope16()
421 const int slinesizey = in->linesize[s->y] / 2; in vectorscope16()
422 const int slinesized = in->linesize[pd] / 2; in vectorscope16()
423 const int dlinesize = out->linesize[0] / 2; in vectorscope16()
448 AV_WN16(out->data[k] + i * out->linesize[k] + j * 2, in vectorscope16()
620 const int slinesizex = in->linesize[s->x]; in vectorscope8()
[all …]
Dvf_floodfill.c63 unsigned c0 = frame->data[0][y * frame->linesize[0] + x]; in is_same4()
64 unsigned c1 = frame->data[1][y * frame->linesize[1] + x]; in is_same4()
65 unsigned c2 = frame->data[2][y * frame->linesize[2] + x]; in is_same4()
66 unsigned c3 = frame->data[3][y * frame->linesize[3] + x]; in is_same4()
76 unsigned c0 = AV_RN16(frame->data[0] + y * frame->linesize[0] + 2 * x); in is_same4_16()
77 unsigned c1 = AV_RN16(frame->data[1] + y * frame->linesize[1] + 2 * x); in is_same4_16()
78 unsigned c2 = AV_RN16(frame->data[2] + y * frame->linesize[2] + 2 * x); in is_same4_16()
79 unsigned c3 = AV_RN16(frame->data[3] + y * frame->linesize[3] + 2 * x); in is_same4_16()
89 unsigned c0 = frame->data[0][y * frame->linesize[0] + x]; in is_same3()
90 unsigned c1 = frame->data[1][y * frame->linesize[1] + x]; in is_same3()
[all …]
Dvf_xfade.c223 const type *xf0 = (const type *)(a->data[p] + slice_start * a->linesize[p]); \
224 const type *xf1 = (const type *)(b->data[p] + slice_start * b->linesize[p]); \
225 type *dst = (type *)(out->data[p] + slice_start * out->linesize[p]); \
238 dst += out->linesize[p] / div; \
239 xf0 += a->linesize[p] / div; \
240 xf1 += b->linesize[p] / div; \
277 const type *xf0 = (const type *)(a->data[p] + slice_start * a->linesize[p]); \
278 const type *xf1 = (const type *)(b->data[p] + slice_start * b->linesize[p]); \
279 type *dst = (type *)(out->data[p] + slice_start * out->linesize[p]); \
286 dst += out->linesize[p] / div; \
[all …]
Davf_showwaves.c92 void (*draw_sample)(uint8_t *buf, int height, int linesize,
225 static void draw_sample_point_rgba_scale(uint8_t *buf, int height, int linesize, in draw_sample_point_rgba_scale() argument
230 buf[h * linesize + 0] += color[0]; in draw_sample_point_rgba_scale()
231 buf[h * linesize + 1] += color[1]; in draw_sample_point_rgba_scale()
232 buf[h * linesize + 2] += color[2]; in draw_sample_point_rgba_scale()
233 buf[h * linesize + 3] += color[3]; in draw_sample_point_rgba_scale()
237 static void draw_sample_point_rgba_full(uint8_t *buf, int height, int linesize, in draw_sample_point_rgba_full() argument
242 buf[h * linesize + 0] = color[0]; in draw_sample_point_rgba_full()
243 buf[h * linesize + 1] = color[1]; in draw_sample_point_rgba_full()
244 buf[h * linesize + 2] = color[2]; in draw_sample_point_rgba_full()
[all …]
Dvf_colorbalance.c159 const uint8_t *srcg = in->data[0] + slice_start * in->linesize[0]; in color_balance8_p()
160 const uint8_t *srcb = in->data[1] + slice_start * in->linesize[1]; in color_balance8_p()
161 const uint8_t *srcr = in->data[2] + slice_start * in->linesize[2]; in color_balance8_p()
162 const uint8_t *srca = in->data[3] + slice_start * in->linesize[3]; in color_balance8_p()
163 uint8_t *dstg = out->data[0] + slice_start * out->linesize[0]; in color_balance8_p()
164 uint8_t *dstb = out->data[1] + slice_start * out->linesize[1]; in color_balance8_p()
165 uint8_t *dstr = out->data[2] + slice_start * out->linesize[2]; in color_balance8_p()
166 uint8_t *dsta = out->data[3] + slice_start * out->linesize[3]; in color_balance8_p()
187 if (in != out && out->linesize[3]) in color_balance8_p()
191 srcg += in->linesize[0]; in color_balance8_p()
[all …]
Dvf_spp.c225 static inline void add_block(uint16_t *dst, int linesize, const int16_t block[64]) in add_block() argument
230 dst[0 + y*linesize] += block[0 + y*8]; in add_block()
231 dst[1 + y*linesize] += block[1 + y*8]; in add_block()
232 dst[2 + y*linesize] += block[2 + y*8]; in add_block()
233 dst[3 + y*linesize] += block[3 + y*8]; in add_block()
234 dst[4 + y*linesize] += block[4 + y*8]; in add_block()
235 dst[5 + y*linesize] += block[5 + y*8]; in add_block()
236 dst[6 + y*linesize] += block[6 + y*8]; in add_block()
237 dst[7 + y*linesize] += block[7 + y*8]; in add_block()
247 const int linesize = is_luma ? p->temp_linesize : FFALIGN(width+16, 16); in filter() local
[all …]
Dvf_w3fdif.c40 int linesize[4]; ///< bytes of pixel data per line for each plane member
104 const int16_t *coef, int linesize) in filter_simple_low() argument
108 for (i = 0; i < linesize; i++) { in filter_simple_low()
116 const int16_t *coef, int linesize) in filter_complex_low() argument
120 for (i = 0; i < linesize; i++) { in filter_complex_low()
131 const int16_t *coef, int linesize) in filter_simple_high() argument
135 for (i = 0; i < linesize; i++) { in filter_simple_high()
148 const int16_t *coef, int linesize) in filter_complex_high() argument
152 for (i = 0; i < linesize; i++) { in filter_complex_high()
166 static void filter_scale(uint8_t *out_pixel, const int32_t *work_pixel, int linesize, int max) in filter_scale() argument
[all …]
Dvf_ciescope.c72 ptrdiff_t linesize,
981 int const linesize, in find_tongue() argument
989 for (i = 0; i < w && pixels[row * linesize + i * 4 + 0] == 0; i++) in find_tongue()
1000 for (j = w - 1; j >= leftEdge && pixels[row * linesize + j * 4 + 0] == 0; j--) in find_tongue()
1008 static void draw_line(uint16_t *const pixels, int linesize, in draw_line() argument
1018 pixels[y0 * linesize + x0 * 4 + 0] = rgbcolor[0]; in draw_line()
1019 pixels[y0 * linesize + x0 * 4 + 1] = rgbcolor[1]; in draw_line()
1020 pixels[y0 * linesize + x0 * 4 + 2] = rgbcolor[2]; in draw_line()
1021 pixels[y0 * linesize + x0 * 4 + 3] = rgbcolor[3]; in draw_line()
1040 static void draw_rline(uint16_t *const pixels, int linesize, in draw_rline() argument
[all …]
Dvf_geq.c104 int linesize = picref->linesize[plane]; in getpix() local
120 linesize /= 2; in getpix()
122 return (1-y)*((1-x)*src16[xi + yi * linesize] + x*src16[xi + 1 + yi * linesize]) in getpix()
123 … + y *((1-x)*src16[xi + (yi+1) * linesize] + x*src16[xi + 1 + (yi+1) * linesize]); in getpix()
126 linesize /= 4; in getpix()
128 return (1-y)*((1-x)*src32[xi + yi * linesize] + x*src32[xi + 1 + yi * linesize]) in getpix()
129 … + y *((1-x)*src32[xi + (yi+1) * linesize] + x*src32[xi + 1 + (yi+1) * linesize]); in getpix()
131 return (1-y)*((1-x)*src[xi + yi * linesize] + x*src[xi + 1 + yi * linesize]) in getpix()
132 + y *((1-x)*src[xi + (yi+1) * linesize] + x*src[xi + 1 + (yi+1) * linesize]); in getpix()
140 linesize /= 2; in getpix()
[all …]
/third_party/ffmpeg/libavcodec/
Dimm4.c235 s->idsp.idct_put(frame->data[0] + y * frame->linesize[0] + x, in decode_intra()
236 frame->linesize[0], s->block[0]); in decode_intra()
237 s->idsp.idct_put(frame->data[0] + y * frame->linesize[0] + x + 8, in decode_intra()
238 frame->linesize[0], s->block[1]); in decode_intra()
239 s->idsp.idct_put(frame->data[0] + (y + 8) * frame->linesize[0] + x, in decode_intra()
240 frame->linesize[0], s->block[2]); in decode_intra()
241 s->idsp.idct_put(frame->data[0] + (y + 8) * frame->linesize[0] + x + 8, in decode_intra()
242 frame->linesize[0], s->block[3]); in decode_intra()
243 s->idsp.idct_put(frame->data[1] + (y >> 1) * frame->linesize[1] + (x >> 1), in decode_intra()
244 frame->linesize[1], s->block[4]); in decode_intra()
[all …]
Dvp9_mc_template.c59 ref1->data[0], ref1->linesize[0], tref1, in FN()
63 ref1->data[0], ref1->linesize[0], tref1, in FN()
71 ref1->data[1], ref1->linesize[1], in FN()
72 ref1->data[2], ref1->linesize[2], tref1, in FN()
78 ref1->data[1], ref1->linesize[1], in FN()
79 ref1->data[2], ref1->linesize[2], tref1, in FN()
92 ref1->data[1], ref1->linesize[1], in FN()
93 ref1->data[2], ref1->linesize[2], tref1, in FN()
100 ref2->data[0], ref2->linesize[0], tref2, in FN()
104 ref2->data[0], ref2->linesize[0], tref2, in FN()
[all …]
Dsheervideo.c76 dst_y += p->linesize[0] / 2; in decode_ca4i()
77 dst_u += p->linesize[1] / 2; in decode_ca4i()
78 dst_v += p->linesize[2] / 2; in decode_ca4i()
79 dst_a += p->linesize[3] / 2; in decode_ca4i()
119 dst_y += p->linesize[0] / 2; in decode_ca4p()
120 dst_u += p->linesize[1] / 2; in decode_ca4p()
121 dst_v += p->linesize[2] / 2; in decode_ca4p()
122 dst_a += p->linesize[3] / 2; in decode_ca4p()
136 pred_TL[0] = pred_L[0] = dst_y[-p->linesize[0] / 2]; in decode_ca4p()
137 pred_TL[1] = pred_L[1] = dst_u[-p->linesize[1] / 2]; in decode_ca4p()
[all …]
Dscpr.h77 int linesize, uint32_t *plx, uint32_t *ply, in decode_run_i() argument
93 dst[y * linesize + x] = clr; in decode_run_i()
107 dst[y * linesize + x] = dst[ly * linesize + lx]; in decode_run_i()
118 clr = dst[ly * linesize + lx]; in decode_run_i()
125 clr = dst[y * linesize + x + off + 1]; in decode_run_i()
126 dst[y * linesize + x] = clr; in decode_run_i()
144 int off1 = (ly * linesize + lx) * 4; in decode_run_i()
145 int off2 = ((y * linesize + x) + off) * 4; in decode_run_i()
163 dst[y * linesize + x] = clr; in decode_run_i()
186 clr = dst[y * linesize + x + off - z]; in decode_run_i()
[all …]
Dmv30.c299 uint8_t *dst, int linesize) in decode_intra_block() argument
306 s->bdsp.fill_block_tab[1](dst, 128, linesize, 8); in decode_intra_block()
312 s->bdsp.fill_block_tab[1](dst, block[0], linesize, 8); in decode_intra_block()
322 idct2_put(dst, linesize, block); in decode_intra_block()
330 idct_put(dst, linesize, block); in decode_intra_block()
340 uint8_t *dst, int linesize, in decode_inter_block() argument
347 copy_block8(dst, src, linesize, in_linesize, 8); in decode_inter_block()
353 update_inter_block(dst, linesize, src, in_linesize, block[0]); in decode_inter_block()
363 idct2_add(dst, linesize, src, in_linesize, block); in decode_inter_block()
371 idct_add(dst, linesize, src, in_linesize, block); in decode_inter_block()
[all …]
Dvc1_loopfilter.c220 dst = dest + (block_num & 2) * 4 * s->linesize + (block_num & 1) * 8; in vc1_i_h_loop_filter()
227 v->vc1dsp.vc1_h_loop_filter8(dst, 2 * s->linesize, pq); in vc1_i_h_loop_filter()
228 v->vc1dsp.vc1_h_loop_filter8(dst + s->linesize, 2 * s->linesize, pq); in vc1_i_h_loop_filter()
234 v->vc1dsp.vc1_h_loop_filter16(dst, s->linesize, pq); in vc1_i_h_loop_filter()
253 dst = dest + (block_num & 2) * 4 * s->linesize + (block_num & 1) * 8; in vc1_i_v_loop_filter()
260 v->vc1dsp.vc1_v_loop_filter16(dst, 2 * s->linesize, pq); in vc1_i_v_loop_filter()
261 v->vc1dsp.vc1_v_loop_filter16(dst + s->linesize, 2 * s->linesize, pq); in vc1_i_v_loop_filter()
267 v->vc1dsp.vc1_v_loop_filter16(dst, s->linesize, pq); in vc1_i_v_loop_filter()
289 dest = s->dest[0] - 16 * s->linesize - 16; in ff_vc1_i_loop_filter()
320 dest = s->dest[0] - 32 * s->linesize - 16; in ff_vc1_i_loop_filter()
[all …]
Dh264_loopfilter.c240 unsigned int linesize, in h264_filter_mb_fast_internal() argument
273 filter_mb_edgev( &img_y[4*0<<pixel_shift], linesize, bS4, qp0, a, b, h, 1); in h264_filter_mb_fast_internal()
275 filter_mb_edgev( &img_y[4*2<<pixel_shift], linesize, bS3, qp, a, b, h, 0); in h264_filter_mb_fast_internal()
277 filter_mb_edgeh( &img_y[4*0*linesize], linesize, bSH, qp1, a, b, h, 1); in h264_filter_mb_fast_internal()
279 filter_mb_edgeh( &img_y[4*2*linesize], linesize, bS3, qp, a, b, h, 0); in h264_filter_mb_fast_internal()
281 filter_mb_edgev( &img_y[4*1<<pixel_shift], linesize, bS3, qp, a, b, h, 0); in h264_filter_mb_fast_internal()
282 filter_mb_edgev( &img_y[4*2<<pixel_shift], linesize, bS3, qp, a, b, h, 0); in h264_filter_mb_fast_internal()
283 filter_mb_edgev( &img_y[4*3<<pixel_shift], linesize, bS3, qp, a, b, h, 0); in h264_filter_mb_fast_internal()
285 filter_mb_edgeh( &img_y[4*0*linesize], linesize, bSH, qp1, a, b, h, 1); in h264_filter_mb_fast_internal()
287 filter_mb_edgeh( &img_y[4*1*linesize], linesize, bS3, qp, a, b, h, 0); in h264_filter_mb_fast_internal()
[all …]
Deatgq.c119 ptrdiff_t linesize = frame->linesize[0]; in tgq_idct_put_mb() local
120 uint8_t *dest_y = frame->data[0] + (mb_y * 16 * linesize) + mb_x * 16; in tgq_idct_put_mb()
121 uint8_t *dest_cb = frame->data[1] + (mb_y * 8 * frame->linesize[1]) + mb_x * 8; in tgq_idct_put_mb()
122 uint8_t *dest_cr = frame->data[2] + (mb_y * 8 * frame->linesize[2]) + mb_x * 8; in tgq_idct_put_mb()
124 ff_ea_idct_put_c(dest_y , linesize, block[0]); in tgq_idct_put_mb()
125 ff_ea_idct_put_c(dest_y + 8, linesize, block[1]); in tgq_idct_put_mb()
126 ff_ea_idct_put_c(dest_y + 8 * linesize , linesize, block[2]); in tgq_idct_put_mb()
127 ff_ea_idct_put_c(dest_y + 8 * linesize + 8, linesize, block[3]); in tgq_idct_put_mb()
129 ff_ea_idct_put_c(dest_cb, frame->linesize[1], block[4]); in tgq_idct_put_mb()
130 ff_ea_idct_put_c(dest_cr, frame->linesize[2], block[5]); in tgq_idct_put_mb()
[all …]
Dloco.c218 p->linesize[0], buf, buf_size); in decode_frame()
221 p->linesize[1], buf, buf_size); in decode_frame()
224 p->linesize[2], buf, buf_size); in decode_frame()
228 p->linesize[0], buf, buf_size); in decode_frame()
231 p->linesize[2], buf, buf_size); in decode_frame()
234 p->linesize[1], buf, buf_size); in decode_frame()
237 …decoded = loco_decode_plane(l, p->data[1] + p->linesize[1]*(avctx->height-1), avctx->width, avctx-… in decode_frame()
238 -p->linesize[1], buf, buf_size); in decode_frame()
240 …decoded = loco_decode_plane(l, p->data[0] + p->linesize[0]*(avctx->height-1), avctx->width, avctx-… in decode_frame()
241 -p->linesize[0], buf, buf_size); in decode_frame()
[all …]
Ddxtory.c62 pic->data[1] += (avctx->height - 1) * pic->linesize[1]; in do_vflip()
63 pic->linesize[1] = -pic->linesize[1]; in do_vflip()
64 pic->data[2] += (avctx->height - 1) * pic->linesize[2]; in do_vflip()
65 pic->linesize[2] = -pic->linesize[2]; in do_vflip()
70 pic->data[0] += (avctx->height - 1) * pic->linesize[0]; in do_vflip()
71 pic->linesize[0] = -pic->linesize[0]; in do_vflip()
74 pic->data[0] += (avctx->height - 1) * pic->linesize[0]; in do_vflip()
75 pic->linesize[0] = -pic->linesize[0]; in do_vflip()
76 pic->data[1] += (AV_CEIL_RSHIFT(avctx->height, 2) - 1) * pic->linesize[1]; in do_vflip()
77 pic->linesize[1] = -pic->linesize[1]; in do_vflip()
[all …]
Dh264_mb_template.c48 int linesize, uvlinesize /*dct_offset*/; in FUNC() local
56 dest_y = h->cur_pic.f->data[0] + ((mb_x << PIXEL_SHIFT) + mb_y * sl->linesize) * 16; in FUNC()
60 …h->vdsp.prefetch(dest_y + (sl->mb_x & 3) * 4 * sl->linesize + (64 << PIXEL_SHIFT), sl->linesize in FUNC()
66 linesize = sl->mb_linesize = sl->linesize * 2; in FUNC()
70 dest_y -= sl->linesize * 15; in FUNC()
93 linesize = sl->mb_linesize = sl->linesize; in FUNC()
107 uint16_t *tmp_y = (uint16_t *)(dest_y + i * linesize); in FUNC()
135 memcpy(dest_y + i * linesize, sl->intra_pcm_ptr + i * 16, 16); in FUNC()
155 xchg_mb_border(h, sl, dest_y, dest_cb, dest_cr, linesize, in FUNC()
165 block_offset, linesize, dest_y, 0); in FUNC()
[all …]
Dwmv2.c58 ptrdiff_t offset, linesize, uvlinesize; in ff_mspel_motion() local
76 linesize = s->linesize; in ff_mspel_motion()
78 ptr = ref_picture[0] + (src_y * linesize) + src_x; in ff_mspel_motion()
82 s->vdsp.emulated_edge_mc(s->sc.edge_emu_buffer, ptr - 1 - s->linesize, in ff_mspel_motion()
83 s->linesize, s->linesize, 19, 19, in ff_mspel_motion()
86 ptr = s->sc.edge_emu_buffer + 1 + s->linesize; in ff_mspel_motion()
90 w->wdsp.put_mspel_pixels_tab[dxy](dest_y, ptr, linesize); in ff_mspel_motion()
91 w->wdsp.put_mspel_pixels_tab[dxy](dest_y + 8, ptr + 8, linesize); in ff_mspel_motion()
92 w->wdsp.put_mspel_pixels_tab[dxy](dest_y + 8 * linesize, ptr + 8 * linesize, linesize); in ff_mspel_motion()
93 w->wdsp.put_mspel_pixels_tab[dxy](dest_y + 8 + 8 * linesize, ptr + 8 + 8 * linesize, linesize); in ff_mspel_motion()
Djvdec.c66 static inline void decode2x2(GetBitContext *gb, uint8_t *dst, int linesize) in decode2x2() argument
74 memset(dst + j * linesize, v[0], 2); in decode2x2()
81 dst[j * linesize + i] = v[get_bits1(gb)]; in decode2x2()
86 dst[j * linesize + i] = get_bits(gb, 8); in decode2x2()
93 static inline void decode4x4(GetBitContext *gb, uint8_t *dst, int linesize) in decode4x4() argument
101 memset(dst + j * linesize, v[0], 4); in decode4x4()
108 dst[j * linesize + i] = v[get_bits1(gb)]; in decode4x4()
110 dst[(j + 1) * linesize + i] = v[get_bits1(gb)]; in decode4x4()
116 decode2x2(gb, dst + j * linesize + i, linesize); in decode4x4()
123 static inline void decode8x8(GetBitContext *gb, uint8_t *dst, int linesize, in decode8x8() argument
[all …]

12345678910>>...29