~ubuntu-branches/ubuntu/utopic/flac/utopic-security

« back to all changes in this revision

Viewing changes to include/FLAC++/metadata.h

  • Committer: Package Import Robot
  • Author(s): Fabian Greffrath
  • Date: 2013-06-07 10:24:30 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20130607102430-x7e7zt462c0tuetp
Tags: 1.3.0-1
* Imported Upstream version 1.3.0 (Closes: #527542, #705601).
* Update debian/watch file, thanks Ulrich Klauer (Closes: #710062).
* Revert "Remove manpages from master branch."
* Imported Upstream version 1.3.0
* Convert package to "3.0 (quilt)" source format.
* Remove all patches, they have either been merged upstream or do not
  apply anymore (tested).
* Explicitly enable static libraries.
* Simplify debian/libflac-doc.install.
* Bump shlibs for added symbols.
* Remove needless Build-Depends: libid3-3.8.3-dev.
* Update Homepage field.
* Repair upstream manpage regeneration rule.
* Bump Build-Depends: debhelper (>= 9).
* Fix vcs-field-not-canonical.
* Import two patches from upstream GIT:
  + Add missing config.h includes.
  + Fix local_strcat() to terminate string correctly.
* Disable 3DNow! optimizations, enable SSE only on amd64, enable Altivec
  only on ppc64, disable ASM optimizations elsewhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* libFLAC++ - Free Lossless Audio Codec library
2
 
 * Copyright (C) 2002,2003,2004,2005,2006,2007  Josh Coalson
 
2
 * Copyright (C) 2002-2009  Josh Coalson
 
3
 * Copyright (C) 2011-2013  Xiph.Org Foundation
3
4
 *
4
5
 * Redistribution and use in source and binary forms, with or without
5
6
 * modification, are permitted provided that the following conditions
359
360
                         */
360
361
                        inline Padding(::FLAC__StreamMetadata *object, bool copy): Prototype(object, copy) { }
361
362
 
 
363
                        /** Constructs an object with the given length.
 
364
                         */
 
365
                        Padding(unsigned length);
 
366
 
362
367
                        ~Padding();
363
368
 
364
369
                        //@{
387
392
                        inline bool operator!=(const ::FLAC__StreamMetadata *object) const { return Prototype::operator!=(object); }
388
393
                        //@}
389
394
 
 
395
                        /** Sets the length in bytes of the padding block.
 
396
                         */
390
397
                        void set_length(unsigned length);
391
398
                };
392
399
 
502
509
                        unsigned get_num_points() const;
503
510
                        ::FLAC__StreamMetadata_SeekPoint get_point(unsigned index) const;
504
511
 
 
512
                        //! See FLAC__metadata_object_seektable_resize_points()
 
513
                        bool resize_points(unsigned new_num_points);
 
514
 
505
515
                        //! See FLAC__metadata_object_seektable_set_point()
506
516
                        void set_point(unsigned index, const ::FLAC__StreamMetadata_SeekPoint &point);
507
517
 
513
523
 
514
524
                        //! See FLAC__metadata_object_seektable_is_legal()
515
525
                        bool is_legal() const;
 
526
 
 
527
                        //! See FLAC__metadata_object_seektable_template_append_placeholders()
 
528
                        bool template_append_placeholders(unsigned num);
 
529
 
 
530
                        //! See FLAC__metadata_object_seektable_template_append_point()
 
531
                        bool template_append_point(FLAC__uint64 sample_number);
 
532
 
 
533
                        //! See FLAC__metadata_object_seektable_template_append_points()
 
534
                        bool template_append_points(FLAC__uint64 sample_numbers[], unsigned num);
 
535
 
 
536
                        //! See FLAC__metadata_object_seektable_template_append_spaced_points()
 
537
                        bool template_append_spaced_points(unsigned num, FLAC__uint64 total_samples);
 
538
 
 
539
                        //! See FLAC__metadata_object_seektable_template_append_spaced_points_by_samples()
 
540
                        bool template_append_spaced_points_by_samples(unsigned samples, FLAC__uint64 total_samples);
 
541
 
 
542
                        //! See FLAC__metadata_object_seektable_template_sort()
 
543
                        bool template_sort(bool compact);
516
544
                };
517
545
 
518
546
                /** VORBIS_COMMENT metadata block.
654
682
                        //! See FLAC__metadata_object_vorbiscomment_set_vendor_string()
655
683
                        bool set_vendor_string(const FLAC__byte *string); // NUL-terminated UTF-8 string
656
684
 
 
685
                        //! See FLAC__metadata_object_vorbiscomment_resize_comments()
 
686
                        bool resize_comments(unsigned new_num_comments);
 
687
 
657
688
                        //! See FLAC__metadata_object_vorbiscomment_set_comment()
658
689
                        bool set_comment(unsigned index, const Entry &entry);
659
690
 
663
694
                        //! See FLAC__metadata_object_vorbiscomment_append_comment()
664
695
                        bool append_comment(const Entry &entry);
665
696
 
 
697
                        //! See FLAC__metadata_object_vorbiscomment_replace_comment()
 
698
                        bool replace_comment(const Entry &entry, bool all);
 
699
 
666
700
                        //! See FLAC__metadata_object_vorbiscomment_delete_comment()
667
701
                        bool delete_comment(unsigned index);
 
702
 
 
703
                        //! See FLAC__metadata_object_vorbiscomment_find_entry_from()
 
704
                        int find_entry_from(unsigned offset, const char *field_name);
 
705
 
 
706
                        //! See FLAC__metadata_object_vorbiscomment_remove_entry_matching()
 
707
                        int remove_entry_matching(const char *field_name);
 
708
 
 
709
                        //! See FLAC__metadata_object_vorbiscomment_remove_entries_matching()
 
710
                        int remove_entries_matching(const char *field_name);
668
711
                };
669
712
 
670
713
                /** CUESHEET metadata block.
772
815
 
773
816
                        void set_index(unsigned track_num, unsigned index_num, const ::FLAC__StreamMetadata_CueSheet_Index &index);
774
817
 
 
818
                        //! See FLAC__metadata_object_cuesheet_track_resize_indices()
 
819
                        bool resize_indices(unsigned track_num, unsigned new_num_indices);
 
820
 
775
821
                        //! See FLAC__metadata_object_cuesheet_track_insert_index()
776
822
                        bool insert_index(unsigned track_num, unsigned index_num, const ::FLAC__StreamMetadata_CueSheet_Index &index);
777
823
 
 
824
                        //! See FLAC__metadata_object_cuesheet_track_insert_blank_index()
 
825
                        bool insert_blank_index(unsigned track_num, unsigned index_num);
 
826
 
778
827
                        //! See FLAC__metadata_object_cuesheet_track_delete_index()
779
828
                        bool delete_index(unsigned track_num, unsigned index_num);
780
829
 
 
830
                        //! See FLAC__metadata_object_cuesheet_resize_tracks()
 
831
                        bool resize_tracks(unsigned new_num_tracks);
 
832
 
781
833
                        //! See FLAC__metadata_object_cuesheet_set_track()
782
834
                        bool set_track(unsigned i, const Track &track);
783
835
 
784
836
                        //! See FLAC__metadata_object_cuesheet_insert_track()
785
837
                        bool insert_track(unsigned i, const Track &track);
786
838
 
 
839
                        //! See FLAC__metadata_object_cuesheet_insert_blank_track()
 
840
                        bool insert_blank_track(unsigned i);
 
841
 
787
842
                        //! See FLAC__metadata_object_cuesheet_delete_track()
788
843
                        bool delete_track(unsigned i);
789
844
 
869
924
 
870
925
                        //! See FLAC__metadata_object_picture_set_data()
871
926
                        bool set_data(const FLAC__byte *data, FLAC__uint32 data_length);
 
927
 
 
928
                        //! See FLAC__metadata_object_picture_is_legal()
 
929
                        bool is_legal(const char **violation);
872
930
                };
873
931
 
874
932
                /** Opaque metadata block for storing unknown types.