box: Utilize meaningful error values.
[L-SMASH.git] / core / fragment.h
blob0bf212834e43c6c34f422460f98fb56d1d71e0a5
1 /*****************************************************************************
2 * fragment.h
3 *****************************************************************************
4 * Copyright (C) 2011-2014 L-SMASH project
6 * Authors: Yusuke Nakamura <muken.the.vfrmaniac@gmail.com>
8 * Permission to use, copy, modify, and/or distribute this software for any
9 * purpose with or without fee is hereby granted, provided that the above
10 * copyright notice and this permission notice appear in all copies.
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 *****************************************************************************/
21 /* This file is available under an ISC license. */
23 int isom_finish_final_fragment_movie
25 lsmash_file_t *file,
26 lsmash_adhoc_remux_t *remux
29 int isom_set_fragment_last_duration
31 isom_traf_t *traf,
32 uint32_t last_duration
35 int isom_append_fragment_track_run
37 lsmash_file_t *file,
38 isom_chunk_t *chunk
41 int isom_flush_fragment_pooled_samples
43 lsmash_file_t *file,
44 uint32_t track_ID,
45 uint32_t last_sample_duration
48 int isom_append_fragment_sample
50 lsmash_file_t *file,
51 uint32_t track_ID,
52 lsmash_sample_t *sample