Go to the documentation of this file.
30 #define PDV_MAGIC "Playdate VID\x00\x00\x00\x00"
31 #define PDV_MAX_FRAMES UINT16_MAX
32 #define PDV_MAX_OFFSET ((1U << 30) - 1)
56 if (!rate.
num || !rate.
den)
58 if (!rate.
num || !rate.
den) {
83 if (
s->nb_streams != 1) {
105 "The -max_frames option must be set to a value in [1, %u].\n",
136 const uint32_t max_table_gap = 4
U * pdv->
max_frames;
172 if (payload_size < 0)
175 if (payload_size < 0 || payload_size >
PDV_MAX_OFFSET - table_gap)
187 const uint32_t frame_off = (pdv->
entries[
i] >> 2) + table_gap;
200 #define OFFSET(x) offsetof(PDVMuxContext, x)
201 #define ENC AV_OPT_FLAG_ENCODING_PARAM
203 {
"max_frames",
"maximum number of frames reserved in table (mandatory)",
219 .p.extensions =
"pdv",
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
AVRational avg_frame_rate
Average framerate.
#define FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
If this flag is set, then the only permitted audio/video/subtitle codec ids are AVOutputFormat....
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
void avio_wl16(AVIOContext *s, unsigned int val)
uint32_t av_q2intfloat(AVRational q)
Convert an AVRational to a IEEE 32-bit float expressed in fixed-point format.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
#define LIBAVUTIL_VERSION_INT
Describe the class of an AVClass context structure.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.
Rational number (pair of numerator and denominator).
const char * av_default_item_name(void *ptr)
Return the context name.
void ffio_fill(AVIOContext *s, int b, int64_t count)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define i(width, name, range_min, range_max)
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
void avio_wl32(AVIOContext *s, unsigned int val)
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 offset
int flags
A combination of AV_PKT_FLAG values.
static int zero(InterplayACMContext *s, unsigned ind, unsigned col)
#define av_malloc_array(a, b)
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
static av_always_inline AVRational av_inv_q(AVRational q)
Invert a rational.
static int av_cmp_q(AVRational a, AVRational b)
Compare two rationals.
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
@ AV_CLASS_CATEGORY_MUXER
#define AVIO_SEEKABLE_NORMAL
Seeking works like for a local file.
@ AV_OPT_TYPE_INT
Underlying C type is int.
IDirect3DDxgiInterfaceAccess _COM_Outptr_ void ** p
This structure stores compressed data.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.