FFmpeg
|
#include <stdio.h>
#include <stdint.h>
#include "libavcodec/codec_id.h"
#include "avio.h"
#include "qtpalette.h"
Go to the source code of this file.
Functions | |
int | ff_get_qtpalette (int codec_id, AVIOContext *pb, uint32_t *palette) |
Retrieve the palette (or "color table" in QuickTime terms), either from the video sample description, or from the default Macintosh palette. More... | |
Variables | |
static const uint8_t | qt_default_palette_2 [2 *3] |
static const uint8_t | qt_default_palette_4 [4 *3] |
static const uint8_t | qt_default_palette_16 [16 *3] |
static const uint8_t | qt_default_palette_256 [256 *3] |
int ff_get_qtpalette | ( | int | codec_id, |
AVIOContext * | pb, | ||
uint32_t * | palette | ||
) |
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).
Definition at line 323 of file qtpalette.c.
Referenced by mov_parse_stsd_video().
|
static |
Definition at line 31 of file qtpalette.c.
Referenced by ff_get_qtpalette().
|
static |
Definition at line 37 of file qtpalette.c.
Referenced by ff_get_qtpalette().
|
static |
Definition at line 45 of file qtpalette.c.
Referenced by ff_get_qtpalette().
|
static |
Definition at line 64 of file qtpalette.c.
Referenced by ff_get_qtpalette().