Ver Fonte

LibGfx/JPEG: Add spec comment to read_start_of_frame()

Nico Weber há 1 ano atrás
pai
commit
3c39c18440
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      Userland/Libraries/LibGfx/ImageFormats/JPEGLoader.cpp

+ 2 - 0
Userland/Libraries/LibGfx/ImageFormats/JPEGLoader.cpp

@@ -1240,6 +1240,8 @@ static ErrorOr<void> read_start_of_frame(JPEGStream& stream, JPEGLoadingContext&
         return Error::from_string_literal("SOF repeated");
         return Error::from_string_literal("SOF repeated");
     }
     }
 
 
+    // B.2.2 Frame header syntax
+
     [[maybe_unused]] u16 const bytes_to_read = TRY(read_effective_chunk_size(stream));
     [[maybe_unused]] u16 const bytes_to_read = TRY(read_effective_chunk_size(stream));
 
 
     context.frame.precision = TRY(stream.read_u8());
     context.frame.precision = TRY(stream.read_u8());