summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2014-02-13 15:18:15 +0000
committerRodeo <[email protected]>2014-02-13 15:18:15 +0000
commit1a1b1591ef5acd8495dc8e736a47852e93694020 (patch)
tree7c9cd72eff31ee912ad12fa8c6f16b7d01e40a7a /libhb/work.c
parent94d470181e290d89f3be93cd13c28f415dd00ab7 (diff)
libhb: make encoder options less x264-centric.
profile/level control and, to a lesser extent, encoder presets and tunes are becoming more common. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6031 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c77
1 files changed, 55 insertions, 22 deletions
diff --git a/libhb/work.c b/libhb/work.c
index 5739951e5..96f5016f0 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -309,37 +309,70 @@ void hb_display_job_info(hb_job_t *job)
hb_log(" + encoder: %s",
hb_video_encoder_get_long_name(job->vcodec));
- if( job->x264_preset && *job->x264_preset &&
- job->vcodec == HB_VCODEC_X264 )
+ if (job->encoder_preset && *job->encoder_preset)
{
- hb_log( " + x264 preset: %s", job->x264_preset );
- }
- if( job->x264_tune && *job->x264_tune &&
- job->vcodec == HB_VCODEC_X264 )
- {
- hb_log( " + x264 tune: %s", job->x264_tune );
- }
+ switch (job->vcodec)
+ {
+ case HB_VCODEC_X264:
+ hb_log(" + x264 preset: %s", job->encoder_preset);
+ break;
+ case HB_VCODEC_X265:
+ hb_log(" + x265 preset: %s", job->encoder_preset);
+ break;
#ifdef USE_QSV
- if ((job->qsv.preset != NULL && *job->qsv.preset) &&
- (job->vcodec & HB_VCODEC_QSV_MASK))
+ case HB_VCODEC_QSV_H264:
+ hb_log(" + QSV preset: %s", job->encoder_preset);
+ break;
+#endif
+ default:
+ break;
+ }
+ }
+ if (job->encoder_tune && *job->encoder_tune)
{
- hb_log(" + QSV preset: %s", job->qsv.preset);
+ switch (job->vcodec)
+ {
+ case HB_VCODEC_X264:
+ hb_log(" + x264 tune: %s", job->encoder_tune);
+ break;
+ case HB_VCODEC_X265:
+ hb_log(" + x265 tune: %s", job->encoder_tune);
+ break;
+ default:
+ break;
+ }
}
-#endif
- if (job->advanced_opts != NULL && *job->advanced_opts &&
- (job->vcodec != HB_VCODEC_THEORA))
+ if (job->encoder_options != NULL && *job->encoder_options &&
+ job->vcodec != HB_VCODEC_THEORA)
{
- hb_log(" + options: %s", job->advanced_opts);
+ hb_log(" + options: %s", job->encoder_options);
}
- if (job->h264_profile != NULL && *job->h264_profile &&
- (job->vcodec & HB_VCODEC_H264_MASK))
+ if (job->encoder_profile && *job->encoder_profile)
{
- hb_log(" + h264 profile: %s", job->h264_profile);
+ switch (job->vcodec)
+ {
+ case HB_VCODEC_X264:
+ case HB_VCODEC_QSV_H264:
+ hb_log(" + H.264 profile: %s", job->encoder_profile);
+ break;
+ case HB_VCODEC_X265:
+ hb_log(" + H.265 profile: %s", job->encoder_profile);
+ break;
+ default:
+ break;
+ }
}
- if (job->h264_level != NULL && *job->h264_level &&
- (job->vcodec & HB_VCODEC_H264_MASK))
+ if (job->encoder_level && *job->encoder_level)
{
- hb_log(" + h264 level: %s", job->h264_level);
+ switch (job->vcodec)
+ {
+ case HB_VCODEC_X264:
+ case HB_VCODEC_QSV_H264:
+ hb_log(" + H.264 level: %s", job->encoder_level);
+ break;
+ default:
+ break;
+ }
}
if (job->vquality >= 0)