summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFei Jiang <fei.jiang@intel.com>2011-01-04 17:01:47 +0800
committerFei Jiang <fei.jiang@intel.com>2011-01-04 17:01:47 +0800
commit1764bd178bd46dcc9756a180579ec5f3db688a93 (patch)
tree5e6bc2411a72a23c9a7fbf13cf6f6b468df7028c
parent4c1e640b971ddafe05965397078331ffa89824f2 (diff)
fix some coding stype issue.ww02.2_android
-rw-r--r--va/va.h10
-rw-r--r--va/va_backend_tpi.h4
-rw-r--r--va/va_tpi.c4
-rw-r--r--va/va_trace.c4
4 files changed, 11 insertions, 11 deletions
diff --git a/va/va.h b/va/va.h
index b9fe9df..035648b 100644
--- a/va/va.h
+++ b/va/va.h
@@ -1443,7 +1443,7 @@ VAStatus vaQuerySurfaceStatus (
);
/*
- * Client calls vaQuerySurfaceError with VA_STATUS_ERROR_DECODING_ERROR, server side returns
+ * Client calls vaQuerySurfaceError with VA_STATUS_ERROR_DECODING_ERROR, server side returns
* an array of structure VASurfaceDecodeMBErrors, and the array is terminated by setting status=-1
*/
typedef struct _VASurfaceDecodeMBErrors
@@ -1454,12 +1454,12 @@ typedef struct _VASurfaceDecodeMBErrors
} VASurfaceDecodeMBErrors;
/*
- * After the application gets VA_STATUS_ERROR_DECODING_ERROR after calling vaSyncSurface(),
+ * After the application gets VA_STATUS_ERROR_DECODING_ERROR after calling vaSyncSurface(),
* it can call vaQuerySurfaceError to find out further details on the particular error.
- * VA_STATUS_ERROR_DECODING_ERROR should be passed in as "error_status",
+ * VA_STATUS_ERROR_DECODING_ERROR should be passed in as "error_status",
* upon the return, error_info will point to an array of _VASurfaceDecodeMBErrors structure,
- * which is allocated and filled by libVA with detailed information on the missing or error macroblocks.
- * The array is terminated if "status==-1" is detected.
+ * which is allocated and filled by libVA with detailed information on the missing or error macroblocks.
+ * The array is terminated if "status==-1" is detected.
*/
VAStatus vaQuerySurfaceError(
VADisplay dpy,
diff --git a/va/va_backend_tpi.h b/va/va_backend_tpi.h
index e67dc53..52f2073 100644
--- a/va/va_backend_tpi.h
+++ b/va/va_backend_tpi.h
@@ -67,8 +67,8 @@ struct VADriverVTableTPI
unsigned int chroma_u_offset, /* UV offset from the beginning of the memory */
unsigned int chroma_v_offset
);
-
-
+
+
VAStatus (*vaPutSurfaceBuf) (
VADisplay dpy,
VASurfaceID surface,
diff --git a/va/va_tpi.c b/va/va_tpi.c
index d957e6c..86385b0 100644
--- a/va/va_tpi.c
+++ b/va/va_tpi.c
@@ -104,7 +104,7 @@ VAStatus vaCreateSurfaceFromV4L2Buf(
* which has special requirements, e.g. stride alignment
* This API is used to force libVA video surfaces are allocated
* according to these external requirements
- * Special API for V4L2 user pointer support
+ * Special API for V4L2 user pointer support
*/
VAStatus vaCreateSurfacesForUserPtr(
VADisplay dpy,
@@ -127,7 +127,7 @@ VAStatus vaCreateSurfacesForUserPtr(
struct VADriverVTableTPI *tpi;
CHECK_DISPLAY(dpy);
ctx = CTX(dpy);
-
+
tpi = (struct VADriverVTableTPI *)ctx->vtable_tpi;
if (tpi && tpi->vaCreateSurfacesForUserPtr) {
return tpi->vaCreateSurfacesForUserPtr( ctx, width, height, format, num_surfaces,
diff --git a/va/va_trace.c b/va/va_trace.c
index 1ec7f9b..553da70 100644
--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -159,7 +159,7 @@ void va_TraceInit(VADisplay dpy)
trace_flag = 1;
/*Check if there is still room for suffix .%d.%d*/
- if (strnlen(env_value, 1024) < (1024 - 8))
+ if (strnlen(env_value, 1024) < (1024 - 8))
snprintf(env_value+strnlen(env_value, 1024),
(1025 - 8 - strnlen(env_value, 1024)),
".%d.%d", trace_index, suffix);
@@ -193,7 +193,7 @@ void va_TraceInit(VADisplay dpy)
/* per-context setting */
if (va_parseConfig("LIBVA_TRACE_CODEDBUF", &env_value[0]) == 0) {
- if (strnlen(env_value, 1024) < (1024 - 8))
+ if (strnlen(env_value, 1024) < (1024 - 8))
snprintf(env_value+strnlen(env_value, 1024),
(1025 - 8 - strnlen(env_value, 1024)),
".%d.%d", trace_index, suffix);