#include "libavutil/attributes.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/thread.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"
#include "config.h"
#include <dlfcn.h>
#include <avisynth/avisynth_c.h>
Go to the source code of this file.
|
static av_cold int | avisynth_load_library (AviSynthContext *avs) |
|
static av_cold int | avisynth_context_create (AVFormatContext *s) |
|
static av_cold void | avisynth_context_destroy (AviSynthContext *avs) |
|
static int | avisynth_create_stream_video (AVFormatContext *s, AVStream *st) |
|
static int | avisynth_create_stream_audio (AVFormatContext *s, AVStream *st) |
|
static int | avisynth_create_stream (AVFormatContext *s) |
|
static int | avisynth_open_file (AVFormatContext *s) |
|
static void | avisynth_next_stream (AVFormatContext *s, AVStream **st, AVPacket *pkt, int *discard) |
|
static int | avisynth_read_packet_video (AVFormatContext *s, AVPacket *pkt, int discard) |
|
static int | avisynth_read_packet_audio (AVFormatContext *s, AVPacket *pkt, int discard) |
|
static av_cold int | avisynth_read_header (AVFormatContext *s) |
|
static int | avisynth_read_packet (AVFormatContext *s, AVPacket *pkt) |
|
static av_cold int | avisynth_read_close (AVFormatContext *s) |
|
static int | avisynth_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags) |
|
◆ AVSC_NO_DECLSPEC
◆ AVISYNTH_NAME
#define AVISYNTH_NAME "libavisynth" |
◆ AVISYNTH_LIB
◆ PCM
◆ AVSC_DECLARE_FUNC
◆ LOAD_AVS_FUNC
#define LOAD_AVS_FUNC |
( |
|
name, |
|
|
|
continue_on_fail |
|
) |
| |
Value: avs->avs_library.name = (
name ## _func) \
dlsym(avs->avs_library.library, #
name); \
if (!continue_on_fail && !avs->avs_library.name) \
◆ AVISYNTH_FRAMEPROP_DEFAULT
#define AVISYNTH_FRAMEPROP_DEFAULT |
◆ OFFSET
◆ AviSynthFlags
Enumerator |
---|
AVISYNTH_FRAMEPROP_FIELD_ORDER | |
AVISYNTH_FRAMEPROP_RANGE | |
AVISYNTH_FRAMEPROP_PRIMARIES | |
AVISYNTH_FRAMEPROP_TRANSFER | |
AVISYNTH_FRAMEPROP_MATRIX | |
AVISYNTH_FRAMEPROP_CHROMA_LOCATION | |
AVISYNTH_FRAMEPROP_SAR | |
Definition at line 91 of file avisynth.c.
◆ avisynth_load_library()
◆ avisynth_context_create()
◆ avisynth_context_destroy()
◆ avisynth_create_stream_video()
◆ avisynth_create_stream_audio()
◆ avisynth_create_stream()
◆ avisynth_open_file()
◆ avisynth_next_stream()
◆ avisynth_read_packet_video()
◆ avisynth_read_packet_audio()
◆ avisynth_read_header()
◆ avisynth_read_packet()
◆ avisynth_read_close()
◆ avisynth_read_seek()
◆ avisynth_options
◆ avisynth_demuxer_class
const AVClass avisynth_demuxer_class |
|
static |
Initial value:= {
.class_name = "AviSynth demuxer",
}
Definition at line 1143 of file avisynth.c.
◆ ff_avisynth_demuxer
Initial value:= {
.p.name = "avisynth",
.p.extensions = "avs",
}
Definition at line 1150 of file avisynth.c.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
static const AVClass avisynth_demuxer_class
static int avisynth_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
static int avisynth_read_packet(AVFormatContext *s, AVPacket *pkt)
@ AVISYNTH_FRAMEPROP_MATRIX
static int read_seek(AVFormatContext *ctx, int stream_index, int64_t timestamp, int flags)
static av_cold int read_close(AVFormatContext *ctx)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static av_cold int avisynth_read_close(AVFormatContext *s)
#define LIBAVUTIL_VERSION_INT
static int read_header(FFV1Context *f)
const char * av_default_item_name(void *ptr)
Return the context name.
static av_cold int avisynth_read_header(AVFormatContext *s)
static const AVOption avisynth_options[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
@ AVISYNTH_FRAMEPROP_PRIMARIES
@ AVISYNTH_FRAMEPROP_TRANSFER
@ AVISYNTH_FRAMEPROP_CHROMA_LOCATION
#define AVISYNTH_FRAMEPROP_DEFAULT
@ AVISYNTH_FRAMEPROP_RANGE
@ AVISYNTH_FRAMEPROP_FIELD_ORDER
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
@ AV_OPT_TYPE_FLAGS
Underlying C type is unsigned int.
#define flags(name, subs,...)
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.