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

Function ghb_get_copy_mask

gtk/src/audiohandler.c:295–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295int ghb_get_copy_mask(GhbValue *settings)
296{
297 gint mask = 0;
298
299 if (ghb_dict_get_bool(settings, "AudioAllowMP2Pass"))
300 {
301 mask |= HB_ACODEC_MP2_PASS;
302 }
303 if (ghb_dict_get_bool(settings, "AudioAllowMP3Pass"))
304 {
305 mask |= HB_ACODEC_MP3_PASS;
306 }
307 if (ghb_dict_get_bool(settings, "AudioAllowAACPass"))
308 {
309 mask |= HB_ACODEC_AAC_PASS;
310 }
311 if (ghb_dict_get_bool(settings, "AudioAllowAC3Pass"))
312 {
313 mask |= HB_ACODEC_AC3_PASS;
314 }
315 if (ghb_dict_get_bool(settings, "AudioAllowDTSPass"))
316 {
317 mask |= HB_ACODEC_DCA_PASS;
318 }
319 if (ghb_dict_get_bool(settings, "AudioAllowDTSHDPass"))
320 {
321 mask |= HB_ACODEC_DCA_HD_PASS;
322 }
323 if (ghb_dict_get_bool(settings, "AudioAllowEAC3Pass"))
324 {
325 mask |= HB_ACODEC_EAC3_PASS;
326 }
327 if (ghb_dict_get_bool(settings, "AudioAllowALACPass"))
328 {
329 mask |= HB_ACODEC_ALAC_PASS;
330 }
331 if (ghb_dict_get_bool(settings, "AudioAllowFLACPass"))
332 {
333 mask |= HB_ACODEC_FLAC_PASS;
334 }
335 if (ghb_dict_get_bool(settings, "AudioAllowTRUEHDPass"))
336 {
337 mask |= HB_ACODEC_TRUEHD_PASS;
338 }
339 if (ghb_dict_get_bool(settings, "AudioAllowVORBISPass"))
340 {
341 mask |= HB_ACODEC_VORBIS_PASS;
342 }
343 if (ghb_dict_get_bool(settings, "AudioAllowOPUSPass"))
344 {
345 mask |= HB_ACODEC_OPUS_PASS;
346 }
347 if (ghb_dict_get_bool(settings, "AudioAllowPCMPass"))
348 {
349 mask |= HB_ACODEC_PCM_PASS;
350 }
351 return mask;
352}

Callers 3

ghb_grey_combo_optionsFunction · 0.85

Calls 1

ghb_dict_get_boolFunction · 0.85

Tested by

no test coverage detected