Beispiel #1
0
    public static void GetSizeFromVideoFormat(SdiVideoFormat video_format, ref int rWidth, ref int rHeight)
    {
        float lAspect     = 0;
        bool  lInterlaced = false;

        GetSizeFromVideoFormat(video_format, ref rWidth, ref rHeight, ref lAspect, ref lInterlaced);
    }
Beispiel #2
0
 public GLNvSdiOptions()
 {
     videoFormat               = SdiVideoFormat.HD_1080I_59_94;
     inputRingBufferSize       = 5;
     outputDual                = false;
     outputRingBufferSize      = 5;
     outputDelay               = 3.5f;
     outputHorizontalDelay     = 0;
     outputVerticalDelay       = 0;
     outputInvertFields        = false;
     inputCaptureFields        = true;
     useInputVideoAsBackground = true;
     logToFile = false;
 }
Beispiel #3
0
    public static void GetSizeFromVideoFormat(
        SdiVideoFormat video_format,
        ref int rWidth,
        ref int rHeight,
        ref float rAspect,
        ref bool rIsInterlaced)
    {
        if (video_format <= SdiVideoFormat.HD_1080I_60_00)
        {
            // HD FULL : 1920 x 1080
            rWidth  = 1920;
            rHeight = 1080;
            rAspect = 1.777778f;

            if (video_format >= SdiVideoFormat.HD_1080I_59_94)
            {
                rIsInterlaced = true;
            }
            else
            {
                rIsInterlaced = false;
            }
        }
        else if (video_format >= SdiVideoFormat.HD_720P_29_97 &&
                 video_format <= SdiVideoFormat.HD_720P_60_00)
        {
            // HD: 1280 x 720
            rWidth        = 1280;
            rHeight       = 720;
            rAspect       = 1.777778f;
            rIsInterlaced = false;
        }
        else if (video_format >= SdiVideoFormat.SD_487I_59_94)
        {
            // SD: 720 x 486
            rWidth        = 720;
            rHeight       = 487; // 486;
            rAspect       = 1.33333f;
            rIsInterlaced = true;
        }
        else
        {
            rWidth        = 0;
            rHeight       = 0;
            rAspect       = 1.0f;
            rIsInterlaced = false;
        }
    }
Beispiel #4
0
 public static extern void SdiOutputSetVideoFormat(SdiVideoFormat video_format, SdiSyncSource sync_source, float oudput_delay, int h_delay, int v_delay, bool dual_output, int flip_queue_lenght);