function [ActivePixelsPerLine,ActiveVideoLines,PixelsPerFrame] =...
    getparamfromfrm2pix(frm2pix)
%#codegen

    vFormat = frm2pix.VideoFormat;
    switch vFormat
        case 'Custom'
            ActivePixelsPerLine = frm2pix.ActivePixelsPerLine;        
            ActiveVideoLines = frm2pix.ActiveVideoLines;                
            PixelsPerFrame = frm2pix.TotalPixelsPerLine*frm2pix.TotalVideoLines;            
        case '240p'
            ActivePixelsPerLine = 320;
            ActiveVideoLines = 240;
            PixelsPerFrame = 402*324;                        
        case '480p'
            ActivePixelsPerLine = 640;
            ActiveVideoLines = 480;
            PixelsPerFrame = 800*525;
        case '480pH'
            ActivePixelsPerLine = 720;
            ActiveVideoLines = 480;
            PixelsPerFrame = 858*525;
        case '576p'
            ActivePixelsPerLine = 720;
            ActiveVideoLines = 576;
            PixelsPerFrame = 864*625;            
        case '720p'
            ActivePixelsPerLine = 1280;
            ActiveVideoLines = 720;
            PixelsPerFrame = 1650*750;            
        case '768p'
            ActivePixelsPerLine = 1024;
            ActiveVideoLines = 768;
            PixelsPerFrame = 1344*806;
        case '1024p'
            ActivePixelsPerLine = 1280;
            ActiveVideoLines = 1024;
            PixelsPerFrame = 1688*1066;
        case '1080p'
            ActivePixelsPerLine = 1920;
            ActiveVideoLines = 1080;
            PixelsPerFrame = 2200*1125;
        case '1200p'
            ActivePixelsPerLine = 1600;
            ActiveVideoLines = 1200;
            PixelsPerFrame = 2160*1250;
        case '2KCinema'
            ActivePixelsPerLine = 2048;
            ActiveVideoLines = 1080;
            PixelsPerFrame = 2750*1125;
        case '4KUHDTV'
            ActivePixelsPerLine = 3840;
            ActiveVideoLines = 2160;
            PixelsPerFrame = 4400*2250;
        otherwise %'8KUHDTV',
            ActivePixelsPerLine = 7680;
            ActiveVideoLines = 4320;
            PixelsPerFrame = 8800*4500;      
    end
    
    
