27 #include "libavutil/ffversion.h"
72 # ifdef pthread_mutex_lock
73 # undef pthread_mutex_lock
75 # define pthread_mutex_lock(a) do{}while(0)
76 # ifdef pthread_mutex_unlock
77 # undef pthread_mutex_unlock
79 # define pthread_mutex_unlock(a) do{}while(0)
132 #define SHOW_OPTIONAL_FIELDS_AUTO -1
133 #define SHOW_OPTIONAL_FIELDS_NEVER 0
134 #define SHOW_OPTIONAL_FIELDS_ALWAYS 1
156 #define SECTION_MAX_NB_CHILDREN 10
162 #define SECTION_FLAG_IS_WRAPPER 1
163 #define SECTION_FLAG_IS_ARRAY 2
164 #define SECTION_FLAG_HAS_VARIABLE_FIELDS 4
290 static const struct {
296 { 1.0, 1.0,
"",
"" },
297 { 1.024e3, 1e3,
"Ki",
"K" },
298 { 1.048576e6, 1e6,
"Mi",
"M" },
299 { 1.073741824e9, 1e9,
"Gi",
"G" },
300 { 1.099511627776e12, 1e12,
"Ti",
"T" },
301 { 1.125899906842624e15, 1e15,
"Pi",
"P" },
334 static int print_prefix = 1;
335 void *new_log_buffer;
346 if (new_log_buffer) {
359 for (
i=strlen(msg) - 1;
i>=0 && msg[
i] ==
'\n';
i--) {
365 if (parent && *parent) {
368 (*parent)->get_category ? (*parent)->get_category(parent) :(*parent)->category;
390 union {
double d;
long long int i; }
val;
404 vald = vali = uv.
val.
i;
411 mins = (
int)secs / 60;
412 secs = secs - mins * 60;
415 snprintf(buf, buf_size,
"%d:%02d:%09.6f", hours, mins, secs);
417 const char *prefix_string =
"";
428 index = (
long long int) (log10(vald)) / 3;
437 snprintf(buf, buf_size,
"%f", vald);
439 snprintf(buf, buf_size,
"%lld", vali);
451 #define WRITER_FLAG_DISPLAY_OPTIONAL_FIELDS 1
452 #define WRITER_FLAG_PUT_PACKETS_AND_FRAMES_IN_SAME_CHAPTER 2
477 #define SECTION_MAX_NB_LEVELS 10
519 #define OFFSET(x) offsetof(WriterContext, x)
522 {
"string_validation",
"set string validation mode",
524 {
"sv",
"set string validation mode",
529 {
"string_validation_replacement",
"set string validation replacement string",
OFFSET(string_validation_replacement),
AV_OPT_TYPE_STRING, {.str=
""}},
530 {
"svr",
"set string validation replacement string",
OFFSET(string_validation_replacement),
AV_OPT_TYPE_STRING, {.str=
"\xEF\xBF\xBD"}},
537 if (!prev &&
ctx->writer &&
ctx->writer->priv_class &&
ctx->priv)
558 if ((*wctx)->writer->uninit)
559 (*wctx)->writer->uninit(*wctx);
562 if ((*wctx)->writer->priv_class)
574 static void bprint_bytes(AVBPrint *bp,
const uint8_t *ubuf,
size_t ubuf_size)
578 for (
i = 0;
i < ubuf_size;
i++)
636 (*wctx)->writer = writer;
639 (*wctx)->nb_sections = nb_sections;
644 void *priv_ctx = (*wctx)->priv;
655 av_log(*wctx,
AV_LOG_ERROR,
"Failed to parse option string '%s' provided to writer context\n", args);
662 av_log(*wctx,
AV_LOG_ERROR,
"Failed to set option '%s' with value '%s' provided to writer context\n",
674 const uint8_t *p = (*wctx)->string_validation_replacement;
675 const uint8_t *endp = p + strlen(p);
677 const uint8_t *p0 = p;
685 "Invalid UTF8 sequence %s found in string validation replace '%s'\n",
686 bp.str, (*wctx)->string_validation_replacement);
710 if ((*wctx)->writer->init)
711 ret = (*wctx)->writer->init(*wctx);
725 int parent_section_id;
728 parent_section_id = wctx->
level ?
749 int parent_section_id = wctx->
level ?
764 const char *
key,
long long int val)
776 const uint8_t *p, *endp;
778 int invalid_chars_nb = 0,
ret = 0;
783 for (p = (uint8_t *)
src; *p;) {
786 const uint8_t *p0 = p;
793 "Invalid UTF-8 sequence %s found in string '%s'\n", bp.str,
src);
803 "Invalid UTF-8 sequence found in string '%s'\n",
src);
820 "%d invalid UTF-8 sequence(s) found in string '%s', replaced with '%s'\n",
829 #define PRINT_STRING_OPT 1
830 #define PRINT_STRING_VALIDATE 2
848 if (
ret < 0)
goto end;
850 if (
ret < 0)
goto end;
855 "Invalid key=value string combination %s=%s in section %s\n",
880 int64_t ts,
const AVRational *time_base,
int is_duration)
884 if ((!is_duration && ts ==
AV_NOPTS_VALUE) || (is_duration && ts == 0)) {
887 double d = ts *
av_q2d(*time_base);
898 if ((!is_duration && ts ==
AV_NOPTS_VALUE) || (is_duration && ts == 0)) {
916 for (
i = 0;
i < l;
i++) {
922 for (
i = 0;
i < l;
i++)
943 p = buf + strlen(buf);
950 int columns,
int bytes,
int offset_add)
960 for (
i = 0;
i < l;
i++) {
974 #define writer_w8(wctx_, b_) (wctx_)->writer_w8(wctx_, b_)
975 #define writer_put_str(wctx_, str_) (wctx_)->writer_put_str(wctx_, str_)
976 #define writer_printf(wctx_, fmt_, ...) (wctx_)->writer_printf(wctx_, fmt_, __VA_ARGS__)
978 #define MAX_REGISTERED_WRITERS_NB 64
984 static int next_registered_writer_idx = 0;
1007 #define DEFINE_WRITER_CLASS(name) \
1008 static const char *name##_get_name(void *ctx) \
1012 static const AVClass name##_class = { \
1013 .class_name = #name, \
1014 .item_name = name##_get_name, \
1015 .option = name##_options \
1028 #define OFFSET(x) offsetof(DefaultContext, x)
1031 {
"noprint_wrappers",
"do not print headers and footers",
OFFSET(noprint_wrappers),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1 },
1032 {
"nw",
"do not print headers and footers",
OFFSET(noprint_wrappers),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1 },
1044 for (
i = 0;
src[
i] &&
i < dst_size-1;
i++)
1059 if (parent_section &&
1114 .priv_class = &default_class,
1122 static const char *
c_escape_str(AVBPrint *dst,
const char *
src,
const char sep,
void *log_ctx)
1126 for (p =
src; *p; p++) {
1128 case '\b':
av_bprintf(dst,
"%s",
"\\b");
break;
1129 case '\f':
av_bprintf(dst,
"%s",
"\\f");
break;
1130 case '\n':
av_bprintf(dst,
"%s",
"\\n");
break;
1131 case '\r':
av_bprintf(dst,
"%s",
"\\r");
break;
1132 case '\\':
av_bprintf(dst,
"%s",
"\\\\");
break;
1147 char meta_chars[] = { sep,
'"',
'\n',
'\r',
'\0' };
1148 int needs_quoting = !!
src[strcspn(
src, meta_chars)];
1175 const char * (*escape_str)(AVBPrint *dst,
const char *
src,
const char sep,
void *log_ctx);
1182 #define OFFSET(x) offsetof(CompactContext, x)
1203 av_log(wctx,
AV_LOG_ERROR,
"Item separator '%s' specified, but must contain a single character\n",
1268 if (!compact->
nokey)
1280 if (!compact->
nokey)
1294 .priv_class = &compact_class,
1300 #define OFFSET(x) offsetof(CompactContext, x)
1325 .priv_class = &csv_class,
1338 #define OFFSET(x) offsetof(FlatContext, x)
1343 {
"hierarchical",
"specify if the section specification should be hierarchical",
OFFSET(hierarchical),
AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1 },
1344 {
"h",
"specify if the section specification should be hierarchical",
OFFSET(hierarchical),
AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1 },
1354 if (strlen(
flat->sep_str) != 1) {
1355 av_log(wctx,
AV_LOG_ERROR,
"Item separator '%s' specified, but must contain a single character\n",
1368 for (p =
src; *p; p++) {
1369 if (!((*p >=
'0' && *p <=
'9') ||
1370 (*p >=
'a' && *p <=
'z') ||
1371 (*p >=
'A' && *p <=
'Z')))
1383 for (p =
src; *p; p++) {
1385 case '\n':
av_bprintf(dst,
"%s",
"\\n");
break;
1386 case '\r':
av_bprintf(dst,
"%s",
"\\r");
break;
1387 case '\\':
av_bprintf(dst,
"%s",
"\\\\");
break;
1388 case '"':
av_bprintf(dst,
"%s",
"\\\"");
break;
1389 case '`':
av_bprintf(dst,
"%s",
"\\`");
break;
1390 case '$':
av_bprintf(dst,
"%s",
"\\$");
break;
1407 if (!parent_section)
1411 if (
flat->hierarchical ||
1449 .priv_class = &flat_class,
1460 #define OFFSET(x) offsetof(INIContext, x)
1463 {
"hierarchical",
"specify if the section specification should be hierarchical",
OFFSET(hierarchical),
AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1 },
1464 {
"h",
"specify if the section specification should be hierarchical",
OFFSET(hierarchical),
AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1 },
1475 while (
c =
src[
i++]) {
1477 case '\b':
av_bprintf(dst,
"%s",
"\\b");
break;
1478 case '\f':
av_bprintf(dst,
"%s",
"\\f");
break;
1479 case '\n':
av_bprintf(dst,
"%s",
"\\n");
break;
1480 case '\r':
av_bprintf(dst,
"%s",
"\\r");
break;
1481 case '\t':
av_bprintf(dst,
"%s",
"\\t");
break;
1487 if ((
unsigned char)
c < 32)
1506 if (!parent_section) {
1553 .priv_class = &ini_class,
1566 #define OFFSET(x) offsetof(JSONContext, x)
1588 static const char json_escape[] = {
'"',
'\\',
'\b',
'\f',
'\n',
'\r',
'\t', 0};
1589 static const char json_subst[] = {
'"',
'\\',
'b',
'f',
'n',
'r',
't', 0};
1592 for (p =
src; *p; p++) {
1593 char *
s = strchr(json_escape, *p);
1597 }
else if ((
unsigned char)*p < 32) {
1606 #define JSON_INDENT() writer_printf(wctx, "%*c", json->indent_level * 4, ' ')
1652 if (wctx->
level == 0) {
1670 const char *
key,
const char *
value)
1720 .priv_class = &json_class,
1734 #define OFFSET(x) offsetof(XMLContext, x)
1737 {
"fully_qualified",
"specify if the output should be fully qualified",
OFFSET(fully_qualified),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1 },
1738 {
"q",
"specify if the output should be fully qualified",
OFFSET(fully_qualified),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1 },
1739 {
"xsd_strict",
"ensure that the output is XSD compliant",
OFFSET(xsd_strict),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1 },
1752 #define CHECK_COMPLIANCE(opt, opt_name) \
1754 av_log(wctx, AV_LOG_ERROR, \
1755 "XSD-compliant output selected but option '%s' was selected, XML output may be non-compliant.\n" \
1756 "You need to disable such option with '-no%s'\n", opt_name, opt_name); \
1757 return AVERROR(EINVAL); \
1767 #define XML_INDENT() writer_printf(wctx, "%*c", xml->indent_level * 4, ' ')
1776 if (wctx->
level == 0) {
1777 const char *qual =
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
1778 "xmlns:ffprobe=\"http://www.ffmpeg.org/schema/ffprobe\" "
1779 "xsi:schemaLocation=\"http://www.ffmpeg.org/schema/ffprobe ffprobe.xsd\"";
1781 writer_put_str(wctx,
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
1814 if (wctx->
level == 0) {
1875 .priv_class = &xml_class,
1895 #define print_fmt(k, f, ...) do { \
1896 av_bprint_clear(&pbuf); \
1897 av_bprintf(&pbuf, f, __VA_ARGS__); \
1898 writer_print_string(w, k, pbuf.str, 0); \
1901 #define print_list_fmt(k, f, n, m, ...) do { \
1902 av_bprint_clear(&pbuf); \
1903 for (int idx = 0; idx < n; idx++) { \
1904 for (int idx2 = 0; idx2 < m; idx2++) { \
1905 if (idx > 0 || idx2 > 0) \
1906 av_bprint_chars(&pbuf, ' ', 1); \
1907 av_bprintf(&pbuf, f, __VA_ARGS__); \
1910 writer_print_string(w, k, pbuf.str, 0); \
1913 #define print_int(k, v) writer_print_integer(w, k, v)
1914 #define print_q(k, v, s) writer_print_rational(w, k, v, s)
1915 #define print_str(k, v) writer_print_string(w, k, v, 0)
1916 #define print_str_opt(k, v) writer_print_string(w, k, v, PRINT_STRING_OPT)
1917 #define print_str_validate(k, v) writer_print_string(w, k, v, PRINT_STRING_VALIDATE)
1918 #define print_time(k, v, tb) writer_print_time(w, k, v, tb, 0)
1919 #define print_ts(k, v) writer_print_ts(w, k, v, 0)
1920 #define print_duration_time(k, v, tb) writer_print_time(w, k, v, tb, 1)
1921 #define print_duration_ts(k, v) writer_print_ts(w, k, v, 1)
1922 #define print_val(k, v, u) do { \
1923 struct unit_value uv; \
1926 writer_print_string(w, k, value_string(val_str, sizeof(val_str), uv), 0); \
1929 #define print_section_header(s) writer_print_section_header(w, s)
1930 #define print_section_footer(s) writer_print_section_footer(w, s)
1932 #define REALLOCZ_ARRAY_STREAM(ptr, cur_n, new_n) \
1934 ret = av_reallocp_array(&(ptr), (new_n), sizeof(*(ptr))); \
1937 memset( (ptr) + (cur_n), 0, ((new_n) - (cur_n)) * sizeof(*(ptr)) ); \
1976 print_int(
"chroma_resampling_explicit_filter_flag",
1985 print_int(
"spatial_resampling_filter_flag",
1987 print_int(
"el_spatial_resampling_filter_flag",
2000 print_str(
"nlq_method_idc_name",
"none");
2003 print_str(
"nlq_method_idc_name",
"linear_dz");
2006 print_str(
"nlq_method_idc_name",
"unknown");
2015 for (
int c = 0;
c < 3;
c++) {
2028 print_str(
"mapping_idc_name",
"polynomial");
2043 print_str(
"mapping_idc_name",
"unknown");
2079 color->ycc_to_rgb_matrix[idx].num,
2080 color->ycc_to_rgb_matrix[idx].den);
2083 color->ycc_to_rgb_offset[idx].num,
2084 color->ycc_to_rgb_offset[idx].den);
2087 color->rgb_to_lms_matrix[idx].num,
2088 color->rgb_to_lms_matrix[idx].den);
2096 print_int(
"signal_full_range_flag",
color->signal_full_range_flag);
2113 print_q(
"window_upper_left_corner_x",
2115 print_q(
"window_upper_left_corner_y",
2117 print_q(
"window_lower_right_corner_x",
2119 print_q(
"window_lower_right_corner_y",
2121 print_q(
"window_upper_left_corner_x",
2123 print_q(
"window_upper_left_corner_y",
2131 print_int(
"semimajor_axis_internal_ellipse",
2133 print_int(
"semimajor_axis_external_ellipse",
2135 print_int(
"semiminor_axis_external_ellipse",
2140 print_q(
"targeted_system_display_maximum_luminance",
2143 print_int(
"num_rows_targeted_system_display_actual_peak_luminance",
2145 print_int(
"num_cols_targeted_system_display_actual_peak_luminance",
2149 print_q(
"targeted_system_display_actual_peak_luminance",
2156 for (
int i = 0;
i < 3;
i++) {
2161 print_int(
"num_distribution_maxrgb_percentiles",
2164 print_int(
"distribution_maxrgb_percentage",
2166 print_q(
"distribution_maxrgb_percentile",
2169 print_q(
"fraction_bright_pixels",
2173 print_int(
"num_rows_mastering_display_actual_peak_luminance",
2175 print_int(
"num_cols_mastering_display_actual_peak_luminance",
2179 print_q(
"mastering_display_actual_peak_luminance",
2193 print_q(
"bezier_curve_anchors",
2198 print_q(
"color_saturation_weight",
2229 print_q(
"targeted_system_display_maximum_luminance",
2242 print_int(
"base_param_Delta_enable_mode",
2293 for (
i = 0;
i < nb_side_data;
i++) {
2301 if (
isnan(rotation))
2525 const uint8_t *side_metadata;
2559 print_int (
"start_display_time",
sub->start_display_time);
2590 print_ts (
"best_effort_timestamp",
frame->best_effort_timestamp);
2592 #if LIBAVUTIL_VERSION_MAJOR < 59
2616 print_q(
"sample_aspect_ratio", sar,
':');
2621 #if LIBAVUTIL_VERSION_MAJOR < 59
2624 print_int(
"display_picture_number",
frame->display_picture_number);
2655 if (
frame->nb_side_data) {
2657 for (
i = 0;
i <
frame->nb_side_data;
i++) {
2666 if (
isnan(rotation))
2677 uint32_t *
tc = (uint32_t*)sd->
data;
2680 for (
int j = 1; j <= m ; j++) {
2748 int ret = 0, got_frame = 0;
2799 return got_frame || *packet_new;
2804 av_log(log_ctx, log_level,
"id:%d", interval->
id);
2810 av_log(log_ctx, log_level,
" start:N/A");
2816 av_log(log_ctx, log_level,
"#%"PRId64, interval->
end);
2820 av_log(log_ctx, log_level,
" end:N/A");
2823 av_log(log_ctx, log_level,
"\n");
2832 int ret = 0,
i = 0, frame_count = 0;
2833 int64_t start = -INT64_MAX, end = interval->
end;
2844 "Could not seek to relative position since current "
2845 "timestamp is not defined\n");
2849 target = *cur_ts + interval->
start;
2851 target = interval->
start;
2893 end = start + interval->
end;
2898 if (frame_count >= interval->
end)
2900 }
else if (has_end && *cur_ts !=
AV_NOPTS_VALUE && *cur_ts >= end) {
2919 for (
i = 0;
i <
ifile->nb_streams;
i++) {
2923 if (
ifile->streams[
i].dec_ctx)
2996 char profile_num[12];
3024 print_q(
"sample_aspect_ratio", sar,
':');
3029 print_q(
"display_aspect_ratio", dar,
':');
3046 print_str(
"field_order",
"progressive");
3139 #define PRINT_DISPOSITION(flagname, name) do { \
3140 print_int(name, !!(stream->disposition & AV_DISPOSITION_##flagname)); \
3187 for (
i = 0;
i <
ifile->nb_streams;
i++)
3215 for (
i = 0;
i <
program->nb_stream_indexes;
i++) {
3312 const char *print_filename)
3317 int scan_all_pmts_set = 0;
3325 scan_all_pmts_set = 1;
3332 if (print_filename) {
3337 if (scan_all_pmts_set)
3348 for (
i = 0;
i < orig_nb_streams;
i++)
3361 if (!
ifile->streams)
3375 "Failed to probe codec for input stream %d\n",
3383 "Unsupported codec with id %d for input stream %d\n",
3431 for (
i = 0;
i <
ifile->nb_streams;
i++)
3435 ifile->nb_streams = 0;
3441 const char *print_filename)
3454 #define CHECK_END if (ret < 0) goto end
3461 for (
i = 0;
i <
ifile.fmt_ctx->nb_streams;
i++) {
3464 ifile.fmt_ctx->streams[
i],
3535 print_fmt(
"copyright",
"Copyright (c) %d-%d the FFmpeg developers",
3538 print_str(
"configuration", FFMPEG_CONFIGURATION);
3544 #define SHOW_LIB_VERSION(libname, LIBNAME) \
3546 if (CONFIG_##LIBNAME) { \
3547 unsigned int version = libname##_version(); \
3548 writer_print_section_header(w, SECTION_ID_LIBRARY_VERSION); \
3549 print_str("name", "lib" #libname); \
3550 print_int("major", LIB##LIBNAME##_VERSION_MAJOR); \
3551 print_int("minor", LIB##LIBNAME##_VERSION_MINOR); \
3552 print_int("micro", LIB##LIBNAME##_VERSION_MICRO); \
3553 print_int("version", version); \
3554 print_str("ident", LIB##LIBNAME##_IDENT); \
3555 writer_print_section_footer(w); \
3573 #define PRINT_PIX_FMT_FLAG(flagname, name) \
3575 print_int(name, !!(pixdesc->flags & AV_PIX_FMT_FLAG_##flagname)); \
3670 "'%s' matches section with unique name '%s'\n", section_name,
3681 const char *p =
arg;
3689 if (!section_name) {
3691 "Missing section name for option '%s'\n", opt);
3697 while (*p && *p !=
':') {
3702 "Adding '%s' to the entries to show in section '%s'\n",
3703 entry, section_name);
3733 "Argument '%s' provided as input filename, but '%s' was already specified.\n",
3737 if (!strcmp(
arg,
"-"))
3752 "Argument '%s' provided as output filename, but '%s' was already specified.\n",
3756 if (!strcmp(
arg,
"-"))
3793 char *next, *p, *spec =
av_strdup(interval_spec);
3804 next = strchr(spec,
'%');
3846 lli = strtoll(p, &tail, 10);
3847 if (*tail || lli < 0) {
3849 "Invalid or negative value '%s' for duration number of frames\n", p);
3852 interval->
end = lli;
3874 char *p, *spec =
av_strdup(intervals_spec);
3879 for (n = 0, p = spec; *p; p++)
3893 for (
i = 0; p;
i++) {
3897 next = strchr(p,
',');
3953 "W.. = Section is a wrapper (contains other sections, no local entries)\n"
3954 ".A. = Section contains an array of elements of the same type\n"
3955 "..V = Section may contain a variable number of fields with variable keys\n"
3956 "FLAGS NAME/UNIQUE_NAME\n"
3969 #define DEFINE_OPT_SHOW_SECTION(section, target_section_id) \
3970 static int opt_show_##section(void *optctx, const char *opt, const char *arg) \
3972 mark_section_show_entries(SECTION_ID_##target_section_id, 1, NULL); \
3993 "use binary prefixes for byte units" },
3995 "use sexagesimal format HOURS:MM:SS.MICROSECONDS for time units" },
3997 "prettify the format of displayed values, make it more human readable" },
3999 "set the output printing format (available formats are: default, compact, csv, flat, ini, json, xml)",
"format" },
4002 {
"sections",
OPT_EXIT, {.func_arg =
opt_sections},
"print sections structure and section information, and exit" },
4005 {
"show_error", 0, { .func_arg = &opt_show_error },
"show probing error" },
4006 {
"show_format", 0, { .func_arg = &opt_show_format },
"show format/container info" },
4007 {
"show_frames", 0, { .func_arg = &opt_show_frames },
"show frames info" },
4009 "show a set of specified entries",
"entry_list" },
4013 {
"show_packets", 0, { .func_arg = &opt_show_packets },
"show packets info" },
4014 {
"show_programs", 0, { .func_arg = &opt_show_programs },
"show programs info" },
4015 {
"show_streams", 0, { .func_arg = &opt_show_streams },
"show streams info" },
4016 {
"show_chapters", 0, { .func_arg = &opt_show_chapters },
"show chapters info" },
4019 {
"show_program_version", 0, { .func_arg = &opt_show_program_version },
"show ffprobe version" },
4020 {
"show_library_versions", 0, { .func_arg = &opt_show_library_versions },
"show library versions" },
4021 {
"show_versions", 0, { .func_arg = &
opt_show_versions },
"show program and library versions" },
4022 {
"show_pixel_formats", 0, { .func_arg = &opt_show_pixel_formats },
"show pixel format descriptions" },
4023 {
"show_optional_fields",
HAS_ARG, { .func_arg = &