FFmpeg
|
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"
Include dependency graph for sdl.c:
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 const 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) |
Function Documentation
|
static |
|
static |
|
static |
Definition at line 56 of file sdl.c.
Referenced by sdl_write_header().
Variable Documentation
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: sdl.c:33
Definition: libavcodec/avcodec.h:100
static int write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: libavformat/assenc.c:63
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:345
Definition: libavcodec/avcodec.h:116
|
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 },
{ "window_fullscreen", "set SDL window fullscreen", OFFSET(window_fullscreen), AV_OPT_TYPE_INT,{.i64=0}, INT_MIN, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM },
{ NULL },
}
Definition: opt.h:222
Definition: opt.h:226
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
Definition: opt.h:281
|
static |
Initial value:
= {
.class_name = "sdl outdev",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
}
|
static |
Initial value:
= {
{ AV_PIX_FMT_YUV420P, SDL_IYUV_OVERLAY },
{ AV_PIX_FMT_YUYV422, SDL_YUY2_OVERLAY },
{ AV_PIX_FMT_UYVY422, SDL_UYVY_OVERLAY },
{ AV_PIX_FMT_NONE, 0 },
}
Definition: pixfmt.h:67
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:68
Referenced by sdl_write_header().
Generated on Mon Nov 18 2024 06:52:09 for FFmpeg by 1.8.11