/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/ |
H A D | pickinter.h | 25 extern void vp8_pick_intra_mode(MACROBLOCK *x, int *rate);
|
H A D | encodemb.c | 204 int rate; member in struct:vp8_token_state 283 tokens[eob][0].rate = 0; 305 rate0 = tokens[next][0].rate; 306 rate1 = tokens[next][1].rate; 330 tokens[i][0].rate = base_bits + (best ? rate1 : rate0); 337 rate0 = tokens[next][0].rate; 338 rate1 = tokens[next][1].rate; 400 tokens[i][1].rate = base_bits + (best ? rate1 : rate0); 420 tokens[next][0].rate += mb->token_costs[type][band][0][t0]; 425 tokens[next][1].rate [all...] |
H A D | rdopt.c | 240 /* Extend rate multiplier along side quantizer zbin increases */ 616 /* rate */ 644 int rate = 0; local 668 rate = bmode_costs[mode]; 680 rate += ratey; 683 this_rd = RDCOST(x->rdmult, x->rddiv, rate, distortion); 687 *bestrate = rate; 777 int rate, ratey; local 797 rate = ratey + x->mbmode_cost[xd->frame_type] 800 this_rd = RDCOST(x->rdmult, x->rddiv, rate, distortio 839 rd_inter16x16_uv(VP8_COMP *cpi, MACROBLOCK *x, int *rate, int *distortion, int fullpixel) argument 858 rd_inter4x4_uv(VP8_COMP *cpi, MACROBLOCK *x, int *rate, int *distortion, int fullpixel) argument 877 rd_pick_intra_mbuv_mode(MACROBLOCK *x, int *rate, int *rate_tokenonly, int *distortion) argument 1117 int rate = 0; local 1961 int rate; local 2617 int rate; local [all...] |
H A D | pickinter.c | 148 int rate; local 159 rate = mode_costs[mode]; 164 this_rd = RDCOST(x->rdmult, x->rddiv, rate, distortion); 168 *bestrate = rate; 589 int rate; local 806 pick_intra4x4mby_modes(x, &rate, &distortion2); 814 rate2 += rate; 1255 int rate, best_rate = 0, distortion, best_sse = 0; local 1277 rate = x->mbmode_cost[xd->frame_type][mode]; 1278 this_rd = RDCOST(x->rdmult, x->rddiv, rate, distortio [all...] |
/hardware/libhardware/modules/usbaudio/ |
H A D | alsa_device_proxy.c | 44 proxy->alsa_config.rate = 45 config->rate != 0 && profile_is_sample_rate_valid(profile, config->rate) 46 ? config->rate : profile->default_config.rate; 53 profile_get_period_size(proxy->profile, proxy->alsa_config.rate); 104 return proxy->alsa_config.rate;
|
H A D | alsa_device_profile.c | 112 * Returns the system defined minimum period size based on the supplied sample rate. 116 ALOGV("profile_calc_min_period_size(%p, rate:%d)", profile, sample_rate); 132 ALOGV("profile_get_period_size(rate:%d) = %d", sample_rate, period_size); 142 * TODO this won't be right in general. we should store a preferred rate as we are scanning. 143 * But right now it will return the highest rate, which may be correct. 148 bool profile_is_sample_rate_valid(alsa_device_profile* profile, unsigned rate) argument 153 if (profile->sample_rates[index] == rate) { 160 return rate == DEFAULT_SAMPLE_RATE; 207 static bool profile_test_sample_rate(alsa_device_profile* profile, unsigned rate) argument 210 config.rate [all...] |
H A D | alsa_device_profile.h | 76 bool profile_is_sample_rate_valid(alsa_device_profile* profile, unsigned rate);
|
H A D | audio_hw.c | 243 uint32_t rate = proxy_get_sample_rate(&((struct stream_out*)stream)->proxy); local 244 ALOGV("out_get_sample_rate() = %d", rate); 245 return rate; 248 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) argument 526 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(out->profile); 528 proxy_config.rate = config->sample_rate; 530 proxy_config.rate = config->sample_rate = profile_get_default_sample_rate(out->profile); 603 /* TODO This needs to be calculated based on format/channels/rate */ 612 uint32_t rate = proxy_get_sample_rate(&((const struct stream_in *)stream)->proxy); local 613 ALOGV("in_get_sample_rate() = %d", rate); 617 in_set_sample_rate(struct audio_stream *stream, uint32_t rate) argument [all...] |
/hardware/intel/img/hwcomposer/common/observers/ |
H A D | SoftVsyncObserver.cpp | 84 void SoftVsyncObserver::setRefreshRate(int rate) argument 87 WLOGTRACE("too late to set refresh rate"); 88 } else if (rate < 1 || rate > 120) { 89 WLOGTRACE("invalid refresh rate %d", rate); 91 mRefreshRate = rate;
|
H A D | SoftVsyncObserver.h | 34 virtual void setRefreshRate(int rate);
|
/hardware/qcom/msm8960/original-kernel-headers/linux/mfd/wcd9xxx/ |
H A D | wcd9xxx-slimslave.h | 108 unsigned int tot_ch, unsigned int rate); 110 unsigned int tot_ch, unsigned int rate);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
H A D | vp9_pickmode.c | 186 int rate; local 196 pd->dequant[1] >> 3, &rate, &dist); 197 *out_rate_sum = rate; 222 int rate = INT_MAX; local 323 model_rd_for_sb_y(cpi, bsize, x, xd, &rate, &dist); 324 rate += rate_mv; 325 rate += x->inter_mode_cost[mbmi->mode_context[ref_frame]] 327 this_rd = RDCOST(x->rdmult, x->rddiv, rate, dist); 331 *returnrate = rate; 353 model_rd_for_sb_y(cpi, bsize, x, xd, &rate, [all...] |
H A D | vp9_rdopt.h | 40 unsigned int qstep, int *rate,
|
H A D | vp9_encodemb.c | 69 int rate; member in struct:vp9_token_state 146 tokens[eob][0].rate = 0; 168 rate0 = tokens[next][0].rate; 169 rate1 = tokens[next][1].rate; 188 tokens[i][0].rate = base_bits + (best ? rate1 : rate0); 196 rate0 = tokens[next][0].rate; 197 rate1 = tokens[next][1].rate; 244 tokens[i][1].rate = base_bits + (best ? rate1 : rate0); 261 tokens[next][0].rate += 266 tokens[next][1].rate [all...] |
H A D | vp9_rdopt.c | 49 /* Factor to weigh the rate for switchable interp filters */ 71 int rate; member in struct:rdcost_block_args 327 // Normalized rate 328 // This table models the rate for a Laplacian source 403 unsigned int qstep, int *rate, 405 // This function models the rate and distortion for a Laplacian 412 *rate = 0; 421 *rate = (n * r_q10 + 2) >> 2; 451 int64_t rate; local 457 rate 402 vp9_model_rd_from_var_lapndz(unsigned int var, unsigned int n, unsigned int qstep, int *rate, int64_t *dist) argument 464 int rate; local 507 int rate; local 738 txfm_rd_in_plane(MACROBLOCK *x, int *rate, int64_t *distortion, int *skippable, int64_t *sse, int64_t ref_best_rd, int plane, BLOCK_SIZE bsize, TX_SIZE tx_size, int use_fast_coef_casting) argument 773 choose_largest_txfm_size(VP9_COMP *cpi, MACROBLOCK *x, int *rate, int64_t *distortion, int *skip, int64_t *sse, int64_t ref_best_rd, BLOCK_SIZE bs) argument 792 choose_txfm_size_from_rd(VP9_COMP *cpi, MACROBLOCK *x, int (*r)[2], int *rate, int64_t *d, int64_t *distortion, int *s, int *skip, int64_t tx_cache[TX_MODES], BLOCK_SIZE bs) argument 870 scaled_rd_cost(int rdmult, int rddiv, int rate, int64_t dist, double scale) argument 875 choose_txfm_size_from_modelrd(VP9_COMP *cpi, MACROBLOCK *x, int (*r)[2], int *rate, int64_t *d, int64_t *distortion, int *s, int *skip, int64_t *sse, int64_t ref_best_rd, BLOCK_SIZE bs) argument 946 inter_super_block_yrd(VP9_COMP *cpi, MACROBLOCK *x, int *rate, int64_t *distortion, int *skip, int64_t *psse, BLOCK_SIZE bs, int64_t txfm_cache[TX_MODES], int64_t ref_best_rd) argument 990 intra_super_block_yrd(VP9_COMP *cpi, MACROBLOCK *x, int *rate, int64_t *distortion, int *skip, int64_t *psse, BLOCK_SIZE bs, int64_t txfm_cache[TX_MODES], int64_t ref_best_rd) argument 1079 int rate = bmode_costs[mode]; local 1169 rd_pick_intra_sub_8x8_y_mode(VP9_COMP *cpi, MACROBLOCK *mb, int *rate, int *rate_y, int64_t *distortion, int64_t best_rd) argument 1236 rd_pick_intra_sby_mode(VP9_COMP *cpi, MACROBLOCK *x, int *rate, int *rate_tokenonly, int64_t *distortion, int *skippable, BLOCK_SIZE bsize, int64_t tx_cache[TX_MODES], int64_t best_rd) argument 1309 super_block_uvrd(const VP9_COMP *cpi, MACROBLOCK *x, int *rate, int64_t *distortion, int *skippable, int64_t *sse, BLOCK_SIZE bsize, int64_t ref_best_rd) argument 1355 rd_pick_intra_sbuv_mode(VP9_COMP *cpi, MACROBLOCK *x, PICK_MODE_CONTEXT *ctx, int *rate, int *rate_tokenonly, int64_t *distortion, int *skippable, BLOCK_SIZE bsize, TX_SIZE max_tx_size) argument 1416 rd_sbuv_dcpred(const VP9_COMP *cpi, MACROBLOCK *x, int *rate, int *rate_tokenonly, int64_t *distortion, int *skippable, BLOCK_SIZE bsize) argument 3993 int rate; local 4018 int rate; local [all...] |
/hardware/qcom/audio/legacy/libalsa-intf/ |
H A D | arec.c | 94 unsigned int requestedRate = pcm->rate; 118 param_set_int(params, SNDRV_PCM_HW_PARAM_RATE, pcm->rate); 178 int record_file(unsigned rate, unsigned channels, int fd, unsigned count, unsigned flags, const char *device) argument 208 pcm->rate = rate; 387 int rec_raw(const char *fg, const char *device, int rate, int ch, argument 408 count = rate * ch * 2; 414 ch, rate, 16, format); 421 return record_file(rate, ch, fd, count, flag, device); 424 int rec_wav(const char *fg, const char *device, int rate, in argument 513 int rate = 48000; local [all...] |
H A D | aplay.c | 90 unsigned int requestedRate = pcm->rate; 115 param_set_int(params, SNDRV_PCM_HW_PARAM_RATE, pcm->rate); 164 static int play_file(unsigned rate, unsigned channels, int fd, argument 235 pcm->rate = rate; 472 int play_raw(const char *fg, int rate, int ch, const char *device, const char *fn) argument 495 return play_file(rate, ch, fd, flag, device, 0); 498 int play_wav(const char *fg, int rate, int ch, const char *device, const char *fn) argument 516 hdr.sample_rate = rate; 544 hdr.sample_rate = rate; 564 int rate = 44100; local [all...] |
/hardware/qcom/audio/hal/audio_extn/ |
H A D | hfp.c | 61 .rate = 8000, 267 int rate; local 284 rate = atoi(value); 285 if (rate == 8000){ 287 pcm_config_hfp.rate = rate; 288 } else if (rate == 16000){ 290 pcm_config_hfp.rate = rate; 292 ALOGE("Unsupported rate [all...] |
/hardware/libhardware/include/hardware/ |
H A D | local_time_hal.h | 81 * Sets the HW slew rate of oscillator which drives the system wide local 85 * Valid values for rate range from MIN_INT16 to MAX_INT16. Platform 87 * slew rate of their hardware. 89 int (*set_local_slew)(struct local_time_hw_device* dev, int16_t rate);
|
/hardware/qcom/audio/legacy/alsa_sound/ |
H A D | ALSAStreamOps.cpp | 96 uint32_t *rate, 134 if (rate && *rate > 0) { 135 if (mHandle->sampleRate != *rate) 137 } else if (rate) { 138 *rate = mHandle->sampleRate; 94 set(int *format, uint32_t *channels, uint32_t *rate, uint32_t device) argument
|
/hardware/invensense/60xx/mlsdk/mllite/ |
H A D | mlBiasNoMotion.c | 158 long rate; local 171 // We always run the accel low pass filter at the highest sample rate possible 178 rate = inv_get_fifo_rate() * 5 + 5; 179 if (rate > 200) 180 rate = 200; 182 gain = inv_obj->accel_lpf_gain * rate;
|
/hardware/qcom/audio/hal/ |
H A D | platform_api.h | 43 int platform_get_sample_rate(void *platform, uint32_t *rate);
|
/hardware/libhardware/modules/audio_remote_submix/ |
H A D | audio_hw.cpp | 71 // the duration of a record buffer at the current record sample rate (of the device, not of 76 #define DEFAULT_SAMPLE_RATE_HZ 48000 // default sample rate 203 // Determine whether the specified sample rate is supported by the submix module. 215 // Determine whether the specified sample rate is supported, if it is return the specified sample 216 // rate, otherwise return the default sample rate for the submix module. 334 ALOGE("audio_config_compare() sample rate mismatch %ul vs. %ul", 366 // If the output isn't configured yet, set the output sample rate to the maximum supported 367 // sample rate such that the smallest possible input buffer is created. 510 SUBMIX_ALOGV("submix_open_validate(): sample rate 557 out_set_sample_rate(struct audio_stream *stream, uint32_t rate) argument 827 const uint32_t rate = in->dev->config.input_sample_rate; local 829 const uint32_t rate = in->dev->config.common.sample_rate; local 835 in_set_sample_rate(struct audio_stream *stream, uint32_t rate) argument [all...] |
/hardware/intel/img/libdrm/tests/ |
H A D | dristat.c | 188 double rate; local 220 rate = (curr.data[j].value - prev.data[j].value) / (double)i; 221 printhuman(rate, curr.data[j].mult_names, curr.data[j].mult);
|
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
H A D | llstats.cpp | 227 stats->rate.preamble = nla_get_u8(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE]); 228 stats->rate.nss = nla_get_u8(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS]); 229 stats->rate.bw = nla_get_u8(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW]); 230 stats->rate.rateMcsIdx = nla_get_u8(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX]); 231 stats->rate.bitrate = nla_get_u32(tb_vendor[QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE]); 241 ALOGI("STATS PEER_ALL : preamble %u", stats->rate.preamble); 242 ALOGI("STATS PEER_ALL : nss %u", stats->rate.nss); 243 ALOGI("STATS PEER_ALL : bw %u", stats->rate.bw); 244 ALOGI("STATS PEER_ALL : rateMcsIdx %u", stats->rate.rateMcsIdx); 245 ALOGI("STATS PEER_ALL : bitrate %u", stats->rate [all...] |