All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bdsup2sub.core.Resolution Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2014 Miklos Juhasz (mjuhasz)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package bdsup2sub.core;

public enum Resolution {
    NTSC {
        @Override
        public String toString() {
            return "NTSC (720x480)";
        }

        @Override
        public String getResolutionNameForXml() {
            return "480i";
        }

        @Override
        public int[] getDimensions() {
            return new int[] {720, 480};
        }
    },
    PAL {
        @Override
        public String toString() {
            return "PAL (720x576)";
        }

        @Override
        public String getResolutionNameForXml() {
            return "576i";
        }

        @Override
        public int[] getDimensions() {
            return new int[]{720, 576};
        }
    },
    HD_720 {
        @Override
        public String toString() {
            return "720p (1280x720)";
        }

        @Override
        public String getResolutionNameForXml() {
            return "720p";
        }

        @Override
        public int[] getDimensions() {
            return new int[]{1280, 720};
        }
    },
    HD_1440x1080 {
        @Override
        public String toString() {
            return "1080p (1440x1080)";
        }

        @Override
        public String getResolutionNameForXml() {
            return "1440x1080";
        }

        @Override
        public int[] getDimensions() {
            return new int[]{1440, 1080};
        }
    },
    HD_1080 {
        @Override
        public String toString() {
            return "1080p (1920x1080)";
        }

        @Override
        public String getResolutionNameForXml() {
            return "1080p";
        }

        @Override
        public int[] getDimensions() {
            return new int[]{1920, 1080};
        }
    };

    public abstract String getResolutionNameForXml();
    public abstract int[] getDimensions();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy