Home
last modified time | relevance | path

Searched refs:va_status (Results 1 – 25 of 35) sorted by relevance

12

/hardware/intel/common/libva/test/basic/
Dtest.c39 VAStatus va_status; in main() local
50 va_status = vaInitialize(va_dpy, &major_version, &minor_version); in main()
51 ASSERT( VA_STATUS_SUCCESS == va_status ); in main()
59 va_status = vaCreateSurfaces(va_dpy, 720, 480, VA_RT_FORMAT_YUV420, 20, surfaces); in main()
60 ASSERT( VA_STATUS_SUCCESS == va_status ); in main()
74 va_status = vaDestroySurface(va_dpy, surfaces, 20); in main()
75 ASSERT( VA_STATUS_SUCCESS == va_status ); in main()
85 va_status = vaQueryConfigProfiles(va_dpy, profiles, &num_profiles); in main()
86 ASSERT( VA_STATUS_SUCCESS == va_status ); in main()
103 va_status = vaGetConfigAttributes(va_dpy, VAProfileMPEG2Main, VAEntrypointVLD, in main()
[all …]
Dtest_vaSurfaceAttrib.c57va_status = vaQueryConfigEntrypoints(va_dpy, VAProfileH264Baseline, entrypoints, &num_entrypoints); in test()
58 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
73va_status = vaGetConfigAttributes(va_dpy, VAProfileH264Baseline, VAEntrypointEncSlice, &attrib[0],… in test()
74 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
90va_status = vaCreateConfig(va_dpy, VAProfileH264Baseline, VAEntrypointEncSlice, &attrib[0], 2, &co… in test()
91 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
95 va_status = vaGetSurfaceAttributes(va_dpy, config_id, attrib_list, 2); in test()
96 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
136va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, frame_width, frame_height, &surface_id, … in test()
137 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
[all …]
Dtest_11.c38 va_status = vaCreateConfig(va_dpy, VAProfileMPEG2Main, VAEntrypointVLD, NULL, 0, &config); in pre()
39 ASSERT( VA_STATUS_SUCCESS == va_status ); in pre()
50va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, width, height, surfaces, total_surfaces,… in pre()
51 ASSERT( VA_STATUS_SUCCESS == va_status ); in pre()
55va_status = vaCreateContext( va_dpy, config, width, height, flags, surfaces, surface_count, &conte… in pre()
56 ASSERT( VA_STATUS_SUCCESS == va_status ); in pre()
128va_status = vaCreateBuffer(va_dpy, context, buffer_types[i], buffer_sizes[i], 1, data, &buffer_ids… in test()
129 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
141 va_status = vaMapBuffer(va_dpy, buffer_ids[i], &data); in test()
142 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
[all …]
Dtest_07.c67 va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, 352, 288, surfaces_1, 1, NULL, 0); in test()
68 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
73 va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, 352, 288, surfaces_4, 4, NULL, 0); in test()
74 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
79 va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, 352, 288, surfaces_16, 16, NULL, 0); in test()
80 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
90 va_status = vaDestroySurfaces(va_dpy, surfaces_4, 4); in test()
91 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
95 va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, 352, 288, surfaces_6, 6, NULL, 0); in test()
96 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
[all …]
Dtest_10.c38 va_status = vaCreateConfig(va_dpy, VAProfileMPEG2Main, VAEntrypointVLD, NULL, 0, &config); in pre()
39 ASSERT( VA_STATUS_SUCCESS == va_status ); in pre()
50va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, width, height, surfaces, total_surfaces,… in pre()
51 ASSERT( VA_STATUS_SUCCESS == va_status ); in pre()
55va_status = vaCreateContext( va_dpy, config, width, height, flags, surfaces, surface_count, &conte… in pre()
56 ASSERT( VA_STATUS_SUCCESS == va_status ); in pre()
111va_status = vaCreateBuffer(va_dpy, context, buffer_types[i], buffer_sizes[i], 1, NULL, &buffer_ids… in test()
112 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
119 va_status = vaDestroyBuffer(va_dpy, buffer_ids[i]); in test()
120 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
[all …]
Dtest_09.c51 va_status = vaQueryConfigEntrypoints(va_dpy, profiles[i], entrypoints, &num_entrypoints); in test()
52 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
57va_status = vaCreateConfig(va_dpy, profiles[i], entrypoints[j], NULL, 0, &(configs[config_count])); in test()
58 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
72va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, width, height, surfaces, total_surfaces,… in test()
73 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
79va_status = vaCreateContext( va_dpy, configs[i], width, height, flags, surfaces + i*surface_count,… in test()
80 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
86 va_status = vaDestroyContext( va_dpy, contexts[i] ); in test()
87 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
[all …]
Dtest_06.c56 va_status = vaQueryConfigEntrypoints(va_dpy, profiles[i], entrypoints, &num_entrypoints); in pre()
57 ASSERT( VA_STATUS_SUCCESS == va_status ); in pre()
61va_status = vaCreateConfig(va_dpy, profiles[i], entrypoints[j], NULL, 0, &(configs[config_count])); in pre()
62 ASSERT( VA_STATUS_SUCCESS == va_status ); in pre()
83 va_status = vaQueryConfigEntrypoints(va_dpy, profiles[i], entrypoints, &num_entrypoints); in test()
84 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
94va_status = vaQueryConfigAttributes(va_dpy, configs[config_count], &profile, &entrypoint, attrib_l… in test()
96 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
116 va_status = vaDestroyConfig( va_dpy, configs[i] ); in post()
117 ASSERT( VA_STATUS_SUCCESS == va_status ); in post()
Dtest_05.c50 va_status = vaQueryConfigEntrypoints(va_dpy, profiles[i], entrypoints, &num_entrypoints); in test()
51 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
56va_status = vaCreateConfig(va_dpy, profiles[i], entrypoints[j], NULL, 0, &(configs[config_count])); in test()
57 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
66 va_status = vaDestroyConfig( va_dpy, configs[i] ); in test()
67 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
Dtest_x11.c27 VAStatus va_status; variable
41 va_status = vaInitialize(va_dpy, &major_version, &minor_version); in test_init()
42 ASSERT( VA_STATUS_SUCCESS == va_status ); in test_init()
48 va_status = vaTerminate(va_dpy); in test_terminate()
49 ASSERT( VA_STATUS_SUCCESS == va_status ); in test_terminate()
Dtest_android.c27 VAStatus va_status; variable
42 va_status = vaInitialize(va_dpy, &major_version, &minor_version); in test_init()
43 ASSERT( VA_STATUS_SUCCESS == va_status ); in test_init()
49 va_status = vaTerminate(va_dpy); in test_terminate()
50 ASSERT( VA_STATUS_SUCCESS == va_status ); in test_terminate()
Dtest_08.c77va_status = vaCreateSurfaces(va_dpy, VA_RT_FORMAT_YUV420, test_sizes[i].w, test_sizes[i].h, &surf… in test()
78 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
85 va_status = vaDestroySurfaces(va_dpy, surfaces, NUM_SIZES); in test()
86 ASSERT( VA_STATUS_SUCCESS == va_status ); in test()
/hardware/intel/common/libva/test/decode/
Dmpeg2vldemo.cpp48 #define CHECK_VASTATUS(va_status,func) \ argument
49 if (va_status != VA_STATUS_SUCCESS) { \
150 VAStatus va_status; in main() local
159 va_status = vaInitialize(va_dpy, &major_ver, &minor_ver); in main()
160 assert(va_status == VA_STATUS_SUCCESS); in main()
162 va_status = vaQueryConfigEntrypoints(va_dpy, VAProfileMPEG2Main, entrypoints, in main()
164 CHECK_VASTATUS(va_status, "vaQueryConfigEntrypoints"); in main()
184 va_status = vaCreateConfig(va_dpy, VAProfileMPEG2Main, VAEntrypointVLD, in main()
186 CHECK_VASTATUS(va_status, "vaQueryConfigEntrypoints"); in main()
188 va_status = vaCreateSurfaces( in main()
[all …]
Dtinyjpeg.c557 #define CHECK_VASTATUS(va_status,func) \ in tinyjpeg_decode() argument
558 if (va_status != VA_STATUS_SUCCESS) { \ in tinyjpeg_decode()
572 VAStatus va_status; in tinyjpeg_decode() local
588 va_status = vaInitialize(va_dpy, &major_ver, &minor_ver); in tinyjpeg_decode()
589 assert(va_status == VA_STATUS_SUCCESS); in tinyjpeg_decode()
591 va_status = vaQueryConfigEntrypoints(va_dpy, VAProfileJPEGBaseline, entrypoints, in tinyjpeg_decode()
593 CHECK_VASTATUS(va_status, "vaQueryConfigEntrypoints"); in tinyjpeg_decode()
613 va_status = vaCreateConfig(va_dpy, VAProfileJPEGBaseline, VAEntrypointVLD, in tinyjpeg_decode()
615 CHECK_VASTATUS(va_status, "vaQueryConfigEntrypoints"); in tinyjpeg_decode()
702 va_status = vaCreateSurfaces(va_dpy,surface_type, in tinyjpeg_decode()
[all …]
/hardware/intel/common/libva/test/videoprocess/
Dvideoprocess.cpp47 #define CHECK_VASTATUS(va_status,func) \ argument
48 if (va_status != VA_STATUS_SUCCESS) { \
188 VAStatus va_status; in create_surface() local
195 va_status = vaCreateSurfaces(va_dpy, in create_surface()
203 return va_status; in create_surface()
211 VAStatus va_status; in construct_nv12_mask_surface() local
217 va_status = vaDeriveImage(va_dpy, surface_id, &surface_image); in construct_nv12_mask_surface()
218 CHECK_VASTATUS(va_status, "vaDeriveImage"); in construct_nv12_mask_surface()
220 va_status = vaMapBuffer(va_dpy, surface_image.buf, &surface_p); in construct_nv12_mask_surface()
221 CHECK_VASTATUS(va_status, "vaMapBuffer"); in construct_nv12_mask_surface()
[all …]
/hardware/intel/common/libva/test/transcode/
Dmpeg2transcode.cpp75 #define CHECK_VASTATUS(va_status,func) \ argument
76 if (va_status != VA_STATUS_SUCCESS) { \
2006 VAStatus va_status; in create_encode_pipe() local
2012 va_status = vaInitialize(va_dpy, &major_ver, &minor_ver); in create_encode_pipe()
2013 CHECK_VASTATUS(va_status, "vaInitialize"); in create_encode_pipe()
2048 va_status = vaCreateConfig(va_dpy, avcenc_context.profile, VAEntrypointEncSlice, in create_encode_pipe()
2050 CHECK_VASTATUS(va_status, "vaCreateConfig"); in create_encode_pipe()
2053 va_status = vaCreateContext(va_dpy, avcenc_context.config_id, in create_encode_pipe()
2058 CHECK_VASTATUS(va_status, "vaCreateContext"); in create_encode_pipe()
2099 VAStatus va_status; in alloc_encode_resource() local
[all …]
/hardware/intel/common/libva/test/vainfo/
Dvainfo.c32 #define CHECK_VASTATUS(va_status,func, ret) \ argument
33 if (va_status != VA_STATUS_SUCCESS) { \
34 …fprintf(stderr,"%s failed with error code %d (%s),exit\n",func, va_status, vaErrorStr(va_status));…
88 VAStatus va_status; in main() local
110 va_status = vaInitialize(va_dpy, &major_version, &minor_version); in main()
111 CHECK_VASTATUS(va_status, "vaInitialize", 3); in main()
129 va_status = vaQueryConfigProfiles(va_dpy, profile_list, &num_profiles); in main()
130 CHECK_VASTATUS(va_status, "vaQueryConfigProfiles", 6); in main()
136 va_status = vaQueryConfigEntrypoints(va_dpy, profile, entrypoints, in main()
138 if (va_status == VA_STATUS_ERROR_UNSUPPORTED_PROFILE) in main()
[all …]
/hardware/intel/common/libmix/mix_video/src/
Dmixvideoformatenc_mpeg4.c146 VAStatus va_status = VA_STATUS_SUCCESS; in mix_videofmtenc_mpeg4_initialize() local
303 va_status = vaQueryConfigProfiles (va_display, va_profiles, &va_num_profiles); in mix_videofmtenc_mpeg4_initialize()
305 if (va_status != VA_STATUS_SUCCESS) in mix_videofmtenc_mpeg4_initialize()
338 va_status = vaQueryConfigEntrypoints(va_display, in mix_videofmtenc_mpeg4_initialize()
342 if (va_status != VA_STATUS_SUCCESS) in mix_videofmtenc_mpeg4_initialize()
376 va_status = vaGetConfigAttributes(va_display, parent->va_profile, in mix_videofmtenc_mpeg4_initialize()
380 if (va_status != VA_STATUS_SUCCESS) in mix_videofmtenc_mpeg4_initialize()
421 va_status = vaCreateConfig(va_display, parent->va_profile, in mix_videofmtenc_mpeg4_initialize()
425 if (va_status != VA_STATUS_SUCCESS) in mix_videofmtenc_mpeg4_initialize()
457 va_status = vaCreateSurfaces(va_display, parent->picture_width, in mix_videofmtenc_mpeg4_initialize()
[all …]
Dmixvideoformatenc_h264.c146 VAStatus va_status = VA_STATUS_SUCCESS; in mix_videofmtenc_h264_initialize() local
318 va_status = vaQueryConfigProfiles (va_display, va_profiles, &va_num_profiles); in mix_videofmtenc_h264_initialize()
320 if (va_status != VA_STATUS_SUCCESS) in mix_videofmtenc_h264_initialize()
353 va_status = vaQueryConfigEntrypoints(va_display, in mix_videofmtenc_h264_initialize()
357 if (va_status != VA_STATUS_SUCCESS) in mix_videofmtenc_h264_initialize()
391 va_status = vaGetConfigAttributes(va_display, parent->va_profile, in mix_videofmtenc_h264_initialize()
395 if (va_status != VA_STATUS_SUCCESS) in mix_videofmtenc_h264_initialize()
436 va_status = vaCreateConfig(va_display, parent->va_profile, in mix_videofmtenc_h264_initialize()
440 if (va_status != VA_STATUS_SUCCESS) in mix_videofmtenc_h264_initialize()
472 va_status = vaCreateSurfaces(va_display, parent->picture_width, in mix_videofmtenc_h264_initialize()
[all …]
Dmixvideoformatenc_preview.c145 VAStatus va_status = VA_STATUS_SUCCESS; in mix_videofmtenc_preview_initialize() local
256 va_status = vaQueryConfigProfiles (va_display, va_profiles, &va_num_profiles); in mix_videofmtenc_preview_initialize()
258 if (va_status != VA_STATUS_SUCCESS) in mix_videofmtenc_preview_initialize()
291 va_status = vaQueryConfigEntrypoints(va_display, in mix_videofmtenc_preview_initialize()
295 if (va_status != VA_STATUS_SUCCESS) in mix_videofmtenc_preview_initialize()
329 va_status = vaGetConfigAttributes(va_display, parent->va_profile, in mix_videofmtenc_preview_initialize()
333 if (va_status != VA_STATUS_SUCCESS) in mix_videofmtenc_preview_initialize()
374 va_status = vaCreateConfig(va_display, parent->va_profile, in mix_videofmtenc_preview_initialize()
378 if (va_status != VA_STATUS_SUCCESS) in mix_videofmtenc_preview_initialize()
410 va_status = vaCreateSurfaces(va_display, parent->picture_width, in mix_videofmtenc_preview_initialize()
[all …]
/hardware/intel/common/libva/test/putsurface/
Dputsurface_common.c52 #define CHECK_VASTATUS(va_status,func) \ argument
53 if (va_status != VA_STATUS_SUCCESS) { \
153 VAStatus va_status; in ensure_image_formats() local
168 va_status = vaQueryImageFormats(va_dpy, image_formats, &num_image_formats); in ensure_image_formats()
169 CHECK_VASTATUS(va_status, "vaQuerySurfaceAttributes()"); in ensure_image_formats()
195 VAStatus va_status; in ensure_surface_attribs() local
206 va_status = vaCreateConfig(va_dpy, VAProfileNone, VAEntrypointVideoProc, in ensure_surface_attribs()
208 CHECK_VASTATUS(va_status, "vaCreateConfig()"); in ensure_surface_attribs()
217 va_status = vaQuerySurfaceAttributes(va_dpy, vpp_config_id, in ensure_surface_attribs()
219 if (va_status == VA_STATUS_SUCCESS) in ensure_surface_attribs()
[all …]
/hardware/intel/common/libva/test/encode/
Davcenc.c73 #define CHECK_VASTATUS(va_status,func) \ argument
74 if (va_status != VA_STATUS_SUCCESS) { \
162 VAStatus va_status; in create_encode_pipe() local
165 va_status = vaInitialize(va_dpy, &major_ver, &minor_ver); in create_encode_pipe()
166 CHECK_VASTATUS(va_status, "vaInitialize"); in create_encode_pipe()
201 va_status = vaCreateConfig(va_dpy, avcenc_context.profile, VAEntrypointEncSlice, in create_encode_pipe()
203 CHECK_VASTATUS(va_status, "vaCreateConfig"); in create_encode_pipe()
206 va_status = vaCreateContext(va_dpy, avcenc_context.config_id, in create_encode_pipe()
211 CHECK_VASTATUS(va_status, "vaCreateContext"); in create_encode_pipe()
252 VAStatus va_status; in alloc_encode_resource() local
[all …]
Dh264encode.c43 #define CHECK_VASTATUS(va_status,func) \ argument
44 if (va_status != VA_STATUS_SUCCESS) { \
924 VAStatus va_status; in init_va() local
928 va_status = vaInitialize(va_dpy, &major_ver, &minor_ver); in init_va()
929 CHECK_VASTATUS(va_status, "vaInitialize"); in init_va()
994 va_status = vaGetConfigAttributes(va_dpy, h264_profile, VAEntrypointEncSlice, in init_va()
996 CHECK_VASTATUS(va_status, "vaGetConfigAttributes"); in init_va()
1117 VAStatus va_status; in setup_encode() local
1121 va_status = vaCreateConfig(va_dpy, h264_profile, VAEntrypointEncSlice, in setup_encode()
1123 CHECK_VASTATUS(va_status, "vaCreateConfig"); in setup_encode()
[all …]
Dmpeg2vaenc.c71 #define CHECK_VASTATUS(va_status, func) \ argument
72 if (va_status != VA_STATUS_SUCCESS) { \
436 VAStatus va_status; in upload_yuv_to_surface() local
449va_status = vaDeriveImage(ctx->va_dpy, surface_ids[ctx->current_upload_surface], &surface_image); in upload_yuv_to_surface()
450 CHECK_VASTATUS(va_status,"vaDeriveImage"); in upload_yuv_to_surface()
453 assert(VA_STATUS_SUCCESS == va_status); in upload_yuv_to_surface()
822 VAStatus va_status; in mpeg2enc_alloc_va_resources() local
827 va_status = vaInitialize(ctx->va_dpy, in mpeg2enc_alloc_va_resources()
830 CHECK_VASTATUS(va_status, "vaInitialize"); in mpeg2enc_alloc_va_resources()
874 va_status = vaCreateConfig(ctx->va_dpy, in mpeg2enc_alloc_va_resources()
[all …]
Dmpeg2enc.c71 #define CHECK_VASTATUS(va_status, func) \ argument
72 if (va_status != VA_STATUS_SUCCESS) { \
436 VAStatus va_status; in upload_yuv_to_surface() local
449va_status = vaDeriveImage(ctx->va_dpy, surface_ids[ctx->current_upload_surface], &surface_image); in upload_yuv_to_surface()
450 CHECK_VASTATUS(va_status,"vaDeriveImage"); in upload_yuv_to_surface()
453 assert(VA_STATUS_SUCCESS == va_status); in upload_yuv_to_surface()
822 VAStatus va_status; in mpeg2enc_alloc_va_resources() local
827 va_status = vaInitialize(ctx->va_dpy, in mpeg2enc_alloc_va_resources()
830 CHECK_VASTATUS(va_status, "vaInitialize"); in mpeg2enc_alloc_va_resources()
874 va_status = vaCreateConfig(ctx->va_dpy, in mpeg2enc_alloc_va_resources()
[all …]
/hardware/intel/img/hwcomposer/merrifield/common/devices/
DVirtualDevice.cpp104 VAStatus va_status; in MappedSurface() local
105 va_status = vaDeriveImage(va_dpy, surf, &image); in MappedSurface()
106 if (va_status != VA_STATUS_SUCCESS) { in MappedSurface()
107 ETRACE("vaDeriveImage returns %08x", va_status); in MappedSurface()
110 va_status = vaMapBuffer(va_dpy, image.buf, (void**)&ptr); in MappedSurface()
111 if (va_status != VA_STATUS_SUCCESS) { in MappedSurface()
112 ETRACE("vaMapBuffer returns %08x", va_status); in MappedSurface()
121 VAStatus va_status; in ~MappedSurface() local
123 va_status = vaUnmapBuffer(va_dpy, image.buf); in ~MappedSurface()
124 if (va_status != VA_STATUS_SUCCESS) ETRACE("vaUnmapBuffer returns %08x", va_status); in ~MappedSurface()
[all …]

12