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

Function add_subtitle

libhb/preset.c:1088–1102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086}
1087
1088static void add_subtitle(hb_value_array_t *list, int track,
1089 int make_default, int force, int burn,
1090 const char * name)
1091{
1092 hb_dict_t *subtitle_dict = hb_dict_init();
1093 hb_dict_set_int(subtitle_dict, "Track", track);
1094 hb_dict_set_bool(subtitle_dict, "Default", make_default);
1095 hb_dict_set_bool(subtitle_dict, "Forced", force);
1096 hb_dict_set_bool(subtitle_dict, "Burn", burn);
1097 if (name != NULL && name[0] != 0)
1098 {
1099 hb_dict_set_string(subtitle_dict, "Name", name);
1100 }
1101 hb_value_array_append(list, subtitle_dict);
1102}
1103
1104typedef struct subtitle_behavior_s
1105{

Callers 2

add_subtitle_for_langFunction · 0.70

Calls 2

hb_dict_initFunction · 0.85
hb_value_array_appendFunction · 0.85

Tested by

no test coverage detected