/hardware/libhardware/modules/camera/ |
D | ExampleCamera.cpp | 47 Metadata m; in initStaticInfo() local 51 m.addInt32(ANDROID_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES, in initStaticInfo() 56 m.addInt32(ANDROID_CONTROL_AE_COMPENSATION_RANGE, in initStaticInfo() 61 m.addRational(ANDROID_CONTROL_AE_COMPENSATION_STEP, in initStaticInfo() 66 m.addInt32(ANDROID_CONTROL_MAX_REGIONS, in initStaticInfo() 72 m.addInt32(ANDROID_JPEG_AVAILABLE_THUMBNAIL_SIZES, in initStaticInfo() 77 m.addInt32(ANDROID_JPEG_MAX_SIZE, in initStaticInfo() 83 m.addFloat(ANDROID_LENS_INFO_AVAILABLE_FOCAL_LENGTHS, in initStaticInfo() 89 m.addInt32(ANDROID_REQUEST_MAX_NUM_OUTPUT_STREAMS, in initStaticInfo() 103 m.addInt32(ANDROID_SCALER_AVAILABLE_FORMATS, in initStaticInfo() [all …]
|
D | ExampleCamera.h | 39 int setPreviewTemplate(Metadata m); 40 int setStillTemplate(Metadata m); 41 int setRecordTemplate(Metadata m); 42 int setSnapshotTemplate(Metadata m); 43 int setZslTemplate(Metadata m);
|
/hardware/libhardware/modules/usbcamera/ |
D | UsbCamera.cpp | 49 Metadata m; in initStaticInfo() local 53 m.addInt32(ANDROID_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES, in initStaticInfo() 58 m.addInt32(ANDROID_CONTROL_AE_COMPENSATION_RANGE, in initStaticInfo() 63 m.addRational(ANDROID_CONTROL_AE_COMPENSATION_STEP, in initStaticInfo() 68 m.addInt32(ANDROID_CONTROL_MAX_REGIONS, in initStaticInfo() 74 m.addInt32(ANDROID_JPEG_AVAILABLE_THUMBNAIL_SIZES, in initStaticInfo() 79 m.addInt32(ANDROID_JPEG_MAX_SIZE, in initStaticInfo() 85 m.addFloat(ANDROID_LENS_INFO_AVAILABLE_FOCAL_LENGTHS, in initStaticInfo() 91 m.addInt32(ANDROID_REQUEST_MAX_NUM_OUTPUT_STREAMS, in initStaticInfo() 105 m.addInt32(ANDROID_SCALER_AVAILABLE_FORMATS, in initStaticInfo() [all …]
|
D | UsbCamera.h | 44 int initPreviewTemplate(Metadata m); 45 int initStillTemplate(Metadata m); 46 int initRecordTemplate(Metadata m); 47 int initSnapshotTemplate(Metadata m); 48 int initZslTemplate(Metadata m); 49 int initManualTemplate(Metadata m);
|
/hardware/libhardware/modules/gralloc/ |
D | framebuffer.cpp | 84 private_module_t* m = reinterpret_cast<private_module_t*>( in fb_setUpdateRect() local 86 m->info.reserved[0] = 0x54445055; // "UPDT"; in fb_setUpdateRect() 87 m->info.reserved[1] = (uint16_t)l | ((uint32_t)t << 16); in fb_setUpdateRect() 88 m->info.reserved[2] = (uint16_t)(l+w) | ((uint32_t)(t+h) << 16); in fb_setUpdateRect() 100 private_module_t* m = reinterpret_cast<private_module_t*>( in fb_post() local 104 const size_t offset = hnd->base - m->framebuffer->base; in fb_post() 105 m->info.activate = FB_ACTIVATE_VBL; in fb_post() 106 m->info.yoffset = offset / m->finfo.line_length; in fb_post() 107 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) { in fb_post() 109 m->base.unlock(&m->base, buffer); in fb_post() [all …]
|
D | gralloc.cpp | 107 private_module_t* m = reinterpret_cast<private_module_t*>( in gralloc_alloc_framebuffer_locked() local 111 if (m->framebuffer == NULL) { in gralloc_alloc_framebuffer_locked() 114 int err = mapFrameBufferLocked(m); in gralloc_alloc_framebuffer_locked() 120 const uint32_t bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked() 121 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked() 122 const size_t bufferSize = m->finfo.line_length * m->info.yres; in gralloc_alloc_framebuffer_locked() 137 intptr_t vaddr = intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked() 138 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked() 144 m->bufferMask |= (1LU<<i); in gralloc_alloc_framebuffer_locked() 151 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/ |
D | vp9_dsubexp.c | 15 static int inv_recenter_nonneg(int v, int m) { in inv_recenter_nonneg() argument 16 if (v > 2 * m) in inv_recenter_nonneg() 19 return v % 2 ? m - (v + 1) / 2 : m + v / 2; in inv_recenter_nonneg() 24 const int m = (1 << l) - 191; in decode_uniform() local 26 return v < m ? v : (v << 1) - m + vp9_read_bit(r); in decode_uniform() 45 static int inv_remap_prob(int v, int m) { in inv_remap_prob() argument 69 m--; in inv_remap_prob() 70 if ((m << 1) <= MAX_PROB) { in inv_remap_prob() 71 return 1 + inv_recenter_nonneg(v + 1, m); in inv_remap_prob() 73 return MAX_PROB - inv_recenter_nonneg(v + 1, MAX_PROB - 1 - m); in inv_remap_prob()
|
/hardware/intel/common/libva/va/drm/ |
D | va_drm_utils.c | 52 const struct driver_name_map *m; in VA_DRM_GetDriverName() local 63 for (m = g_driver_name_map; m->key != NULL; m++) { in VA_DRM_GetDriverName() 64 if (drm_version->name_len >= m->key_len && in VA_DRM_GetDriverName() 65 strncmp(drm_version->name, m->key, m->key_len) == 0) in VA_DRM_GetDriverName() 70 if (!m->name) in VA_DRM_GetDriverName() 73 driver_name = strdup(m->name); in VA_DRM_GetDriverName()
|
/hardware/bsp/intel/peripheral/libmraa/tests/ |
D | gpio_checks.py | 27 import mraa as m namespace 34 @u.skipIf(m.pinModeTest(MRAA_GPIO, m.PIN_GPIO) != True, str(MRAA_GPIO) + "is not a valid Gpio on th… 38 self.pin = m.Gpio(MRAA_GPIO) 53 self.pin.dir(m.DIR_OUT) 60 self.pin.dir(m.DIR_IN) 67 self.pin.dir(m.DIR_OUT) 75 self.pin.dir(m.DIR_OUT) 83 self.pin.dir(m.DIR_IN) 85 self.assertNotEqual(res, m.SUCCESS, "The command should fail") 88 self.pin.dir(m.DIR_IN)
|
D | platform_checks.py | 27 import mraa as m namespace 30 @u.skipIf(m.init() != m.ERROR_PLATFORM_ALREADY_INITIALISED, "mraa_init() not valid") 33 pinCount = m.getPinCount() 37 self.p_ADC_mres = m.adcRawBits() 42 self.p_ADC_res = m.adcSupportedBits()
|
/hardware/qcom/display/msm8084/libgralloc/ |
D | gpu.cpp | 191 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_framebuffer_locked() local 198 if (m->framebuffer == NULL) { in gralloc_alloc_framebuffer_locked() 203 const size_t bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked() 204 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked() 205 size_t bufferSize = m->finfo.line_length * m->info.yres; in gralloc_alloc_framebuffer_locked() 216 m->fbFormat, m->info.xres, m->info.yres); in gralloc_alloc_framebuffer_locked() 225 uintptr_t vaddr = uintptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked() 227 dup(m->framebuffer->fd), bufferSize, in gralloc_alloc_framebuffer_locked() 230 BUFFER_TYPE_UI, m->fbFormat, m->info.xres, in gralloc_alloc_framebuffer_locked() 231 m->info.yres); in gralloc_alloc_framebuffer_locked() [all …]
|
D | framebuffer.cpp | 75 private_module_t* m = reinterpret_cast<private_module_t*>( in fb_setSwapInterval() local 80 m->swapInterval = interval; in fb_setSwapInterval() 86 private_module_t* m = in fb_post() local 90 const size_t offset = hnd->base - m->framebuffer->base; in fb_post() 91 m->info.activate = FB_ACTIVATE_VBL; in fb_post() 92 m->info.yoffset = (int)(offset / m->finfo.line_length); in fb_post() 93 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) { in fb_post() 405 private_module_t* m = (private_module_t*)module; in fb_device_open() local 406 status = mapFrameBuffer(m); in fb_device_open() 408 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3); in fb_device_open() [all …]
|
/hardware/qcom/display/msm8994/libgralloc/ |
D | gpu.cpp | 203 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_framebuffer_locked() local 210 if (m->framebuffer == NULL) { in gralloc_alloc_framebuffer_locked() 215 const unsigned int bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked() 216 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked() 217 unsigned int bufferSize = m->finfo.line_length * m->info.yres; in gralloc_alloc_framebuffer_locked() 228 m->fbFormat, m->info.xres, m->info.yres); in gralloc_alloc_framebuffer_locked() 237 uint64_t vaddr = uint64_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked() 241 dup(m->framebuffer->fd), bufferSize, in gralloc_alloc_framebuffer_locked() 244 BUFFER_TYPE_UI, m->fbFormat, m->info.xres, in gralloc_alloc_framebuffer_locked() 245 m->info.yres); in gralloc_alloc_framebuffer_locked() [all …]
|
/hardware/qcom/display/msm8226/libgralloc/ |
D | gpu.cpp | 195 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_framebuffer_locked() local 202 if (m->framebuffer == NULL) { in gralloc_alloc_framebuffer_locked() 207 const unsigned int bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked() 208 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked() 209 unsigned int bufferSize = m->finfo.line_length * m->info.yres; in gralloc_alloc_framebuffer_locked() 220 m->fbFormat, m->info.xres, m->info.yres); in gralloc_alloc_framebuffer_locked() 229 uint64_t vaddr = uint64_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked() 231 dup(m->framebuffer->fd), bufferSize, in gralloc_alloc_framebuffer_locked() 234 BUFFER_TYPE_UI, m->fbFormat, m->info.xres, in gralloc_alloc_framebuffer_locked() 235 m->info.yres); in gralloc_alloc_framebuffer_locked() [all …]
|
D | framebuffer.cpp | 75 private_module_t* m = reinterpret_cast<private_module_t*>( in fb_setSwapInterval() local 80 m->swapInterval = interval; in fb_setSwapInterval() 86 private_module_t* m = in fb_post() local 91 m->framebuffer->base); in fb_post() 92 m->info.activate = FB_ACTIVATE_VBL; in fb_post() 93 m->info.yoffset = (int)(offset / m->finfo.line_length); in fb_post() 94 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) { in fb_post() 406 private_module_t* m = (private_module_t*)module; in fb_device_open() local 407 status = mapFrameBuffer(m); in fb_device_open() 409 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3); in fb_device_open() [all …]
|
/hardware/qcom/display/msm8960/libgralloc/ |
D | gpu.cpp | 178 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_framebuffer_locked() local 185 if (m->framebuffer == NULL) { in gralloc_alloc_framebuffer_locked() 190 const uint32_t bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked() 191 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked() 192 size_t bufferSize = m->finfo.line_length * m->info.yres; in gralloc_alloc_framebuffer_locked() 203 m->fbFormat, m->info.xres, m->info.yres); in gralloc_alloc_framebuffer_locked() 212 intptr_t vaddr = intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked() 214 dup(m->framebuffer->fd), bufferSize, in gralloc_alloc_framebuffer_locked() 217 BUFFER_TYPE_UI, m->fbFormat, m->info.xres, in gralloc_alloc_framebuffer_locked() 218 m->info.yres); in gralloc_alloc_framebuffer_locked() [all …]
|
D | framebuffer.cpp | 75 private_module_t* m = reinterpret_cast<private_module_t*>( in fb_setSwapInterval() local 80 m->swapInterval = interval; in fb_setSwapInterval() 86 private_module_t* m = in fb_post() local 90 const size_t offset = hnd->base - m->framebuffer->base; in fb_post() 91 m->info.activate = FB_ACTIVATE_VBL; in fb_post() 92 m->info.yoffset = offset / m->finfo.line_length; in fb_post() 93 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) { in fb_post() 378 private_module_t* m = (private_module_t*)module; in fb_device_open() local 379 status = mapFrameBuffer(m); in fb_device_open() 381 int stride = m->finfo.line_length / (m->info.bits_per_pixel >> 3); in fb_device_open() [all …]
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
D | vp9_subexp.c | 21 static int recenter_nonneg(int v, int m) { in recenter_nonneg() argument 22 if (v > (m << 1)) in recenter_nonneg() 24 else if (v >= m) in recenter_nonneg() 25 return ((v - m) << 1); in recenter_nonneg() 27 return ((m - v) << 1) - 1; in recenter_nonneg() 30 static int remap_prob(int v, int m) { in remap_prob() argument 54 m--; in remap_prob() 55 if ((m << 1) <= MAX_PROB) in remap_prob() 56 i = recenter_nonneg(v, m) - 1; in remap_prob() 58 i = recenter_nonneg(MAX_PROB - 1 - v, MAX_PROB - 1 - m) - 1; in remap_prob() [all …]
|
/hardware/libhardware/tests/hwc/ |
D | util.c | 28 void matrix_init_ortho(GLfloat *m, float w, float h) { in matrix_init_ortho() argument 29 m[0] = 2.0 / w; in matrix_init_ortho() 30 m[1] = 0.0; in matrix_init_ortho() 31 m[2] = 0.0; in matrix_init_ortho() 32 m[3] = -1.0; in matrix_init_ortho() 33 m[4] = 0.0; in matrix_init_ortho() 34 m[5] = 2.0 / h; in matrix_init_ortho() 35 m[6] = 0.0; in matrix_init_ortho() 36 m[7] = -1.0; in matrix_init_ortho() 37 m[8] = 0.0; in matrix_init_ortho() [all …]
|
/hardware/qcom/display/msm8996/libgralloc/ |
D | gpu.cpp | 191 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_framebuffer_locked() local 195 if (m->framebuffer == NULL) { in gralloc_alloc_framebuffer_locked() 200 const unsigned int bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked() 201 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked() 202 unsigned int bufferSize = m->finfo.line_length * m->info.yres; in gralloc_alloc_framebuffer_locked() 213 m->fbFormat, m->info.xres, m->info.yres); in gralloc_alloc_framebuffer_locked() 222 uint64_t vaddr = uint64_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked() 226 dup(m->framebuffer->fd), bufferSize, in gralloc_alloc_framebuffer_locked() 229 BUFFER_TYPE_UI, m->fbFormat, m->info.xres, in gralloc_alloc_framebuffer_locked() 230 m->info.yres); in gralloc_alloc_framebuffer_locked() [all …]
|
/hardware/qcom/display/msm8909/libgralloc/ |
D | gpu.cpp | 206 private_module_t* m = reinterpret_cast<private_module_t*>(common.module); in gralloc_alloc_framebuffer_locked() local 213 if (m->framebuffer == NULL) { in gralloc_alloc_framebuffer_locked() 218 const unsigned int bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked() 219 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked() 220 unsigned int bufferSize = m->finfo.line_length * m->info.yres; in gralloc_alloc_framebuffer_locked() 231 m->fbFormat, m->info.xres, m->info.yres); in gralloc_alloc_framebuffer_locked() 240 uint64_t vaddr = uint64_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked() 244 dup(m->framebuffer->fd), bufferSize, in gralloc_alloc_framebuffer_locked() 247 BUFFER_TYPE_UI, m->fbFormat, m->info.xres, in gralloc_alloc_framebuffer_locked() 248 m->info.yres); in gralloc_alloc_framebuffer_locked() [all …]
|
/hardware/bsp/intel/peripheral/libmraa/examples/javascript/ |
D | GPIO_DigitalWrite.js | 25 var m = require('mraa'); //require mraa variable 26 console.log('MRAA Version: ' + m.getVersion()); //write the mraa version to the console 28 var myDigitalPin = new m.Gpio(5); //setup digital read on pin 5 29 myDigitalPin.dir(m.DIR_OUT); //set the gpio direction to output
|
D | Blink-IO.js | 25 var m = require('mraa'); //require mraa variable 26 console.log('MRAA Version: ' + m.getVersion()); //write the mraa version to the console 28 var myLed = new m.Gpio(13); //LED hooked up to digital pin 13 (or built in pin on Galileo Gen1 & Ge… 29 myLed.dir(m.DIR_OUT); //set the gpio direction to output
|
D | GPIO_DigitalRead.js | 25 var m = require('mraa'); //require mraa variable 26 console.log('MRAA Version: ' + m.getVersion()); //write the mraa version to the console 28 var myDigitalPin = new m.Gpio(6); //setup digital read on pin 6 29 myDigitalPin.dir(m.DIR_IN); //set the gpio direction to input
|
/hardware/bsp/intel/peripheral/libmraa/docs/ |
D | galileorevh.md | 33 >>> import mraa as m 34 >>> p77 = m.Gpio(77, False, True) 35 >>> p76 = m.Gpio(76, False, True) 36 >>> p16 = m.Gpio(16, False, True) 37 >>> p17 = m.Gpio(17, False, True) 40 >>> p16.dir(m.DIR_OUT) 42 >>> p17.dir(m.DIR_OUT) 46 >>> p34 = m.Gpio(34, False, True) 47 >>> p34.dir(m.DIR_OUT) 51 >>> x = m.Uart(1)
|