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 "libavutil/imgutils.h"
#include "libavformat/internal.h"
#include "avdevice.h"
Go to the source code of this file.
XVideo output device.
TODO:
- add support to more formats
Definition in file xv.c.
◆ OFFSET
Definition at line 353 of file xv.c.
◆ xv_get_tag_from_format()
◆ xv_write_trailer()
◆ xv_write_header()
Definition at line 103 of file xv.c.
◆ compute_display_area()
◆ xv_repaint()
◆ write_picture()
◆ xv_write_packet()
Definition at line 322 of file xv.c.
◆ xv_write_frame()
Definition at line 333 of file xv.c.
◆ xv_control_message()
Definition at line 342 of file xv.c.
◆ tag_codec_map
Initial value:= {
}
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define MKTAG(a, b, c, d)
Definition at line 70 of file xv.c.
Referenced by xv_get_tag_from_format().
◆ options
Initial value:= {
{
"window_id",
"set existing window id",
OFFSET(window_id),
AV_OPT_TYPE_INT64, {.i64 = 0 }, 0, INT64_MAX, 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 },
}
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
static const char * window_title
offset must point to two consecutive integers
Definition at line 354 of file xv.c.
◆ xv_class
Initial value:= {
.class_name = "xvideo outdev",
}
static const AVOption options[]
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
Definition at line 365 of file xv.c.
◆ ff_xv_muxer
Initial value:= {
.name = "xv",
}
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int unqueue)
static int xv_write_header(AVFormatContext *s)
static int xv_write_frame(AVFormatContext *s, int stream_index, AVFrame **frame, unsigned flags)
static const AVClass xv_class
static int xv_write_packet(AVFormatContext *s, AVPacket *pkt)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int write_trailer(AVFormatContext *s1)
static int xv_write_trailer(AVFormatContext *s)
static int xv_control_message(AVFormatContext *s, int type, void *data, size_t data_size)
static void write_header(FFV1Context *f)
Definition at line 373 of file xv.c.