Home
last modified time | relevance | path

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

12345678

/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 …]
/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.c199 static inline struct snd_interval *param_to_interval(struct snd_pcm_hw_params *p, int n) in param_to_interval() argument
201 return &(p->intervals[n - SNDRV_PCM_HW_PARAM_FIRST_INTERVAL]); in param_to_interval()
204 static inline struct snd_mask *param_to_mask(struct snd_pcm_hw_params *p, int n) in param_to_mask() argument
206 return &(p->masks[n - SNDRV_PCM_HW_PARAM_FIRST_MASK]); in param_to_mask()
209 void param_set_mask(struct snd_pcm_hw_params *p, int n, unsigned bit) in param_set_mask() argument
213 if (param_is_mask(n)) { in param_set_mask()
214 struct snd_mask *m = param_to_mask(p, n); in param_set_mask()
221 void param_set_min(struct snd_pcm_hw_params *p, int n, unsigned val) in param_set_min() argument
223 if (param_is_interval(n)) { in param_set_min()
224 struct snd_interval *i = param_to_interval(p, n); in param_set_min()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
Dvp9_scan.c300 int n, l2 = l * l; in find_in_scan() local
301 for (n = 0; n < l2; n++) { in find_in_scan()
302 int rc = scan[n]; in find_in_scan()
304 return n; in find_in_scan()
313 int n, i, j; in init_scan_neighbors() local
319 for (n = 1; n < l2; n++) { in init_scan_neighbors()
320 int rc = scan[n]; in init_scan_neighbors()
321 iscan[n] = find_in_scan(scan, l, n); in init_scan_neighbors()
340 neighbors[MAX_NEIGHBORS * n + 0] = in init_scan_neighbors()
341 neighbors[MAX_NEIGHBORS * n + 1] = a; in init_scan_neighbors()
[all …]
Dvp9_common.h30 #define ROUND_POWER_OF_TWO(value, n) \ argument
31 (((value) + (1 << ((n) - 1))) >> (n))
33 #define ALIGN_POWER_OF_TWO(value, n) \ argument
34 (((value) + ((1 << (n)) - 1)) & ~((1 << (n)) - 1))
43 #define vp9_copy_array(dest, src, n) { \ argument
45 vpx_memcpy(dest, src, n * sizeof(*src)); \
49 #define vp9_zero_array(dest, n) vpx_memset(dest, 0, n * sizeof(*dest)) argument
Dvp9_systemdependent.h48 static INLINE int get_msb(unsigned int n) { in get_msb() argument
49 return 31 ^ __builtin_clz(n); in get_msb()
54 static INLINE int get_msb(unsigned int n) { in get_msb() argument
56 _BitScanReverse(&first_set_bit, n); in get_msb()
62 static INLINE int get_msb(unsigned int n) { in get_msb() argument
64 unsigned int value = n; in get_msb()
Dvp9_mvref_common.c325 int n; in vp9_append_sub8x8_mvs_for_idx() local
341 for (n = 0; n < MAX_MV_REF_CANDIDATES; ++n) in vp9_append_sub8x8_mvs_for_idx()
342 if (nearest->as_int != mv_list[n].as_int) { in vp9_append_sub8x8_mvs_for_idx()
343 near->as_int = mv_list[n].as_int; in vp9_append_sub8x8_mvs_for_idx()
355 for (n = 0; n < 2 + MAX_MV_REF_CANDIDATES; ++n) in vp9_append_sub8x8_mvs_for_idx()
356 if (nearest->as_int != candidates[n].as_int) { in vp9_append_sub8x8_mvs_for_idx()
357 near->as_int = candidates[n].as_int; in vp9_append_sub8x8_mvs_for_idx()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx_mem/memory_manager/
Dhmm_resize.c18 int U(resize)(U(descriptor) *desc, void *mem, U(size_aau) n) { in U()
27 n += HEAD_AAUS; in U()
28 n = DIV_ROUND_UP(n, HMM_BLOCK_ALIGN_UNIT); in U()
30 if (n < MIN_BLOCK_BAUS) in U()
31 n = MIN_BLOCK_BAUS; in U()
58 if (n > i) in U()
77 i -= n; in U()
84 n += i; in U()
85 i = n; in U()
92 rem_head_ptr = (head_record *) BAUS_FORWARD(head_ptr, n); in U()
[all …]
Dhmm_alloc.c18 void *U(alloc)(U(descriptor) *desc, U(size_aau) n) { in U()
36 n += HEAD_AAUS; in U()
40 n = DIV_ROUND_UP(n, HMM_BLOCK_ALIGN_UNIT); in U()
42 if (n < MIN_BLOCK_BAUS) in U()
43 n = MIN_BLOCK_BAUS; in U()
50 (U(avl_avl) *) & (desc->avl_tree_root), (U(size_bau)) n, in U()
56 U(alloc_from_bin)(desc, ptr_rec_ptr, (U(size_bau)) n) : 0); in U()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx_ports/
Dmem.h19 #define DECLARE_ALIGNED(n,typ,val) typ val __attribute__ ((aligned (n))) argument
21 #define DECLARE_ALIGNED(n,typ,val) __declspec(align(n)) typ val argument
24 #define DECLARE_ALIGNED(n,typ,val) typ val argument
34 #define DECLARE_ALIGNED_ARRAY(a,typ,val,n)\ argument
35 typ val##_[(n)+(a)/sizeof(typ)+1];\
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
Didct8x8_test.cc40 for (int n = 0; n < 8; n++) in reference_dct_1d() local
41 output[k] += input[n]*cos(kPi*(2*n+1)*k/16.0); in reference_dct_1d()
76 for (int n = 0; n < 8; n++) { in reference_idct_1d() local
77 output[k] += input[n]*cos(kPi*(2*k+1)*n/16.0); in reference_idct_1d()
78 if (n == 0) in reference_idct_1d()
/hardware/ti/omap3/omx/system/src/openmax_il/perf/src/
Dperf_rt.c44 dDelay->n = n0; in init_delay()
122 me->dUptime->xx = me->dUptime->x = me->dUptime->n = 0; in PERF_RT_create()
297 unsigned long size, long n) in print_rate_info() argument
309 n, in print_rate_info()
346 dDelay->n ++; in delay_add()
351 if (dDelay->n < 0) in delay_delta()
353 dDelay->n++; in delay_delta()
365 if (dDelay->n > 0) in count_delay()
367 double x = 1e-6 * dDelay->x / dDelay->n; in count_delay()
368 double xx = 1e-12 * dDelay->xx / dDelay->n; in count_delay()
[all …]
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/
DOMXFocus.cpp729 for ( unsigned int n = 0; n < mFocusAreas.size(); n++) in setTouchFocus() local
732 mFocusAreas.itemAt(n)->transfrom((size_t)mPreviewData->mWidth, in setTouchFocus()
734 (size_t&)focusAreas[0]->tAlgoAreas[n].nTop, in setTouchFocus()
735 (size_t&)focusAreas[0]->tAlgoAreas[n].nLeft, in setTouchFocus()
736 (size_t&)focusAreas[0]->tAlgoAreas[n].nWidth, in setTouchFocus()
737 (size_t&)focusAreas[0]->tAlgoAreas[n].nHeight); in setTouchFocus()
739 focusAreas[0]->tAlgoAreas[n].nLeft = in setTouchFocus()
740 … ( focusAreas[0]->tAlgoAreas[n].nLeft * TOUCH_FOCUS_RANGE ) / mPreviewData->mWidth; in setTouchFocus()
741 focusAreas[0]->tAlgoAreas[n].nTop = in setTouchFocus()
742 … ( focusAreas[0]->tAlgoAreas[n].nTop* TOUCH_FOCUS_RANGE ) / mPreviewData->mHeight; in setTouchFocus()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/decoder/
Ddetokenize.c90 int ctx, int n, int16_t* out) in GetCoeffs() argument
92 const uint8_t* p = prob[n][ctx]; in GetCoeffs()
99 ++n; in GetCoeffs()
102 p = prob[kBands[n]][0]; in GetCoeffs()
109 p = prob[kBands[n]][1]; in GetCoeffs()
152 p = prob[kBands[n]][2]; in GetCoeffs()
154 j = kZigzag[n - 1]; in GetCoeffs()
158 if (n == 16 || !VP8GetBit(br, p[0])) in GetCoeffs()
160 return n; in GetCoeffs()
163 if (n == 16) in GetCoeffs()
/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/ti/omap4-aah/camera/OMXCameraAdapter/
DOMXFocus.cpp758 for ( unsigned int n = 0; n < mFocusAreas.size(); n++) { in setTouchFocus() local
770 mFocusAreas.itemAt(n)->transfrom((size_t)mPreviewData->mWidth/widthDivisor, in setTouchFocus()
772 (size_t&)focusAreas->tAlgoAreas[n].nTop, in setTouchFocus()
773 (size_t&)focusAreas->tAlgoAreas[n].nLeft, in setTouchFocus()
774 (size_t&)focusAreas->tAlgoAreas[n].nWidth, in setTouchFocus()
775 (size_t&)focusAreas->tAlgoAreas[n].nHeight); in setTouchFocus()
777 focusAreas->tAlgoAreas[n].nLeft = in setTouchFocus()
778 ( focusAreas->tAlgoAreas[n].nLeft * TOUCH_FOCUS_RANGE ) / mPreviewData->mWidth; in setTouchFocus()
779 focusAreas->tAlgoAreas[n].nTop = in setTouchFocus()
780 ( focusAreas->tAlgoAreas[n].nTop* TOUCH_FOCUS_RANGE ) / mPreviewData->mHeight; in setTouchFocus()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
Dtreewriter.h66 int n /* number of bits in v, assumed nonzero */ in vp8_treed_write() argument
73 const int b = (v >> --n) & 1; in vp8_treed_write()
77 while (n); in vp8_treed_write()
94 int n /* number of bits in v, assumed nonzero */ in vp8_treed_cost() argument
102 const int b = (v >> --n) & 1; in vp8_treed_cost()
106 while (n); in vp8_treed_cost()
/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); \
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/
Dtreecoder.c57 int n, /* n = size of alphabet */ in branch_counts() argument
64 const int tree_len = n - 1; in branch_counts()
104 while (++t < n); in branch_counts()
110 int n, /* n = size of alphabet */ in vp8_tree_probs_from_distribution() argument
120 const int tree_len = n - 1; in vp8_tree_probs_from_distribution()
123 branch_counts(n, tok, tree, branch_ct, num_events); in vp8_tree_probs_from_distribution()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/
Ddecode_with_drops.c82 int n = 0; in main() local
99 n = strtol(argv[3], &nptr, 0); in main()
102 if (!n || !m || (*nptr != '-' && *nptr != '/')) in main()
128 skip = (is_range && frame_cnt >= n && frame_cnt <= m) || in main()
129 (!is_range && m - (frame_cnt - 1) % m <= n); in main()
/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 …]
/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 …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/nestegg/halloc/src/
Dhalloc.c50 static void * _realloc(void * ptr, size_t n);
149 void * h_calloc(size_t n, size_t len) in h_calloc() argument
151 void * ptr = halloc(0, len*=n); in h_calloc()
203 static void * _realloc(void * ptr, size_t n) in _realloc() argument
208 if (n) in _realloc()
209 return realloc(ptr, n); in _realloc()
/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/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()

12345678