Libav
|
#include "config.h"
#include "libavformat/avformat.h"
#include "libavcodec/avcodec.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/dict.h"
#include "libavutil/libm.h"
#include "libavdevice/avdevice.h"
#include "cmdutils.h"
#include "cmdutils_common_opts.h"
Go to the source code of this file.
Data Structures | |
struct | PrintElement |
struct | PrintContext |
Macros | |
#define | AVP_INDENT() avio_printf(probe_out, "%*c", octx.level * 2, ' ') |
#define | AVP_BUFFSIZE 4096 |
Enumerations | |
enum | PrintElementType { ARRAY, OBJECT } |
Functions | |
static void | avprobe_cleanup (int ret) |
static void | ini_print_header (void) |
static void | ini_print_footer (void) |
static void | ini_escape_print (const char *s) |
static void | ini_print_array_header (const char *name) |
static void | ini_print_object_header (const char *name) |
static void | ini_print_integer (const char *key, int64_t value) |
static void | ini_print_string (const char *key, const char *value) |
static void | json_print_header (void) |
static void | json_print_footer (void) |
static void | json_print_array_header (const char *name) |
static void | json_print_array_footer (const char *name) |
static void | json_print_object_header (const char *name) |
static void | json_print_object_footer (const char *name) |
static void | json_print_integer (const char *key, int64_t value) |
static void | json_escape_print (const char *s) |
static void | json_print_string (const char *key, const char *value) |
static void | old_print_object_header (const char *name) |
static void | old_print_object_footer (const char *name) |
static void | old_print_string (const char *key, const char *value) |
static void | show_format_entry_integer (const char *key, int64_t value) |
static void | show_format_entry_string (const char *key, const char *value) |
static void | probe_group_enter (const char *name, int type) |
static void | probe_group_leave (void) |
static void | probe_header (void) |
static void | probe_footer (void) |
static void | probe_array_header (const char *name) |
static void | probe_array_footer (const char *name) |
static void | probe_object_header (const char *name) |
static void | probe_object_footer (const char *name) |
static void | probe_int (const char *key, int64_t value) |
static void | probe_str (const char *key, const char *value) |
static void | probe_dict (AVDictionary *dict, const char *name) |
static char * | value_string (char *buf, int buf_size, double val, const char *unit) |
static char * | time_value_string (char *buf, int buf_size, int64_t val, const AVRational *time_base) |
static char * | ts_value_string (char *buf, int buf_size, int64_t ts) |
static char * | rational_string (char *buf, int buf_size, const char *sep, const AVRational *rat) |
static char * | tag_string (char *buf, int buf_size, int tag) |
static void | show_packet (AVFormatContext *fmt_ctx, AVPacket *pkt) |
static void | show_packets (AVFormatContext *fmt_ctx) |
static void | show_stream (AVFormatContext *fmt_ctx, int stream_idx) |
static void | show_format (AVFormatContext *fmt_ctx) |
static int | open_input_file (AVFormatContext **fmt_ctx_ptr, const char *filename) |
static void | close_input_file (AVFormatContext **ctx_ptr) |
static int | probe_file (const char *filename) |
static void | show_usage (void) |
static int | opt_format (void *optctx, const char *opt, const char *arg) |
static int | opt_output_format (void *optctx, const char *opt, const char *arg) |
static int | opt_show_format_entry (void *optctx, const char *opt, const char *arg) |
static void | opt_input_file (void *optctx, const char *arg) |
void | show_help_default (const char *opt, const char *arg) |
Per-avtool specific help handler. More... | |
static int | opt_pretty (void *optctx, const char *opt, const char *arg) |
static int | probe_buf_write (void *opaque, uint8_t *buf, int buf_size) |
int | main (int argc, char **argv) |
Variables | |
const char | program_name [] = "avprobe" |
program name, defined by the program for show_version(). More... | |
const int | program_birth_year = 2007 |
program birth year, defined by the program for show_banner() More... | |
static int | do_show_format = 0 |
static AVDictionary * | fmt_entries_to_show = NULL |
static int | nb_fmt_entries_to_show |
static int | do_show_packets = 0 |
static int | do_show_streams = 0 |
static int | show_value_unit = 0 |
static int | use_value_prefix = 0 |
static int | use_byte_value_binary_prefix = 0 |
static int | use_value_sexagesimal_format = 0 |
static const OptionDef * | options |
static const char * | input_filename |
static AVInputFormat * | iformat = NULL |
static const char *const | binary_unit_prefixes [] = { "", "Ki", "Mi", "Gi", "Ti", "Pi" } |
static const char *const | decimal_unit_prefixes [] = { "", "K" , "M" , "G" , "T" , "P" } |
static const char | unit_second_str [] = "s" |
static const char | unit_hertz_str [] = "Hz" |
static const char | unit_byte_str [] = "byte" |
static const char | unit_bit_per_second_str [] = "bit/s" |
static AVIOContext * | probe_out = NULL |
static PrintContext | octx |
static const OptionDef | real_options [] |
#define AVP_INDENT | ( | ) | avio_printf(probe_out, "%*c", octx.level * 2, ' ') |
Definition at line 111 of file avprobe.c.
Referenced by json_print_array_footer(), json_print_array_header(), json_print_integer(), json_print_object_footer(), json_print_object_header(), and json_print_string().
enum PrintElementType |
|
static |
Definition at line 125 of file avprobe.c.
Referenced by main(), and opt_output_format().
Definition at line 129 of file avprobe.c.
Referenced by main(), and opt_output_format().
|
static |
Definition at line 134 of file avprobe.c.
Referenced by ini_print_integer(), and ini_print_string().
|
static |
Definition at line 160 of file avprobe.c.
Referenced by main(), and opt_output_format().
|
static |
Definition at line 166 of file avprobe.c.
Referenced by main(), and opt_output_format().
|
static |
Definition at line 189 of file avprobe.c.
Referenced by main(), and opt_output_format().
|
static |
Definition at line 196 of file avprobe.c.
Referenced by main(), old_print_string(), and opt_output_format().
Definition at line 208 of file avprobe.c.
Referenced by opt_output_format().
Definition at line 212 of file avprobe.c.
Referenced by opt_output_format().
|
static |
Definition at line 217 of file avprobe.c.
Referenced by opt_output_format().
|
static |
Definition at line 226 of file avprobe.c.
Referenced by opt_output_format().
|
static |
Definition at line 233 of file avprobe.c.
Referenced by opt_output_format().
|
static |
Definition at line 243 of file avprobe.c.
Referenced by opt_output_format().
|
static |
Definition at line 250 of file avprobe.c.
Referenced by opt_output_format().
|
static |
Definition at line 258 of file avprobe.c.
Referenced by json_print_string().
|
static |
Definition at line 282 of file avprobe.c.
Referenced by opt_output_format().
|
static |
Definition at line 297 of file avprobe.c.
Referenced by opt_output_format().
|
static |
Definition at line 314 of file avprobe.c.
Referenced by opt_output_format().
|
static |
Definition at line 331 of file avprobe.c.
Referenced by opt_output_format().
|
static |
Definition at line 342 of file avprobe.c.
Referenced by opt_show_format_entry().
|
static |
Definition at line 351 of file avprobe.c.
Referenced by opt_show_format_entry().
|
static |
Definition at line 360 of file avprobe.c.
Referenced by probe_array_header(), probe_header(), and probe_object_header().
Definition at line 382 of file avprobe.c.
Referenced by probe_array_footer(), probe_footer(), and probe_object_footer().
|
static |
Definition at line 402 of file avprobe.c.
Referenced by probe_file(), and show_packets().
|
static |
Definition at line 410 of file avprobe.c.
Referenced by probe_file(), and show_packets().
|
static |
Definition at line 417 of file avprobe.c.
Referenced by probe_dict(), show_format(), show_packet(), and show_stream().
|
static |
Definition at line 425 of file avprobe.c.
Referenced by probe_dict(), show_format(), show_packet(), and show_stream().
|
static |
Definition at line 432 of file avprobe.c.
Referenced by show_format(), show_packet(), and show_stream().
|
static |
Definition at line 438 of file avprobe.c.
Referenced by probe_dict(), show_format(), show_packet(), and show_stream().
|
static |
Definition at line 444 of file avprobe.c.
Referenced by show_format(), and show_stream().
|
static |
Definition at line 456 of file avprobe.c.
Referenced by show_format(), show_packet(), show_stream(), and time_value_string().
|
static |
Definition at line 493 of file avprobe.c.
Referenced by show_format(), show_packet(), and show_stream().
|
static |
Definition at line 505 of file avprobe.c.
Referenced by show_packet().
|
static |
Definition at line 516 of file avprobe.c.
Referenced by show_stream().
|
static |
Definition at line 523 of file avprobe.c.
Referenced by show_stream().
|
static |
Definition at line 529 of file avprobe.c.
Referenced by show_packets().
|
static |
Definition at line 555 of file avprobe.c.
Referenced by probe_file().
|
static |
Definition at line 566 of file avprobe.c.
Referenced by probe_file().
|
static |
Definition at line 668 of file avprobe.c.
Referenced by probe_file().
|
static |
Definition at line 697 of file avprobe.c.
Referenced by probe_file().
|
static |
Definition at line 744 of file avprobe.c.
Referenced by probe_file().
|
static |
Definition at line 783 of file avprobe.c.
Referenced by main(), and show_help_default().
|
static |
|
static |
|
static |
void show_help_default | ( | const char * | opt, |
const char * | arg | ||
) |
Per-avtool specific help handler.
Implemented in each avtool, called by show_help().
|
static |
const char program_name[] = "avprobe" |
program name, defined by the program for show_version().
Definition at line 34 of file avprobe.c.
Referenced by main(), and show_usage().
const int program_birth_year = 2007 |
program birth year, defined by the program for show_banner()
|
static |
Definition at line 37 of file avprobe.c.
Referenced by opt_show_format_entry(), and probe_file().
|
static |
|
static |
Definition at line 39 of file avprobe.c.
Referenced by opt_show_format_entry(), show_format_entry_integer(), and show_format_entry_string().
|
static |
Definition at line 40 of file avprobe.c.
Referenced by probe_file().
|
static |
Definition at line 41 of file avprobe.c.
Referenced by probe_file().
|
static |
Definition at line 43 of file avprobe.c.
Referenced by opt_pretty(), and value_string().
|
static |
Definition at line 44 of file avprobe.c.
Referenced by opt_pretty(), and value_string().
|
static |
Definition at line 45 of file avprobe.c.
Referenced by opt_pretty(), and value_string().
|
static |
Definition at line 46 of file avprobe.c.
Referenced by opt_pretty(), and value_string().
|
static |
Definition at line 52 of file avprobe.c.
Referenced by main(), and opt_input_file().
|
static |
Definition at line 53 of file avprobe.c.
Referenced by movie_init(), and stream_open().
|
static |
Definition at line 55 of file avprobe.c.
Referenced by value_string().
Definition at line 56 of file avprobe.c.
Referenced by value_string().
|
static |
Definition at line 58 of file avprobe.c.
Referenced by time_value_string(), and value_string().
|
static |
Definition at line 59 of file avprobe.c.
Referenced by show_stream().
|
static |
Definition at line 60 of file avprobe.c.
Referenced by show_format(), show_packet(), and value_string().
|
static |
Definition at line 61 of file avprobe.c.
Referenced by show_format(), and show_stream().
|
static |
|
static |
Definition at line 110 of file avprobe.c.
Referenced by avconv_parse_options().