/* * IEC 61937 common header * Copyright (c) 2009 Bartlomiej Wolowiec * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef AVFORMAT_SPDIF_H #define AVFORMAT_SPDIF_H #include <stdint.h> #include "avformat.h" #define SYNCWORD1 … #define SYNCWORD2 … #define BURST_HEADER_SIZE … enum IEC61937DataType { … }; static const uint16_t spdif_mpeg_pkt_offset[2][3] = …; void ff_spdif_bswap_buf16(uint16_t *dst, const uint16_t *src, int w); int ff_spdif_read_packet(AVFormatContext *s, AVPacket *pkt); int ff_spdif_probe(const uint8_t *p_buf, int buf_size, enum AVCodecID *codec); #endif /* AVFORMAT_SPDIF_H */