Home
last modified time | relevance | path

Searched refs:yuvaIndices (Results 1 – 25 of 26) sorted by relevance

12

/external/skqp/gm/
Dwacky_yuv_formats.cpp334 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 …]
Dyuvtorgbeffect.cpp115 SkYUVAIndex yuvaIndices[4] = { in onDraw() local
123 GrYUVtoRGBEffect::Make(proxies, yuvaIndices, in onDraw()
226 SkYUVAIndex yuvaIndices[4] = { in onDraw() local
247 auto fp = GrYUVtoRGBEffect::Make(proxies, yuvaIndices, in onDraw()
/external/skqp/src/codec/
DSkCodecImageGenerator.cpp70 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/
DSkImage_GpuYUVA.cpp30 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 …]
DSkImage_Gpu.cpp187 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 …]
DSkImage_GpuYUVA.h43 SkYUVAIndex yuvaIndices[4], in asYUVATextureProxiesRef()
47 yuvaIndices[i] = fYUVAIndices[i]; in asYUVATextureProxiesRef()
67 const SkYUVAIndex yuvaIndices[4],
DSkImage_GpuBase.h67 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]);
DSkImage_Lazy.cpp308 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], in onQueryYUVA8()
310 return fGen->queryYUVA8(sizeInfo, yuvaIndices, colorSpace); in onQueryYUVA8()
313 const SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], in onGetYUVA8Planes()
315 return fGen->getYUVA8Planes(sizeInfo, yuvaIndices, planes); in onGetYUVA8Planes()
342 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], in getPlanes()
348 sk_sp<SkCachedData> data = provider.getPlanes(yuvaSizeInfo, yuvaIndices, yuvColorSpace, planes); in getPlanes()
DSkImage_GpuBase.cpp285 int numTextures, const SkYUVAIndex yuvaIndices[4], in MakeTempTextureProxies()
316 if (yuvaIndices[yuvaIndex].fIndex == textureIndex) { in MakeTempTextureProxies()
317 switch (yuvaIndices[yuvaIndex].fChannel) { in MakeTempTextureProxies()
347 const SkYUVAIndex yuvaIndices[4]) { in RenderYUVAToRGBA()
356 paint.addColorFragmentProcessor(GrYUVtoRGBEffect::Make(proxies, yuvaIndices, in RenderYUVAToRGBA()
DSkImage_Gpu.h62 const SkYUVAIndex yuvaIndices[4],
DSkImage.cpp399 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATexturesCopy()
410 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATexturesCopyWithExternalBackend()
/external/skqp/tests/
DImageGeneratorTest.cpp75 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/include/core/
DSkYUVAIndex.h60 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()
DSkDeferredDisplayListRecorder.h168 const SkYUVAIndex yuvaIndices[4],
183 const SkYUVAIndex yuvaIndices[4], in makeYUVAPromiseTexture()
193 yuvColorSpace, yuvaFormats, yuvaSizes, yuvaIndices, imageWidth, imageHeight, in makeYUVAPromiseTexture()
DSkImage.h374 const SkYUVAIndex yuvaIndices[4],
401 const SkYUVAIndex yuvaIndices[4],
427 const SkYUVAIndex yuvaIndices[4],
460 const SkYUVAIndex yuvaIndices[4], SkISize imageSize, GrSurfaceOrigin imageOrigin,
DSkImageGenerator.h96 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount],
112 const SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount],
/external/skqp/tools/
DDDLPromiseImageHelper.cpp66 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 …]
DDDLPromiseImageHelper.h151 const SkYUVAIndex* yuvaIndices() const { in yuvaIndices() function
186 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount], in setYUVData()
189 memcpy(fYUVAIndices, yuvaIndices, sizeof(fYUVAIndices)); in setYUVData()
/external/skqp/src/core/
DSkImageGenerator.cpp34 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()
DSkDeferredDisplayListRecorder.cpp46 const SkYUVAIndex yuvaIndices[4], in makeYUVAPromiseTexture()
251 const SkYUVAIndex yuvaIndices[4], in makeYUVAPromiseTexture()
269 yuvaIndices, in makeYUVAPromiseTexture()
/external/skqp/src/gpu/
DGrYUVProvider.cpp25 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()
DGrYUVProvider.h68 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount],
83 const SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount],
/external/skqp/src/gpu/effects/
DGrYUVtoRGBEffect.cpp32 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()
DGrYUVtoRGBEffect.h38 const SkYUVAIndex yuvaIndices[4], const SkMatrix44& colorSpaceMatrix) in GrYUVtoRGBEffect()
54 memcpy(fYUVAIndices, yuvaIndices, sizeof(fYUVAIndices)); in GrYUVtoRGBEffect()
/external/skqp/docs/
DSkImage_Reference.bmh468 const SkYUVAIndex yuvaIndices[4],
486 const SkYUVAIndex yuvaIndices[4],
506 const SkYUVAIndex yuvaIndices[4],
530 const SkYUVAIndex yuvaIndices[4],

12