Skip to content

Commit

Permalink
PR #10971 from Tamir91: Update Intel RealSense logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed Oct 6, 2022
2 parents 3784fcf + c7bf69f commit da05020
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
9 changes: 5 additions & 4 deletions common/res/int-rs-splash.hpp

Large diffs are not rendered by default.

Binary file modified common/res/int-rs-splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 13 additions & 3 deletions tools/embed/rs-embed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stb_image.h>


#define RS_EMBED_VERSION "0.0.0.1"
#define RS_EMBED_VERSION "0.0.0.2"

struct float3
{
Expand Down Expand Up @@ -57,6 +57,16 @@ std::string get_current_time()
return std::string(buffer);
}

std::string get_current_year()
{
auto t = time(nullptr);
char buffer[20] = {};
const tm* time = localtime(&t);
if (nullptr != time)
strftime(buffer, sizeof(buffer), "%Y", time);
return std::string(buffer);
}

int main(int argc, char** argv) try
{
// Parse command line arguments
Expand Down Expand Up @@ -151,7 +161,7 @@ int main(int argc, char** argv) try
ofstream myfile;
myfile.open(output);
myfile << "// License: Apache 2.0. See LICENSE file in root directory.\n";
myfile << "// Copyright(c) 2021 Intel Corporation. All Rights Reserved.\n\n";
myfile << "// Copyright(c) " << get_current_year() << " Intel Corporation. All Rights Reserved.\n\n";
myfile << "// This file is auto-generated from " << name << ".obj using rs-embed tool version: " << RS_EMBED_VERSION <<"\n";
myfile << "// Generation time: " << get_current_time() << ".\n\n";
myfile << "#pragma once\n";
Expand Down Expand Up @@ -203,7 +213,7 @@ int main(int argc, char** argv) try
ofstream myfile;
myfile.open(output);
myfile << "// License: Apache 2.0. See LICENSE file in root directory.\n";
myfile << "// Copyright(c) 2021 Intel Corporation. All Rights Reserved.\n\n";
myfile << "// Copyright(c) " << get_current_year() << " Intel Corporation. All Rights Reserved.\n\n";
myfile << "// This file is auto-generated from " << name << ".png using rs-embed tool version: " << RS_EMBED_VERSION << "\n";
myfile << "// Generation time: " << get_current_time() << ".\n\n";

Expand Down

0 comments on commit da05020

Please sign in to comment.