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

Function hb_video_encoder_get_from_name

libhb/common.c:3107–3124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3105}
3106
3107int hb_video_encoder_get_from_name(const char *name)
3108{
3109 if (name == NULL || *name == '\0')
3110 goto fail;
3111
3112 int i;
3113 for (i = 0; i < hb_video_encoders_count; i++)
3114 {
3115 if (!strcasecmp(hb_video_encoders[i].item.name, name) ||
3116 !strcasecmp(hb_video_encoders[i].item.short_name, name))
3117 {
3118 return hb_video_encoders[i].item.codec;
3119 }
3120 }
3121
3122fail:
3123 return HB_VCODEC_INVALID;
3124}
3125
3126const char* hb_video_encoder_get_name(int encoder)
3127{

Callers 14

hb_preset_apply_videoFunction · 0.85
preset_cleanFunction · 0.85
import_video_0_0_0Function · 0.85
hb_dict_to_jobFunction · 0.85
ParseOptionsFunction · 0.85
PreparePresetFunction · 0.85
ghb_lookup_video_encoderFunction · 0.85

Calls

no outgoing calls

Tested by 2

ParseOptionsFunction · 0.68
PreparePresetFunction · 0.68