Home
last modified time | relevance | path

Searched refs:surfaces (Results 1 – 25 of 29) sorted by relevance

12

/hardware/intel/common/libva/test/basic/
Dtest_08.c68 VASurfaceID surfaces[NUM_SIZES+1]; in test() local
71 memset(surfaces, 0xff, sizeof(surfaces)); in test()
76 surfaces[i+1] = DEAD_SURFACE_ID; in test()
77 …Surfaces(va_dpy, VA_RT_FORMAT_YUV420, test_sizes[i].w, test_sizes[i].h, &surfaces[i], 1, NULL, 0); in test()
79 ASSERT( DEAD_SURFACE_ID == surfaces[i+1] ); in test()
82 test_unique_surfaces(surfaces, NUM_SIZES); in test()
85 va_status = vaDestroySurfaces(va_dpy, surfaces, NUM_SIZES); in test()
Dtest.c55 VASurfaceID surfaces[21]; in main() local
58 surfaces[20] = -1; in main()
59 va_status = vaCreateSurfaces(va_dpy, 720, 480, VA_RT_FORMAT_YUV420, 20, surfaces); in main()
61 ASSERT( -1 == surfaces[20] ); /* bounds check */ in main()
64 printf("Surface %d surface_id = %08x\n", i, surfaces[i]); 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()
96 VASurfaceID surfaces[20]; in main() local
114 va_status = vaCreateSurfaces(va_dpy, 720, 480, VA_RT_FORMAT_YUV420, 20, surfaces); in main()
117 … va_status = vaCreateContext(va_dpy, config_id, 720, 480, 0 /* flag */, surfaces, 20, &context); in main()
[all …]
Dtest_10.c31 VASurfaceID *surfaces; variable
47 surfaces = malloc(total_surfaces * sizeof(VASurfaceID)); 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()
134 va_status = vaDestroySurfaces(va_dpy, surfaces, total_surfaces); in post()
137 free(surfaces); in post()
Dtestplan.txt29 - Create and destroy surfaces
31 - Create surfaces of 352 x 288 pixels
32 - Create 1, 4 and 16 surfaces, destroy 4, create 6 surfaces, destroy 16, 1
33 and 6 surfaces.
36 - Create and destroy surfaces of different sizes
37 - Create surfaces of 10 x 10 pixels, 128 x 128 pixels, 176 x 144 pixels, 144 x 176
43 - Pass 4 surfaces of 352 x 288 pixels
Dtest_09.c69 VASurfaceID *surfaces = malloc(total_surfaces * sizeof(VASurfaceID)); in test() local
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()
97 va_status = vaDestroySurfaces(va_dpy, surfaces, total_surfaces); in test()
102 free(surfaces); in test()
Dtest_11.c31 VASurfaceID *surfaces; variable
47 surfaces = malloc(total_surfaces * sizeof(VASurfaceID)); 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()
173 va_status = vaDestroySurfaces(va_dpy, surfaces, total_surfaces); in post()
176 free(surfaces); in post()
/hardware/intel/common/libva/va/
Dva_compat.h102 #define vaCreateSurfaces6(dpy, width, height, format, num_surfaces, surfaces) \ argument
103 (vaCreateSurfaces)(dpy, format, width, height, surfaces, num_surfaces, \
106 #define vaCreateSurfaces8(dpy, format, width, height, surfaces, num_surfaces, attribs, num_attribs)… argument
107 (vaCreateSurfaces)(dpy, format, width, height, surfaces, num_surfaces, \
Dva_compat.c37 VASurfaceID *surfaces in vaCreateSurfaces_0_32_0() argument
40 return vaCreateSurfaces(dpy, format, width, height, surfaces, num_surfaces, in vaCreateSurfaces_0_32_0()
Dva_tpi.c52 VASurfaceID *surfaces, /* out */ in vaCreateSurfacesWithAttribute() argument
65 …return tpi->vaCreateSurfacesWithAttribute( ctx, width, height, format, num_surfaces, surfaces, att… in vaCreateSurfacesWithAttribute()
Dva_backend_tpi.h44 VASurfaceID *surfaces, /* out */
Dva_tpi.h103 VASurfaceID *surfaces, /* out */
Dva_backend.h108 VASurfaceID *surfaces /* out */
409 VASurfaceID *surfaces,
Dva_trace.h83 VASurfaceID *surfaces, /* out */
/hardware/intel/common/libmix/mix_video/src/
Dmixvideoformatenc_preview.c52 self->surfaces= NULL; in mix_videoformatenc_preview_init()
146 VASurfaceID * surfaces; in mix_videofmtenc_preview_initialize() local
398 surfaces = g_malloc(sizeof(VASurfaceID)*numSurfaces); in mix_videofmtenc_preview_initialize()
400 if (surfaces == NULL) in mix_videofmtenc_preview_initialize()
412 numSurfaces, surfaces); in mix_videofmtenc_preview_initialize()
464 self->surfaces = g_malloc(sizeof(VASurfaceID) * self->surface_num); in mix_videofmtenc_preview_initialize()
466 if (self->surfaces == NULL) in mix_videofmtenc_preview_initialize()
470 g_free (surfaces); in mix_videofmtenc_preview_initialize()
479 self->surfaces[index] = self->ci_shared_surfaces[index]; in mix_videofmtenc_preview_initialize()
483 self->surfaces[index + parent->ci_frame_num] = surfaces[index]; in mix_videofmtenc_preview_initialize()
[all …]
Dmixvideoformatenc_mpeg4.c52 self->surfaces= NULL; in mix_videoformatenc_mpeg4_init()
147 VASurfaceID * surfaces; in mix_videofmtenc_mpeg4_initialize() local
445 surfaces = g_malloc(sizeof(VASurfaceID)*numSurfaces); in mix_videofmtenc_mpeg4_initialize()
447 if (surfaces == NULL) in mix_videofmtenc_mpeg4_initialize()
459 numSurfaces, surfaces); in mix_videofmtenc_mpeg4_initialize()
511 self->surfaces = g_malloc(sizeof(VASurfaceID) * self->surface_num); in mix_videofmtenc_mpeg4_initialize()
513 if (self->surfaces == NULL) in mix_videofmtenc_mpeg4_initialize()
517 g_free (surfaces); in mix_videofmtenc_mpeg4_initialize()
526 self->surfaces[index] = self->ci_shared_surfaces[index]; in mix_videofmtenc_mpeg4_initialize()
530 self->surfaces[index + parent->ci_frame_num] = surfaces[index]; in mix_videofmtenc_mpeg4_initialize()
[all …]
Dmixvideoformatenc_h264.c52 self->surfaces= NULL; in mix_videoformatenc_h264_init()
147 VASurfaceID * surfaces; in mix_videofmtenc_h264_initialize() local
460 surfaces = g_malloc(sizeof(VASurfaceID)*numSurfaces); in mix_videofmtenc_h264_initialize()
462 if (surfaces == NULL) in mix_videofmtenc_h264_initialize()
474 numSurfaces, surfaces); in mix_videofmtenc_h264_initialize()
526 self->surfaces = g_malloc(sizeof(VASurfaceID) * self->surface_num); in mix_videofmtenc_h264_initialize()
528 if (self->surfaces == NULL) in mix_videofmtenc_h264_initialize()
532 g_free (surfaces); in mix_videofmtenc_h264_initialize()
541 self->surfaces[index] = self->ci_shared_surfaces[index]; in mix_videofmtenc_h264_initialize()
545 self->surfaces[index + parent->ci_frame_num] = surfaces[index]; in mix_videofmtenc_h264_initialize()
[all …]
Dmixsurfacepool.c224 VASurfaceID *surfaces, guint num_surfaces) { in mix_surfacepool_initialize() argument
228 if (obj == NULL || surfaces == NULL) { in mix_surfacepool_initialize()
232 (guint) surfaces); in mix_surfacepool_initialize()
283 mix_videoframe_set_frame_id(frame, surfaces[i]); in mix_surfacepool_initialize()
Dmixsurfacepool.h142 VASurfaceID *surfaces, guint num_surfaces);
Dmixvideoformatenc_preview.h42 VASurfaceID * surfaces; member
Dmixvideoformatenc_mpeg4.h43 VASurfaceID * surfaces; member
Dmixvideoformatenc_h264.h42 VASurfaceID * surfaces; member
Dmixvideoformat_mp42.c202 VASurfaceID *surfaces = NULL; in mix_videofmt_mp42_initialize() local
330 surfaces = parent->va_surfaces; in mix_videofmt_mp42_initialize()
334 surfaces); in mix_videofmt_mp42_initialize()
349 ret = mix_surfacepool_initialize(parent->surfacepool, surfaces, in mix_videofmt_mp42_initialize()
356 parent->picture_width, parent->picture_height, 0, surfaces, in mix_videofmt_mp42_initialize()
Dmixvideoformat_h264.c174 VASurfaceID *surfaces = NULL; in mix_videofmt_h264_initialize() local
461 surfaces = parent->va_surfaces; in mix_videofmt_h264_initialize()
463 if (surfaces == NULL) in mix_videofmt_h264_initialize()
475 numSurfaces, surfaces); in mix_videofmt_h264_initialize()
496 surfaces, numSurfaces); in mix_videofmt_h264_initialize()
516 0, surfaces, numSurfaces, in mix_videofmt_h264_initialize()
Dmixvideoformat_vc1.c264 VASurfaceID *surfaces = NULL; in mix_videofmt_vc1_initialize() local
518 surfaces = parent->va_surfaces; in mix_videofmt_vc1_initialize()
520 if (surfaces == NULL) in mix_videofmt_vc1_initialize()
529 numSurfaces, surfaces); in mix_videofmt_vc1_initialize()
549 surfaces, numSurfaces); in mix_videofmt_vc1_initialize()
569 0, surfaces, numSurfaces, in mix_videofmt_vc1_initialize()
/hardware/intel/img/psb_video/src/
Dpsb_output.c1386 if (obj_subpic->surfaces != NULL) { in psb__LinkSurfaceIntoSubpict()
1387 subpic_surface = (subpic_surface_s *)obj_subpic->surfaces; in psb__LinkSurfaceIntoSubpict()
1405 if (NULL == obj_subpic->surfaces) { in psb__LinkSurfaceIntoSubpict()
1406 obj_subpic->surfaces = (void *)subpic_surface; in psb__LinkSurfaceIntoSubpict()
1408 subpic_surface->next = (subpic_surface_p)obj_subpic->surfaces; in psb__LinkSurfaceIntoSubpict()
1409 obj_subpic->surfaces = (void *)subpic_surface; in psb__LinkSurfaceIntoSubpict()
1458 if (obj_subpic->surfaces != NULL) { in psb__DelinkSurfaceFromSubpict()
1459 subpic_surface = (subpic_surface_s *)obj_subpic->surfaces; in psb__DelinkSurfaceFromSubpict()
1473 obj_subpic->surfaces = (void *)subpic_surface->next; in psb__DelinkSurfaceFromSubpict()
1535 obj_subpic->surfaces = NULL; in psb_CreateSubpicture()
[all …]

12