/hardware/intel/common/libva/test/ |
loadsurface.h | 234 VAImage surface_image; local 239 va_status = vaDeriveImage(va_dpy,surface_id,&surface_image); 242 vaMapBuffer(va_dpy,surface_image.buf,&surface_p); 245 pitches[0] = surface_image.pitches[0]; 246 switch (surface_image.format.fourcc) { 248 U_start = (char *)surface_p + surface_image.offsets[1]; 250 pitches[1] = surface_image.pitches[1]; 251 pitches[2] = surface_image.pitches[1]; 254 U_start = (char *)surface_p + surface_image.offsets[1]; 255 V_start = (char *)surface_p + surface_image.offsets[2] 299 VAImage surface_image; local 397 VAImage surface_image; local [all...] |
/hardware/intel/common/libva/test/videoprocess/ |
videoprocess.cpp | 212 VAImage surface_image; local 217 va_status = vaDeriveImage(va_dpy, surface_id, &surface_image); 220 va_status = vaMapBuffer(va_dpy, surface_image.buf, &surface_p); 223 y_dst = (unsigned char *)((unsigned char*)surface_p + surface_image.offsets[0]); 224 u_dst = (unsigned char *)((unsigned char*)surface_p + surface_image.offsets[1]); 230 for (row = 0; row < surface_image.height; row++) { 231 if (row < surface_image.height / 4 || row > surface_image.height * 3 / 4) 232 memset(y_dst, max_luma + 1, surface_image.pitches[0]); 234 memset(y_dst, (min_luma + max_luma) / 2, surface_image.pitches[0]) 260 VAImage surface_image; local 362 VAImage surface_image; local [all...] |
/hardware/intel/common/libva/test/encode/ |
avcenc.c | 356 VAImage surface_image; local 370 va_status = vaDeriveImage(va_dpy, surface_id, &surface_image); 373 vaMapBuffer(va_dpy, surface_image.buf, &surface_p); 380 y_dst = surface_p + surface_image.offsets[0]; 381 u_dst = surface_p + surface_image.offsets[1]; /* UV offset for NV12 */ 382 v_dst = surface_p + surface_image.offsets[2]; 385 for (row = 0; row < surface_image.height; row++) { 386 memcpy(y_dst, y_src, surface_image.width); 387 y_dst += surface_image.pitches[0]; 391 if (surface_image.format.fourcc == VA_FOURCC_NV12) { /* UV plane * [all...] |
mpeg2enc.c | 435 VAImage surface_image; local 449 va_status = vaDeriveImage(ctx->va_dpy, surface_ids[ctx->current_upload_surface], &surface_image); 452 vaMapBuffer(ctx->va_dpy, surface_image.buf, &surface_p); 459 y_dst = surface_p + surface_image.offsets[0]; 460 u_dst = surface_p + surface_image.offsets[1]; /* UV offset for NV12 */ 461 v_dst = surface_p + surface_image.offsets[2]; 464 for (row = 0; row < surface_image.height; row++) { 465 memcpy(y_dst, y_src, surface_image.width); 466 y_dst += surface_image.pitches[0]; 470 if (surface_image.format.fourcc == VA_FOURCC_NV12) { /* UV plane * [all...] |
mpeg2vaenc.c | 435 VAImage surface_image; local 449 va_status = vaDeriveImage(ctx->va_dpy, surface_ids[ctx->current_upload_surface], &surface_image); 452 vaMapBuffer(ctx->va_dpy, surface_image.buf, &surface_p); 459 y_dst = surface_p + surface_image.offsets[0]; 460 u_dst = surface_p + surface_image.offsets[1]; /* UV offset for NV12 */ 461 v_dst = surface_p + surface_image.offsets[2]; 464 for (row = 0; row < surface_image.height; row++) { 465 memcpy(y_dst, y_src, surface_image.width); 466 y_dst += surface_image.pitches[0]; 470 if (surface_image.format.fourcc == VA_FOURCC_NV12) { /* UV plane * [all...] |
/hardware/intel/common/libva/test/putsurface/ |
putsurface_common.c | 353 VAImage surface_image; local
|
/hardware/intel/common/libva/test/transcode/ |
mpeg2transcode.cpp | 2159 VAImage surface_image; local [all...] |