Home
last modified time | relevance | path

Searched refs:colortype (Results 1 – 25 of 674) sorted by relevance

12345678910>>...27

/dports/misc/broot/broot-1.7.0/cargo-crates/tiff-0.6.1/tests/
H A Dencode_images.rs4 use tiff::encoder::{colortype, SRational, TiffEncoder};
27 let mut image = tiff.new_image::<colortype::RGB8>(100, 100).unwrap(); in encode_decode()
37 assert_eq!(decoder.colortype().unwrap(), ColorType::RGB(8)); in encode_decode()
60 let res = tiff.write_image::<colortype::RGB8>(50, 50, &input_data); in test_encode_undersized_buffer()
69 fn $name<C: colortype::ColorType<Inner = $buffer_ty>>(
76 assert_eq!(decoder.colortype().unwrap(), expected_type);
117 test_u8_roundtrip::<colortype::RGB8>("rgb-3c-8b.tiff", ColorType::RGB(8)); in test_rgb_u8_roundtrip()
122 test_u8_roundtrip::<colortype::CMYK8>("cmyk-3c-8b.tiff", ColorType::CMYK(8)); in test_cmyk_u8_roundtrip()
132 test_u16_roundtrip::<colortype::RGB16>("rgb-3c-16b.tiff", ColorType::RGB(16)); in test_rgb_u16_roundtrip()
341 .write_image::<colortype::Gray16>(2, 2, &img1[..]) in test_multipage_image()
[all …]
/dports/sysutils/czkawka/czkawka-3.3.1/cargo-crates/tiff-0.6.1/tests/
H A Dencode_images.rs4 use tiff::encoder::{colortype, SRational, TiffEncoder};
27 let mut image = tiff.new_image::<colortype::RGB8>(100, 100).unwrap(); in encode_decode()
37 assert_eq!(decoder.colortype().unwrap(), ColorType::RGB(8)); in encode_decode()
60 let res = tiff.write_image::<colortype::RGB8>(50, 50, &input_data); in test_encode_undersized_buffer()
69 fn $name<C: colortype::ColorType<Inner = $buffer_ty>>(
76 assert_eq!(decoder.colortype().unwrap(), expected_type);
117 test_u8_roundtrip::<colortype::RGB8>("rgb-3c-8b.tiff", ColorType::RGB(8)); in test_rgb_u8_roundtrip()
122 test_u8_roundtrip::<colortype::CMYK8>("cmyk-3c-8b.tiff", ColorType::CMYK(8)); in test_cmyk_u8_roundtrip()
132 test_u16_roundtrip::<colortype::RGB16>("rgb-3c-16b.tiff", ColorType::RGB(16)); in test_rgb_u16_roundtrip()
341 .write_image::<colortype::Gray16>(2, 2, &img1[..]) in test_multipage_image()
[all …]
/dports/www/zola/zola-0.15.2/cargo-crates/tiff-0.6.1/tests/
H A Dencode_images.rs4 use tiff::encoder::{colortype, SRational, TiffEncoder};
27 let mut image = tiff.new_image::<colortype::RGB8>(100, 100).unwrap(); in encode_decode()
37 assert_eq!(decoder.colortype().unwrap(), ColorType::RGB(8)); in encode_decode()
60 let res = tiff.write_image::<colortype::RGB8>(50, 50, &input_data); in test_encode_undersized_buffer()
69 fn $name<C: colortype::ColorType<Inner = $buffer_ty>>(
76 assert_eq!(decoder.colortype().unwrap(), expected_type);
117 test_u8_roundtrip::<colortype::RGB8>("rgb-3c-8b.tiff", ColorType::RGB(8)); in test_rgb_u8_roundtrip()
122 test_u8_roundtrip::<colortype::CMYK8>("cmyk-3c-8b.tiff", ColorType::CMYK(8)); in test_cmyk_u8_roundtrip()
132 test_u16_roundtrip::<colortype::RGB16>("rgb-3c-16b.tiff", ColorType::RGB(16)); in test_rgb_u16_roundtrip()
341 .write_image::<colortype::Gray16>(2, 2, &img1[..]) in test_multipage_image()
[all …]
/dports/sysutils/onefetch/onefetch-2.10.2/cargo-crates/tiff-0.6.1/tests/
H A Dencode_images.rs4 use tiff::encoder::{colortype, SRational, TiffEncoder};
27 let mut image = tiff.new_image::<colortype::RGB8>(100, 100).unwrap(); in encode_decode()
37 assert_eq!(decoder.colortype().unwrap(), ColorType::RGB(8)); in encode_decode()
60 let res = tiff.write_image::<colortype::RGB8>(50, 50, &input_data); in test_encode_undersized_buffer()
69 fn $name<C: colortype::ColorType<Inner = $buffer_ty>>(
76 assert_eq!(decoder.colortype().unwrap(), expected_type);
117 test_u8_roundtrip::<colortype::RGB8>("rgb-3c-8b.tiff", ColorType::RGB(8)); in test_rgb_u8_roundtrip()
122 test_u8_roundtrip::<colortype::CMYK8>("cmyk-3c-8b.tiff", ColorType::CMYK(8)); in test_cmyk_u8_roundtrip()
132 test_u16_roundtrip::<colortype::RGB16>("rgb-3c-16b.tiff", ColorType::RGB(16)); in test_rgb_u16_roundtrip()
341 .write_image::<colortype::Gray16>(2, 2, &img1[..]) in test_multipage_image()
[all …]
/dports/audio/spotify-tui/spotify-tui-0.25.0/cargo-crates/tiff-0.6.1/tests/
H A Dencode_images.rs4 use tiff::encoder::{colortype, SRational, TiffEncoder};
27 let mut image = tiff.new_image::<colortype::RGB8>(100, 100).unwrap(); in encode_decode()
37 assert_eq!(decoder.colortype().unwrap(), ColorType::RGB(8)); in encode_decode()
60 let res = tiff.write_image::<colortype::RGB8>(50, 50, &input_data); in test_encode_undersized_buffer()
69 fn $name<C: colortype::ColorType<Inner = $buffer_ty>>(
76 assert_eq!(decoder.colortype().unwrap(), expected_type);
117 test_u8_roundtrip::<colortype::RGB8>("rgb-3c-8b.tiff", ColorType::RGB(8)); in test_rgb_u8_roundtrip()
122 test_u8_roundtrip::<colortype::CMYK8>("cmyk-3c-8b.tiff", ColorType::CMYK(8)); in test_cmyk_u8_roundtrip()
132 test_u16_roundtrip::<colortype::RGB16>("rgb-3c-16b.tiff", ColorType::RGB(16)); in test_rgb_u16_roundtrip()
341 .write_image::<colortype::Gray16>(2, 2, &img1[..]) in test_multipage_image()
[all …]
/dports/graphics/viu/viu-1.1/cargo-crates/tiff-0.5.0/tests/
H A Dencode_images.rs4 use tiff::encoder::{colortype, TiffEncoder, SRational};
27 tiff.write_image::<colortype::RGB8>(100, 100, &image_data) in encode_decode()
33 assert_eq!(decoder.colortype().unwrap(), ColorType::RGB(8)); in encode_decode()
52 let res = tiff.write_image::<colortype::RGB8>(50, 50, &input_data); in test_encode_undersized_buffer()
65 assert_eq!(decoder.colortype().unwrap(), expected_type);
105 test_u8_roundtrip::<colortype::RGB8>("rgb-3c-8b.tiff", ColorType::RGB(8)); in test_rgb_u8_roundtrip()
110 test_u8_roundtrip::<colortype::CMYK8>("cmyk-3c-8b.tiff", ColorType::CMYK(8)); in test_cmyk_u8_roundtrip()
120 test_u16_roundtrip::<colortype::RGB16>("rgb-3c-16b.tiff", ColorType::RGB(16)); in test_rgb_u16_roundtrip()
154 let mut image_encoder = tiff.new_image::<colortype::Gray8>(1, 1).unwrap(); in test_multiple_byte()
244 img_encoder.write_image::<colortype::Gray16>(2, 2, &img1[..]).unwrap(); in test_multipage_image()
[all …]
/dports/graphics/viu/viu-1.1/cargo-crates/tiff-0.3.1/tests/
H A Dencode_images.rs5 use tiff::encoder::{colortype, TiffEncoder};
26 tiff.write_image::<colortype::RGB8>(100, 100, &image_data) in encode_decode()
32 assert_eq!(decoder.colortype().unwrap(), ColorType::RGB(8)); in encode_decode()
51 let res = tiff.write_image::<colortype::RGB8>(50, 50, &input_data); in test_encode_undersized_buffer()
62 assert_eq!(decoder.colortype().unwrap(), ColorType::Gray(8)); in test_gray_u8_roundtrip()
74 tiff.write_image::<colortype::Gray8>(width, height, &image_data) in test_gray_u8_roundtrip()
92 assert_eq!(decoder.colortype().unwrap(), ColorType::RGB(8)); in test_rgb_u8_roundtrip()
104 tiff.write_image::<colortype::RGB8>(width, height, &image_data) in test_rgb_u8_roundtrip()
123 assert_eq!(decoder.colortype().unwrap(), ColorType::Gray(16)); in test_gray_u16_roundtrip()
153 assert_eq!(decoder.colortype().unwrap(), ColorType::RGB(16)); in test_rgb_u16_roundtrip()
[all …]
/dports/multimedia/termplay/termplay-2.0.6/cargo-crates/tiff-0.3.1/tests/
H A Dencode_images.rs5 use tiff::encoder::{colortype, TiffEncoder};
26 tiff.write_image::<colortype::RGB8>(100, 100, &image_data) in encode_decode()
32 assert_eq!(decoder.colortype().unwrap(), ColorType::RGB(8)); in encode_decode()
51 let res = tiff.write_image::<colortype::RGB8>(50, 50, &input_data); in test_encode_undersized_buffer()
62 assert_eq!(decoder.colortype().unwrap(), ColorType::Gray(8)); in test_gray_u8_roundtrip()
74 tiff.write_image::<colortype::Gray8>(width, height, &image_data) in test_gray_u8_roundtrip()
92 assert_eq!(decoder.colortype().unwrap(), ColorType::RGB(8)); in test_rgb_u8_roundtrip()
104 tiff.write_image::<colortype::RGB8>(width, height, &image_data) in test_rgb_u8_roundtrip()
123 assert_eq!(decoder.colortype().unwrap(), ColorType::Gray(16)); in test_gray_u16_roundtrip()
153 assert_eq!(decoder.colortype().unwrap(), ColorType::RGB(16)); in test_rgb_u16_roundtrip()
[all …]
/dports/games/opencity/opencity-0.0.6.5stable/src/pngfuncs/
H A Dpngfuncs.c31 int colortype = PNG_COLOR_MASK_COLOR; /* grayscale not supported */ in png_colortype_from_surface() local
34 colortype |= PNG_COLOR_MASK_PALETTE; in png_colortype_from_surface()
36 colortype |= PNG_COLOR_MASK_ALPHA; in png_colortype_from_surface()
38 return colortype; in png_colortype_from_surface()
59 int i, colortype; in png_save_surface() local
92 colortype = png_colortype_from_surface(surf); in png_save_surface()
93 png_set_IHDR(png_ptr, info_ptr, surf->w, surf->h, 8, colortype, PNG_INTERLACE_NONE, in png_save_surface()
/dports/multimedia/termplay/termplay-2.0.6/cargo-crates/image-0.22.3/src/pnm/
H A Dmod.rs38 let colortype = decoder.colortype(); in execute_roundtrip_default() localVariable
41 (header, colortype, image) in execute_roundtrip_default()
68 let colortype = decoder.colortype(); in execute_roundtrip_with_subtype() localVariable
71 (header, colortype, image) in execute_roundtrip_with_subtype()
93 let colortype = decoder.colortype(); in execute_roundtrip_u16() localVariable
96 (header, colortype, image) in execute_roundtrip_u16()
/dports/www/geckodriver/mozilla-central-e9783a644016aa9b317887076618425586730d73/testing/geckodriver/cargo-crates/image-0.22.1/src/pnm/
H A Dmod.rs38 let colortype = decoder.colortype(); in execute_roundtrip_default() localVariable
41 (header, colortype, image) in execute_roundtrip_default()
68 let colortype = decoder.colortype(); in execute_roundtrip_with_subtype() localVariable
71 (header, colortype, image) in execute_roundtrip_with_subtype()
93 let colortype = decoder.colortype(); in execute_roundtrip_u16() localVariable
96 (header, colortype, image) in execute_roundtrip_u16()
/dports/shells/ion/ion-a8872014dbce730ccd00aaa722397dc394a52bf4/cargo-crates/image-0.21.2/src/pnm/
H A Dmod.rs38 let colortype = decoder.colortype(); in execute_roundtrip_default() localVariable
41 (header, colortype, image) in execute_roundtrip_default()
68 let colortype = decoder.colortype(); in execute_roundtrip_with_subtype() localVariable
71 (header, colortype, image) in execute_roundtrip_with_subtype()
93 let colortype = decoder.colortype(); in execute_roundtrip_u16() localVariable
96 (header, colortype, image) in execute_roundtrip_u16()
/dports/games/dose-response/dose-response-179c326/cargo-crates/image-0.20.1/src/pnm/
H A Dmod.rs37 let colortype = decoder.colortype().expect("Failed to decode color type"); in execute_roundtrip_default() localVariable
40 (header, colortype, image) in execute_roundtrip_default()
73 let colortype = decoder.colortype().expect("Failed to decode color type"); in execute_roundtrip_with_subtype() localVariable
76 (header, colortype, image) in execute_roundtrip_with_subtype()
104 let colortype = decoder.colortype().expect("Failed to decode color type"); in execute_roundtrip_u16() localVariable
107 (header, colortype, image) in execute_roundtrip_u16()
/dports/graphics/viu/viu-1.1/cargo-crates/image-0.22.5/src/pnm/
H A Dmod.rs38 let colortype = decoder.colortype(); in execute_roundtrip_default() localVariable
41 (header, colortype, image) in execute_roundtrip_default()
68 let colortype = decoder.colortype(); in execute_roundtrip_with_subtype() localVariable
71 (header, colortype, image) in execute_roundtrip_with_subtype()
93 let colortype = decoder.colortype(); in execute_roundtrip_u16() localVariable
96 (header, colortype, image) in execute_roundtrip_u16()
/dports/graphics/py-plotly/plotly-4.14.3/_plotly_utils/colors/
H A D__init__.py311 def validate_colors(colors, colortype="tuple"): argument
406 if colortype == "rgb":
416 colortype="rgb", argument
484 if colortype == "rgb":
486 elif colortype == "tuple":
513 if colortype == "rgb":
515 elif colortype == "tuple":
616 if colortype == "rgb":
631 if colortype == "rgb":
685 if colortype == "rgb":
[all …]
/dports/games/freedroidrpg/freedroidrpg-0.16.1/src/
H A Dpngfuncs.c56 int colortype = PNG_COLOR_MASK_COLOR; /* grayscale not supported */ in png_colortype_from_surface() local
59 colortype |= PNG_COLOR_MASK_PALETTE; in png_colortype_from_surface()
61 colortype |= PNG_COLOR_MASK_ALPHA; in png_colortype_from_surface()
63 return colortype; in png_colortype_from_surface()
84 int i, colortype; in png_save_surface() local
119 colortype = png_colortype_from_surface(surf); in png_save_surface()
120 png_set_IHDR(png_ptr, info_ptr, surf->w, surf->h, 8, colortype, PNG_INTERLACE_NONE, in png_save_surface()
/dports/multimedia/termplay/termplay-2.0.6/cargo-crates/image-0.22.3/src/
H A Dtiff.rs24 colortype: ColorType, field
35 let colortype = inner.colortype()?.into(); in new() localVariable
39 colortype, in new()
92 fn colortype(&self) -> ColorType { in colortype() method
93 self.colortype in colortype()
128 …ColorType::Gray(8) => encoder.write_image::<tiff::encoder::colortype::Gray8>(width, height, data)?, in encode()
129 … ColorType::RGB(8) => encoder.write_image::<tiff::encoder::colortype::RGB8>(width, height, data)?, in encode()
130 …ColorType::RGBA(8) => encoder.write_image::<tiff::encoder::colortype::RGBA8>(width, height, data)?, in encode()
/dports/www/geckodriver/mozilla-central-e9783a644016aa9b317887076618425586730d73/testing/geckodriver/cargo-crates/image-0.22.1/src/
H A Dtiff.rs24 colortype: ColorType, field
35 let colortype = inner.colortype()?.into(); in new() localVariable
39 colortype, in new()
92 fn colortype(&self) -> ColorType { in colortype() method
93 self.colortype in colortype()
128 …ColorType::Gray(8) => encoder.write_image::<tiff::encoder::colortype::Gray8>(width, height, data)?, in encode()
129 … ColorType::RGB(8) => encoder.write_image::<tiff::encoder::colortype::RGB8>(width, height, data)?, in encode()
130 …ColorType::RGBA(8) => encoder.write_image::<tiff::encoder::colortype::RGBA8>(width, height, data)?, in encode()
/dports/misc/magicpoint/magicpoint-1.13a/image/
H A Dpng.c59 int bitdepth, colortype, row, is_png, alpha_flag = 0; local
100 &bitdepth, &colortype, NULL, NULL, NULL);
104 fullname, width, height, bitdepth, colortype);
111 if (colortype & PNG_COLOR_MASK_ALPHA){
124 if (colortype == PNG_COLOR_TYPE_GRAY ||
125 colortype == PNG_COLOR_TYPE_GRAY_ALPHA){
130 if (colortype == PNG_COLOR_TYPE_PALETTE && bitdepth <= 8){
136 if (colortype == PNG_COLOR_TYPE_GRAY && bitdepth < 8){
174 if (!(colortype & PNG_COLOR_MASK_ALPHA) && !alpha_flag){
/dports/graphics/viu/viu-1.1/cargo-crates/image-0.22.5/src/
H A Dtiff.rs24 colortype: ColorType, field
35 let colortype = inner.colortype()?.into(); in new() localVariable
39 colortype, in new()
92 fn colortype(&self) -> ColorType { in colortype() method
93 self.colortype in colortype()
128 …ColorType::Gray(8) => encoder.write_image::<tiff::encoder::colortype::Gray8>(width, height, data)?, in encode()
129 … ColorType::RGB(8) => encoder.write_image::<tiff::encoder::colortype::RGB8>(width, height, data)?, in encode()
130 …ColorType::RGBA(8) => encoder.write_image::<tiff::encoder::colortype::RGBA8>(width, height, data)?, in encode()
/dports/shells/ion/ion-a8872014dbce730ccd00aaa722397dc394a52bf4/cargo-crates/image-0.21.2/src/
H A Dtiff.rs22 colortype: ColorType, field
33 let colortype = inner.colortype()?.into(); in new() localVariable
37 colortype, in new()
73 fn colortype(&self) -> ColorType { in colortype() method
74 self.colortype in colortype()
/dports/graphics/opendx/dx-4.4.4/src/exec/dxmods/
H A Dreadimage.c82 char *colortype; in m_ReadImage() local
192 colortype = COLORTYPE_FLOAT; in m_ReadImage()
196 colortype = COLORTYPE_BYTE; in m_ReadImage()
198 colortype = COLORTYPE_BYTE; in m_ReadImage()
209 colortype = COLORTYPE_BYTE; in m_ReadImage()
211 colortype = COLORTYPE_BYTE; in m_ReadImage()
218 colortype = COLORTYPE_BYTE; in m_ReadImage()
869 delayed, colortype); in m_ReadImage()
895 delayed, colortype); in m_ReadImage()
921 delayed, colortype); in m_ReadImage()
[all …]
/dports/games/vvvvvv/VVVVVV-cb3640e5/desktop_version/lodepng/
H A Dlodepng.h131 LodePNGColorType colortype, unsigned bitdepth);
148 LodePNGColorType colortype, unsigned bitdepth);
180 LodePNGColorType colortype, unsigned bitdepth);
198 LodePNGColorType colortype, unsigned bitdepth);
218 LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8);
221 LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8);
229 LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8);
238 LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8);
241 LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8);
250 LodePNGColorType colortype = LCT_RGBA, unsigned bitdepth = 8);
[all …]
/dports/science/xcrysden/xcrysden-1.6.2/C/
H A DxcColorScheme.c51 int colortype; member
70 int colortype, float oldcol[3], float alpha);
183 colSh.colortype = COLSH_OVERRIDE; in XC_ColorschemeCmd()
185 colSh.colortype = COLSH_COMBINED; in XC_ColorschemeCmd()
268 colSh.colorscheme, colSh.colortype, in Colorise()
273 colSh.colorscheme, colSh.colortype, in Colorise()
278 colSh.colorscheme, colSh.colortype, in Colorise()
283 colSh.colorscheme, colSh.colortype, in Colorise()
288 colSh.colorscheme, colSh.colortype, in Colorise()
293 colSh.colorscheme, colSh.colortype, in Colorise()
[all …]
/dports/games/nxengine/nxengine-evo-2.6.5-1/src/graphics/
H A Dpngfuncs.cpp36 int colortype = PNG_COLOR_MASK_COLOR; /* grayscale not supported */ in png_colortype_from_surface() local
39 colortype |= PNG_COLOR_MASK_PALETTE; in png_colortype_from_surface()
41 colortype |= PNG_COLOR_MASK_ALPHA; in png_colortype_from_surface()
43 return colortype; in png_colortype_from_surface()
66 int i, colortype; in png_save_surface() local
104 colortype = png_colortype_from_surface(surf); in png_save_surface()
105 …png_set_IHDR(png_ptr, info_ptr, surf->w, surf->h, 8, colortype, PNG_INTERLACE_NONE, PNG_COMPRESSIO… in png_save_surface()

12345678910>>...27