You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
fftools/ffprobe: Fix indentation
Forgotten after d76b0c4a35
.
Reviewed-by: softworkz . <softworkz-at-hotmail.com@ffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -966,98 +966,98 @@ static void print_pkt_side_data(AVTextFormatContext *tfc,
|
|||||||
const AVPacketSideData *sd,
|
const AVPacketSideData *sd,
|
||||||
SectionID id_data)
|
SectionID id_data)
|
||||||
{
|
{
|
||||||
const char *name = av_packet_side_data_name(sd->type);
|
const char *name = av_packet_side_data_name(sd->type);
|
||||||
|
|
||||||
avtext_print_section_header(tfc, sd, id_data);
|
avtext_print_section_header(tfc, sd, id_data);
|
||||||
print_str("side_data_type", name ? name : "unknown");
|
print_str("side_data_type", name ? name : "unknown");
|
||||||
if (sd->type == AV_PKT_DATA_DISPLAYMATRIX && sd->size >= 9*4) {
|
if (sd->type == AV_PKT_DATA_DISPLAYMATRIX && sd->size >= 9*4) {
|
||||||
print_displaymatrix(tfc, (const int32_t*)sd->data);
|
print_displaymatrix(tfc, (const int32_t*)sd->data);
|
||||||
} else if (sd->type == AV_PKT_DATA_STEREO3D) {
|
} else if (sd->type == AV_PKT_DATA_STEREO3D) {
|
||||||
const AVStereo3D *stereo = (AVStereo3D *)sd->data;
|
const AVStereo3D *stereo = (AVStereo3D *)sd->data;
|
||||||
print_str("type", av_stereo3d_type_name(stereo->type));
|
print_str("type", av_stereo3d_type_name(stereo->type));
|
||||||
print_int("inverted", !!(stereo->flags & AV_STEREO3D_FLAG_INVERT));
|
print_int("inverted", !!(stereo->flags & AV_STEREO3D_FLAG_INVERT));
|
||||||
print_str("view", av_stereo3d_view_name(stereo->view));
|
print_str("view", av_stereo3d_view_name(stereo->view));
|
||||||
print_str("primary_eye", av_stereo3d_primary_eye_name(stereo->primary_eye));
|
print_str("primary_eye", av_stereo3d_primary_eye_name(stereo->primary_eye));
|
||||||
print_int("baseline", stereo->baseline);
|
print_int("baseline", stereo->baseline);
|
||||||
print_q("horizontal_disparity_adjustment", stereo->horizontal_disparity_adjustment, '/');
|
print_q("horizontal_disparity_adjustment", stereo->horizontal_disparity_adjustment, '/');
|
||||||
print_q("horizontal_field_of_view", stereo->horizontal_field_of_view, '/');
|
print_q("horizontal_field_of_view", stereo->horizontal_field_of_view, '/');
|
||||||
} else if (sd->type == AV_PKT_DATA_SPHERICAL) {
|
} else if (sd->type == AV_PKT_DATA_SPHERICAL) {
|
||||||
const AVSphericalMapping *spherical = (AVSphericalMapping *)sd->data;
|
const AVSphericalMapping *spherical = (AVSphericalMapping *)sd->data;
|
||||||
print_str("projection", av_spherical_projection_name(spherical->projection));
|
print_str("projection", av_spherical_projection_name(spherical->projection));
|
||||||
if (spherical->projection == AV_SPHERICAL_CUBEMAP) {
|
if (spherical->projection == AV_SPHERICAL_CUBEMAP) {
|
||||||
print_int("padding", spherical->padding);
|
print_int("padding", spherical->padding);
|
||||||
} else if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR_TILE) {
|
} else if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR_TILE) {
|
||||||
size_t l, t, r, b;
|
size_t l, t, r, b;
|
||||||
av_spherical_tile_bounds(spherical, par->width, par->height,
|
av_spherical_tile_bounds(spherical, par->width, par->height,
|
||||||
&l, &t, &r, &b);
|
&l, &t, &r, &b);
|
||||||
print_int("bound_left", l);
|
print_int("bound_left", l);
|
||||||
print_int("bound_top", t);
|
print_int("bound_top", t);
|
||||||
print_int("bound_right", r);
|
print_int("bound_right", r);
|
||||||
print_int("bound_bottom", b);
|
print_int("bound_bottom", b);
|
||||||
}
|
|
||||||
|
|
||||||
print_int("yaw", (double) spherical->yaw / (1 << 16));
|
|
||||||
print_int("pitch", (double) spherical->pitch / (1 << 16));
|
|
||||||
print_int("roll", (double) spherical->roll / (1 << 16));
|
|
||||||
} else if (sd->type == AV_PKT_DATA_SKIP_SAMPLES && sd->size == 10) {
|
|
||||||
print_int("skip_samples", AV_RL32(sd->data));
|
|
||||||
print_int("discard_padding", AV_RL32(sd->data + 4));
|
|
||||||
print_int("skip_reason", AV_RL8(sd->data + 8));
|
|
||||||
print_int("discard_reason", AV_RL8(sd->data + 9));
|
|
||||||
} else if (sd->type == AV_PKT_DATA_MASTERING_DISPLAY_METADATA) {
|
|
||||||
print_mastering_display_metadata(tfc, (AVMasteringDisplayMetadata *)sd->data);
|
|
||||||
} else if (sd->type == AV_PKT_DATA_CONTENT_LIGHT_LEVEL) {
|
|
||||||
print_context_light_level(tfc, (AVContentLightMetadata *)sd->data);
|
|
||||||
} else if (sd->type == AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT) {
|
|
||||||
print_ambient_viewing_environment(
|
|
||||||
tfc, (const AVAmbientViewingEnvironment *)sd->data);
|
|
||||||
} else if (sd->type == AV_PKT_DATA_DYNAMIC_HDR10_PLUS) {
|
|
||||||
AVDynamicHDRPlus *metadata = (AVDynamicHDRPlus *)sd->data;
|
|
||||||
print_dynamic_hdr10_plus(tfc, metadata);
|
|
||||||
} else if (sd->type == AV_PKT_DATA_DOVI_CONF) {
|
|
||||||
AVDOVIDecoderConfigurationRecord *dovi = (AVDOVIDecoderConfigurationRecord *)sd->data;
|
|
||||||
const char *comp = "unknown";
|
|
||||||
print_int("dv_version_major", dovi->dv_version_major);
|
|
||||||
print_int("dv_version_minor", dovi->dv_version_minor);
|
|
||||||
print_int("dv_profile", dovi->dv_profile);
|
|
||||||
print_int("dv_level", dovi->dv_level);
|
|
||||||
print_int("rpu_present_flag", dovi->rpu_present_flag);
|
|
||||||
print_int("el_present_flag", dovi->el_present_flag);
|
|
||||||
print_int("bl_present_flag", dovi->bl_present_flag);
|
|
||||||
print_int("dv_bl_signal_compatibility_id", dovi->dv_bl_signal_compatibility_id);
|
|
||||||
switch (dovi->dv_md_compression)
|
|
||||||
{
|
|
||||||
case AV_DOVI_COMPRESSION_NONE: comp = "none"; break;
|
|
||||||
case AV_DOVI_COMPRESSION_LIMITED: comp = "limited"; break;
|
|
||||||
case AV_DOVI_COMPRESSION_RESERVED: comp = "reserved"; break;
|
|
||||||
case AV_DOVI_COMPRESSION_EXTENDED: comp = "extended"; break;
|
|
||||||
}
|
|
||||||
print_str("dv_md_compression", comp);
|
|
||||||
} else if (sd->type == AV_PKT_DATA_AUDIO_SERVICE_TYPE) {
|
|
||||||
enum AVAudioServiceType *t = (enum AVAudioServiceType *)sd->data;
|
|
||||||
print_int("service_type", *t);
|
|
||||||
} else if (sd->type == AV_PKT_DATA_MPEGTS_STREAM_ID) {
|
|
||||||
print_int("id", *sd->data);
|
|
||||||
} else if (sd->type == AV_PKT_DATA_CPB_PROPERTIES) {
|
|
||||||
const AVCPBProperties *prop = (AVCPBProperties *)sd->data;
|
|
||||||
print_int("max_bitrate", prop->max_bitrate);
|
|
||||||
print_int("min_bitrate", prop->min_bitrate);
|
|
||||||
print_int("avg_bitrate", prop->avg_bitrate);
|
|
||||||
print_int("buffer_size", prop->buffer_size);
|
|
||||||
print_int("vbv_delay", prop->vbv_delay);
|
|
||||||
} else if (sd->type == AV_PKT_DATA_WEBVTT_IDENTIFIER ||
|
|
||||||
sd->type == AV_PKT_DATA_WEBVTT_SETTINGS) {
|
|
||||||
if (do_show_data)
|
|
||||||
avtext_print_data(tfc, "data", sd->data, sd->size);
|
|
||||||
avtext_print_data_hash(tfc, "data_hash", sd->data, sd->size);
|
|
||||||
} else if (sd->type == AV_PKT_DATA_FRAME_CROPPING && sd->size >= sizeof(uint32_t) * 4) {
|
|
||||||
print_int("crop_top", AV_RL32(sd->data));
|
|
||||||
print_int("crop_bottom", AV_RL32(sd->data + 4));
|
|
||||||
print_int("crop_left", AV_RL32(sd->data + 8));
|
|
||||||
print_int("crop_right", AV_RL32(sd->data + 12));
|
|
||||||
} else if (sd->type == AV_PKT_DATA_AFD && sd->size > 0) {
|
|
||||||
print_int("active_format", *sd->data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print_int("yaw", (double) spherical->yaw / (1 << 16));
|
||||||
|
print_int("pitch", (double) spherical->pitch / (1 << 16));
|
||||||
|
print_int("roll", (double) spherical->roll / (1 << 16));
|
||||||
|
} else if (sd->type == AV_PKT_DATA_SKIP_SAMPLES && sd->size == 10) {
|
||||||
|
print_int("skip_samples", AV_RL32(sd->data));
|
||||||
|
print_int("discard_padding", AV_RL32(sd->data + 4));
|
||||||
|
print_int("skip_reason", AV_RL8(sd->data + 8));
|
||||||
|
print_int("discard_reason", AV_RL8(sd->data + 9));
|
||||||
|
} else if (sd->type == AV_PKT_DATA_MASTERING_DISPLAY_METADATA) {
|
||||||
|
print_mastering_display_metadata(tfc, (AVMasteringDisplayMetadata *)sd->data);
|
||||||
|
} else if (sd->type == AV_PKT_DATA_CONTENT_LIGHT_LEVEL) {
|
||||||
|
print_context_light_level(tfc, (AVContentLightMetadata *)sd->data);
|
||||||
|
} else if (sd->type == AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT) {
|
||||||
|
print_ambient_viewing_environment(
|
||||||
|
tfc, (const AVAmbientViewingEnvironment *)sd->data);
|
||||||
|
} else if (sd->type == AV_PKT_DATA_DYNAMIC_HDR10_PLUS) {
|
||||||
|
AVDynamicHDRPlus *metadata = (AVDynamicHDRPlus *)sd->data;
|
||||||
|
print_dynamic_hdr10_plus(tfc, metadata);
|
||||||
|
} else if (sd->type == AV_PKT_DATA_DOVI_CONF) {
|
||||||
|
AVDOVIDecoderConfigurationRecord *dovi = (AVDOVIDecoderConfigurationRecord *)sd->data;
|
||||||
|
const char *comp = "unknown";
|
||||||
|
print_int("dv_version_major", dovi->dv_version_major);
|
||||||
|
print_int("dv_version_minor", dovi->dv_version_minor);
|
||||||
|
print_int("dv_profile", dovi->dv_profile);
|
||||||
|
print_int("dv_level", dovi->dv_level);
|
||||||
|
print_int("rpu_present_flag", dovi->rpu_present_flag);
|
||||||
|
print_int("el_present_flag", dovi->el_present_flag);
|
||||||
|
print_int("bl_present_flag", dovi->bl_present_flag);
|
||||||
|
print_int("dv_bl_signal_compatibility_id", dovi->dv_bl_signal_compatibility_id);
|
||||||
|
switch (dovi->dv_md_compression)
|
||||||
|
{
|
||||||
|
case AV_DOVI_COMPRESSION_NONE: comp = "none"; break;
|
||||||
|
case AV_DOVI_COMPRESSION_LIMITED: comp = "limited"; break;
|
||||||
|
case AV_DOVI_COMPRESSION_RESERVED: comp = "reserved"; break;
|
||||||
|
case AV_DOVI_COMPRESSION_EXTENDED: comp = "extended"; break;
|
||||||
|
}
|
||||||
|
print_str("dv_md_compression", comp);
|
||||||
|
} else if (sd->type == AV_PKT_DATA_AUDIO_SERVICE_TYPE) {
|
||||||
|
enum AVAudioServiceType *t = (enum AVAudioServiceType *)sd->data;
|
||||||
|
print_int("service_type", *t);
|
||||||
|
} else if (sd->type == AV_PKT_DATA_MPEGTS_STREAM_ID) {
|
||||||
|
print_int("id", *sd->data);
|
||||||
|
} else if (sd->type == AV_PKT_DATA_CPB_PROPERTIES) {
|
||||||
|
const AVCPBProperties *prop = (AVCPBProperties *)sd->data;
|
||||||
|
print_int("max_bitrate", prop->max_bitrate);
|
||||||
|
print_int("min_bitrate", prop->min_bitrate);
|
||||||
|
print_int("avg_bitrate", prop->avg_bitrate);
|
||||||
|
print_int("buffer_size", prop->buffer_size);
|
||||||
|
print_int("vbv_delay", prop->vbv_delay);
|
||||||
|
} else if (sd->type == AV_PKT_DATA_WEBVTT_IDENTIFIER ||
|
||||||
|
sd->type == AV_PKT_DATA_WEBVTT_SETTINGS) {
|
||||||
|
if (do_show_data)
|
||||||
|
avtext_print_data(tfc, "data", sd->data, sd->size);
|
||||||
|
avtext_print_data_hash(tfc, "data_hash", sd->data, sd->size);
|
||||||
|
} else if (sd->type == AV_PKT_DATA_FRAME_CROPPING && sd->size >= sizeof(uint32_t) * 4) {
|
||||||
|
print_int("crop_top", AV_RL32(sd->data));
|
||||||
|
print_int("crop_bottom", AV_RL32(sd->data + 4));
|
||||||
|
print_int("crop_left", AV_RL32(sd->data + 8));
|
||||||
|
print_int("crop_right", AV_RL32(sd->data + 12));
|
||||||
|
} else if (sd->type == AV_PKT_DATA_AFD && sd->size > 0) {
|
||||||
|
print_int("active_format", *sd->data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void print_private_data(AVTextFormatContext *tfc, void *priv_data)
|
static void print_private_data(AVTextFormatContext *tfc, void *priv_data)
|
||||||
|
Reference in New Issue
Block a user