• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Revisão9134c0e5ff4599137a63b0ebf5dab018f44286e6 (tree)
Hora2007-09-21 00:38:06
AutorWaldo Bastian <waldo.bastian@inte...>
CommiterWaldo Bastian

Mensagem de Log

Swapped vaGetConfigAttributes and vaQueryConfigAttributes for API consistency

Mudança Sumário

Diff

--- a/dummy_drv_video/dummy_drv_video.c
+++ b/dummy_drv_video/dummy_drv_video.c
@@ -141,7 +141,7 @@ VAStatus dummy_QueryConfigEntrypoints(
141141 return VA_STATUS_SUCCESS;
142142 }
143143
144-VAStatus dummy_QueryConfigAttributes(
144+VAStatus dummy_GetConfigAttributes(
145145 VADriverContextP ctx,
146146 VAProfile profile,
147147 VAEntrypoint entrypoint,
@@ -332,7 +332,7 @@ VAStatus dummy_DestroyConfig(
332332 return VA_STATUS_SUCCESS;
333333 }
334334
335-VAStatus dummy_GetConfigAttributes(
335+VAStatus dummy_QueryConfigAttributes(
336336 VADriverContextP ctx,
337337 VAConfigID config_id,
338338 VAProfile *profile, /* out */
--- a/src/va.c
+++ b/src/va.c
@@ -477,7 +477,7 @@ VAStatus vaQueryConfigEntrypoints (
477477 return ctx->vtable.vaQueryConfigEntrypoints ( ctx, profile, entrypoints, num_entrypoints);
478478 }
479479
480-VAStatus vaQueryConfigAttributes (
480+VAStatus vaGetConfigAttributes (
481481 VADisplay dpy,
482482 VAProfile profile,
483483 VAEntrypoint entrypoint,
@@ -488,8 +488,8 @@ VAStatus vaQueryConfigAttributes (
488488 VADriverContextP ctx = CTX(dpy);
489489 ASSERT_CONTEXT(ctx);
490490
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 );
493493 }
494494
495495 VAStatus vaQueryConfigProfiles (
@@ -533,7 +533,7 @@ VAStatus vaDestroyConfig (
533533 return ctx->vtable.vaDestroyConfig ( ctx, config_id );
534534 }
535535
536-VAStatus vaGetConfigAttributes (
536+VAStatus vaQueryConfigAttributes (
537537 VADisplay dpy,
538538 VAConfigID config_id,
539539 VAProfile *profile, /* out */
@@ -545,8 +545,8 @@ VAStatus vaGetConfigAttributes (
545545 VADriverContextP ctx = CTX(dpy);
546546 ASSERT_CONTEXT(ctx);
547547
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);
550550 }
551551
552552 VAStatus vaCreateSurfaces (
--- a/src/va.h
+++ b/src/va.h
@@ -231,14 +231,14 @@ VAStatus vaQueryConfigEntrypoints (
231231 );
232232
233233 /*
234- * Query attributes for a given profile/entrypoint pair
234+ * Get attributes for a given profile/entrypoint pair
235235 * The caller must provide an “attrib_list” with all attributes to be
236236 * queried. Upon return, the attributes in “attrib_list” have been
237237 * updated with their value. Unknown attributes or attributes that are
238238 * not supported for the given profile/entrypoint pair will have their
239239 * value set to VA_ATTRIB_NOT_SUPPORTED
240240 */
241-VAStatus vaQueryConfigAttributes (
241+VAStatus vaGetConfigAttributes (
242242 VADisplay dpy,
243243 VAProfile profile,
244244 VAEntrypoint entrypoint,
@@ -274,14 +274,14 @@ VAStatus vaDestroyConfig (
274274 );
275275
276276 /*
277- * Get all attributes for a given configuration
277+ * Query all attributes for a given configuration
278278 * The profile of the configuration is returned in “profile”
279279 * The entrypoint of the configuration is returned in “entrypoint”
280280 * The caller must provide an “attrib_list” array that can hold at least
281281 * vaMaxNumConfigAttributes() entries. The actual number of attributes
282282 * returned in “attrib_list” is returned in “num_attribs”
283283 */
284-VAStatus vaGetConfigAttributes (
284+VAStatus vaQueryConfigAttributes (
285285 VADisplay dpy,
286286 VAConfigID config_id,
287287 VAProfile *profile, /* out */
@@ -1459,7 +1459,7 @@ Mostly to demonstrate program flow with no error handling ...
14591459 /* Assuming finding VLD, find out the format for the render target */
14601460 VAConfigAttrib attrib;
14611461 attrib.type = VAConfigAttribRTFormat;
1462- vaQueryConfigAttributes(dpy, VAProfileMPEG2Main, VAEntrypointVLD,
1462+ vaGetConfigAttributes(dpy, VAProfileMPEG2Main, VAEntrypointVLD,
14631463 &attrib, 1);
14641464
14651465 if (attrib.value & VA_RT_FORMAT_YUV420)
--- a/src/va_backend.h
+++ b/src/va_backend.h
@@ -68,7 +68,7 @@ struct VADriverContext
6868 int *num_entrypoints /* out */
6969 );
7070
71- VAStatus (*vaQueryConfigAttributes) (
71+ VAStatus (*vaGetConfigAttributes) (
7272 VADriverContextP ctx,
7373 VAProfile profile,
7474 VAEntrypoint entrypoint,
@@ -90,7 +90,7 @@ struct VADriverContext
9090 VAConfigID config_id
9191 );
9292
93- VAStatus (*vaGetConfigAttributes) (
93+ VAStatus (*vaQueryConfigAttributes) (
9494 VADriverContextP ctx,
9595 VAConfigID config_id,
9696 VAProfile *profile, /* out */