| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/ |
| H A D | CVE-2019-7637.patch | 11 BytesPerPixel (e.g. 4) and the result is stored into Uint16 pitch 13 the value is clamped as 65532). As a result SDL_Surface with a pitch 49 - Uint16 pitch; 50 + unsigned int pitch = 0; 53 - pitch = surface->w*surface->format->BytesPerPixel; 56 + pitch += (unsigned int)surface->w; 57 + if (pitch < surface->w) { 64 - pitch = (pitch+7)/8; 65 + if (pitch % 8) { 66 + pitch = pitch / 8 + 1; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/common/saa7146/ |
| H A D | saa7146_hlp.c | 455 vdma2->pitch = 0x00; in calculate_clipping_registers_rect() 512 saa7146_write(dev, PITCH2, vdma2.pitch); in saa7146_set_clipping_rect() 579 vdma1.pitch = 2*b_bpl; in saa7146_set_position() 581 vdma1.base_even = base + (w_y * (vdma1.pitch/2)) + (w_x * (b_depth / 8)); in saa7146_set_position() 582 vdma1.base_odd = vdma1.base_even + (vdma1.pitch / 2); in saa7146_set_position() 583 vdma1.prot_addr = vdma1.base_even + (w_height * (vdma1.pitch / 2)); in saa7146_set_position() 586 vdma1.base_even = base + ((w_y+w_height) * (vdma1.pitch/2)) + (w_x * (b_depth / 8)); in saa7146_set_position() 587 vdma1.base_odd = vdma1.base_even - (vdma1.pitch / 2); in saa7146_set_position() 588 vdma1.prot_addr = vdma1.base_odd - (w_height * (vdma1.pitch / 2)); in saa7146_set_position() 595 vdma1.pitch /= 2; in saa7146_set_position() [all …]
|
| /OK3568_Linux_fs/external/xserver/xkb/ |
| H A D | ddxBeep.c | 123 int pitch, duration; in _XkbDDXBeepExpire() local 139 pitch = oldPitch = ctrl->bell_pitch; in _XkbDDXBeepExpire() 158 pitch = HIGH_PITCH; in _XkbDDXBeepExpire() 164 pitch = LOW_PITCH; in _XkbDDXBeepExpire() 178 pitch = LOW_PITCH; in _XkbDDXBeepExpire() 184 pitch = MID_PITCH; in _XkbDDXBeepExpire() 193 pitch = MID_PITCH; in _XkbDDXBeepExpire() 201 pitch = LOW_PITCH; in _XkbDDXBeepExpire() 217 pitch = HIGH_PITCH; in _XkbDDXBeepExpire() 230 pitch = HIGH_PITCH; in _XkbDDXBeepExpire() [all …]
|
| /OK3568_Linux_fs/buildroot/boot/grub2/ |
| H A D | 0081-video-fb-video_fb-Fix-multiple-integer-overflows.patch | 37 - * framebuffer.back_target->mode_info.pitch, 40 - * framebuffer.back_target->mode_info.pitch, 41 - framebuffer.back_target->mode_info.pitch 49 + grub_mul (framebuffer.back_target->mode_info.pitch, copy_size, ©_size)) 56 + framebuffer.back_target->mode_info.pitch, 58 + framebuffer.back_target->mode_info.pitch, 68 - grub_size_t page_size = mode_info.pitch * mode_info.height; 69 + grub_size_t page_size = (grub_size_t) mode_info.pitch * mode_info.height; 78 - + first_line * framebuffer.back_target->mode_info.pitch, 80 - + first_line * framebuffer.back_target->mode_info.pitch, [all …]
|
| H A D | 0080-video-fb-fbfill-Fix-potential-integer-overflow.patch | 37 - rowskip = dst->mode_info->pitch - dst->mode_info->bytes_per_pixel * width; 39 + grub_sub (dst->mode_info->pitch, rowskip, &rowskip)) 48 - rowskip = dst->mode_info->pitch - dst->mode_info->bytes_per_pixel * width; 50 + grub_sub (dst->mode_info->pitch, rowskip, &rowskip)) 59 - rowskip = (dst->mode_info->pitch - dst->mode_info->bytes_per_pixel * width); 61 + grub_sub (dst->mode_info->pitch, rowskip, &rowskip)) 70 - rowskip = dst->mode_info->pitch - dst->mode_info->bytes_per_pixel * width; 72 + grub_sub (dst->mode_info->pitch, rowskip, &rowskip))
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/via/ |
| H A D | via_modesetting.c | 140 void via_set_primary_pitch(u32 pitch) in via_set_primary_pitch() argument 142 DEBUG_MSG(KERN_DEBUG "via_set_primary_pitch(0x%08X)\n", pitch); in via_set_primary_pitch() 146 pitch = pitch >> 3; in via_set_primary_pitch() 147 via_write_reg(VIACR, 0x13, pitch & 0xFF); in via_set_primary_pitch() 148 via_write_reg_mask(VIACR, 0x35, (pitch >> (8 - 5)) & 0xE0, 0xE0); in via_set_primary_pitch() 151 void via_set_secondary_pitch(u32 pitch) in via_set_secondary_pitch() argument 153 DEBUG_MSG(KERN_DEBUG "via_set_secondary_pitch(0x%08X)\n", pitch); in via_set_secondary_pitch() 154 pitch = pitch >> 3; in via_set_secondary_pitch() 155 via_write_reg(VIACR, 0x66, pitch & 0xFF); in via_set_secondary_pitch() 156 via_write_reg_mask(VIACR, 0x67, (pitch >> 8) & 0x03, 0x03); in via_set_secondary_pitch() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/sox/git/lpc10/ |
| H A D | pitsyn.c | 24 extern int pitsyn_(integer *order, integer *voice, integer *pitch, real *rms, real *rc, integer *lf… 100 integer *pitch, real *rms, real *rc, integer *lframe, integer *ivuv, in pitsyn_() argument 206 *pitch = *lframe / 4; in pitsyn_() 208 *nout = *lframe / *pitch; in pitsyn_() 209 *jsamp = *lframe - *nout * *pitch; in pitsyn_() 227 ipiti[i__] = *pitch; in pitsyn_() 234 slope = (*pitch - *ipito) / (real) lsamp; in pitsyn_() 241 *pitch = *lframe / 4; in pitsyn_() 242 *ipito = *pitch; in pitsyn_() 248 slope = (*pitch - *ipito) / (real) lsamp; in pitsyn_() [all …]
|
| H A D | decode.c | 24 extern int decode_(integer *ipitv, integer *irms, integer *irc, integer *voice, integer *pitch, rea… 112 integer *irc, integer *voice, integer *pitch, real *rms, real *rc, in decode_() argument 314 *pitch = i4; in decode_() 315 if (*pitch <= 4) { in decode_() 316 *pitch = *iptold; in decode_() 319 *iptold = *pitch; in decode_() 322 *pitch = *iptold; in decode_() 371 *pitch = i4; in decode_() 372 if (*pitch <= 4) { in decode_() 373 *pitch = *iptold; in decode_() [all …]
|
| H A D | synths.c | 24 extern int synths_(integer *voice, integer *pitch, real *rms, real *rc, real *speech, integer *k, s… 129 /* Subroutine */ int synths_(integer *voice, integer *pitch, real * in synths_() argument 269 i__1 = min(*pitch,156); in synths_() 270 *pitch = max(i__1,20); in synths_() 279 pitsyn_(&contrl_1.order, &voice[1], pitch, rms, &rc[1], &contrl_1.lframe, in synths_()
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/os-support/bsd/ |
| H A D | bsd_bell.c | 41 xf86OSRingBell(int loudness, int pitch, int duration) in xf86OSRingBell() argument 47 if (loudness && pitch) { in xf86OSRingBell() 56 data[0] = pitch; in xf86OSRingBell() 65 ((1193190 / pitch) & 0xffff) | in xf86OSRingBell() 72 wsb.pitch = pitch; in xf86OSRingBell()
|
| /OK3568_Linux_fs/kernel/drivers/staging/sm750fb/ |
| H A D | sm750_cursor.c | 88 int i, j, count, pitch, offset; in sm750_hw_cursor_setData() local 94 pitch = cursor->w >> 3; in sm750_hw_cursor_setData() 97 count = pitch * cursor->h; in sm750_hw_cursor_setData() 125 if ((i + 1) % pitch == 0) { in sm750_hw_cursor_setData() 138 int i, j, count, pitch, offset; in sm750_hw_cursor_setData2() local 144 pitch = cursor->w >> 3; in sm750_hw_cursor_setData2() 147 count = pitch * cursor->h; in sm750_hw_cursor_setData2() 168 if (!(i & (pitch - 1))) { in sm750_hw_cursor_setData2()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/qxl/ |
| H A D | qxl_dumb.c | 40 uint32_t pitch, format; in qxl_mode_dumb_create() local 42 pitch = args->width * ((args->bpp + 1) / 8); in qxl_mode_dumb_create() 43 args->size = pitch * args->height; in qxl_mode_dumb_create() 59 surf.stride = pitch; in qxl_mode_dumb_create() 70 args->pitch = pitch; in qxl_mode_dumb_create()
|
| /OK3568_Linux_fs/kernel/sound/drivers/opl4/ |
| H A D | opl4_synth.c | 423 int note, pitch, octave; in snd_opl4_update_pitch() local 430 pitch = ((note - 60) << 7) * voice->sound->key_scaling / 100 + (60 << 7); in snd_opl4_update_pitch() 431 pitch += voice->sound->pitch_offset; in snd_opl4_update_pitch() 433 pitch += chan->gm_rpn_coarse_tuning; in snd_opl4_update_pitch() 434 pitch += chan->gm_rpn_fine_tuning >> 7; in snd_opl4_update_pitch() 435 pitch += chan->midi_pitchbend * chan->gm_rpn_pitch_bend_range / 0x2000; in snd_opl4_update_pitch() 436 if (pitch < 0) in snd_opl4_update_pitch() 437 pitch = 0; in snd_opl4_update_pitch() 438 else if (pitch >= 0x6000) in snd_opl4_update_pitch() 439 pitch = 0x5fff; in snd_opl4_update_pitch() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/map/ |
| H A D | transform.cpp | 72 camera.pitch = getPitch(); in getCameraOptions() 95 double pitch = camera.pitch.value_or(getPitch()); in easeTo() local 122 pitch = util::clamp(pitch, state.min_pitch, state.max_pitch); in easeTo() 132 const double startPitch = state.pitch; in easeTo() 146 if (pitch != startPitch) { in easeTo() 147 state.pitch = util::interpolate(startPitch, pitch, t); in easeTo() 168 double pitch = camera.pitch.value_or(getPitch()); in flyTo() local 187 pitch = util::clamp(pitch, state.min_pitch, state.max_pitch); in flyTo() 195 const double startPitch = state.pitch; in flyTo() 307 if (pitch != startPitch) { in flyTo() [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/drivers/modesetting/ |
| H A D | dumb_bo.c | 65 bo->pitch = arg.pitch; in dumb_bo_create() 158 dumb_get_bo_from_handle(int fd, int handle, int pitch, int size) in dumb_get_bo_from_handle() argument 167 bo->pitch = pitch; in dumb_get_bo_from_handle() 173 dumb_get_bo_from_fd(int fd, int dmafd, int pitch, int size) in dumb_get_bo_from_fd() argument 182 return dumb_get_bo_from_handle(fd, handle, pitch, size); in dumb_get_bo_from_fd()
|
| H A D | xv.c | 246 int width, height, pitch, bpp, depth; in ms_exa_xv_create_dma_pixmap() local 295 pitch = width * 4; in ms_exa_xv_create_dma_pixmap() 298 pitch = width * 3 / 2; in ms_exa_xv_create_dma_pixmap() 310 depth, bpp, pitch, NULL); in ms_exa_xv_create_dma_pixmap() 315 pitch, pitch * height); in ms_exa_xv_create_dma_pixmap() 348 int pitch, bpp; in ms_exa_xv_create_pixmap() local 351 pitch = ALIGN(width, 4) * 3 / 2; in ms_exa_xv_create_pixmap() 354 pitch = ALIGN(width, 4) * 4; in ms_exa_xv_create_pixmap() 359 bpp, bpp, pitch, buf); in ms_exa_xv_create_pixmap() 363 pixmap->devKind = pitch; in ms_exa_xv_create_pixmap()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
| H A D | nv10.c | 30 nv10_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, in nv10_fb_tile_init() argument 35 tile->pitch = pitch; in nv10_fb_tile_init() 43 tile->pitch = 0; in nv10_fb_tile_fini() 52 nvkm_wr32(device, 0x100248 + (i * 0x10), tile->pitch); in nv10_fb_tile_prog()
|
| H A D | nv20.c | 30 nv20_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, in nv20_fb_tile_init() argument 35 tile->pitch = pitch; in nv20_fb_tile_init() 64 tile->pitch = 0; in nv20_fb_tile_fini() 74 nvkm_wr32(device, 0x100248 + (i * 0x10), tile->pitch); in nv20_fb_tile_prog()
|
| H A D | priv.h | 27 u32 pitch, u32 flags, struct nvkm_fb_tile *); 47 u32 pitch, u32 flags, struct nvkm_fb_tile *); 53 u32 pitch, u32 flags, struct nvkm_fb_tile *); 59 u32 pitch, u32 flags, struct nvkm_fb_tile *); 71 u32 pitch, u32 flags, struct nvkm_fb_tile *);
|
| H A D | nv44.c | 30 nv44_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, in nv44_fb_tile_init() argument 36 tile->pitch = pitch; in nv44_fb_tile_init() 44 nvkm_wr32(device, 0x100608 + (i * 0x10), tile->pitch); in nv44_fb_tile_prog()
|
| /OK3568_Linux_fs/kernel/sound/core/oss/ |
| H A D | rate.c | 46 unsigned int pitch; member 114 pos += data->pitch; in resample_expand() 174 pos += data->pitch; in resample_shrink() 194 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_src_frames() 196 res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_src_frames() 227 res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_dst_frames() 229 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_dst_frames() 333 data->pitch = ((src_format->rate << SHIFT) + (dst_format->rate >> 1)) / dst_format->rate; in snd_pcm_plugin_build_rate() 336 data->pitch = ((dst_format->rate << SHIFT) + (src_format->rate >> 1)) / src_format->rate; in snd_pcm_plugin_build_rate()
|
| /OK3568_Linux_fs/kernel/sound/pci/ctxfi/ |
| H A D | ctatc.c | 197 unsigned int pitch; in atc_get_pitch() local 201 pitch = (input_rate / output_rate) << 24; in atc_get_pitch() 217 pitch |= input_rate; in atc_get_pitch() 220 return pitch; in atc_get_pitch() 223 static int select_rom(unsigned int pitch) in select_rom() argument 225 if (pitch > 0x00428f5c && pitch < 0x01b851ec) { in select_rom() 228 } else if (pitch == 0x01d66666 || pitch == 0x01d66667) { in select_rom() 231 } else if (pitch == 0x02000000) { in select_rom() 234 } else if (pitch <= 0x08000000) { in select_rom() 253 unsigned int pitch; in atc_pcm_playback_prepare() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| H A D | nv44.c | 44 nvkm_wr32(device, NV20_PGRAPH_TSIZE(i), tile->pitch); in nv44_gr_tile() 53 nvkm_wr32(device, NV47_PGRAPH_TSIZE(i), tile->pitch); in nv44_gr_tile() 56 nvkm_wr32(device, NV40_PGRAPH_TSIZE1(i), tile->pitch); in nv44_gr_tile() 61 nvkm_wr32(device, NV20_PGRAPH_TSIZE(i), tile->pitch); in nv44_gr_tile() 64 nvkm_wr32(device, NV40_PGRAPH_TSIZE1(i), tile->pitch); in nv44_gr_tile()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ |
| H A D | btext.c | 111 void __init btext_setup_display(int width, int height, int depth, int pitch, in btext_setup_display() argument 120 dispDeviceRowBytes = pitch; in btext_setup_display() 166 unsigned int width, height, depth, pitch; in btext_initialize() local 188 pitch = width * ((depth + 7) / 8); in btext_initialize() 193 pitch = *prop; in btext_initialize() 194 if (pitch == 1) in btext_initialize() 195 pitch = 0x1000; in btext_initialize() 213 dispDeviceRowBytes = pitch; in btext_initialize() 267 int depth, int pitch) in btext_update_display() argument 282 dispDeviceRowBytes = pitch; in btext_update_display()
|
| /OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/OpenCV-android-sdk/sdk/native/jni/include/opencv2/core/ |
| H A D | ippasync.hpp | 178 hpp32u pitch, size; in getHpp() local 179 hppQueryMatrixAllocParams(accel, src.cols*cn, src.rows, htype, &pitch, &size); in getHpp() 180 if (pitch!=0 && size!=0) in getHpp() 181 if ((int)(src.data)%4096==0 && pitch==(hpp32u)(src.step)) in getHpp() 183 … return hppiCreateSharedMatrix(htype, src.cols*cn, src.rows, src.data, pitch, size); in getHpp()
|