/third_party/flutter/skia/gm/ |
D | wacky_yuv_formats.cpp | 114 static void setup_yuv_indices(YUVFormat yuvFormat, bool addExtraAlpha, SkYUVAIndex yuvaIndices[4]) { in setup_yuv_indices() 118 yuvaIndices[0].fIndex = 0; in setup_yuv_indices() 119 yuvaIndices[0].fChannel = SkColorChannel::kR; // bc 16bit is stored in R16 format in setup_yuv_indices() 120 yuvaIndices[1].fIndex = 1; in setup_yuv_indices() 121 yuvaIndices[1].fChannel = SkColorChannel::kR; in setup_yuv_indices() 122 yuvaIndices[2].fIndex = 1; in setup_yuv_indices() 123 yuvaIndices[2].fChannel = SkColorChannel::kG; in setup_yuv_indices() 125 yuvaIndices[3].fIndex = 2; in setup_yuv_indices() 126 yuvaIndices[3].fChannel = SkColorChannel::kR; // bc 16bit is stored in R16 format in setup_yuv_indices() 128 yuvaIndices[3].fIndex = -1; // No alpha channel in setup_yuv_indices() [all …]
|
D | yuvtorgbeffect.cpp | 123 SkYUVAIndex yuvaIndices[4] = { in onDraw() local 131 GrYUVtoRGBEffect::Make(proxies, yuvaIndices, in onDraw() 230 SkYUVAIndex yuvaIndices[4] = { in onDraw() local 247 auto fp = GrYUVtoRGBEffect::Make(proxies, yuvaIndices, in onDraw() 333 SkYUVAIndex yuvaIndices[4] = { in onDraw() local 357 std::unique_ptr<GrFragmentProcessor> fp(GrYUVtoRGBEffect::Make(proxies, yuvaIndices, in onDraw()
|
/third_party/flutter/skia/src/codec/ |
D | SkCodecImageGenerator.cpp | 70 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], in onQueryYUVA8() 73 yuvaIndices[SkYUVAIndex::kY_Index].fIndex = 0; in onQueryYUVA8() 74 yuvaIndices[SkYUVAIndex::kY_Index].fChannel = SkColorChannel::kR; in onQueryYUVA8() 75 yuvaIndices[SkYUVAIndex::kU_Index].fIndex = 1; in onQueryYUVA8() 76 yuvaIndices[SkYUVAIndex::kU_Index].fChannel = SkColorChannel::kR; in onQueryYUVA8() 77 yuvaIndices[SkYUVAIndex::kV_Index].fIndex = 2; in onQueryYUVA8() 78 yuvaIndices[SkYUVAIndex::kV_Index].fChannel = SkColorChannel::kR; in onQueryYUVA8() 79 yuvaIndices[SkYUVAIndex::kA_Index].fIndex = -1; in onQueryYUVA8() 80 yuvaIndices[SkYUVAIndex::kA_Index].fChannel = SkColorChannel::kR; in onQueryYUVA8()
|
/third_party/flutter/skia/tests/ |
D | ImageGeneratorTest.cpp | 75 SkYUVAIndex yuvaIndices[4]; in DEF_TEST() local 79 ig.queryYUVA8(&sizeInfo, yuvaIndices, nullptr); in DEF_TEST() 80 ig.queryYUVA8(&sizeInfo, yuvaIndices, &colorSpace); in DEF_TEST() 85 yuvaIndices[0] = { 0, SkColorChannel::kR }; in DEF_TEST() 86 yuvaIndices[1] = { 1, SkColorChannel::kR }; in DEF_TEST() 87 yuvaIndices[2] = { 2, SkColorChannel::kR }; in DEF_TEST() 88 yuvaIndices[3] = { 3, SkColorChannel::kR }; in DEF_TEST() 91 ig.getYUVA8Planes(sizeInfo, yuvaIndices, planes); in DEF_TEST()
|
/third_party/flutter/skia/src/image/ |
D | SkImage_GpuYUVA.cpp | 34 int numProxies, const SkYUVAIndex yuvaIndices[4], in SkImage_GpuYUVA() 40 GetAlphaTypeFromYUVAIndices(yuvaIndices), std::move(imageColorSpace)) in SkImage_GpuYUVA() 46 SkASSERT(SkYUVAIndex::AreValidIndices(yuvaIndices, &textureCount)); in SkImage_GpuYUVA() 52 memcpy(fYUVAIndices, yuvaIndices, 4*sizeof(SkYUVAIndex)); in SkImage_GpuYUVA() 222 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATextures() 227 if (!SkYUVAIndex::AreValidIndices(yuvaIndices, &numTextures)) { in MakeFromYUVATextures() 232 if (!SkImage_GpuBase::MakeTempTextureProxies(ctx, yuvaTextures, numTextures, yuvaIndices, in MakeFromYUVATextures() 239 numTextures, yuvaIndices, imageOrigin, imageColorSpace); in MakeFromYUVATextures() 244 const SkYUVAIndex yuvaIndices[4], SkISize imageSize, GrSurfaceOrigin imageOrigin, in MakeFromYUVAPixmaps() 251 if (!SkYUVAIndex::AreValidIndices(yuvaIndices, &numPixmaps)) { in MakeFromYUVAPixmaps() [all …]
|
D | SkImage_Gpu.cpp | 208 const SkYUVAIndex yuvaIndices[4], SkISize size, in ConvertYUVATexturesToRGB() 214 if (!SkYUVAIndex::AreValidIndices(yuvaIndices, &numTextures)) { in ConvertYUVATexturesToRGB() 219 if (!SkImage_GpuBase::MakeTempTextureProxies(ctx, yuvaTextures, numTextures, yuvaIndices, in ConvertYUVATexturesToRGB() 226 tempTextureProxies, yuvaIndices)) { in ConvertYUVATexturesToRGB() 230 SkAlphaType at = GetAlphaTypeFromYUVAIndices(yuvaIndices); in ConvertYUVATexturesToRGB() 240 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATexturesCopy() 255 return SkImage_Gpu::ConvertYUVATexturesToRGB(ctx, yuvColorSpace, yuvaTextures, yuvaIndices, in MakeFromYUVATexturesCopy() 263 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATexturesCopyWithExternalBackend() 276 SkAlphaType at = SkImage_GpuBase::GetAlphaTypeFromYUVAIndices(yuvaIndices); in MakeFromYUVATexturesCopyWithExternalBackend() 293 return SkImage_Gpu::ConvertYUVATexturesToRGB(ctx, yuvColorSpace, yuvaTextures, yuvaIndices, in MakeFromYUVATexturesCopyWithExternalBackend() [all …]
|
D | SkImage_GpuBase.h | 68 static SkAlphaType GetAlphaTypeFromYUVAIndices(const SkYUVAIndex yuvaIndices[4]) { in GetAlphaTypeFromYUVAIndices() 69 return -1 != yuvaIndices[SkYUVAIndex::kA_Index].fIndex ? kPremul_SkAlphaType in GetAlphaTypeFromYUVAIndices() 95 const SkYUVAIndex yuvaIndices[4]);
|
D | SkImage_GpuBase.cpp | 244 int numTextures, const SkYUVAIndex yuvaIndices[4], in MakeTempTextureProxies() 258 yuvaIndices[3].fIndex == textureIndex); in MakeTempTextureProxies() 275 if (yuvaIndices[yuvaIndex].fIndex == textureIndex) { in MakeTempTextureProxies() 276 switch (yuvaIndices[yuvaIndex].fChannel) { in MakeTempTextureProxies() 311 const SkYUVAIndex yuvaIndices[4]) { in RenderYUVAToRGBA() 320 auto fp = GrYUVtoRGBEffect::Make(proxies, yuvaIndices, yuvColorSpace, in RenderYUVAToRGBA()
|
D | SkImage_Lazy.cpp | 366 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], in onQueryYUVA8() 368 return fGen->queryYUVA8(sizeInfo, yuvaIndices, colorSpace); in onQueryYUVA8() 371 const SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], in onGetYUVA8Planes() 373 return fGen->getYUVA8Planes(sizeInfo, yuvaIndices, planes); in onGetYUVA8Planes() 400 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], in getPlanes() 406 sk_sp<SkCachedData> data = provider.getPlanes(yuvaSizeInfo, yuvaIndices, yuvColorSpace, planes); in getPlanes()
|
D | SkImage_Gpu.h | 65 const SkYUVAIndex yuvaIndices[4],
|
D | SkImage_GpuYUVA.h | 68 const SkYUVAIndex yuvaIndices[4],
|
D | SkImage.cpp | 459 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATexturesCopy() 470 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATexturesCopyWithExternalBackend()
|
/third_party/flutter/skia/include/core/ |
D | SkYUVAIndex.h | 49 static bool AreValidIndices(const SkYUVAIndex yuvaIndices[4], int* numPlanes) { in AreValidIndices() 57 if (yuvaIndices[i].fIndex < 0) { in AreValidIndices() 61 } else if (yuvaIndices[i].fIndex > 3) { in AreValidIndices() 64 maxSlotUsed = SkTMax(yuvaIndices[i].fIndex, maxSlotUsed); in AreValidIndices()
|
D | SkImageGenerator.h | 95 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], 111 const SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount],
|
D | SkImage.h | 403 const SkYUVAIndex yuvaIndices[4], 430 const SkYUVAIndex yuvaIndices[4], 456 const SkYUVAIndex yuvaIndices[4], 489 const SkYUVAIndex yuvaIndices[4], SkISize imageSize, GrSurfaceOrigin imageOrigin,
|
D | SkDeferredDisplayListRecorder.h | 150 const SkYUVAIndex yuvaIndices[4],
|
/third_party/flutter/skia/src/core/ |
D | SkImageGenerator.cpp | 34 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], in queryYUVA8() 38 return this->onQueryYUVA8(sizeInfo, yuvaIndices, colorSpace); in queryYUVA8() 42 const SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], in getYUVA8Planes() 52 SkASSERT(SkYUVAIndex::AreValidIndices(yuvaIndices, &numPlanes)); in getYUVA8Planes() 58 return this->onGetYUVA8Planes(sizeInfo, yuvaIndices, planes); in getYUVA8Planes()
|
D | SkDeferredDisplayListRecorder.cpp | 46 const SkYUVAIndex yuvaIndices[4], in makeYUVAPromiseTexture() 271 const SkYUVAIndex yuvaIndices[4], in makeYUVAPromiseTexture() 289 yuvaIndices, in makeYUVAPromiseTexture()
|
/third_party/flutter/skia/tools/ |
D | DDLPromiseImageHelper.cpp | 60 const SkYUVAIndex yuvaIndices[4], int texIndex) { in create_yuva_texture() 64 if (yuvaIndices[i].fIndex == texIndex) { in create_yuva_texture() 104 SkAssertResult(SkYUVAIndex::AreValidIndices(info.yuvaIndices(), &numPixmaps)); in uploadAllToGPU() 112 info.yuvaIndices(), j)); in uploadAllToGPU() 182 SkAssertResult(SkYUVAIndex::AreValidIndices(curImage.yuvaIndices(), &textureCount)); in PromiseImageCreator() 198 curImage.yuvaIndices(), in PromiseImageCreator() 276 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount]; in addImage() local 279 sk_sp<SkCachedData> yuvData = ib->getPlanes(&yuvaSizeInfo, yuvaIndices, &yuvColorSpace, planes); in addImage() 281 newImageInfo.setYUVData(std::move(yuvData), yuvaIndices, yuvColorSpace); in addImage() 290 int texIdx = yuvaIndices[yuvIndex].fIndex; in addImage()
|
D | DDLPromiseImageHelper.h | 145 const SkYUVAIndex* yuvaIndices() const { in yuvaIndices() function 180 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], in setYUVData() 183 memcpy(fYUVAIndices, yuvaIndices, sizeof(fYUVAIndices)); in setYUVData()
|
/third_party/flutter/skia/src/gpu/ |
D | GrYUVProvider.cpp | 27 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], in getPlanes() 91 memcpy(yuvaIndices, yuvInfo.fYUVAIndices, sizeof(yuvInfo.fYUVAIndices)); in getPlanes() 112 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount]; in refAsTextureProxy() local 116 sk_sp<SkCachedData> dataStorage = this->getPlanes(&yuvSizeInfo, yuvaIndices, in refAsTextureProxy() 169 auto yuvToRgbProcessor = GrYUVtoRGBEffect::Make(yuvTextureProxies, yuvaIndices, yuvColorSpace, in refAsTextureProxy()
|
D | GrYUVProvider.h | 69 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], 84 const SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount],
|
/third_party/flutter/skia/src/gpu/effects/ |
D | GrYUVtoRGBEffect.cpp | 39 const SkYUVAIndex yuvaIndices[4], in Make() 45 SkAssertResult(SkYUVAIndex::AreValidIndices(yuvaIndices, &numPlanes)); in Make() 47 const SkISize YSize = proxies[yuvaIndices[SkYUVAIndex::kY_Index].fIndex]->isize(); in Make() 63 proxies, scales, filterModes, numPlanes, yuvaIndices, yuvColorSpace, localMatrix, in Make()
|
D | GrYUVtoRGBEffect.h | 45 const SkYUVAIndex yuvaIndices[4], SkYUVColorSpace yuvColorSpace, in GrYUVtoRGBEffect() 79 memcpy(fYUVAIndices, yuvaIndices, sizeof(fYUVAIndices));
|
/third_party/flutter/skia/site/user/api/ |
D | SkImage_Reference.md | 59 … const <a href='undocumented#SkYUVAIndex'>SkYUVAIndex</a> yuvaIndices[4], 67 const <a href='undocumented#SkYUVAIndex'>SkYUVAIndex</a> yuvaIndices[4], 75 … const <a href='undocumented#SkYUVAIndex'>SkYUVAIndex</a> yuvaIndices[4], 81 …const <a href='undocumented#SkYUVAIndex'>SkYUVAIndex</a> yuvaIndices[4], <a href='undocumented#SkI… 855 …const <a href='undocumented#SkYUVAIndex'>SkYUVAIndex</a> yuvaIndices[4], <a href='undocumented#SkI… 887 …d><a name='SkImage_MakeFromYUVATexturesCopy_yuvaIndices'><code><strong>yuvaIndices</strong></code>… 928 …const <a href='undocumented#SkYUVAIndex'>SkYUVAIndex</a> yuvaIndices[4], <a href='undocumented#SkI… 960 <table> <tr> <td><a name='SkImage_MakeFromYUVATextures_yuvaIndices'><code><strong>yuvaIndices</… 1003 …const <a href='undocumented#SkYUVAIndex'>SkYUVAIndex</a> yuvaIndices[4], <a href='undocumented#SkI… 1042 <table> <tr> <td><a name='SkImage_MakeFromYUVAPixmaps_yuvaIndices'><code><strong>yuvaIndices</s… [all …]
|