FFmpeg
Macros | Functions
dump.c File Reference
#include <stdio.h>
#include <stdint.h>
#include "libavutil/avstring.h"
#include "libavutil/channel_layout.h"
#include "libavutil/display.h"
#include "libavutil/iamf.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/mastering_display_metadata.h"
#include "libavutil/ambient_viewing_environment.h"
#include "libavutil/dovi_meta.h"
#include "libavutil/mathematics.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/replaygain.h"
#include "libavutil/spherical.h"
#include "libavutil/stereo3d.h"
#include "libavutil/timecode.h"
#include "libavcodec/avcodec.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Macros

#define HEXDUMP_PRINT(...)
 

Functions

static void hex_dump_internal (void *avcl, FILE *f, int level, const uint8_t *buf, int size)
 
void av_hex_dump (FILE *f, const uint8_t *buf, int size)
 Send a nice hexadecimal dump of a buffer to the specified file stream. More...
 
void av_hex_dump_log (void *avcl, int level, const uint8_t *buf, int size)
 Send a nice hexadecimal dump of a buffer to the log. More...
 
static void pkt_dump_internal (void *avcl, FILE *f, int level, const AVPacket *pkt, int dump_payload, AVRational time_base)
 
void av_pkt_dump2 (FILE *f, const AVPacket *pkt, int dump_payload, const AVStream *st)
 Send a nice dump of a packet to the specified file stream. More...
 
void av_pkt_dump_log2 (void *avcl, int level, const AVPacket *pkt, int dump_payload, const AVStream *st)
 Send a nice dump of a packet to the log. More...
 
static void print_fps (double d, const char *postfix, int log_level)
 
static void dump_dictionary (void *ctx, const AVDictionary *m, const char *name, const char *indent, int log_level)
 
static void dump_metadata (void *ctx, const AVDictionary *m, const char *indent, int log_level)
 
static void dump_paramchange (void *ctx, const AVPacketSideData *sd, int log_level)
 
static void print_gain (void *ctx, const char *str, int32_t gain, int log_level)
 
static void print_peak (void *ctx, const char *str, uint32_t peak, int log_level)
 
static void dump_replaygain (void *ctx, const AVPacketSideData *sd, int log_level)
 
static void dump_stereo3d (void *ctx, const AVPacketSideData *sd, int log_level)
 
static void dump_audioservicetype (void *ctx, const AVPacketSideData *sd, int log_level)
 
static void dump_cpb (void *ctx, const AVPacketSideData *sd, int log_level)
 
static void dump_mastering_display_metadata (void *ctx, const AVPacketSideData *sd, int log_level)
 
static void dump_content_light_metadata (void *ctx, const AVPacketSideData *sd, int log_level)
 
static void dump_ambient_viewing_environment_metadata (void *ctx, const AVPacketSideData *sd)
 
static void dump_spherical (void *ctx, int w, int h, const AVPacketSideData *sd, int log_level)
 
static void dump_dovi_conf (void *ctx, const AVPacketSideData *sd, int log_level)
 
static void dump_s12m_timecode (void *ctx, AVRational avg_frame_rate, const AVPacketSideData *sd, int log_level)
 
static void dump_cropping (void *ctx, const AVPacketSideData *sd)
 
static void dump_sidedata (void *ctx, const AVPacketSideData *side_data, int nb_side_data, int w, int h, AVRational avg_frame_rate, const char *indent, int log_level)
 
static void dump_disposition (int disposition, int log_level)
 
static void dump_stream_format (const AVFormatContext *ic, int i, int group_index, int index, int is_output, int log_level)
 
static void dump_stream_group (const AVFormatContext *ic, uint8_t *printed, int i, int index, int is_output)
 
void av_dump_format (AVFormatContext *ic, int index, const char *url, int is_output)
 Print detailed information about the input or output format, such as duration, bitrate, streams, container, programs, metadata, side data, codec and time base. More...
 

Macro Definition Documentation

◆ HEXDUMP_PRINT

#define HEXDUMP_PRINT (   ...)
Value:
do { \
if (!f) \
av_log(avcl, level, __VA_ARGS__); \
else \
fprintf(f, __VA_ARGS__); \
} while (0)

Definition at line 47 of file dump.c.

Function Documentation

◆ hex_dump_internal()

static void hex_dump_internal ( void *  avcl,
FILE *  f,
int  level,
const uint8_t *  buf,
int  size 
)
static

Definition at line 55 of file dump.c.

Referenced by av_hex_dump(), av_hex_dump_log(), and pkt_dump_internal().

◆ pkt_dump_internal()

static void pkt_dump_internal ( void *  avcl,
FILE *  f,
int  level,
const AVPacket pkt,
int  dump_payload,
AVRational  time_base 
)
static

Definition at line 92 of file dump.c.

Referenced by av_pkt_dump2(), and av_pkt_dump_log2().

◆ print_fps()

static void print_fps ( double  d,
const char *  postfix,
int  log_level 
)
static

Definition at line 128 of file dump.c.

Referenced by dump_stream_format().

◆ dump_dictionary()

static void dump_dictionary ( void *  ctx,
const AVDictionary m,
const char *  name,
const char *  indent,
int  log_level 
)
static

Definition at line 141 of file dump.c.

Referenced by dump_metadata(), and dump_stream_group().

◆ dump_metadata()

static void dump_metadata ( void *  ctx,
const AVDictionary m,
const char *  indent,
int  log_level 
)
static

Definition at line 168 of file dump.c.

Referenced by av_dump_format(), dump_stream_format(), and dump_stream_group().

◆ dump_paramchange()

static void dump_paramchange ( void *  ctx,
const AVPacketSideData sd,
int  log_level 
)
static

Definition at line 176 of file dump.c.

Referenced by dump_sidedata().

◆ print_gain()

static void print_gain ( void *  ctx,
const char *  str,
int32_t  gain,
int  log_level 
)
static

Definition at line 215 of file dump.c.

Referenced by dump_replaygain().

◆ print_peak()

static void print_peak ( void *  ctx,
const char *  str,
uint32_t  peak,
int  log_level 
)
static

Definition at line 225 of file dump.c.

Referenced by dump_replaygain().

◆ dump_replaygain()

static void dump_replaygain ( void *  ctx,
const AVPacketSideData sd,
int  log_level 
)
static

Definition at line 235 of file dump.c.

Referenced by dump_sidedata().

◆ dump_stereo3d()

static void dump_stereo3d ( void *  ctx,
const AVPacketSideData sd,
int  log_level 
)
static

Definition at line 251 of file dump.c.

Referenced by dump_sidedata().

◆ dump_audioservicetype()

static void dump_audioservicetype ( void *  ctx,
const AVPacketSideData sd,
int  log_level 
)
static

Definition at line 277 of file dump.c.

Referenced by dump_sidedata().

◆ dump_cpb()

static void dump_cpb ( void *  ctx,
const AVPacketSideData sd,
int  log_level 
)
static

Definition at line 320 of file dump.c.

Referenced by dump_sidedata().

◆ dump_mastering_display_metadata()

static void dump_mastering_display_metadata ( void *  ctx,
const AVPacketSideData sd,
int  log_level 
)
static

Definition at line 339 of file dump.c.

Referenced by dump_sidedata().

◆ dump_content_light_metadata()

static void dump_content_light_metadata ( void *  ctx,
const AVPacketSideData sd,
int  log_level 
)
static

Definition at line 359 of file dump.c.

Referenced by dump_sidedata().

◆ dump_ambient_viewing_environment_metadata()

static void dump_ambient_viewing_environment_metadata ( void *  ctx,
const AVPacketSideData sd 
)
static

Definition at line 369 of file dump.c.

Referenced by dump_sidedata().

◆ dump_spherical()

static void dump_spherical ( void *  ctx,
int  w,
int  h,
const AVPacketSideData sd,
int  log_level 
)
static

Definition at line 380 of file dump.c.

Referenced by dump_sidedata().

◆ dump_dovi_conf()

static void dump_dovi_conf ( void *  ctx,
const AVPacketSideData sd,
int  log_level 
)
static

Definition at line 412 of file dump.c.

Referenced by dump_sidedata().

◆ dump_s12m_timecode()

static void dump_s12m_timecode ( void *  ctx,
AVRational  avg_frame_rate,
const AVPacketSideData sd,
int  log_level 
)
static

Definition at line 430 of file dump.c.

Referenced by dump_sidedata().

◆ dump_cropping()

static void dump_cropping ( void *  ctx,
const AVPacketSideData sd 
)
static

Definition at line 447 of file dump.c.

Referenced by dump_sidedata().

◆ dump_sidedata()

static void dump_sidedata ( void *  ctx,
const AVPacketSideData side_data,
int  nb_side_data,
int  w,
int  h,
AVRational  avg_frame_rate,
const char *  indent,
int  log_level 
)
static

Definition at line 464 of file dump.c.

Referenced by dump_stream_format(), and dump_stream_group().

◆ dump_disposition()

static void dump_disposition ( int  disposition,
int  log_level 
)
static

Definition at line 553 of file dump.c.

Referenced by dump_stream_format(), and dump_stream_group().

◆ dump_stream_format()

static void dump_stream_format ( const AVFormatContext ic,
int  i,
int  group_index,
int  index,
int  is_output,
int  log_level 
)
static

Definition at line 596 of file dump.c.

Referenced by av_dump_format(), and dump_stream_group().

◆ dump_stream_group()

static void dump_stream_group ( const AVFormatContext ic,
uint8_t *  printed,
int  i,
int  index,
int  is_output 
)
static

Definition at line 687 of file dump.c.

Referenced by av_dump_format().

level
uint8_t level
Definition: svq3.c:205
f
f
Definition: af_crystalizer.c:122