package com.ss.android.ugc.aweme.feed.model.live;

import com.bytedance.android.livesdk.livesetting.broadcast.LiveBroadcastUploadVideoImageHeightSetting;
import com.bytedance.android.livesdk.livesetting.broadcast.LiveBroadcastUploadVideoImageWidthSetting;
import com.bytedance.android.livesdk.livesetting.broadcast.LiveMaxRetainAlogMessageSizeSetting;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.io.Serializable;

public class LiveStreamUrlExtra implements Serializable {
    @c(LIZ = "anchor_interact_profile")
    public int anchorInteractProfile;
    @c(LIZ = "audience_interact_profile")
    public int audienceInteractProfile;
    @c(LIZ = "bitrate_adapt_strategy")
    public int bitrateAdaptStrategy;
    @c(LIZ = "default_bitrate")
    public int defaultBitrate = LiveMaxRetainAlogMessageSizeSetting.DEFAULT;
    @c(LIZ = "bframe_enable")
    public boolean enableBFrame = true;
    @c(LIZ = "fps")
    public int fps = 15;
    @c(LIZ = "gop_sec")
    public float gopSec = 2.0f;
    @c(LIZ = "hardware_encode")
    public boolean hardwareEncode;
    @c(LIZ = "height")
    public int height = LiveBroadcastUploadVideoImageHeightSetting.DEFAULT;
    @c(LIZ = "roi")
    public boolean isRoi;
    @c(LIZ = "sw_roi")
    public boolean isSwRoi;
    @c(LIZ = "max_bitrate")
    public int maxBitrate = 800;
    @c(LIZ = "min_bitrate")
    public int minBitrate = 200;
    @c(LIZ = "ngb_push_url")
    public String ngbPushUrl = "";
    @c(LIZ = "ngb_push_url_postfix")
    public String ngbPushUrlPrefix = "";
    public int previewHeight;
    public int previewWidth;
    @c(LIZ = "video_profile")
    public int profile = 1;
    @c(LIZ = "super_resolution")
    public SrConfig srConfig;
    @c(LIZ = "width")
    public int width = LiveBroadcastUploadVideoImageWidthSetting.DEFAULT;

    static {
        Covode.recordClassIndex(79045);
    }

    public int getAnchorInteractProfile() {
        return this.anchorInteractProfile;
    }

    public int getAudienceInteractProfile() {
        return this.audienceInteractProfile;
    }

    public int getBitrateAdaptStrategy() {
        return this.bitrateAdaptStrategy;
    }

    public float getGopSec() {
        return this.gopSec;
    }

    public String getNgbPushUrl() {
        return this.ngbPushUrl;
    }

    public String getNgbPushUrlPrefix() {
        return this.ngbPushUrlPrefix;
    }

    public int getProfile() {
        return this.profile;
    }

    public SrConfig getSrConfig() {
        return this.srConfig;
    }

    public boolean isEnableBFrame() {
        return this.enableBFrame;
    }

    public boolean isHardwareEncode() {
        return this.hardwareEncode;
    }

    public boolean isRoi() {
        return this.isRoi;
    }

    public boolean isSwRoi() {
        return this.isSwRoi;
    }

    public static class SrConfig implements Serializable {
        @c(LIZ = "antialiasing")
        public boolean antiAlias;
        @c(LIZ = "enable")
        public boolean enabled;
        @c(LIZ = "strength")
        public int strength;

        static {
            Covode.recordClassIndex(79046);
        }

        public SrConfig() {
            this(false, false, 0);
        }

        public String toString() {
            return "SrConfig{enabled=" + this.enabled + ", antiAlias=" + this.antiAlias + ", strength=" + this.strength + '}';
        }

        public SrConfig(boolean z, boolean z2, int i) {
            this.enabled = z;
            this.antiAlias = z2;
            this.strength = i;
        }
    }

    public int getPreviewHeight() {
        int i = this.previewHeight;
        if (i == 0) {
            return 1280;
        }
        return i;
    }

    public int getPreviewWidth() {
        int i = this.previewWidth;
        if (i == 0) {
            return 720;
        }
        return i;
    }

    public int getDefaultBitrate() {
        if (this.defaultBitrate == 0) {
            this.defaultBitrate = LiveMaxRetainAlogMessageSizeSetting.DEFAULT;
        }
        return this.defaultBitrate;
    }

    public int getFPS() {
        if (this.fps == 0) {
            this.fps = 15;
        }
        return this.fps;
    }

    public int getHeight() {
        if (this.height == 0) {
            this.height = LiveBroadcastUploadVideoImageHeightSetting.DEFAULT;
        }
        return this.height;
    }

    public int getMinBitrate() {
        if (this.minBitrate == 0) {
            this.minBitrate = 200;
        }
        return this.minBitrate;
    }

    public int getWidth() {
        if (this.width == 0) {
            this.width = LiveBroadcastUploadVideoImageWidthSetting.DEFAULT;
        }
        return this.width;
    }

    public int getMaxBitrate() {
        if (this.maxBitrate == 0) {
            this.maxBitrate = (getDefaultBitrate() * 2) - getMinBitrate();
        }
        return this.maxBitrate;
    }

    public String toString() {
        return "LiveStreamUrlExtra{ngbPushUrl='" + this.ngbPushUrl + '\'' + ", ngbPushUrlPrefix='" + this.ngbPushUrlPrefix + '\'' + ", height=" + this.height + ", width=" + this.width + ", minBitrate=" + this.minBitrate + ", defaultBitrate=" + this.defaultBitrate + ", maxBitrate=" + this.maxBitrate + ", profile=" + this.profile + ", hardwareEncode=" + this.hardwareEncode + ", bitrateAdaptStrategy=" + this.bitrateAdaptStrategy + ", fps=" + this.fps + ", anchorInteractProfile=" + this.anchorInteractProfile + ", audienceInteractProfile=" + this.audienceInteractProfile + ", srConfig=" + this.srConfig + ", gopSec=" + this.gopSec + ", enableBFrame=" + this.enableBFrame + ", isRoi=" + this.isRoi + ", isSwRoi=" + this.isSwRoi + ", previewWidth=" + this.previewWidth + ", previewHeight=" + this.previewHeight + '}';
    }

    public void setAnchorInteractProfile(int i) {
        this.anchorInteractProfile = i;
    }

    public void setAudienceInteractProfile(int i) {
        this.audienceInteractProfile = i;
    }

    @c(LIZ = "bitrate_adapt_strategy")
    public void setBitrateAdaptStrategy(int i) {
        this.bitrateAdaptStrategy = i;
    }

    public void setDefaultBitrate(int i) {
        this.defaultBitrate = i;
    }

    @c(LIZ = "bframe_enable")
    public void setEnableBFrame(boolean z) {
        this.enableBFrame = z;
    }

    public void setFPS(int i) {
        this.fps = i;
    }

    @c(LIZ = "gop_sec")
    public void setGopSec(float f) {
        this.gopSec = f;
    }

    public void setHardwareEncode(boolean z) {
        this.hardwareEncode = z;
    }

    public void setHeight(int i) {
        this.height = i;
    }

    public void setMaxBitrate(int i) {
        this.maxBitrate = i;
    }

    public void setMinBitrate(int i) {
        this.minBitrate = i;
    }

    public void setNgbPushUrl(String str) {
        this.ngbPushUrl = str;
    }

    public void setNgbPushUrlPrefix(String str) {
        this.ngbPushUrlPrefix = str;
    }

    public void setProfile(int i) {
        this.profile = i;
    }

    @c(LIZ = "roi")
    public void setRoi(boolean z) {
        this.isRoi = z;
    }

    public void setSrConfig(SrConfig srConfig2) {
        this.srConfig = srConfig2;
    }

    @c(LIZ = "sw_roi")
    public void setSwRoi(boolean z) {
        this.isSwRoi = z;
    }

    public void setWidth(int i) {
        this.width = i;
    }
}
