소스 검색

LibPDF: Add spec comment about color spaces on images

Nico Weber 1 년 전
부모
커밋
f5d3f47af3
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Userland/Libraries/LibPDF/Renderer.cpp

+ 2 - 0
Userland/Libraries/LibPDF/Renderer.cpp

@@ -834,6 +834,8 @@ PDFErrorOr<NonnullRefPtr<Gfx::Bitmap>> Renderer::load_image(NonnullRefPtr<Stream
         }
     }
 
+    // "(Required for images, except those that use the JPXDecode filter; not allowed for image masks) [...]
+    //  it can be any type of color space except Pattern."
     auto color_space_object = MUST(image_dict->get_object(m_document, CommonNames::ColorSpace));
     auto color_space = TRY(get_color_space_from_document(color_space_object));