avformat/qtpalette: Move ff_get_qtpalette() doxy to header

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/168/head
Michael Niedermayer 9 years ago
parent 7973603843
commit ca9e3cb3ce
  1. 9
      libavformat/qtpalette.c
  2. 9
      libavformat/qtpalette.h

@ -28,15 +28,6 @@
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "qtpalette.h" #include "qtpalette.h"
/**
* 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).
*/
int ff_get_qtpalette(int codec_id, AVIOContext *pb, uint32_t *palette) int ff_get_qtpalette(int codec_id, AVIOContext *pb, uint32_t *palette)
{ {
int tmp, bit_depth, color_table_id, greyscale, i; int tmp, bit_depth, color_table_id, greyscale, i;

@ -311,6 +311,15 @@ static const uint8_t ff_qt_default_palette_256[256 * 3] = {
/* 255, 0xFF */ 0x00, 0x00, 0x00 /* 255, 0xFF */ 0x00, 0x00, 0x00
}; };
/**
* 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).
*/
int ff_get_qtpalette(int codec_id, AVIOContext *pb, uint32_t *palette); int ff_get_qtpalette(int codec_id, AVIOContext *pb, uint32_t *palette);
#endif /* AVFORMAT_QTPALETTE_H */ #endif /* AVFORMAT_QTPALETTE_H */

Loading…
Cancel
Save