1c74663799493f2b1e6123c18def94295d0afab7Kenny Root/* libFLAC - Free Lossless Audio Codec 231e4f3166a91a2ebb34f643787122a638d9f1471Robert Shih * Copyright (C) 2004-2009 Josh Coalson 3ae0e7bcc925f0624f6e34976984b40181c965fd9Elliott Hughes * Copyright (C) 2011-2016 Xiph.Org Foundation 4c74663799493f2b1e6123c18def94295d0afab7Kenny Root * 5c74663799493f2b1e6123c18def94295d0afab7Kenny Root * Redistribution and use in source and binary forms, with or without 6c74663799493f2b1e6123c18def94295d0afab7Kenny Root * modification, are permitted provided that the following conditions 7c74663799493f2b1e6123c18def94295d0afab7Kenny Root * are met: 8c74663799493f2b1e6123c18def94295d0afab7Kenny Root * 9c74663799493f2b1e6123c18def94295d0afab7Kenny Root * - Redistributions of source code must retain the above copyright 10c74663799493f2b1e6123c18def94295d0afab7Kenny Root * notice, this list of conditions and the following disclaimer. 11c74663799493f2b1e6123c18def94295d0afab7Kenny Root * 12c74663799493f2b1e6123c18def94295d0afab7Kenny Root * - Redistributions in binary form must reproduce the above copyright 13c74663799493f2b1e6123c18def94295d0afab7Kenny Root * notice, this list of conditions and the following disclaimer in the 14c74663799493f2b1e6123c18def94295d0afab7Kenny Root * documentation and/or other materials provided with the distribution. 15c74663799493f2b1e6123c18def94295d0afab7Kenny Root * 16c74663799493f2b1e6123c18def94295d0afab7Kenny Root * - Neither the name of the Xiph.org Foundation nor the names of its 17c74663799493f2b1e6123c18def94295d0afab7Kenny Root * contributors may be used to endorse or promote products derived from 18c74663799493f2b1e6123c18def94295d0afab7Kenny Root * this software without specific prior written permission. 19c74663799493f2b1e6123c18def94295d0afab7Kenny Root * 20c74663799493f2b1e6123c18def94295d0afab7Kenny Root * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21c74663799493f2b1e6123c18def94295d0afab7Kenny Root * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22c74663799493f2b1e6123c18def94295d0afab7Kenny Root * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23c74663799493f2b1e6123c18def94295d0afab7Kenny Root * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR 24c74663799493f2b1e6123c18def94295d0afab7Kenny Root * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25c74663799493f2b1e6123c18def94295d0afab7Kenny Root * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 26c74663799493f2b1e6123c18def94295d0afab7Kenny Root * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 27c74663799493f2b1e6123c18def94295d0afab7Kenny Root * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 28c74663799493f2b1e6123c18def94295d0afab7Kenny Root * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 29c74663799493f2b1e6123c18def94295d0afab7Kenny Root * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30c74663799493f2b1e6123c18def94295d0afab7Kenny Root * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31c74663799493f2b1e6123c18def94295d0afab7Kenny Root */ 32c74663799493f2b1e6123c18def94295d0afab7Kenny Root 33c74663799493f2b1e6123c18def94295d0afab7Kenny Root#ifndef FLAC__PRIVATE__OGG_MAPPING_H 34c74663799493f2b1e6123c18def94295d0afab7Kenny Root#define FLAC__PRIVATE__OGG_MAPPING_H 35c74663799493f2b1e6123c18def94295d0afab7Kenny Root 36c74663799493f2b1e6123c18def94295d0afab7Kenny Root#include "FLAC/ordinals.h" 37c74663799493f2b1e6123c18def94295d0afab7Kenny Root 3831e4f3166a91a2ebb34f643787122a638d9f1471Robert Shih/** The length of the packet type field in bytes. */ 39c74663799493f2b1e6123c18def94295d0afab7Kenny Root#define FLAC__OGG_MAPPING_PACKET_TYPE_LENGTH (1u) 40c74663799493f2b1e6123c18def94295d0afab7Kenny Root 41c74663799493f2b1e6123c18def94295d0afab7Kenny Rootextern const unsigned FLAC__OGG_MAPPING_PACKET_TYPE_LEN; /* = 8 bits */ 42c74663799493f2b1e6123c18def94295d0afab7Kenny Root 43c74663799493f2b1e6123c18def94295d0afab7Kenny Rootextern const FLAC__byte FLAC__OGG_MAPPING_FIRST_HEADER_PACKET_TYPE; /* = 0x7f */ 44c74663799493f2b1e6123c18def94295d0afab7Kenny Root 45c74663799493f2b1e6123c18def94295d0afab7Kenny Root/** The length of the 'FLAC' magic in bytes. */ 46c74663799493f2b1e6123c18def94295d0afab7Kenny Root#define FLAC__OGG_MAPPING_MAGIC_LENGTH (4u) 47c74663799493f2b1e6123c18def94295d0afab7Kenny Root 48c74663799493f2b1e6123c18def94295d0afab7Kenny Rootextern const FLAC__byte * const FLAC__OGG_MAPPING_MAGIC; /* = "FLAC" */ 49c74663799493f2b1e6123c18def94295d0afab7Kenny Root 50c74663799493f2b1e6123c18def94295d0afab7Kenny Rootextern const unsigned FLAC__OGG_MAPPING_VERSION_MAJOR_LEN; /* = 8 bits */ 51c74663799493f2b1e6123c18def94295d0afab7Kenny Rootextern const unsigned FLAC__OGG_MAPPING_VERSION_MINOR_LEN; /* = 8 bits */ 52c74663799493f2b1e6123c18def94295d0afab7Kenny Root 53c74663799493f2b1e6123c18def94295d0afab7Kenny Root/** The length of the Ogg FLAC mapping major version number in bytes. */ 54c74663799493f2b1e6123c18def94295d0afab7Kenny Root#define FLAC__OGG_MAPPING_VERSION_MAJOR_LENGTH (1u) 55c74663799493f2b1e6123c18def94295d0afab7Kenny Root 56c74663799493f2b1e6123c18def94295d0afab7Kenny Root/** The length of the Ogg FLAC mapping minor version number in bytes. */ 57c74663799493f2b1e6123c18def94295d0afab7Kenny Root#define FLAC__OGG_MAPPING_VERSION_MINOR_LENGTH (1u) 58c74663799493f2b1e6123c18def94295d0afab7Kenny Root 59c74663799493f2b1e6123c18def94295d0afab7Kenny Rootextern const unsigned FLAC__OGG_MAPPING_NUM_HEADERS_LEN; /* = 16 bits */ 60c74663799493f2b1e6123c18def94295d0afab7Kenny Root 61c74663799493f2b1e6123c18def94295d0afab7Kenny Root/** The length of the #-of-header-packets number bytes. */ 62c74663799493f2b1e6123c18def94295d0afab7Kenny Root#define FLAC__OGG_MAPPING_NUM_HEADERS_LENGTH (2u) 63c74663799493f2b1e6123c18def94295d0afab7Kenny Root 64c74663799493f2b1e6123c18def94295d0afab7Kenny Root#endif 65