Lines Matching refs:meta
69 static char * o_meta[MAX_META]; /* meta data array */
70 static int o_msize = 0; /* size of meta array */
105 " To extract the raw image from SEAMA, you need to specify the meta.\n"
106 " The first image match the specified meta will be extract to\n"
238 printf(" meta size : %zu bytes\n", msize);
240 printf(" meta data : %s\n", &buf[i]);
273 static size_t write_seama_header(FILE * fh, char * meta[], size_t msize, size_t size)
280 for (i=0; i<msize; i++) metasize += (strlen(meta[i]) + 1);
281 //+++ let meta data end on 4 alignment by siyou. 2010/3/1 03:58pm
300 static size_t write_meta_data(FILE * fh, char * meta[], size_t size)
307 verbose("SEAMA META data : %s\n", meta[i]);
308 j = fwrite(meta[i], sizeof(char), strlen(meta[i])+1, fh);
309 if (j != strlen(meta[i])+1) return 0;
312 //+++ let meta data end on 4 alignment by siyou. 2010/3/1 03:58pm
406 static int match_meta(const char * meta, size_t size)
413 for (match = 0, j = 0; j < size; j += (strlen(&meta[j])+1))
414 if (strcmp(&meta[j], o_meta[i])==0) { match++; break; }
430 /* We need meta for searching the target image. */
433 printf("SEAMA: need meta for searching image.\n");