Mike Melanson | b595afaa | 2003-11-10 03:17:32 | [diff] [blame] | 1 | /* |
| 2 | * Default Palettes for Quicktime Files |
| 3 | * Automatically generated from a utility derived from XAnim: |
| 4 | * http://xanim.va.pubnix.com/home.html |
Diego Biurrun | f5a9018 | 2007-02-27 16:05:19 | [diff] [blame] | 5 | * |
| 6 | * This file is part of FFmpeg. |
| 7 | * |
| 8 | * FFmpeg is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * |
| 13 | * FFmpeg is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with FFmpeg; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
Mike Melanson | b595afaa | 2003-11-10 03:17:32 | [diff] [blame] | 21 | */ |
| 22 | |
Stefano Sabatini | 9879038 | 2008-08-31 07:39:47 | [diff] [blame] | 23 | #ifndef AVFORMAT_QTPALETTE_H |
| 24 | #define AVFORMAT_QTPALETTE_H |
Mike Melanson | b595afaa | 2003-11-10 03:17:32 | [diff] [blame] | 25 | |
Mats Peterson | 57631f1 | 2015-12-27 20:28:09 | [diff] [blame] | 26 | #include <stdint.h> |
Andreas Rheinhardt | 1873d12 | 2021-01-29 18:20:38 | [diff] [blame] | 27 | #include "avio.h" |
Diego Biurrun | 7827885 | 2007-12-03 12:46:20 | [diff] [blame] | 28 | |
Michael Niedermayer | ca9e3cb | 2015-12-28 02:18:20 | [diff] [blame] | 29 | /** |
| 30 | * Retrieve the palette (or "color table" in QuickTime terms), either |
| 31 | * from the video sample description, or from the default Macintosh |
| 32 | * palette. |
| 33 | * |
| 34 | * The file offset of the AVIOContext pointed to by the 'pb' variable |
| 35 | * should be the start of the video sample description (the sample |
| 36 | * description size and the data format). |
| 37 | */ |
Mats Peterson | 57631f1 | 2015-12-27 20:28:09 | [diff] [blame] | 38 | int ff_get_qtpalette(int codec_id, AVIOContext *pb, uint32_t *palette); |
| 39 | |
Stefano Sabatini | 9879038 | 2008-08-31 07:39:47 | [diff] [blame] | 40 | #endif /* AVFORMAT_QTPALETTE_H */ |