Lines Matching refs:surface_image
234 VAImage surface_image; in upload_surface() local
239 va_status = vaDeriveImage(va_dpy,surface_id,&surface_image); in upload_surface()
242 vaMapBuffer(va_dpy,surface_image.buf,&surface_p); in upload_surface()
245 pitches[0] = surface_image.pitches[0]; in upload_surface()
246 switch (surface_image.format.fourcc) { in upload_surface()
248 U_start = (char *)surface_p + surface_image.offsets[1]; in upload_surface()
250 pitches[1] = surface_image.pitches[1]; in upload_surface()
251 pitches[2] = surface_image.pitches[1]; in upload_surface()
254 U_start = (char *)surface_p + surface_image.offsets[1]; in upload_surface()
255 V_start = (char *)surface_p + surface_image.offsets[2]; in upload_surface()
256 pitches[1] = surface_image.pitches[1]; in upload_surface()
257 pitches[2] = surface_image.pitches[2]; in upload_surface()
260 U_start = (char *)surface_p + surface_image.offsets[2]; in upload_surface()
261 V_start = (char *)surface_p + surface_image.offsets[1]; in upload_surface()
262 pitches[1] = surface_image.pitches[2]; in upload_surface()
263 pitches[2] = surface_image.pitches[1]; in upload_surface()
268 pitches[1] = surface_image.pitches[0]; in upload_surface()
269 pitches[2] = surface_image.pitches[0]; in upload_surface()
276 yuvgen_planar(surface_image.width, surface_image.height, in upload_surface()
280 surface_image.format.fourcc, in upload_surface()
283 vaUnmapBuffer(va_dpy,surface_image.buf); in upload_surface()
285 vaDestroyImage(va_dpy,surface_image.image_id); in upload_surface()
299 VAImage surface_image; in upload_surface_yuv() local
304 va_status = vaDeriveImage(va_dpy,surface_id, &surface_image); in upload_surface_yuv()
307 vaMapBuffer(va_dpy,surface_image.buf,(void **)&surface_p); in upload_surface_yuv()
311 Y_pitch = surface_image.pitches[0]; in upload_surface_yuv()
312 switch (surface_image.format.fourcc) { in upload_surface_yuv()
314 U_start = (unsigned char *)surface_p + surface_image.offsets[1]; in upload_surface_yuv()
316 U_pitch = surface_image.pitches[1]; in upload_surface_yuv()
317 V_pitch = surface_image.pitches[1]; in upload_surface_yuv()
320 U_start = (unsigned char *)surface_p + surface_image.offsets[1]; in upload_surface_yuv()
321 V_start = (unsigned char *)surface_p + surface_image.offsets[2]; in upload_surface_yuv()
322 U_pitch = surface_image.pitches[1]; in upload_surface_yuv()
323 V_pitch = surface_image.pitches[2]; in upload_surface_yuv()
326 U_start = (unsigned char *)surface_p + surface_image.offsets[2]; in upload_surface_yuv()
327 V_start = (unsigned char *)surface_p + surface_image.offsets[1]; in upload_surface_yuv()
328 U_pitch = surface_image.pitches[2]; in upload_surface_yuv()
329 V_pitch = surface_image.pitches[1]; in upload_surface_yuv()
334 U_pitch = surface_image.pitches[0]; in upload_surface_yuv()
335 V_pitch = surface_image.pitches[0]; in upload_surface_yuv()
351 switch (surface_image.format.fourcc) { in upload_surface_yuv()
377 vaUnmapBuffer(va_dpy,surface_image.buf); in upload_surface_yuv()
379 vaDestroyImage(va_dpy,surface_image.image_id); in upload_surface_yuv()
397 VAImage surface_image; in download_surface_yuv() local
402 va_status = vaDeriveImage(va_dpy,surface_id, &surface_image); in download_surface_yuv()
405 vaMapBuffer(va_dpy,surface_image.buf,(void **)&surface_p); in download_surface_yuv()
409 Y_pitch = surface_image.pitches[0]; in download_surface_yuv()
410 switch (surface_image.format.fourcc) { in download_surface_yuv()
412 U_start = (unsigned char *)surface_p + surface_image.offsets[1]; in download_surface_yuv()
414 U_pitch = surface_image.pitches[1]; in download_surface_yuv()
415 V_pitch = surface_image.pitches[1]; in download_surface_yuv()
418 U_start = (unsigned char *)surface_p + surface_image.offsets[1]; in download_surface_yuv()
419 V_start = (unsigned char *)surface_p + surface_image.offsets[2]; in download_surface_yuv()
420 U_pitch = surface_image.pitches[1]; in download_surface_yuv()
421 V_pitch = surface_image.pitches[2]; in download_surface_yuv()
424 U_start = (unsigned char *)surface_p + surface_image.offsets[2]; in download_surface_yuv()
425 V_start = (unsigned char *)surface_p + surface_image.offsets[1]; in download_surface_yuv()
426 U_pitch = surface_image.pitches[2]; in download_surface_yuv()
427 V_pitch = surface_image.pitches[1]; in download_surface_yuv()
432 U_pitch = surface_image.pitches[0]; in download_surface_yuv()
433 V_pitch = surface_image.pitches[0]; in download_surface_yuv()
449 switch (surface_image.format.fourcc) { in download_surface_yuv()
475 vaUnmapBuffer(va_dpy,surface_image.buf); in download_surface_yuv()
477 vaDestroyImage(va_dpy,surface_image.image_id); in download_surface_yuv()