Home
last modified time | relevance | path

Searched refs:OPUS_OK (Results 1 – 22 of 22) sorted by relevance

/external/libopus/tests/
Dtest_opus_encode.c216 if(err!=OPUS_OK || dec==NULL)test_failed(); in fuzz_encoder_settings()
219 if(err!=OPUS_OK || enc==NULL)test_failed(); in fuzz_encoder_settings()
248 if(opus_encoder_ctl(enc, OPUS_SET_BITRATE(bitrate)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
249 if(opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(force_channel)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
250 if(opus_encoder_ctl(enc, OPUS_SET_VBR(vbr)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
251 … if(opus_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(vbr_constraint)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
252 if(opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY(complexity)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
253 if(opus_encoder_ctl(enc, OPUS_SET_MAX_BANDWIDTH(max_bw)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
254 if(opus_encoder_ctl(enc, OPUS_SET_SIGNAL(sig)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
255 if(opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(inband_fec)) != OPUS_OK) test_failed(); in fuzz_encoder_settings()
[all …]
Dtest_opus_api.c125 err = OPUS_OK; in test_dec_api()
144 if(err!=OPUS_OK || dec==NULL)test_failed(); in test_dec_api()
155 if(err!=OPUS_OK)test_failed(); in test_dec_api()
169 if(err != OPUS_OK || i!=0)test_failed(); in test_dec_api()
177 if(err != OPUS_OK || i!=48000)test_failed(); in test_dec_api()
187 if(err != OPUS_OK || i>0 || i<-1)test_failed(); in test_dec_api()
195 if(err != OPUS_OK || i>0 || i<-1)test_failed(); in test_dec_api()
202 if(err != OPUS_OK || i>0 || i<-1)test_failed(); in test_dec_api()
210 if(err != OPUS_OK || i!=960)test_failed(); in test_dec_api()
217 if(err != OPUS_OK || i!=0)test_failed(); in test_dec_api()
[all …]
Dtest_opus_projection.c217 if (ret != OPUS_OK || !matrix_size) in test_creation_arguments()
237 is_projection_valid = (enc_error == OPUS_OK && dec_error == OPUS_OK); in test_creation_arguments()
309 if (error != OPUS_OK) { in test_encode_decode()
320 if (error != OPUS_OK) in test_encode_decode()
327 if (error != OPUS_OK || !matrix_size) in test_encode_decode()
340 if (error != OPUS_OK) { in test_encode_decode()
Dtest_opus_decode.c83 if(err!=OPUS_OK || dec[t]==NULL)test_failed(); in test_decoder_code0()
111 if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); in test_decoder_code0()
127 if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); in test_decoder_code0()
162 if(opus_decoder_ctl(dec[t], OPUS_RESET_STATE)!=OPUS_OK)test_failed(); in test_decoder_code0()
190 if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); in test_decoder_code0()
205 if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); in test_decoder_code0()
214 if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); in test_decoder_code0()
329 if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); in test_decoder_code0()
Dopus_decode_fuzzer.c78 if (err != OPUS_OK | dec == NULL) { in LLVMFuzzerTestOneInput()
/external/libopus/src/
Dopus_projection_encoder.c98 return OPUS_OK; in get_order_plus_one_from_channels()
107 if (get_order_plus_one_from_channels(channels, order_plus_one) != OPUS_OK) in get_streams_from_channels()
113 return OPUS_OK; in get_streams_from_channels()
156 if (ret != OPUS_OK) in opus_projection_ambisonics_encoder_get_size()
220 coupled_streams, &order_plus_one) != OPUS_OK) in opus_projection_ambisonics_encoder_init()
334 if (ret != OPUS_OK) in opus_projection_ambisonics_encoder_create()
385 int ret = OPUS_OK; in opus_projection_encoder_ctl()
Dopus_multistream_decoder.c100 if(ret!=OPUS_OK)return ret; in opus_multistream_decoder_init()
106 if(ret!=OPUS_OK)return ret; in opus_multistream_decoder_init()
109 return OPUS_OK; in opus_multistream_decoder_init()
141 if (ret != OPUS_OK) in opus_multistream_decoder_create()
421 int ret = OPUS_OK; in opus_multistream_decoder_ctl_va_list()
460 if (ret != OPUS_OK) break; in opus_multistream_decoder_ctl_va_list()
478 if (ret != OPUS_OK) in opus_multistream_decoder_ctl_va_list()
522 if (ret != OPUS_OK) in opus_multistream_decoder_ctl_va_list()
Drepacketizer.c89 return OPUS_OK; in opus_repacketizer_cat_impl()
247 return OPUS_OK; in opus_packet_pad()
254 if (ret != OPUS_OK) in opus_packet_pad()
258 return OPUS_OK; in opus_packet_pad()
290 return OPUS_OK; in opus_multistream_packet_pad()
Dopus_multistream_encoder.c475 if(ret!=OPUS_OK)return ret; in opus_multistream_encoder_init_impl()
485 if(ret!=OPUS_OK)return ret; in opus_multistream_encoder_init_impl()
494 return OPUS_OK; in opus_multistream_encoder_init_impl()
612 if (ret != OPUS_OK) in opus_multistream_encoder_create()
657 if (ret != OPUS_OK) in opus_multistream_surround_encoder_create()
999 if (ret != OPUS_OK) in opus_multistream_encode_native()
1121 int ret = OPUS_OK; in opus_multistream_encoder_ctl_va_list()
1206 if (ret != OPUS_OK) break; in opus_multistream_encoder_ctl_va_list()
1240 if (ret != OPUS_OK) in opus_multistream_encoder_ctl_va_list()
1301 if (ret != OPUS_OK) in opus_multistream_encoder_ctl_va_list()
Dopus_projection_decoder.c202 if (ret != OPUS_OK) in opus_projection_decoder_create()
245 int ret = OPUS_OK; in opus_projection_decoder_ctl()
Dopus_decoder.c149 if(ret!=OPUS_OK)return OPUS_INTERNAL_ERROR; in opus_decoder_init()
156 return OPUS_OK; in opus_decoder_init()
180 if (ret != OPUS_OK) in opus_decoder_create()
835 int ret = OPUS_OK; in opus_decoder_ctl()
Drepacketizer_demo.c147 if (err!=OPUS_OK) in main()
Dopus_demo.c522 if (err != OPUS_OK) in main()
544 if (err != OPUS_OK) in main()
737 if ((err = opus_packet_pad(data[toggle], len[toggle], new_len)) != OPUS_OK) in main()
Dopus_encoder.c233 if(err!=OPUS_OK)return OPUS_INTERNAL_ERROR; in opus_encoder_init()
270 return OPUS_OK; in opus_encoder_init()
538 if (ret != OPUS_OK) in opus_encoder_create()
1284 if (ret == OPUS_OK) in opus_encode_native()
2184 if (opus_packet_pad(data, ret, max_data_bytes) != OPUS_OK) in opus_encode_native()
2273 ret = OPUS_OK; in opus_encoder_ctl()
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/
Dopus_interface.c72 if (error != OPUS_OK || !state->encoder) { in WebRtcOpus_EncoderCreate()
225 if (ret != OPUS_OK) in WebRtcOpus_EnableDtx()
235 if (ret != OPUS_OK) in WebRtcOpus_DisableDtx()
264 if (error == OPUS_OK && state->decoder != NULL) { in WebRtcOpus_DecoderCreate()
Dopus_unittest.cc649 EXPECT_EQ(OPUS_OK, opus_repacketizer_cat(rp, bitstream_, encoded_bytes_)); in TEST_P()
/external/libopus/celt/
Darch.h82 #define MUST_SUCCEED(call) celt_assert((call) == OPUS_OK)
86 #define MUST_SUCCEED(call) do {if((call) != OPUS_OK) {RESTORE_STACK; return OPUS_INTERNAL_ERROR;} }…
Dmodes.c251 *error = OPUS_OK; in opus_custom_mode_create()
398 *error = OPUS_OK; in opus_custom_mode_create()
Dcelt_decoder.c165 if (ret != OPUS_OK) in opus_custom_decoder_create()
180 if (ret != OPUS_OK) in celt_decoder_init()
186 return OPUS_OK; in celt_decoder_init()
216 return OPUS_OK; in opus_custom_decoder_init()
1365 return OPUS_OK;
Dcelt_encoder.c155 if (ret != OPUS_OK) in opus_custom_encoder_create()
197 return OPUS_OK; in opus_custom_encoder_init_arch()
213 if (ret != OPUS_OK) in celt_encoder_init()
216 return OPUS_OK; in celt_encoder_init()
2600 return OPUS_OK; in opus_custom_encoder_ctl()
/external/webrtc/webrtc/modules/audio_coding/neteq/test/
Dneteq_opus_quality_test.cc189 if (OPUS_OK != opus_repacketizer_cat(repacketizer_, payload, value)) { in EncodeBlock()
/external/libopus/include/
Dopus_defines.h46 #define OPUS_OK 0 macro