2003-11-10 05:17:32 +02:00
|
|
|
/*
|
|
|
|
* Default Palettes for Quicktime Files
|
|
|
|
* Automatically generated from a utility derived from XAnim:
|
|
|
|
* http://xanim.va.pubnix.com/home.html
|
2007-02-27 18:05:19 +02:00
|
|
|
*
|
|
|
|
* 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
|
2003-11-10 05:17:32 +02:00
|
|
|
*/
|
|
|
|
|
2008-08-31 10:39:47 +03:00
|
|
|
#ifndef AVFORMAT_QTPALETTE_H
|
|
|
|
#define AVFORMAT_QTPALETTE_H
|
2003-11-10 05:17:32 +02:00
|
|
|
|
2015-12-27 22:28:09 +02:00
|
|
|
#include <stdint.h>
|
2021-01-29 20:20:38 +02:00
|
|
|
#include "avio.h"
|
2007-12-03 14:46:20 +02:00
|
|
|
|
2015-12-28 04:18:20 +02:00
|
|
|
/**
|
|
|
|
* Retrieve the palette (or "color table" in QuickTime terms), either
|
|
|
|
* from the video sample description, or from the default Macintosh
|
|
|
|
* palette.
|
|
|
|
*
|
|
|
|
* The file offset of the AVIOContext pointed to by the 'pb' variable
|
|
|
|
* should be the start of the video sample description (the sample
|
|
|
|
* description size and the data format).
|
|
|
|
*/
|
2015-12-27 22:28:09 +02:00
|
|
|
int ff_get_qtpalette(int codec_id, AVIOContext *pb, uint32_t *palette);
|
|
|
|
|
2008-08-31 10:39:47 +03:00
|
|
|
#endif /* AVFORMAT_QTPALETTE_H */
|