FFmpeg
|
#include "libavutil/intreadwrite.h"
#include "libavcodec/packet.h"
#include "avformat.h"
#include "rawutils.h"
Go to the source code of this file.
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... | |
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().