Lines Matching refs:vorbis_comment

197 	object->length += object->data.vorbis_comment.vendor_string.length;  in vorbiscomment_calculate_length_()
199 for(i = 0; i < object->data.vorbis_comment.num_comments; i++) { in vorbiscomment_calculate_length_()
201 object->length += object->data.vorbis_comment.comments[i].length; in vorbiscomment_calculate_length_()
303 for(i = offset; i < object->data.vorbis_comment.num_comments; i++) { in vorbiscomment_find_entry_from_()
304 …if(FLAC__metadata_object_vorbiscomment_entry_matches(object->data.vorbis_comment.comments[i], fiel… in vorbiscomment_find_entry_from_()
467 object->data.vorbis_comment.vendor_string.length = (unsigned)strlen(FLAC__VENDOR_STRING); in FLAC__metadata_object_new()
468 …opy_bytes_(&object->data.vorbis_comment.vendor_string.entry, (const FLAC__byte*)FLAC__VENDOR_STRIN… in FLAC__metadata_object_new()
563 if(0 != to->data.vorbis_comment.vendor_string.entry) { in FLAC__metadata_object_clone()
564 free(to->data.vorbis_comment.vendor_string.entry); in FLAC__metadata_object_clone()
565 to->data.vorbis_comment.vendor_string.entry = 0; in FLAC__metadata_object_clone()
567 …if(!copy_vcentry_(&to->data.vorbis_comment.vendor_string, &object->data.vorbis_comment.vendor_stri… in FLAC__metadata_object_clone()
571 if(object->data.vorbis_comment.num_comments == 0) { in FLAC__metadata_object_clone()
572 FLAC__ASSERT(0 == object->data.vorbis_comment.comments); in FLAC__metadata_object_clone()
573 to->data.vorbis_comment.comments = 0; in FLAC__metadata_object_clone()
576 FLAC__ASSERT(0 != object->data.vorbis_comment.comments); in FLAC__metadata_object_clone()
577 …to->data.vorbis_comment.comments = vorbiscomment_entry_array_copy_(object->data.vorbis_comment.com… in FLAC__metadata_object_clone()
578 if(0 == to->data.vorbis_comment.comments) { in FLAC__metadata_object_clone()
583 to->data.vorbis_comment.num_comments = object->data.vorbis_comment.num_comments; in FLAC__metadata_object_clone()
652 if(0 != object->data.vorbis_comment.vendor_string.entry) { in FLAC__metadata_object_delete_data()
653 free(object->data.vorbis_comment.vendor_string.entry); in FLAC__metadata_object_delete_data()
654 object->data.vorbis_comment.vendor_string.entry = 0; in FLAC__metadata_object_delete_data()
656 if(0 != object->data.vorbis_comment.comments) { in FLAC__metadata_object_delete_data()
657 FLAC__ASSERT(object->data.vorbis_comment.num_comments > 0); in FLAC__metadata_object_delete_data()
658 …vorbiscomment_entry_array_delete_(object->data.vorbis_comment.comments, object->data.vorbis_commen… in FLAC__metadata_object_delete_data()
893 …eturn compare_block_data_vorbiscomment_(&block1->data.vorbis_comment, &block2->data.vorbis_comment in FLAC__metadata_object_is_equal()
1157 return vorbiscomment_set_entry_(object, &object->data.vorbis_comment.vendor_string, &entry, copy); in FLAC__metadata_object_vorbiscomment_set_vendor_string()
1165 if(0 == object->data.vorbis_comment.comments) { in FLAC__metadata_object_vorbiscomment_resize_comments()
1166 FLAC__ASSERT(object->data.vorbis_comment.num_comments == 0); in FLAC__metadata_object_vorbiscomment_resize_comments()
1169 …else if(0 == (object->data.vorbis_comment.comments = vorbiscomment_entry_array_new_(new_num_commen… in FLAC__metadata_object_vorbiscomment_resize_comments()
1173 …const size_t old_size = object->data.vorbis_comment.num_comments * sizeof(FLAC__StreamMetadata_Vor… in FLAC__metadata_object_vorbiscomment_resize_comments()
1180 FLAC__ASSERT(object->data.vorbis_comment.num_comments > 0); in FLAC__metadata_object_vorbiscomment_resize_comments()
1183 if(new_num_comments < object->data.vorbis_comment.num_comments) { in FLAC__metadata_object_vorbiscomment_resize_comments()
1185 for(i = new_num_comments; i < object->data.vorbis_comment.num_comments; i++) in FLAC__metadata_object_vorbiscomment_resize_comments()
1186 if(0 != object->data.vorbis_comment.comments[i].entry) in FLAC__metadata_object_vorbiscomment_resize_comments()
1187 free(object->data.vorbis_comment.comments[i].entry); in FLAC__metadata_object_vorbiscomment_resize_comments()
1191 free(object->data.vorbis_comment.comments); in FLAC__metadata_object_vorbiscomment_resize_comments()
1192 object->data.vorbis_comment.comments = 0; in FLAC__metadata_object_vorbiscomment_resize_comments()
1194 …e if(0 == (object->data.vorbis_comment.comments = (FLAC__StreamMetadata_VorbisComment_Entry*)reall… in FLAC__metadata_object_vorbiscomment_resize_comments()
1199 …memset(object->data.vorbis_comment.comments + object->data.vorbis_comment.num_comments, 0, new_siz… in FLAC__metadata_object_vorbiscomment_resize_comments()
1202 object->data.vorbis_comment.num_comments = new_num_comments; in FLAC__metadata_object_vorbiscomment_resize_comments()
1211 FLAC__ASSERT(comment_num < object->data.vorbis_comment.num_comments); in FLAC__metadata_object_vorbiscomment_set_comment()
1215 …return vorbiscomment_set_entry_(object, &object->data.vorbis_comment.comments[comment_num], &entry… in FLAC__metadata_object_vorbiscomment_set_comment()
1224 FLAC__ASSERT(comment_num <= object->data.vorbis_comment.num_comments); in FLAC__metadata_object_vorbiscomment_insert_comment()
1229 vc = &object->data.vorbis_comment; in FLAC__metadata_object_vorbiscomment_insert_comment()
1246 …return FLAC__metadata_object_vorbiscomment_insert_comment(object, object->data.vorbis_comment.num_… in FLAC__metadata_object_vorbiscomment_append_comment()
1272 if(all && (index+1 < object->data.vorbis_comment.num_comments)) { in FLAC__metadata_object_vorbiscomment_replace_comment()
1276 if((unsigned)i < object->data.vorbis_comment.num_comments) in FLAC__metadata_object_vorbiscomment_replace_comment()
1295 FLAC__ASSERT(comment_num < object->data.vorbis_comment.num_comments); in FLAC__metadata_object_vorbiscomment_delete_comment()
1297 vc = &object->data.vorbis_comment; in FLAC__metadata_object_vorbiscomment_delete_comment()
1398 for(i = 0; i < object->data.vorbis_comment.num_comments; i++) { in FLAC__metadata_object_vorbiscomment_remove_entry_matching()
1399 …if(FLAC__metadata_object_vorbiscomment_entry_matches(object->data.vorbis_comment.comments[i], fiel… in FLAC__metadata_object_vorbiscomment_remove_entry_matching()
1421 for(i = (int)object->data.vorbis_comment.num_comments - 1; ok && i >= 0; i--) { in FLAC__metadata_object_vorbiscomment_remove_entries_matching()
1422 …if(FLAC__metadata_object_vorbiscomment_entry_matches(object->data.vorbis_comment.comments[i], fiel… in FLAC__metadata_object_vorbiscomment_remove_entries_matching()