Searched refs:MSBC_CODE_SIZE (Results 1 – 4 of 4) sorted by relevance
/external/adhd/cras/src/plc/ |
D | cras_plc_test.c | 22 #define MSBC_CODE_SIZE 240 macro 39 pk_count = input_file_size / MSBC_CODE_SIZE; in generate_pl_seq() 62 seq_len = MAX(1 + input_file_size / MSBC_CODE_SIZE, pl_hex_len * 4); in parse_pl_hex() 90 uint8_t buffer[MSBC_CODE_SIZE], packet_buffer[MSBC_PKT_FRAME_LEN]; in plc_experiment() 113 rc = read(input_fd, buffer, MSBC_CODE_SIZE); in plc_experiment() 117 } else if (rc == 0 || rc < MSBC_CODE_SIZE) in plc_experiment() 120 msbc_input->encode(msbc_input, buffer, MSBC_CODE_SIZE, in plc_experiment() 127 decoded = MSBC_CODE_SIZE; in plc_experiment() 132 MSBC_CODE_SIZE, &decoded); in plc_experiment() 136 MSBC_CODE_SIZE, &decoded); in plc_experiment()
|
D | cras_plc.c | 17 #define MSBC_CODE_SIZE 240 /* MSBC_SAMPLE_SIZE * MSBC_FS */ macro 174 return MSBC_CODE_SIZE; in cras_msbc_plc_handle_good_frames() 274 memmove(frame_head, state->zero_frame, MSBC_CODE_SIZE); in cras_msbc_plc_handle_bad_frames() 275 memset(frame_head + MSBC_CODE_SIZE, 0, in cras_msbc_plc_handle_bad_frames() 280 memcpy(output, frame_head, MSBC_CODE_SIZE); in cras_msbc_plc_handle_bad_frames() 284 return MSBC_CODE_SIZE; in cras_msbc_plc_handle_bad_frames()
|
/external/adhd/cras/src/tests/ |
D | hfp_info_unittest.cc | 383 set_sbc_codec_decoded_out(MSBC_CODE_SIZE); in TEST() 416 ASSERT_EQ(pkt_count * MSBC_CODE_SIZE / 2, in TEST() 432 ASSERT_EQ(pkt_count * MSBC_CODE_SIZE / 2, in TEST() 448 ASSERT_EQ(pkt_count * MSBC_CODE_SIZE / 2, in TEST() 464 ASSERT_EQ(pkt_count * MSBC_CODE_SIZE / 2, in TEST() 568 return MSBC_CODE_SIZE; in cras_msbc_plc_handle_bad_frames() 575 return MSBC_CODE_SIZE; in cras_msbc_plc_handle_good_frames()
|
/external/adhd/cras/src/server/ |
D | cras_hfp_info.c | 38 #define MSBC_CODE_SIZE 240 macro 278 if (pcm_avail < MSBC_CODE_SIZE) { in hfp_write_msbc() 279 to_write = MSBC_CODE_SIZE - pcm_avail; in hfp_write_msbc() 289 if (pcm_avail < MSBC_CODE_SIZE) in hfp_write_msbc() 442 if (pcm_avail < MSBC_CODE_SIZE) in handle_packet_loss() 583 if (pcm_avail < MSBC_CODE_SIZE) in hfp_read_msbc()
|