FFmpeg
Data Structures | Enumerations | Functions
utils.h File Reference
#include "libavutil/pixdesc.h"
#include "swscale.h"

Go to the source code of this file.

Data Structures

struct  SwsFormat
 

Enumerations

enum  { FIELD_TOP, FIELD_BOTTOM }
 

Functions

SwsFormat ff_fmt_from_frame (const AVFrame *frame, int field)
 This function also sanitizes and strips the input data, removing irrelevant fields for certain formats. More...
 
static int ff_fmt_equal (const SwsFormat *fmt1, const SwsFormat *fmt2)
 
static int ff_fmt_align (enum AVPixelFormat fmt)
 
int ff_test_fmt (const SwsFormat *fmt, int output)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FIELD_TOP 
FIELD_BOTTOM 

Definition at line 28 of file utils.h.

Function Documentation

◆ ff_fmt_from_frame()

SwsFormat ff_fmt_from_frame ( const AVFrame frame,
int  field 
)

This function also sanitizes and strips the input data, removing irrelevant fields for certain formats.

Definition at line 2653 of file utils.c.

Referenced by sws_frame_setup(), sws_is_noop(), and sws_test_frame().

◆ ff_fmt_equal()

static int ff_fmt_equal ( const SwsFormat fmt1,
const SwsFormat fmt2 
)
inlinestatic

Definition at line 52 of file utils.h.

Referenced by init_passes(), sws_graph_reinit(), and sws_is_noop().

◆ ff_fmt_align()

static int ff_fmt_align ( enum AVPixelFormat  fmt)
inlinestatic

Definition at line 65 of file utils.h.

◆ ff_test_fmt()

int ff_test_fmt ( const SwsFormat fmt,
int  output 
)

Definition at line 2755 of file utils.c.

Referenced by sws_frame_setup(), and sws_test_frame().