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

Function hb_subtitle_can_pass

libhb/common.c:6181–6246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6179}
6180
6181int hb_subtitle_can_pass( int source, int mux )
6182{
6183 switch (mux)
6184 {
6185 case HB_MUX_AV_MKV:
6186 switch( source )
6187 {
6188 case DVBSUB:
6189 case PGSSUB:
6190 case VOBSUB:
6191 case SSASUB:
6192 case UTF8SUB:
6193 case TX3GSUB:
6194 case CC608SUB:
6195 case CC708SUB:
6196 case IMPORTSRT:
6197 case IMPORTSSA:
6198 return 1;
6199
6200 default:
6201 return 0;
6202 } break;
6203
6204 case HB_MUX_AV_MP4:
6205 switch( source )
6206 {
6207 case VOBSUB:
6208 case SSASUB:
6209 case UTF8SUB:
6210 case TX3GSUB:
6211 case CC608SUB:
6212 case CC708SUB:
6213 case IMPORTSRT:
6214 case IMPORTSSA:
6215 return 1;
6216
6217 default:
6218 return 0;
6219 } break;
6220
6221 case HB_MUX_AV_MOV:
6222 switch( source )
6223 {
6224 case SSASUB:
6225 case UTF8SUB:
6226 case TX3GSUB:
6227 case CC608SUB:
6228 case CC708SUB:
6229 case IMPORTSRT:
6230 case IMPORTSSA:
6231 return 1;
6232
6233 default:
6234 return 0;
6235 } break;
6236
6237 // webm can't support subtitles unless they're burned.
6238 // there's ambiguity in the spec about WebVTT... TODO

Callers 9

add_subtitle_for_langFunction · 0.85
sanitize_subtitlesFunction · 0.85
hb_subtitle_must_burnFunction · 0.85
add_subFunction · 0.85
subtitle_add_to_settingsFunction · 0.85
subtitle_add_trackFunction · 0.85
ghb_subtitle_pruneFunction · 0.85

Calls 1

hb_errorFunction · 0.85

Tested by 1

add_subFunction · 0.68