FFmpeg
Data Structures | Functions | Variables
vidstabutils.c File Reference
#include "vidstabutils.h"

Go to the source code of this file.

Data Structures

struct  VS2AVLogCtx
 struct to hold a valid context for logging from within vid.stab lib More...
 

Functions

VSPixelFormat ff_av2vs_pixfmt (AVFilterContext *ctx, enum AVPixelFormat pf)
 convert AV's pixelformat to vid.stab pixelformat More...
 
static int vs2av_log (int type, const char *tag, const char *format,...)
 wrapper to log vs_log into av_log More...
 
void ff_vs_init (void)
 sets the memory allocation function and logging constants to av versions More...
 

Variables

enum AVPixelFormat ff_vidstab_pix_fmts []
 

Function Documentation

◆ ff_av2vs_pixfmt()

VSPixelFormat ff_av2vs_pixfmt ( AVFilterContext ctx,
enum AVPixelFormat  pf 
)

convert AV's pixelformat to vid.stab pixelformat

Converts an AVPixelFormat to a VSPixelFormat.

Definition at line 32 of file vidstabutils.c.

Referenced by config_input().

◆ vs2av_log()

static int vs2av_log ( int  type,
const char *  tag,
const char *  format,
  ... 
)
static

wrapper to log vs_log into av_log

Definition at line 58 of file vidstabutils.c.

Referenced by ff_vs_init().

◆ ff_vs_init()

void ff_vs_init ( void  )

sets the memory allocation function and logging constants to av versions

Initialize libvidstab.

Definition at line 77 of file vidstabutils.c.

Referenced by init().

Variable Documentation

◆ ff_vidstab_pix_fmts

enum AVPixelFormat ff_vidstab_pix_fmts[]
AV_PIX_FMT_BGR24
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:69
AV_PIX_FMT_YUV440P
@ AV_PIX_FMT_YUV440P
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
Definition: pixfmt.h:99
AV_PIX_FMT_YUVA420P
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
Definition: pixfmt.h:101
AV_PIX_FMT_YUV420P
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:66
AV_PIX_FMT_RGBA
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:93
AV_PIX_FMT_GRAY8
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
Definition: pixfmt.h:74
AV_PIX_FMT_RGB24
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:68
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
AV_PIX_FMT_YUV444P
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition: pixfmt.h:71
AV_PIX_FMT_YUV422P
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:70
AV_PIX_FMT_YUV411P
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
Definition: pixfmt.h:73
AV_PIX_FMT_YUV410P
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
Definition: pixfmt.h:72