Lines Matching refs:num_comments
201 for (i = 0; i < object->data.vorbis_comment.num_comments; i++) { in vorbiscomment_calculate_length_()
207 …tic FLAC__StreamMetadata_VorbisComment_Entry *vorbiscomment_entry_array_new_(unsigned num_comments) in vorbiscomment_entry_array_new_() argument
209 FLAC__ASSERT(num_comments > 0); in vorbiscomment_entry_array_new_()
211 return safe_calloc_(num_comments, sizeof(FLAC__StreamMetadata_VorbisComment_Entry)); in vorbiscomment_entry_array_new_()
214 …_entry_array_delete_(FLAC__StreamMetadata_VorbisComment_Entry *object_array, unsigned num_comments) in vorbiscomment_entry_array_delete_() argument
218 FLAC__ASSERT(object_array != NULL && num_comments > 0); in vorbiscomment_entry_array_delete_()
220 for (i = 0; i < num_comments; i++) in vorbiscomment_entry_array_delete_()
226 …ry_array_copy_(const FLAC__StreamMetadata_VorbisComment_Entry *object_array, unsigned num_comments) in vorbiscomment_entry_array_copy_() argument
231 FLAC__ASSERT(num_comments > 0); in vorbiscomment_entry_array_copy_()
233 return_array = vorbiscomment_entry_array_new_(num_comments); in vorbiscomment_entry_array_copy_()
238 for (i = 0; i < num_comments; i++) { in vorbiscomment_entry_array_copy_()
240 vorbiscomment_entry_array_delete_(return_array, num_comments); in vorbiscomment_entry_array_copy_()
302 for (i = offset; i < object->data.vorbis_comment.num_comments; i++) { in vorbiscomment_find_entry_from_()
567 if (object->data.vorbis_comment.num_comments == 0) { in FLAC__metadata_object_clone()
571 …_entry_array_copy_(object->data.vorbis_comment.comments, object->data.vorbis_comment.num_comments); in FLAC__metadata_object_clone()
573 to->data.vorbis_comment.num_comments = 0; in FLAC__metadata_object_clone()
578 to->data.vorbis_comment.num_comments = object->data.vorbis_comment.num_comments; in FLAC__metadata_object_clone()
652 FLAC__ASSERT(object->data.vorbis_comment.num_comments > 0); in FLAC__metadata_object_delete_data()
653 …ntry_array_delete_(object->data.vorbis_comment.comments, object->data.vorbis_comment.num_comments); in FLAC__metadata_object_delete_data()
655 object->data.vorbis_comment.num_comments = 0; in FLAC__metadata_object_delete_data()
771 if (block1->num_comments != block2->num_comments) in compare_block_data_vorbiscomment_()
774 for (i = 0; i < block1->num_comments; i++) { in compare_block_data_vorbiscomment_()
1171 FLAC__ASSERT(object->data.vorbis_comment.num_comments == 0); in FLAC__metadata_object_vorbiscomment_resize_comments()
1178 …const size_t old_size = object->data.vorbis_comment.num_comments * sizeof(FLAC__StreamMetadata_Vor… in FLAC__metadata_object_vorbiscomment_resize_comments()
1185 FLAC__ASSERT(object->data.vorbis_comment.num_comments > 0); in FLAC__metadata_object_vorbiscomment_resize_comments()
1188 if (new_num_comments < object->data.vorbis_comment.num_comments) { in FLAC__metadata_object_vorbiscomment_resize_comments()
1190 for (i = new_num_comments; i < object->data.vorbis_comment.num_comments; i++) in FLAC__metadata_object_vorbiscomment_resize_comments()
1202 vorbiscomment_entry_array_delete_(oldptr, object->data.vorbis_comment.num_comments); in FLAC__metadata_object_vorbiscomment_resize_comments()
1203 object->data.vorbis_comment.num_comments = 0; in FLAC__metadata_object_vorbiscomment_resize_comments()
1210 …memset(object->data.vorbis_comment.comments + object->data.vorbis_comment.num_comments, 0, new_siz… in FLAC__metadata_object_vorbiscomment_resize_comments()
1213 object->data.vorbis_comment.num_comments = new_num_comments; in FLAC__metadata_object_vorbiscomment_resize_comments()
1222 FLAC__ASSERT(comment_num < object->data.vorbis_comment.num_comments); in FLAC__metadata_object_vorbiscomment_set_comment()
1235 FLAC__ASSERT(comment_num <= object->data.vorbis_comment.num_comments); in FLAC__metadata_object_vorbiscomment_insert_comment()
1242 if (!FLAC__metadata_object_vorbiscomment_resize_comments(object, vc->num_comments+1)) in FLAC__metadata_object_vorbiscomment_insert_comment()
1246 …s[comment_num], sizeof(FLAC__StreamMetadata_VorbisComment_Entry)*(vc->num_comments-1-comment_num)); in FLAC__metadata_object_vorbiscomment_insert_comment()
1257 …object_vorbiscomment_insert_comment(object, object->data.vorbis_comment.num_comments, entry, copy); in FLAC__metadata_object_vorbiscomment_append_comment()
1284 if (all && indx < object->data.vorbis_comment.num_comments) { in FLAC__metadata_object_vorbiscomment_replace_comment()
1290 if (indx < object->data.vorbis_comment.num_comments) in FLAC__metadata_object_vorbiscomment_replace_comment()
1309 FLAC__ASSERT(comment_num < object->data.vorbis_comment.num_comments); in FLAC__metadata_object_vorbiscomment_delete_comment()
1317 …comment_num+1], sizeof(FLAC__StreamMetadata_VorbisComment_Entry)*(vc->num_comments-comment_num-1)); in FLAC__metadata_object_vorbiscomment_delete_comment()
1318 vc->comments[vc->num_comments-1].length = 0; in FLAC__metadata_object_vorbiscomment_delete_comment()
1319 vc->comments[vc->num_comments-1].entry = 0; in FLAC__metadata_object_vorbiscomment_delete_comment()
1321 return FLAC__metadata_object_vorbiscomment_resize_comments(object, vc->num_comments-1); in FLAC__metadata_object_vorbiscomment_delete_comment()
1405 for (i = 0; i < object->data.vorbis_comment.num_comments; i++) { in FLAC__metadata_object_vorbiscomment_remove_entry_matching()
1428 for (i = (int)object->data.vorbis_comment.num_comments - 1; ok && i >= 0; i--) { in FLAC__metadata_object_vorbiscomment_remove_entries_matching()