Lines Matching refs:vorbis_comment
199 object->length += object->data.vorbis_comment.vendor_string.length; in vorbiscomment_calculate_length_()
201 for (i = 0; i < object->data.vorbis_comment.num_comments; i++) { in vorbiscomment_calculate_length_()
203 object->length += object->data.vorbis_comment.comments[i].length; in vorbiscomment_calculate_length_()
302 for (i = offset; i < object->data.vorbis_comment.num_comments; i++) { in vorbiscomment_find_entry_from_()
303 …if (FLAC__metadata_object_vorbiscomment_entry_matches(object->data.vorbis_comment.comments[i], fie… in vorbiscomment_find_entry_from_()
464 object->data.vorbis_comment.vendor_string.length = (unsigned)strlen(FLAC__VENDOR_STRING); in FLAC__metadata_object_new()
465 …opy_bytes_(&object->data.vorbis_comment.vendor_string.entry, (const FLAC__byte*)FLAC__VENDOR_STRIN… in FLAC__metadata_object_new()
559 if (to->data.vorbis_comment.vendor_string.entry != NULL) { in FLAC__metadata_object_clone()
560 free(to->data.vorbis_comment.vendor_string.entry); in FLAC__metadata_object_clone()
561 to->data.vorbis_comment.vendor_string.entry = 0; in FLAC__metadata_object_clone()
563 …if (!copy_vcentry_(&to->data.vorbis_comment.vendor_string, &object->data.vorbis_comment.vendor_str… in FLAC__metadata_object_clone()
567 if (object->data.vorbis_comment.num_comments == 0) { in FLAC__metadata_object_clone()
568 to->data.vorbis_comment.comments = 0; in FLAC__metadata_object_clone()
571 …to->data.vorbis_comment.comments = vorbiscomment_entry_array_copy_(object->data.vorbis_comment.com… in FLAC__metadata_object_clone()
572 if (to->data.vorbis_comment.comments == NULL) { 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()
647 if (object->data.vorbis_comment.vendor_string.entry != NULL) { in FLAC__metadata_object_delete_data()
648 free(object->data.vorbis_comment.vendor_string.entry); in FLAC__metadata_object_delete_data()
649 object->data.vorbis_comment.vendor_string.entry = 0; in FLAC__metadata_object_delete_data()
651 if (object->data.vorbis_comment.comments != NULL) { in FLAC__metadata_object_delete_data()
652 FLAC__ASSERT(object->data.vorbis_comment.num_comments > 0); in FLAC__metadata_object_delete_data()
653 …vorbiscomment_entry_array_delete_(object->data.vorbis_comment.comments, object->data.vorbis_commen… in FLAC__metadata_object_delete_data()
654 object->data.vorbis_comment.comments = NULL; in FLAC__metadata_object_delete_data()
655 object->data.vorbis_comment.num_comments = 0; in FLAC__metadata_object_delete_data()
892 …eturn compare_block_data_vorbiscomment_(&block1->data.vorbis_comment, &block2->data.vorbis_comment… in FLAC__metadata_object_is_equal()
1162 return vorbiscomment_set_entry_(object, &object->data.vorbis_comment.vendor_string, &entry, copy); in FLAC__metadata_object_vorbiscomment_set_vendor_string()
1170 if (object->data.vorbis_comment.comments == NULL) { in FLAC__metadata_object_vorbiscomment_resize_comments()
1171 FLAC__ASSERT(object->data.vorbis_comment.num_comments == 0); in FLAC__metadata_object_vorbiscomment_resize_comments()
1174 …else if ((object->data.vorbis_comment.comments = vorbiscomment_entry_array_new_(new_num_comments))… 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()
1191 if (object->data.vorbis_comment.comments[i].entry != NULL) in FLAC__metadata_object_vorbiscomment_resize_comments()
1192 free(object->data.vorbis_comment.comments[i].entry); in FLAC__metadata_object_vorbiscomment_resize_comments()
1196 free(object->data.vorbis_comment.comments); in FLAC__metadata_object_vorbiscomment_resize_comments()
1197 object->data.vorbis_comment.comments = 0; in FLAC__metadata_object_vorbiscomment_resize_comments()
1200 FLAC__StreamMetadata_VorbisComment_Entry *oldptr = object->data.vorbis_comment.comments; in FLAC__metadata_object_vorbiscomment_resize_comments()
1201 …if ((object->data.vorbis_comment.comments = realloc(object->data.vorbis_comment.comments, new_size… 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()
1226 …return vorbiscomment_set_entry_(object, &object->data.vorbis_comment.comments[comment_num], &entry… 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()
1240 vc = &object->data.vorbis_comment; in FLAC__metadata_object_vorbiscomment_insert_comment()
1257 …return FLAC__metadata_object_vorbiscomment_insert_comment(object, object->data.vorbis_comment.num_… in FLAC__metadata_object_vorbiscomment_append_comment()
1282 entry = object->data.vorbis_comment.comments[indx]; in FLAC__metadata_object_vorbiscomment_replace_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()
1311 vc = &object->data.vorbis_comment; 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()
1406 …if (FLAC__metadata_object_vorbiscomment_entry_matches(object->data.vorbis_comment.comments[i], fie… 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()
1429 …if (FLAC__metadata_object_vorbiscomment_entry_matches(object->data.vorbis_comment.comments[i], fie… in FLAC__metadata_object_vorbiscomment_remove_entries_matching()