Searched refs:surfExtBuf (Results 1 – 2 of 2) sorted by relevance
275 VASurfaceAttribExternalBuffers* surfExtBuf = new VASurfaceAttribExternalBuffers; in ProcessorInit() local278 surfExtBuf->buffers= (unsigned long *)&buffer; in ProcessorInit()279 surfExtBuf->num_buffers = 1; in ProcessorInit()280 surfExtBuf->pixel_format = VA_FOURCC_NV12; in ProcessorInit()281 surfExtBuf->width = surfaceWidth; in ProcessorInit()282 surfExtBuf->height = surfaceHeight; in ProcessorInit()283 surfExtBuf->data_size = surfaceStride * surfaceHeight * 1.5; in ProcessorInit()284 surfExtBuf->num_planes = 2; in ProcessorInit()285 surfExtBuf->pitches[0] = surfaceStride; in ProcessorInit()286 surfExtBuf->pitches[1] = surfaceStride; in ProcessorInit()[all …]
1319 VASurfaceAttribExternalBuffers surfExtBuf; in createSurfaceFromHandle() local1320 surfExtBuf.num_buffers = 1; in createSurfaceFromHandle()1321 surfExtBuf.pixel_format = VA_FOURCC_NV12; in createSurfaceFromHandle()1322 surfExtBuf.width = mVideoFormatInfo.surfaceWidth; in createSurfaceFromHandle()1323 surfExtBuf.height = mVideoFormatInfo.surfaceHeight; in createSurfaceFromHandle()1324 surfExtBuf.data_size = mConfigBuffer.graphicBufferStride * mVideoFormatInfo.surfaceHeight * 1.5; in createSurfaceFromHandle()1325 surfExtBuf.num_planes = 2; in createSurfaceFromHandle()1326 surfExtBuf.pitches[0] = mConfigBuffer.graphicBufferStride; in createSurfaceFromHandle()1327 surfExtBuf.pitches[1] = mConfigBuffer.graphicBufferStride; in createSurfaceFromHandle()1328 surfExtBuf.pitches[2] = 0; in createSurfaceFromHandle()[all …]