| /OK3568_Linux_fs/buildroot/dl/sox/git/src/ |
| H A D | sox_sample_test.c | 29 uint##bits = SOX_SAMPLE_TO_UNSIGNED(bits,sample, clips); \ 30 assert(uint##bits == 0 && clips == 0); \ 35 uint##bits = SOX_SAMPLE_TO_UNSIGNED(bits,sample, clips); \ 36 assert(uint##bits == 1 && clips == 0); \ 41 uint##bits = SOX_SAMPLE_TO_UNSIGNED(bits,sample, clips); \ 42 assert(uint##bits == SOX_INT_MAX(bits) && clips == 0); \ 45 uint##bits = SOX_SAMPLE_TO_UNSIGNED(bits,sample, clips); \ 46 assert(uint##bits == 1 && clips == 0); \ 49 uint##bits = SOX_SAMPLE_TO_UNSIGNED(bits,sample, clips); \ 50 assert(uint##bits == 0 && clips == 0); \ [all …]
|
| H A D | sox.h | 744 #define SOX_SAMPLE_TO_UNSIGNED(bits,d,clips) \ argument 745 (sox_uint##bits##_t)(SOX_SAMPLE_TO_SIGNED(bits,d,clips) ^ SOX_INT_MIN(bits)) 755 #define SOX_SAMPLE_TO_SIGNED(bits,d,clips) \ argument 760 ++(clips), SOX_INT_MAX(bits) : \ 789 #define SOX_UNSIGNED_8BIT_TO_SAMPLE(d,clips) SOX_UNSIGNED_TO_SAMPLE(8,d) argument 798 #define SOX_SIGNED_8BIT_TO_SAMPLE(d,clips) SOX_SIGNED_TO_SAMPLE(8,d) argument 807 #define SOX_UNSIGNED_16BIT_TO_SAMPLE(d,clips) SOX_UNSIGNED_TO_SAMPLE(16,d) argument 816 #define SOX_SIGNED_16BIT_TO_SAMPLE(d,clips) SOX_SIGNED_TO_SAMPLE(16,d) argument 825 #define SOX_UNSIGNED_24BIT_TO_SAMPLE(d,clips) SOX_UNSIGNED_TO_SAMPLE(24,d) argument 834 #define SOX_SIGNED_24BIT_TO_SAMPLE(d,clips) SOX_SIGNED_TO_SAMPLE(24,d) argument [all …]
|
| H A D | alsa.c | 274 while (i--) *buf1++ = SOX_SAMPLE_TO_SIGNED_8BIT(*buf++, ft->clips); in write_() 279 while (i--) *buf1++ = SOX_SAMPLE_TO_UNSIGNED_8BIT(*buf++, ft->clips); in write_() 285 *buf1++ = lsx_swapw(SOX_SAMPLE_TO_SIGNED_16BIT(*buf++, ft->clips)); in write_() 287 while (i--) *buf1++ = SOX_SAMPLE_TO_SIGNED_16BIT(*buf++, ft->clips); in write_() 293 *buf1++ = lsx_swapw(SOX_SAMPLE_TO_UNSIGNED_16BIT(*buf++, ft->clips)); in write_() 295 while (i--) *buf1++ = SOX_SAMPLE_TO_UNSIGNED_16BIT(*buf++, ft->clips); in write_() 300 while (i--) *buf1++ = SOX_SAMPLE_TO_SIGNED_24BIT(*buf++, ft->clips); in write_() 306 uint32_t temp = (uint32_t)SOX_SAMPLE_TO_SIGNED_24BIT(*buf++, ft->clips); in write_() 315 while (i--) *buf1++ = SOX_SAMPLE_TO_UNSIGNED_24BIT(*buf++, ft->clips); in write_() 320 while (i--) *buf1++ = SOX_SAMPLE_TO_SIGNED_32BIT(*buf++, ft->clips); in write_() [all …]
|
| H A D | wavpack.c | 94 SOX_FLOAT_32BIT_TO_SAMPLE(*(float *)&buf[i], ft->clips) : in read_samples() 145 case 8: obuf[i] = SOX_SAMPLE_TO_SIGNED_8BIT(buf[i], ft->clips); break; in write_samples() 146 case 16: obuf[i] = SOX_SAMPLE_TO_SIGNED_16BIT(buf[i], ft->clips); break; in write_samples() 147 case 24: obuf[i] = SOX_SAMPLE_TO_SIGNED_24BIT(buf[i], ft->clips) << 8; in write_samples() 150 SOX_SAMPLE_TO_SIGNED_24BIT(*(float *)&buf[i], ft->clips) : in write_samples() 151 SOX_SAMPLE_TO_SIGNED_32BIT(buf[i], ft->clips); in write_samples()
|
| H A D | raw.c | 17 #define SOX_ULAW_BYTE_TO_SAMPLE(d,clips) SOX_SIGNED_16BIT_TO_SAMPLE(sox_ulaw2linear16(d),clips) argument 18 #define SOX_ALAW_BYTE_TO_SAMPLE(d,clips) SOX_SIGNED_16BIT_TO_SAMPLE(sox_alaw2linear16(d),clips) argument 79 *buf++ = cast(data[n], ft->clips); \ 106 data[n] = cast(buf[n], ft->clips); \
|
| H A D | effects.c | 153 effp->clips = 0; in sox_add_effect() 490 uint64_t clips = 0; in sox_effects_clips() local 493 clips += chain->effects[i][f].clips; in sox_effects_clips() 494 return clips; in sox_effects_clips() 500 uint64_t clips = 0; in sox_stop_effect() local 504 clips += effp[f].clips; in sox_stop_effect() 506 return clips; in sox_stop_effect() 541 uint64_t clips; in sox_delete_effect() local 544 if ((clips = sox_stop_effect(effp)) != 0) in sox_delete_effect() 546 effp->handler.name, clips); in sox_delete_effect()
|
| H A D | ao.c | 77 …w_write_buf(char *buf1, sox_sample_t const * buf2, size_t len, sox_bool swap, sox_uint64_t * clips) in sox_sw_write_buf() argument 82 uint16_t datum = SOX_SAMPLE_TO_SIGNED_16BIT(*buf2++, *clips); in sox_sw_write_buf() 101 &(ft->clips)); in write_samples()
|
| H A D | adpcms.c | 192 *buffer++ = SOX_SIGNED_16BIT_TO_SAMPLE(word, ft->clips); in lsx_adpcm_read() 198 *buffer++ = SOX_SIGNED_16BIT_TO_SAMPLE(word, ft->clips); in lsx_adpcm_read() 202 *buffer++ = SOX_SIGNED_16BIT_TO_SAMPLE(word, ft->clips); in lsx_adpcm_read() 255 word = SOX_SAMPLE_TO_SIGNED_16BIT(*buffer++, ft->clips); in lsx_adpcm_write()
|
| H A D | ladspa.c | 33 #define SOX_SAMPLE_TO_LADSPA_DATA(d,clips) \ argument 34 SOX_SAMPLE_TO_FLOAT_32BIT((d),(clips)) 35 #define LADSPA_DATA_TO_SOX_SAMPLE(d,clips) \ argument 36 SOX_FLOAT_32BIT_TO_SAMPLE((d),(clips)) 357 buf[j * input_len + i] = SOX_SAMPLE_TO_LADSPA_DATA(s, effp->clips); in sox_ladspa_flow() 396 *obuf++ = LADSPA_DATA_TO_SOX_SAMPLE(d, effp->clips); in sox_ladspa_flow()
|
| H A D | gain.c | 113 double d = SOX_SAMPLE_TO_FLOAT_64BIT(*ibuf, effp->clips); in flow() 119 double d = SOX_SAMPLE_TO_FLOAT_64BIT(*ibuf, effp->clips); in flow() 135 *obuf++ = SOX_ROUND_CLIP_COUNT(*ibuf * mult, effp->clips); in flow() 211 *obuf = SOX_ROUND_CLIP_COUNT(*obuf * p->mult, effp->clips); in drain()
|
| H A D | dcshift.c | 121 SOX_SAMPLE_CLIP_COUNT(sample, effp->clips); in sox_dcshift_flow() 127 *obuf++ = SOX_ROUND_CLIP_COUNT(d, effp->clips); in sox_dcshift_flow()
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/bt8xx/ |
| H A D | btcx-risc.c | 85 struct v4l2_clip *clips, unsigned int n) in btcx_screen_clips() argument 89 clips[n].c.left = 0; in btcx_screen_clips() 90 clips[n].c.top = 0; in btcx_screen_clips() 91 clips[n].c.width = -win->left; in btcx_screen_clips() 92 clips[n].c.height = win->height; in btcx_screen_clips() 97 clips[n].c.left = swidth - win->left; in btcx_screen_clips() 98 clips[n].c.top = 0; in btcx_screen_clips() 99 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips() 100 clips[n].c.height = win->height; in btcx_screen_clips() 105 clips[n].c.left = 0; in btcx_screen_clips() [all …]
|
| H A D | btcx-risc.h | 21 struct v4l2_clip *clips, unsigned int n); 22 int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, 24 void btcx_sort_clips(struct v4l2_clip *clips, unsigned int nclips); 27 const struct v4l2_clip *clips, unsigned int nclips);
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_ioctl.c | 263 struct drm_vmw_rect *clips = NULL; in vmw_present_ioctl() local 282 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_ioctl() 283 if (clips == NULL) { in vmw_present_ioctl() 289 ret = copy_from_user(clips, clips_ptr, num_clips * sizeof(*clips)); in vmw_present_ioctl() 320 clips, num_clips); in vmw_present_ioctl() 332 kfree(clips); in vmw_present_ioctl() 347 struct drm_vmw_rect *clips = NULL; in vmw_present_readback_ioctl() local 365 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_readback_ioctl() 366 if (clips == NULL) { in vmw_present_readback_ioctl() 372 ret = copy_from_user(clips, clips_ptr, num_clips * sizeof(*clips)); in vmw_present_readback_ioctl() [all …]
|
| H A D | vmwgfx_kms.h | 417 const struct drm_clip_rect *clips, 500 struct drm_clip_rect *clips, 503 const struct drm_clip_rect *clips, 513 struct drm_clip_rect *clips, 523 struct drm_clip_rect *clips, 543 struct drm_clip_rect *clips, 555 struct drm_clip_rect *clips,
|
| H A D | vmwgfx_ldu.c | 545 struct drm_clip_rect *clips, in vmw_kms_ldu_do_bo_dirty() argument 562 for (i = 0; i < num_clips; i++, clips += increment) { in vmw_kms_ldu_do_bo_dirty() 564 cmd[i].body.x = clips->x1; in vmw_kms_ldu_do_bo_dirty() 565 cmd[i].body.y = clips->y1; in vmw_kms_ldu_do_bo_dirty() 566 cmd[i].body.width = clips->x2 - clips->x1; in vmw_kms_ldu_do_bo_dirty() 567 cmd[i].body.height = clips->y2 - clips->y1; in vmw_kms_ldu_do_bo_dirty()
|
| H A D | vmwgfx_kms.c | 995 struct drm_clip_rect *clips, in vmw_framebuffer_bo_dirty() argument 1014 clips = &norect; in vmw_framebuffer_bo_dirty() 1026 clips, num_clips, increment); in vmw_framebuffer_bo_dirty() 1045 struct drm_clip_rect *clips, in vmw_framebuffer_bo_dirty_ext() argument 1052 color, clips, num_clips); in vmw_framebuffer_bo_dirty_ext() 1055 clips, num_clips); in vmw_framebuffer_bo_dirty_ext() 1729 struct drm_vmw_rect *clips, in vmw_kms_generic_present() argument 1732 return vmw_kms_sou_do_surface_dirty(dev_priv, vfb, NULL, clips, in vmw_kms_generic_present() 1744 struct drm_vmw_rect *clips, in vmw_kms_present() argument 1751 ret = vmw_kms_stdu_surface_dirty(dev_priv, vfb, NULL, clips, in vmw_kms_present() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/qxl/ |
| H A D | qxl_draw.c | 125 struct drm_clip_rect *clips, in qxl_draw_dirty_fb() argument 155 clips->x1 += dumb_shadow_offset; in qxl_draw_dirty_fb() 156 clips->x2 += dumb_shadow_offset; in qxl_draw_dirty_fb() 158 left = clips->x1; in qxl_draw_dirty_fb() 159 right = clips->x2; in qxl_draw_dirty_fb() 160 top = clips->y1; in qxl_draw_dirty_fb() 161 bottom = clips->y2; in qxl_draw_dirty_fb() 164 for (i = 1, clips_ptr = clips + inc; in qxl_draw_dirty_fb() 237 clips_ptr = clips; in qxl_draw_dirty_fb()
|
| /OK3568_Linux_fs/kernel/drivers/media/common/ |
| H A D | btcx-risc.h | 23 struct v4l2_clip *clips, unsigned int n); 24 int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, 26 void btcx_sort_clips(struct v4l2_clip *clips, unsigned int nclips); 29 const struct v4l2_clip *clips, unsigned int nclips);
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/ |
| H A D | drm_damage_helper.c | 162 unsigned int color, struct drm_clip_rect *clips, in drm_atomic_helper_dirtyfb() argument 186 if (clips) { in drm_atomic_helper_dirtyfb() 200 convert_clip_rect_to_rect(clips, rects, num_clips, inc); in drm_atomic_helper_dirtyfb() 285 iter->clips = drm_helper_get_plane_damage_clips(state); in drm_atomic_helper_damage_iter_init() 294 if (!iter->clips || !drm_rect_equals(&state->src, &old_state->src)) { in drm_atomic_helper_damage_iter_init() 295 iter->clips = NULL; in drm_atomic_helper_damage_iter_init() 331 *rect = iter->clips[iter->curr_clip]; in drm_atomic_helper_damage_iter_next()
|
| H A D | drm_atomic.c | 546 struct drm_mode_rect *clips; in drm_atomic_plane_check() local 622 clips = drm_plane_get_damage_clips(new_plane_state); in drm_atomic_plane_check() 627 if (clips->x1 >= clips->x2 || in drm_atomic_plane_check() 628 clips->y1 >= clips->y2 || in drm_atomic_plane_check() 629 clips->x1 < 0 || in drm_atomic_plane_check() 630 clips->y1 < 0 || in drm_atomic_plane_check() 631 clips->x2 > fb_width || in drm_atomic_plane_check() 632 clips->y2 > fb_height) { in drm_atomic_plane_check() 634 plane->base.id, plane->name, clips->x1, in drm_atomic_plane_check() 635 clips->y1, clips->x2, clips->y2); in drm_atomic_plane_check() [all …]
|
| H A D | drm_framebuffer.c | 699 struct drm_clip_rect *clips = NULL; in drm_mode_dirtyfb_ioctl() local 734 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in drm_mode_dirtyfb_ioctl() 735 if (!clips) { in drm_mode_dirtyfb_ioctl() 740 ret = copy_from_user(clips, clips_ptr, in drm_mode_dirtyfb_ioctl() 741 num_clips * sizeof(*clips)); in drm_mode_dirtyfb_ioctl() 750 clips, num_clips); in drm_mode_dirtyfb_ioctl() 756 kfree(clips); in drm_mode_dirtyfb_ioctl()
|
| /OK3568_Linux_fs/kernel/include/drm/ |
| H A D | drm_damage_helper.h | 58 const struct drm_rect *clips; member 72 unsigned int color, struct drm_clip_rect *clips,
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/vboxvideo/ |
| H A D | vbox_mode.c | 276 struct drm_mode_rect *clips; in vbox_primary_atomic_update() local 285 clips = drm_plane_get_damage_clips(plane->state); in vbox_primary_atomic_update() 293 for (i = 0; i < num_clips; ++i, ++clips) { in vbox_primary_atomic_update() 297 cmd_hdr.x = (s16)clips->x1; in vbox_primary_atomic_update() 298 cmd_hdr.y = (s16)clips->y1; in vbox_primary_atomic_update() 299 cmd_hdr.w = (u16)clips->x2 - clips->x1; in vbox_primary_atomic_update() 300 cmd_hdr.h = (u16)clips->y2 - clips->y1; in vbox_primary_atomic_update()
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/saa7134/ |
| H A D | saa7134-video.c | 625 static int setup_clipping(struct saa7134_dev *dev, struct v4l2_clip *clips, in setup_clipping() argument 635 col[cols].position = clip_range(clips[i].c.left); in setup_clipping() 638 col[cols].position = clip_range(clips[i].c.left+clips[i].c.width); in setup_clipping() 641 row[rows].position = clip_range(clips[i].c.top / div); in setup_clipping() 644 row[rows].position = clip_range((clips[i].c.top + clips[i].c.height) in setup_clipping() 717 setup_clipping(dev, dev->clips, dev->nclips, in start_preview() 1268 struct v4l2_clip __user *clips = f->fmt.win.clips; in saa7134_g_fmt_vid_overlay() local 1278 f->fmt.win.clips = clips; in saa7134_g_fmt_vid_overlay() 1279 if (clips == NULL) in saa7134_g_fmt_vid_overlay() 1286 if (copy_to_user(&f->fmt.win.clips[i].c, &dev->clips[i].c, in saa7134_g_fmt_vid_overlay() [all …]
|