Home
last modified time | relevance | path

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

/third_party/flutter/skia/gm/
Dwacky_yuv_formats.cpp114 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 …]
Dyuvtorgbeffect.cpp123 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/
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()
/third_party/flutter/skia/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()
/third_party/flutter/skia/src/image/
DSkImage_GpuYUVA.cpp34 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 …]
DSkImage_Gpu.cpp208 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 …]
DSkImage_GpuBase.h68 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]);
DSkImage_GpuBase.cpp244 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()
DSkImage_Lazy.cpp366 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()
DSkImage_Gpu.h65 const SkYUVAIndex yuvaIndices[4],
DSkImage_GpuYUVA.h68 const SkYUVAIndex yuvaIndices[4],
DSkImage.cpp459 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATexturesCopy()
470 const SkYUVAIndex yuvaIndices[4], in MakeFromYUVATexturesCopyWithExternalBackend()
/third_party/flutter/skia/include/core/
DSkYUVAIndex.h49 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()
DSkImageGenerator.h95 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount],
111 const SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount],
DSkImage.h403 const SkYUVAIndex yuvaIndices[4],
430 const SkYUVAIndex yuvaIndices[4],
456 const SkYUVAIndex yuvaIndices[4],
489 const SkYUVAIndex yuvaIndices[4], SkISize imageSize, GrSurfaceOrigin imageOrigin,
DSkDeferredDisplayListRecorder.h150 const SkYUVAIndex yuvaIndices[4],
/third_party/flutter/skia/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()
271 const SkYUVAIndex yuvaIndices[4], in makeYUVAPromiseTexture()
289 yuvaIndices, in makeYUVAPromiseTexture()
/third_party/flutter/skia/tools/
DDDLPromiseImageHelper.cpp60 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()
DDDLPromiseImageHelper.h145 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/
DGrYUVProvider.cpp27 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()
DGrYUVProvider.h69 SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount],
84 const SkYUVAIndex yuvaIndices[SkYUVAIndex::kIndexCount],
/third_party/flutter/skia/src/gpu/effects/
DGrYUVtoRGBEffect.cpp39 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()
DGrYUVtoRGBEffect.h45 const SkYUVAIndex yuvaIndices[4], SkYUVColorSpace yuvColorSpace, in GrYUVtoRGBEffect()
79 memcpy(fYUVAIndices, yuvaIndices, sizeof(fYUVAIndices));
/third_party/flutter/skia/site/user/api/
DSkImage_Reference.md59 … 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 …]