Home
last modified time | relevance | path

Searched refs:dst_linesize (Results 1 – 25 of 84) sorted by relevance

1234

/third_party/ffmpeg/libavfilter/
Dvsrc_mptestsrc.c106 static void idct(uint8_t *dst, int dst_linesize, int src[64]) in idct() argument
129 dst[dst_linesize*i + j] = av_clip_uint8(lrint(sum)); in idct()
134 static void draw_dc(uint8_t *dst, int dst_linesize, int color, int w, int h) in draw_dc() argument
140 dst[x + y*dst_linesize] = color; in draw_dc()
143 static void draw_basis(uint8_t *dst, int dst_linesize, int amp, int freq, int dc) in draw_basis() argument
151 idct(dst, dst_linesize, src); in draw_basis()
154 static void draw_cbp(uint8_t *dst[3], int dst_linesize[3], int cbp, int amp, int dc) in draw_cbp()
156 if (cbp&1) draw_basis(dst[0] , dst_linesize[0], amp, 1, dc); in draw_cbp()
157 if (cbp&2) draw_basis(dst[0]+8 , dst_linesize[0], amp, 1, dc); in draw_cbp()
158 if (cbp&4) draw_basis(dst[0]+ 8*dst_linesize[0], dst_linesize[0], amp, 1, dc); in draw_cbp()
[all …]
Dvf_deblock.c58 void (*deblockh)(uint8_t *dst, ptrdiff_t dst_linesize, int block,
60 void (*deblockv)(uint8_t *dst, ptrdiff_t dst_linesize, int block,
94 static void deblockh##name##_weak(uint8_t *dstp, ptrdiff_t dst_linesize, int block, \
101 dst_linesize /= ldiv; \
104 int delta = dst[x] - dst[x - dst_linesize]; \
108 FFABS(dst[x - 1 * dst_linesize] - dst[x - 2 * dst_linesize]) >= bth || \
109 FFABS(dst[x + 0 * dst_linesize] - dst[x + 1 * dst_linesize]) >= gth) \
112 A = dst[x - 2 * dst_linesize]; \
113 B = dst[x - 1 * dst_linesize]; \
114 C = dst[x + 0 * dst_linesize]; \
[all …]
Dvf_transpose.c75 uint8_t *dst, ptrdiff_t dst_linesize, in transpose_block_8_c() argument
79 for (y = 0; y < h; y++, dst += dst_linesize, src++) in transpose_block_8_c()
85 uint8_t *dst, ptrdiff_t dst_linesize) in transpose_8x8_8_c() argument
87 transpose_block_8_c(src, src_linesize, dst, dst_linesize, 8, 8); in transpose_8x8_8_c()
91 uint8_t *dst, ptrdiff_t dst_linesize, in transpose_block_16_c() argument
95 for (y = 0; y < h; y++, dst += dst_linesize, src += 2) in transpose_block_16_c()
101 uint8_t *dst, ptrdiff_t dst_linesize) in transpose_8x8_16_c() argument
103 transpose_block_16_c(src, src_linesize, dst, dst_linesize, 8, 8); in transpose_8x8_16_c()
107 uint8_t *dst, ptrdiff_t dst_linesize, in transpose_block_24_c() argument
111 for (y = 0; y < h; y++, dst += dst_linesize) { in transpose_block_24_c()
[all …]
Dvf_dctdnoiz.c64 float *dst, int dst_linesize,
66 void (*color_decorrelation)(float **dst, int dst_linesize,
69 void (*color_correlation)(uint8_t **dst, int dst_linesize,
355 float *dst, int dst_linesize, \
381 idct##bsize##_1d(dst, tmp_block1, dst_linesize, 1, bsize, 1, 1); \
386 float *dst, int dst_linesize, int thread_id) \
388 filter_freq_##bsize(src, src_linesize, dst, dst_linesize, NULL, NULL, s->th); \
393 float *dst, int dst_linesize, int thread_id) \
395 filter_freq_##bsize(src, src_linesize, dst, dst_linesize, \
411 static av_always_inline void color_decorrelation(float **dst, int dst_linesize, in color_decorrelation() argument
[all …]
Dvf_smartblur.c177 static void blur(uint8_t *dst, const int dst_linesize, in blur() argument
189 int dst_linesize_array[4] = {dst_linesize}; in blur()
198 filtered = dst[x + y * dst_linesize]; in blur()
203 dst[x + y * dst_linesize] = orig; in blur()
206 dst[x + y * dst_linesize] = orig - threshold; in blur()
209 dst[x + y * dst_linesize] = orig; in blur()
212 dst[x + y * dst_linesize] = orig + threshold; in blur()
220 filtered = dst[x + y * dst_linesize]; in blur()
225 dst[x + y * dst_linesize] = orig; in blur()
228 dst[x + y * dst_linesize] = filtered - threshold; in blur()
[all …]
Dvf_kerndeint.c134 int src_linesize, psrc_linesize, dst_linesize, bwidth; in filter_frame() local
162 dst_linesize = outpic->linesize[plane]; in filter_frame()
164 dstp = dstp_saved + (1 - order) * dst_linesize; in filter_frame()
169 dstp += 2 * dst_linesize; in filter_frame()
173 …memcpy(dstp_saved + order * dst_linesize, srcp_saved + (1 - order) * src_linesize, … in filter_frame()
174 …memcpy(dstp_saved + (2 + order ) * dst_linesize, srcp_saved + (3 - order) * src_linesize, … in filter_frame()
175 …memcpy(dstp_saved + (h - 2 + order) * dst_linesize, srcp_saved + (h - 1 - order) * src_linesize, … in filter_frame()
176 …memcpy(dstp_saved + (h - 4 + order) * dst_linesize, srcp_saved + (h - 3 - order) * src_linesize, … in filter_frame()
199 dstp = dstp_saved + 5 * dst_linesize - (1 - order) * dst_linesize; in filter_frame()
279 dstp += 2 * dst_linesize; in filter_frame()
Dvf_edgedetect.c147 uint8_t *dst, int dst_linesize, in gaussian_blur() argument
152 memcpy(dst, src, w); dst += dst_linesize; src += src_linesize; in gaussian_blur()
154 memcpy(dst, src, w); dst += dst_linesize; src += src_linesize; in gaussian_blur()
185 dst += dst_linesize; in gaussian_blur()
189 memcpy(dst, src, w); dst += dst_linesize; src += src_linesize; in gaussian_blur()
230 uint16_t *dst, int dst_linesize, in sobel() argument
237 dst += dst_linesize; in sobel()
257 uint8_t *dst, int dst_linesize, in non_maximum_suppression() argument
270 dst += dst_linesize; in non_maximum_suppression()
285 uint8_t *dst, int dst_linesize, in double_threshold() argument
[all …]
Ddrawutils.h84 uint8_t *dst[], int dst_linesize[],
96 uint8_t *dst[], int dst_linesize[],
103 uint8_t *dst[], int dst_linesize[],
126 uint8_t *dst[], int dst_linesize[], int dst_w, int dst_h,
Dvf_il.c115 int dst_linesize, int src_linesize, in interleave() argument
126 memcpy(dst + dst_linesize * y , src + src_linesize * (y * 2 + a), w); in interleave()
127 memcpy(dst + dst_linesize * (y + m), src + src_linesize * (y * 2 + b), w); in interleave()
132 memcpy(dst + dst_linesize * y * 2 , src + src_linesize * (y * 2 + a), w); in interleave()
133 memcpy(dst + dst_linesize * (y * 2 + 1), src + src_linesize * (y * 2 + b), w); in interleave()
138 memcpy(dst + dst_linesize * (y * 2 + a), src + src_linesize * y , w); in interleave()
139 memcpy(dst + dst_linesize * (y * 2 + b), src + src_linesize * (y + m), w); in interleave()
Dvf_deband.c145 const int dst_linesize = out->linesize[p]; in deband_8_c() local
169 dst_ptr[y * dst_linesize + x] = diff < thr ? avg : src0; in deband_8_c()
171 dst_ptr[y * dst_linesize + x] = (FFABS(src0 - ref0) < thr) && in deband_8_c()
231 const int dst_linesize = out->linesize[p]; in deband_8_coupling_c() local
233 out->data[p][y * dst_linesize + x] = avg[p]; in deband_8_coupling_c()
237 const int dst_linesize = out->linesize[p]; in deband_8_coupling_c() local
239 out->data[p][y * dst_linesize + x] = src[p]; in deband_8_coupling_c()
296 const int dst_linesize = out->linesize[p] / 2; in deband_16_coupling_c() local
297 uint16_t *dst = (uint16_t *)out->data[p] + y * dst_linesize + x; in deband_16_coupling_c()
303 const int dst_linesize = out->linesize[p] / 2; in deband_16_coupling_c() local
[all …]
Ddrawutils.c203 uint8_t *dst[], int dst_linesize[], in ff_copy_rectangle2() argument
213 q = pointer_at(draw, dst, dst_linesize, plane, dst_x, dst_y); in ff_copy_rectangle2()
219 q += dst_linesize[plane]; in ff_copy_rectangle2()
225 uint8_t *dst[], int dst_linesize[], in ff_fill_rectangle() argument
233 p0 = pointer_at(draw, dst, dst_linesize, plane, dst_x, dst_y); in ff_fill_rectangle()
252 p = p0 + dst_linesize[plane]; in ff_fill_rectangle()
255 p += dst_linesize[plane]; in ff_fill_rectangle()
352 uint8_t *dst[], int dst_linesize[], in ff_blend_rectangle() argument
376 p0 = pointer_at(draw, dst, dst_linesize, plane, x0, y0); in ff_blend_rectangle()
399 p += dst_linesize[plane]; in ff_blend_rectangle()
[all …]
Dvf_removelogo.c257 uint8_t *dst_data, int dst_linesize, in generate_half_size_image() argument
269 dst_data[(y * dst_linesize) + x] = in generate_half_size_image()
274 dst_data[(y * dst_linesize) + x] = FFMIN(1, dst_data[(y * dst_linesize) + x]); in generate_half_size_image()
278 convert_mask_to_strength_mask(dst_data, dst_linesize, in generate_half_size_image()
463 uint8_t *dst_data, int dst_linesize, in blur_image() argument
473 av_image_copy_plane(dst_data, dst_linesize, src_data, src_linesize, w, h); in blur_image()
477 dst_line = dst_data + dst_linesize * y; in blur_image()
484 dst_data, dst_linesize, in blur_image()
Dvf_waveform.c389 const int dst_linesize = out->linesize[component] / 2; in envelope_instant16() local
402 dst = (uint16_t *)out->data[component] + y * dst_linesize + x; in envelope_instant16()
409 dst = (uint16_t *)out->data[component] + y * dst_linesize + x; in envelope_instant16()
418 dst = (uint16_t *)out->data[component] + y * dst_linesize; in envelope_instant16()
437 const int dst_linesize = out->linesize[component]; in envelope_instant() local
449 dst = out->data[component] + y * dst_linesize + x; in envelope_instant()
456 dst = out->data[component] + y * dst_linesize + x; in envelope_instant()
465 dst = out->data[component] + y * dst_linesize; in envelope_instant()
484 const int dst_linesize = out->linesize[component] / 2; in envelope_peak16() local
499 dst = (uint16_t *)out->data[component] + y * dst_linesize + x; in envelope_peak16()
[all …]
Dlswsutils.c22 int ff_scale_image(uint8_t *dst_data[4], int dst_linesize[4], in ff_scale_image()
42 if ((ret = av_image_alloc(dst_data, dst_linesize, dst_w, dst_h, dst_pix_fmt, 16)) < 0) in ff_scale_image()
45 …s_scale(sws_ctx, (const uint8_t * const*)src_data, src_linesize, 0, src_h, dst_data, dst_linesize); in ff_scale_image()
Dvf_hue.c289 uint8_t *ldst, const int dst_linesize, in apply_luma_lut() argument
300 ldst += dst_linesize; in apply_luma_lut()
305 uint16_t *ldst, const int dst_linesize, in apply_luma_lut10() argument
316 ldst += dst_linesize; in apply_luma_lut10()
321 uint8_t *udst, uint8_t *vdst, const int dst_linesize, in apply_lut() argument
338 udst += dst_linesize; in apply_lut()
339 vdst += dst_linesize; in apply_lut()
344 uint16_t *udst, uint16_t *vdst, const int dst_linesize, in apply_lut10() argument
361 udst += dst_linesize; in apply_lut10()
362 vdst += dst_linesize; in apply_lut10()
Dvf_epx.c57 const int dst_linesize = out->linesize[p] / 4; in epx2_slice() local
69 dst_line[0] = dst + dst_linesize*2*y; in epx2_slice()
70 dst_line[1] = dst + dst_linesize*(2*y+1); in epx2_slice()
124 const int dst_linesize = out->linesize[p] / 4; in epx3_slice() local
136 dst_line[0] = dst + dst_linesize*3*y; in epx3_slice()
137 dst_line[1] = dst + dst_linesize*(3*y+1); in epx3_slice()
138 dst_line[2] = dst + dst_linesize*(3*y+2); in epx3_slice()
Dvf_hqx.c169 static av_always_inline void hq3x_interp_2x1(uint32_t *dst, int dst_linesize, in hq3x_interp_2x1() argument
180 uint32_t *dst00 = &dst[dst_linesize*(pos00>>1) + (pos00&1)]; in hq3x_interp_2x1()
181 uint32_t *dst01 = &dst[dst_linesize*(pos01>>1) + (pos01&1)]; in hq3x_interp_2x1()
235 static av_always_inline void hq4x_interp_2x2(uint32_t *dst, int dst_linesize, in hq4x_interp_2x2() argument
246 uint32_t *dst00 = &dst[dst_linesize*(pos00>>1) + (pos00&1)]; in hq4x_interp_2x2()
247 uint32_t *dst01 = &dst[dst_linesize*(pos01>>1) + (pos01&1)]; in hq4x_interp_2x2()
248 uint32_t *dst10 = &dst[dst_linesize*(pos10>>1) + (pos10&1)]; in hq4x_interp_2x2()
249 uint32_t *dst11 = &dst[dst_linesize*(pos11>>1) + (pos11&1)]; in hq4x_interp_2x2()
392 const int dst_linesize = out->linesize[0]; in hqx_filter() local
394 uint8_t *dst = out->data[0] + slice_start * dst_linesize * n; in hqx_filter()
[all …]
Dvf_vignette.c162 int dst_linesize = s->fmap_linesize; in update_context() local
187 dst += dst_linesize; in update_context()
193 dst += dst_linesize; in update_context()
235 const int dst_linesize = out->linesize[0]; in filter_frame() local
250 dst += dst_linesize; in filter_frame()
261 const int dst_linesize = out->linesize[plane]; in filter_frame() local
279 dst += dst_linesize; in filter_frame()
Dvf_spp.c175 int dst_linesize, int src_linesize, in store_slice_c() argument
185 dst[x + y*dst_linesize + pos] = temp; \ in store_slice_c()
205 int dst_linesize, int src_linesize, in store_slice16_c() argument
216 dst[x + y*dst_linesize + pos] = temp; \ in store_slice16_c()
252 int dst_linesize, int src_linesize, int width, int height, in filter() argument
309 p->store_slice(dst + (y - 8) * dst_linesize, p->temp + 8 + y*linesize, in filter()
310 dst_linesize, linesize, width, in filter()
314 store_slice16_c((uint16_t*)(dst + (y - 8) * dst_linesize), p->temp + 8 + y*linesize, in filter()
315 dst_linesize/2, linesize, width, in filter()
Dvf_blend.c125 uint8_t *dst, ptrdiff_t dst_linesize, \
129 av_image_copy_plane(dst, dst_linesize, src, src ## _linesize, \
146 uint8_t *dst, ptrdiff_t dst_linesize, in blend_normal_8bit() argument
157 dst += dst_linesize; in blend_normal_8bit()
165 uint8_t *_dst, ptrdiff_t dst_linesize, in blend_normal_16bit() argument
174 dst_linesize /= 2; in blend_normal_16bit()
182 dst += dst_linesize; in blend_normal_16bit()
190 uint8_t *_dst, ptrdiff_t dst_linesize, in blend_normal_32bit() argument
199 dst_linesize /= 4; in blend_normal_32bit()
207 dst += dst_linesize; in blend_normal_32bit()
[all …]
Dvf_showpalette.c70 const int dst_linesize = out->linesize[0] >> 2; in disp_palette() local
77 dst[(y*dst_linesize + x) * size + j*dst_linesize + i] = pal[y*16 + x]; in disp_palette()
/third_party/ffmpeg/libavutil/x86/
Dimgutils_init.c30 void ff_image_copy_plane_uc_from_sse4(uint8_t *dst, ptrdiff_t dst_linesize,
34 int ff_image_copy_plane_uc_from_x86(uint8_t *dst, ptrdiff_t dst_linesize, in ff_image_copy_plane_uc_from_x86() argument
42 bw_aligned <= dst_linesize && bw_aligned <= src_linesize) in ff_image_copy_plane_uc_from_x86()
43 ff_image_copy_plane_uc_from_sse4(dst, dst_linesize, src, src_linesize, in ff_image_copy_plane_uc_from_x86()
/third_party/ffmpeg/libavutil/
Dimgutils.c343 static void image_copy_plane(uint8_t *dst, ptrdiff_t dst_linesize, in image_copy_plane() argument
350 av_assert0(FFABS(dst_linesize) >= bytewidth); in image_copy_plane()
353 dst += dst_linesize; in image_copy_plane()
358 static void image_copy_plane_uc_from(uint8_t *dst, ptrdiff_t dst_linesize, in image_copy_plane_uc_from() argument
365 ret = ff_image_copy_plane_uc_from_x86(dst, dst_linesize, src, src_linesize, in image_copy_plane_uc_from()
370 image_copy_plane(dst, dst_linesize, src, src_linesize, bytewidth, height); in image_copy_plane_uc_from()
373 void av_image_copy_plane(uint8_t *dst, int dst_linesize, in av_image_copy_plane() argument
377 image_copy_plane(dst, dst_linesize, src, src_linesize, bytewidth, height); in av_image_copy_plane()
446 int av_image_fill_arrays(uint8_t *dst_data[4], int dst_linesize[4], in av_image_fill_arrays()
456 ret = av_image_fill_linesizes(dst_linesize, pix_fmt, width); in av_image_fill_arrays()
[all …]
Dimgutils.h123 void av_image_copy_plane(uint8_t *dst, int dst_linesize,
181 int av_image_fill_arrays(uint8_t *dst_data[4], int dst_linesize[4],
282 int av_image_fill_black(uint8_t *dst_data[4], const ptrdiff_t dst_linesize[4],
/third_party/ffmpeg/doc/examples/
Dresampling_audio.c87 int src_linesize, dst_linesize; in main() local
155 ret = av_samples_alloc_array_and_samples(&dst_data, &dst_linesize, dst_nb_channels, in main()
172 ret = av_samples_alloc(dst_data, &dst_linesize, dst_nb_channels, in main()
185 dst_bufsize = av_samples_get_buffer_size(&dst_linesize, dst_nb_channels, in main()

1234