Mercurial > hg > sv-dependency-builds
comparison src/flac-1.2.1/include/test_libs_common/metadata_utils.h @ 1:05aa0afa9217
Bring in flac, ogg, vorbis
| author | Chris Cannam |
|---|---|
| date | Tue, 19 Mar 2013 17:37:49 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:c7265573341e | 1:05aa0afa9217 |
|---|---|
| 1 /* test_libFLAC - Unit tester for libFLAC | |
| 2 * Copyright (C) 2002,2003,2004,2005,2006,2007 Josh Coalson | |
| 3 * | |
| 4 * This program is free software; you can redistribute it and/or | |
| 5 * modify it under the terms of the GNU General Public License | |
| 6 * as published by the Free Software Foundation; either version 2 | |
| 7 * of the License, or (at your option) any later version. | |
| 8 * | |
| 9 * This program is distributed in the hope that it will be useful, | |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 12 * GNU General Public License for more details. | |
| 13 * | |
| 14 * You should have received a copy of the GNU General Public License | |
| 15 * along with this program; if not, write to the Free Software | |
| 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
| 17 */ | |
| 18 | |
| 19 #ifndef FLAC__TEST_LIBS_COMMON_METADATA_UTILS_H | |
| 20 #define FLAC__TEST_LIBS_COMMON_METADATA_UTILS_H | |
| 21 | |
| 22 /* | |
| 23 * These are not tests, just utility functions used by the metadata tests | |
| 24 */ | |
| 25 | |
| 26 #include "FLAC/format.h" | |
| 27 | |
| 28 FLAC__bool mutils__compare_block_data_streaminfo(const FLAC__StreamMetadata_StreamInfo *block, const FLAC__StreamMetadata_StreamInfo *blockcopy); | |
| 29 | |
| 30 FLAC__bool mutils__compare_block_data_padding(const FLAC__StreamMetadata_Padding *block, const FLAC__StreamMetadata_Padding *blockcopy, unsigned block_length); | |
| 31 | |
| 32 FLAC__bool mutils__compare_block_data_application(const FLAC__StreamMetadata_Application *block, const FLAC__StreamMetadata_Application *blockcopy, unsigned block_length); | |
| 33 | |
| 34 FLAC__bool mutils__compare_block_data_seektable(const FLAC__StreamMetadata_SeekTable *block, const FLAC__StreamMetadata_SeekTable *blockcopy); | |
| 35 | |
| 36 FLAC__bool mutils__compare_block_data_vorbiscomment(const FLAC__StreamMetadata_VorbisComment *block, const FLAC__StreamMetadata_VorbisComment *blockcopy); | |
| 37 | |
| 38 FLAC__bool mutils__compare_block_data_cuesheet(const FLAC__StreamMetadata_CueSheet *block, const FLAC__StreamMetadata_CueSheet *blockcopy); | |
| 39 | |
| 40 FLAC__bool mutils__compare_block_data_picture(const FLAC__StreamMetadata_Picture *block, const FLAC__StreamMetadata_Picture *blockcopy); | |
| 41 | |
| 42 FLAC__bool mutils__compare_block_data_unknown(const FLAC__StreamMetadata_Unknown *block, const FLAC__StreamMetadata_Unknown *blockcopy, unsigned block_length); | |
| 43 | |
| 44 FLAC__bool mutils__compare_block(const FLAC__StreamMetadata *block, const FLAC__StreamMetadata *blockcopy); | |
| 45 | |
| 46 void mutils__init_metadata_blocks( | |
| 47 FLAC__StreamMetadata *streaminfo, | |
| 48 FLAC__StreamMetadata *padding, | |
| 49 FLAC__StreamMetadata *seektable, | |
| 50 FLAC__StreamMetadata *application1, | |
| 51 FLAC__StreamMetadata *application2, | |
| 52 FLAC__StreamMetadata *vorbiscomment, | |
| 53 FLAC__StreamMetadata *cuesheet, | |
| 54 FLAC__StreamMetadata *picture, | |
| 55 FLAC__StreamMetadata *unknown | |
| 56 ); | |
| 57 | |
| 58 void mutils__free_metadata_blocks( | |
| 59 FLAC__StreamMetadata *streaminfo, | |
| 60 FLAC__StreamMetadata *padding, | |
| 61 FLAC__StreamMetadata *seektable, | |
| 62 FLAC__StreamMetadata *application1, | |
| 63 FLAC__StreamMetadata *application2, | |
| 64 FLAC__StreamMetadata *vorbiscomment, | |
| 65 FLAC__StreamMetadata *cuesheet, | |
| 66 FLAC__StreamMetadata *picture, | |
| 67 FLAC__StreamMetadata *unknown | |
| 68 ); | |
| 69 | |
| 70 #endif |
