Home
last modified time | relevance | path

Searched refs:va_dpy (Results 1 – 25 of 34) sorted by relevance

12

/hardware/intel/common/libva/test/basic/
Dtest.c38 VADisplay va_dpy; in main() local
46 va_dpy = vaGetDisplay(dpy); in main()
47 ASSERT( va_dpy ); in main()
48 printf("vaGetDisplay: va_dpy = %08x\n", va_dpy); in main()
50 va_status = vaInitialize(va_dpy, &major_version, &minor_version); in main()
59 va_status = vaCreateSurfaces(va_dpy, 720, 480, VA_RT_FORMAT_YUV420, 20, surfaces); in main()
71 vaPutSurface(va_dpy, surfaces[0], win, 0, 0, 720, 480, 0, 0, 720, 480, 0); in main()
74 va_status = vaDestroySurface(va_dpy, surfaces, 20); in main()
81 VAProfile *profiles = malloc(vaMaxNumProfiles(va_dpy) * sizeof(VAProfile)); in main()
83 printf("vaMaxNumProfiles = %d\n", vaMaxNumProfiles(va_dpy)); in main()
[all …]
Dtest_x11.c26 VADisplay va_dpy; variable
37 va_dpy = vaGetDisplay(dpy); in test_init()
38 ASSERT( va_dpy ); in test_init()
39 status("vaGetDisplay: va_dpy = %08x\n", va_dpy); in test_init()
41 va_status = vaInitialize(va_dpy, &major_version, &minor_version); in test_init()
48 va_status = vaTerminate(va_dpy); in test_terminate()
Dtest_android.c26 VADisplay va_dpy; variable
38 va_dpy = vaGetDisplay(dpy); in test_init()
39 ASSERT( va_dpy ); in test_init()
40 status("vaGetDisplay: va_dpy = %08x\n", va_dpy); in test_init()
42 va_status = vaInitialize(va_dpy, &major_version, &minor_version); in test_init()
49 va_status = vaTerminate(va_dpy); in test_terminate()
Dtest_vaSurfaceAttrib.c57 …va_status = vaQueryConfigEntrypoints(va_dpy, VAProfileH264Baseline, entrypoints, &num_entrypoints); in test()
73 …va_status = vaGetConfigAttributes(va_dpy, VAProfileH264Baseline, VAEntrypointEncSlice, &attrib[0],… in test()
90 …va_status = vaCreateConfig(va_dpy, VAProfileH264Baseline, VAEntrypointEncSlice, &attrib[0], 2, &co… in test()
95 va_status = vaGetSurfaceAttributes(va_dpy, config_id, attrib_list, 2); in test()
136 …va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, frame_width, frame_height, &surface_id, … in test()
139 va_status = vaDeriveImage(va_dpy, surface_id, &image_id); in test()
142 va_status = vaMapBuffer(va_dpy, image_id.buf, (void**)&p_buffer); in test()
147 va_status = vaUnmapBuffer(va_dpy, image_id.buf); in test()
150 va_status = vaDestroyImage(va_dpy, image_id.image_id); in test()
153 va_status = vaDestroySurfaces(va_dpy, &surface_id, 1); in test()
[all …]
Dtest_09.c41 max_entrypoints = vaMaxNumEntrypoints(va_dpy); in test()
51 va_status = vaQueryConfigEntrypoints(va_dpy, profiles[i], entrypoints, &num_entrypoints); in test()
57 …va_status = vaCreateConfig(va_dpy, profiles[i], entrypoints[j], NULL, 0, &(configs[config_count])); in test()
72 …va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, width, height, surfaces, total_surfaces,… in test()
79 …va_status = vaCreateContext( va_dpy, configs[i], width, height, flags, surfaces + i*surface_count,… in test()
86 va_status = vaDestroyContext( va_dpy, contexts[i] ); in test()
93 va_status = vaDestroyConfig( va_dpy, configs[i] ); in test()
97 va_status = vaDestroySurfaces(va_dpy, surfaces, total_surfaces); in test()
Dtest_10.c38 va_status = vaCreateConfig(va_dpy, VAProfileMPEG2Main, VAEntrypointVLD, NULL, 0, &config); in pre()
50 …va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, width, height, surfaces, total_surfaces,… in pre()
55 …va_status = vaCreateContext( va_dpy, config, width, height, flags, surfaces, surface_count, &conte… in pre()
111 …va_status = vaCreateBuffer(va_dpy, context, buffer_types[i], buffer_sizes[i], 1, NULL, &buffer_ids… in test()
119 va_status = vaDestroyBuffer(va_dpy, buffer_ids[i]); in test()
127 va_status = vaDestroyContext( va_dpy, context ); in post()
131 va_status = vaDestroyConfig( va_dpy, config ); in post()
134 va_status = vaDestroySurfaces(va_dpy, surfaces, total_surfaces); in post()
Dtest_07.c67 va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, 352, 288, surfaces_1, 1, NULL, 0); in test()
73 va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, 352, 288, surfaces_4, 4, NULL, 0); in test()
79 va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, 352, 288, surfaces_16, 16, NULL, 0); in test()
90 va_status = vaDestroySurfaces(va_dpy, surfaces_4, 4); in test()
95 va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, 352, 288, surfaces_6, 6, NULL, 0); in test()
104 va_status = vaDestroySurfaces(va_dpy, surfaces_16, 16); in test()
108 va_status = vaDestroySurfaces(va_dpy, surfaces_1, 1); in test()
112 va_status = vaDestroySurfaces(va_dpy, surfaces_6, 6); in test()
Dtest_11.c38 va_status = vaCreateConfig(va_dpy, VAProfileMPEG2Main, VAEntrypointVLD, NULL, 0, &config); in pre()
50 …va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, width, height, surfaces, total_surfaces,… in pre()
55 …va_status = vaCreateContext( va_dpy, config, width, height, flags, surfaces, surface_count, &conte… in pre()
128 …va_status = vaCreateBuffer(va_dpy, context, buffer_types[i], buffer_sizes[i], 1, data, &buffer_ids… in test()
141 va_status = vaMapBuffer(va_dpy, buffer_ids[i], &data); in test()
151 va_status = vaUnmapBuffer(va_dpy, buffer_ids[i]); in test()
154 va_status = vaDestroyBuffer(va_dpy, buffer_ids[i]); in test()
166 va_status = vaDestroyContext( va_dpy, context ); in post()
170 va_status = vaDestroyConfig( va_dpy, config ); in post()
173 va_status = vaDestroySurfaces(va_dpy, surfaces, total_surfaces); in post()
Dtest_06.c44 max_entrypoints = vaMaxNumEntrypoints(va_dpy); in pre()
56 va_status = vaQueryConfigEntrypoints(va_dpy, profiles[i], entrypoints, &num_entrypoints); in pre()
61 …va_status = vaCreateConfig(va_dpy, profiles[i], entrypoints[j], NULL, 0, &(configs[config_count])); in pre()
73 max_attribs = vaMaxNumConfigAttributes(va_dpy); in test()
83 va_status = vaQueryConfigEntrypoints(va_dpy, profiles[i], entrypoints, &num_entrypoints); in test()
94 …va_status = vaQueryConfigAttributes(va_dpy, configs[config_count], &profile, &entrypoint, attrib_l… in test()
116 va_status = vaDestroyConfig( va_dpy, configs[i] ); in post()
Dtest_05.c41 max_entrypoints = vaMaxNumEntrypoints(va_dpy); in test()
50 va_status = vaQueryConfigEntrypoints(va_dpy, profiles[i], entrypoints, &num_entrypoints); in test()
56 …va_status = vaCreateConfig(va_dpy, profiles[i], entrypoints[j], NULL, 0, &(configs[config_count])); in test()
66 va_status = vaDestroyConfig( va_dpy, configs[i] ); in test()
/hardware/intel/common/libva/test/decode/
Dmpeg2vldemo.cpp149 VADisplay va_dpy; in main() local
158 va_dpy = va_open_display(); in main()
159 va_status = vaInitialize(va_dpy, &major_ver, &minor_ver); in main()
162 va_status = vaQueryConfigEntrypoints(va_dpy, VAProfileMPEG2Main, entrypoints, in main()
177 vaGetConfigAttributes(va_dpy, VAProfileMPEG2Main, VAEntrypointVLD, in main()
184 va_status = vaCreateConfig(va_dpy, VAProfileMPEG2Main, VAEntrypointVLD, in main()
189 va_dpy, in main()
197 va_status = vaCreateContext(va_dpy, config_id, in main()
206 va_status = vaCreateBuffer(va_dpy, context_id, in main()
213 va_status = vaCreateBuffer(va_dpy, context_id, in main()
[all …]
Dtinyjpeg.c571 VADisplay va_dpy; in tinyjpeg_decode() local
587 va_dpy = va_open_display(); in tinyjpeg_decode()
588 va_status = vaInitialize(va_dpy, &major_ver, &minor_ver); in tinyjpeg_decode()
591 va_status = vaQueryConfigEntrypoints(va_dpy, VAProfileJPEGBaseline, entrypoints, in tinyjpeg_decode()
606 vaGetConfigAttributes(va_dpy, VAProfileJPEGBaseline, VAEntrypointVLD, in tinyjpeg_decode()
613 va_status = vaCreateConfig(va_dpy, VAProfileJPEGBaseline, VAEntrypointVLD, in tinyjpeg_decode()
702 va_status = vaCreateSurfaces(va_dpy,surface_type, in tinyjpeg_decode()
708 va_status = vaCreateContext(va_dpy, config_id, in tinyjpeg_decode()
716 va_status = vaCreateBuffer(va_dpy, context_id, in tinyjpeg_decode()
735 va_status = vaCreateBuffer(va_dpy, context_id, in tinyjpeg_decode()
[all …]
/hardware/intel/common/libva/test/common/
Dva_display.c119 VADisplay va_dpy = NULL; in va_open_display() local
122 for (i = 0; !va_dpy && g_display_hooks_available[i]; i++) { in va_open_display()
129 va_dpy = g_display_hooks->open_display(); in va_open_display()
132 if (!va_dpy) { in va_open_display()
139 return va_dpy; in va_open_display()
143 va_close_display(VADisplay va_dpy) in va_close_display() argument
145 if (!va_dpy) in va_close_display()
149 g_display_hooks->close_display(va_dpy); in va_close_display()
154 VADisplay va_dpy, in va_put_surface() argument
160 if (!va_dpy) in va_put_surface()
[all …]
Dva_display.h37 void (*close_display) (VADisplay va_dpy);
38 VAStatus (*put_surface) (VADisplay va_dpy, VASurfaceID surface,
50 va_close_display(VADisplay va_dpy);
54 VADisplay va_dpy,
Dva_display_x11.c45 va_close_display_x11(VADisplay va_dpy) in va_close_display_x11() argument
106 VADisplay va_dpy, in va_put_surface_x11() argument
114 if (!va_dpy) in va_put_surface_x11()
125 return vaPutSurface(va_dpy, surface, x11_window, in va_put_surface_x11()
/hardware/intel/common/libva/test/vainfo/
Dvainfo.c87 VADisplay va_dpy; in main() local
103 va_dpy = va_open_display(); in main()
104 if (NULL == va_dpy) in main()
110 va_status = vaInitialize(va_dpy, &major_version, &minor_version); in main()
116 driver = vaQueryVendorString(va_dpy); in main()
120 max_num_profiles = vaMaxNumProfiles(va_dpy); in main()
129 va_status = vaQueryConfigProfiles(va_dpy, profile_list, &num_profiles); in main()
136 va_status = vaQueryConfigEntrypoints(va_dpy, profile, entrypoints, in main()
150 vaTerminate(va_dpy); in main()
151 va_close_display(va_dpy); in main()
/hardware/intel/common/libva/test/transcode/
Dmpeg2transcode.cpp1942 static VADisplay va_dpy; variable
2011 va_dpy = vaGetDisplay(x11_display); in create_encode_pipe()
2012 va_status = vaInitialize(va_dpy, &major_ver, &minor_ver); in create_encode_pipe()
2015 vaQueryConfigEntrypoints(va_dpy, avcenc_context.profile, entrypoints, in create_encode_pipe()
2031 vaGetConfigAttributes(va_dpy, avcenc_context.profile, VAEntrypointEncSlice, in create_encode_pipe()
2048 va_status = vaCreateConfig(va_dpy, avcenc_context.profile, VAEntrypointEncSlice, in create_encode_pipe()
2053 va_status = vaCreateContext(va_dpy, avcenc_context.config_id, in create_encode_pipe()
2063 vaDestroyContext(va_dpy,avcenc_context.context_id); in destory_encode_pipe()
2064 vaDestroyConfig(va_dpy,avcenc_context.config_id); in destory_encode_pipe()
2065 vaTerminate(va_dpy); in destory_encode_pipe()
[all …]
/hardware/intel/common/libva/test/putsurface/
Dputsurface_common.c62 static VADisplay va_dpy; variable
160 num_image_formats = vaMaxNumImageFormats(va_dpy); in ensure_image_formats()
168 va_status = vaQueryImageFormats(va_dpy, image_formats, &num_image_formats); in ensure_image_formats()
202 num_image_formats = vaMaxNumImageFormats(va_dpy); in ensure_surface_attribs()
206 va_status = vaCreateConfig(va_dpy, VAProfileNone, VAEntrypointVideoProc, in ensure_surface_attribs()
217 va_status = vaQuerySurfaceAttributes(va_dpy, vpp_config_id, in ensure_surface_attribs()
228 va_status = vaQuerySurfaceAttributes(va_dpy, vpp_config_id, in ensure_surface_attribs()
283 va_dpy, in csc_preparation()
296 va_status = vaCreateImage(va_dpy, &image_format, in csc_preparation()
304 va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, in csc_preparation()
[all …]
/hardware/intel/common/libva/test/videoprocess/
Dvideoprocess.cpp53 static VADisplay va_dpy = NULL; variable
195 va_status = vaCreateSurfaces(va_dpy, in create_surface()
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()
248 vaUnmapBuffer(va_dpy, surface_image.buf); in construct_nv12_mask_surface()
249 vaDestroyImage(va_dpy, surface_image.image_id); in construct_nv12_mask_surface()
268 va_status = vaDeriveImage(va_dpy, surface_id, &surface_image); in upload_yv12_frame_to_yuv_surface()
271 va_status = vaMapBuffer(va_dpy, surface_image.buf, &surface_p); in upload_yv12_frame_to_yuv_surface()
349 vaUnmapBuffer(va_dpy, surface_image.buf); in upload_yv12_frame_to_yuv_surface()
350 vaDestroyImage(va_dpy, surface_image.image_id); in upload_yv12_frame_to_yuv_surface()
[all …]
/hardware/intel/common/libva/test/encode/
Davcenc.c79 static VADisplay va_dpy; variable
164 va_dpy = va_open_display(); in create_encode_pipe()
165 va_status = vaInitialize(va_dpy, &major_ver, &minor_ver); in create_encode_pipe()
168 vaQueryConfigEntrypoints(va_dpy, avcenc_context.profile, entrypoints, in create_encode_pipe()
184 vaGetConfigAttributes(va_dpy, avcenc_context.profile, VAEntrypointEncSlice, in create_encode_pipe()
201 va_status = vaCreateConfig(va_dpy, avcenc_context.profile, VAEntrypointEncSlice, in create_encode_pipe()
206 va_status = vaCreateContext(va_dpy, avcenc_context.config_id, in create_encode_pipe()
216 vaDestroyContext(va_dpy,avcenc_context.context_id); in destory_encode_pipe()
217 vaDestroyConfig(va_dpy,avcenc_context.config_id); in destory_encode_pipe()
218 vaTerminate(va_dpy); in destory_encode_pipe()
[all …]
Dh264encode.c77 static VADisplay va_dpy; variable
927 va_dpy = va_open_display(); in init_va()
928 va_status = vaInitialize(va_dpy, &major_ver, &minor_ver); in init_va()
931 num_entrypoints = vaMaxNumEntrypoints(va_dpy); in init_va()
944 vaQueryConfigEntrypoints(va_dpy, h264_profile, entrypoints, &num_entrypoints); in init_va()
994 va_status = vaGetConfigAttributes(va_dpy, h264_profile, VAEntrypointEncSlice, in init_va()
1121 va_status = vaCreateConfig(va_dpy, h264_profile, VAEntrypointEncSlice, in setup_encode()
1126 va_status = vaCreateSurfaces(va_dpy, in setup_encode()
1134 va_dpy, in setup_encode()
1146 va_status = vaCreateContext(va_dpy, config_id, in setup_encode()
[all …]
Dmpeg2enc.c125 VADisplay va_dpy; member
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()
495 vaUnmapBuffer(ctx->va_dpy, surface_image.buf); in upload_yuv_to_surface()
496 vaDestroyImage(ctx->va_dpy, surface_image.image_id); in upload_yuv_to_surface()
826 ctx->va_dpy = va_open_display(); in mpeg2enc_alloc_va_resources()
827 va_status = vaInitialize(ctx->va_dpy, in mpeg2enc_alloc_va_resources()
832 max_entrypoints = vaMaxNumEntrypoints(ctx->va_dpy); in mpeg2enc_alloc_va_resources()
834 vaQueryConfigEntrypoints(ctx->va_dpy, in mpeg2enc_alloc_va_resources()
854 vaGetConfigAttributes(ctx->va_dpy, in mpeg2enc_alloc_va_resources()
[all …]
Dmpeg2vaenc.c125 VADisplay va_dpy; member
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()
495 vaUnmapBuffer(ctx->va_dpy, surface_image.buf); in upload_yuv_to_surface()
496 vaDestroyImage(ctx->va_dpy, surface_image.image_id); in upload_yuv_to_surface()
826 ctx->va_dpy = va_open_display(); in mpeg2enc_alloc_va_resources()
827 va_status = vaInitialize(ctx->va_dpy, in mpeg2enc_alloc_va_resources()
832 max_entrypoints = vaMaxNumEntrypoints(ctx->va_dpy); in mpeg2enc_alloc_va_resources()
834 vaQueryConfigEntrypoints(ctx->va_dpy, in mpeg2enc_alloc_va_resources()
854 vaGetConfigAttributes(ctx->va_dpy, in mpeg2enc_alloc_va_resources()
[all …]
/hardware/intel/common/libva/test/
Dloadsurface.h230 static int upload_surface(VADisplay va_dpy, VASurfaceID surface_id, in upload_surface() argument
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()
283 vaUnmapBuffer(va_dpy,surface_image.buf); in upload_surface()
285 vaDestroyImage(va_dpy,surface_image.image_id); in upload_surface()
295 static int upload_surface_yuv(VADisplay va_dpy, VASurfaceID surface_id, in upload_surface_yuv() argument
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()
377 vaUnmapBuffer(va_dpy,surface_image.buf); in upload_surface_yuv()
379 vaDestroyImage(va_dpy,surface_image.image_id); in upload_surface_yuv()
[all …]
/hardware/intel/img/hwcomposer/merrifield/common/devices/
DVirtualDevice.cpp101 : va_dpy(dpy), in MappedSurface()
105 va_status = vaDeriveImage(va_dpy, surf, &image); in MappedSurface()
110 va_status = vaMapBuffer(va_dpy, image.buf, (void**)&ptr); in MappedSurface()
113 vaDestroyImage(va_dpy, image.image_id); in MappedSurface()
123 va_status = vaUnmapBuffer(va_dpy, image.buf); in ~MappedSurface()
126 va_status = vaDestroyImage(va_dpy, image.image_id); in ~MappedSurface()
132 VADisplay va_dpy; member in android::intel::MappedSurface
140 : va_dpy(dpy), in VAMappedHandle()
196 va_status = vaCreateSurfaces(va_dpy, in VAMappedHandle()
210 : va_dpy(dpy), in VAMappedHandle()
[all …]

12