Lines Matching refs:PixelFormat
31 PixelFormat format;
38 { PixelFormat::I1, 1, 1, ColorOrder::RGB },
39 { PixelFormat::I8, 8, 1, ColorOrder::RGB },
40 { PixelFormat::I16, 16, 1, ColorOrder::RGB },
41 { PixelFormat::RGB111, 1, 3, ColorOrder::RGB },
42 { PixelFormat::RGB888, 8, 3, ColorOrder::RGB },
43 { PixelFormat::RGB161616, 16, 3, ColorOrder::RGB },
44 { PixelFormat::BGR888, 8, 3, ColorOrder::BGR },
45 { PixelFormat::BGR161616, 16, 3, ColorOrder::BGR },
49 ColorOrder get_pixel_format_color_order(PixelFormat format)
59 unsigned get_pixel_format_depth(PixelFormat format)
68 unsigned get_pixel_channels(PixelFormat format)
77 std::size_t get_pixel_row_bytes(PixelFormat format, std::size_t width)
84 std::size_t get_pixels_from_row_bytes(PixelFormat format, std::size_t row_bytes)
90 PixelFormat create_pixel_format(unsigned depth, unsigned channels, ColorOrder order)
114 Pixel get_pixel_from_row(const std::uint8_t* data, std::size_t x, PixelFormat format)
117 case PixelFormat::I1: {
121 case PixelFormat::RGB111: {
128 case PixelFormat::I8: {
132 case PixelFormat::I16: {
137 case PixelFormat::RGB888: {
144 case PixelFormat::BGR888: {
151 case PixelFormat::RGB161616: {
158 case PixelFormat::BGR161616: {
170 void set_pixel_to_row(std::uint8_t* data, std::size_t x, Pixel pixel, PixelFormat format)
173 case PixelFormat::I1:
176 case PixelFormat::RGB111: {
183 case PixelFormat::I8: {
190 case PixelFormat::I16: {
200 case PixelFormat::RGB888: {
207 case PixelFormat::BGR888: {
214 case PixelFormat::RGB161616: {
224 case PixelFormat::BGR161616:
238 RawPixel get_raw_pixel_from_row(const std::uint8_t* data, std::size_t x, PixelFormat format)
241 case PixelFormat::I1:
243 case PixelFormat::RGB111: {
249 case PixelFormat::I8:
251 case PixelFormat::I16: {
255 case PixelFormat::RGB888:
256 case PixelFormat::BGR888: {
260 case PixelFormat::RGB161616:
261 case PixelFormat::BGR161616: {
271 void set_raw_pixel_to_row(std::uint8_t* data, std::size_t x, RawPixel pixel, PixelFormat format)
274 case PixelFormat::I1:
277 case PixelFormat::RGB111: {
284 case PixelFormat::I8:
287 case PixelFormat::I16: {
293 case PixelFormat::RGB888:
294 case PixelFormat::BGR888: {
301 case PixelFormat::RGB161616:
302 case PixelFormat::BGR161616: {
318 PixelFormat format)
321 case PixelFormat::I1:
323 case PixelFormat::RGB111:
325 case PixelFormat::I8:
327 case PixelFormat::I16: {
331 case PixelFormat::RGB888:
332 case PixelFormat::BGR888:
334 case PixelFormat::RGB161616:
335 case PixelFormat::BGR161616:
343 std::uint16_t pixel, PixelFormat format)
346 case PixelFormat::I1:
349 case PixelFormat::RGB111: {
353 case PixelFormat::I8:
356 case PixelFormat::I16: {
362 case PixelFormat::RGB888:
363 case PixelFormat::BGR888: {
368 case PixelFormat::RGB161616:
369 case PixelFormat::BGR161616: {
380 template<PixelFormat Format>
386 template<PixelFormat Format>
392 template<PixelFormat Format>
398 template<PixelFormat Format>
404 template<PixelFormat Format>
410 template<PixelFormat Format>
416 template Pixel get_pixel_from_row<PixelFormat::I1>(const std::uint8_t* data, std::size_t x);
417 template Pixel get_pixel_from_row<PixelFormat::RGB111>(const std::uint8_t* data, std::size_t x);
418 template Pixel get_pixel_from_row<PixelFormat::I8>(const std::uint8_t* data, std::size_t x);
419 template Pixel get_pixel_from_row<PixelFormat::RGB888>(const std::uint8_t* data, std::size_t x);
420 template Pixel get_pixel_from_row<PixelFormat::BGR888>(const std::uint8_t* data, std::size_t x);
421 template Pixel get_pixel_from_row<PixelFormat::I16>(const std::uint8_t* data, std::size_t x);
422 template Pixel get_pixel_from_row<PixelFormat::RGB161616>(const std::uint8_t* data, std::size_t x);
423 template Pixel get_pixel_from_row<PixelFormat::BGR161616>(const std::uint8_t* data, std::size_t x);
425 template RawPixel get_raw_pixel_from_row<PixelFormat::I1>(const std::uint8_t* data, std::size_t x);
426 template RawPixel get_raw_pixel_from_row<PixelFormat::RGB111>(const std::uint8_t* data, std::size_t x);
427 template RawPixel get_raw_pixel_from_row<PixelFormat::I8>(const std::uint8_t* data, std::size_t x);
428 template RawPixel get_raw_pixel_from_row<PixelFormat::RGB888>(const std::uint8_t* data, std::size_t x);
429 template RawPixel get_raw_pixel_from_row<PixelFormat::BGR888>(const std::uint8_t* data, std::size_t x);
430 template RawPixel get_raw_pixel_from_row<PixelFormat::I16>(const std::uint8_t* data, std::size_t x);
431 template RawPixel get_raw_pixel_from_row<PixelFormat::RGB161616>(const std::uint8_t* data, std::size_t x);
432 template RawPixel get_raw_pixel_from_row<PixelFormat::BGR161616>(const std::uint8_t* data, std::size_t x);
434 template std::uint16_t get_raw_channel_from_row<PixelFormat::I1>(
436 template std::uint16_t get_raw_channel_from_row<PixelFormat::RGB111>(
438 template std::uint16_t get_raw_channel_from_row<PixelFormat::I8>(
440 template std::uint16_t get_raw_channel_from_row<PixelFormat::RGB888>(
442 template std::uint16_t get_raw_channel_from_row<PixelFormat::BGR888>(
444 template std::uint16_t get_raw_channel_from_row<PixelFormat::I16>(
446 template std::uint16_t get_raw_channel_from_row<PixelFormat::RGB161616>(
448 template std::uint16_t get_raw_channel_from_row<PixelFormat::BGR161616>
451 template void set_pixel_to_row<PixelFormat::I1>(std::uint8_t* data, std::size_t x, Pixel pixel);
452 template void set_pixel_to_row<PixelFormat::RGB111>(std::uint8_t* data, std::size_t x, Pixel pixel);
453 template void set_pixel_to_row<PixelFormat::I8>(std::uint8_t* data, std::size_t x, Pixel pixel);
454 template void set_pixel_to_row<PixelFormat::RGB888>(std::uint8_t* data, std::size_t x, Pixel pixel);
455 template void set_pixel_to_row<PixelFormat::BGR888>(std::uint8_t* data, std::size_t x, Pixel pixel);
456 template void set_pixel_to_row<PixelFormat::I16>(std::uint8_t* data, std::size_t x, Pixel pixel);
457 template void set_pixel_to_row<PixelFormat::RGB161616>(std::uint8_t* data, std::size_t x, Pixel pixel);
458 template void set_pixel_to_row<PixelFormat::BGR161616>(std::uint8_t* data, std::size_t x, Pixel pixel);
460 template void set_raw_pixel_to_row<PixelFormat::I1>(std::uint8_t* data, std::size_t x, RawPixel pixel);
461 template void set_raw_pixel_to_row<PixelFormat::RGB111>(std::uint8_t* data, std::size_t x, RawPixel pixel);
462 template void set_raw_pixel_to_row<PixelFormat::I8>(std::uint8_t* data, std::size_t x, RawPixel pixel);
463 template void set_raw_pixel_to_row<PixelFormat::RGB888>(std::uint8_t* data, std::size_t x, RawPixel pixel);
464 template void set_raw_pixel_to_row<PixelFormat::BGR888>(std::uint8_t* data, std::size_t x, RawPixel pixel);
465 template void set_raw_pixel_to_row<PixelFormat::I16>(std::uint8_t* data, std::size_t x, RawPixel pixel);
466 template void set_raw_pixel_to_row<PixelFormat::RGB161616>(std::uint8_t* data, std::size_t x, RawPixel pixel);
467 template void set_raw_pixel_to_row<PixelFormat::BGR161616>(std::uint8_t* data, std::size_t x, RawPixel pixel);
469 template void set_raw_channel_to_row<PixelFormat::I1>(
471 template void set_raw_channel_to_row<PixelFormat::RGB111>(
473 template void set_raw_channel_to_row<PixelFormat::I8>(
475 template void set_raw_channel_to_row<PixelFormat::RGB888>(
477 template void set_raw_channel_to_row<PixelFormat::BGR888>(
479 template void set_raw_channel_to_row<PixelFormat::I16>(
481 template void set_raw_channel_to_row<PixelFormat::RGB161616>(
483 template void set_raw_channel_to_row<PixelFormat::BGR161616>(