hardware/intel/libva
Revisão | 9134c0e5ff4599137a63b0ebf5dab018f44286e6 (tree) |
---|---|
Hora | 2007-09-21 00:38:06 |
Autor | Waldo Bastian <waldo.bastian@inte...> |
Commiter | Waldo Bastian |
Swapped vaGetConfigAttributes and vaQueryConfigAttributes for API consistency
@@ -141,7 +141,7 @@ VAStatus dummy_QueryConfigEntrypoints( | ||
141 | 141 | return VA_STATUS_SUCCESS; |
142 | 142 | } |
143 | 143 | |
144 | -VAStatus dummy_QueryConfigAttributes( | |
144 | +VAStatus dummy_GetConfigAttributes( | |
145 | 145 | VADriverContextP ctx, |
146 | 146 | VAProfile profile, |
147 | 147 | VAEntrypoint entrypoint, |
@@ -332,7 +332,7 @@ VAStatus dummy_DestroyConfig( | ||
332 | 332 | return VA_STATUS_SUCCESS; |
333 | 333 | } |
334 | 334 | |
335 | -VAStatus dummy_GetConfigAttributes( | |
335 | +VAStatus dummy_QueryConfigAttributes( | |
336 | 336 | VADriverContextP ctx, |
337 | 337 | VAConfigID config_id, |
338 | 338 | VAProfile *profile, /* out */ |
@@ -477,7 +477,7 @@ VAStatus vaQueryConfigEntrypoints ( | ||
477 | 477 | return ctx->vtable.vaQueryConfigEntrypoints ( ctx, profile, entrypoints, num_entrypoints); |
478 | 478 | } |
479 | 479 | |
480 | -VAStatus vaQueryConfigAttributes ( | |
480 | +VAStatus vaGetConfigAttributes ( | |
481 | 481 | VADisplay dpy, |
482 | 482 | VAProfile profile, |
483 | 483 | VAEntrypoint entrypoint, |
@@ -488,8 +488,8 @@ VAStatus vaQueryConfigAttributes ( | ||
488 | 488 | VADriverContextP ctx = CTX(dpy); |
489 | 489 | ASSERT_CONTEXT(ctx); |
490 | 490 | |
491 | - TRACE(vaQueryConfigAttributes); | |
492 | - return ctx->vtable.vaQueryConfigAttributes ( ctx, profile, entrypoint, attrib_list, num_attribs ); | |
491 | + TRACE(vaGetConfigAttributes); | |
492 | + return ctx->vtable.vaGetConfigAttributes ( ctx, profile, entrypoint, attrib_list, num_attribs ); | |
493 | 493 | } |
494 | 494 | |
495 | 495 | VAStatus vaQueryConfigProfiles ( |
@@ -533,7 +533,7 @@ VAStatus vaDestroyConfig ( | ||
533 | 533 | return ctx->vtable.vaDestroyConfig ( ctx, config_id ); |
534 | 534 | } |
535 | 535 | |
536 | -VAStatus vaGetConfigAttributes ( | |
536 | +VAStatus vaQueryConfigAttributes ( | |
537 | 537 | VADisplay dpy, |
538 | 538 | VAConfigID config_id, |
539 | 539 | VAProfile *profile, /* out */ |
@@ -545,8 +545,8 @@ VAStatus vaGetConfigAttributes ( | ||
545 | 545 | VADriverContextP ctx = CTX(dpy); |
546 | 546 | ASSERT_CONTEXT(ctx); |
547 | 547 | |
548 | - TRACE(vaGetConfigAttributes); | |
549 | - return ctx->vtable.vaGetConfigAttributes( ctx, config_id, profile, entrypoint, attrib_list, num_attribs); | |
548 | + TRACE(vaQueryConfigAttributes); | |
549 | + return ctx->vtable.vaQueryConfigAttributes( ctx, config_id, profile, entrypoint, attrib_list, num_attribs); | |
550 | 550 | } |
551 | 551 | |
552 | 552 | VAStatus vaCreateSurfaces ( |
@@ -231,14 +231,14 @@ VAStatus vaQueryConfigEntrypoints ( | ||
231 | 231 | ); |
232 | 232 | |
233 | 233 | /* |
234 | - * Query attributes for a given profile/entrypoint pair | |
234 | + * Get attributes for a given profile/entrypoint pair | |
235 | 235 | * The caller must provide an attrib_list with all attributes to be |
236 | 236 | * queried. Upon return, the attributes in attrib_list have been |
237 | 237 | * updated with their value. Unknown attributes or attributes that are |
238 | 238 | * not supported for the given profile/entrypoint pair will have their |
239 | 239 | * value set to VA_ATTRIB_NOT_SUPPORTED |
240 | 240 | */ |
241 | -VAStatus vaQueryConfigAttributes ( | |
241 | +VAStatus vaGetConfigAttributes ( | |
242 | 242 | VADisplay dpy, |
243 | 243 | VAProfile profile, |
244 | 244 | VAEntrypoint entrypoint, |
@@ -274,14 +274,14 @@ VAStatus vaDestroyConfig ( | ||
274 | 274 | ); |
275 | 275 | |
276 | 276 | /* |
277 | - * Get all attributes for a given configuration | |
277 | + * Query all attributes for a given configuration | |
278 | 278 | * The profile of the configuration is returned in profile |
279 | 279 | * The entrypoint of the configuration is returned in entrypoint |
280 | 280 | * The caller must provide an attrib_list array that can hold at least |
281 | 281 | * vaMaxNumConfigAttributes() entries. The actual number of attributes |
282 | 282 | * returned in attrib_list is returned in num_attribs |
283 | 283 | */ |
284 | -VAStatus vaGetConfigAttributes ( | |
284 | +VAStatus vaQueryConfigAttributes ( | |
285 | 285 | VADisplay dpy, |
286 | 286 | VAConfigID config_id, |
287 | 287 | VAProfile *profile, /* out */ |
@@ -1459,7 +1459,7 @@ Mostly to demonstrate program flow with no error handling ... | ||
1459 | 1459 | /* Assuming finding VLD, find out the format for the render target */ |
1460 | 1460 | VAConfigAttrib attrib; |
1461 | 1461 | attrib.type = VAConfigAttribRTFormat; |
1462 | - vaQueryConfigAttributes(dpy, VAProfileMPEG2Main, VAEntrypointVLD, | |
1462 | + vaGetConfigAttributes(dpy, VAProfileMPEG2Main, VAEntrypointVLD, | |
1463 | 1463 | &attrib, 1); |
1464 | 1464 | |
1465 | 1465 | if (attrib.value & VA_RT_FORMAT_YUV420) |
@@ -68,7 +68,7 @@ struct VADriverContext | ||
68 | 68 | int *num_entrypoints /* out */ |
69 | 69 | ); |
70 | 70 | |
71 | - VAStatus (*vaQueryConfigAttributes) ( | |
71 | + VAStatus (*vaGetConfigAttributes) ( | |
72 | 72 | VADriverContextP ctx, |
73 | 73 | VAProfile profile, |
74 | 74 | VAEntrypoint entrypoint, |
@@ -90,7 +90,7 @@ struct VADriverContext | ||
90 | 90 | VAConfigID config_id |
91 | 91 | ); |
92 | 92 | |
93 | - VAStatus (*vaGetConfigAttributes) ( | |
93 | + VAStatus (*vaQueryConfigAttributes) ( | |
94 | 94 | VADriverContextP ctx, |
95 | 95 | VAConfigID config_id, |
96 | 96 | VAProfile *profile, /* out */ |