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/frame.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/imgutils.h"
#include "libavformat/mux.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
Value:
Definition at line 361 of file xv.c.
◆ xv_get_tag_from_format()
◆ xv_write_trailer()
◆ xv_write_header()
Definition at line 105 of file xv.c.
◆ compute_display_area()
◆ xv_repaint()
◆ write_picture()
| static int write_picture |
( |
AVFormatContext * | s, |
|
|
uint8_t * | input_data[4], |
|
|
int | linesize[4] ) |
|
static |
◆ xv_write_packet()
Definition at line 324 of file xv.c.
◆ xv_write_frame()
Definition at line 341 of file xv.c.
◆ xv_control_message()
| static int xv_control_message |
( |
AVFormatContext * | s, |
|
|
int | type, |
|
|
void * | data, |
|
|
size_t | data_size ) |
|
static |
Definition at line 350 of file xv.c.
◆ tag_codec_map
Initial value:= {
}
#define MKTAG(a, b, c, d)
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
@ AV_PIX_FMT_UYVY422
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1
@ AV_PIX_FMT_YUYV422
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
Definition at line 72 of file xv.c.
Referenced by xv_get_tag_from_format().
◆ options
Initial value:= {
}
static const char * window_title
#define AV_OPT_FLAG_ENCODING_PARAM
A generic parameter which can be set by the user for muxing or encoding.
@ AV_OPT_TYPE_IMAGE_SIZE
Underlying C type is two consecutive integers.
@ AV_OPT_TYPE_INT64
Underlying C type is int64_t.
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_OPT_TYPE_STRING
Underlying C type is a uint8_t* that is either NULL or points to a C string allocated with the av_mal...
Definition at line 362 of file xv.c.
◆ xv_class
Initial value:= {
.class_name = "xvideo outdev",
}
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
@ AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT
Definition at line 373 of file xv.c.
◆ ff_xv_muxer
Initial value:= {
.p.name = "xv",
}
static int write_packet(Muxer *mux, OutputStream *ost, AVPacket *pkt)
static void write_header(FFV1Context *f)
@ AV_CODEC_ID_WRAPPED_AVFRAME
Passthrough codec, AVFrames wrapped in AVPacket.
#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 const AVClass xv_class
static int xv_write_frame(AVFormatContext *s, int stream_index, AVFrame **frame, unsigned flags)
static int xv_write_packet(AVFormatContext *s, AVPacket *pkt)
static int xv_write_header(AVFormatContext *s)
static int xv_write_trailer(AVFormatContext *s)
static int xv_control_message(AVFormatContext *s, int type, void *data, size_t data_size)
Definition at line 381 of file xv.c.