MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_video_encoder_get_presets

Function hb_video_encoder_get_presets

libhb/common.c:1993–2027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1991};
1992
1993const char* const* hb_video_encoder_get_presets(int encoder)
1994{
1995 if (encoder & HB_VCODEC_FFMPEG_MASK)
1996 {
1997 return hb_av_preset_get_names(encoder);
1998 }
1999
2000 switch (encoder)
2001 {
2002 case HB_VCODEC_X264_8BIT:
2003 case HB_VCODEC_X264_10BIT:
2004 return x264_preset_names;
2005
2006#if HB_PROJECT_FEATURE_X265
2007 case HB_VCODEC_X265_8BIT:
2008 case HB_VCODEC_X265_10BIT:
2009 case HB_VCODEC_X265_12BIT:
2010 case HB_VCODEC_X265_16BIT:
2011 return x265_preset_names;
2012#endif
2013#ifdef __APPLE__
2014 case HB_VCODEC_VT_H264:
2015 case HB_VCODEC_VT_H265:
2016 case HB_VCODEC_VT_H265_10BIT:
2017 return hb_vt_preset_get_names(encoder);
2018#endif
2019
2020 case HB_VCODEC_SVT_AV1:
2021 case HB_VCODEC_SVT_AV1_10BIT:
2022 return hb_av1_svt_preset_names;
2023
2024 default:
2025 return hb_empty_list_names;
2026 }
2027}
2028
2029static const char * const hb_empty_tune_names[] =
2030{

Callers 7

hb_display_job_infoFunction · 0.85
ParseOptionsFunction · 0.85
ghb_set_video_presetFunction · 0.85
vcodec_changed_cbFunction · 0.85
format_video_preset_cbFunction · 0.85
queue_update_summaryFunction · 0.85

Calls 2

hb_av_preset_get_namesFunction · 0.85
hb_vt_preset_get_namesFunction · 0.85

Tested by 1

ParseOptionsFunction · 0.68