summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index f6d9be0df9..3d9f795d2e 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2105,6 +2105,31 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
print_int("interlaced_frame", frame->interlaced_frame);
print_int("top_field_first", frame->top_field_first);
print_int("repeat_pict", frame->repeat_pict);
+
+ if (frame->color_range != AVCOL_RANGE_UNSPECIFIED)
+ print_str("color_range", av_color_range_name(frame->color_range));
+ else
+ print_str_opt("color_range", av_color_range_name(frame->color_range));
+
+ if (frame->colorspace != AVCOL_SPC_UNSPECIFIED)
+ print_str("color_space", av_color_space_name(frame->colorspace));
+ else
+ print_str_opt("color_space", av_color_space_name(frame->colorspace));
+
+ if (frame->color_primaries != AVCOL_PRI_UNSPECIFIED)
+ print_str("color_primaries", av_color_primaries_name(frame->color_primaries));
+ else
+ print_str_opt("color_primaries", av_color_primaries_name(frame->color_primaries));
+
+ if (frame->color_trc != AVCOL_TRC_UNSPECIFIED)
+ print_str("color_transfer", av_color_transfer_name(frame->color_trc));
+ else
+ print_str_opt("color_transfer", av_color_transfer_name(frame->color_trc));
+
+ if (frame->chroma_location != AVCHROMA_LOC_UNSPECIFIED)
+ print_str("chroma_location", av_chroma_location_name(frame->chroma_location));
+ else
+ print_str_opt("chroma_location", av_chroma_location_name(frame->chroma_location));
break;
case AVMEDIA_TYPE_AUDIO: