Listing the "Blender Foundation" as copyright holder implied the Blender Foundation holds copyright to files which may include work from many developers. While keeping copyright on headers makes sense for isolated libraries, Blender's own code may be refactored or moved between files in a way that makes the per file copyright holders less meaningful. Copyright references to the "Blender Foundation" have been replaced with "Blender Authors", with the exception of `./extern/` since these this contains libraries which are more isolated, any changed to license headers there can be handled on a case-by-case basis. Some directories in `./intern/` have also been excluded: - `./intern/cycles/` it's own `AUTHORS` file is planned. - `./intern/opensubdiv/`. An "AUTHORS" file has been added, using the chromium projects authors file as a template. Design task: #110784 Ref !110783.
51 lines
1.3 KiB
C++
51 lines
1.3 KiB
C++
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
|
|
* SPDX-FileCopyrightText: 2003-2009 Blender Authors
|
|
* SPDX-FileCopyrightText: 2005-2006 Peter Schlaile <peter [at] schlaile [dot] de>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup bke
|
|
*/
|
|
|
|
#include "DNA_scene_types.h"
|
|
|
|
#include "BLI_string.h"
|
|
|
|
#include "BKE_scene.h"
|
|
|
|
#include "IMB_imbuf.h"
|
|
|
|
#include "multiview.h"
|
|
|
|
void seq_anim_add_suffix(Scene *scene, anim *anim, const int view_id)
|
|
{
|
|
const char *suffix = BKE_scene_multiview_view_id_suffix_get(&scene->r, view_id);
|
|
IMB_suffix_anim(anim, suffix);
|
|
}
|
|
|
|
int seq_num_files(Scene *scene, char views_format, const bool is_multiview)
|
|
{
|
|
if (!is_multiview) {
|
|
return 1;
|
|
}
|
|
if (views_format == R_IMF_VIEWS_STEREO_3D) {
|
|
return 1;
|
|
}
|
|
/* R_IMF_VIEWS_INDIVIDUAL */
|
|
|
|
return BKE_scene_multiview_num_views_get(&scene->r);
|
|
}
|
|
|
|
void seq_multiview_name(Scene *scene,
|
|
const int view_id,
|
|
const char *prefix,
|
|
const char *ext,
|
|
char *r_path,
|
|
size_t r_size)
|
|
{
|
|
const char *suffix = BKE_scene_multiview_view_id_suffix_get(&scene->r, view_id);
|
|
BLI_assert(ext != nullptr && suffix != nullptr && prefix != nullptr);
|
|
BLI_snprintf(r_path, r_size, "%s%s%s", prefix, suffix, ext);
|
|
}
|