[x264-devel] commit: Print profile and level information upon starting encode ( Jason Garrett-Glaser )
git version control
git at videolan.org
Fri Oct 31 16:57:51 CET 2008
x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Tue Oct 21 19:38:21 2008 -0700| [ce0b11099e5fa920b8d1bc39389ae9373f921358] | committer: Jason Garrett-Glaser
Print profile and level information upon starting encode
Previously level was only printed as part of autodetect, and only in verbose mode.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=ce0b11099e5fa920b8d1bc39389ae9373f921358
---
encoder/encoder.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/encoder/encoder.c b/encoder/encoder.c
index f1c7457..a96306d 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -527,7 +527,6 @@ static int x264_validate_parameters( x264_t *h )
while( l[1].level_idc && x264_validate_levels( h, 0 ) && l++ );
if( h->param.rc.i_vbv_buffer_size <= 0 )
h->param.rc.i_vbv_max_bitrate = 0;
- x264_log( h, X264_LOG_DEBUG, "level_idc: %d\n", h->param.i_level_idc );
}
else
{
@@ -790,6 +789,12 @@ x264_t *x264_encoder_open ( x264_param_t *param )
}
}
+ x264_log( h, X264_LOG_INFO, "profile %s, level %d.%d\n",
+ h->sps->i_profile_idc == PROFILE_BASELINE ? "Baseline" :
+ h->sps->i_profile_idc == PROFILE_MAIN ? "Main" :
+ h->sps->i_profile_idc == PROFILE_HIGH ? "High" :
+ "High 4:4:4 Predictive", h->sps->i_level_idc/10, h->sps->i_level_idc%10 );
+
return h;
}
More information about the x264-devel
mailing list