FFmpeg
|
#include <fcntl.h>
#include <unistd.h>
#include <drm.h>
#include <drm_fourcc.h>
#include <drm_mode.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
#include "libavutil/hwcontext.h"
#include "libavutil/hwcontext_drm.h"
#include "libavutil/internal.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "libavutil/pixfmt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/time.h"
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
Go to the source code of this file.
Data Structures | |
struct | KMSGrabContext |
Macros | |
#define | DRM_FORMAT_MOD_INVALID ((1ULL << 56) - 1) |
#define | OFFSET(x) offsetof(KMSGrabContext, x) |
#define | FLAGS AV_OPT_FLAG_DECODING_PARAM |
Functions | |
static void | kmsgrab_free_desc (void *opaque, uint8_t *data) |
static void | kmsgrab_free_frame (void *opaque, uint8_t *data) |
static int | kmsgrab_get_fb (AVFormatContext *avctx, drmModePlane *plane, AVDRMFrameDescriptor *desc) |
static int | kmsgrab_read_packet (AVFormatContext *avctx, AVPacket *pkt) |
static av_cold int | kmsgrab_read_header (AVFormatContext *avctx) |
static av_cold int | kmsgrab_read_close (AVFormatContext *avctx) |
Variables | |
struct { | |
enum AVPixelFormat pixfmt | |
uint32_t drm_format | |
} | kmsgrab_formats [] |
static const AVOption | options [] |
static const AVClass | kmsgrab_class |
const AVInputFormat | ff_kmsgrab_demuxer |
#define OFFSET | ( | x | ) | offsetof(KMSGrabContext, x) |
#define FLAGS AV_OPT_FLAG_DECODING_PARAM |
|
static |
Definition at line 74 of file kmsgrab.c.
Referenced by kmsgrab_read_packet().
|
static |
Definition at line 85 of file kmsgrab.c.
Referenced by kmsgrab_read_packet().
|
static |
Definition at line 92 of file kmsgrab.c.
Referenced by kmsgrab_read_packet().
|
static |
|
static |
|
static |
enum AVPixelFormat pixfmt |
Definition at line 365 of file kmsgrab.c.
Referenced by alloc_frame(), av_vkfmt_from_pixfmt(), ff_vk_shader_rep_fmt(), fill_iplimage_from_frame(), is_native_endian(), kmsgrab_read_header(), libplacebo_query_format(), match_pixfmt(), opencl_get_plane_format(), rfc4175_parse_format(), v4l2_get_raw_format(), v4l2_try_raw_format(), vk_find_format_entry(), vkfmt_from_pixfmt2(), vt_pool_alloc(), and vulkan_frames_get_constraints().
uint32_t drm_format |
Definition at line 366 of file kmsgrab.c.
Referenced by kmsgrab_read_header().
const { ... } kmsgrab_formats[] |
Referenced by kmsgrab_read_header().
|
static |
|
static |
const AVInputFormat ff_kmsgrab_demuxer |