Home
last modified time | relevance | path

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

12

/external/intel-media-driver/media_driver/linux/common/ddi/
Dmedia_libva_common.cpp185 …PDDI_MEDIA_SURFACE dstSurface = (DDI_MEDIA_SURFACE *)MOS_AllocAndZeroMemory(sizeof(DDI_MEDIA_SURFA… in DdiMedia_ReplaceSurfaceWithNewFormat() local
186 DDI_CHK_NULL(dstSurface, "nullptr dstSurface", nullptr); in DdiMedia_ReplaceSurfaceWithNewFormat()
189 MOS_FreeMemory(dstSurface); in DdiMedia_ReplaceSurfaceWithNewFormat()
193 MOS_SecureMemcpy(dstSurface,sizeof(DDI_MEDIA_SURFACE),surface,sizeof(DDI_MEDIA_SURFACE)); in DdiMedia_ReplaceSurfaceWithNewFormat()
194 dstSurface->format = expectedFormat; in DdiMedia_ReplaceSurfaceWithNewFormat()
195 dstSurface->uiLockedBufID = VA_INVALID_ID; in DdiMedia_ReplaceSurfaceWithNewFormat()
196 dstSurface->uiLockedImageID = VA_INVALID_ID; in DdiMedia_ReplaceSurfaceWithNewFormat()
197 dstSurface->pSurfDesc = nullptr; in DdiMedia_ReplaceSurfaceWithNewFormat()
200 if(dstSurface->pShadowBuffer) in DdiMedia_ReplaceSurfaceWithNewFormat()
202dstSurface->pShadowBuffer = (PDDI_MEDIA_BUFFER)MOS_AllocAndZeroMemory(sizeof(DDI_MEDIA_BUFFER)); in DdiMedia_ReplaceSurfaceWithNewFormat()
[all …]
/external/intel-media-driver/media_softlet/linux/common/ddi/
Dmedia_libva_common_next.cpp123 …PDDI_MEDIA_SURFACE dstSurface = (DDI_MEDIA_SURFACE *)MOS_AllocAndZeroMemory(sizeof(DDI_MEDIA_SURFA… in ReplaceSurfaceWithNewFormat() local
126 MOS_FreeMemory(dstSurface); in ReplaceSurfaceWithNewFormat()
130 MOS_SecureMemcpy(dstSurface, sizeof(DDI_MEDIA_SURFACE), surface, sizeof(DDI_MEDIA_SURFACE)); in ReplaceSurfaceWithNewFormat()
131 DDI_CHK_NULL(dstSurface, "nullptr dstSurface", nullptr); in ReplaceSurfaceWithNewFormat()
132 dstSurface->format = expectedFormat; in ReplaceSurfaceWithNewFormat()
133 dstSurface->uiLockedBufID = VA_INVALID_ID; in ReplaceSurfaceWithNewFormat()
134 dstSurface->uiLockedImageID = VA_INVALID_ID; in ReplaceSurfaceWithNewFormat()
135 dstSurface->pSurfDesc = nullptr; in ReplaceSurfaceWithNewFormat()
152 MOS_FreeMemory(dstSurface); in ReplaceSurfaceWithNewFormat()
159 MediaLibvaUtilNext::CreateSurface(dstSurface,mediaCtx); in ReplaceSurfaceWithNewFormat()
[all …]
Dddi_media_functions.h555 VASurfaceID dstSurface,
Dddi_media_functions.cpp375 VASurfaceID dstSurface, in ProcessPipeline() argument
/external/intel-media-driver/media_softlet/agnostic/common/codec/hal/dec/shared/bufferMgr/
Ddecode_internal_target.h100 MOS_STATUS ActiveCurSurf(uint32_t curFrameIdx, PMOS_SURFACE dstSurface, bool isMmcEnabled,
116 dstSurface->dwWidth,
117 MOS_ALIGN_CEIL(dstSurface->dwHeight, 8),
119 dstSurface->Format,
123 dstSurface->TileModeGMM);
131 dstSurface->dwWidth,
132 MOS_ALIGN_CEIL(dstSurface->dwHeight, 8),
/external/intel-media-driver/media_driver/agnostic/common/codec/hal/
Dcodechal_mmc.cpp165 PMOS_SURFACE dstSurface, in SetSurfaceMmcMode() argument
178 &dstSurface->OsResource, in SetSurfaceMmcMode()
180 dstSurface->CompressionMode = MOS_MMC_DISABLED; in SetSurfaceMmcMode()
184 if (dstSurface->bCompressible) in SetSurfaceMmcMode()
188 &dstSurface->OsResource, in SetSurfaceMmcMode()
190 dstSurface->CompressionMode = srcSurface->CompressionMode; in SetSurfaceMmcMode()
197 &dstSurface->OsResource, in SetSurfaceMmcMode()
199 dstSurface->CompressionMode = MOS_MMC_DISABLED; in SetSurfaceMmcMode()
Dcodechal_decoder.cpp1096 MOS_SURFACE dstSurface; in EndFrame()
1104 MOS_ZeroMemory(&dstSurface, sizeof(dstSurface)); in EndFrame()
1105 dstSurface.Format = Format_NV12; in EndFrame()
1106 dstSurface.OsResource = decodeStatusReport->m_currDecodedPicRes; in EndFrame()
1109 &dstSurface)); in EndFrame()
1112 &dstSurface, in EndFrame()
1116 &dstSurface, in EndFrame()
1127 dstSurface.dwWidth)); in EndFrame()
1145 MOS_ZeroMemory(&dstSurface, sizeof(dstSurface)); in EndFrame()
1146 dstSurface.Format = Format_NV12; in EndFrame()
[all …]
Dcodechal_decode_avc.cpp164 MOS_SURFACE dstSurface; in FormatAvcMonoPicture() local
165 MOS_ZeroMemory(&dstSurface, sizeof(MOS_SURFACE)); in FormatAvcMonoPicture()
166 dstSurface.Format = Format_NV12; in FormatAvcMonoPicture()
169 dstSurface.OsResource = surface->OsResource; in FormatAvcMonoPicture()
176 CODECHAL_DECODE_CHK_STATUS_RETURN(CodecHalGetResourceInfo(m_osInterface, &dstSurface)); in FormatAvcMonoPicture()
178 uint32_t height = dstSurface.dwHeight; in FormatAvcMonoPicture()
179 uint32_t pitch = dstSurface.dwPitch; in FormatAvcMonoPicture()
249 dstOffset = dstSurface.UPlaneOffset.iSurfaceOffset; in FormatAvcMonoPicture()
1533 MOS_SURFACE dstSurface; in InitPicMhwParams() local
1551 MOS_ZeroMemory(&dstSurface, sizeof(MOS_SURFACE)); in InitPicMhwParams()
[all …]
Dcodechal_mmc.h124 PMOS_SURFACE dstSurface,
Dcodechal_decode_vc1.cpp1065 MOS_SURFACE dstSurface, in FormatUnequalFieldPicture() argument
1095 dataCopyParams.dstResource = &dstSurface.OsResource; in FormatUnequalFieldPicture()
1107 &dstSurface.OsResource, // presDst in FormatUnequalFieldPicture()
1126 dstSurface.dwPitch); in FormatUnequalFieldPicture()
1137 dstSurface.dwPitch); in FormatUnequalFieldPicture()
1147 dataCopyParams.dstResource = &dstSurface.OsResource; in FormatUnequalFieldPicture()
1159 &dstSurface.OsResource, // presDst in FormatUnequalFieldPicture()
1172 dstOffset = dstSurface.dwPitch * (frameHeight + uvblockHeight); in FormatUnequalFieldPicture()
1177 dstOffset = dstSurface.dwPitch * in FormatUnequalFieldPicture()
1188 dataCopyParams.dstResource = &dstSurface.OsResource; in FormatUnequalFieldPicture()
[all …]
Dcodechal_decode_mpeg2.cpp835 MOS_SURFACE dstSurface; in DecodeStateLevel()
837 MOS_ZeroMemory(&dstSurface, sizeof(MOS_SURFACE)); in DecodeStateLevel()
838 dstSurface.Format = Format_NV12; in DecodeStateLevel()
839 dstSurface.OsResource = *(pipeBufAddrParams.presReferences[i]); in DecodeStateLevel()
842 &dstSurface)); in DecodeStateLevel()
847 &dstSurface, in DecodeStateLevel()
/external/intel-media-driver/media_driver/agnostic/gen11/codec/hal/
Dcodechal_decode_avc_g11.cpp387 MOS_SURFACE dstSurface; in DecodePrimitiveLevel()
388 MOS_ZeroMemory(&dstSurface, sizeof(dstSurface)); in DecodePrimitiveLevel()
389 dstSurface.Format = Format_NV12; in DecodePrimitiveLevel()
390 dstSurface.OsResource = decProcessingParams->m_outputSurface->OsResource; in DecodePrimitiveLevel()
394 &dstSurface)); in DecodePrimitiveLevel()
397 &dstSurface, in DecodePrimitiveLevel()
Dcodechal_decode_mpeg2_g11.cpp225 MOS_SURFACE dstSurface; in DecodeStateLevel()
227 MOS_ZeroMemory(&dstSurface, sizeof(MOS_SURFACE)); in DecodeStateLevel()
228 dstSurface.Format = Format_NV12; in DecodeStateLevel()
229 dstSurface.OsResource = *(pipeBufAddrParams.presReferences[i]); in DecodeStateLevel()
232 &dstSurface)); in DecodeStateLevel()
236 &dstSurface, in DecodeStateLevel()
Dcodechal_decode_vc1_g11.cpp282 MOS_SURFACE dstSurface; in DecodeStateLevel()
284 MOS_ZeroMemory(&dstSurface, sizeof(MOS_SURFACE)); in DecodeStateLevel()
285 dstSurface.Format = Format_NV12; in DecodeStateLevel()
286 dstSurface.OsResource = *(pipeBufAddrParams.presReferences[i]); in DecodeStateLevel()
289 &dstSurface)); in DecodeStateLevel()
294 &dstSurface, in DecodeStateLevel()
/external/skia/src/gpu/ganesh/
DGrCopyRenderTask.cpp98 GrSurface* dstSurface = dstProxy->peekSurface(); in onExecute() local
100 SkIRect dstRect = GrNativeRect::MakeIRectRelativeTo(fOrigin, dstSurface->height(), fDstRect); in onExecute()
101 return flushState->gpu()->copySurface(dstSurface, dstRect, srcSurface, srcRect, fFilter); in onExecute()
DGrWritePixelsRenderTask.cpp71 GrSurface* dstSurface = dstProxy->peekSurface(); in onExecute() local
72 return flushState->gpu()->writePixels(dstSurface, in onExecute()
DGrOpFlushState.cpp118 GrSurface* dstSurface = dstProxy->peekSurface(); in doUpload() local
119 if (!fGpu->caps()->surfaceSupportsWritePixels(dstSurface)) { in doUpload()
123 colorType, dstSurface->backendFormat(), colorType); in doUpload()
141 return this->fGpu->writePixels(dstSurface, in doUpload()
/external/intel-media-driver/media_driver/agnostic/gen12/codec/hal/
Dcodechal_decode_avc_g12.cpp532 MOS_SURFACE dstSurface; in DecodePrimitiveLevel()
533 MOS_ZeroMemory(&dstSurface, sizeof(dstSurface)); in DecodePrimitiveLevel()
534 dstSurface.Format = Format_NV12; in DecodePrimitiveLevel()
535 dstSurface.OsResource = decProcessingParams->m_outputSurface->OsResource; in DecodePrimitiveLevel()
539 &dstSurface)); in DecodePrimitiveLevel()
542 &dstSurface, in DecodePrimitiveLevel()
Dcodechal_decode_mpeg2_g12.cpp248 MOS_SURFACE dstSurface; in DecodeStateLevel()
250 MOS_ZeroMemory(&dstSurface, sizeof(MOS_SURFACE)); in DecodeStateLevel()
251 dstSurface.Format = Format_NV12; in DecodeStateLevel()
252 dstSurface.OsResource = *(pipeBufAddrParams.presReferences[i]); in DecodeStateLevel()
255 &dstSurface)); in DecodeStateLevel()
260 &dstSurface, in DecodeStateLevel()
Dcodechal_decode_vp9_g12.cpp1230 MOS_SURFACE dstSurface; in DecodePrimitiveLevel()
1231 MOS_ZeroMemory(&dstSurface, sizeof(dstSurface)); in DecodePrimitiveLevel()
1232 dstSurface.Format = Format_NV12; in DecodePrimitiveLevel()
1233 dstSurface.OsResource = m_sfcState->m_sfcOutputSurface->OsResource; in DecodePrimitiveLevel()
1236 &dstSurface)); in DecodePrimitiveLevel()
1239 &dstSurface, in DecodePrimitiveLevel()
Dcodechal_decode_vc1_g12.cpp356 MOS_SURFACE dstSurface; in DecodeStateLevel()
358 MOS_ZeroMemory(&dstSurface, sizeof(MOS_SURFACE)); in DecodeStateLevel()
359 dstSurface.Format = Format_NV12; in DecodeStateLevel()
360 dstSurface.OsResource = *(pipeBufAddrParams.presReferences[i]); in DecodeStateLevel()
363 &dstSurface)); in DecodeStateLevel()
368 &dstSurface, in DecodeStateLevel()
/external/intel-media-driver/media_softlet/agnostic/common/codec/hal/dec/shared/pipeline/
Ddecode_pipeline.cpp490 MOS_SURFACE dstSurface; in DumpOutput() local
491 MOS_ZeroMemory(&dstSurface, sizeof(dstSurface)); in DumpOutput()
492 dstSurface.Format = Format_NV12; in DumpOutput()
493 dstSurface.OsResource = reportData.currDecodedPicRes; in DumpOutput()
494 DECODE_CHK_STATUS(m_allocator->GetSurfaceInfo(&dstSurface)); in DumpOutput()
497 &dstSurface, CodechalDbgAttr::attrDecodeOutputSurface, "DstSurf")); in DumpOutput()
/external/skia/src/gpu/graphite/
DContext.cpp474 sk_sp<Surface> dstSurface = Surface::MakeScratch(recorder.get(), in asyncReadPixelsYUV420() local
480 if (!dstSurface) { in asyncReadPixelsYUV420()
499 SkCanvas* canvas = dstSurface->getCanvas(); in asyncReadPixelsYUV420()
504 Flush(dstSurface); in asyncReadPixelsYUV420()
507 dstSurface->backingTextureProxy(), in asyncReadPixelsYUV420()
508 dstSurface->imageInfo().colorInfo(), in asyncReadPixelsYUV420()
/external/skia/tools/skpbench/
Dskpbench.cpp260 sk_sp<SkSurface> dstSurface, in run_ddl_benchmark() argument
268 SkAssertResult(dstSurface->characterize(&dstCharacterization)); in run_ddl_benchmark()
270 SkIRect viewport = dstSurface->imageInfo().bounds(); in run_ddl_benchmark()
334 skgpu::ganesh::DrawDDL(dstSurface, tiles.composeDDL()); in run_ddl_benchmark()
335 dContext->flushAndSubmit(dstSurface.get(), GrSyncCpu::kNo); in run_ddl_benchmark()
/external/intel-media-driver/media_driver/linux/common/vp/ddi/
Dmedia_libva_vp.h115 VASurfaceID dstSurface,

12