Home
last modified time | relevance | path

Searched refs:FLAC__ASSERT (Results 1 – 25 of 26) sorted by relevance

12

/external/flac/libFLAC/
Dmemory.c49 FLAC__ASSERT(0 != aligned_address); in FLAC__memory_alloc_aligned()
70 FLAC__ASSERT(elements > 0); in FLAC__memory_alloc_aligned_int32_array()
71 FLAC__ASSERT(0 != unaligned_pointer); in FLAC__memory_alloc_aligned_int32_array()
72 FLAC__ASSERT(0 != aligned_pointer); in FLAC__memory_alloc_aligned_int32_array()
73 FLAC__ASSERT(unaligned_pointer != aligned_pointer); in FLAC__memory_alloc_aligned_int32_array()
99 FLAC__ASSERT(elements > 0); in FLAC__memory_alloc_aligned_uint32_array()
100 FLAC__ASSERT(0 != unaligned_pointer); in FLAC__memory_alloc_aligned_uint32_array()
101 FLAC__ASSERT(0 != aligned_pointer); in FLAC__memory_alloc_aligned_uint32_array()
102 FLAC__ASSERT(unaligned_pointer != aligned_pointer); in FLAC__memory_alloc_aligned_uint32_array()
128 FLAC__ASSERT(elements > 0); in FLAC__memory_alloc_aligned_uint64_array()
[all …]
Dmetadata_object.c67 FLAC__ASSERT(to != NULL); in copy_bytes_()
86 FLAC__ASSERT(to != NULL);
118 FLAC__ASSERT(to != NULL); in copy_cstring_()
132 FLAC__ASSERT(from->length == 0); in copy_vcentry_()
137 FLAC__ASSERT(from->length > 0); in copy_vcentry_()
151 FLAC__ASSERT(from->num_indices == 0); in copy_track_()
155 FLAC__ASSERT(from->num_indices > 0); in copy_track_()
166 FLAC__ASSERT(object != NULL); in seektable_calculate_length_()
167 FLAC__ASSERT(object->type == FLAC__METADATA_TYPE_SEEKTABLE); in seektable_calculate_length_()
176 FLAC__ASSERT(num_points > 0); in seekpoint_array_new_()
[all …]
Dmetadata_iterators.c163 FLAC__ASSERT(0 != filename); in get_one_metadata_block_()
201 FLAC__ASSERT(0 != filename); in FLAC__metadata_get_streaminfo()
202 FLAC__ASSERT(0 != streaminfo); in FLAC__metadata_get_streaminfo()
219 FLAC__ASSERT(0 != filename); in FLAC__metadata_get_tags()
220 FLAC__ASSERT(0 != tags); in FLAC__metadata_get_tags()
229 FLAC__ASSERT(0 != filename); in FLAC__metadata_get_cuesheet()
230 FLAC__ASSERT(0 != cuesheet); in FLAC__metadata_get_cuesheet()
274 FLAC__ASSERT(0 != filename); in FLAC__metadata_get_picture()
275 FLAC__ASSERT(0 != picture); in FLAC__metadata_get_picture()
381 FLAC__ASSERT(0 != iterator); in simple_iterator_free_guts_()
[all …]
Dfixed.c63 FLAC__ASSERT(sizeof(rbps) == sizeof(FLAC__fixedpoint)); in local__compute_rbps_integerized()
64 FLAC__ASSERT(err > 0); in local__compute_rbps_integerized()
65 FLAC__ASSERT(n > 0); in local__compute_rbps_integerized()
67 FLAC__ASSERT(n <= FLAC__MAX_BLOCK_SIZE); in local__compute_rbps_integerized()
86 FLAC__ASSERT(err > 0); in local__compute_rbps_integerized()
97 FLAC__ASSERT(fracbits >= 0); in local__compute_rbps_integerized()
124 FLAC__ASSERT((int)FLAC__bitmath_ilog2(rbps)+1 <= fracbits + 6); in local__compute_rbps_integerized()
125 FLAC__ASSERT(fracbits >= -3); in local__compute_rbps_integerized()
142 FLAC__ASSERT(sizeof(rbps) == sizeof(FLAC__fixedpoint)); in local__compute_rbps_wide_integerized()
143 FLAC__ASSERT(err > 0); in local__compute_rbps_wide_integerized()
[all …]
Dbitwriter.c107 FLAC__ASSERT(0 != bw); in bitwriter_grow_()
108 FLAC__ASSERT(0 != bw->buffer); in bitwriter_grow_()
123 FLAC__ASSERT(0 == (new_capacity - bw->capacity) % FLAC__BITWRITER_DEFAULT_INCREMENT); in bitwriter_grow_()
124 FLAC__ASSERT(new_capacity > bw->capacity); in bitwriter_grow_()
125FLAC__ASSERT(new_capacity >= bw->words + ((bw->bits + bits_to_add + FLAC__BITS_PER_WORD - 1) / FLA… in bitwriter_grow_()
151 FLAC__ASSERT(0 != bw); in FLAC__bitwriter_delete()
165 FLAC__ASSERT(0 != bw); in FLAC__bitwriter_init()
178 FLAC__ASSERT(0 != bw); in FLAC__bitwriter_free()
221 FLAC__ASSERT((bw->bits & 7) == 0); /* assert that we're byte-aligned */ in FLAC__bitwriter_get_write_crc16()
236 FLAC__ASSERT((bw->bits & 7) == 0); /* assert that we're byte-aligned */ in FLAC__bitwriter_get_write_crc8()
[all …]
Dstream_encoder.c509 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_()
[all …]
Dbitreader.c245 FLAC__ASSERT(0 != br); in FLAC__bitreader_delete()
259 FLAC__ASSERT(0 != br); in FLAC__bitreader_init()
275 FLAC__ASSERT(0 != br); in FLAC__bitreader_free()
326 FLAC__ASSERT(0 != br); in FLAC__bitreader_reset_read_crc16()
327 FLAC__ASSERT(0 != br->buffer); in FLAC__bitreader_reset_read_crc16()
328 FLAC__ASSERT((br->consumed_bits & 7) == 0); in FLAC__bitreader_reset_read_crc16()
336 FLAC__ASSERT(0 != br); in FLAC__bitreader_get_read_crc16()
337 FLAC__ASSERT(0 != br->buffer); in FLAC__bitreader_get_read_crc16()
338 FLAC__ASSERT((br->consumed_bits & 7) == 0); in FLAC__bitreader_get_read_crc16()
339 FLAC__ASSERT(br->crc16_align <= br->consumed_bits); in FLAC__bitreader_get_read_crc16()
[all …]
Dstream_encoder_framing.c63FLAC__ASSERT(metadata->data.vorbis_comment.vendor_string.length == 0 || 0 != metadata->data.vorbis… in FLAC__add_metadata_block()
67 FLAC__ASSERT(i < (1u << FLAC__STREAM_METADATA_LENGTH_LEN)); in FLAC__add_metadata_block()
76FLAC__ASSERT(metadata->data.stream_info.min_blocksize < (1u << FLAC__STREAM_METADATA_STREAMINFO_MI… in FLAC__add_metadata_block()
79FLAC__ASSERT(metadata->data.stream_info.max_blocksize < (1u << FLAC__STREAM_METADATA_STREAMINFO_MA… in FLAC__add_metadata_block()
82FLAC__ASSERT(metadata->data.stream_info.min_framesize < (1u << FLAC__STREAM_METADATA_STREAMINFO_MI… in FLAC__add_metadata_block()
85FLAC__ASSERT(metadata->data.stream_info.max_framesize < (1u << FLAC__STREAM_METADATA_STREAMINFO_MA… in FLAC__add_metadata_block()
88 FLAC__ASSERT(FLAC__format_sample_rate_is_valid(metadata->data.stream_info.sample_rate)); in FLAC__add_metadata_block()
91 FLAC__ASSERT(metadata->data.stream_info.channels > 0); in FLAC__add_metadata_block()
92FLAC__ASSERT(metadata->data.stream_info.channels <= (1u << FLAC__STREAM_METADATA_STREAMINFO_CHANNE… in FLAC__add_metadata_block()
95 FLAC__ASSERT(metadata->data.stream_info.bits_per_sample > 0); in FLAC__add_metadata_block()
[all …]
Dstream_decoder.c246 FLAC__ASSERT(sizeof(int) >= 4); /* we want to die right away if this is not true */ in FLAC__stream_decoder_new()
311 FLAC__ASSERT(0 != decoder->protected_); in FLAC__stream_decoder_delete()
312 FLAC__ASSERT(0 != decoder->private_); in FLAC__stream_decoder_delete()
313 FLAC__ASSERT(0 != decoder->private_->input); in FLAC__stream_decoder_delete()
350 FLAC__ASSERT(0 != decoder); in init_stream_internal_()
384 FLAC__ASSERT(decoder->private_->cpuinfo.type == FLAC__CPUINFO_TYPE_IA32); in init_stream_internal_()
409 FLAC__ASSERT(decoder->private_->cpuinfo.type == FLAC__CPUINFO_TYPE_X86_64); in init_stream_internal_()
514 FLAC__ASSERT(0 != decoder); in init_FILE_internal_()
515 FLAC__ASSERT(0 != file); in init_FILE_internal_()
584 FLAC__ASSERT(0 != decoder); in init_file_internal_()
[all …]
Dlpc_intrin_sse.c64 FLAC__ASSERT(lag <= 4); in FLAC__lpc_compute_autocorrelation_intrin_sse_lag_4_new()
65 FLAC__ASSERT(lag <= data_len); in FLAC__lpc_compute_autocorrelation_intrin_sse_lag_4_new()
100 FLAC__ASSERT(lag <= 8); in FLAC__lpc_compute_autocorrelation_intrin_sse_lag_8_new()
101 FLAC__ASSERT(lag <= data_len); in FLAC__lpc_compute_autocorrelation_intrin_sse_lag_8_new()
144 FLAC__ASSERT(lag <= 12); in FLAC__lpc_compute_autocorrelation_intrin_sse_lag_12_new()
145 FLAC__ASSERT(lag <= data_len); in FLAC__lpc_compute_autocorrelation_intrin_sse_lag_12_new()
196 FLAC__ASSERT(lag <= 16); in FLAC__lpc_compute_autocorrelation_intrin_sse_lag_16_new()
197 FLAC__ASSERT(lag <= data_len); in FLAC__lpc_compute_autocorrelation_intrin_sse_lag_16_new()
256 FLAC__ASSERT(lag > 0); in FLAC__lpc_compute_autocorrelation_intrin_sse_lag_4_old()
257 FLAC__ASSERT(lag <= 4); in FLAC__lpc_compute_autocorrelation_intrin_sse_lag_4_old()
[all …]
Dogg_helper.c69 FLAC__ASSERT(0); in full_read_()
102 FLAC__ASSERT(page->header == 0); in simple_ogg_page__get_at()
103 FLAC__ASSERT(page->header_len == 0); in simple_ogg_page__get_at()
104 FLAC__ASSERT(page->body == 0); in simple_ogg_page__get_at()
105 FLAC__ASSERT(page->body_len == 0); in simple_ogg_page__get_at()
183 FLAC__ASSERT(page->header != 0); in simple_ogg_page__set_at()
184 FLAC__ASSERT(page->header_len != 0); in simple_ogg_page__set_at()
185 FLAC__ASSERT(page->body != 0); in simple_ogg_page__set_at()
186 FLAC__ASSERT(page->body_len != 0); in simple_ogg_page__set_at()
Dfixed_intrin_ssse3.c133 FLAC__ASSERT(data_len > 0 || total_error_0 == 0); in FLAC__fixed_compute_best_predictor_intrin_ssse3()
134 FLAC__ASSERT(data_len > 0 || total_error_1 == 0); in FLAC__fixed_compute_best_predictor_intrin_ssse3()
135 FLAC__ASSERT(data_len > 0 || total_error_2 == 0); in FLAC__fixed_compute_best_predictor_intrin_ssse3()
136 FLAC__ASSERT(data_len > 0 || total_error_3 == 0); in FLAC__fixed_compute_best_predictor_intrin_ssse3()
137 FLAC__ASSERT(data_len > 0 || total_error_4 == 0); in FLAC__fixed_compute_best_predictor_intrin_ssse3()
225 FLAC__ASSERT(data_len > 0 || total_error_0 == 0); in FLAC__fixed_compute_best_predictor_wide_intrin_ssse3()
226 FLAC__ASSERT(data_len > 0 || total_error_1 == 0); in FLAC__fixed_compute_best_predictor_wide_intrin_ssse3()
227 FLAC__ASSERT(data_len > 0 || total_error_2 == 0); in FLAC__fixed_compute_best_predictor_wide_intrin_ssse3()
228 FLAC__ASSERT(data_len > 0 || total_error_3 == 0); in FLAC__fixed_compute_best_predictor_wide_intrin_ssse3()
229 FLAC__ASSERT(data_len > 0 || total_error_4 == 0); in FLAC__fixed_compute_best_predictor_wide_intrin_ssse3()
Dfixed_intrin_sse2.c139 FLAC__ASSERT(data_len > 0 || total_error_0 == 0); in FLAC__fixed_compute_best_predictor_intrin_sse2()
140 FLAC__ASSERT(data_len > 0 || total_error_1 == 0); in FLAC__fixed_compute_best_predictor_intrin_sse2()
141 FLAC__ASSERT(data_len > 0 || total_error_2 == 0); in FLAC__fixed_compute_best_predictor_intrin_sse2()
142 FLAC__ASSERT(data_len > 0 || total_error_3 == 0); in FLAC__fixed_compute_best_predictor_intrin_sse2()
143 FLAC__ASSERT(data_len > 0 || total_error_4 == 0); in FLAC__fixed_compute_best_predictor_intrin_sse2()
237 FLAC__ASSERT(data_len > 0 || total_error_0 == 0); in FLAC__fixed_compute_best_predictor_wide_intrin_sse2()
238 FLAC__ASSERT(data_len > 0 || total_error_1 == 0); in FLAC__fixed_compute_best_predictor_wide_intrin_sse2()
239 FLAC__ASSERT(data_len > 0 || total_error_2 == 0); in FLAC__fixed_compute_best_predictor_wide_intrin_sse2()
240 FLAC__ASSERT(data_len > 0 || total_error_3 == 0); in FLAC__fixed_compute_best_predictor_wide_intrin_sse2()
241 FLAC__ASSERT(data_len > 0 || total_error_4 == 0); in FLAC__fixed_compute_best_predictor_wide_intrin_sse2()
Dformat.c241 FLAC__ASSERT(0 != seek_table); in FLAC__format_seektable_is_legal()
276 FLAC__ASSERT(0 != seek_table); in FLAC__format_seektable_sort()
314 FLAC__ASSERT(0 != utf8); in utf8len_()
545 FLAC__ASSERT( in FLAC__format_get_max_rice_partition_order_from_blocksize_limited_max_and_predictor_order()
555 FLAC__ASSERT(0 != object); in FLAC__format_entropy_coding_method_partitioned_rice_contents_init()
564 FLAC__ASSERT(0 != object); in FLAC__format_entropy_coding_method_partitioned_rice_contents_clear()
575 FLAC__ASSERT(0 != object); in FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size()
577 FLAC__ASSERT(object->capacity_by_order > 0 || (0 == object->parameters && 0 == object->raw_bits)); in FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size()
Dlpc.c80 FLAC__ASSERT(lag > 0); in FLAC__lpc_compute_autocorrelation()
81 FLAC__ASSERT(lag <= data_len); in FLAC__lpc_compute_autocorrelation()
105 FLAC__ASSERT(lag > 0); in FLAC__lpc_compute_autocorrelation()
106 FLAC__ASSERT(lag <= data_len); in FLAC__lpc_compute_autocorrelation()
127 FLAC__ASSERT(0 != max_order); in FLAC__lpc_compute_lp_coefficients()
128 FLAC__ASSERT(0 < *max_order); in FLAC__lpc_compute_lp_coefficients()
129 FLAC__ASSERT(*max_order <= FLAC__MAX_LPC_ORDER); in FLAC__lpc_compute_lp_coefficients()
130 FLAC__ASSERT(autoc[0] != 0.0); in FLAC__lpc_compute_lp_coefficients()
172 FLAC__ASSERT(precision > 0); in FLAC__lpc_quantize_coefficients()
173 FLAC__ASSERT(precision >= FLAC__MIN_QLP_COEFF_PRECISION); in FLAC__lpc_quantize_coefficients()
[all …]
Dogg_encoder_aspect.c147 FLAC__ASSERT(0); in FLAC__ogg_encoder_aspect_write_callback_wrapper()
172 FLAC__ASSERT(b + bytes - synthetic_first_packet_body == sizeof(synthetic_first_packet_body)); in FLAC__ogg_encoder_aspect_write_callback_wrapper()
221 FLAC__ASSERT(0); in FLAC__ogg_encoder_aspect_write_callback_wrapper()
Dfloat.c274 FLAC__ASSERT(fracbits < 32); in FLAC__fixedpoint_log2()
275 FLAC__ASSERT((fracbits & 0x3) == 0); in FLAC__fixedpoint_log2()
Dstream_encoder_intrin_ssse3.c56 FLAC__ASSERT(default_partition_samples > predictor_order); in FLAC__precompute_partition_info_sums_intrin_ssse3()
105 FLAC__ASSERT(e1 <= end); in FLAC__precompute_partition_info_sums_intrin_ssse3()
Dstream_encoder_intrin_sse2.c67 FLAC__ASSERT(default_partition_samples > predictor_order); in FLAC__precompute_partition_info_sums_intrin_sse2()
116 FLAC__ASSERT(e1 <= end); in FLAC__precompute_partition_info_sums_intrin_sse2()
Dogg_decoder_aspect.c229 FLAC__ASSERT(0); in FLAC__ogg_decoder_aspect_read_callback_wrapper()
234 FLAC__ASSERT(0); in FLAC__ogg_decoder_aspect_read_callback_wrapper()
Dstream_encoder_intrin_avx2.c56 FLAC__ASSERT(default_partition_samples > predictor_order); in FLAC__precompute_partition_info_sums_intrin_avx2()
Dlpc_intrin_sse41.c61 FLAC__ASSERT(order > 0); in FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41()
62 FLAC__ASSERT(order <= 32); in FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41()
63FLAC__ASSERT(lp_quantization <= 32); /* there's no _mm_sra_epi64() so we have to use _mm_srl_epi64… in FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41()
600 FLAC__ASSERT(order > 0); in FLAC__lpc_restore_signal_wide_intrin_sse41()
601 FLAC__ASSERT(order <= 32); in FLAC__lpc_restore_signal_wide_intrin_sse41()
602FLAC__ASSERT(lp_quantization <= 32); /* there's no _mm_sra_epi64() so we have to use _mm_srl_epi64… in FLAC__lpc_restore_signal_wide_intrin_sse41()
964 FLAC__ASSERT(order > 0); in FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_sse41()
965 FLAC__ASSERT(order <= 32); in FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_sse41()
Dlpc_intrin_sse2.c63 FLAC__ASSERT(order > 0); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2()
64 FLAC__ASSERT(order <= 32); in FLAC__lpc_compute_residual_from_qlp_coefficients_16_intrin_sse2()
415 FLAC__ASSERT(order > 0); in FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_sse2()
416 FLAC__ASSERT(order <= 32); in FLAC__lpc_compute_residual_from_qlp_coefficients_intrin_sse2()
949 FLAC__ASSERT(order >= 8); in FLAC__lpc_restore_signal_16_intrin_sse2()
950 FLAC__ASSERT(order <= 12); in FLAC__lpc_restore_signal_16_intrin_sse2()
/external/flac/libFLAC/include/private/
Dbitmath.h76 FLAC__ASSERT(v > 0); in FLAC__clz_uint32()
104 FLAC__ASSERT(v > 0); in FLAC__clz_uint64()
158 FLAC__ASSERT(v > 0); in FLAC__bitmath_ilog2()
174 FLAC__ASSERT(v > 0); in FLAC__bitmath_ilog2_wide()
/external/flac/include/FLAC/
Dassert.h39 #define FLAC__ASSERT(x) assert(x) macro
42 #define FLAC__ASSERT(x) macro

12