53 }
else if (size == 4) {
64 snprintf(buf,
sizeof(buf),
"%d, %10"PRId64
", %10"PRId64
", %8"PRId64
", %8d, 0x%08"PRIx32,
75 uint32_t side_data_crc = 0;
91 for (
int j = 0; j < sd->
size / 4; j++) {
98 #define BSWAP(struct, field) bswap(bswap_buf, offsetof(struct, field), sizeof(((struct){0}).field)) Producer Reference Time data corresponding to the AVProducerReferenceTime struct, usually exported by...
static int framecrc_write_header(struct AVFormatContext *s)
ptrdiff_t const GLvoid * data
This side data should be associated with a video stream and contains Stereoscopic 3D information in f...
This side data contains an integer value representing the stream index of a "fallback" track...
This struct describes the properties of an encoded stream.
Mastering display metadata (based on SMPTE-2086:2014).
static int framecrc_write_packet(struct AVFormatContext *s, AVPacket *pkt)
static av_unused void bswap(char *buf, int offset, int size)
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
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
This side data contains a 3x3 transformation matrix describing an affine transformation that needs to...
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_RB32
AVStream ** streams
A list of all streams in the file.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
An AV_PKT_DATA_PALETTE side data packet contains exactly AVPALETTE_SIZE bytes worth of palette...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
enum AVPacketSideDataType type
unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, unsigned int len)
Calculate the Adler32 checksum of a buffer.
int flags
A combination of AV_PKT_FLAG values.
int extradata_size
Size of the extradata content in bytes.
unsigned int nb_streams
Number of elements in AVFormatContext.streams.
This side data should be associated with a video stream and corresponds to the AVSphericalMapping str...
int ff_framehash_write_header(AVFormatContext *s)
Set the timebase for each stream from the corresponding codec timebase and print it.
Public header for Adler-32 hash function implementation.
Content light level (based on CTA-861.3).
This structure describes the bitrate properties of an encoded bitstream.
static uint64_t av_const av_bswap64(uint64_t x)
Libavcodec external API header.
AVIOContext * pb
I/O context.
size_t av_strlcatf(char *dst, size_t size, const char *fmt,...)
#define flags(name, subs,...)
This side data should be associated with an audio stream and contains ReplayGain information in form ...
static void bswap_buf(uint32_t *dst, const uint32_t *src, int w)
Timecode which conforms to SMPTE ST 12-1:2014.
AVPacketSideData * side_data
Additional packet data that can be provided by the container.
AVOutputFormat ff_framecrc_muxer
This structure supplies correlation between a packet timestamp and a wall clock production time...
This side data corresponds to the AVCPBProperties struct.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
AVCodecParameters * codecpar
Codec parameters associated with this stream.
static double val(void *priv, double ch)
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
int avio_printf(AVIOContext *s, const char *fmt,...) av_printf_format(2
Writes a formatted string to the context.
This side data should be associated with an audio stream and corresponds to enum AVAudioServiceType.