• Home
  • Raw
  • Download

Lines Matching refs:keyword

43 static int dict_set_if_not_null(AVDictionary ***metadata, char *keyword, char *value)  in dict_set_if_not_null()  argument
46 av_dict_set(*metadata, keyword, value, 0); in dict_set_if_not_null()
57 static int read_keyword_value(const uint8_t *ptr8, char *keyword, char *value) in read_keyword_value() argument
62 keyword[i] = ptr8[i]; in read_keyword_value()
64 keyword[i] = '\0'; in read_keyword_value()
97 if (strcmp(keyword, key)) { \
98 av_log(avcl, AV_LOG_ERROR, "expected %s keyword, found %s = %s\n", key, keyword, value); \
104 av_log(avcl, AV_LOG_ERROR, "invalid value of %s keyword, %s = %s\n", key, keyword, value); \
113 char keyword[10], value[72], c; in avpriv_fits_header_parse_line() local
115 read_keyword_value(line, keyword, value); in avpriv_fits_header_parse_line()
152 dict_set_if_not_null(metadata, keyword, value); in avpriv_fits_header_parse_line()
159 dict_set_if_not_null(metadata, keyword, value); in avpriv_fits_header_parse_line()
168 ret = sscanf(keyword, "NAXIS%d", &dim_no); in avpriv_fits_header_parse_line()
170 …V_LOG_ERROR, "expected NAXIS%d keyword, found %s = %s\n", header->naxis_index + 1, keyword, value); in avpriv_fits_header_parse_line()
175 …LOG_ERROR, "invalid value of NAXIS%d keyword, %s = %s\n", header->naxis_index + 1, keyword, value); in avpriv_fits_header_parse_line()
179 dict_set_if_not_null(metadata, keyword, value); in avpriv_fits_header_parse_line()
186 if (!strcmp(keyword, "BLANK") && sscanf(value, "%"SCNd64"", &t) == 1) { in avpriv_fits_header_parse_line()
189 } else if (!strcmp(keyword, "BSCALE") && sscanf(value, "%lf", &d) == 1) { in avpriv_fits_header_parse_line()
193 } else if (!strcmp(keyword, "BZERO") && sscanf(value, "%lf", &d) == 1) { in avpriv_fits_header_parse_line()
195 } else if (!strcmp(keyword, "CTYPE3") && !strncmp(value, "'RGB", 4)) { in avpriv_fits_header_parse_line()
197 } else if (!strcmp(keyword, "DATAMAX") && sscanf(value, "%lf", &d) == 1) { in avpriv_fits_header_parse_line()
200 } else if (!strcmp(keyword, "DATAMIN") && sscanf(value, "%lf", &d) == 1) { in avpriv_fits_header_parse_line()
203 } else if (!strcmp(keyword, "END")) { in avpriv_fits_header_parse_line()
205 } else if (!strcmp(keyword, "GROUPS") && sscanf(value, "%c", &c) == 1) { in avpriv_fits_header_parse_line()
207 } else if (!strcmp(keyword, "GCOUNT") && sscanf(value, "%"SCNd64"", &t) == 1) { in avpriv_fits_header_parse_line()
211 } else if (!strcmp(keyword, "PCOUNT") && sscanf(value, "%"SCNd64"", &t) == 1) { in avpriv_fits_header_parse_line()
216 dict_set_if_not_null(metadata, keyword, value); in avpriv_fits_header_parse_line()