FFmpeg  2.1.1
Data Structures | Macros | Functions | Variables
xv.c File Reference

XVideo output device. More...

#include <X11/Xlib.h>
#include <X11/extensions/Xv.h>
#include <X11/extensions/XShm.h>
#include <X11/extensions/Xvlib.h>
#include <sys/shm.h>
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avdevice.h"

Go to the source code of this file.

Data Structures

struct  XVContext
 

Macros

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

Functions

static int xv_write_header (AVFormatContext *s)
 
static int xv_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int xv_write_trailer (AVFormatContext *s)
 

Variables

static const AVOption options []
 
static const AVClass xv_class
 
AVOutputFormat ff_xv_muxer
 

Detailed Description

XVideo output device.

TODO:

Definition in file xv.c.

Macro Definition Documentation

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

Definition at line 188 of file xv.c.

Function Documentation

static int xv_write_header ( AVFormatContext s)
static

Definition at line 58 of file xv.c.

static int xv_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 143 of file xv.c.

static int xv_write_trailer ( AVFormatContext s)
static

Definition at line 177 of file xv.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{ "display_name", "set display name", OFFSET(display_name), AV_OPT_TYPE_STRING, {.str = NULL }, 0, 0, AV_OPT_FLAG_ENCODING_PARAM },
{ "window_size", "set window forced size", OFFSET(window_width), AV_OPT_TYPE_IMAGE_SIZE, {.str = NULL}, 0, 0, AV_OPT_FLAG_ENCODING_PARAM },
{ "window_title", "set window title", OFFSET(window_title), AV_OPT_TYPE_STRING, {.str = NULL }, 0, 0, AV_OPT_FLAG_ENCODING_PARAM },
{ "window_x", "set window x offset", OFFSET(window_x), AV_OPT_TYPE_INT, {.i64 = 0 }, -INT_MAX, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM },
{ "window_y", "set window y offset", OFFSET(window_y), AV_OPT_TYPE_INT, {.i64 = 0 }, -INT_MAX, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM },
{ NULL }
}
static const char * window_title
Definition: ffplay.c:286
offset must point to two consecutive integers
Definition: opt.h:230
#define OFFSET(x)
Definition: xv.c:188
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
Definition: opt.h:283

Definition at line 189 of file xv.c.

const AVClass xv_class
static
Initial value:
= {
.class_name = "xvideo outdev",
.item_name = av_default_item_name,
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: avcodec.h:820
const char * av_default_item_name(void *ctx)
Return the context name.
Definition: log.c:145
const OptionDef options[]
Definition: ffserver.c:4682

Definition at line 199 of file xv.c.

AVOutputFormat ff_xv_muxer
Initial value:
= {
.name = "xv",
.long_name = NULL_IF_CONFIG_SMALL("XV (XVideo) output device"),
.priv_data_size = sizeof(XVContext),
.audio_codec = AV_CODEC_ID_NONE,
.video_codec = AV_CODEC_ID_RAWVIDEO,
.priv_class = &xv_class,
}
static int xv_write_header(AVFormatContext *s)
Definition: xv.c:58
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:354
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:347
static const AVClass xv_class
Definition: xv.c:199
static int xv_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: xv.c:143
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:151
static int write_trailer(AVFormatContext *s1)
Definition: v4l2enc.c:93
static int xv_write_trailer(AVFormatContext *s)
Definition: xv.c:177
#define AVFMT_VARIABLE_FPS
Format allows variable fps.
Definition: avformat.h:357
Definition: xv.c:40
static int flags
Definition: cpu.c:45
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:492
static int write_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: v4l2enc.c:85

Definition at line 206 of file xv.c.