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