Searched refs:surface_image (Results 1 – 7 of 7) sorted by relevance
/hardware/intel/common/libva/test/ |
D | loadsurface.h | 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() [all …]
|
/hardware/intel/common/libva/test/videoprocess/ |
D | videoprocess.cpp | 212 VAImage surface_image; in construct_nv12_mask_surface() local 217 va_status = vaDeriveImage(va_dpy, surface_id, &surface_image); in construct_nv12_mask_surface() 220 va_status = vaMapBuffer(va_dpy, surface_image.buf, &surface_p); in construct_nv12_mask_surface() 223 y_dst = (unsigned char *)((unsigned char*)surface_p + surface_image.offsets[0]); in construct_nv12_mask_surface() 224 u_dst = (unsigned char *)((unsigned char*)surface_p + surface_image.offsets[1]); in construct_nv12_mask_surface() 230 for (row = 0; row < surface_image.height; row++) { in construct_nv12_mask_surface() 231 if (row < surface_image.height / 4 || row > surface_image.height * 3 / 4) in construct_nv12_mask_surface() 232 memset(y_dst, max_luma + 1, surface_image.pitches[0]); in construct_nv12_mask_surface() 234 memset(y_dst, (min_luma + max_luma) / 2, surface_image.pitches[0]); in construct_nv12_mask_surface() 236 y_dst += surface_image.pitches[0]; in construct_nv12_mask_surface() [all …]
|
/hardware/intel/common/libva/test/encode/ |
D | avcenc.c | 356 VAImage surface_image; in upload_yuv_to_surface() local 370 va_status = vaDeriveImage(va_dpy, surface_id, &surface_image); in upload_yuv_to_surface() 373 vaMapBuffer(va_dpy, surface_image.buf, &surface_p); in upload_yuv_to_surface() 380 y_dst = surface_p + surface_image.offsets[0]; in upload_yuv_to_surface() 381 u_dst = surface_p + surface_image.offsets[1]; /* UV offset for NV12 */ in upload_yuv_to_surface() 382 v_dst = surface_p + surface_image.offsets[2]; in upload_yuv_to_surface() 385 for (row = 0; row < surface_image.height; row++) { in upload_yuv_to_surface() 386 memcpy(y_dst, y_src, surface_image.width); in upload_yuv_to_surface() 387 y_dst += surface_image.pitches[0]; in upload_yuv_to_surface() 391 if (surface_image.format.fourcc == VA_FOURCC_NV12) { /* UV plane */ in upload_yuv_to_surface() [all …]
|
D | mpeg2enc.c | 435 VAImage surface_image; in upload_yuv_to_surface() local 449 … va_status = vaDeriveImage(ctx->va_dpy, surface_ids[ctx->current_upload_surface], &surface_image); in upload_yuv_to_surface() 452 vaMapBuffer(ctx->va_dpy, surface_image.buf, &surface_p); in upload_yuv_to_surface() 459 y_dst = surface_p + surface_image.offsets[0]; in upload_yuv_to_surface() 460 u_dst = surface_p + surface_image.offsets[1]; /* UV offset for NV12 */ in upload_yuv_to_surface() 461 v_dst = surface_p + surface_image.offsets[2]; in upload_yuv_to_surface() 464 for (row = 0; row < surface_image.height; row++) { in upload_yuv_to_surface() 465 memcpy(y_dst, y_src, surface_image.width); in upload_yuv_to_surface() 466 y_dst += surface_image.pitches[0]; in upload_yuv_to_surface() 470 if (surface_image.format.fourcc == VA_FOURCC_NV12) { /* UV plane */ in upload_yuv_to_surface() [all …]
|
D | mpeg2vaenc.c | 435 VAImage surface_image; in upload_yuv_to_surface() local 449 … va_status = vaDeriveImage(ctx->va_dpy, surface_ids[ctx->current_upload_surface], &surface_image); in upload_yuv_to_surface() 452 vaMapBuffer(ctx->va_dpy, surface_image.buf, &surface_p); in upload_yuv_to_surface() 459 y_dst = surface_p + surface_image.offsets[0]; in upload_yuv_to_surface() 460 u_dst = surface_p + surface_image.offsets[1]; /* UV offset for NV12 */ in upload_yuv_to_surface() 461 v_dst = surface_p + surface_image.offsets[2]; in upload_yuv_to_surface() 464 for (row = 0; row < surface_image.height; row++) { in upload_yuv_to_surface() 465 memcpy(y_dst, y_src, surface_image.width); in upload_yuv_to_surface() 466 y_dst += surface_image.pitches[0]; in upload_yuv_to_surface() 470 if (surface_image.format.fourcc == VA_FOURCC_NV12) { /* UV plane */ in upload_yuv_to_surface() [all …]
|
/hardware/intel/common/libva/test/transcode/ |
D | mpeg2transcode.cpp | 2159 VAImage surface_image; in upload_yuv_to_surface() local 2174 va_status = vaDeriveImage(va_dpy, surface_id, &surface_image); in upload_yuv_to_surface() 2177 vaMapBuffer(va_dpy, surface_image.buf, &surface_p); in upload_yuv_to_surface() 2184 y_dst = (unsigned char *)(surface_p + surface_image.offsets[0]); in upload_yuv_to_surface() 2185 u_dst = (unsigned char *)(surface_p + surface_image.offsets[1]); /* UV offset for NV12 */ in upload_yuv_to_surface() 2186 v_dst = (unsigned char *)(surface_p + surface_image.offsets[2]); in upload_yuv_to_surface() 2189 for (row = 0; row < surface_image.height; row++) { in upload_yuv_to_surface() 2190 memcpy(y_dst, y_src, surface_image.width); in upload_yuv_to_surface() 2191 y_dst += surface_image.pitches[0]; in upload_yuv_to_surface() 2199 if (surface_image.format.fourcc == VA_FOURCC_NV12) { /* UV plane */ in upload_yuv_to_surface() [all …]
|
/hardware/intel/common/libva/test/putsurface/ |
D | putsurface_common.c | 353 VAImage surface_image; in upload_source_YUV_once_for_all() local
|