FFmpeg  4.0
Functions
rawutils.c File Reference
#include "avformat.h"
#include "internal.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...
 

Function Documentation

◆ ff_reshuffle_raw_rgb()

int ff_reshuffle_raw_rgb ( AVFormatContext s,
AVPacket **  ppkt,
AVCodecParameters par,
int  expected_stride 
)

Reshuffles the lines to use the user specified stride.

Parameters
ppktinput and output packet
Returns
negative error code or 0 if no new packet was allocated non-zero if a new packet was allocated and ppkt has to be freed CONTAINS_PAL if in addition to a new packet the old contained a palette

Definition at line 25 of file rawutils.c.

Referenced by avi_write_packet(), and mov_write_packet().