Lines Matching defs: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];
165 if (va_parseConfig("LIBVA_TRACE", &env_value[0]) == 0) {
166 FILE_NAME_SUFFIX(env_value);
167 trace_ctx->trace_log_fn = strdup(env_value);
169 tmp = fopen(env_value, "w");
175 va_errorMessage("Open file %s failed (%s)\n", env_value, strerror(errno));
185 if (va_parseConfig("LIBVA_TRACE_CODEDBUF", &env_value[0]) == 0) {
186 FILE_NAME_SUFFIX(env_value);
187 trace_ctx->trace_codedbuf_fn = strdup(env_value);
193 if (va_parseConfig("LIBVA_TRACE_SURFACE", &env_value[0]) == 0) {
194 FILE_NAME_SUFFIX(env_value);
195 trace_ctx->trace_surface_fn = strdup(env_value);
206 if (strstr(env_value, "dec"))
208 if (strstr(env_value, "enc"))
210 if (strstr(env_value, "jpeg") || strstr(env_value, "jpg"))
213 if (va_parseConfig("LIBVA_TRACE_SURFACE_GEOMETRY", &env_value[0]) == 0) {
214 char *p = env_value, *q;