#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 |
Defines | |
| #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 |
Definition in file sdl.c.
| #define OFFSET | ( | x | ) | offsetof(SDLContext,x) |
| static int sdl_write_header | ( | AVFormatContext * | s | ) | [static] |
| static int sdl_write_packet | ( | AVFormatContext * | s, | |
| AVPacket * | pkt | |||
| ) | [static] |
| static int sdl_write_trailer | ( | AVFormatContext * | s | ) | [static] |
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,
.write_header = sdl_write_header,
.write_packet = sdl_write_packet,
.write_trailer = sdl_write_trailer,
.flags = AVFMT_NOFILE | AVFMT_VARIABLE_FPS | AVFMT_NOTIMESTAMPS,
.priv_class = &sdl_class,
}
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 },
}
Initial value:
{
.class_name = "sdl outdev",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
}
struct sdl_overlay_pix_fmt_entry sdl_overlay_pix_fmt_map[] [static] |
Referenced by sdl_write_header().
1.5.8