Home | History | Annotate | Download | only in va

Lines Matching full:env_value

114 int va_parseConfig(char *env, char *env_value);
142 #define FILE_NAME_SUFFIX(env_value) \
144 int tmp = strnlen(env_value, sizeof(env_value)); \
145 int left = sizeof(env_value) - tmp; \
147 snprintf(env_value+tmp, \
156 char env_value[1024];
164 if (va_parseConfig("LIBVA_TRACE", &env_value[0]) == 0) {
165 FILE_NAME_SUFFIX(env_value);
166 trace_ctx->trace_log_fn = strdup(env_value);
168 tmp = fopen(env_value, "w");
174 va_errorMessage("Open file %s failed (%s)\n", env_value, strerror(errno));
184 if (va_parseConfig("LIBVA_TRACE_CODEDBUF", &env_value[0]) == 0) {
185 FILE_NAME_SUFFIX(env_value);
186 trace_ctx->trace_codedbuf_fn = strdup(env_value);
192 if (va_parseConfig("LIBVA_TRACE_SURFACE", &env_value[0]) == 0) {
193 FILE_NAME_SUFFIX(env_value);
194 trace_ctx->trace_surface_fn = strdup(env_value);
205 if (strstr(env_value, "dec"))
207 if (strstr(env_value, "enc"))
209 if (strstr(env_value, "jpeg") || strstr(env_value, "jpg"))
212 if (va_parseConfig("LIBVA_TRACE_SURFACE_GEOMETRY", &env_value[0]) == 0) {
213 char *p = env_value, *q;