Lines Matching refs:payload
153 bool RotationBufferProvider::createVaSurface(VideoPayloadBuffer *payload, int transform, bool isTarget)
165 width = payload->width;
166 height = payload->height;
168 width = payload->height;
169 height = payload->width;
176 width = payload->width;
177 height = payload->height;
178 bufferHeight = payload->height;
179 stride = payload->luma_stride; /* NV12 srouce buffer */
197 vaSurfaceAttrib->pixel_format = payload->format;
199 vaSurfaceAttrib->tiling = payload->tiling;
221 vaSurfaceAttrib->buffers[0] = payload->khandle;
224 if (payload->crop_width && payload->crop_height) {
225 width = payload->crop_width;
226 height = (payload->crop_height >> mBobDeinterlace);
229 payload->crop_width = width;
230 payload->crop_height = height;
244 isTarget, width, height, bufferHeight, payload->tiling);
252 bool RotationBufferProvider::startVA(VideoPayloadBuffer *payload, int transform)
312 ret = createVaSurface(payload, transform, true);
320 payload->width,
321 payload->height,
371 mBobDeinterlace = payload->bob_deinterlace;
377 bool RotationBufferProvider::setupRotationBuffer(VideoPayloadBuffer *payload, int transform)
385 if (payload->format != VA_FOURCC_NV12 || payload->width == 0 || payload->height == 0) {
386 WLOGTRACE("payload data is not correct: format %#x, width %d, height %d",
387 payload->format, payload->width, payload->height);
391 if (payload->width > 1280) {
392 payload->tiling = 1;
396 if (isContextChanged(payload->width, payload->height, transform)) {
403 mWidth = payload->width;
404 mHeight = payload->height;
408 ret = startVA(payload, transform);
417 ret = createVaSurface(payload, transform, true);
426 ret = createVaSurface(payload, transform, false);
476 // Populate payload fields so that overlayPlane can flip the buffer
477 payload->rotated_width = mRotatedStride;
478 payload->rotated_height = mRotatedHeight;
479 payload->rotated_buffer_handle = mKhandles[mTargetIndex];
481 payload->client_transform = 0;
505 if (!payload->khandle) {
513 bool RotationBufferProvider::prepareBufferInfo(int w, int h, int stride, VideoPayloadBuffer *payload, void *user_pt)
518 payload->width = payload->crop_width = w;
519 payload->height = payload->crop_height = h;
520 payload->format = VA_FOURCC_NV12;
521 payload->tiling = 1;
522 payload->luma_stride = stride;
523 payload->chroma_u_stride = stride;
524 payload->chroma_v_stride = stride;
525 payload->client_transform = 0;
550 payload->khandle = mWsbm->getKBufHandle(buf);