/third_party/ffmpeg/libavcodec/ |
H A D | h264qpel_template.c | 57 AV_WN4P(dst+4*sizeof(pixel), AV_RN4P(src+4*sizeof(pixel))); in copy_block8() 69 AV_WN4P(dst+ 4*sizeof(pixel), AV_RN4P(src+ 4*sizeof(pixel))); in copy_block16() 70 AV_WN4P(dst+ 8*sizeof(pixel), AV_RN4P(src+ 8*sizeof(pixel))); in copy_block16() 71 AV_WN4P(dst+12*sizeof(pixel), AV_RN4P(src+12*sizeof(pixel))); in copy_block16() 82 pixel *dst = (pixel*)p_ds [all...] |
H A D | hevcdsp_template.c | 33 pixel *dst = (pixel *)_dst; in put_pcm() 35 stride /= sizeof(pixel); in put_pcm() 48 pixel *dst = (pixel *)_dst; in add_residual() 50 stride /= sizeof(pixel); in add_residual() 303 pixel *dst = (pixel *)_dst; in sao_band_filter() 304 pixel *src = (pixel *)_sr in sao_band_filter() [all...] |
H A D | h264pred_template.c | 37 pixel *src = (pixel*)_src; in pred4x4_vertical() 38 int stride = _stride>>(sizeof(pixel)-1); in pred4x4_vertical() 50 pixel *src = (pixel*)_src; in pred4x4_horizontal() 51 int stride = _stride>>(sizeof(pixel)-1); in pred4x4_horizontal() 61 pixel *src = (pixel*)_src; in pred4x4_dc() 62 int stride = _stride>>(sizeof(pixel)-1); in pred4x4_dc() 76 pixel *sr in pred4x4_left_dc() [all...] |
H A D | h264dsp_template.c | 37 pixel *block = (pixel*)_block; \ 38 stride >>= sizeof(pixel)-1; \ 67 pixel *dst = (pixel*)_dst; \ 68 pixel *src = (pixel*)_src; \ 69 stride >>= sizeof(pixel)-1; \ 106 pixel *pix = (pixel*)p_pi in h264_loop_filter_luma() [all...] |
H A D | vp9dsp_template.c | 36 pixel *dst = (pixel *) _dst; in vert_4x4_c() 37 const pixel *top = (const pixel *) _top; in vert_4x4_c() 40 stride /= sizeof(pixel); in vert_4x4_c() 50 pixel *dst = (pixel *) _dst; in vert_8x8_c() 51 const pixel *top = (const pixel *) _top; in vert_8x8_c() 56 stride /= sizeof(pixel); in vert_8x8_c() [all...] |
H A D | r210dec.c | 70 uint32_t pixel; in decode_frame() local 73 pixel = av_le2ne32(*src++); in decode_frame() 75 pixel = av_be2ne32(*src++); in decode_frame() 78 b = pixel & 0x3ff; in decode_frame() 79 g = (pixel >> 10) & 0x3ff; in decode_frame() 80 r = (pixel >> 20) & 0x3ff; in decode_frame() 82 r = pixel & 0x3ff; in decode_frame() 83 g = (pixel >> 10) & 0x3ff; in decode_frame() 84 b = (pixel >> 20) & 0x3ff; in decode_frame() 86 b = (pixel >> in decode_frame() [all...] |
H A D | videodsp_template.c | 39 av_assert2(block_w * sizeof(pixel) <= FFABS(buf_linesize)); in ff_emulated_edge_mc() 52 src -= (1 + src_x - w) * sizeof(pixel); in ff_emulated_edge_mc() 55 src += (1 - block_w - src_x) * sizeof(pixel); in ff_emulated_edge_mc() 67 src += start_y * src_linesize + start_x * (ptrdiff_t)sizeof(pixel); in ff_emulated_edge_mc() 68 buf += start_x * sizeof(pixel); in ff_emulated_edge_mc() 72 memcpy(buf, src, w * sizeof(pixel)); in ff_emulated_edge_mc() 78 memcpy(buf, src, w * sizeof(pixel)); in ff_emulated_edge_mc() 86 memcpy(buf, src, w * sizeof(pixel)); in ff_emulated_edge_mc() 90 buf -= block_h * buf_linesize + start_x * (ptrdiff_t)sizeof(pixel); in ff_emulated_edge_mc() 92 pixel *buf in ff_emulated_edge_mc() [all...] |
H A D | h264idct_template.c | 36 pixel *dst = (pixel*)_dst; in ff_h264_idct_add() 38 stride >>= sizeof(pixel)-1; in ff_h264_idct_add() 71 pixel *dst = (pixel*)_dst; in ff_h264_idct8_add() 73 stride >>= sizeof(pixel)-1; in ff_h264_idct8_add() 146 pixel *dst = (pixel*)_dst; in ff_h264_idct_dc_add() 149 stride /= sizeof(pixel); in ff_h264_idct_dc_add() 161 pixel *ds in ff_h264_idct8_dc_add() [all...] |
H A D | anm.c | 65 * @param pixel Fill color (optional, see below) 73 * a fill operation is achieved when 'gb' is null and pixel is >= 0 74 * a skip operation is achieved when 'gb' is null and pixel is < 0 78 int pixel, int count, in op() 88 } else if (pixel >= 0) in op() 89 memset(*dst, pixel, striplen); in op() 142 #define OP(gb, pixel, count) \ in decode_frame() 143 op(&dst, dst_end, (gb), (pixel), (count), &x, avctx->width, s->frame->linesize[0]) in decode_frame() 151 int pixel; in decode_frame() local 153 pixel in decode_frame() 76 op(uint8_t **dst, const uint8_t *dst_end, GetByteContext *gb, int pixel, int count, int *x, int width, int linesize) op() argument 156 int pixel; decode_frame() local [all...] |
H A D | hevcpred_template.c | 90 ptrdiff_t stride = s->frame->linesize[c_idx] / sizeof(pixel); in intra_pred() 91 pixel *src = (pixel*)s->frame->data[c_idx] + x + y * stride; in intra_pred() 98 pixel left_array[2 * MAX_TB_SIZE + 1]; in intra_pred() 99 pixel filtered_left_array[2 * MAX_TB_SIZE + 1]; in intra_pred() 100 pixel top_array[2 * MAX_TB_SIZE + 1]; in intra_pred() 101 pixel filtered_top_array[2 * MAX_TB_SIZE + 1]; in intra_pred() 103 pixel *left = left_array + 1; in intra_pred() 104 pixel *top = top_array + 1; in intra_pred() 105 pixel *filtered_lef in intra_pred() [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
H A D | ETCTextureTest.cpp | 48 GLubyte pixel[8] = {0x0, 0x0, 0xf8, 0x2, 0x43, 0xff, 0x4, 0x12}; in TEST_P() local 50 sizeof(pixel), pixel); in TEST_P() 56 sizeof(pixel), pixel); in TEST_P() 60 sizeof(pixel), pixel); in TEST_P() 64 sizeof(pixel), pixel); in TEST_P() 80 GLubyte pixel[] in TEST_P() local 123 GLubyte pixel[] = { TEST_P() local 167 GLubyte pixel[] = { TEST_P() local 215 GLubyte pixel[] = { TEST_P() local [all...] |
/third_party/backends/backend/genesys/ |
H A D | image_pixel.cpp | 55 throw SaneException("Unknown pixel format %d", static_cast<unsigned>(format)); in get_pixel_format_color_order() 65 throw SaneException("Unknown pixel format %d", static_cast<unsigned>(format)); in get_pixel_format_depth() 74 throw SaneException("Unknown pixel format %d", static_cast<unsigned>(format)); in get_pixel_channels() 97 throw SaneException("Unknown pixel format %d %d %d", depth, channels, in create_pixel_format() 166 throw SaneException("Unknown pixel format %d", static_cast<unsigned>(format)); in get_pixel_from_row() 170 void set_pixel_to_row(std::uint8_t* data, std::size_t x, Pixel pixel, PixelFormat format) in set_pixel_to_row() argument 174 write_bit(data, x, pixel.r & 0x8000 ? 1 : 0); in set_pixel_to_row() 178 write_bit(data, x, pixel.r & 0x8000 ? 1 : 0); in set_pixel_to_row() 179 write_bit(data, x + 1,pixel.g & 0x8000 ? 1 : 0); in set_pixel_to_row() 180 write_bit(data, x + 2, pixel in set_pixel_to_row() 271 set_raw_pixel_to_row(std::uint8_t* data, std::size_t x, RawPixel pixel, PixelFormat format) set_raw_pixel_to_row() argument 342 set_raw_channel_to_row(std::uint8_t* data, std::size_t x, unsigned channel, std::uint16_t pixel, PixelFormat format) set_raw_channel_to_row() argument 387 set_pixel_to_row(std::uint8_t* data, std::size_t x, Pixel pixel) set_pixel_to_row() argument 399 set_raw_pixel_to_row(std::uint8_t* data, std::size_t x, RawPixel pixel) set_raw_pixel_to_row() argument 411 set_raw_channel_to_row(std::uint8_t* data, std::size_t x, unsigned channel, std::uint16_t pixel) set_raw_channel_to_row() argument [all...] |
/third_party/cups-filters/cupsfilters/ |
H A D | image-tiff.c | 49 samples, /* Number of samples/pixel */ in _cupsImageReadTIFF() 50 bits, /* Number of bits/pixel */ in _cupsImageReadTIFF() 60 bpp, /* Bytes per pixel */ in _cupsImageReadTIFF() 76 pixel, /* Current pixel */ in _cupsImageReadTIFF() local 397 pixel = *scanptr & bit; in _cupsImageReadTIFF() 398 while (pixel > 3) in _cupsImageReadTIFF() 399 pixel >>= 2; in _cupsImageReadTIFF() 400 *p = (255 * pixel / 3) ^ zero; in _cupsImageReadTIFF() 548 pixel in _cupsImageReadTIFF() [all...] |
H A D | dither.c | 54 pixel, /* Current adjusted pixel... */ in cupsDitherLine() local 101 * Error diffuse each output pixel... in cupsDitherLine() 123 * Compute the net pixel brightness and brightness error. Set a dot in cupsDitherLine() 127 pixel = lut[*data].intensity + e0 / 128; in cupsDitherLine() 129 if (pixel > CUPS_MAX_LUT) in cupsDitherLine() 130 pixel = CUPS_MAX_LUT; in cupsDitherLine() 131 else if (pixel < 0) in cupsDitherLine() 132 pixel = 0; in cupsDitherLine() 134 *p = lut[pixel] in cupsDitherLine() [all...] |
H A D | lut.c | 16 * cupsLutNew() - Make a lookup table from a list of pixel values. 92 * 'cupsLutNew()' - Make a lookup table from a list of pixel values. 101 int pixel; /* Pixel value */ in cupsLutNew() local 124 * Generate the dither lookup table. The pixel values are roughly in cupsLutNew() 126 * at each output pixel. This isn't perfectly accurate, but it's in cupsLutNew() 135 for (pixel = 0; pixel < num_values; pixel ++) in cupsLutNew() 138 * Select start and end values for this pixel... in cupsLutNew() 141 if (pixel in cupsLutNew() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
H A D | PixelRoutine.cpp | 862 void PixelRoutine::blendFactor(Vector4s &blendFactor, const Vector4s ¤t, const Vector4s &pixel, BlendFactor blendFactorActive) in blendFactor() argument 883 blendFactor.x = pixel.x; in blendFactor() 884 blendFactor.y = pixel.y; in blendFactor() 885 blendFactor.z = pixel.z; in blendFactor() 888 blendFactor.x = Short4(0xFFFFu) - pixel.x; in blendFactor() 889 blendFactor.y = Short4(0xFFFFu) - pixel.y; in blendFactor() 890 blendFactor.z = Short4(0xFFFFu) - pixel.z; in blendFactor() 903 blendFactor.x = pixel.w; in blendFactor() 904 blendFactor.y = pixel.w; in blendFactor() 905 blendFactor.z = pixel in blendFactor() 943 blendFactorAlpha(Vector4s &blendFactor, const Vector4s ¤t, const Vector4s &pixel, BlendFactor blendFactorAlphaActive) blendFactorAlpha() argument 998 readPixel(int index, Pointer<Byte> &cBuffer, Int &x, Vector4s &pixel) readPixel() argument 1178 Vector4s pixel; alphaBlend() local 1297 Vector4s pixel; logicOperation() local 1918 blendFactor(Vector4f &blendFactor, const Vector4f &oC, const Vector4f &pixel, BlendFactor blendFactorActive) blendFactor() argument 1989 blendFactorAlpha(Vector4f &blendFactor, const Vector4f &oC, const Vector4f &pixel, BlendFactor blendFactorAlphaActive) blendFactorAlpha() argument 2045 Vector4f pixel; alphaBlend() local [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | colorchannelmixer_template.c | 23 #undef pixel macro 27 #define pixel uint8_t macro 31 #define pixel uint16_t macro 36 #define pixel float macro 59 const pixel *srcg = (const pixel *)(in->data[0] + slice_start * in->linesize[0]); in filter_slice_rgba_planar() 60 const pixel *srcb = (const pixel *)(in->data[1] + slice_start * in->linesize[1]); in filter_slice_rgba_planar() 61 const pixel *srcr = (const pixel *)(i in filter_slice_rgba_planar() [all...] |
/third_party/backends/testsuite/backend/genesys/ |
H A D | tests_image.cpp | 85 Pixel pixel; in test_set_pixel_to_row() local 87 pixel = Pixel(0x8000, 0x8000, 0x8000); in test_set_pixel_to_row() 88 set_pixel_to_row(data.data(), 0, pixel, PixelFormat::I1); in test_set_pixel_to_row() 93 pixel = Pixel(0x8000, 0x8000, 0x8000); in test_set_pixel_to_row() 94 set_pixel_to_row(data.data(), 2, pixel, PixelFormat::I1); in test_set_pixel_to_row() 99 pixel = Pixel(0x8000, 0x8000, 0x8000); in test_set_pixel_to_row() 100 set_pixel_to_row(data.data(), 8, pixel, PixelFormat::I1); in test_set_pixel_to_row() 105 pixel = Pixel(0x8000, 0x0000, 0x8000); in test_set_pixel_to_row() 106 set_pixel_to_row(data.data(), 0, pixel, PixelFormat::RGB111); in test_set_pixel_to_row() 111 pixel in test_set_pixel_to_row() 248 RawPixel pixel; test_set_raw_pixel_to_row() local [all...] |
/third_party/skia/src/codec/ |
H A D | SkMasks.cpp | 61 static uint8_t get_comp(uint32_t pixel, uint32_t mask, uint32_t shift, in get_comp() argument 63 return convert_to_8((pixel & mask) >> shift, size); in get_comp() 71 uint8_t SkMasks::getRed(uint32_t pixel) const { in getRed() 72 return get_comp(pixel, fRed.mask, fRed.shift, fRed.size); in getRed() 74 uint8_t SkMasks::getGreen(uint32_t pixel) const { in getGreen() 75 return get_comp(pixel, fGreen.mask, fGreen.shift, fGreen.size); in getGreen() 77 uint8_t SkMasks::getBlue(uint32_t pixel) const { in getBlue() 78 return get_comp(pixel, fBlue.mask, fBlue.shift, fBlue.size); in getBlue() 80 uint8_t SkMasks::getAlpha(uint32_t pixel) const { in getAlpha() 81 return get_comp(pixel, fAlph in getAlpha() [all...] |
/third_party/vk-gl-cts/modules/gles2/functional/ |
H A D | es2fMultisampledRenderToTextureTests.cpp | 113 GLubyte pixel[4] = { 0, 1, 0, 1 }; in iterate() local 114 gl.readPixels(0, 0, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, &pixel); in iterate() 117 if (pixel[0] != 255 || pixel[1] != 0 || pixel[2] != 255 || pixel[3] != 0) in iterate() 120 msg << "ReadPixels read incorrect values: [" << (int)pixel[0] << ", " << (int)pixel[1] << ", " << (int)pixel[2] << ", " << (int)pixel[ in iterate() [all...] |
/third_party/skia/third_party/externals/libpng/contrib/gregbook/ |
H A D | rpng2-x.c | 26 - 1.10: added support for non-default visuals; fixed X pixel-conversion 1030 /* to avoid testing the byte order every pixel (or doubling the size of in rpng2_x_create_window() 1098 ulg pixel; in rpng2_x_load_bg_image() local 1318 pixel = (red << RShift) | in rpng2_x_load_bg_image() 1322 *dest++ = (char)((pixel >> 24) & 0xff); in rpng2_x_load_bg_image() 1323 *dest++ = (char)((pixel >> 16) & 0xff); in rpng2_x_load_bg_image() 1324 *dest++ = (char)((pixel >> 8) & 0xff); in rpng2_x_load_bg_image() 1325 *dest++ = (char)( pixel & 0xff); in rpng2_x_load_bg_image() 1332 pixel = (red << RShift) | in rpng2_x_load_bg_image() 1338 *dest++ = (char)((pixel >> 1 in rpng2_x_load_bg_image() 1390 ulg i, pixel; rpng2_x_display_row() local 1631 ulg pixel; rpng2_x_redisplay_image() local [all...] |
/third_party/ffmpeg/libavcodec/mips/ |
H A D | hevcdsp_mmi.c | 33 pixel *src = (pixel*)_src - 3; \ 34 ptrdiff_t srcstride = _srcstride / sizeof(pixel); \ 128 pixel *src = (pixel*)_src; \ 129 ptrdiff_t srcstride = _srcstride / sizeof(pixel); \ 313 pixel *src = (pixel*)_src - 3; \ 314 ptrdiff_t srcstride = _srcstride / sizeof(pixel); \ 315 pixel *ds [all...] |
/third_party/skia/tests/ |
H A D | SkImageTest.cpp | 39 uint32_t pixel = 0; in DEF_TEST() local 41 tgt.readPixels(info, &pixel, 4, 0, 0); in DEF_TEST() 42 REPORTER_ASSERT(reporter, pixel == SK_ColorGREEN); in DEF_TEST() 43 tgt.readPixels(info, &pixel, 4, gWidth - 6, gWidth - 6); in DEF_TEST() 44 REPORTER_ASSERT(reporter, pixel == SK_ColorGREEN); in DEF_TEST() 46 tgt.readPixels(info, &pixel, 4, gWidth - 5, gWidth - 5); in DEF_TEST() 47 REPORTER_ASSERT(reporter, pixel == SK_ColorTRANSPARENT); in DEF_TEST()
|
/third_party/skia/gm/ |
H A D | unpremul.cpp | 35 SkColor pixel; in DEF_SIMPLE_GM() 36 memcpy(&pixel, bm.getAddr(0,0), sizeof(pixel)); in DEF_SIMPLE_GM() 43 if (close(SkColorGetR(pixel), SkColorGetR(color)) && in DEF_SIMPLE_GM() 44 close(SkColorGetG(pixel), SkColorGetG(color)) && in DEF_SIMPLE_GM() 45 close(SkColorGetB(pixel), SkColorGetB(color)) && in DEF_SIMPLE_GM() 46 close(SkColorGetA(pixel), SkColorGetA(color))) { in DEF_SIMPLE_GM()
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | PixelRoutine.cpp | 941 void PixelRoutine::readPixel(int index, const Pointer<Byte> &cBuffer, const Int &x, Vector4s &pixel) in readPixel() argument 957 pixel.x = (c01 & Short4(0xF000u)); in readPixel() 958 pixel.y = (c01 & Short4(0x0F00u)) << 4; in readPixel() 959 pixel.z = (c01 & Short4(0x00F0u)) << 8; in readPixel() 960 pixel.w = (c01 & Short4(0x000Fu)) << 12; in readPixel() 963 pixel.x |= As<Short4>(As<UShort4>(pixel.x) >> 4); in readPixel() 964 pixel.x |= As<Short4>(As<UShort4>(pixel.x) >> 8); in readPixel() 965 pixel in readPixel() [all...] |