Home
last modified time | relevance | path

Searched refs:dither (Results 1 – 25 of 266) sorted by relevance

1234567891011

/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/
Dvideo-dither.c47 void (*func) (GstVideoDither * dither, gpointer pixels, guint x, guint y,
58 dither_none_u8_mask (GstVideoDither * dither, gpointer pixels, guint x, guint y, in dither_none_u8_mask() argument
63 video_orc_dither_none_4u8_mask (p + (x * 4), dither->orc_mask32, width); in dither_none_u8_mask()
67 dither_none_u16_mask (GstVideoDither * dither, gpointer pixels, guint x, in dither_none_u16_mask() argument
72 video_orc_dither_none_4u16_mask (p + (x * 4), dither->orc_mask64, width); in dither_none_u16_mask()
76 dither_verterr_u8 (GstVideoDither * dither, gpointer pixels, guint x, guint y, in dither_verterr_u8() argument
80 guint16 *e = dither->errors; in dither_verterr_u8()
86 dither->orc_mask64, width); in dither_verterr_u8()
90 dither_verterr_u16 (GstVideoDither * dither, gpointer pixels, guint x, guint y, in dither_verterr_u16() argument
94 guint16 *e = dither->errors; in dither_verterr_u16()
[all …]
/third_party/ffmpeg/libswresample/
Ddither.c27 double scale = s->dither.noise_scale; in swri_get_dither()
39 switch(s->dither.method){ in swri_get_dither()
42 av_assert0(s->dither.method < SWR_DITHER_NB); in swri_get_dither()
54 switch(s->dither.method){ in swri_get_dither()
56 av_assert0(s->dither.method < SWR_DITHER_NB); in swri_get_dither()
84 if (s->dither.method > SWR_DITHER_TRIANGULAR_HIGHPASS && s->dither.method <= SWR_DITHER_NS) in swri_dither_init()
95 …if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_S32 && (s->dither.output_sample_bits&31… in swri_dither_init()
100 scale *= s->dither.scale; in swri_dither_init()
102 if (out_fmt == AV_SAMPLE_FMT_S32 && s->dither.output_sample_bits) in swri_dither_init()
103 scale *= 1<<(32-s->dither.output_sample_bits); in swri_dither_init()
[all …]
Ddither_template.c44 int pos = s->dither.ns_pos; in RENAME()
46 int taps = s->dither.ns_taps; in RENAME()
47 float S = s->dither.ns_scale; in RENAME()
48 float S_1 = s->dither.ns_scale_1; in RENAME()
51 av_assert2((taps&3) != 3 || s->dither.ns_coeffs[taps] == 0); in RENAME()
54 const float *noise = ((const float *)noises->ch[ch]) + s->dither.noise_pos; in RENAME()
57 float *ns_errors = s->dither.ns_errors[ch]; in RENAME()
58 const float *ns_coeffs = s->dither.ns_coeffs; in RENAME()
59 pos = s->dither.ns_pos; in RENAME()
79 s->dither.ns_pos = pos; in RENAME()
Dswresample.c126 free_temp(&s->dither.noise); in clear_context()
127 free_temp(&s->dither.temp); in clear_context()
184 s->dither.method = s->user_dither_method; in swr_init()
338 if(!s->resample && !s->rematrix && !s->channel_map && !s->dither.method){ in swr_init()
379 s->dither.noise = s->preout; in swr_init()
380 s->dither.temp = s->preout; in swr_init()
381 if (s->dither.method > SWR_DITHER_NS) { in swr_init()
382 s->dither.noise.bps = 4; in swr_init()
383 s->dither.noise.fmt = AV_SAMPLE_FMT_FLTP; in swr_init()
384 s->dither.noise_scale = 1; in swr_init()
[all …]
/third_party/cups-filters/filter/
Dimagetoraster.c1723 *dither; /* Pointer into dither array */ in format_CMY() local
1749 dither = Floyd16x16[y & 15]; in format_CMY()
1753 if (*r0++ > dither[x & 15]) in format_CMY()
1757 if (*r0++ > dither[x & 15]) in format_CMY()
1761 if (*r0++ > dither[x & 15]) in format_CMY()
1775 dither = Floyd8x8[y & 7]; in format_CMY()
1779 if ((r0[0] & 63) > dither[x & 7]) in format_CMY()
1784 if ((r0[1] & 63) > dither[x & 7]) in format_CMY()
1789 if ((r0[2] & 63) > dither[x & 7]) in format_CMY()
1797 dither = Floyd4x4[y & 3]; in format_CMY()
[all …]
/third_party/ffmpeg/libavcodec/
Dcljrenc.c45 uint32_t dither= avctx->frame_number; in encode_frame() local
71 case 0: dither = 0x492A0000; break; in encode_frame()
72 case 1: dither = dither * 1664525 + 1013904223; break; in encode_frame()
73 case 2: dither = ordered_dither[ y&1 ][ (x>>2)&1 ];break; in encode_frame()
80 put_bits(&pb, 5, (249*(luma[3] + (dither>>29) )) >> 11); in encode_frame()
81 put_bits(&pb, 5, (249*(luma[2] + ((dither>>26)&7))) >> 11); in encode_frame()
82 put_bits(&pb, 5, (249*(luma[1] + ((dither>>23)&7))) >> 11); in encode_frame()
83 put_bits(&pb, 5, (249*(luma[0] + ((dither>>20)&7))) >> 11); in encode_frame()
85 put_bits(&pb, 6, (253*(*(cb++) + ((dither>>18)&3))) >> 10); in encode_frame()
86 put_bits(&pb, 6, (253*(*(cr++) + ((dither>>16)&3))) >> 10); in encode_frame()
Daptx.c395 channel->dither[subband] = (unsigned)d << (23 - 5*subband); in ff_aptx_generate_dither()
400 int32_t quantized_sample, int32_t dither, in aptx_invert_quantization() argument
410 …qr = rshift64_clip24((qr * (1LL<<32)) + MUL64(dither, tables->invert_quantize_dither_factors[idx])… in aptx_invert_quantization()
465 int32_t quantized_sample, int32_t dither, in aptx_process_subband() argument
470 aptx_invert_quantization(invert_quantize, quantized_sample, dither, tables); in aptx_process_subband()
503 channel->dither[subband], in ff_aptx_invert_quantize_and_prediction()
/third_party/libsnd/src/
Ddither.c90 pdither = psf->dither ; /* This may be NULL. */ in dither_init()
127 pdither = psf->dither = calloc (1, sizeof (DITHER_DATA)) ; in dither_init()
154 pdither = psf->dither = calloc (1, sizeof (DITHER_DATA)) ; in dither_init()
221 if ((pdither = psf->dither) == NULL) in dither_write_short()
261 if ((pdither = psf->dither) == NULL) in dither_write_int()
307 if ((pdither = psf->dither) == NULL) in dither_write_float()
352 if ((pdither = psf->dither) == NULL) in dither_write_double()
446 DO_NOT_USE_sf_dither_short (const SF_DITHER_INFO *dither, const short *in, short *out, int frames, …
449 if (! dither)
452 switch (dither->type & SFD_TYPEMASK)
[all …]
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/
Daudio-quantize.c44 GstAudioDitherMethod dither; member
114 #define RANDOM_INT_DITHER(dither) \ argument
115 (- dither + (gst_fast_random_int32 () & ((dither << 1) - 1)))
125 gint32 dither, *d; in setup_dither_buf() local
136 switch (quant->dither) { in setup_dither_buf()
145 dither = 1 << (shift); in setup_dither_buf()
147 d[i] = bias + RANDOM_INT_DITHER (dither); in setup_dither_buf()
151 dither = 1 << (shift - 1); in setup_dither_buf()
153 d[i] = bias + RANDOM_INT_DITHER (dither) + RANDOM_INT_DITHER (dither); in setup_dither_buf()
160 dither = 1 << (shift - 1); in setup_dither_buf()
[all …]
/third_party/libsnd/tests/
Ddither_test.c140 SF_DITHER_INFO dither ; in dither_test() local
157 memset (&dither, 0, sizeof (dither)) ; in dither_test()
158 dither.type = SFD_WHITE ; in dither_test()
159 dither.level = 0 ; in dither_test()
161 if (sf_command (file, SFC_SET_DITHER_ON_WRITE, &dither, sizeof (dither)) != 0) in dither_test()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_blend.c117 .dither_mode_mrt0 = cso->dither ? DITHER_ALWAYS : DITHER_DISABLE, in __fd6_setup_blend_variant()
118 .dither_mode_mrt1 = cso->dither ? DITHER_ALWAYS : DITHER_DISABLE, in __fd6_setup_blend_variant()
119 .dither_mode_mrt2 = cso->dither ? DITHER_ALWAYS : DITHER_DISABLE, in __fd6_setup_blend_variant()
120 .dither_mode_mrt3 = cso->dither ? DITHER_ALWAYS : DITHER_DISABLE, in __fd6_setup_blend_variant()
121 .dither_mode_mrt4 = cso->dither ? DITHER_ALWAYS : DITHER_DISABLE, in __fd6_setup_blend_variant()
122 .dither_mode_mrt5 = cso->dither ? DITHER_ALWAYS : DITHER_DISABLE, in __fd6_setup_blend_variant()
123 .dither_mode_mrt6 = cso->dither ? DITHER_ALWAYS : DITHER_DISABLE, in __fd6_setup_blend_variant()
125 cso->dither ? DITHER_ALWAYS : DITHER_DISABLE, )); in __fd6_setup_blend_variant()
/third_party/ffmpeg/libavdevice/
Dcaca.c34 caca_dither_t *dither; member
54 if (c->dither) { in caca_write_trailer()
55 caca_free_dither(c->dither); in caca_write_trailer()
56 c->dither = NULL; in caca_write_trailer()
78 const char *const *thing = caca_get_dither_## thing ##_list(c->dither); \
144 c->dither = caca_create_dither(bpp, encctx->width, encctx->height, in caca_write_header()
147 if (!c->dither) { in caca_write_header()
154 if (caca_set_dither_##opt(c->dither, c->opt) < 0) { \ in caca_write_header()
196 caca_dither_bitmap(c->canvas, 0, 0, c->window_width, c->window_height, c->dither, pkt->data); in caca_write_packet()
/third_party/ffmpeg/tests/checkasm/
Dsw_scale.c43 const uint8_t *dither, int offset) in ref_function() argument
46 d = ((filterSize - 1) * 8 + dither[0]) >> 4; in ref_function()
76 int dstW, const uint8_t *dither, int offset); in check_yuv2yuvX()
83 LOCAL_ALIGNED_8(uint8_t, dither, [LARGEST_INPUT_SIZE]); in check_yuv2yuvX()
89 memset(dither, d_val, LARGEST_INPUT_SIZE); in check_yuv2yuvX()
118 … ref_function(&filter_coeff[0], filter_sizes[fsi], src, dst0, dstW - osi, dither, osi); in check_yuv2yuvX()
121 … call_new((const int16_t*)vFilterData, filter_sizes[fsi], src, dst1, dstW - osi, dither, osi); in check_yuv2yuvX()
125 … bench_new((const int16_t*)vFilterData, filter_sizes[fsi], src, dst1, dstW - osi, dither, osi); in check_yuv2yuvX()
/third_party/cups-filters/cupsfilters/
Dtestdither.c58 cups_dither_t *dither; /* Dither state */ in main() local
111 dither = cupsDitherNew(512); in main()
136 cupsDitherLine(dither, lut, line, 1, pixels); in main()
165 cupsDitherDelete(dither); in main()
/third_party/ffmpeg/libswscale/ppc/
Dswscale_ppc_template.c28 const uint8_t *dither, int offset, int x) in FUNC()
39 val[i] = dither[(x + i + offset) & 7] << 12; in FUNC()
71 const uint8_t *dither, int offset, int x) in yuv2planeX_u() argument
76 int t = dither[(i + offset) & 7] << 12; in yuv2planeX_u()
85 const uint8_t *dither, int offset) in FUNC()
90 yuv2planeX_u(filter, filterSize, src, dest, dst_u, dither, offset, 0); in FUNC()
93 FUNC(yuv2planeX_8_16)(filter, filterSize, src, dest + i, dither, in FUNC()
96 yuv2planeX_u(filter, filterSize, src, dest, dstW, dither, offset, i); in FUNC()
/third_party/skia/gm/
Dgradients.cpp190 GradientsGM(bool dither) : fDither(dither) {} in GradientsGM() argument
241 Gradients4fGM(bool dither) : fDither(dither) {} in Gradients4fGM() argument
292 GradientsLocalPerspectiveGM(bool dither) : fDither(dither) { in GradientsLocalPerspectiveGM() argument
343 GradientsViewPerspectiveGM(bool dither) : INHERITED(dither) { } in GradientsViewPerspectiveGM() argument
386 GradientsDegenrate2PointGM(bool dither) : fDither(dither) {} in GradientsDegenrate2PointGM() argument
459 ClampedGradientsGM(bool dither) : fDither(dither) {} in ClampedGradientsGM() argument
526 RadialGradient2GM(bool dither) : fDither(dither) {} in RadialGradient2GM() argument
590 RadialGradient3GM(bool dither) : fDither(dither) { } in RadialGradient3GM() argument
627 RadialGradient4GM(bool dither) : fDither(dither) { } in RadialGradient4GM() argument
665 LinearGradientGM(bool dither) : fDither(dither) { } in LinearGradientGM() argument
/third_party/ffmpeg/doc/
Dresampler.texi83 Set the dither scale. Default value is 1.
86 Set dither method. Default value is 0.
91 select rectangular dither
93 select triangular dither
95 select triangular dither with high pass
97 select Lipshitz noise shaping dither.
99 select Shibata noise shaping dither.
101 select low Shibata noise shaping dither.
103 select high Shibata noise shaping dither.
105 select f-weighted noise shaping dither
[all …]
/third_party/ffmpeg/libswscale/x86/
Doutput.asm58 ; const uint8_t *dither, int offset)
62 ; const uint8_t *dither, int offset)
67 ; of 2. $offset is either 0 or 3. $dither holds 8 values.
72 ; the rep here is for the 8-bit output MMX case, where dither covers
192 cglobal yuv2planeX_%1, %3, 8, %2, filter, fltsize, src, dst, w, dither, offset
206 ; create registers holding dither
207 movq m_dith, [ditherq] ; dither
345 cglobal yuv2plane1_%1, %3, %3, %2, src, dst, w, dither, offset
364 ; create registers holding dither
365 movq m3, [ditherq] ; dither
[all …]
Dswscale.c195 const uint8_t *dither, int offset); \
198 const uint8_t *dither, int offset) \
201 … ff_yuv2yuvX_ ##opt(filter, filterSize - 1, 0, dest - offset, dstW + offset, dither, offset); \
208 const uint8_t *dither, int offset); \
211 const uint8_t *dither, int offset) \
216 yuv2yuvX_mmx(filter, filterSize, src, dest, dstW, dither, offset); \
220 …2yuvX_ ##opt(filter, filterSize - 1, 0, dest - offset, pixelsProcessed + offset, dither, offset); \
222 …rSize - 1, pixelsProcessed, dest - offset, pixelsProcessed + remainder + offset, dither, offset); \
282 const uint8_t *dither, int offset)
298 const uint8_t *dither, int offset)
[all …]
/third_party/skia/docs/examples/
Dblur4444.cpp7 bool dither = false; in draw() local
40 blrPaint.setDither(dither); in draw()
53 grdPaint.setDither(dither); in draw()
Ddither1.cpp10 for (auto dither : {false, true}) { in draw()
11 colorPaint.setDither(dither); in draw()
DDither_a.cpp11 for (auto dither : { false, true } ) { in draw()
12 colorPaint.setDither(dither); in draw()
/third_party/ffmpeg/libswscale/arm/
Doutput.S28 ldr r5, [sp, #108] @ dither
30 vld1.8 {d0}, [r5] @ load 8x8-bit dither values
34 1: vmovl.u8 q0, d0 @ extend dither to 16-bit
35 …vshll.u16 q1, d0, #12 @ extend dither to 32-bit with …
36 …vshll.u16 q2, d1, #12 @ extend dither to 32-bit with …
/third_party/gstreamer/gstplugins_good/ext/libcaca/
Dgstcacasink.c251 cacasink->dither = GST_CACA_DEFAULT_DITHER; in gst_cacasink_init()
296 cacasink->dither = g_value_get_enum (value); in gst_cacasink_set_property()
297 caca_set_dithering (cacasink->dither + CACA_DITHERING_NONE); in gst_cacasink_set_property()
332 g_value_set_enum (value, cacasink->dither); in gst_cacasink_get_property()
358 cacasink->dither = 0; in gst_cacasink_open()
/third_party/ffmpeg/libavcodec/aarch64/
Dmpegaudiodsp_init.c28 int *dither, int16_t *samples, ptrdiff_t incr);
30 int *dither, float *samples, ptrdiff_t incr);

1234567891011