88using System . Text ;
99using SixLabors . ImageSharp . Advanced ;
1010using SixLabors . ImageSharp . Memory ;
11- using SixLabors . ImageSharp . MetaData ;
11+ using SixLabors . ImageSharp . Metadata ;
1212using SixLabors . ImageSharp . PixelFormats ;
1313using SixLabors . Memory ;
1414using SixLabors . Primitives ;
@@ -63,12 +63,12 @@ internal sealed class GifDecoderCore
6363 /// <summary>
6464 /// The abstract metadata.
6565 /// </summary>
66- private ImageMetaData metaData ;
66+ private ImageMetadata metadata ;
6767
6868 /// <summary>
6969 /// The gif specific metadata.
7070 /// </summary>
71- private GifMetaData gifMetaData ;
71+ private GifMetadata gifMetadata ;
7272
7373 /// <summary>
7474 /// Initializes a new instance of the <see cref="GifDecoderCore"/> class.
@@ -223,7 +223,7 @@ public IImageInfo Identify(Stream stream)
223223 new PixelTypeInfo ( this . logicalScreenDescriptor . BitsPerPixel ) ,
224224 this . logicalScreenDescriptor . Width ,
225225 this . logicalScreenDescriptor . Height ,
226- this . metaData ) ;
226+ this . metadata ) ;
227227 }
228228
229229 /// <summary>
@@ -276,7 +276,7 @@ private void ReadApplicationExtension()
276276 if ( subBlockSize == GifConstants . NetscapeLoopingSubBlockSize )
277277 {
278278 this . stream . Read ( this . buffer , 0 , GifConstants . NetscapeLoopingSubBlockSize ) ;
279- this . gifMetaData . RepeatCount = GifNetscapeLoopingApplicationExtension . Parse ( this . buffer . AsSpan ( 1 ) ) . RepeatCount ;
279+ this . gifMetadata . RepeatCount = GifNetscapeLoopingApplicationExtension . Parse ( this . buffer . AsSpan ( 1 ) ) . RepeatCount ;
280280 this . stream . Skip ( 1 ) ; // Skip the terminator.
281281 return ;
282282 }
@@ -334,7 +334,7 @@ private void ReadComments()
334334 {
335335 this . stream . Read ( commentsBuffer . Array , 0 , length ) ;
336336 string comments = this . TextEncoding . GetString ( commentsBuffer . Array , 0 , length ) ;
337- this . metaData . Properties . Add ( new ImageProperty ( GifConstants . Comments , comments ) ) ;
337+ this . metadata . Properties . Add ( new ImageProperty ( GifConstants . Comments , comments ) ) ;
338338 }
339339 }
340340 }
@@ -416,9 +416,9 @@ private void ReadFrameColors<TPixel>(ref Image<TPixel> image, ref ImageFrame<TPi
416416 if ( previousFrame is null )
417417 {
418418 // This initializes the image to become fully transparent because the alpha channel is zero.
419- image = new Image < TPixel > ( this . configuration , imageWidth , imageHeight , this . metaData ) ;
419+ image = new Image < TPixel > ( this . configuration , imageWidth , imageHeight , this . metadata ) ;
420420
421- this . SetFrameMetaData ( image . Frames . RootFrame . MetaData ) ;
421+ this . SetFrameMetadata ( image . Frames . RootFrame . Metadata ) ;
422422
423423 imageFrame = image . Frames . RootFrame ;
424424 }
@@ -431,7 +431,7 @@ private void ReadFrameColors<TPixel>(ref Image<TPixel> image, ref ImageFrame<TPi
431431
432432 currentFrame = image . Frames . AddFrame ( previousFrame ) ; // This clones the frame and adds it the collection
433433
434- this . SetFrameMetaData ( currentFrame . MetaData ) ;
434+ this . SetFrameMetadata ( currentFrame . Metadata ) ;
435435
436436 imageFrame = currentFrame ;
437437
@@ -549,11 +549,11 @@ private void RestoreToBackground<TPixel>(ImageFrame<TPixel> frame)
549549 /// <summary>
550550 /// Sets the frames metadata.
551551 /// </summary>
552- /// <param name="meta">The meta data .</param>
552+ /// <param name="meta">The metadata .</param>
553553 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
554- private void SetFrameMetaData ( ImageFrameMetaData meta )
554+ private void SetFrameMetadata ( ImageFrameMetadata meta )
555555 {
556- GifFrameMetaData gifMeta = meta . GetFormatMetaData ( GifFormat . Instance ) ;
556+ GifFrameMetadata gifMeta = meta . GetFormatMetadata ( GifFormat . Instance ) ;
557557 if ( this . graphicsControlExtension . DelayTime > 0 )
558558 {
559559 gifMeta . FrameDelay = this . graphicsControlExtension . DelayTime ;
@@ -586,7 +586,7 @@ private void ReadLogicalScreenDescriptorAndGlobalColorTable(Stream stream)
586586 this . stream . Skip ( 6 ) ;
587587 this . ReadLogicalScreenDescriptor ( ) ;
588588
589- var meta = new ImageMetaData ( ) ;
589+ var meta = new ImageMetadata ( ) ;
590590
591591 // The Pixel Aspect Ratio is defined to be the quotient of the pixel's
592592 // width over its height. The value range in this field allows
@@ -614,16 +614,16 @@ private void ReadLogicalScreenDescriptorAndGlobalColorTable(Stream stream)
614614 }
615615 }
616616
617- this . metaData = meta ;
618- this . gifMetaData = meta . GetFormatMetaData ( GifFormat . Instance ) ;
619- this . gifMetaData . ColorTableMode = this . logicalScreenDescriptor . GlobalColorTableFlag
617+ this . metadata = meta ;
618+ this . gifMetadata = meta . GetFormatMetadata ( GifFormat . Instance ) ;
619+ this . gifMetadata . ColorTableMode = this . logicalScreenDescriptor . GlobalColorTableFlag
620620 ? GifColorTableMode . Global
621621 : GifColorTableMode . Local ;
622622
623623 if ( this . logicalScreenDescriptor . GlobalColorTableFlag )
624624 {
625625 int globalColorTableLength = this . logicalScreenDescriptor . GlobalColorTableSize * 3 ;
626- this . gifMetaData . GlobalColorTableLength = globalColorTableLength ;
626+ this . gifMetadata . GlobalColorTableLength = globalColorTableLength ;
627627
628628 this . globalColorTable = this . MemoryAllocator . AllocateManagedByteBuffer ( globalColorTableLength , AllocationOptions . Clean ) ;
629629
0 commit comments