blob: 18a108ebaf7de1a9fa29f6a7ab1de02e4c541ef8 [file] [log] [blame]
Mike Melansonb595afaa2003-11-10 03:17:321/*
2 * Default Palettes for Quicktime Files
3 * Automatically generated from a utility derived from XAnim:
4 * http://xanim.va.pubnix.com/home.html
Diego Biurrunf5a90182007-02-27 16:05:195 *
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 Melansonb595afaa2003-11-10 03:17:3221 */
22
Stefano Sabatini98790382008-08-31 07:39:4723#ifndef AVFORMAT_QTPALETTE_H
24#define AVFORMAT_QTPALETTE_H
Mike Melansonb595afaa2003-11-10 03:17:3225
Mats Peterson57631f12015-12-27 20:28:0926#include <stdint.h>
Andreas Rheinhardt1873d122021-01-29 18:20:3827#include "avio.h"
Diego Biurrun78278852007-12-03 12:46:2028
Michael Niedermayerca9e3cb2015-12-28 02:18:2029/**
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 Peterson57631f12015-12-27 20:28:0938int ff_get_qtpalette(int codec_id, AVIOContext *pb, uint32_t *palette);
39
Stefano Sabatini98790382008-08-31 07:39:4740#endif /* AVFORMAT_QTPALETTE_H */