Home
last modified time | relevance | path

Searched refs:coding_history (Results 1 – 13 of 13) sorted by relevance

/third_party/libsnd/src/
Dbroadcast.c36 return offsetof (SF_BROADCAST_INFO, coding_history) + info->coding_history_size ; in bc_min_size()
69 memcpy (psf->broadcast_16k, info, offsetof (SF_BROADCAST_INFO, coding_history)) ; in broadcast_var_set()
71 …st_16k->coding_history, info->coding_history, sizeof (psf->broadcast_16k->coding_history), datasiz… in broadcast_var_set()
72 len = strlen (psf->broadcast_16k->coding_history) ; in broadcast_var_set()
74 if (len > 0 && psf->broadcast_16k->coding_history [len - 1] != '\n') in broadcast_var_set()
75 …psf_strlcat (psf->broadcast_16k->coding_history, sizeof (psf->broadcast_16k->coding_history), "\r\… in broadcast_var_set()
81 …psf_strlcat (psf->broadcast_16k->coding_history, sizeof (psf->broadcast_16k->coding_history), adde… in broadcast_var_set()
85 len = strlen (psf->broadcast_16k->coding_history) ; in broadcast_var_set()
Dtest_broadcast_var.c52 bi->coding_history [0] = 0 ; in fill_coding_history()
54 for (k = 0 ; strlen (bi->coding_history) < bi->coding_history_size - 1 ; k ++) in fill_coding_history()
55 …append_snprintf (bi->coding_history, bi->coding_history_size, "%s\n", lines [k % ARRAY_LEN (lines)… in fill_coding_history()
Dwavlike.c774 bytes += psf_binheader_readf (psf, "b", BHWv (b->coding_history), BHWz (b->coding_history_size)) ; in wavlike_read_bext_chunk()
811 psf_binheader_writef (psf, "b", BHWv (b->coding_history), BHWz (b->coding_history_size)) ; in wavlike_write_bext_chunk()
/third_party/libsnd/programs/
Dcommon.c178 if (info->coding_history != NULL) in merge_broadcast_info()
180 { int slen = strlen (binfo.coding_history) ; in merge_broadcast_info()
182 while (slen > 1 && isspace (binfo.coding_history [slen - 1])) in merge_broadcast_info()
185 … memcpy (binfo.coding_history + slen, info->coding_history, sizeof (binfo.coding_history) - slen) ; in merge_broadcast_info()
188 { size_t slen = MIN (strlen (info->coding_history), sizeof (binfo.coding_history)) ; in merge_broadcast_info()
190 memset (binfo.coding_history, 0, sizeof (binfo.coding_history)) ; in merge_broadcast_info()
191 memcpy (binfo.coding_history, info->coding_history, slen) ; in merge_broadcast_info()
Dsndfile-metadata-set.c108 HANDLE_BEXT_ARG ("--bext-coding-hist", coding_history) ; in main()
173 if (info.coding_history != NULL && filenames [1] == NULL) in main()
266 …if (info->origination_date || info->origination_time || info->umid || info->coding_history || info… in has_bext_fields_set()
Dcommon.h62 const char * coding_history ; member
Dsndfile-metadata-get.c179 HANDLE_BEXT_ARG ("--bext-coding-hist", "Coding history", coding_history) ; in process_args()
Dsndfile-info.c388 printf ("Coding history : %.*s\n", bext.coding_history_size, bext.coding_history) ; in broadcast_dump()
/third_party/libsnd/tests/
Dcommand_test.c1245 …bc_write.coding_history_size = snprintf (bc_write.coding_history, sizeof (bc_write.coding_history)… in check_coding_history_newlines()
1271 if (strstr (bc_read.coding_history, "Last line") == NULL) in check_coding_history_newlines()
1277 { if (bc_read.coding_history [k] == '\n' && bc_read.coding_history [k - 1] != '\r') in check_coding_history_newlines()
1282 if (bc_read.coding_history [k] == '\r' && bc_read.coding_history [k + 1] != '\n') in check_coding_history_newlines()
1287 if (bc_read.coding_history [k] == 0 && k < bc_read.coding_history_size - 1) in check_coding_history_newlines()
1347 …if (bc_read.coding_history_size < strlen (default_history) || memcmp (bc_read.coding_history, defa… in broadcast_coding_history_test()
1350 …" should be '%s'\n\n", __LINE__, bc_read.coding_history_size, bc_read.coding_history, d… in broadcast_coding_history_test()
1355 …bc_write.coding_history_size = snprintf (bc_write.coding_history, sizeof (bc_write.coding_history)… in broadcast_coding_history_test()
1377 if (strstr (bc_read.coding_history, supplied_history) != bc_read.coding_history) in broadcast_coding_history_test()
1385 __LINE__, bc_read.coding_history, supplied_history) ; in broadcast_coding_history_test()
[all …]
/third_party/ffmpeg/libavformat/
Dwavdec.c264 char temp[131], *coding_history; in wav_parse_bext_tag() local
318 if (!(coding_history = av_malloc(size + 1))) in wav_parse_bext_tag()
321 if ((ret = avio_read(s->pb, coding_history, size)) != size) { in wav_parse_bext_tag()
322 av_free(coding_history); in wav_parse_bext_tag()
326 coding_history[size] = 0; in wav_parse_bext_tag()
327 if ((ret = av_dict_set(&s->metadata, "coding_history", coding_history, in wav_parse_bext_tag()
/third_party/libsnd/include/
Dsndfile.h474 char coding_history [coding_hist_size]; \
Dsndfile.h.in511 char coding_history [coding_hist_size] ; \
514 /* SF_BROADCAST_INFO is the above struct with coding_history field of 256 bytes. */
/third_party/libsnd/docs/
Dcommand.md1361 char coding_history [256] ;