Home
last modified time | relevance | path

Searched refs:n (Results 1 – 25 of 139) sorted by relevance

123456

/hardware/qcom/display/msm8998/gpu_tonemapper/
Drgba_inverse_tonemap.inl21 …tension GL_OES_EGL_image_external_essl3 : require \n"
22 …cision highp float; \n"
23 …cision highp sampler2D; \n"
24 …out(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 …out(binding = 1) uniform sampler3D tonemapper; \n"
26 …out(binding = 2) uniform sampler2D xform; \n"
27 …vec2 uv; \n"
28 … vec4 fs_color; \n"
29 …d main() \n"
30 … \n"
[all …]
Dforward_tonemap.inl21 "#extension GL_OES_EGL_image_external_essl3 : require \n"
22 "precision highp float; \n"
23 "precision highp sampler2D; \n"
24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "in vec2 uv; \n"
28 "out vec4 fs_color; \n"
29 "void main() \n"
30 "{ \n"
[all …]
Dfullscreen_vertex_shader.inl21 "#version 300 es \n"
22 "precision highp float; \n"
23 "layout(location = 0) in vec2 iUV; \n"
24 "out vec2 uv; \n"
25 "void main() \n"
26 "{ \n"
27 " vec2 positions[3]; \n"
28 " positions[0] = vec2(-1.0f, 3.0f); \n"
29 " positions[1] = vec2(-1.0f, -1.0f); \n"
30 " positions[2] = vec2(3.0f, -1.0f); \n"
[all …]
/hardware/intel/img/psb_video/src/
Dtng_hostbias.c210 IMG_INT16 n; in tng__MPEG4ES_generate_bias_tables() local
222 for(n=31;n>=1;n--) in tng__MPEG4ES_generate_bias_tables()
224 iX = n-12; in tng__MPEG4ES_generate_bias_tables()
232 uiDCScaleL = CalculateDCScaler(n, IMG_FALSE); in tng__MPEG4ES_generate_bias_tables()
233 uiDCScaleC = CalculateDCScaler(n, IMG_TRUE); in tng__MPEG4ES_generate_bias_tables()
234 uiLambda = psBiasParams->uLambdaSAD ? psBiasParams->uLambdaSAD : MPEG4_QPLAMBDA_MAP[n - 1]; in tng__MPEG4ES_generate_bias_tables()
239 ctx->sBiasTables.aui32LambdaBias[n] = ui32RegVal; in tng__MPEG4ES_generate_bias_tables()
242 for(n=31;n>=1;n-=2) { in tng__MPEG4ES_generate_bias_tables()
245 iInterMBBias = psBiasParams->uTHInter * (n - psBiasParams->uTHInterQP); in tng__MPEG4ES_generate_bias_tables()
257 ctx->sBiasTables.aui32IntraBias[n] = iIntra16Bias; in tng__MPEG4ES_generate_bias_tables()
[all …]
Dpsb_output.c267 inline int min_POT(int n) in min_POT() argument
269 if ((n & (n - 1)) == 0) /* already POT */ in min_POT()
270 return n; in min_POT()
272 return n |= n >> 16, n |= n >> 8, n |= n >> 4, n |= n >> 2, n |= n >> 1, n + 1; in min_POT()
687 int n, i, index; in lnc_unpack_topaz_rec() local
703 for (n = 0; n < src_width / 16; n++) { in lnc_unpack_topaz_rec()
707 memcpy(p_dstY + dstY_stride * i + n * 16, tmp_dstY + 16 * i, 16); in lnc_unpack_topaz_rec()
712 for (n = 0; n < src_width / 16; n++) { in lnc_unpack_topaz_rec()
717 p_dstU[i*dstU_stride + n*8 + index] = tmp_dstUV[index*2 + i*16]; in lnc_unpack_topaz_rec()
718 p_dstV[i*dstV_stride + n*8 + index] = tmp_dstUV[index*2 + i*16+1]; in lnc_unpack_topaz_rec()
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Dalsa_mixer.c99 static const char *elem_iface_name(snd_ctl_elem_iface_t n) in elem_iface_name() argument
101 switch (n) { in elem_iface_name()
113 static const char *elem_type_name(snd_ctl_elem_type_t n) in elem_type_name() argument
115 switch (n) { in elem_type_name()
129 unsigned n,m; in mixer_close() local
135 for (n = 0; n < mixer->count; n++) { in mixer_close()
136 if (mixer->ctl[n].ename) { in mixer_close()
137 unsigned max = mixer->ctl[n].info->value.enumerated.items; in mixer_close()
139 free(mixer->ctl[n].ename[m]); in mixer_close()
140 free(mixer->ctl[n].ename); in mixer_close()
[all …]
Dalsa_pcm.c195 static inline struct snd_interval *param_to_interval(struct snd_pcm_hw_params *p, int n) in param_to_interval() argument
197 return &(p->intervals[n - SNDRV_PCM_HW_PARAM_FIRST_INTERVAL]); in param_to_interval()
200 static inline struct snd_mask *param_to_mask(struct snd_pcm_hw_params *p, int n) in param_to_mask() argument
202 return &(p->masks[n - SNDRV_PCM_HW_PARAM_FIRST_MASK]); in param_to_mask()
205 void param_set_mask(struct snd_pcm_hw_params *p, int n, unsigned bit) in param_set_mask() argument
209 if (param_is_mask(n)) { in param_set_mask()
210 struct snd_mask *m = param_to_mask(p, n); in param_set_mask()
217 void param_set_min(struct snd_pcm_hw_params *p, int n, unsigned val) in param_set_min() argument
219 if (param_is_interval(n)) { in param_set_min()
220 struct snd_interval *i = param_to_interval(p, n); in param_set_min()
[all …]
Dalsa_audio.h145 void param_set_mask(struct snd_pcm_hw_params *p, int n, unsigned bit);
146 void param_set_min(struct snd_pcm_hw_params *p, int n, unsigned val);
147 void param_set_int(struct snd_pcm_hw_params *p, int n, unsigned val);
148 void param_set_max(struct snd_pcm_hw_params *p, int n, unsigned val);
181 struct mixer_ctl *mixer_get_nth_control(struct mixer *mixer, unsigned n);
/hardware/intel/img/psb_video/src/hwdefs/
Dtopaz_db_regs.h211 int n;\
213 for (n = 0; n < sizeof(TOPAZ_DB_Defaults)/ sizeof(TOPAZ_DB_Defaults[0] ) -1; n++)\
215 RegWriteNoTrap(TOPAZ_DB_Defaults[n].uRegOffset + uBase, TOPAZ_DB_Defaults[n].uRegDefault); \
Dtopaz_vlc_regs.h530 int n;\
532 for (n = 0; n < sizeof(TOPAZ_VLC_Defaults)/ sizeof(TOPAZ_VLC_Defaults[0] ) -1; n++)\
534 RegWriteNoTrap(TOPAZ_VLC_Defaults[n].uRegOffset + uBase, TOPAZ_VLC_Defaults[n].uRegDefault); \
/hardware/ril/libril/
Dril_event.cpp143 int n = 0; in removeWatch() local
148 if ((rev != NULL) && (rev->fd > n)) { in removeWatch()
149 n = rev->fd; in removeWatch()
152 nfds = n + 1; in removeWatch()
182 static void processReadReadies(fd_set * rfds, int n) in processReadReadies() argument
184 dlog("~~~~ +processReadReadies (%d) ~~~~", n); in processReadReadies()
187 for (int i = 0; (i < MAX_FD_EVENTS) && (n > 0); i++) { in processReadReadies()
194 n--; in processReadReadies()
199 dlog("~~~~ -processReadReadies (%d) ~~~~", n); in processReadReadies()
347 int n; in ril_event_loop() local
[all …]
/hardware/interfaces/bluetooth/1.0/default/test/
Dasync_fd_watcher_unittest.cc84 int n = TEMP_FAILURE_RETRY(read(fd, server_buffer_, kBufferSize - 1)); in ReadIncomingMessage() local
85 EXPECT_FALSE(n < 0); in ReadIncomingMessage()
87 if (n == 0) { // got EOF in ReadIncomingMessage()
91 n = write(fd, "1", 1); in ReadIncomingMessage()
179 int n = write(socket_cli_fd, client_buffer_, strlen(client_buffer_)); in WriteFromClient() local
180 EXPECT_TRUE(n > 0); in WriteFromClient()
185 int n = read(socket_cli_fd, client_buffer_, 1); in AwaitServerResponse() local
187 EXPECT_TRUE(n > 0); in AwaitServerResponse()
286 int n = TEMP_FAILURE_RETRY(read(fd, read_buf, sizeof(read_buf))); in TEST_F() local
287 ASSERT_TRUE(n == sizeof(read_buf)); in TEST_F()
[all …]
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dml_math_func.c440 void inv_matrix_det_inc(float *a, float *b, int *n, int x, int y) in inv_matrix_det_inc() argument
443 for (i = 0, k = 0; i < *n; i++, k++) { in inv_matrix_det_inc()
444 for (j = 0, l = 0; j < *n; j++, l++) { in inv_matrix_det_inc()
452 *n = *n - 1; in inv_matrix_det_inc()
455 void inv_matrix_det_incd(double *a, double *b, int *n, int x, int y) in inv_matrix_det_incd() argument
458 for (i = 0, k = 0; i < *n; i++, k++) { in inv_matrix_det_incd()
459 for (j = 0, l = 0; j < *n; j++, l++) { in inv_matrix_det_incd()
467 *n = *n - 1; in inv_matrix_det_incd()
470 float inv_matrix_det(float *p, int *n) in inv_matrix_det() argument
474 m = *n; in inv_matrix_det()
[all …]
Dml_math_func.h86 float inv_matrix_det(float *p, int *n);
87 void inv_matrix_det_inc(float *a, float *b, int *n, int x, int y);
88 double inv_matrix_detd(double *p, int *n);
89 void inv_matrix_det_incd(double *a, double *b, int *n, int x, int y);
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dml_math_func.c440 void inv_matrix_det_inc(float *a, float *b, int *n, int x, int y) in inv_matrix_det_inc() argument
443 for (i = 0, k = 0; i < *n; i++, k++) { in inv_matrix_det_inc()
444 for (j = 0, l = 0; j < *n; j++, l++) { in inv_matrix_det_inc()
452 *n = *n - 1; in inv_matrix_det_inc()
455 void inv_matrix_det_incd(double *a, double *b, int *n, int x, int y) in inv_matrix_det_incd() argument
458 for (i = 0, k = 0; i < *n; i++, k++) { in inv_matrix_det_incd()
459 for (j = 0, l = 0; j < *n; j++, l++) { in inv_matrix_det_incd()
467 *n = *n - 1; in inv_matrix_det_incd()
470 float inv_matrix_det(float *p, int *n) in inv_matrix_det() argument
474 m = *n; in inv_matrix_det()
[all …]
Dml_math_func.h86 float inv_matrix_det(float *p, int *n);
87 void inv_matrix_det_inc(float *a, float *b, int *n, int x, int y);
88 double inv_matrix_detd(double *p, int *n);
89 void inv_matrix_det_incd(double *a, double *b, int *n, int x, int y);
/hardware/akm/AK8975_FS/akmdfs/
Dmain.c154 int16_t n; in OptParse()
155 if (AKD_GetLayout(&n) == AKM_SUCCESS) { in OptParse()
156 if ((PAT1 <= n) && (n <= PAT8)) { in OptParse()
157 *layout_patno = (AKFS_PATNO)n; in OptParse()
/hardware/interfaces/usb/1.0/default/
DUsb.cpp322 int n; in uevent_event() local
324 n = uevent_kernel_multicast_recv(payload->uevent_fd, msg, UEVENT_MSG_LEN); in uevent_event()
325 if (n <= 0) in uevent_event()
327 if (n >= UEVENT_MSG_LEN) /* overflow -- discard */ in uevent_event()
330 msg[n] = '\0'; in uevent_event()
331 msg[n + 1] = '\0'; in uevent_event()
397 for (int n = 0; n < nevents; ++n) { in work() local
398 if (events[n].data.ptr) in work()
399 (*(void (*)(int, struct data *payload))events[n].data.ptr) in work()
400 (events[n].events, &payload); in work()
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/parser/
Dutils.c12 void *memcpy(void *dest, const void *src, uint32_t n) in memcpy() argument
16 uint32_t bytes_left=n,trail = 0; in memcpy()
23 if((trail == (((uint32_t)ptr8_to) & 0x3)) && (n > 4)) in memcpy()
66 void *memset(void *s, int32_t c, uint32_t n) in memset() argument
70 uint32_t mask = 0, bytes_left = n; in memset()
75 if(n >= 4) in memset()
/hardware/qcom/audio/legacy/alsa_sound/
DAudioStreamInALSA.cpp132 int n; in read() local
370 n = pcm_read(mHandle->handle, &mSurroundInputBuffer[read], in read()
372 …ALOGV("pcm_read() returned n = %d buffer:%p size:%d", n, &mSurroundInputBuffer[read], period_bytes… in read()
373 if (n && n != -EAGAIN) { in read()
375 return static_cast<ssize_t>(n); in read()
377 else if (n < 0) { in read()
379 return static_cast<ssize_t>(n); in read()
425 n = pcm_read(mHandle->handle, buffer, in read()
427 ALOGV("pcm_read() returned n = %d", n); in read()
428 if (n && (n == -EIO || n == -EAGAIN || n == -EPIPE || n == -EBADFD)) { in read()
[all …]
/hardware/interfaces/bluetooth/1.0/vts/functional/
DVtsHalBluetoothV1_0TargetTest.cpp329 for (int n = 0; n < num_packets; n++) { in sendAndCheckHCI() local
340 for (int digits = n; digits > 0; digits = digits / 10, i--) in sendAndCheckHCI()
362 if (n == 0) logger.setTotalBytes(cmd.size() * num_packets * 2); in sendAndCheckHCI()
373 for (int n = 0; n < num_packets; n++) { in sendAndCheckSCO() local
382 sco_vector.push_back(static_cast<uint8_t>(i + n)); in sendAndCheckSCO()
396 if (n == 0) logger.setTotalBytes(num_packets * size * 2); in sendAndCheckSCO()
417 for (int n = 0; n < num_packets; n++) { in sendAndCheckACL() local
428 acl_vector.push_back(static_cast<uint8_t>(i + n)); in sendAndCheckACL()
442 if (n == 0) logger.setTotalBytes(num_packets * size * 2); in sendAndCheckACL()
/hardware/libhardware/tests/nusensors/
Dnusensors.cpp124 int n = device->poll(device, buffer, numEvents); in main() local
125 if (n < 0) { in main()
130 printf("read %d events:\n", n); in main()
131 for (int i=0 ; i<n ; i++) { in main()
/hardware/broadcom/wlan/bcmdhd/dhdutil/
Ddhdu.h46 int dhd_ether_atoe(const char *a, struct ether_addr *n);
47 int dhd_atoip(const char *a, struct ipv4_addr *n);
/hardware/interfaces/tests/baz/1.0/default/
DBaz.cpp132 const size_t n = in.addresses.size(); in someMethodWithVectorOfArray() local
133 out.addresses.resize(n); in someMethodWithVectorOfArray()
135 for (size_t i = 0; i < n; ++i) { in someMethodWithVectorOfArray()
136 out.addresses[i] = in.addresses[n - 1 - i]; in someMethodWithVectorOfArray()
149 const size_t n = in.size(); in someMethodTakingAVectorOfArray() local
152 out.resize(n); in someMethodTakingAVectorOfArray()
154 for (size_t i = 0; i < n; ++i) { in someMethodTakingAVectorOfArray()
155 out[i] = in[n - 1 - i]; in someMethodTakingAVectorOfArray()
/hardware/intel/common/libva/va/
Dva.c110 int n, len; in va_errorMessage() local
121 n = vsnprintf(dynbuf, len + 1, msg, args); in va_errorMessage()
123 if (n == len) in va_errorMessage()
135 int n, len; in va_infoMessage() local
146 n = vsnprintf(dynbuf, len + 1, msg, args); in va_infoMessage()
148 if (n == len) in va_infoMessage()
681 unsigned int num_attribs, n; in va_impl_query_surface_attributes() local
727 for (n = 0; attribs_map[n].type != VASurfaceAttribNone; n++) { in va_impl_query_surface_attributes()
728 VASurfaceAttrib * const attrib = &attribs[n]; in va_impl_query_surface_attributes()
729 attrib->type = attribs_map[n].type; in va_impl_query_surface_attributes()
[all …]

123456