FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
sdl.c File Reference

libSDL output device More...

#include <SDL.h>
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "avdevice.h"

Go to the source code of this file.

Data Structures

struct  SDLContext
 
struct  sdl_overlay_pix_fmt_entry
 

Macros

#define OFFSET(x)   offsetof(SDLContext,x)
 

Functions

static int sdl_write_trailer (AVFormatContext *s)
 
static int sdl_write_header (AVFormatContext *s)
 
static int sdl_write_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static struct
sdl_overlay_pix_fmt_entry 
sdl_overlay_pix_fmt_map []
 
static const AVOption options []
 
static const AVClass sdl_class
 
AVOutputFormat ff_sdl_muxer
 

Detailed Description

libSDL output device

Definition in file sdl.c.

Macro Definition Documentation

#define OFFSET (   x)    offsetof(SDLContext,x)

Definition at line 206 of file sdl.c.

Function Documentation

static int sdl_write_trailer ( AVFormatContext s)
static

Definition at line 55 of file sdl.c.

Referenced by sdl_write_header().

static int sdl_write_header ( AVFormatContext s)
static

Definition at line 72 of file sdl.c.

static int sdl_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 181 of file sdl.c.

Variable Documentation

struct sdl_overlay_pix_fmt_entry sdl_overlay_pix_fmt_map[]
static
Initial value:
= {
{ AV_PIX_FMT_YUV420P, SDL_IYUV_OVERLAY },
{ AV_PIX_FMT_YUYV422, SDL_YUY2_OVERLAY },
{ AV_PIX_FMT_UYVY422, SDL_UYVY_OVERLAY },
}

Referenced by sdl_write_header().

const AVOption options[]
static
Initial value:
= {
{ "window_title", "set SDL window title", OFFSET(window_title), AV_OPT_TYPE_STRING, {.str = NULL }, 0, 0, AV_OPT_FLAG_ENCODING_PARAM },
{ "icon_title", "set SDL iconified window title", OFFSET(icon_title) , AV_OPT_TYPE_STRING, {.str = NULL }, 0, 0, AV_OPT_FLAG_ENCODING_PARAM },
{ "window_size", "set SDL window forced size", OFFSET(window_width), AV_OPT_TYPE_IMAGE_SIZE,{.str=NULL}, 0, 0, AV_OPT_FLAG_ENCODING_PARAM },
{ NULL },
}

Definition at line 208 of file sdl.c.

const AVClass sdl_class
static
Initial value:
= {
.class_name = "sdl outdev",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 215 of file sdl.c.

AVOutputFormat ff_sdl_muxer
Initial value:
= {
.name = "sdl",
.long_name = NULL_IF_CONFIG_SMALL("SDL output device"),
.priv_data_size = sizeof(SDLContext),
.audio_codec = AV_CODEC_ID_NONE,
.video_codec = AV_CODEC_ID_RAWVIDEO,
.priv_class = &sdl_class,
}

Definition at line 222 of file sdl.c.