Lines Matching refs:FLAC__ASSERT
509 FLAC__ASSERT(sizeof(int) >= 4); /* we want to die right away if this is not true */ in FLAC__stream_encoder_new()
583 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_delete()
584 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_delete()
585 FLAC__ASSERT(0 != encoder->private_->frame); in FLAC__stream_encoder_delete()
631 FLAC__ASSERT(0 != encoder); in init_stream_internal_()
707 FLAC__ASSERT(encoder->protected_->qlp_coeff_precision <= FLAC__MAX_QLP_COEFF_PRECISION); in init_stream_internal_()
857 FLAC__ASSERT(FLAC__MAX_SAMPLE_RATE <= 655350); in init_stream_internal_()
858 FLAC__ASSERT(FLAC__MAX_BLOCK_SIZE <= 65535); in init_stream_internal_()
859 FLAC__ASSERT(encoder->protected_->sample_rate <= 655350); in init_stream_internal_()
860 FLAC__ASSERT(encoder->protected_->blocksize <= 65535); in init_stream_internal_()
890 FLAC__ASSERT(encoder->private_->cpuinfo.type == FLAC__CPUINFO_TYPE_IA32); in init_stream_internal_()
984 FLAC__ASSERT(encoder->private_->cpuinfo.type == FLAC__CPUINFO_TYPE_X86_64); in init_stream_internal_()
1308 FLAC__ASSERT(0 != encoder); in init_FILE_internal_()
1309 FLAC__ASSERT(0 != file); in init_FILE_internal_()
1361 FLAC__ASSERT(blocksize != 0); in init_FILE_internal_()
1398 FLAC__ASSERT(0 != encoder); in init_file_internal_()
1442 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_finish()
1443 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_finish()
1444 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_finish()
1508 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_ogg_serial_number()
1509 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_ogg_serial_number()
1510 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_ogg_serial_number()
1525 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_verify()
1526 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_verify()
1527 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_verify()
1538 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_streamable_subset()
1539 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_streamable_subset()
1540 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_streamable_subset()
1549 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_do_md5()
1550 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_do_md5()
1551 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_do_md5()
1560 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_channels()
1561 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_channels()
1562 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_channels()
1571 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_bits_per_sample()
1572 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_bits_per_sample()
1573 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_bits_per_sample()
1582 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_sample_rate()
1583 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_sample_rate()
1584 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_sample_rate()
1594 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_compression_level()
1595 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_compression_level()
1596 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_compression_level()
1626 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_blocksize()
1627 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_blocksize()
1628 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_blocksize()
1637 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_do_mid_side_stereo()
1638 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_do_mid_side_stereo()
1639 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_do_mid_side_stereo()
1648 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_loose_mid_side_stereo()
1649 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_loose_mid_side_stereo()
1650 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_loose_mid_side_stereo()
1660 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_apodization()
1661 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_apodization()
1662 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_apodization()
1663 FLAC__ASSERT(0 != specification); in FLAC__stream_encoder_set_apodization()
1773 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_max_lpc_order()
1774 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_max_lpc_order()
1775 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_max_lpc_order()
1784 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_qlp_coeff_precision()
1785 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_qlp_coeff_precision()
1786 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_qlp_coeff_precision()
1795 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_do_qlp_coeff_prec_search()
1796 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_do_qlp_coeff_prec_search()
1797 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_do_qlp_coeff_prec_search()
1806 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_do_escape_coding()
1807 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_do_escape_coding()
1808 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_do_escape_coding()
1822 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_do_exhaustive_model_search()
1823 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_do_exhaustive_model_search()
1824 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_do_exhaustive_model_search()
1833 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_min_residual_partition_order()
1834 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_min_residual_partition_order()
1835 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_min_residual_partition_order()
1844 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_max_residual_partition_order()
1845 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_max_residual_partition_order()
1846 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_max_residual_partition_order()
1855 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_rice_parameter_search_dist()
1856 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_rice_parameter_search_dist()
1857 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_rice_parameter_search_dist()
1871 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_total_samples_estimate()
1872 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_total_samples_estimate()
1873 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_total_samples_estimate()
1883 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_set_metadata()
1884 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_set_metadata()
1885 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_set_metadata()
1919 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_disable_constant_subframes()
1920 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_disable_constant_subframes()
1921 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_disable_constant_subframes()
1930 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_disable_fixed_subframes()
1931 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_disable_fixed_subframes()
1932 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_disable_fixed_subframes()
1941 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_disable_verbatim_subframes()
1942 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_disable_verbatim_subframes()
1943 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_disable_verbatim_subframes()
1952 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_state()
1953 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_state()
1954 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_state()
1960 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_verify_decoder_state()
1961 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_verify_decoder_state()
1962 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_verify_decoder_state()
1971 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_resolved_state_string()
1972 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_resolved_state_string()
1973 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_resolved_state_string()
1982 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_verify_decoder_error_stats()
1983 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_verify_decoder_error_stats()
1984 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_verify_decoder_error_stats()
2001 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_verify()
2002 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_verify()
2003 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_verify()
2009 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_streamable_subset()
2010 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_streamable_subset()
2011 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_streamable_subset()
2017 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_do_md5()
2018 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_do_md5()
2019 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_do_md5()
2025 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_channels()
2026 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_channels()
2027 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_channels()
2033 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_bits_per_sample()
2034 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_bits_per_sample()
2035 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_bits_per_sample()
2041 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_sample_rate()
2042 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_sample_rate()
2043 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_sample_rate()
2049 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_blocksize()
2050 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_blocksize()
2051 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_blocksize()
2057 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_do_mid_side_stereo()
2058 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_do_mid_side_stereo()
2059 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_do_mid_side_stereo()
2065 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_loose_mid_side_stereo()
2066 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_loose_mid_side_stereo()
2067 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_loose_mid_side_stereo()
2073 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_max_lpc_order()
2074 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_max_lpc_order()
2075 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_max_lpc_order()
2081 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_qlp_coeff_precision()
2082 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_qlp_coeff_precision()
2083 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_qlp_coeff_precision()
2089 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_do_qlp_coeff_prec_search()
2090 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_do_qlp_coeff_prec_search()
2091 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_do_qlp_coeff_prec_search()
2097 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_do_escape_coding()
2098 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_do_escape_coding()
2099 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_do_escape_coding()
2105 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_do_exhaustive_model_search()
2106 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_do_exhaustive_model_search()
2107 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_do_exhaustive_model_search()
2113 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_min_residual_partition_order()
2114 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_min_residual_partition_order()
2115 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_min_residual_partition_order()
2121 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_max_residual_partition_order()
2122 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_max_residual_partition_order()
2123 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_max_residual_partition_order()
2129 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_rice_parameter_search_dist()
2130 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_rice_parameter_search_dist()
2131 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_rice_parameter_search_dist()
2137 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_get_total_samples_estimate()
2138 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_get_total_samples_estimate()
2139 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_get_total_samples_estimate()
2148 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_process()
2149 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_process()
2150 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_process()
2151 FLAC__ASSERT(encoder->protected_->state == FLAC__STREAM_ENCODER_OK); in FLAC__stream_encoder_process()
2167 FLAC__ASSERT(channels == 2); in FLAC__stream_encoder_process()
2181 FLAC__ASSERT(encoder->private_->current_sample_number == blocksize+OVERREAD_); in FLAC__stream_encoder_process()
2182 …FLAC__ASSERT(OVERREAD_ == 1); /* assert we only overread 1 sample which simplifies the rest of the… in FLAC__stream_encoder_process()
2205 FLAC__ASSERT(0 != encoder); in FLAC__stream_encoder_process_interleaved()
2206 FLAC__ASSERT(0 != encoder->private_); in FLAC__stream_encoder_process_interleaved()
2207 FLAC__ASSERT(0 != encoder->protected_); in FLAC__stream_encoder_process_interleaved()
2208 FLAC__ASSERT(encoder->protected_->state == FLAC__STREAM_ENCODER_OK); in FLAC__stream_encoder_process_interleaved()
2240 FLAC__ASSERT(i == blocksize+OVERREAD_); in FLAC__stream_encoder_process_interleaved()
2241 …FLAC__ASSERT(OVERREAD_ == 1); /* assert we only overread 1 sample which simplifies the rest of the… in FLAC__stream_encoder_process_interleaved()
2269 FLAC__ASSERT(i == blocksize+OVERREAD_); in FLAC__stream_encoder_process_interleaved()
2270 …FLAC__ASSERT(OVERREAD_ == 1); /* assert we only overread 1 sample which simplifies the rest of the… in FLAC__stream_encoder_process_interleaved()
2289 FLAC__ASSERT(0 != encoder); in set_defaults_()
2345 FLAC__ASSERT(0 != encoder); in free_()
2427 FLAC__ASSERT(new_blocksize > 0); in resize_buffers_()
2428 FLAC__ASSERT(encoder->protected_->state == FLAC__STREAM_ENCODER_OK); in resize_buffers_()
2429 FLAC__ASSERT(encoder->private_->current_sample_number == 0); in resize_buffers_()
2545 FLAC__ASSERT(0); in resize_buffers_()
2567 FLAC__ASSERT(FLAC__bitwriter_is_byte_aligned(encoder->private_->frame)); in write_bitbuffer_()
2713 FLAC__ASSERT(metadata->type == FLAC__METADATA_TYPE_STREAMINFO); in update_metadata_()
2817 FLAC__ASSERT(FLAC__format_seektable_is_legal(encoder->private_->seek_table)); in update_metadata_()
2877 FLAC__ASSERT(metadata->type == FLAC__METADATA_TYPE_STREAMINFO); in update_ogg_metadata_()
2878 FLAC__ASSERT(0 != encoder->private_->seek_callback); in update_ogg_metadata_()
2998 FLAC__ASSERT(FLAC__format_seektable_is_legal(encoder->private_->seek_table)); in update_ogg_metadata_()
3051 FLAC__ASSERT(encoder->protected_->state == FLAC__STREAM_ENCODER_OK); in process_frame_()
3080 FLAC__ASSERT(FLAC__bitwriter_is_byte_aligned(encoder->private_->frame)); in process_frame_()
3160 FLAC__ASSERT(do_independent || do_mid_side); in process_subframes_()
3176 FLAC__ASSERT(encoder->protected_->channels == 2); in process_subframes_()
3215 FLAC__ASSERT(encoder->protected_->channels == 2); in process_subframes_()
3245 FLAC__ASSERT(encoder->protected_->channels == 2); in process_subframes_()
3255 FLAC__ASSERT(FLAC__CHANNEL_ASSIGNMENT_INDEPENDENT == 0); in process_subframes_()
3256 FLAC__ASSERT(FLAC__CHANNEL_ASSIGNMENT_LEFT_SIDE == 1); in process_subframes_()
3257 FLAC__ASSERT(FLAC__CHANNEL_ASSIGNMENT_RIGHT_SIDE == 2); in process_subframes_()
3258 FLAC__ASSERT(FLAC__CHANNEL_ASSIGNMENT_MID_SIDE == 3); in process_subframes_()
3259 FLAC__ASSERT(do_independent && do_mid_side); in process_subframes_()
3302 FLAC__ASSERT(0); in process_subframes_()
3323 FLAC__ASSERT(0); in process_subframes_()
3390 FLAC__ASSERT(frame_header->blocksize > 0); in process_subframe_()
3585 FLAC__ASSERT(_best_subframe == 0); in process_subframe_()
3629 FLAC__ASSERT(0); in add_subframe_()
3656 FLAC__ASSERT(ret); in spotcheck_subframe_estimate_()
3779 FLAC__ASSERT(order > 0); in evaluate_lpc_subframe_()
3780 FLAC__ASSERT(order <= FLAC__MAX_LPC_ORDER); in evaluate_lpc_subframe_()
3916 FLAC__ASSERT(best_residual_bits != 0); in find_best_partition_order_()
3972 FLAC__ASSERT(default_partition_samples > predictor_order); in precompute_partition_info_sums_()
4037 FLAC__ASSERT(default_partition_samples > predictor_order); in precompute_partition_info_escapes_()
4142 …FLAC__ASSERT(suggested_rice_parameter < FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAM…
4143 …FLAC__ASSERT(rice_parameter_limit <= FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETE…
4340 FLAC__ASSERT(fifo->tail <= fifo->size);
4357 FLAC__ASSERT(fifo->tail <= fifo->size);
4367 FLAC__ASSERT(*bytes >= FLAC__STREAM_SYNC_LENGTH);
4378 FLAC__ASSERT(0);
4414 FLAC__ASSERT(i < blocksize);
4415 FLAC__ASSERT(frame->header.number_type == FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBER);
4428 FLAC__ASSERT(encoder->private_->verify.input_fifo.tail <= OVERREAD_);