Home
last modified time | relevance | path

Searched refs:num_comments (Results 1 – 20 of 20) sorted by relevance

/external/flac/oss-fuzz/
Dmetadata.cc259 uint32_t num_comments; in run_tests_with_level_2_interface() local
267 num_comments = vorbiscomment->get_num_comments(); in run_tests_with_level_2_interface()
268 if(num_comments > 0) { in run_tests_with_level_2_interface()
269 entry = metadata_c->data.vorbis_comment.comments[min(data[i]>>4,num_comments-1)]; in run_tests_with_level_2_interface()
272 if(vorbiscomment->get_comment(min(data[i]>>4,num_comments-1)).is_valid()) { in run_tests_with_level_2_interface()
273 entry_cpp = vorbiscomment->get_comment(min(data[i]>>4,num_comments-1)); in run_tests_with_level_2_interface()
350 uint32_t num_comments; in run_tests_with_level_2_interface() local
355 num_comments = vorbiscomment->get_num_comments(); in run_tests_with_level_2_interface()
356 if(num_comments > 0 && entry.is_valid()) { in run_tests_with_level_2_interface()
357 if(vorbiscomment->get_comment(min(data[i]>>5,num_comments-1)).is_valid()) { in run_tests_with_level_2_interface()
[all …]
/external/flac/src/libFLAC/
Dmetadata_object.c202 for (i = 0; i < object->data.vorbis_comment.num_comments; i++) { in vorbiscomment_calculate_length_()
208 …tic FLAC__StreamMetadata_VorbisComment_Entry *vorbiscomment_entry_array_new_(uint32_t num_comments) in vorbiscomment_entry_array_new_() argument
210 FLAC__ASSERT(num_comments > 0); in vorbiscomment_entry_array_new_()
212 return safe_calloc_(num_comments, sizeof(FLAC__StreamMetadata_VorbisComment_Entry)); in vorbiscomment_entry_array_new_()
215 …_entry_array_delete_(FLAC__StreamMetadata_VorbisComment_Entry *object_array, uint32_t num_comments) in vorbiscomment_entry_array_delete_() argument
221 for (i = 0; i < num_comments; i++) in vorbiscomment_entry_array_delete_()
227 …ry_array_copy_(const FLAC__StreamMetadata_VorbisComment_Entry *object_array, uint32_t num_comments) in vorbiscomment_entry_array_copy_() argument
232 FLAC__ASSERT(num_comments > 0); in vorbiscomment_entry_array_copy_()
234 return_array = vorbiscomment_entry_array_new_(num_comments); in vorbiscomment_entry_array_copy_()
239 for (i = 0; i < num_comments; i++) { in vorbiscomment_entry_array_copy_()
[all …]
Dstream_decoder.c1517 if(block.data.vorbis_comment.num_comments > 0) in read_metadata_()
1518 for(i = 0; i < block.data.vorbis_comment.num_comments; i++) in read_metadata_()
1713 if (!FLAC__bitreader_read_uint32_little_endian(decoder->private_->input, &obj->num_comments)) in read_metadata_vorbiscomment_()
1717 if (obj->num_comments > 100000) { in read_metadata_vorbiscomment_()
1719 obj->num_comments = 0; in read_metadata_vorbiscomment_()
1722 if (obj->num_comments > 0) { in read_metadata_vorbiscomment_()
1723 …if (0 == (obj->comments = safe_malloc_mul_2op_p(obj->num_comments, /*times*/sizeof(FLAC__StreamMet… in read_metadata_vorbiscomment_()
1724 obj->num_comments = 0; in read_metadata_vorbiscomment_()
1728 for (i = 0; i < obj->num_comments; i++) { in read_metadata_vorbiscomment_()
1735 obj->num_comments = i; in read_metadata_vorbiscomment_()
[all …]
Dmetadata_iterators.c2377 block->num_comments = unpack_uint32_little_endian_(buffer, num_comments_len); in read_metadata_block_data_vorbis_comment_cb_()
2379 if(block->num_comments == 0) { in read_metadata_block_data_vorbis_comment_cb_()
2382 else if(block->num_comments > (block_length >> 2)) { /* each comment needs at least 4 byte */ in read_metadata_block_data_vorbis_comment_cb_()
2383 block->num_comments = 0; in read_metadata_block_data_vorbis_comment_cb_()
2387 …else if(0 == (block->comments = calloc(block->num_comments, sizeof(FLAC__StreamMetadata_VorbisComm… in read_metadata_block_data_vorbis_comment_cb_()
2388 block->num_comments = 0; in read_metadata_block_data_vorbis_comment_cb_()
2392 for(i = 0; i < block->num_comments; i++) { in read_metadata_block_data_vorbis_comment_cb_()
2396 block->num_comments = i; in read_metadata_block_data_vorbis_comment_cb_()
2798 pack_uint32_little_endian_(block->num_comments, buffer, num_comments_len); in write_metadata_block_data_vorbis_comment_cb_()
2802 for(i = 0; i < block->num_comments; i++) { in write_metadata_block_data_vorbis_comment_cb_()
Dstream_encoder_framing.c137 …if(!FLAC__bitwriter_write_raw_uint32_little_endian(bw, metadata->data.vorbis_comment.num_comments)) in FLAC__add_metadata_block()
139 for(i = 0; i < metadata->data.vorbis_comment.num_comments; i++) { in FLAC__add_metadata_block()
Dstream_encoder.c1246 vorbis_comment.data.vorbis_comment.num_comments = 0; in init_stream_internal_()
/external/flac/src/test_libFLAC/
Dmetadata_object.c175 for(i = 0; i < vc->num_comments; i++) { in vc_calc_len_()
185 if(vc->num_comments != 0) { in vc_resize_()
187 if(num < vc->num_comments) { in vc_resize_()
189 for(i = num; i < vc->num_comments; i++) { in vc_resize_()
205 for(i = vc->num_comments; i < num; i++) { in vc_resize_()
212 vc->num_comments = num; in vc_resize_()
220 for(i = start; i < block->data.vorbis_comment.num_comments; i++) { in vc_find_from_()
249 vc_resize_(block, block->data.vorbis_comment.num_comments+1); in vc_insert_new_()
250 temp = block->data.vorbis_comment.comments[block->data.vorbis_comment.num_comments-1]; in vc_insert_new_()
251 … sizeof(FLAC__StreamMetadata_VorbisComment_Entry)*(block->data.vorbis_comment.num_comments-1-pos)); in vc_insert_new_()
[all …]
Dmetadata_manip.c549 vorbiscomment.data.vorbis_comment.num_comments = 0; in generate_file_()
736 if(tags->data.vorbis_comment.num_comments != 0) in test_level_0_()
/external/flac/src/metaflac/
Doperations_shorthand_vorbiscomment.c89 ….value, block->data.vorbis_comment.comments, block->data.vorbis_comment.num_comments, raw, stdout); in do_shorthand_operation__vorbis_comment()
137 FLAC__ASSERT(block->data.vorbis_comment.num_comments > 0); in remove_vc_all()
145 FLAC__ASSERT(block->data.vorbis_comment.num_comments == 0); in remove_vc_all()
176 for(i = 0; i < block->data.vorbis_comment.num_comments; ) { in remove_vc_all_except()
418 …write_vc_fields(0, 0, block->data.vorbis_comment.comments, block->data.vorbis_comment.num_comments in export_vc_to()
Doperations.c617 PPR; printf(" comments: %u\n", block->data.vorbis_comment.num_comments); in write_metadata()
618 for(i = 0; i < block->data.vorbis_comment.num_comments; i++) { in write_metadata()
/external/flac/src/test_libs_common/
Dmetadata_utils.c199 if(blockcopy->num_comments != block->num_comments) { in mutils__compare_block_data_vorbiscomment()
200 …ILED, num_comments mismatch, expected %u, got %u\n", block->num_comments, blockcopy->num_comments); in mutils__compare_block_data_vorbiscomment()
203 for(i = 0; i < block->num_comments; i++) { in mutils__compare_block_data_vorbiscomment()
508 vorbiscomment->data.vorbis_comment.num_comments = 2; in mutils__init_metadata_blocks()
509 …_comment.comments = malloc_or_die_(vorbiscomment->data.vorbis_comment.num_comments * sizeof(FLAC__… in mutils__init_metadata_blocks()
/external/flac/src/libFLAC++/
Dmetadata.cpp878 return object_->data.vorbis_comment.num_comments; in get_num_comments()
890 FLAC__ASSERT(indx < object_->data.vorbis_comment.num_comments); in get_comment()
911 FLAC__ASSERT(indx < object_->data.vorbis_comment.num_comments); in set_comment()
918 FLAC__ASSERT(indx <= object_->data.vorbis_comment.num_comments); in insert_comment()
937 FLAC__ASSERT(indx < object_->data.vorbis_comment.num_comments); in delete_comment()
/external/flac/include/FLAC/
Dformat.h643 FLAC__uint32 num_comments; member
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/extensions/flac/src/main/jni/
Dflac_parser.cc178 for (FLAC__uint32 i = 0; i < vorbisComment.num_comments; ++i) { in metadataCallback()
/external/oss-fuzz/projects/flac/
Dfuzzer_exo.cpp168 for (FLAC__uint32 i = 0; i < vorbisComment.num_comments; ++i) { in metadataCallback()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/extensions/flac/src/main/jni/
Dflac_parser.cc178 for (FLAC__uint32 i = 0; i < vorbisComment.num_comments; ++i) { in metadataCallback()
/external/flac/src/test_libFLAC++/
Dmetadata_object.cpp141 vorbiscomment_.data.vorbis_comment.num_comments = 2; in init_metadata_blocks_()
142 …orbisComment_Entry*)malloc_or_die_(vorbiscomment_.data.vorbis_comment.num_comments * sizeof(::FLAC… in init_metadata_blocks_()
Dmetadata_manip.cpp535 vorbiscomment.data.vorbis_comment.num_comments = 0; in generate_file_()
/external/flac/src/flac/
Dencode.c1786 …AC__METADATA_TYPE_VORBIS_COMMENT && options.vorbis_comment->data.vorbis_comment.num_comments > 0) { in EncoderSession_init_encoder()
1800 …if((!vc_found || options.vorbis_comment->data.vorbis_comment.num_comments > 0) && flac_decoder_dat… in EncoderSession_init_encoder()
/external/libpng/
Dlibpng-manual.txt1490 num_comments = png_get_text(png_ptr, info_ptr,
1493 num_comments - number of comments
1532 num_comments; you can put NULL here