42 for (
i = 0;
i <
s->nb_streams;
i++) {
47 avio_printf(
s->pb,
"#extradata %d: %8d, 0x%08"PRIx32
"\n",
60 }
else if (
size == 4) {
63 }
else if (
size == 2) {
74 snprintf(buf,
sizeof(buf),
"%d, %10"PRId64
", %10"PRId64
", %8"PRId64
", %8d, 0x%08"PRIx32,
78 if (
pkt->side_data_elems) {
81 for (
int i = 0;
i <
pkt->side_data_elems;
i++) {
84 uint32_t side_data_crc = 0;
101 for (
size_t j = 0; j < sd->
size / 4; j++) {
108#define BSWAP(struct, field) bswap(bswap_buf, offsetof(struct, field), sizeof(((struct){0}).field))
109#define BSWAP_RAT(struct, field) do {BSWAP(struct, field.num); BSWAP(struct, field.den);} while(0)
158 BSWAP_RAT(
AVDynamicHDRPlus, targeted_system_display_actual_peak_luminance[
i][j]);
193 av_strlcatf(buf,
sizeof(buf),
", %s, %8zu, 0x%08"PRIx32,
203 .p.name =
"framecrc",
SwsAArch64OpImplParams params
Public header for Adler-32 hash function implementation.
static double val(void *priv, double ch)
int avio_printf(AVIOContext *s, const char *fmt,...) av_printf_format(2
Writes a formatted string to the context.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
size_t av_strlcatf(char *dst, size_t size, const char *fmt,...)
static uint64_t av_const av_bswap64(uint64_t x)
#define flags(name, subs,...)
#define i(width, name, range_min, range_max)
static int framecrc_write_header(struct AVFormatContext *s)
static int framecrc_write_packet(struct AVFormatContext *s, AVPacket *pkt)
static av_unused void bswap(char *buf, int offset, int size)
int ff_framehash_write_header(AVFormatContext *s)
Set the timebase for each stream from the corresponding codec timebase and print it.
const char * av_packet_side_data_name(enum AVPacketSideDataType type)
@ AV_PKT_DATA_S12M_TIMECODE
Timecode which conforms to SMPTE ST 12-1:2014.
@ AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM
IAMF Recon Gain Info Parameter Data associated with the audio frame.
@ AV_PKT_DATA_DYNAMIC_HDR10_PLUS
HDR10+ dynamic metadata associated with a video frame.
@ AV_PKT_DATA_PRFT
Producer Reference Time data corresponding to the AVProducerReferenceTime struct, usually exported by...
@ AV_PKT_DATA_GAIN_MAP_PARAMS
Parameters describing how to combine this gain map with its base image to form an alternate rendition...
@ AV_PKT_DATA_MASTERING_DISPLAY_METADATA
Mastering display metadata (based on SMPTE-2086:2014).
@ AV_PKT_DATA_AUDIO_SERVICE_TYPE
This side data should be associated with an audio stream and corresponds to enum AVAudioServiceType.
@ AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM
IAMF Demixing Info Parameter Data associated with the audio frame.
@ AV_PKT_DATA_SPHERICAL
This side data should be associated with a video stream and corresponds to the AVSphericalMapping str...
@ AV_PKT_DATA_PALETTE
An AV_PKT_DATA_PALETTE side data packet contains exactly AVPALETTE_SIZE bytes worth of palette.
@ AV_PKT_DATA_DISPLAYMATRIX
This side data contains a 3x3 transformation matrix describing an affine transformation that needs to...
@ AV_PKT_DATA_CPB_PROPERTIES
This side data corresponds to the AVCPBProperties struct.
@ AV_PKT_DATA_STEREO3D
This side data should be associated with a video stream and contains Stereoscopic 3D information in f...
@ AV_PKT_DATA_CONTENT_LIGHT_LEVEL
Content light level (based on CTA-861.3).
@ AV_PKT_DATA_FALLBACK_TRACK
This side data contains an integer value representing the stream index of a "fallback" track.
@ AV_PKT_DATA_IAMF_MIX_GAIN_PARAM
IAMF Mix Gain Parameter Data associated with the audio frame.
@ AV_PKT_DATA_REPLAYGAIN
This side data should be associated with an audio stream and contains ReplayGain information in form ...
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
AVAdler av_adler32_update(AVAdler adler, const uint8_t *buf, size_t len)
Calculate the Adler32 checksum of a buffer.
static void bswap_buf(uint32_t *dst, const uint32_t *src, int w)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define FF_ARRAY_ELEMS(a)
This structure describes the bitrate properties of an encoded bitstream.
This struct describes the properties of an encoded stream.
int extradata_size
Size of the extradata content in bytes.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
This struct represents dynamic metadata for color volume transform - application 4 of SMPTE 2094-40:2...
Parameters describing how to combine a gain map rendition with its base rendition to recover the alte...
This structure stores auxiliary information for decoding, presenting, or otherwise processing the cod...
enum AVPacketSideDataType type
This structure stores compressed data.
This structure supplies correlation between a packet timestamp and a wall clock production time.
AVCodecParameters * codecpar
Codec parameters associated with this stream.