Lines Matching defs:env_value
116 int va_parseConfig(char *env, char *env_value);
144 #define FILE_NAME_SUFFIX(env_value) \
146 int tmp = strnlen(env_value, sizeof(env_value)); \
147 int left = sizeof(env_value) - tmp; \
149 snprintf(env_value+tmp, \
158 char env_value[1024] = {0};
169 strcpy(env_value, LIBVA_TRACE_FILE);
170 FILE_NAME_SUFFIX(env_value);
171 trace_ctx->trace_log_fn = strdup(env_value);
173 tmp = fopen(env_value, "w");
179 va_errorMessage("Open file %s failed (%s)\n", env_value, strerror(errno));
189 if (va_parseConfig("LIBVA_TRACE_CODEDBUF", &env_value[0]) == 0) {
190 FILE_NAME_SUFFIX(env_value);
191 trace_ctx->trace_codedbuf_fn = strdup(env_value);
197 if (va_parseConfig("LIBVA_TRACE_SURFACE", &env_value[0]) == 0) {
198 FILE_NAME_SUFFIX(env_value);
199 trace_ctx->trace_surface_fn = strdup(env_value);
210 if (strstr(env_value, "dec"))
212 if (strstr(env_value, "enc"))
214 if (strstr(env_value, "jpeg") || strstr(env_value, "jpg"))
217 if (va_parseConfig("LIBVA_TRACE_SURFACE_GEOMETRY", &env_value[0]) == 0) {
218 char *p = env_value, *q;