using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace skyscraper5.Dvb.Subtitling.Model
{
    public struct Color
    {
        public Color(byte y, byte pb, byte pr, byte t)
        {
            Y = y;
            Pb = pb;
            Pr = pr;
            T = t;
        }

        public Color(byte y, byte pb, byte pr)
        {
            Y = y;
            Pb = pb;
            Pr = pr;
            T = 0;
        }

        public byte Y { get; set; }
        public byte Pb { get; set; }
        public byte Pr { get; set; }
        public byte T { get; set; }

        public override string ToString()
        {
            return $"{nameof(T)}: {T}, {nameof(Pr)}: {Pr}, {nameof(Y)}: {Y}, {nameof(Pb)}: {Pb}";
        }
    }
}
