/external/skia/gm/ |
D | wacky_yuv_formats.cpp | 339 SkBitmap resultBMs[], SkYUVAIndex yuvaIndices[4], bool opaque) { in create_YUV() 365 yuvaIndices[0].fIndex = 0; in create_YUV() 366 yuvaIndices[0].fChannel = SkColorChannel::kR; in create_YUV() 367 yuvaIndices[1].fIndex = 0; in create_YUV() 368 yuvaIndices[1].fChannel = SkColorChannel::kG; in create_YUV() 369 yuvaIndices[2].fIndex = 0; in create_YUV() 370 yuvaIndices[2].fChannel = SkColorChannel::kB; in create_YUV() 371 yuvaIndices[3].fIndex = 0; in create_YUV() 372 yuvaIndices[3].fChannel = SkColorChannel::kA; in create_YUV() 398 yuvaIndices[0].fIndex = 0; in create_YUV() [all …]
|
/external/skqp/gm/ |
D | wacky_yuv_formats.cpp | 334 SkBitmap resultBMs[], SkYUVAIndex yuvaIndices[4], bool opaque) { in create_YUV() 360 yuvaIndices[0].fIndex = 0; in create_YUV() 361 yuvaIndices[0].fChannel = SkColorChannel::kR; in create_YUV() 362 yuvaIndices[1].fIndex = 0; in create_YUV() 363 yuvaIndices[1].fChannel = SkColorChannel::kG; in create_YUV() 364 yuvaIndices[2].fIndex = 0; in create_YUV() 365 yuvaIndices[2].fChannel = SkColorChannel::kB; in create_YUV() 366 yuvaIndices[3].fIndex = 0; in create_YUV() 367 yuvaIndices[3].fChannel = SkColorChannel::kA; in create_YUV() 393 yuvaIndices[0].fIndex = 0; in create_YUV() [all …]
|
/external/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()
|
/external/skqp/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()
|
/external/skqp/src/image/ |
D | SkImage_GpuYUVA.cpp | 30 int numProxies, const SkYUVAIndex yuvaIndices[4], in SkImage_GpuYUVA() 36 GetAlphaTypeFromYUVAIndices(yuvaIndices), imageColorSpace) in SkImage_GpuYUVA() 42 SkASSERT(SkYUVAIndex::AreValidIndices(yuvaIndices, &textureCount)); in SkImage_GpuYUVA() 48 memcpy(fYUVAIndices, yuvaIndices, 4*sizeof(SkYUVAIndex)); in SkImage_GpuYUVA() 168 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATextures() 173 if (!SkYUVAIndex::AreValidIndices(yuvaIndices, &numTextures)) { in MakeFromYUVATextures() 178 if (!SkImage_GpuBase::MakeTempTextureProxies(ctx, yuvaTextures, numTextures, yuvaIndices, in MakeFromYUVATextures() 185 numTextures, yuvaIndices, imageOrigin, imageColorSpace); in MakeFromYUVATextures() 190 const SkYUVAIndex yuvaIndices[4], SkISize imageSize, GrSurfaceOrigin imageOrigin, in MakeFromYUVAPixmaps() 193 if (!SkYUVAIndex::AreValidIndices(yuvaIndices, &numPixmaps)) { in MakeFromYUVAPixmaps() [all …]
|
D | SkImage_Gpu.cpp | 187 const SkYUVAIndex yuvaIndices[4], SkISize size, in ConvertYUVATexturesToRGB() 193 if (!SkYUVAIndex::AreValidIndices(yuvaIndices, &numTextures)) { in ConvertYUVATexturesToRGB() 198 if (!SkImage_GpuBase::MakeTempTextureProxies(ctx, yuvaTextures, numTextures, yuvaIndices, in ConvertYUVATexturesToRGB() 205 tempTextureProxies, yuvaIndices)) { in ConvertYUVATexturesToRGB() 209 SkAlphaType at = GetAlphaTypeFromYUVAIndices(yuvaIndices); in ConvertYUVATexturesToRGB() 219 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATexturesCopy() 238 return SkImage_Gpu::ConvertYUVATexturesToRGB(ctx, yuvColorSpace, yuvaTextures, yuvaIndices, in MakeFromYUVATexturesCopy() 246 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATexturesCopyWithExternalBackend() 253 SkAlphaType at = SkImage_GpuBase::GetAlphaTypeFromYUVAIndices(yuvaIndices); in MakeFromYUVATexturesCopyWithExternalBackend() 270 return SkImage_Gpu::ConvertYUVATexturesToRGB(ctx, yuvColorSpace, yuvaTextures, yuvaIndices, in MakeFromYUVATexturesCopyWithExternalBackend() [all …]
|
D | SkImage_GpuYUVA.h | 43 SkYUVAIndex yuvaIndices[4], in asYUVATextureProxiesRef() 47 yuvaIndices[i] = fYUVAIndices[i]; in asYUVATextureProxiesRef() 67 const SkYUVAIndex yuvaIndices[4],
|
D | SkImage_GpuBase.h | 67 static SkAlphaType GetAlphaTypeFromYUVAIndices(const SkYUVAIndex yuvaIndices[4]) { in GetAlphaTypeFromYUVAIndices() 68 return -1 != yuvaIndices[SkYUVAIndex::kA_Index].fIndex ? kPremul_SkAlphaType in GetAlphaTypeFromYUVAIndices() 93 const SkYUVAIndex yuvaIndices[4]);
|
/external/skia/src/image/ |
D | SkImage_GpuYUVA.cpp | 32 int numProxies, const SkYUVAIndex yuvaIndices[4], in SkImage_GpuYUVA() 38 GetAlphaTypeFromYUVAIndices(yuvaIndices), imageColorSpace) in SkImage_GpuYUVA() 44 SkASSERT(SkYUVAIndex::AreValidIndices(yuvaIndices, &textureCount)); in SkImage_GpuYUVA() 50 memcpy(fYUVAIndices, yuvaIndices, 4*sizeof(SkYUVAIndex)); in SkImage_GpuYUVA() 190 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATextures() 195 if (!SkYUVAIndex::AreValidIndices(yuvaIndices, &numTextures)) { in MakeFromYUVATextures() 200 if (!SkImage_GpuBase::MakeTempTextureProxies(ctx, yuvaTextures, numTextures, yuvaIndices, in MakeFromYUVATextures() 207 numTextures, yuvaIndices, imageOrigin, imageColorSpace); in MakeFromYUVATextures() 212 const SkYUVAIndex yuvaIndices[4], SkISize imageSize, GrSurfaceOrigin imageOrigin, in MakeFromYUVAPixmaps() 215 if (!SkYUVAIndex::AreValidIndices(yuvaIndices, &numPixmaps)) { in MakeFromYUVAPixmaps() [all …]
|
D | SkImage_Gpu.cpp | 197 const SkYUVAIndex yuvaIndices[4], SkISize size, in ConvertYUVATexturesToRGB() 203 if (!SkYUVAIndex::AreValidIndices(yuvaIndices, &numTextures)) { in ConvertYUVATexturesToRGB() 208 if (!SkImage_GpuBase::MakeTempTextureProxies(ctx, yuvaTextures, numTextures, yuvaIndices, in ConvertYUVATexturesToRGB() 215 tempTextureProxies, yuvaIndices)) { in ConvertYUVATexturesToRGB() 219 SkAlphaType at = GetAlphaTypeFromYUVAIndices(yuvaIndices); in ConvertYUVATexturesToRGB() 229 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATexturesCopy() 248 return SkImage_Gpu::ConvertYUVATexturesToRGB(ctx, yuvColorSpace, yuvaTextures, yuvaIndices, in MakeFromYUVATexturesCopy() 256 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATexturesCopyWithExternalBackend() 263 SkAlphaType at = SkImage_GpuBase::GetAlphaTypeFromYUVAIndices(yuvaIndices); in MakeFromYUVATexturesCopyWithExternalBackend() 280 return SkImage_Gpu::ConvertYUVATexturesToRGB(ctx, yuvColorSpace, yuvaTextures, yuvaIndices, in MakeFromYUVATexturesCopyWithExternalBackend() [all …]
|
D | SkImage_GpuYUVA.h | 46 SkYUVAIndex yuvaIndices[4], in asYUVATextureProxiesRef() 50 yuvaIndices[i] = fYUVAIndices[i]; in asYUVATextureProxiesRef() 68 const SkYUVAIndex yuvaIndices[4],
|
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() 94 const SkYUVAIndex yuvaIndices[4]);
|
/external/skqp/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()
|
/external/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()
|
/external/skqp/tools/ |
D | DDLPromiseImageHelper.cpp | 66 const SkYUVAIndex yuvaIndices[4], int texIndex) { in create_yuva_texture() 70 if (yuvaIndices[i].fIndex == texIndex) { in create_yuva_texture() 119 SkAssertResult(SkYUVAIndex::AreValidIndices(info.yuvaIndices(), &numPixmaps)); in uploadAllToGPU() 127 info.yuvaIndices(), j)); in uploadAllToGPU() 163 SkAssertResult(SkYUVAIndex::AreValidIndices(info.yuvaIndices(), &numPixmaps)); in replaceEveryOtherPromiseTexture() 167 create_yuva_texture(gpu, yuvPixmap, info.yuvaIndices(), j)); in replaceEveryOtherPromiseTexture() 226 SkAssertResult(SkYUVAIndex::AreValidIndices(curImage.yuvaIndices(), &textureCount)); in PromiseImageCreator() 241 curImage.yuvaIndices(), in PromiseImageCreator() 305 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount]; in addImage() local 308 sk_sp<SkCachedData> yuvData = ib->getPlanes(&yuvaSizeInfo, yuvaIndices, &yuvColorSpace, planes); in addImage() [all …]
|
/external/skia/include/core/ |
D | SkYUVAIndex.h | 60 static bool AreValidIndices(const SkYUVAIndex yuvaIndices[4], int* numPlanes) { in AreValidIndices() 68 if (yuvaIndices[i].fIndex < 0) { in AreValidIndices() 72 } else if (yuvaIndices[i].fIndex > 3) { in AreValidIndices() 75 maxSlotUsed = SkTMax(yuvaIndices[i].fIndex, maxSlotUsed); in AreValidIndices()
|
/external/skqp/include/core/ |
D | SkYUVAIndex.h | 60 static bool AreValidIndices(const SkYUVAIndex yuvaIndices[4], int* numPlanes) { in AreValidIndices() 68 if (yuvaIndices[i].fIndex < 0) { in AreValidIndices() 72 } else if (yuvaIndices[i].fIndex > 3) { in AreValidIndices() 75 maxSlotUsed = SkTMax(yuvaIndices[i].fIndex, maxSlotUsed); in AreValidIndices()
|
D | SkDeferredDisplayListRecorder.h | 168 const SkYUVAIndex yuvaIndices[4], 183 const SkYUVAIndex yuvaIndices[4], in makeYUVAPromiseTexture() 193 yuvColorSpace, yuvaFormats, yuvaSizes, yuvaIndices, imageWidth, imageHeight, in makeYUVAPromiseTexture()
|
/external/skqp/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()
|
/external/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()
|
/external/skia/tools/ |
D | DDLPromiseImageHelper.cpp | 61 const SkYUVAIndex yuvaIndices[4], int texIndex) { in create_yuva_texture() 65 if (yuvaIndices[i].fIndex == texIndex) { in create_yuva_texture() 114 SkAssertResult(SkYUVAIndex::AreValidIndices(info.yuvaIndices(), &numPixmaps)); in uploadAllToGPU() 122 info.yuvaIndices(), j)); in uploadAllToGPU() 193 SkAssertResult(SkYUVAIndex::AreValidIndices(curImage.yuvaIndices(), &textureCount)); in PromiseImageCreator() 208 curImage.yuvaIndices(), in PromiseImageCreator() 280 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount]; in addImage() local 283 sk_sp<SkCachedData> yuvData = ib->getPlanes(&yuvaSizeInfo, yuvaIndices, &yuvColorSpace, planes); in addImage() 285 newImageInfo.setYUVData(std::move(yuvData), yuvaIndices, yuvColorSpace); in addImage() 294 int texIdx = yuvaIndices[yuvIndex].fIndex; in addImage()
|
/external/skqp/src/gpu/ |
D | GrYUVProvider.cpp | 25 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], in getPlanes() 89 memcpy(yuvaIndices, yuvInfo.fYUVAIndices, sizeof(yuvInfo.fYUVAIndices)); in getPlanes() 110 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount]; in refAsTextureProxy() local 114 sk_sp<SkCachedData> dataStorage = this->getPlanes(&yuvSizeInfo, yuvaIndices, in refAsTextureProxy() 168 auto yuvToRgbProcessor = GrYUVtoRGBEffect::Make(yuvTextureProxies, yuvaIndices, yuvColorSpace, in refAsTextureProxy()
|
/external/skia/src/gpu/ |
D | GrYUVProvider.cpp | 25 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], in getPlanes() 89 memcpy(yuvaIndices, yuvInfo.fYUVAIndices, sizeof(yuvInfo.fYUVAIndices)); in getPlanes() 110 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount]; in refAsTextureProxy() local 114 sk_sp<SkCachedData> dataStorage = this->getPlanes(&yuvSizeInfo, yuvaIndices, in refAsTextureProxy() 168 auto yuvToRgbProcessor = GrYUVtoRGBEffect::Make(yuvTextureProxies, yuvaIndices, yuvColorSpace, in refAsTextureProxy()
|
/external/skia/src/gpu/effects/ |
D | GrYUVtoRGBEffect.cpp | 39 const SkYUVAIndex yuvaIndices[4], in Make() 43 SkAssertResult(SkYUVAIndex::AreValidIndices(yuvaIndices, &numPlanes)); in Make() 45 const SkISize YSize = proxies[yuvaIndices[SkYUVAIndex::kY_Index].fIndex]->isize(); in Make() 76 proxies, scales, filterModes, numPlanes, yuvaIndices, mat)); in Make()
|
/external/skqp/src/gpu/effects/ |
D | GrYUVtoRGBEffect.cpp | 32 const SkYUVAIndex yuvaIndices[4], in Make() 36 SkAssertResult(SkYUVAIndex::AreValidIndices(yuvaIndices, &numPlanes)); in Make() 38 const SkISize YSize = proxies[yuvaIndices[SkYUVAIndex::kY_Index].fIndex]->isize(); in Make() 66 proxies, scales, filterModes, numPlanes, yuvaIndices, mat)); in Make()
|