Package org.jnode.driver.video.vgahw

Examples of org.jnode.driver.video.vgahw.DisplayMode


     * @throws ResourceNotFreeException
     */
    final Mach64Surface open(Mach64Configuration config) throws ResourceNotFreeException {

        // Calculate new configuration
        final DisplayMode mode = config.getDisplayMode();
        final int width = mode.getWidth();
        final int height = mode.getHeight();
        final int pixels = width * height;
        final int bitsPerPixel = config.getBitsPerPixel();
        final int bytesPerLine = config.getBytesPerLine();
        final int bytesPerScreen = bytesPerLine * height;
        currentState.calcForConfiguration(config, vgaIO);
View Full Code Here


        // Get the best matching config
        config = fbinfo.getBestConfiguration(config);
        log.debug("BestConfig:" + config);

        // Calculate new configuration
        final DisplayMode mode = config.getDisplayMode();
        final int width = mode.getWidth();
        final int height = mode.getHeight();
        final int pixels = width * height;
        final int bitsPerPixel = config.getBitsPerPixel();
        final int bytesPerLine = config.getBytesPerLine();
        final int bytesPerScreen = bytesPerLine * height;
        log.debug("PLLInfo:" + fbinfo.getPllInfo());
View Full Code Here

     * @param config
     * @param io
     */
    final void calcForConfiguration(RadeonConfiguration config, PLLInfo pllInfo, RadeonVgaIO io,
            FBInfo fbinfo, CrtcRegs crtc) {
        final DisplayMode mode = config.getDisplayMode();
        @SuppressWarnings("unused")
        final int bpp = config.getBitsPerPixel();

        final int panel_xres = fbinfo.getPanelXres();
        final int panel_yres = fbinfo.getPanelYres();

        final int xres = Math.max(mode.getWidth(), panel_xres);
        final int yres = Math.max(mode.getHeight(), panel_yres);

        final float hRatio = (float) xres / (float) panel_xres;
        final float vRatio = (float) yres / (float) panel_yres;

        if ((hRatio == 1.0f) || true) {
View Full Code Here

     * @param config
     * @param io
     */
    final void calcForConfiguration(RadeonConfiguration config, PLLInfo pllInfo, RadeonVgaIO io,
            FBInfo fbinfo) {
        final DisplayMode mode = config.getDisplayMode();
        final int bpp = config.getBitsPerPixel();

        final int xres = mode.getWidth();
        final int yres = mode.getHeight();

        int hSyncStart = mode.getHsyncStart();
        int hSyncEnd = mode.getHsyncEnd();
        int hTotal = mode.getHTotal();

        int vSyncStart = mode.getVsyncStart();
        int vSyncEnd = mode.getVsyncEnd();
        int vTotal = mode.getVTotal();

        final int hsync_wid = Math.min(0x3f, Math.max(1, (hSyncEnd - hSyncStart) / 8));
        final int vsync_wid = Math.min(0x1f, Math.max(1, vSyncEnd - vSyncStart));

        final int hsync_start = mode.getHsyncStart() - 8 /* + hsync_fudge */;
        final int h_sync_pol = 0;
        final int v_sync_pol = 0;
        final int format = getFormat(bpp);

        // newmode.crtc_h_total_disp = ((((hTotal / 8) - 1) & 0x3ff) |
View Full Code Here

        final int hSyncEnd = hSyncStart + h_sync_width;
        final int vTotal = yres + vblank;
        final int vSyncStart = yres + vOver_plus;
        final int vSyncEnd = vSyncStart + vSync_width;

        return new DisplayMode(src.getFreq(), xres, hSyncStart, hSyncEnd, hTotal, yres, vSyncStart,
                vSyncEnd, vTotal);
    }
View Full Code Here

TOP

Related Classes of org.jnode.driver.video.vgahw.DisplayMode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.