[FFmpeg-devel] [PATCH 6/7] tools/ffprobe: add ecinfo frame side data
J. Dekker
jdek at itanimul.li
Fri Jul 21 16:37:45 EEST 2023
Signed-off-by: J. Dekker <jdek at itanimul.li>
---
fftools/ffprobe.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index a39185f6fe..9b1f04e1be 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -39,6 +39,7 @@
#include "libavutil/bprint.h"
#include "libavutil/channel_layout.h"
#include "libavutil/display.h"
+#include "libavutil/ec.h"
#include "libavutil/hash.h"
#include "libavutil/hdr_dynamic_metadata.h"
#include "libavutil/mastering_display_metadata.h"
@@ -2277,6 +2278,17 @@ static void print_ambient_viewing_environment(WriterContext *w,
print_q("ambient_light_y", env->ambient_light_y, '/');
}
+static void print_ecinfo(WriterContext *w, const AVECInfo *ecinfo)
+{
+ if (!ecinfo)
+ return;
+
+ print_int("ok", ecinfo->ok);
+ print_int("error", ecinfo->error);
+ print_int("ref_ok", ecinfo->ref_ok);
+ print_int("ref_error", ecinfo->ref_error);
+}
+
static void print_pkt_side_data(WriterContext *w,
AVCodecParameters *par,
const AVPacketSideData *side_data,
@@ -2741,6 +2753,8 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
} else if (sd->type == AV_FRAME_DATA_AMBIENT_VIEWING_ENVIRONMENT) {
print_ambient_viewing_environment(
w, (const AVAmbientViewingEnvironment *)sd->data);
+ } else if (sd->type = AV_FRAME_DATA_EC_INFO) {
+ print_ecinfo(w, (AVECInfo*)sd->data);
}
writer_print_section_footer(w);
}
--
2.41.0
More information about the ffmpeg-devel
mailing list