public VideoFilter(VIDEO_TYPE nVideoType)
        {
            this.m_VideoType = nVideoType;

            switch (m_VideoType)
            {
                case VIDEO_TYPE.VIDEO_STAGGERED:
                {
                    this.pattern = new int[]
                    {
                        0, 1,
                        0, 2,
                        1, 2,
                        1, 0,
                        2, 0,
                        2, 1,
                    };
                    break;
                }
                case VIDEO_TYPE.VIDEO_TRIPED:
                {
                    this.pattern = new int[]
                    {
                        0,
                        1,
                        2,
                    };
                    break;
                }
                case VIDEO_TYPE.VIDEO_3X3:
                {
                    this.pattern = new int[]
                    {
                        0, 1, 2,
                        2, 0, 1,
                        1, 2, 0,
                    };
                    break;
                }
                default:
                {
                    this.pattern = new int[]
                    {
                        0, 1, 2, 0, 0,
                        1, 1, 1, 2, 0,
                        0, 1, 2, 2, 2,
                        0, 0, 1, 2, 0,
                        0, 1, 1, 1, 2,
                        2, 0, 1, 2, 2,
                        0, 0, 0, 1, 2,
                        2, 0, 1, 1, 1,
                        2, 2, 0, 1, 2,
                        2, 0, 0, 0, 1,
                        1, 2, 0, 1, 1,
                        2, 2, 2, 0, 1,
                        1, 2, 0, 0, 0,
                        1, 1, 2, 0, 1,
                        1, 2, 2, 2, 0,
                    };
                    break;
                }
            }
        }
Esempio n. 2
0
        public VideoFilter(VIDEO_TYPE nVideoType)
        {
            this.m_VideoType = nVideoType;

            switch (m_VideoType)
            {
            case VIDEO_TYPE.VIDEO_STAGGERED:
            {
                this.pattern = new int[]
                {
                    0, 1,
                    0, 2,
                    1, 2,
                    1, 0,
                    2, 0,
                    2, 1,
                };
                break;
            }

            case VIDEO_TYPE.VIDEO_TRIPED:
            {
                this.pattern = new int[]
                {
                    0,
                    1,
                    2,
                };
                break;
            }

            case VIDEO_TYPE.VIDEO_3X3:
            {
                this.pattern = new int[]
                {
                    0, 1, 2,
                    2, 0, 1,
                    1, 2, 0,
                };
                break;
            }

            default:
            {
                this.pattern = new int[]
                {
                    0, 1, 2, 0, 0,
                    1, 1, 1, 2, 0,
                    0, 1, 2, 2, 2,
                    0, 0, 1, 2, 0,
                    0, 1, 1, 1, 2,
                    2, 0, 1, 2, 2,
                    0, 0, 0, 1, 2,
                    2, 0, 1, 1, 1,
                    2, 2, 0, 1, 2,
                    2, 0, 0, 0, 1,
                    1, 2, 0, 1, 1,
                    2, 2, 2, 0, 1,
                    1, 2, 0, 0, 0,
                    1, 1, 2, 0, 1,
                    1, 2, 2, 2, 0,
                };
                break;
            }
            }
        }