FFmpeg
|
#include <stdint.h>
#include "libavcodec/codec_par.h"
#include "libavcodec/packet.h"
#include "avformat.h"
Go to the source code of this file.
Macros | |
#define | CONTAINS_PAL 2 |
Functions | |
int | ff_reshuffle_raw_rgb (AVFormatContext *s, AVPacket **ppkt, AVCodecParameters *par, int expected_stride) |
Reshuffles the lines to use the user specified stride. More... | |
int | ff_get_packet_palette (AVFormatContext *s, AVPacket *pkt, int ret, uint32_t *palette) |
Retrieves the palette from a packet, either from side data, or appended to the video data in the packet itself (raw video only). More... | |
#define CONTAINS_PAL 2 |
Definition at line 29 of file rawutils.h.
int ff_reshuffle_raw_rgb | ( | AVFormatContext * | s, |
AVPacket ** | ppkt, | ||
AVCodecParameters * | par, | ||
int | expected_stride | ||
) |
Reshuffles the lines to use the user specified stride.
ppkt | input and output packet |
Definition at line 27 of file rawutils.c.
Referenced by avi_write_packet(), and mov_write_packet().
int ff_get_packet_palette | ( | AVFormatContext * | s, |
AVPacket * | pkt, | ||
int | ret, | ||
uint32_t * | palette | ||
) |
Retrieves the palette from a packet, either from side data, or appended to the video data in the packet itself (raw video only).
It is commonly used after a call to ff_reshuffle_raw_rgb().
Use 0 for the ret parameter to check for side data only.
pkt | pointer to packet before calling ff_reshuffle_raw_rgb() |
ret | return value from ff_reshuffle_raw_rgb(), or 0 |
palette | pointer to palette buffer |
Definition at line 71 of file rawutils.c.
Referenced by avi_write_packet(), and mov_write_packet().