mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
decklink: Allow VANC to be used for all modes
This commit is contained in:
parent
88f9724114
commit
ba21c2106b
3 changed files with 7 additions and 8 deletions
|
@ -256,12 +256,12 @@ gst_decklink_audio_channels_get_type (void)
|
|||
return (GType) id;
|
||||
}
|
||||
|
||||
#define NTSC 10, 11, false, "bt601", FALSE
|
||||
#define PAL 12, 11, true, "bt601", FALSE
|
||||
#define NTSC_WS 40, 33, false, "bt601", FALSE
|
||||
#define PAL_WS 16, 11, true, "bt601", FALSE
|
||||
#define HD 1, 1, true, "bt709", TRUE
|
||||
#define UHD 1, 1, true, "bt2020", TRUE
|
||||
#define NTSC 10, 11, false, "bt601"
|
||||
#define PAL 12, 11, true, "bt601"
|
||||
#define NTSC_WS 40, 33, false, "bt601"
|
||||
#define PAL_WS 16, 11, true, "bt601"
|
||||
#define HD 1, 1, true, "bt709"
|
||||
#define UHD 1, 1, true, "bt2020"
|
||||
|
||||
static const GstDecklinkMode modes[] = {
|
||||
{bmdModeNTSC, 720, 486, 30000, 1001, true, NTSC}, // default is ntsc
|
||||
|
|
|
@ -211,7 +211,6 @@ struct _GstDecklinkMode {
|
|||
int par_d;
|
||||
gboolean tff;
|
||||
const gchar *colorimetry;
|
||||
gboolean vanc;
|
||||
};
|
||||
|
||||
const GstDecklinkMode * gst_decklink_get_mode (GstDecklinkModeEnum e);
|
||||
|
|
|
@ -1158,7 +1158,7 @@ gst_decklink_video_src_create (GstPushSrc * bsrc, GstBuffer ** buffer)
|
|||
|
||||
// If we have a format that supports VANC and we are asked to extract CC,
|
||||
// then do it here.
|
||||
if (self->output_cc && mode->vanc && !self->no_signal)
|
||||
if (self->output_cc && !self->no_signal)
|
||||
extract_cc_from_vbi (self, buffer, vf, mode);
|
||||
|
||||
if (f.no_signal)
|
||||
|
|
Loading…
Reference in a new issue