예제 #1
0
        //

        public VideoDriver()
        {
            theoraInfo    = new theora.Info();
            theoraComment = new theora.Comment();
            theoraState   = new theora.State();
            yuvBuffer     = new theora.YUVBuffer();
            oggPacket     = new ogg.Packet();
        }
예제 #2
0
        public virtual void Dispose()
        {
            if (oggPacket != null)
            {
                oggPacket.Dispose();
                oggPacket = null;
            }

            if (yuvBuffer != null)
            {
                yuvBuffer.Dispose();
                yuvBuffer = null;
            }

            if (theoraState != null)
            {
                theoraState.Dispose();
                theoraState = null;
            }

            if (theoraInfo != null)
            {
                theoraInfo.Dispose();
                theoraInfo = null;
            }

            if (theoraComment != null)
            {
                theoraComment.Dispose();
                theoraComment = null;
            }

            if (theoraStreamState != null)
            {
                theoraStreamState.Dispose();
                theoraStreamState = null;
            }

            GC.SuppressFinalize(this);
        }