#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
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
◆ options
Initial value:
Definition at line 362 of file xv.c.
◆ xv_class
Initial value:= {
.class_name = "xvideo outdev",
}
Definition at line 373 of file xv.c.
◆ ff_xv_muxer
Initial value:
Definition at line 381 of file xv.c.
static int xv_control_message(AVFormatContext *s, int type, void *data, size_t data_size)
static const AVOption options[]
static int xv_write_packet(AVFormatContext *s, AVPacket *pkt)
@ AV_OPT_TYPE_INT64
Underlying C type is int64_t.
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
@ AV_CODEC_ID_WRAPPED_AVFRAME
Passthrough codec, AVFrames wrapped in AVPacket.
static const char * window_title
static int xv_write_frame(AVFormatContext *s, int stream_index, AVFrame **frame, unsigned flags)
#define LIBAVUTIL_VERSION_INT
static int write_trailer(AVFormatContext *s1)
@ AV_PIX_FMT_YUYV422
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
@ AV_OPT_TYPE_IMAGE_SIZE
Underlying C type is two consecutive integers.
const char * av_default_item_name(void *ptr)
Return the context name.
@ AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT
#define AV_OPT_FLAG_ENCODING_PARAM
A generic parameter which can be set by the user for muxing or encoding.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int xv_write_trailer(AVFormatContext *s)
static int write_packet(Muxer *mux, OutputStream *ost, AVPacket *pkt)
static const AVClass xv_class
@ AV_PIX_FMT_UYVY422
packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1
@ AV_OPT_TYPE_INT
Underlying C type is int.
#define MKTAG(a, b, c, d)
@ 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...
static void write_header(FFV1Context *f)
static int xv_write_header(AVFormatContext *s)