Beispiel #1
0
        public bool CanDecompressFrame(Frame frame)
        {
            if (!(frame.ParentImageSop.DataSource is StreamingSopDataSource))
            {
                return(false);
            }

            StreamingSopDataSource dataSource = (StreamingSopDataSource)frame.ParentImageSop.DataSource;
            IStreamingSopFrameData frameData  = dataSource.GetFrameData(frame.FrameNumber);

            return(frameData.PixelDataRetrieved);
        }
 public StreamingSopFrameData(int frameNumber, StreamingSopDataSource parent)
     : base(frameNumber, parent, LargeObjectContainerData.PresetNetworkLoadedData)
 {
     _framePixelData = new FramePixelData(this.Parent, frameNumber);
     _overlayData    = new byte[16][];
 }
 public FramePixelData(StreamingSopDataSource parent, int frameNumber)
 {
     Parent      = parent;
     FrameNumber = frameNumber;
 }
Beispiel #4
0
 public StreamingSopFrameData(int frameNumber, StreamingSopDataSource parent)
     : base(frameNumber, parent, RegenerationCost.High)
 {
     _framePixelData = new FramePixelData(this.Parent, frameNumber);
     _overlayData    = new byte[16][];
 }